(Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
[bpt/emacs.git] / src / ChangeLog
1 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2
3 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4 can properly handle unsigned types.
5 (make_uid, make_gid): Removed.
6
7 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
8 types again.
9
10 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument
11 type.
12 (system_process_attributes): Likewise.
13
14 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
15
16 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
17
18 * eval.c (Fautoload): Purecopy the filename. Simplify.
19
20 * category.c (Fdefine_category): Purecopy docstring.
21
22 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
23
24 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
25
26 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
27
28 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
29
30 * window.c (Fwindow_edges, Fwindow_pixel_edges)
31 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
32 (Bug#4775).
33
34 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
35
36 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
37 (init_fileio_once):
38 * lisp.h (init_fileio_once): Remove.
39 * emacs.c (main): Don't call init_fileio_once.
40
41 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
42
43 * puresize.h (BASE_PURESIZE): Increase to 1430000.
44
45 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
46
47 * doprnt.c (doprnt): Fix overflow check.
48
49 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
50
51 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
52
53 * xterm.h (x_wait_for_event): Declare it.
54
55 * xterm.c (pending_event_wait): New variable.
56 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
57 see pending_event_wait.eventtype.
58 (handle_one_xevent): Don't change gravity when parent changes.
59 (x_new_font): Call change_frame_size with new rows/columns before we try
60 to resize the frame.
61 (x_wait_for_event): New function.
62 (x_set_window_size_1): Don't change gravity unless change_gravity is set.
63 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
64 don't change frame size, instead wait for the ConfigureNotify.
65 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
66 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
67 (x_initialize): Initialize pending_event_wait.
68
69 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
70 size.
71
72 * widget.c (EmacsFrameSetValues): Add comment.
73 (EmacsFrameSetCharSize): Just call x_set_window_size.
74
75 * gtkutil.c (xg_frame_set_char_size): Flush events and call
76 x_wait_for_event.
77 (flush_and_sync): Removed again.
78 (xg_get_font_name): Suggest monospace if no previous font is known.
79
80 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
81
82 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
83 8th bit, since that only made sense in the ASCII world (bug#4751).
84
85 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
86
87 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
88 processing pending events when event is filtered for input method.
89 (Bug#3681)
90
91 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
92
93 * fns.c: Add #endif accidentally removed in previous change.
94
95 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
96
97 * fns.c: Remove code for unsupported system: MAC_OS.
98 * image.c: Likewise. Include setjmp.h.
99
100 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
101
102 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
103 pixel -1 (bug #4742).
104
105 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
106
107 * process.c (create_pty): Remove conditionals for no longer
108 supported systems: UNIPLUS and RTU.
109
110 * xterm.c:
111 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
112
113 * alloc.c: Do not define struct catchtag.
114 * eval.c: Move struct catchtag definition ...
115 * lisp.h: ... here.
116
117 * image.c: Move png.h #include earlier to avoid warnings.
118
119 * xterm.c:
120 * xsmfns.c:
121 * xselect.c:
122 * xrdb.c:
123 * xmenu.c:
124 * xftfont.c:
125 * xfont.c:
126 * xfns.c:
127 * xfaces.c:
128 * xdisp.c:
129 * window.c:
130 * widget.c:
131 * w32xfns.c:
132 * w32uniscribe.c:
133 * w32term.c:
134 * w32select.c:
135 * w32reg.c:
136 * w32proc.c:
137 * w32menu.c:
138 * w32inevt.c:
139 * w32heap.c:
140 * w32font.c:
141 * w32fns.c:
142 * w32console.c:
143 * w32.c:
144 * w16select.c:
145 * vm-limit.c:
146 * unexsol.c:
147 * unexec.c:
148 * unexcw.c:
149 * unexaix.c:
150 * undo.c:
151 * tparam.c:
152 * textprop.c:
153 * terminfo.c:
154 * terminal.c:
155 * termcap.c:
156 * term.c:
157 * syntax.c:
158 * sound.c:
159 * sheap.c:
160 * search.c:
161 * scroll.c:
162 * region-cache.c:
163 * regex.c:
164 * ralloc.c:
165 * process.c:
166 * print.c:
167 * nsterm.m:
168 * nsselect.m:
169 * nsmenu.m:
170 * nsimage.m:
171 * nsfont.m:
172 * nsfns.m:
173 * msdos.c:
174 * minibuf.c:
175 * menu.c:
176 * marker.c:
177 * macros.c:
178 * keymap.c:
179 * keyboard.c:
180 * intervals.c:
181 * insdel.c:
182 * indent.c:
183 * gtkutil.c:
184 * ftxfont.c:
185 * ftfont.c:
186 * fringe.c:
187 * frame.c:
188 * fontset.c:
189 * font.c:
190 * fns.c:
191 * floatfns.c:
192 * filelock.c:
193 * fileio.c:
194 * emacs.c:
195 * editfns.c:
196 * dosfns.c:
197 * doprnt.c:
198 * doc.c:
199 * dispnew.c:
200 * dired.c:
201 * dbusbind.c:
202 * data.c:
203 * composite.c:
204 * coding.c:
205 * cmds.c:
206 * cm.c:
207 * chartab.c:
208 * charset.c:
209 * character.c:
210 * ccl.c:
211 * category.c:
212 * casetab.c:
213 * casefiddle.c:
214 * callproc.c:
215 * callint.c:
216 * bytecode.c:
217 * buffer.c:
218 * atimer.c: Include setjmp.h. (Bug#4643)
219
220 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
221
222 Remove leftover table unibyte_to_multibyte_table.
223 * character.c (unibyte_to_multibyte_table): Remove.
224 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
225 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
226 * character.h (UNIBYTE_TO_CHAR): New macro.
227 (MAKE_CHAR_MULTIBYTE): Use it.
228 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
229 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
230 (message_dolog, set_message_1):
231 * search.c (Freplace_match):
232 * editfns.c (Fcompare_buffer_substrings):
233 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
234 (concat):
235 * insdel.c (copy_text, count_size_as_multibyte):
236 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
237 * term.c (produce_glyphs):
238 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
239 * regex.c (RE_CHAR_TO_MULTIBYTE):
240 * cmds.c (internal_self_insert):
241 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
242
243 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
244
245 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
246
247 * puresize.h (BASE_PURESIZE): Increase to 1310000.
248
249 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
250
251 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
252
253 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
254
255 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
256 still needed under Tiger.
257
258 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
259
260 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
261 __Apple__.
262
263 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
264
265 2009-10-15 Kenichi Handa <handa@m17n.org>
266
267 * print.c (print_object): Escape a symbol like "2E10" too.
268
269 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
270
271 Cleanups and changes for 64-bit compile under Snow Leopard.
272 Based on suggestions by Erik Charlebois.
273
274 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
275
276 * nsfont.m (ns_char_width): Replace deprecated call.
277 (ns_findfonts, nsfont_list_family): Use long format in printf, and
278 cast argument.
279 (nsfont_open): Use ns_char_width() everywhere.
280 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where
281 appropriate.
282
283 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
284
285 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
286 where appropriate.
287
288 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
289 where appropriate.
290 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
291 Use stringWithUTF8String.
292 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
293
294 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
295 Add formal protocol mention to inheritance.
296 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
297
298 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
299 Fix printf format.
300 (ns_query_color): Use CGFloat where appropriate.
301 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
302 (EmacsScroller-mouseDown:) Use long format in printf, and cast
303 argument.
304
305 * config.in (NS_HAVE_NSINTEGER): Drop.
306
307 * dbusbind.c (dbus-method-return-internal)
308 (dbus-method-error-internal): Use long format in printf, and cast
309 argument.
310
311 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
312 in printf, and cast argument.
313
314 * process.c (list_processes_1): Use long format in printf, and
315 cast argument.
316
317 2009-10-11 Glenn Morris <rgm@gnu.org>
318
319 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
320
321 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
322
323 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
324 menu bar with a small width so it doesn't enlarge the frame.
325
326 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
327
328 * fontset.c (Fset_fontset_font): Fix typos in error messages.
329
330 2009-10-06 Glenn Morris <rgm@gnu.org>
331
332 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
333 SOME_MACHINE_LISP (this enters indirectly via DOC).
334
335 2009-10-05 Eli Zaretskii <eliz@gnu.org>
336
337 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
338
339 2009-10-04 Eli Zaretskii <eliz@gnu.org>
340
341 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
342 Doc fix.
343
344 2009-10-03 Martin Rudalics <rudalics@gmx.at>
345
346 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
347
348 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
349
350 * lisp.h (Qdelete_directory_internal): Removed, because it is not
351 used anymore outside fileio.c.
352
353 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
354
355 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
356
357 * lisp.h (Qdelete_directory_internal):
358 Declare, instead of Qdelete_directory.
359
360 * w32fns.c (Fsystem_move_file_to_trash): Use it.
361
362 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
363
364 * eval.c (Fcalled_interactively_p): Add `kind' argument.
365
366 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
367
368 * fileio.c (Fdelete_directory_internal): Rename from
369 Fdelete_directory. It is not a command anymore. It has no file
370 name handler.
371
372 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
373
374 * xdisp.c (get_next_display_element): Use an enum in last change.
375
376 2009-09-28 Kenichi Handa <handa@m17n.org>
377
378 * xdisp.c (get_next_display_element): Pay attention to
379 unibyte_display_via_language_environment in handling
380 Vnobreak_char_display.
381
382 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
383
384 * nsterm.h (ns_app_name): New extern variable.
385
386 * nsterm.m (ns_app_name): New variable.
387 (ns_term_init): Set and use it.
388 (ns_term_shutdown): Use it.
389
390 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
391 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
392
393 * nsfns.m (ns_set_name_iconic, ns_set_name)
394 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
395 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
396
397 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
398 Remove double-casting in client_data comparison.
399
400 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
401
402 * keyboard.c (make_lispy_event): Remember last wheel direction.
403 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
404
405 2009-09-26 Glenn Morris <rgm@gnu.org>
406
407 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
408 internal.elc. Add term/pc-win.elc.
409 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
410 term/x-win.elc.
411 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
412 term/w32-win.elc.
413 (NS_SUPPORT): New.
414 (lisp): Add NS_SUPPORT.
415 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
416
417 2009-09-25 David Reitter <david.reitter@gmail.com>
418
419 * nsmenu.m (EmacsMenu-clear): Recognize application menu
420 on Mac OS X 10.6+ (bug#4513).
421
422 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
423
424 * frame.c (xrdb_get_resource): Return nil for empty string resources;
425 some parts of Emacs code (like font selection) don't grok them. See
426 http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
427
428 2009-09-24 Andreas Schwab <schwab@redhat.com>
429
430 * coding.c (decode_coding_iso_2022): Fix operator precedence.
431
432 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
433
434 * dired.c (Fdirectory_files): Fix typo in docstring.
435
436 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
437
438 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
439 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
440 (EmacsScroller-setPosition:portion:whole:): Remove -display call
441 under GNUstep.
442 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
443
444 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
445 glyph advancement.
446
447 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
448
449 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
450 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
451
452 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
453 deleted (bug #4492).
454
455 * nsfont.m (Vns_reg_to_script): New lisp variable.
456 (syms_of_nsfont): Declare it.
457 (ns_registry_to_script): New function.
458 (ns_get_req_script): Call it.
459 (ns_findfonts): Don't give up on non-unicode registry.
460
461 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
462
463 2009-09-20 Tom Tromey <tromey@redhat.com>
464
465 * eval.c (find_handler_clause): Make stack-trace-on-error work in
466 batch mode (bug#4228).
467
468 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
469
470 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
471 carefully. (Bug #4339)
472
473 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
474
475 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
476
477 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
478
479 * emacs.c (inhibit_x_resources): Update doc string for NS.
480 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
481 legacy code for -NXHost. Fix error printf in daemon case.
482
483 * nsterm.h (ns_no_defaults): Remove.
484
485 * nsterm.m (ns_no_defaults): Remove.
486 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
487 (ns_use_qd_smoothing): Remove legacy variable.
488 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
489 don't update the NSWindow itself.
490 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
491 state detection and store user rect ourselves. (Bug #3581)
492
493 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
494 ns_use_qd_smoothing.
495
496 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
497 platform versions. Drop support for emacs-20-style face specs.
498 (x-close-connection): Drop PSFlush() under OS X.
499 (x-focus-frame): Activate the app first. (Bug #4180)
500
501 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
502
503 * emacs.c (inhibit_x_resources): New variable.
504 (main) [HAVE_NS]: Don't process --quick command line option.
505 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
506
507 * lisp.h (inhibit_x_resources): Declare it extern.
508
509 * w32reg.c (x_get_string_resource):
510 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
511
512 2009-09-17 Eli Zaretskii <eliz@gnu.org>
513
514 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP): Add
515 lisp/term/internal.elc.
516
517 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
518
519 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
520 (bug#4461).
521
522 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
523
524 * puresize.h (BASE_PURESIZE): Increase to 1290000.
525
526 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
527 (OBJECTS_MACHINE): Remove, unused.
528
529 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
530
531 * frame.c (x_get_resource_string): Remove unused.
532
533 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
534
535 * xterm.c (x_new_font): Call change_frame_size before calling
536 x_set_window_size, in case frame size won't change.
537
538 * frame.c (x_set_font): Remove dead code.
539
540 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
541
542 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
543
544 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
545
546 * lread.c (Fload): Don't output a message after loading an obsolete
547 package any more (done in Lisp now).
548
549 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
550
551 * fns.c (syms_of_fns): Doc fix (Bug#4227).
552
553 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
554
555 * keymap.c (Fwhere_is_internal): Use nconc2.
556
557 2009-09-11 Alan Mackenzie <acm@muc.de>
558
559 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
560 batch mode.
561
562 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
563
564 * xdisp.c (display_mode_element): Detect cycles.
565
566 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
567
568 * keymap.c (where_is_internal): Don't erroneously return nil right after
569 filling the cache.
570 (where_is_internal_1): Fix up typo.
571
572 2009-09-11 Glenn Morris <rgm@gnu.org>
573
574 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
575 share a common doc-string.
576
577 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
578
579 * keymap.c (get_keymap): Return the actual keymap symbol rather than
580 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
581
582 * keymap.c (QCadvertised_binding): New constant.
583 (syms_of_keymap): Initialize it.
584 (Fwhere_is_internal): Try and use bindings from :advertised-binding
585 if applicable.
586
587 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
588
589 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
590 (parse_menu_item): Streamline since bindings are recomputed all the
591 time anyway. Don't bother checking Vdefine_key_rebound_commands any
592 more and don't support lmenu's menu-alias any more either.
593
594 * keymap.c (where_is_internal_data): Make noindirect a boolean.
595 (where_is_internal): Strip it down to only traverse the keymaps.
596 Move the cache handling from Fwhere_is_internal to here.
597 (Fwhere_is_internal): Move the handling of remapping and the choice of
598 the best binding from where_is_internal to here.
599 Unify the cached/noncached paths, so remapping is also handled
600 correctly when the cache is used, and so the cache can be used to
601 speed up remap-handling when applicable.
602 Give preference to non-remapped bindings.
603 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
604 non-remapped bindings.
605 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
606 command remapping.
607
608 * xdisp.c (display_mode_element): Move list length limit from 50 to
609 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
610
611 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
612
613 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
614
615 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
616
617 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
618 (Bug#4334)
619
620 * keymap.c (where_is_internal): Filter out shadowed remappings.
621 Assume that where_is_internal returns unshadowed bindings to simplify
622 the code and get rid of the gotos. Use ASIZE.
623
624 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
625
626 * xterm.c (x_focus_changed): If we get a focusout and pointer
627 is invisible, make it visible.
628
629 * xterm.h: Remove condition for declaration of
630 x_*_window_to_frame.
631
632 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
633
634 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
635 initial terminal as well.
636
637 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
638
639 * xterm.h: Rename x_non_menubar_window_to_frame to
640 x_menubar_window_to_frame.
641
642 * xterm.c: Remove declarations also in xterm.h
643 (XTmouse_position): Do not return valid positions
644 for clicks in the menubar and the toolbar for Gtk+.
645
646 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
647 if the widget for the event has the same top level as a frame,
648 return the frame.
649 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
650 internal windows, bug #4122.
651 (x_non_menubar_window_to_frame): Remove.
652
653 2009-09-02 Glenn Morris <rgm@gnu.org>
654
655 * buffer.c (default-major-mode): Move most of the doc from here...
656 (major-mode): ... to here.
657
658 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
659
660 * process.c (wait_reading_process_output): Keep the descriptor
661 when pty is used by a non-child process, e.g., in I/O buffer of
662 GDB this allows inferior to be restarted.
663
664 2009-08-29 Eli Zaretskii <eliz@gnu.org>
665
666 * xdisp.c (redisplay_internal): Remove redundant test and collapse
667 both branches into one.
668
669 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
670
671 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
672 (main): Use enable-multibyte-characters rather than
673 default-enable-multibyte-characters. Output a warning message when
674 running a unibyte session.
675
676 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
677
678 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
679 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
680 (copy_data_segment): Also copy __program_vars section.
681 (copy_dyld_info) [LC_DYLD_INFO]: New function.
682 (dump_it) [LC_DYLD_INFO]: Use it.
683
684 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
685
686 2009-08-28 Eli Zaretskii <eliz@gnu.org>
687
688 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
689 $(SRC)/buildobj.h.
690 (buildobj.h): Renamed from $(SRC)/buildobj.h.
691 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
692 $(SRC)/buildobj.h.
693 (clean): Add buildobj.h.
694
695 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
696
697 * print.c (print_object): Set escapeflag to 1 when printing
698 hashtable keys and values.
699
700 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
701
702 * lread.c (read_integer): Use doubles (and potentially return a float
703 number) as we do in string-to-number.
704 (read1): Use strtol to read integers, signal errors on strtol's
705 overflow and use floats if strtol's output is too large for
706 Elisp integers.
707
708 2009-08-27 Eli Zaretskii <eliz@gnu.org>
709
710 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
711 (make-buildobj-SH): Fix last change.
712 (SRC): Move to before where it's first used.
713
714 2009-08-27 Kenichi Handa <handa@m17n.org>
715
716 * process.c (send_process): Use encode_coding_object instead of
717 encode_coding_string to perform eol-conversion even if the string
718 is unibyte.
719
720 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
721 character.
722
723 * cmds.c (Fself_insert_command): Avoid unnecessay
724 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
725
726 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
727
728 * callproc.c (Fcall_process): Remove always true #if.
729
730 * lisp.h: Replace #if 0 code for checking with text pointing to
731 the --enable-checking configure flag.
732
733 * emacs.c (main): Mention the --enable-profiling configure flag
734 instead of using CFLAGS.
735
736 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
737
738 * Makefile.in (buildobj.h): New target.
739 (doc.o): Depend on it.
740 (temacs${EXEEXT}): Don't generate buildobj.lst.
741 (mostlyclean): Delete buildobj.h, not buildobj.lst.
742 * makefile.w32-in ($(SRC)/buildobj.h): New target.
743 ($(BLD)/doc.$(O)): Depend on it.
744 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
745 provided by Eli Zaretskii.)
746 ($(TEMACS)): Don't generate buildobj.lst.
747 * doc.c: Include buildobj.h.
748 (buildobj): New static variable.
749 (Fsnarf_documentation): Use it, instead of opening and reading
750 buildobj.lst.
751
752 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
753
754 * dbusbind.c (Fdbus_call_method)
755 (Fdbus_call_method_asynchronously): Use English numeric format for
756 timeout values in doc string.
757
758 2009-08-25 Kenichi Handa <handa@m17n.org>
759
760 * alloc.c (mark_char_table): New function.
761 (mark_object): Use mark_char_table for a char-table.
762
763 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
764 (CHAR_TABLE_REF): Use it.
765
766 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
767
768 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
769 before invoking the newly build emacs to check for load-path
770 shadowing.
771
772 2009-08-22 Glenn Morris <rgm@gnu.org>
773
774 * Makefile.in (bootstrap_exe): New variable.
775 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
776 Use ${bootstrap_exe}.
777
778 2009-08-22 Eli Zaretskii <eliz@gnu.org>
779
780 * coding.h (encode_coding_string): Don't encode unibyte strings.
781 (Bug#4047)
782
783 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
784
785 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
786
787 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
788 intended as hotfix only.
789 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
790
791 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
792
793 * nsterm.m (ns_get_color): Update documentation properly for last
794 change, and clean up loose ends in the code left by it. Fix
795 longstanding bug with 16-bit hex parsing, and add support for
796 yet another X11 format (rgb:r/g/b) for compatibility.
797 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
798 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
799
800 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
801
802 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
803
804 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
805
806 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
807 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
808 (xd_initialize, xd_pending_messages): Check, whether
809 $DBUS_SESSION_BUS_ADDRESS is set.
810
811 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
812
813 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
814
815 * nsterm.m (ns_get_color): Remove incompatible color formats again.
816
817 2009-08-20 Glenn Morris <rgm@gnu.org>
818
819 * emacs.c (system-type): Doc fix.
820
821 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
822
823 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
824 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
825
826 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
827
828 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
829 New functions.
830 (xd_initialize): Revert change from 2009-08-16.
831
832 2009-08-18 Kenichi Handa <handa@m17n.org>
833
834 * fontset.c (Ffontset_font): If a nil element is found in a
835 font-group vector, return nil.
836
837 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
838
839 * process.c (status_notify): Don't perform redisplay.
840 (Fdelete_process, list_processes_1, process_send_signal):
841 Expliticly perform redisplay.
842 (wait_reading_process_output): Always check process status, but
843 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
844
845 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
846
847 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
848 (XFLOAT_INIT): New macro for storing a float value.
849 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
850 * fns.c (sxhash): Copy out the value of a float in order to
851 examine its bytes.
852 * dbusbind.c (xd_append_arg): Likewise.
853
854 * emacs.c (main): Don't call syms_of_data twice.
855
856 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
857
858 * dbusbind.c (xd_initialize): Add connection file descriptor to
859 input_wait_mask, in order to let select() detect, whether a new
860 message has been arrived.
861 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
862
863 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
864
865 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
866 New functions.
867
868 * lisp.h (xd_pending_messages): Declare.
869
870 * keyboard.c (readable_events): Call xd_pending_messages.
871
872 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
873
874 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
875
876 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
877
878 * buffer.c (set_buffer_internal_1)
879 (swap_out_buffer_local_variables): Check for unbound local
880 variables (Bug#4138).
881
882 2009-08-14 Eli Zaretskii <eliz@gnu.org>
883
884 * process.c (create_pty): Fix last change.
885
886 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
887
888 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
889 (xbm_load_image): Caller changed.
890 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
891
892 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
893
894 * process.c (create_pty): New function.
895 (Fstart_process): Use it to allow Emacs to just associate a pty
896 with the buffer. See associated change in gdb-mi.el.
897 (list_processes_1): Deal with no program name.
898 (start_process_unwind): Use pid == -2 to mean no process.
899
900 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
901
902 * cmds.c (nonundocount): New global variable.
903 (keys_of_cmds): Initialize it.
904 (Fself_insert_command): Use it to combine upto 20 sequential chars
905 into a single undo entry, just like the Qself_insert_command code in
906 keyboard.c does.
907 Call frame_make_pointer_invisible, also like the Qself_insert_command
908 code in keyboard.c does.
909 * keyboard.c (command_loop_1): Use the new global nonundocount rather
910 than its own local replacement for it.
911
912 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
913
914 * fns.c (concat): Don't re-set string length to its current value.
915
916 * coding.h (decode_coding_string, encode_coding_string):
917 Use SBYTES macro.
918
919 * doprnt.c (doprnt_lisp): Delete unused function.
920 (doprnt): Merge with doprnt1, discarding lispstrings code.
921 * lisp.h (doprnt_lisp): Don't declare.
922
923 2009-08-07 Juri Linkov <juri@jurta.org>
924
925 * puresize.h (BASE_PURESIZE): Increase to 1270000.
926
927 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
928
929 * print.c (syms_of_print): Undo previous change.
930
931 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
932
933 * lread.c (read1, syms_of_lread): Read hashtables back from the
934 readable format.
935
936 * print.c (print_preprocess, print_object): Print hashtables fully
937 and readably.
938 (syms_of_print): Provide 'hashtable-print-readable.
939
940 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
941
942 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
943 no family set.
944 (nsfont_open): Handle case when entity has no family.
945
946 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
947
948 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
949 element, not a list, for match case.
950
951 2009-07-28 Kenichi Handa <handa@m17n.org>
952
953 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
954 rigidly.
955
956 * xfont.c (xfont_list_pattern): Don't ignore the return value of
957 font_parse_xlfd. Check font properties more rigidly.
958
959 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
960
961 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
962 bsd-common.h.
963
964 2009-07-27 Kenichi Handa <handa@m17n.org>
965
966 * xfaces.c (face_with_height): Call font_clear_prop.
967
968 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
969
970 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
971
972 * xterm.c (x_term_init): Use Qx.
973
974 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
975
976 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
977 (ns_get_color): Revert 2009-07-16 change.
978
979 2009-07-25 Eli Zaretskii <eliz@gnu.org>
980
981 * lread.c (syms_of_lread) <force_load_messages>: New variable.
982 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
983
984 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
985
986 * coding.h (decode_coding_string, encode_coding_string):
987 Use SCHARS macro.
988
989 * lread.c: Rewrite 2009-07-21 changes.
990 (load_depth): Delete.
991 (Qload_in_progress): New variable.
992 (load_unwind): Don't reference load_depth or load_in_progress.
993 (Fload): Likewise; specbind Qload_in_progress instead.
994 (init_lread): Don't initialize load_depth.
995 (syms_of_lread): Initialize and protect Qload_in_progress.
996
997 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
998
999 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1000
1001 2009-07-23 Yavor Doganov <yavor@gnu.org>
1002
1003 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1004
1005 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1006
1007 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
1008 Bugs 3792, 3720, 2402.
1009 (ns_lookup_indexed_color): Check for bad index.
1010 (ns_index_color): Init unused slot to 0.
1011 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1012 Bug 3714, possibly 3082.
1013
1014 2009-07-22 Jason Rumney <jasonr@gnu.org>
1015
1016 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1017 Position IME window at cursor (Bug#2570).
1018 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1019 (globals_of_w32fns): Dynamically load functions required above.
1020
1021 * w32term.c (w32_draw_window_cursor): Send message to reposition
1022 any IME window.
1023
1024 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1025
1026 * fileio.c: Revert 2009-07-16 changes.
1027 (Vauto_save_include_big_deletions): New variable.
1028 (Fdo_auto_save): Disable auto-save only if
1029 auto-save-include-big-deletions is nil.
1030
1031 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
1032
1033 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1034 the overflowed pixels into account (Bug#3879).
1035
1036 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
1037
1038 * lread.c (load_depth): New variable.
1039 (Fload, load_unwind, init_lread): Set it to the load recursion
1040 depth; set load_in_progress as a simple boolean based on the
1041 current load_depth. (Bug#3892)
1042
1043 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1044
1045 * nsfont.m (ns_has_attribute): Remove.
1046 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1047
1048 2009-07-18 Juri Linkov <juri@jurta.org>
1049
1050 * process.c (Fset_process_query_on_exit_flag): Mention killing
1051 a buffer in docstring.
1052
1053 2009-07-17 Kenichi Handa <handa@m17n.org>
1054
1055 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1056
1057 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1058
1059 * nsfns.m (Fns_set_alpha): Remove function.
1060 (syms_of_nsfns): Don't defsubr it.
1061
1062 * nsterm.m (ns_get_color): Remove incompatible color formats.
1063 (ns_color_to_lisp): Generate #rrggbb color format string.
1064
1065 2009-07-16 Richard Stallman <rms@gnu.org>
1066
1067 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1068 (Fset_buffer_auto_saved): Handle save_length = -2.
1069
1070 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
1071
1072 * xterm.c (Qx_gtk_map_stock): New var.
1073
1074 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1075 of calling intern each time.
1076
1077 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1078
1079 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1080 does tiling.
1081
1082 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1083
1084 2009-07-14 Kenichi Handa <handa@m17n.org>
1085
1086 * font.c (font_vconcat_entity_vectors): New function.
1087 (struct font_sort_data): New member font_driver_preference.
1088 (font_compare): Check font_driver_preference.
1089 (font_sort_entities): The format of the first argument changed.
1090 (font_delete_unmatched): Likewise.
1091 (font_list_entities): The return type changed.
1092 (font_select_entity): The format of the second argument changed.
1093 (font_find_for_lface): Adjuste for the above changes.
1094 Don't suppress the checking of C even if the repertory supports it.
1095 (Flist_fonts): Adjust for the above changes.
1096
1097 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1098 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
1099 Reject a font who has adstyle property that is different from a
1100 langname derived from registry property.
1101 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
1102
1103 2009-07-13 Eli Zaretskii <eliz@gnu.org>
1104
1105 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1106 local copy of dirfilename.
1107
1108 2009-07-13 Kenichi Handa <handa@m17n.org>
1109
1110 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1111 against max_char.
1112
1113 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1114 calling XSYMBOL (sym).
1115
1116 2009-07-11 Eli Zaretskii <eliz@gnu.org>
1117
1118 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1119 New function.
1120 (directory_files_internal) [WINDOWSNT]:
1121 Bind w32-get-true-file-attributes to either t or nil, depending whether
1122 the filesystem of the directory is fast or slow.
1123
1124 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1125 file name.
1126 (is_slow_fs): New function.
1127 (stat): Use it to determine whether to issue more system calls to
1128 get accurate file attributes, when w32-get-true-file-attributes is
1129 `local'.
1130
1131 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1132
1133 * xfns.c (Fx_select_font): Remember last font selected in
1134 x_last_font_name and use that the next time. Also try the frame
1135 parameter font-parameter as default to the font dialog.
1136
1137 2009-07-10 Kenichi Handa <handa@m17n.org>
1138
1139 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1140
1141 2009-07-09 Eli Zaretskii <eliz@gnu.org>
1142
1143 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
1144
1145 * w32.c (stat): Treat UNC file names as residing on remote
1146 drives. (Bug#3542)
1147
1148 2009-07-09 Kenichi Handa <handa@m17n.org>
1149
1150 * fontset.c (fontset_find_font): Fix previous change.
1151
1152 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
1153
1154 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1155 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1156 error flag.
1157
1158 2009-07-08 Kenichi Handa <handa@m17n.org>
1159
1160 * fontset.c (fontset_find_font): Fix the logic of handling
1161 charset_matched.
1162 (font_for_char): Delete unused var.
1163 (generate_ascii_font_name): Delete it.
1164
1165 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1166
1167 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1168 (encode_coding_sjis): Fix the code range check.
1169
1170 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
1171
1172 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1173 (Fexpand_file_name): Copy string data properly (Bug#3772).
1174
1175 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1176
1177 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1178 first MapNotify.
1179
1180 2009-07-07 Kenichi Handa <handa@m17n.org>
1181
1182 * character.h (unibyte_has_multibyte_table): Delete extern.
1183 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1184
1185 * charset.c (Fset_charset_priority): Update charset_unibyte.
1186 (syms_of_charset): Initialize charset_unibyte.
1187
1188 * character.c (unibyte_has_multibyte_table): Delete it.
1189 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1190 charset_unibyte.
1191 (multibyte_char_to_unibyte_safe): Likewise.
1192 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1193
1194 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
1195 (x_produce_glyphs): Likewise.
1196
1197 * .gdbinit (xcharset): Fix the treating $arg0.
1198
1199 2009-07-04 Eli Zaretskii <eliz@gnu.org>
1200
1201 Emulation of `getloadavg' on MS-Windows.
1202 * w32.c: Include float.h
1203 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1204 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1205 (get_native_system_info, get_system_times): New functions.
1206 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1207 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1208 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1209 g_b_init_get_system_times, and num_of_processors.
1210
1211 2009-07-03 Jason Rumney <jasonr@gnu.org>
1212
1213 * w32term.c (w32_initialize): Use standard types.
1214
1215 2009-07-03 Eli Zaretskii <eliz@gnu.org>
1216
1217 * dired.c (Ffile_attributes): Decode user and group names by the
1218 locale's encoding. (Bug#3443)
1219
1220 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1221
1222 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1223 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1224
1225 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1226
1227 * term.c (init_tty): Remove spurious #ifdef.
1228
1229 * m/mips.h: Mention this file is also used for netbsd.
1230 * m/pmax.h: Remove file.
1231
1232 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1233
1234 * xterm.h (struct x_display_info): Add invisible_cursor.
1235 (struct x_output): Add current_cursor.
1236
1237 * xterm.c (XTtoggle_invisible_pointer): New function.
1238 (x_define_frame_cursor): Don't define cursor if invisible or the
1239 same as before. Set current_cursor.
1240 (x_create_terminal): Set toggle_invisible_pointer_hook.
1241
1242 * xfns.c (make_invisible_cursor): New function.
1243 (x_set_mouse_color): Call make_invisible_cursor.
1244 Set current_cursor.
1245 (x_window): Set current_cursor.
1246
1247 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1248
1249 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1250 inserting a character.
1251 (read_avail_input): Call frame_make_pointer_visible.
1252
1253 * frame.c (Vmake_pointer_invisible): New variable.
1254 (frame_make_pointer_invisible, frame_make_pointer_visible):
1255 New functions.
1256 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1257
1258 * frame.h: Declare frame_make_pointer_invisible and
1259 frame_make_pointer_visible.
1260 (struct frame): Add pointer_invisible.
1261
1262 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1263
1264 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1265 frame isn't visible.
1266 (xg_frame_resized): If width/height is -1, get size of window
1267 from X server.
1268
1269 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1270 for MapNotify.
1271
1272 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
1273 here or call change_frame_size. Just call flush_and_sync.
1274 (flush_and_sync): Reintroduce.
1275
1276 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
1277
1278 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
1279
1280 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1281 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1282
1283 * frame.h: Declare Qsticky.
1284
1285 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1286
1287 * nsfns.m (ns_frame_parm_handlers): Ditto.
1288
1289 * frame.c: Declare Qsticky.
1290 (frame_parms): Add sticky.
1291
1292 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1293
1294 * xterm.h: Declare x_set_sticky.
1295
1296 * xterm.c (x_set_sticky): New function.
1297
1298 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1299 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1300 xg_tool_bar_proxy_help_callback.
1301
1302 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1303
1304 * frame.c: Qmaximized is new.
1305 (x_set_frame_parameters): Do not handle fullscreen specially.
1306 Only set width and height if explicitly set.
1307 (x_set_fullscreen): Handle Qmaximized.
1308 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1309 (syms_of_frame): Initialize Qmaximized.
1310
1311 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1312 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
1313
1314 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
1315 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1316 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
1317 set gravity to NorthWestGravity when USE_GTK.
1318 (set_wm_state): New function.
1319 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
1320 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1321 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
1322 or the case when no window manager is running. That means remove calls
1323 to x_real_positions and x_fullscreen_adjust.
1324
1325 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1326 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1327 flush_and_sync.
1328 (xg_height_changed): New function.
1329 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1330 and gtk_window_set_policy. Set frame gravity after parsing the
1331 geometry string.
1332 (xg_update_frame_menubar, free_frame_menubar)
1333 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1334 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1335 Remove calls to xg_frame_set_char_size.
1336
1337 2009-07-01 Kenichi Handa <handa@m17n.org>
1338
1339 * keyboard.c (decode_keyboard_code): New function.
1340 (tty_read_avail_input): Decode the input bytes if necessary.
1341
1342 * coding.c (setup_coding_system):
1343 Initialize coding->carryover_bytes to 0.
1344 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1345 use Qno_conversion.
1346
1347 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1348
1349 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1350
1351 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
1352
1353 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
1354
1355 2009-06-30 Jason Rumney <jasonr@gnu.org>
1356
1357 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1358 is already loaded.
1359 Set user model ID if supported (bug#1849).
1360
1361 2009-06-29 Jim Meyering <meyering@redhat.com>
1362
1363 Remove useless if-before-xfree test.
1364 * nsfont.m (nsfont_close): Remove useless test.
1365 * term.c (delete_tty): Likewise.
1366 * w32.c (system_process_attributes): Likewise.
1367 * w32font.c (w32font_close): Likewise.
1368 * xfaces.c (x_free_gc): Likewise.
1369 * xselect.c (buffer): Likewise.
1370
1371 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1372
1373 * process.c (send_process): Keep decoded string in a local
1374 variable and protect it from GC. (Bug#3521)
1375
1376 2009-06-28 Eli Zaretskii <eliz@gnu.org>
1377
1378 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1379 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1380
1381 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
1382
1383 * xdisp.c (start_display, handle_face_prop)
1384 (move_it_vertically_backward, cursor_row_fully_visible_p)
1385 (redisplay_window, try_window_id, produce_image_glyph):
1386 Delete some #ifdef-ed out code chunks that are now obsolete.
1387
1388 * xterm.c (x_update_window_begin, x_new_focus_frame)
1389 (x_scroll_bar_handle_click, handle_one_xevent)
1390 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1391 (x_make_frame_visible, x_make_frame_invisible)
1392 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1393 code chunks that are now obsolete.
1394
1395 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
1396
1397 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1398 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1399 for hours, when optimzation is enabled.
1400 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1401 (xd_read_message): Make them static.
1402
1403 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1404
1405 * term.c (turn_on_face): Allow simultaneously bold and dim
1406 terminal faces (Bug#3530).
1407
1408 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
1409
1410 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1411
1412 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1413 truncation glyphs (Bug#3686).
1414
1415 2009-06-27 Glenn Morris <rgm@gnu.org>
1416
1417 * m/pmax.h: Restore file, with only netbsd portions.
1418
1419 2009-06-26 David Reitter <david.reitter@gmail.com>
1420
1421 * nsterm.m (keydown): Avoid infinite loop.
1422
1423 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1424
1425 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1426 the arg FORCE_SYMBOL.
1427
1428 2009-06-25 Kenichi Handa <handa@m17n.org>
1429
1430 * fontset.c (fontset_find_font): When a usable rfont_def is found
1431 in a fallback font-group, make it the first element of the group.
1432
1433 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
1434
1435 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1436
1437 2009-06-24 Kenichi Handa <handa@m17n.org>
1438
1439 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1440 set for C.
1441 (fontset_font): Record the availability of a font for C both in
1442 the realized fontsets of the current one and the default one.
1443
1444 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1445
1446 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1447 conditional, it is always defined on AIX.
1448
1449 2009-06-23 Miles Bader <miles@gnu.org>
1450
1451 * window.c (Vrecenter_redisplay): New variable.
1452 (syms_of_window): Initialize it.
1453 (Qtty): New extern declaration.
1454 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1455
1456 2009-06-23 Jim Meyering <meyering@redhat.com>
1457
1458 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1459 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
1460 pointer dereferences are guaranteed to be valid.
1461
1462 2009-06-23 Kenichi Handa <handa@m17n.org>
1463
1464 * emacs.c (main): Call init_font ().
1465
1466 * font.h (Vfont_log): Extern it.
1467 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1468
1469 * font.c (font_sort_entities, font_list_entities)
1470 (font_matching_entity, font_open_entity)
1471 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1472 (Vfont_log): Delete static.
1473 (font_log_env_checked): Delete this variable.
1474 (font_add_log): Don't check font_log_env_checked.
1475 (font_deferred_log): Check Vfont_log.
1476 (init_font): New function.
1477
1478 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1479
1480 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1481
1482 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1483
1484 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1485
1486 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1487 (face_for_char): Don't call font_deferred_log here.
1488 (font_for_char): Likewise.
1489
1490 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
1491
1492 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1493 rather than its background_width for drawing the overline and
1494 underline (Bug#489).
1495
1496 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1497 rather than its background_width for drawing the overline and
1498 underline (Bug#489).
1499 (xg_default_icon_file): New variable.
1500 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1501 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
1502
1503 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1504 (load_overlay_strings): Remove externs.
1505 (fast_find_position): Function deleted.
1506 (mouse_face_from_buffer_pos): New function, based on
1507 fast_find_position. Correctly handle before-strings,
1508 display-strings, and after-strings (Bug#1220).
1509 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1510
1511 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
1512
1513 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
1514 (move_it_in_display_line_to, move_it_in_display_line_to)
1515 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1516
1517 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
1518
1519 * Branch for 23.1.
1520
1521 2009-06-21 Jason Rumney <jasonr@gnu.org>
1522
1523 * w32term.c (keyboard_codepage): New static variable.
1524 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1525 (w32_read_socket) [WM_CHAR]: Use it to decode character
1526 input (bug#3237).
1527 (w32_initialize): Initialize it.
1528 (codepage_for_locale): New function.
1529
1530 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
1531
1532 * process.c (status_message): Pass Faset index argument as a lisp
1533 object, so as to work with USE_LISP_UNION_TYPE.
1534
1535 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1536
1537 * coding.c (Ffind_coding_systems_region_internal):
1538 Cache checked characters.
1539
1540 2009-06-18 Kenichi Handa <handa@m17n.org>
1541
1542 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
1543
1544 2009-06-18 Andreas Schwab <aschwab@redhat.com>
1545
1546 * xdisp.c (redisplay_internal): Check that the frame is still
1547 live after redisplay of its windows.
1548 (redisplay_windows): Check that the window is still live.
1549
1550 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1551
1552 * coding.c (detect_coding_utf_16): Fix previous change.
1553
1554 2009-06-16 Kenichi Handa <handa@m17n.org>
1555
1556 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1557 UTF-16 by checking the dispersion of Eth and Oth bytes.
1558
1559 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1560
1561 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1562
1563 2009-06-15 Kenichi Handa <handa@m17n.org>
1564
1565 * process.c (status_message): Fix previous change. Be sure to
1566 decode a localized string.
1567
1568 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1569
1570 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1571 add comment explaining why.
1572
1573 2009-06-14 Sidney Markowitz <sidney@sidney.com>
1574
1575 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
1576
1577 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1578
1579 * nsfont.m (ns_attribute_value): Remove.
1580 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1581 (ns_has_attribute): Shrink the normal range.
1582 (ns_findfonts): Don't worry about requested spec in determining
1583 need for synthItal.
1584 (ns_get_covering_families): Retain scriptToFamilies.
1585
1586 2009-06-14 Seiji Zenitani <zenitani@mac.com>
1587
1588 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1589
1590 2009-06-11 Kenichi Handa <handa@m17n.org>
1591
1592 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1593 overhang for the static composition case.
1594
1595 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1596
1597 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1598 overhang for the automatic composition case.
1599
1600 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1601 composition case.
1602
1603 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
1604
1605 * xdisp.c (get_next_display_element): When handling wrap-prefix
1606 and line-prefix, treat \n as a control character (bug#3502).
1607
1608 2009-06-10 Kenichi Handa <handa@m17n.org>
1609
1610 * font.c (font_parse_family_registry): Fix for one-char foundry.
1611 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1612
1613 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1614
1615 * process.c (status_message): Fix handling of multibyte signal
1616 string (Bug#3499).
1617
1618 2009-06-09 Jim Meyering <meyering@redhat.com>
1619
1620 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1621 color name is missing.
1622
1623 2009-06-09 Kenichi Handa <handa@m17n.org>
1624
1625 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1626 FROM-CODE and TO-CODE are codepoints of CHARSET.
1627
1628 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1629
1630 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1631
1632 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1633
1634 Changes to support :script/:lang/:otf in NS font driver.
1635 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1636 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1637 indicate not part of font driver interface, and change callers.
1638 (ns_get_family): Remove pointless null check.
1639 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1640 ns_spec_to_descriptor, ns_descriptor_to_entity.
1641 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1642 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1643 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1644 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1645 (ns_get_req_script, ns_accumulate_script_ranges)
1646 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1647 New functions.
1648 (nsfont_list, nsfont_match): Use ns_findfonts.
1649 (nsfont_open): Use font descriptor instead of traits.
1650 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1651 (dump_glyphstring): Rename to ns_dump_glyphstring.
1652
1653 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1654
1655 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1656
1657 * fontset.c (fontset_from_font): Remove NS-specific code.
1658
1659 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
1660
1661 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1662 nonactive windows.
1663
1664 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
1665
1666 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
1667
1668 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
1669
1670 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1671
1672 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
1673
1674 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1675 account for the overflowing of newlines into the last glyph on the
1676 display line (Bug#3482).
1677
1678 2009-06-05 David Reitter <david.reitter@gmail.com>
1679
1680 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
1681 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
1682 Fns_selection_exists_p, Fns_selection_owner_p.
1683
1684 2009-06-03 Jason Rumney <jasonr@gnu.org>
1685
1686 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
1687 available. (Bug#3379)
1688
1689 2009-05-29 Kenichi Handa <handa@m17n.org>
1690
1691 * coding.c (get_translation_table):
1692 Check Venable_character_translation.
1693
1694 2009-05-26 David Reitter <david.reitter@gmail.com>
1695
1696 * nsterm.m (ns_raise_frame): Only raise frame if visible.
1697 (x_make_frame_visible): Move frame to front rather than calling
1698 ns_raise_frame().
1699 (keyDown:): Do not swallow events that aren't re-sent if frame
1700 isn't key window.
1701 (drawRect:): Do not set visibility/iconified flags because
1702 drawRect may be called by NSView even if the frame is hidden.
1703
1704 * nsfns.m (Fx_create_frame): Follow other ports in
1705 determining visibility; default to t. Ensure async_visible is set.
1706
1707 2009-05-23 Eli Zaretskii <eliz@gnu.org>
1708
1709 * dired.c (Ffile_attributes): Doc fix.
1710
1711 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
1712
1713 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
1714
1715 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
1716
1717 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
1718 and xfont_scratch_props.
1719 (syms_of_xfont): Do it here instead.
1720 (xfont_find_ccl_program): Delete, unused.
1721 (xfont_open): Delete unused var `i'.
1722
1723 2009-05-21 Kenichi Handa <handa@m17n.org>
1724
1725 * fontset.c (Qlatin): Don't make it static.
1726
1727 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
1728 New functions.
1729 (xfont_scripts_cache, xfont_scratch_props): New variables.
1730 (Qlatin, Vscalable_fonts_allowed): Extern it.
1731 (xfont_list_pattern): Argument changed. Callers changed.
1732 Check Vscalable_fonts_allowed. Check the support of a script.
1733 (xfont_list): Don't reject a font spec with :script property.
1734 (xfont_has_char): Fix setting of encoding.
1735 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
1736 xfont_scratch_props.
1737
1738 2009-05-19 Kenichi Handa <handa@m17n.org>
1739
1740 * font.c (font_sort_entities): Rename from font_sort_entites.
1741 Callers changed.
1742
1743 2009-05-18 Kenichi Handa <handa@m17n.org>
1744
1745 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
1746
1747 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1748
1749 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
1750 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
1751
1752 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1753
1754 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
1755 (x_delete_terminal): Dissociate resource database from display and
1756 then call XrmDestroyDatabase before closing display.
1757
1758 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1759
1760 * nsterm.m (ns_read_socket): Remove unused variable.
1761 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
1762 whether selected frame is viable before raising it (based on patch
1763 by David Reitter), and improve commentary.
1764 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
1765
1766 2009-05-15 Kenichi Handa <handa@m17n.org>
1767
1768 * font.c (Ffont_spec): Check arguments.
1769
1770 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
1771
1772 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
1773 weight when testing attributes (Bug#3282).
1774
1775 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1776
1777 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
1778 what we expect to get in the next ConfigureNotify event.
1779
1780 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
1781 before Xft one (Bug#1696).
1782
1783 2009-05-07 David Reitter <david.reitter@gmail.com>
1784
1785 * nsfns.m (Fx_display_planes): Compute bitplanes using
1786 NSBitsPerPixelFromDepth (Bug#3207).
1787
1788 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
1789
1790 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
1791
1792 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
1793
1794 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
1795
1796 2009-05-07 David Reitter <david.reitter@gmail.com>
1797
1798 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
1799 Respect mouse face background.
1800
1801 2009-05-07 David Reitter <david.reitter@gmail.com>
1802
1803 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
1804 Mouse movement/highlight: bracket drawing operations
1805 in ns_update_begin and ns_update_end.
1806
1807 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1808
1809 * nsfns.m (ns_get_screen): Rewrite.
1810 Don't presume selected-frame is of type `ns'.
1811
1812 * font.c (font_update_drivers): Sanity fallback to avoid disabling
1813 all drivers.
1814
1815 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
1816
1817 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1818
1819 * keyboard.h (add_user_signal): Fix typo in extern.
1820
1821 * lisp.h (add_user_signal): Remove extern.
1822
1823 * unexelf.c (unexec): Consider a section to precede the .bss section
1824 if its addresses overlap that of .bss.
1825 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
1826 instead of dumping process.
1827
1828 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1829
1830 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
1831
1832 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1833
1834 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
1835
1836 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1837
1838 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
1839 any statements.
1840
1841 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
1842
1843 * process.c (read_process_output): Make sure the current buffer is
1844 always restored.
1845
1846 * coding.c (record_conversion_result): Don't modify
1847 Vlast_code_conversion_error for successful result.
1848 (alloc_destination): Don't clobber conversion result. (Bug#1650)
1849
1850 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1851
1852 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
1853 (load_charset_map): Remove unnecessary code.
1854
1855 2009-04-30 David Reitter <david.reitter@gmail.com>
1856
1857 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
1858 through f24.
1859
1860 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
1861
1862 * xfaces.c (face_at_buffer_position): New arg base_face_id.
1863
1864 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
1865 face_at_buffer_position.
1866 (face_before_or_after_it_pos, get_next_display_element)
1867 (note_mouse_highlight): Update face_at_buffer_position call.
1868
1869 * term.c (term_mouse_highlight):
1870 * msdos.c (IT_note_mouse_highlight):
1871 * fontset.c (Finternal_char_font):
1872 * font.c (font_at, font_range): Update face_at_buffer_position call.
1873
1874 * dispextern.h (face_at_buffer_position): Update prototype.
1875
1876 2009-04-30 Kenichi Handa <handa@m17n.org>
1877
1878 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
1879
1880 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
1881
1882 * callproc.c (Fcall_process): Fix GC protection. Make sure
1883 current buffer is always restored.
1884
1885 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1886
1887 * atimer.c (init_atimer): Also clear stopped_atimers.
1888
1889 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
1890
1891 * process.c (create_process): Clean up merger residues of
1892 2008-07-17 change.
1893
1894 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
1895
1896 * lread.c (Vread_circle): New variable.
1897 (read1): Disable recursive read if Vread_circle is nil.
1898
1899 2009-04-29 Kenichi Handa <handa@m17n.org>
1900
1901 * fontset.h (set_default_ascii_font): Delete extern.
1902
1903 * fontset.c (set_default_ascii_font): Delete this unused function.
1904
1905 * frame.c (x_set_font): When ARG is a font-object, check if the
1906 font-object matches with the ASCII font-spec of the frame's
1907 fontset. If not, create a new fontset for the frame. (Bug #3075)
1908
1909 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
1910
1911 * fns.c (Flocale_info): Protect vector from GC during decoding.
1912
1913 * process.c (Fstart_process): Protect argv strings from GC during
1914 encoding.
1915
1916 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
1917
1918 * sysdep.c: Include <ctype.h>.
1919
1920 2009-04-27 David Reitter <david.reitter@gmail.com>
1921
1922 * nsfont.m (nsfont_open): Remove unused variable shrink.
1923 Remove commented-out code.
1924
1925 2009-04-26 Johan Bockgård <bojohan@gnu.org>
1926
1927 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1928
1929 2009-04-25 Jason Rumney <jasonr@gnu.org>
1930
1931 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
1932
1933 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1934
1935 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
1936 Swap bytes in short integer if fringe bitmap width > 8.
1937
1938 2009-04-23 Kenichi Handa <handa@m17n.org>
1939
1940 * xfaces.c (Fx_list_fonts): If a font size is specified in
1941 PATTERN, set it in returned scalable fonts.
1942
1943 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
1944
1945 * keyboard.c (Fset_input_meta_mode): Doc fix.
1946
1947 * dispnew.c (Fsend_string_to_terminal): Doc fix.
1948
1949 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
1950
1951 * coding.c (Fterminal_coding_system): Doc fix.
1952
1953 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
1954 (Fx_display_pixel_height, Fx_display_planes)
1955 (Fx_display_color_cells, Fx_server_max_request_size)
1956 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1957 (Fx_display_mm_height, Fx_display_mm_width)
1958 (Fx_display_backing_store, Fx_display_visual_class)
1959 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
1960 Doc fixes, replacing "terminal id" with "terminal object".
1961 (check_x_display_info): Handle terminal objects instead of
1962 terminal ids.
1963
1964 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
1965 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1966 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
1967 Doc fixes, replacing "terminal id" with "terminal object".
1968
1969 2009-04-21 Kenichi Handa <handa@m17n.org>
1970
1971 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
1972 (font_score): Check AVGWIDTH too.
1973
1974 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
1975 worst case.
1976 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
1977 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
1978
1979 2009-04-19 Jason Rumney <jasonr@gnu.org>
1980
1981 The following changes fix Bug#3005 for wide glyphs on each platform,
1982 without reintroducing Bug#1258 for stretch glyphs.
1983
1984 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
1985 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
1986 get_phys_cursor_geometry.
1987
1988 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
1989 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
1990 using get_phys_cursor_geometry.
1991
1992 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
1993 correctly calculated.
1994
1995 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
1996
1997 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
1998 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
1999 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2000 is deprecated.
2001
2002 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2003
2004 * font.c (font_put_frame_data): Use xfree instead of free.
2005
2006 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
2007
2008 * w32font.c (Qja, Qko): Remove declarations.
2009 (syms_of_w32font): Don't DEFSYM them.
2010
2011 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
2012
2013 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2014
2015 * font.h (Qja, Qko): Extern them.
2016
2017 * ftfont.c (Qja, Qko): Remove declarations.
2018
2019 * xfont.c (Qja, Qko): Remove declarations.
2020
2021 2009-04-17 Kenichi Handa <handa@m17n.org>
2022
2023 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2024 string from a vector to handle Latin-1 characters correctly.
2025
2026 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2027 entity even if the cache hits.
2028
2029 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2030
2031 * search.c (boyer_moore): Use zero as marker value for a possible
2032 match instead of depending on overflow behavior. (Bug#2844)
2033
2034 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2035 * lisp.h: Adjust prototypes.
2036
2037 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
2038
2039 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2040 change (Bug#3003).
2041
2042 2009-04-16 Kenichi Handa <handa@m17n.org>
2043
2044 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
2045
2046 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2047 adstyle.
2048
2049 * ftfont.c (Qja, Qko): Don't make them static.
2050 (enum ftfont_cache_for): New enum.
2051 (fc_charset_table): Undo the previous change.
2052 (ftfont_get_latin1_charset): Delete it.
2053 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2054 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
2055 non-scarable font, try to get AVERAGE_WIDTH.
2056 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2057 Change ft_face_cache from a list of a hash-table. Don't check
2058 `ja' and `ko' adstyle here.
2059 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2060 FTFONT_CACHE_FOR_CHARET.
2061 (ftfont_get_charset): Undo the previous change.
2062 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
2063 (ftfont_close): Likewise.
2064 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2065
2066 * font.c (font_sort_entites): Change the meaning of the arg
2067 BEST-ONLY. Don't optimize for VEC of lenght 1.
2068 (font_select_entity): Just return the value of font_sort_entites.
2069
2070 * xfaces.c (merge_face_vectors): Reflect font properties in
2071 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2072 font_clear_prop if a face attribute doesn't change.
2073
2074 * charset.h (charset_ksc5601): Extern it.
2075
2076 * charset.c (charset_ksc5601): New variable.
2077 (Fdefine_charset_internal): Set charset_ksc5601.
2078 (init_charset_once): Initialize charset_ksc5601 to -1.
2079
2080 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2081
2082 * fileio.c (history_delete_duplicates): Remove unused declaration.
2083
2084 * callint.c (history_delete_duplicates): New declaration.
2085 (Fcall_interactively): Remove command history duplicates when
2086 history_delete_duplicates is true.
2087
2088 2009-04-14 Eli Zaretskii <eliz@gnu.org>
2089
2090 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2091
2092 2009-04-14 Kenichi Handa <handa@m17n.org>
2093
2094 * font.c (Ffont_info): Fix docstring. Fix the second element of
2095 the returned value (bug#2949).
2096
2097 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
2098
2099 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2100
2101 2009-04-14 Kenichi Handa <handa@m17n.org>
2102
2103 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2104 encoding charset is ascii_compatible.
2105
2106 * charset.c (Fdefine_charset_internal): Make charset
2107 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2108 code_offset is 0, and covers all ASCII characters.
2109
2110 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2111
2112 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2113 (ns_string_to_pasteboard_internal):
2114 * nsmenu.m (process_dialog):
2115 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2116 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2117 * lisp.h (Fx_load_color_file): Declare.
2118
2119 2009-04-13 Kenichi Handa <handa@m17n.org>
2120
2121 * font.c (font_delete_unmatched): Preserve the order of list elements.
2122 (font_select_entity): Suppress the code to optimize for the same
2123 kind of fonts.
2124 (font_load_for_lface): Get a font that supports at least ASCII
2125 characters.
2126
2127 * ftfont.c (Qja, Qko): New variables.
2128 (fc_charset_table): Delete uniquifier data for iso8859-1.
2129 (ftfont_get_latin1_charset): New function.
2130 (get_adstyle_property): New function.
2131 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2132 bitmap fonts.
2133 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2134 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2135 `ko' or `ja'.
2136 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
2137 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
2138 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2139 property.
2140 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2141 (syms_of_ftfont): DEFSYM Qja and Qko.
2142
2143 2009-04-09 Kenichi Handa <handa@m17n.org>
2144
2145 * charset.c (map_charset_chars): For a charset of `superset'
2146 method, fix calculation of code range.
2147
2148 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2149 from the list of extra properties.
2150 (font_clear_prop): Be sure to delete `:name' font property.
2151
2152 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2153
2154 * dispnew.c (redraw_overlapping_rows): Fix detection of
2155 overlapping for topmost and bottommost rows.
2156
2157 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
2158
2159 2009-04-06 Jason Rumney <jasonr@gnu.org>
2160
2161 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2162
2163 2009-04-06 Kenichi Handa <handa@m17n.org>
2164
2165 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2166
2167 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2168
2169 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2170
2171 * ftfont.c (ftfont_open): Fix checking of the return value of
2172 FT_Load_Char. Fix setting font->underline_thickness.
2173
2174 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
2175
2176 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2177 (Fterminal_parameters, Fterminal_parameter)
2178 (Fset_terminal_parameter): In doc string, refer to terminal
2179 objects rather than terminal ids.
2180
2181 2009-04-04 Eli Zaretskii <eliz@gnu.org>
2182
2183 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2184 ret_lim_data. (Bug#2867)
2185
2186 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
2187
2188 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2189 so they don't get wider than the window, matching 2006-01-23
2190 change to the partner function in xdisp.c (Bug#2800).
2191
2192 2009-04-03 Kenichi Handa <handa@m17n.org>
2193
2194 * print.c (print_object): Make each lowest sub_char_table start a
2195 new line (Bug#2866).
2196
2197 2009-04-02 Kenichi Handa <handa@m17n.org>
2198
2199 * fontset.c (fontset_font): Record no-font when a fontset
2200 explicitly tells not to try another font-specs.
2201
2202 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2203
2204 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2205
2206 2009-03-30 Kenichi Handa <handa@m17n.org>
2207
2208 * fontset.c (fontset_from_font): Specify only registry in a
2209 font-spec for all characters supported by that registry.
2210
2211 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2212 even if HAVE_M17N_FLT is not defined.
2213
2214 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2215
2216 * ftfont.c: Conditionalize prototyping and use of
2217 ftfont_variation_glyphs.
2218
2219 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2220
2221 * frame.c (delete_frame): Work around compiler bug.
2222
2223 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2224 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2225 Some more EMACS_INT.
2226 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2227
2228 * xdisp.c (dump_glyph): Fix typo.
2229
2230 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2231 (adjust_markers_gap_motion, adjust_markers_for_delete)
2232 (adjust_markers_for_insert, adjust_point)
2233 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2234 (make_gap, copy_text, count_size_as_multibyte, insert)
2235 (insert_and_inherit, insert_before_markers)
2236 (insert_before_markers_and_inherit, insert_1)
2237 (count_combining_before, count_combining_after, insert_1_both)
2238 (insert_from_string, insert_from_string_before_markers)
2239 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2240 (insert_from_buffer_1, adjust_after_replace)
2241 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2242 (replace_range_2, del_range, del_range_1, del_range_byte)
2243 (del_range_both, del_range_2, modify_region)
2244 (prepare_to_modify_buffer, signal_before_change)
2245 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2246 for buffer positions and sizes.
2247 * lisp.h: Adjust prototypes accordingly.
2248
2249 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2250 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2251 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2252
2253 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2254
2255 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2256
2257 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2258 lines and columns so we keep the same pixel height and width.
2259
2260 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2261 the property _NET_WM_STATE has changed.
2262 (x_handle_net_wm_state): New function to update frame parameter
2263 fullscreen.
2264 (x_term_init): Initialize atoms for _NET_WM_STATE.
2265
2266 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2267
2268 2009-03-27 Kevin Ryde <user42@zip.com.au>
2269
2270 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2271 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2272 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2273 (Fgpm_mouse_stop): Pass that new parameter.
2274 * termhooks.h (close_gpm): Adjust prototype.
2275
2276 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2277
2278 * lisp.h (Fx_focus_frame): Declare.
2279
2280 * callint.c (Fcall_interactively): For '^' just delegate the work to
2281 handle-shift-selection.
2282 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2283
2284 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
2285
2286 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2287
2288 * data.c (Qinteractive_form): New variable.
2289 (Finteractive_form): Use it.
2290
2291 * eval.c (Fcommandp): Use Qinteractive_form.
2292
2293 2009-03-24 Jason Rumney <jasonr@gnu.org>
2294
2295 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2296 Calculate total size precisely. Decode environment variables
2297 before substituting. (Bug#38)
2298
2299 2009-03-24 Kenichi Handa <handa@m17n.org>
2300
2301 * font.c (find_font_encoding): Return Qnil for unsupported
2302 encoding (Bug#2722).
2303
2304 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2305
2306 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2307 that gdpy is set.
2308
2309 2009-03-22 Alan Mackenzie <acm@muc.de>
2310
2311 * callint.c (Finteractive): Clarify the doc string - even
2312 promptless elements need \n separators.
2313
2314 2009-03-22 Jason Rumney <jasonr@gnu.org>
2315
2316 * w32term.c (syms_of_w32term): Doc fix for
2317 x-use-underline-position-properties.
2318
2319 2009-03-21 Eli Zaretskii <eliz@gnu.org>
2320
2321 * w32.c (getpwuid): Change argument type to unsigned.
2322 (struct w32_id): Change type of `rid' member to unsigned.
2323 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2324 argument ID to unsigned. All callers changed.
2325 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2326
2327 2009-03-20 Eli Zaretskii <eliz@gnu.org>
2328
2329 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2330 negative, produce a float value.
2331
2332 * dired.c (make_uid, make_gid): New functions.
2333 (Ffile_attributes): Use them to avoid negative UID and GID.
2334
2335 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
2336
2337 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2338 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2339 Fix typos in docstrings.
2340
2341 2009-03-19 Kenichi Handa <handa@m17n.org>
2342
2343 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
2344 changed, use font_load_for_lface to get a new font object.
2345 Call free_realized_fontset after handling ASCII font change.
2346
2347 * frame.c (x_set_font): Handle the case that ARG is a cons.
2348
2349 2009-03-19 Glenn Morris <rgm@gnu.org>
2350
2351 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2352
2353 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
2354
2355 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2356
2357 2009-03-19 Kenichi Handa <handa@m17n.org>
2358
2359 * charset.c (load_charset_map_from_file): When a mapfile can't be
2360 loaded, signal an error.
2361
2362 2009-03-18 Eli Zaretskii <eliz@gnu.org>
2363
2364 * dired.c (Ffile_attributes): Make sure UID and GID are always
2365 positive, even if the value is too large for a positive EMACS_INT.
2366 Doc fix.
2367
2368 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2369
2370 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2371
2372 * xmenu.c (xdialog_show): Move Fredisplay call ...
2373 (Fx_popup_dialog): ... here.
2374
2375 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2376
2377 * dired.c (file_name_completion): Disable the first optimization just
2378 installed, since it is not implemented correctly.
2379
2380 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2381
2382 * dired.c (file_name_completion): Check completion-ignored-extensions
2383 only if the entry can affect bestmatch.
2384 Stop the search early, as Ftry_completion already does.
2385
2386 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
2387
2388 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
2389
2390 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
2391
2392 * keyboard.c (parse_menu_item): Don't display remappings as menu
2393 equivalent bindings (Bug#788).
2394
2395 2009-03-15 Jason Rumney <jasonr@gnu.org>
2396
2397 * w32term.h (WM_EMACS_PAINT): New message.
2398 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2399 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2400 before passing to lisp thread. (Bug#950)
2401
2402 2009-03-14 David Reitter <david.reitter@gmail.com>
2403
2404 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2405 variable as it was never reset.
2406 (ns_term_init): Remove initialization of Lisp-settable defaults
2407 and ns_expand_space.
2408 (-setPanelFromDefaultValues): Remove ns_expand_space.
2409 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2410 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
2411 i.e. no additional spacing, similar to Carbon port.
2412
2413 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2414 * nsfns.m (ns-popup-prefs-panel): Remove.
2415
2416 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2417
2418 * sound.c (alsa_configure): Remove call to deprecated
2419 snd_pcm_sw_params_set_xfer_align.
2420
2421 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
2422
2423 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2424 after clicking in a detached tool bar.
2425 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2426
2427 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2428
2429 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2430 int/Lisp_Object mixup).
2431
2432 2009-03-13 Kenichi Handa <handa@m17n.org>
2433
2434 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
2435 Handle NAME nil and t correctly. Callers changed.
2436 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2437 (set_fontset_font): Change ARG to a vector. Handle range_list in
2438 ARG correctly.
2439 (Fset_fontset_font): Fix the case that TARGET is both a script
2440 name and charset name. Adjust the arg to set_fontset_font for
2441 the above change.
2442 (fontset_from_font): Fix previous change.
2443 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
2444 entry. If FONTSET is the default fontset, don't set the extra
2445 slot of the returning char-table.
2446
2447 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
2448
2449 * nsfns.m (Fx_close_connection): Doc fix.
2450 (Fns_do_applescript): Reflow docstring.
2451 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2452 (Fx_display_pixel_width, Fx_display_pixel_height)
2453 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2454 Fix typos in docstrings.
2455 (Fns_set_alpha): Fix typos in error messages.
2456
2457 2009-03-12 David Reitter <david.reitter@gmail.com>
2458
2459 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
2460 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2461 were used for such events.
2462
2463 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2464 (toggleToolbar, performDragOperation, runHelp): Use it.
2465
2466 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
2467 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2468
2469 2009-03-11 Kenichi Handa <handa@m17n.org>
2470
2471 * font.h (font_open_by_spec): Extern it.
2472
2473 * font.c (font_open_by_spec): New function.
2474 (font_open_by_name): Use font_open_by_spec.
2475
2476 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2477 fontset of the frame.
2478
2479 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2480 modify the default font of frames that use this fontset.
2481 (num_auto_fontsets): New variable.
2482 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2483 name. Be sure to set FONTSET_ASCII to the correct font name.
2484 (update_auto_fontset_alist): New function.
2485
2486 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
2487
2488 * makefile.w32-in: Update dependencies.
2489
2490 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2491
2492 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2493
2494 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2495
2496 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2497
2498 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
2499
2500 * lread.c (Feval_buffer): Doc fix.
2501
2502 2009-03-09 Kenichi Handa <handa@m17n.org>
2503
2504 * charset.c (Qfile_name_handler_alist): Extern it.
2505 (load_charset_map_from_file): Temporarily bind
2506 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2507
2508 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
2509
2510 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2511 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
2512
2513 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2514
2515 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2516 (x_set_window_size): Change back to calculated method of setting
2517 toolbar height under Cocoa. (Bug#2546)
2518 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2519 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2520
2521 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2522
2523 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2524 accelerator in parens under GNUstep.
2525
2526 2009-03-06 Kenichi Handa <handa@m17n.org>
2527
2528 These changes are to detect incorrect composition sequence without
2529 looking ahead the source. (Bug#2370)
2530
2531 * coding.h: Include "composite.h".
2532 (enum compisition_state): New enum.
2533 (struct compisition_status): New struct.
2534 (struct iso_2022_spec): New member cmp_status.
2535 (struct emacs_mule_spec): New struct.
2536 (struct coding_system): New members ctext_extended_segment_len and
2537 embedded_utf_8. Change the union member
2538 spec.emacs_mule_full_support to spec.emacs_mule.
2539
2540 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2541 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
2542 (MAX_ANNOTATION_LENGTH): Define to 5.
2543 (ADD_COMPOSITION_DATA): New arg nbytes.
2544 (emacs_mule_char): New arg cmp_status.
2545 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2546 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2547 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2548 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2549 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2550 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2551 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2552 (EMACS_MULE_COMPOSITION_END): New macro.
2553 (emacs_mule_finish_composition): New function.
2554 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2555 (decode_coding_emacs_mule): Avoid long looking ahead while
2556 handling composition.
2557 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2558 (ENCODE_COMPOSITION_RULE): New macro.
2559 (finish_composition): New function.
2560 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2561 (DECODE_COMPOSITION_START): New implementation.
2562 (DECODE_COMPOSITION_END): Likewise.
2563 (STORE_COMPOSITION_RULE): New macro.
2564 (decode_coding_iso_2022): Avoid long looking ahead while handling
2565 composition, CTEXT extended segment, and embedded UTF-8.
2566 (setup_coding_system): For a coding of type iso-2022, reset
2567 CODING_ISO_EXTSEGMENT_LEN (coding) and
2568 CODING_ISO_EMBEDDED_UTF_8 (coding).
2569 (get_translation): Delete arguments last_block, from_nchars,
2570 to_nchars. Callers changed.
2571 (produce_chars): Don't modify charbuf. Adjusted for the change of
2572 get_translation.
2573 (produce_composition): Adjust for the new annotation sequence.
2574 (handle_composition_annotation): Likewise.
2575 (consume_chars): Adjust for the change of get_translation.
2576
2577 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2578
2579 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
2580
2581 2009-03-05 Kenichi Handa <handa@m17n.org>
2582
2583 * font.c (font_select_entity): New function.
2584 (font_find_for_lface): Use font_select_entity to select a font.
2585
2586 * fontset.c (fontset_find_font): If a font found without
2587 restricting to the characters C doesn't support C, try to find a
2588 font with C restriction.
2589
2590 2009-03-04 Nikolaj Schumacher <me@nschum.de>
2591
2592 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2593
2594 2009-03-04 Jason Rumney <jasonr@gnu.org>
2595
2596 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
2597 characters that have already been read. (Bug#2569)
2598
2599 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2600 Log an error message if check_image_size failed.
2601 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
2602 (gs_load): Mention max-image-size in size error message. (Bug#2560)
2603
2604 2009-03-02 Eli Zaretskii <eliz@gnu.org>
2605
2606 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2607 when decoding process output.
2608
2609 2009-03-01 Richard M Stallman <rms@gnu.org>
2610
2611 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2612
2613 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2614
2615 2009-02-28 Eli Zaretskii <eliz@gnu.org>
2616
2617 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2618 (decode_coding_emacs_mule, decode_coding_iso_2022)
2619 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2620 (decode_coding_raw_text, decode_coding_charset)
2621 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2622 Honor inhibit-eol-conversion. (Bug #2186)
2623
2624 2009-02-28 Jason Rumney <jasonr@gnu.org>
2625
2626 * coding.c (detect_coding_charset): If not checking latin extra,
2627 fail on characters between 0x80 and 0xA0. (Bug#2354)
2628
2629 2009-02-28 Eli Zaretskii <eliz@gnu.org>
2630
2631 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2632 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
2633
2634 2009-02-27 Glenn Morris <rgm@gnu.org>
2635
2636 * callint.c (Finteractive): Doc fix.
2637
2638 2009-02-27 Kenichi Handa <handa@m17n.org>
2639
2640 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2641
2642 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
2643
2644 * font.c (font_style_to_value): Set value for unknown symbols to
2645 100 instead of 255.
2646 (weight_table, slant_table, width_table): Treat "unspecified" as
2647 the default value.
2648
2649 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
2650
2651 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2652
2653 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
2654
2655 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2656 error as soon as a recursive load is detected.
2657
2658 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2659
2660 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2661 before caching.
2662
2663 2009-02-24 Kenichi Handa <handa@m17n.org>
2664
2665 * fontset.c (fontset_find_font): Fix the condition for checking
2666 unavailable font.
2667
2668 2009-02-24 Glenn Morris <rgm@gnu.org>
2669
2670 * xfaces.c (Finternal_set_font_selection_order): Remove leading
2671 whitespace that confuses documentation.
2672
2673 2009-02-23 Miles Bader <miles@gnu.org>
2674
2675 * process.c (Flist_system_processes, Fprocess_attributes)
2676 (syms_of_process): Rename `system-process-attributes' to
2677 `process-attributes'.
2678
2679 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
2680
2681 * coding.h (struct coding_system): Make safe_charsets a pointer to
2682 unsigned char.
2683 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
2684 being 255.
2685 (SAFE_CHARSET_P): Likewise.
2686 (setup_iso_safe_charsets): Properly setup safe_charsets.
2687 (Fdefine_coding_system_internal): Likewise.
2688 (setup_coding_system): Likewise. Remove unneeded casts.
2689 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
2690 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
2691 unneeded casts.
2692
2693 * insdel.c (del_range_2): Don't modify gap contents when called
2694 from decode_coding_object. (Bug#1809)
2695
2696 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
2697
2698 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
2699 Qfont_object.
2700 (Ftype_of): Recognize font objects.
2701
2702 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
2703
2704 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
2705 moved to data.c.
2706
2707 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2708
2709 * nsterm.m (x_make_frame_invisible): Unset async_visible,
2710 async_iconified. Based on a patch by Christian Lynbech
2711 <christian.lynbech@tieto.com>.
2712 (EmacsView-windowDidMiniaturize:): Unset async_visible.
2713
2714 2009-02-20 Glenn Morris <rgm@gnu.org>
2715
2716 * syntax.c (Fskip_chars_forward): Fix doc typo.
2717
2718 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
2719
2720 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
2721
2722 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
2723
2724 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
2725
2726 2009-02-19 Kenichi Handa <handa@m17n.org>
2727
2728 * coding.c (detect_coding): Preserve coding->mode.
2729 Don't overflow coding->carryover. (Bug#2370)
2730
2731 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
2732
2733 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
2734
2735 2009-02-18 Kenichi Handa <handa@m17n.org>
2736
2737 * font.c (font_check_otf_features): Fix handling of `nil' element.
2738 (Ffont_spec): Describe :lang and :otf in the docstring.
2739
2740 2009-02-16 Andreas Schwab <schwab@suse.de>
2741
2742 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
2743 string.
2744
2745 2009-02-16 Kenichi Handa <handa@m17n.org>
2746
2747 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
2748 (Bug#1723)
2749
2750 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
2751
2752 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
2753
2754 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
2755 (handle_line_prefix): Suppress wrapping of wrap prefixes.
2756
2757 2009-02-14 Eli Zaretskii <eliz@gnu.org>
2758
2759 * msdos.c (MAX_SCREEN_BUF): New macro.
2760 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
2761 Encode the entire run of glyphs sharing the same face, instead of
2762 doing that one glyph at a time (fixes a bug with displaying
2763 double-size characters).
2764
2765 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
2766
2767 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
2768
2769 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
2770 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
2771 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
2772
2773 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
2774 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
2775
2776 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2777
2778 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
2779 invisible areas.
2780
2781 2009-02-12 Jason Rumney <jasonr@gnu.org>
2782
2783 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
2784 (add_font_entity_to_list): Call check_face_name even when family
2785 is unspecified.
2786
2787 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2788 Release DC when finished. Use NULL window to refer to desktop.
2789 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
2790
2791 * w32font.c (add_font_entity_to_list): Fix check for substituted
2792 raster fonts. (Bug#2219)
2793
2794 2009-02-12 Kenichi Handa <handa@m17n.org>
2795
2796 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
2797 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
2798 (autocmp_chars): Use fast_looking_at. Don't compose more
2799 characters than MAX_COMPOSITION_COMPONENTS.
2800 (find_automatic_composition): While looking forward and backward,
2801 check static composition. Fix where to stop looking forward.
2802 (composition_adjust_point): Fix checking of static composition.
2803 (Fcomposition_get_gstring): Pay attention to
2804 MAX_COMPOSITION_COMPONENTS.
2805
2806 * lisp.h (fast_looking_at): Extern it.
2807
2808 * search.c (fast_looking_at): New function.
2809
2810 * term.c (encode_terminal_code): Adjust for the change of
2811 <struct glyph>.u.cmp.to.
2812 (append_composite_glyph): Likewise.
2813
2814 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
2815 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
2816 composition.
2817 (append_composite_glyph): Adjust for the change of
2818 <strcut glyph>.u.cmp.to.
2819
2820 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
2821
2822 * casetab.c (init_casetab_once):
2823 * coding.c (ALLOC_CONVERSION_WORK_AREA):
2824 * font.c (font_update_lface):
2825 * fontset.c (Fnew_fontset):
2826 * ftfont.c (ftfont_drive_otf):
2827 * xfont.c (xfont_open):
2828 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
2829
2830 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2831
2832 * fileio.c (Fwrite_region): !NILP -> CONSP.
2833
2834 2009-02-10 Andreas Schwab <schwab@suse.de>
2835
2836 * process.c (send_process): Properly relocate pointer into data
2837 when using encoded data. (Bug#2272)
2838
2839 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
2840
2841 * coding.c (detect_coding_charset): Fix previous change.
2842
2843 2009-02-08 Jason Rumney <jasonr@gnu.org>
2844
2845 * w32fns.c (w32_hide_hourglass): Handle case where frame
2846 disappeared while hourglass was displayed. (Bug #2193)
2847
2848 2009-02-07 Andreas Schwab <schwab@suse.de>
2849
2850 * unexelf.c (unexec): Fix error message.
2851
2852 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
2853
2854 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
2855 when modal window is active. (Bug #2152)
2856 (applicationShouldTerminate:): Remove now-unneeded while loop
2857 around NSRunAlertPanel.
2858
2859 * nsmenu.m (popupSession): New file-global variable.
2860 (pop_down_menu): End the popupSession before closing dialog.
2861 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
2862 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
2863 don't query NSApp for events (just sleep instead).
2864
2865 2009-02-07 Eli Zaretskii <eliz@gnu.org>
2866
2867 * coding.c (syms_of_coding) <translation-table-for-input>:
2868 Modify doc string to discourage use for character code unification.
2869
2870 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2871
2872 * atimer.c (run_timers): Update pending_atimers.
2873
2874 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
2875
2876 * image.c (svg_load_image): Fix last change.
2877
2878 * xfns.c (Fx_create_frame): Signal an error if no font is
2879 found (Bug#2147).
2880
2881 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
2882
2883 * character.c (syms_of_character) <script-representative-chars>:
2884 Fix typo in docstring.
2885
2886 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2887
2888 * nsmenu.m (pop_down_menu): New function.
2889 (ns_popup_dialog): Call it on unwind.
2890 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
2891 call timer_check() (Bug#2154).
2892 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
2893 handling_signal is set.
2894 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
2895
2896 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
2897
2898 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
2899
2900 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
2901
2902 * keyboard.c (poll_for_input_1, handle_async_input):
2903 Set handling_signal under HAVE_NS.
2904
2905 2009-02-04 Glenn Morris <rgm@gnu.org>
2906
2907 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
2908
2909 2009-02-04 Kenichi Handa <handa@m17n.org>
2910
2911 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
2912
2913 * charset.c (Fchar_charset): New optional arg restriction.
2914
2915 * coding.h (coding_system_charset_list): Extern it.
2916
2917 * coding.c (coding_system_charset_list): New function.
2918
2919 * composite.c: Include coding.h and termhooks.h.
2920 (composition_gstring_p): Fix for the terminal case.
2921 (composition_gstring_width): Likewise.
2922 (fill_gstring_body): Likewise.
2923 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
2924 the frame.
2925 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
2926 is within a composition.
2927 (Fcomposition_get_gstring): Fix the terminal case.
2928
2929 * term.c (encode_terminal_code): Fix handling of composition.
2930 (produce_composite_glyph): For static composition, get pixel_width
2931 from struct composition.
2932
2933 2009-02-02 Andreas Schwab <schwab@suse.de>
2934
2935 * unexelf.c (unexec): Handle unaligned bss offset.
2936
2937 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2938
2939 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
2940 XT,w32read_socket changes to ns_read_socket.
2941
2942 * keyboard.c (handle_interrupt): Don't call
2943 quit_throw_to_read_char() under NS.
2944
2945 * blockinput.h: Remove NS-specific code.
2946
2947 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
2948
2949 * dispnew.c (window_change_signal): Don't try to get the size of a
2950 suspended tty frame.
2951 * term.c (Fresume_tty): Resize if the size has changed while the
2952 tty was suspended.
2953
2954 * alloc.c (mark_stack): Properly conditionalize previous change.
2955
2956 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
2957
2958 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
2959 * w32term.c (w32_read_socket) [SYNC_INPUT]:
2960 Remove; this code is not used on Windows.
2961
2962 2009-01-30 Eli Zaretskii <eliz@gnu.org>
2963
2964 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
2965 EOLs that also has stray ^M characters.
2966
2967 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
2968
2969 * atimer.c (run_timers, alarm_signal_handler):
2970 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
2971 * w32inevt.c (w32_console_read_socket):
2972 * w32term.c (w32_read_socket):
2973 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
2974
2975 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
2976
2977 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
2978 Initialize it as a relative filename pattern.
2979 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
2980 (Fcall_process_region): Simplify temp file creation using
2981 temporary-file-directory.
2982
2983 2009-01-29 Eli Zaretskii <eliz@gnu.org>
2984
2985 * msdos.c: Rename pending_signals to msdos_pending_signals.
2986 (sig_suspender, sigprocmask): Adjust.
2987
2988 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
2989
2990 * keyboard.c (pending_signals): New var.
2991 (poll_for_input, input_available_signal, init_keyboard): Set it.
2992 (process_pending_signals): New function.
2993
2994 * lisp.h (QUIT): Check pending_signals instead of
2995 interrupt_input_pending. Use process_pending_signals.
2996
2997 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
2998
2999 * process.c (wait_reading_process_output): Use process_pending_signals.
3000
3001 * sysdep.c (emacs_write): Use process_pending_signals.
3002
3003 * xterm.c (XTread_socket): Update pending_signals.
3004
3005 * w32term.c (w32_read_socket): Update pending_signals.
3006
3007 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3008
3009 2009-01-29 Kenichi Handa <handa@m17n.org>
3010
3011 * xftfont.c (xftfont_has_char): New function.
3012 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3013
3014 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3015
3016 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3017 under GNUstep.
3018 (ns_query_color): New declaration.
3019
3020 * nsterm.m (ns_confirm_quit): New variable.
3021 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3022 (EmacsApp-applicationShouldTerminate:): Use it.
3023 (EmacsPrefsController): Let user set it.
3024 (ns_query_color): New function.
3025 (ns_defined_color): Use it.
3026 (ns_initialize): Drop.
3027 (ns_term_init): Add two lines from ns_initialize(), and set
3028 input_interrupt_mode to nil.
3029
3030 * image.c (svg_load_image): Don't right-shift background RGB when
3031 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
3032
3033 2009-01-28 Kenichi Handa <handa@m17n.org>
3034
3035 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3036 (fontset_get_font_group): Remember that no font-group is specified
3037 for C.
3038
3039 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
3040
3041 * fns.c (concat): Check for string overflow (bug#1787).
3042
3043 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3044 Quadruple undo limits (bug#1501).
3045
3046 2009-01-27 Kenichi Handa <handa@m17n.org>
3047
3048 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3049 directly use GT_Get_Char_index.
3050
3051 * xftfont.c (struct xftfont_info): New member `index'.
3052
3053 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
3054 (Ffontset_font): Adjust for the change of fontset entry.
3055
3056 2009-01-26 Kenichi Handa <handa@m17n.org>
3057
3058 * fontset.c (fontset_find_font): Fix handling of non-cons return
3059 value of fontset_get_font_group.
3060 (fontset_font): Revert last change.
3061
3062 2009-01-26 Jason Rumney <jasonr@gnu.org>
3063
3064 * w32font.c (w32font_list_internal): Return quickly if registry is
3065 unknown. Simplify final return.
3066 (add_font_entity_to_list): Break complex logic down into more
3067 manageable chunks. Move unknown registry check to
3068 w32font_list_internal.
3069
3070 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3071
3072 Changes to remove Feval calls from GUI under NS.
3073
3074 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3075 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
3076 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3077
3078 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3079 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3080 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3081 instead of NON_ASCII_KEYSTROKE_EVENT.
3082 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3083 (EmacsApp-applicationShouldTerminate:): Query user.
3084 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3085 instead of Feval.
3086
3087 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3088
3089 * keyboard.c (kbd_buffer_get_event): Check for it.
3090 (keys_of_keyboard): Define lispy keys for
3091 ns-put/unput-working-text.
3092
3093 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3094 versions.
3095 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3096
3097 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
3098
3099 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
3100 setting current_buffer directly. (Bug#2044)
3101
3102 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
3103
3104 * fontset.c (fontset_font): If we know there is no font, don't do
3105 any work. (Bug#1952, bug#1990).
3106
3107 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
3108
3109 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3110
3111 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
3112 (ns_no_defaults): New declaration.
3113 (main): Use it.
3114
3115 * nsterm.h (ns_no_defaults): New declaration.
3116
3117 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
3118
3119 * nsterm.m (ns_no_defaults): New variable.
3120 (ns_initialize): Don't read defaults when ns_no_defaults.
3121 (EmacsView-readSelectionFromPasteboard:)
3122 (writeSelectionToPasteboard:types:): New stubbed-out methods for
3123 NSServicesRequests protocol. (Bug#1435)
3124 (ns_dumpglyphs_stretch): New function.
3125 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
3126 of 2008-11-15 to other terms. (Bug#615)
3127
3128 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3129
3130 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3131
3132 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3133 call for Sparc64.
3134
3135 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3136
3137 * nsfns.m:
3138 * nsgui.h:
3139 * nsmenu.m:
3140 * nsselect.m:
3141 * nsterm.h:
3142 * nsterm.m: Remove '23' comments that indicated code added during
3143 update from emacs-20 -> emacs-23.
3144
3145 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3146
3147 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3148 ns_alternate_modifier. (Bug#1217)
3149
3150 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3151 Display all shortcuts, including those w/o super modifier.
3152
3153 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3154
3155 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
3156
3157 * fileio.c (Vwrite_region_post_annotation_function)
3158 (Vwrite_region_annotation_buffers): New vars.
3159 (build_annotations_unwind): Just reset
3160 Vwrite_region_annotation_buffers.
3161 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3162 Call write-region-post-annotation-function.
3163 (build_annotations): Add to Vwrite_region_annotation_buffers if
3164 buffer changes.
3165
3166 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3167
3168 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3169 Tiger.
3170 * nsfns.m (ns_do_applescript):
3171 Conditionalize typeUTF16ExternalRepresentation on Tiger.
3172
3173 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3174
3175 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3176
3177 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3178
3179 * nsmenu.m (NSMENUPROFILE): Change #if style.
3180
3181 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3182
3183 * nsterm.m (x_set_frame_alpha): Add prototype.
3184 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3185 handle Ctrl-tab. (Bug#1841)
3186 (ns_get_color): Use unsigned long long for scanned hex string value.
3187 (ns_term_shutdown): Abort on non SIGTERM signals.
3188 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
3189 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3190 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
3191 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
3192 (ns_defined_color): Fix settings of the XColor variable fields:
3193 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
3194
3195 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3196 DPI. (Bug#1316)
3197 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3198 values in onTiger section.
3199
3200 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
3201
3202 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3203 Check return value of font_spec_from_name.
3204 (Fx_list_fonts): Doc fix. (Bug#1951)
3205
3206 * font.c (font_spec_from_name): Return Qnil if font name could not
3207 be parsed.
3208 (font_parse_name): Treat a `?' character as part of an XLFD.
3209
3210 * fns.c (Fsubstring): Doc fix.
3211
3212 2009-01-19 Kenichi Handa <handa@m17n.org>
3213
3214 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
3215 (ftfont_list): Likewise.
3216
3217 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
3218
3219 * dbusbind.c (Fdbus_register_signal):
3220 * process.c (conv_sockaddr_to_lisp):
3221 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3222
3223 * callproc.c (Fgetenv_internal): Doc fix.
3224
3225 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
3226
3227 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3228 it is not even used.
3229
3230 2009-01-16 Glenn Morris <rgm@gnu.org>
3231
3232 * font.c (Ffont_variation_glyphs): Silence compiler.
3233
3234 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
3235
3236 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3237 Reported by David Robinow <drobinow@gmail.com>.
3238
3239 2009-01-15 Kenichi Handa <handa@m17n.org>
3240
3241 * coding.c (detect_coding_system): Fix handling of null_byte_found.
3242
3243 2009-01-14 Jason Rumney <jasonr@gnu.org>
3244
3245 * frame.c (x_set_font): Always store a font to the font parameter,
3246 never a fontset. (Bug#1562)
3247
3248 2009-01-14 Kenichi Handa <handa@m17n.org>
3249
3250 * coding.c (TWO_MORE_BYTES): New macro.
3251 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
3252
3253 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
3254
3255 * font.c (font_clear_prop): If clearing the family, clear the font
3256 width index too.
3257
3258 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
3259
3260 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
3261
3262 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3263 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3264 functions, use sizeof.
3265
3266 2009-01-12 Martin Rudalics <rudalics@gmx.at>
3267
3268 * keyboard.c (read_char): Fix case where last_nonmenu_event
3269 returned a bad value with submenus. (Bug#447)
3270
3271 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
3272
3273 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3274 family, clear the font width index too.
3275
3276 2009-01-11 Jason Rumney <jasonr@gnu.org>
3277
3278 * keyboard.c (cmd_error_internal): Exit when errors occur before
3279 frame creation and not in daemon mode. (Bug#1836)
3280
3281 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
3282
3283 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3284 of a display vector, backtrack.
3285 (try_window_reusing_current_matrix): Check glyph type before
3286 referencing charpos member.
3287
3288 2009-01-10 Eli Zaretskii <eliz@gnu.org>
3289
3290 Fix Bug #876:
3291
3292 * coding.c (inhibit_null_byte_detection): New variable.
3293 (detect_coding, detect_coding_system): Don't pay attention to null
3294 bytes if inhibit_null_byte_detection is non-zero.
3295 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
3296 <inhibit-iso-escape-detection>: Doc fix.
3297
3298 2009-01-09 Jason Rumney <jasonr@gnu.org>
3299
3300 * w32font.c (add_font_entity_to_list): Don't report unknown
3301 Windows charset as any unrecognized registry. (Bug#1548)
3302 Only report Unicode Plane 2 fonts as unicode-sip.
3303
3304 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
3305
3306 * xfaces.c (Fx_font_family_list): Delete function.
3307 Move compatibility version to faces.el.
3308
3309 * font.c (Ffont_family_list): Return a list of strings, not symbols.
3310
3311 2009-01-09 Martin Rudalics <rudalics@gmx.at>
3312
3313 * frame.c (x_set_frame_parameters): Remember requested value for
3314 fullscreen before it's reset by the parameter handler.
3315
3316 2009-01-09 Glenn Morris <rgm@gnu.org>
3317
3318 * keyboard.c (last_command_char): For clarity, rename to...
3319 (last_command_event): ... and update all users.
3320 (last_input_char): For clarity, rename to...
3321 (last_input_event): ... and update all users.
3322 (last-command-char, last-input-char): Move to subr.el as aliases.
3323 * cmds.c, commands.h: Update for last_command_char rename.
3324
3325 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
3326
3327 * font.c (font_open_for_lface): Handle unspecified height attribute.
3328
3329 2009-01-08 Jason Rumney <jasonr@gnu.org>
3330
3331 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3332 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3333 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3334 Don't declare.
3335 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
3336 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3337
3338 2009-01-07 Kenichi Handa <handa@m17n.org>
3339
3340 * fileio.c (Finsert_file_contents): In the case of replace,
3341 remember the coding system used for decoding in
3342 coding_system (Bug#1039).
3343
3344 * coding.c (decode_coding_utf_8): Check byte_after_cr before
3345 breaking the loop. (Bug#870)
3346 (decode_coding_utf_16, decode_coding_emacs_mule)
3347 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3348 (decode_coding_charset): Likewise.
3349
3350 2009-01-05 Martin Rudalics <rudalics@gmx.at>
3351
3352 * frame.c (x_set_frame_parameters): Make sure height (width) get
3353 applied when fullwidth (fullheight) is set. (Bug#1522)
3354
3355 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
3356
3357 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3358 (utc_base): Declare as ULONGLONG, not long double.
3359 (convert_time_raw): Delete.
3360 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3361 (initialize_utc_base): New function.
3362 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3363 (convert_from_time_t): Use initialize_utc_base; compute result with
3364 64-bit arithmetic.
3365 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3366
3367 2009-01-03 Eli Zaretskii <eliz@gnu.org>
3368
3369 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
3370 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3371 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3372 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3373 [!subprocesses]: Define.
3374 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3375 (Flist_system_processes, Fsystem_process_attributes)
3376 [!subprocesses]: Call list_system_processes and
3377 system_process_attributes instead of returning Qnil.
3378
3379 * dosfns.c (system_process_attributes, list_system_processes):
3380 New functions.
3381
3382 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3383
3384 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3385 Don't use the default (no-op) implementation.
3386
3387 2009-01-03 Jason Rumney <jasonr@gnu.org>
3388
3389 * keyboard.c (parse_modifiers_uncached): Wheel events are
3390 clicks (bug#687).
3391
3392 * w32term.c (x_query_colors, x_query_color): New functions.
3393
3394 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3395 (svg_load_image): Cast returned pointers from dynamically loaded
3396 functions. Eliminate W32 specific code.
3397
3398 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3399
3400 * nsfns.m (x_set_foreground_color, x_set_background_color)
3401 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3402 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3403 x_ prefix instead of ns_. Update references.
3404 (syms_of_nsfns): Add a FIXME comment.
3405
3406 * nsterm.m (x_set_cursor_type): New prototype.
3407 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3408
3409 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3410 for Solaris instead of incorrectly providing Qutime and Qcutime.
3411
3412 2009-01-02 Eli Zaretskii <eliz@gnu.org>
3413
3414 * w32.c (process_times): Compute sum of utime and stime.
3415 (system_process_attributes): Add Qtime to the alist.
3416
3417 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3418 and add them to the alist.
3419
3420 * process.c (top level) <Qtime, Qctime>: New variables.
3421 (syms_of_process): staticpro them.
3422 (Fsystem_process_attributes): Add their documentation to the doc
3423 string.
3424
3425 * process.h: Declare Qtime and Qctime.
3426
3427 2009-01-02 Jason Rumney <jasonr@gnu.org>
3428
3429 * image.c (Qgobject): New symbol.
3430 (syms_of_image): Initialize it.
3431 (init_svg_functions): Load some functions from gobject library.
3432
3433 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3434
3435 * frame.c (make_terminal_frame): Remove redundant code and useless
3436 block.
3437
3438 2009-01-01 Andreas Schwab <schwab@suse.de>
3439
3440 * process.c (conv_sockaddr_to_lisp): Add workaround for
3441 getsockname bug on BSD.
3442
3443 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
3444
3445 * xfns.c (x_create_tip_frame): Set border width of the X window.
3446
3447 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
3448
3449 2009-01-01 Jason Rumney <jasonr@gnu.org>
3450
3451 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
3452 Don't block input, as per earlier xterm.c changes.
3453
3454 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3455
3456 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3457 (ns_appkit_version_int): New function.
3458 (x-server-version): Use ns_appkit_version_int and follow 21+
3459 convention of returning 3 integers.
3460
3461 2008-12-30 Kenichi Handa <handa@m17n.org>
3462
3463 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3464 (CHAR_SURROGATE_PAIR_P): New macro.
3465
3466 * font.h (struct font_driver): New member get_variation_glyphs.
3467
3468 * font.c (font_range): Don't require a font for a variation selector.
3469 (Ffont_variation_glyphs): New function.
3470 (syms_of_font): Defsubr it.
3471
3472 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3473 ftfont_variation_glyphs.
3474 (setup_otf_gstring): New function.
3475 (ftfont_drive_otf): Use it.
3476 (ftfont_shape_by_flt): Handle variation selector.
3477 (ftfont_variation_glyphs): New function.
3478
3479 2008-12-30 Martin Rudalics <rudalics@gmx.at>
3480
3481 * frame.c (Vemacs_iconified): Remove.
3482
3483 2008-12-30 Jason Rumney <jasonr@gnu.org>
3484
3485 * frame.c (store_frame_param, x_get_arg): Enable newer code on
3486 WINDOWSNT too, as related changes have already been synced. (Bug#117)
3487
3488 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
3489
3490 * indent.c (Fvertical_motion): Don't advance iterator if we have
3491 reseated to the desired position.
3492
3493 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3494 checking for pos match.
3495
3496 2008-12-30 Kenichi Handa <handa@m17n.org>
3497
3498 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3499 just get the low 8-bit of the code.
3500
3501 * font.c (font_intern_prop): Validate str as multibyte.
3502
3503 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3504
3505 * dispextern.h (struct face): Move lface and hash from the middle
3506 of bitfields.
3507
3508 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3509
3510 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3511
3512 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3513 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3514 instead of intervals.h.
3515
3516 2008-12-26 Andreas Schwab <schwab@suse.de>
3517
3518 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3519 cons.
3520
3521 2008-12-26 Martin Rudalics <rudalics@gmx.at>
3522
3523 * textprop.c (Qminibuffer_prompt): New variable.
3524 (syms_of_textprop): Initialize it.
3525 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3526 in minibuffer-prompt face. (Bug#1662)
3527
3528 2008-12-25 Jason Rumney <jasonr@gnu.org>
3529
3530 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3531
3532 2008-12-24 Jason Rumney <jasonr@gnu.org>
3533
3534 * ralloc.c (r_alloc_reset_variable): New function.
3535
3536 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
3537 record of what points where. (Bug#716)
3538
3539 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3540
3541 * minibuf.c (read_minibuf): Follow the non-interactive case when
3542 running as a daemon, before detaching.
3543
3544 2008-12-22 Andreas Schwab <schwab@suse.de>
3545
3546 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3547 * gtkutil.c (free_widget_value): Use xfree instead of free.
3548
3549 2008-12-22 Martin Rudalics <rudalics@gmx.at>
3550
3551 * frame.c (delete_frame): New function derived from
3552 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3553 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3554 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3555 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3556 * frame.h: Extern delete_frame.
3557 * window.c (window_loop):
3558 * terminal.c (delete_terminal):
3559 * xterm.c (x_connection_closed):
3560 * xfns.c (Fx_hide_tip):
3561 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
3562
3563 2008-12-21 Jason Rumney <jasonr@gnu.org>
3564
3565 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3566 when character maps to .notdef character.
3567
3568 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3569
3570 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3571
3572 2008-12-20 Jason Rumney <jasonr@gnu.org>
3573
3574 * frame.c (Fmake_terminal_frame): Raise an error when called from
3575 a graphical frame on Windows. (Bug#1325)
3576
3577 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3578
3579 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3580
3581 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
3582
3583 * minibuf.c (Fread_buffer): Doc fix.
3584
3585 2008-12-20 Jason Rumney <jasonr@gnu.org>
3586
3587 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
3588 server name in UNC paths. (Bug#719)
3589
3590 * coding.c (decode_coding): Clear chars_at_source flag when using
3591 charbuf. (Bug#1035)
3592
3593 2008-12-19 Daniel Engeler <engeler@gmail.com>
3594
3595 * sysdep.c (serial_configure): Fix typo.
3596
3597 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3598
3599 * sysdep.c: Include alloca.h.
3600 (system_process_attributes): Add implementation for Solaris.
3601
3602 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
3603
3604 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3605
3606 Reorganize implementation of Flist_system_processes and
3607 Fsystem_process_attributes. No functional changes.
3608 * process.c: Don't #include pwd.h, grp.h and limits.h.
3609 (Flist_system_processes): Just call list_system_processes.
3610 (Fsystem_process_attributes): Just call system_process_attributes.
3611 (procfs_list_system_processes, time_from_jiffies)
3612 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3613 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3614
3615 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3616 (list_system_processes): Rename from
3617 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3618 Provide a do nothing implementation.
3619 (system_process_attributes): Rename from
3620 procfs_list_system_processes.
3621 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3622 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
3623
3624 * w32.c (list_system_processes): Rename from
3625 w32_list_system_processes.
3626 (system_process_attributes): Rename from
3627 w32_system_process_attributes.
3628
3629 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3630
3631 * process.h (w32_list_system_processes)
3632 (w32_system_process_attributes): Remove.
3633 (list_system_processes, system_process_attributes): New
3634 prototypes.
3635
3636 2008-12-19 Kenichi Handa <handa@m17n.org>
3637
3638 * xfont.c (xfont_decode_coding_xlfd): New function.
3639 (xfont_encode_coding_xlfd): New function.
3640 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3641 (xfont_list): Decode and encode XLFD by iso-8859-1.
3642 (xfont_match): Likewise.
3643 (xfont_list_family): Likewise.
3644 (xfont_open): Likewise.
3645
3646 * ftfont.c (ftfont_open): Generate a multibyte string if given
3647 names are utf-8.
3648
3649 * xftfont.c (xftfont_open): Generate a multibyte string if given
3650 names are utf-8.
3651
3652 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3653
3654 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3655 changed.
3656 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3657 clicked on a detached tool bar button.
3658
3659 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3660
3661 * emacs.c (main): Print and error and exit when no data is read
3662 from the pipe.
3663
3664 2008-12-17 Jason Rumney <jasonr@gnu.org>
3665
3666 * w32font.c (w32font_has_char): Always return -1.
3667
3668 2008-12-16 Kenichi Handa <handa@m17n.org>
3669
3670 * font.c (font_open_entity): Fix previous change.
3671
3672 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
3673
3674 * process.c: Include <limits.h>.
3675
3676 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
3677
3678 * font.c (font_update_drivers): Fix mistake in reconstructing the
3679 driver list.
3680
3681 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
3682
3683 * font.c (font_clear_cache): Fix format of font cache data.
3684
3685 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
3686
3687 * xftfont.c (xftfont_open): Free Xft font pattern if
3688 XftFontOpenPattern fails.
3689
3690 * xterm.c (x_free_frame_resources): Remove extraneous call to
3691 free_frame_faces.
3692
3693 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
3694
3695 * xterm.c (x_delete_display): Move xim_close_dpy call to
3696 x_delete_terminal.
3697 (x_delete_terminal): Call xim_close_dpy.
3698
3699 2008-12-13 Jason Rumney <jasonr@gnu.org>
3700
3701 * w32font.c (intern_font_name): New function.
3702 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
3703 (w32font_open_internal, Fx_select_font): Decode font name.
3704 (fill_in_logfont, list_all_matching_fonts): Encode font name.
3705
3706 * w32font.h (intern_font_name): Declare new function.
3707
3708 * w32uniscribe.c (add_opentype_font_name_to_list):
3709 Use intern_font_name.
3710
3711 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
3712
3713 * frame.c (Fdelete_frame): Call free_font_driver_list.
3714
3715 * font.c (free_font_driver_list): Implement missing function.
3716
3717 * w32term.c (w32_term_init): Don't initialize the image cache
3718 here; it will be done in init_frame_faces.
3719
3720 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
3721 (struct x_display_info): Remove unused member null_pixel. New
3722 member xim_callback_data.
3723
3724 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
3725 (xim_initialize): Save pointer to callback function data.
3726 (xim_close_dpy): Free callback function data. Call XCloseIM,
3727 reverting 2008-11-04 change by David Smith.
3728 (x_term_init): Don't initialize the image cache here; it will be
3729 done in init_frame_faces. Remove ancient "null_pixel" cruft.
3730 (x_delete_display): Free x_dnd_atoms member.
3731
3732 2008-12-13 Kenichi Handa <handa@m17n.org>
3733
3734 * font.c (font_rescale_ratio): Moved from xfaces.c.
3735 Argument type changed. Handle a font-spec too.
3736 (font_score): Check Vface_font_rescale_alist.
3737 (font_open_entity): Likewise. (Bug#1547)
3738
3739 * xfaces.c (font_rescale_ratio): Moved to font.c.
3740
3741 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
3742
3743 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
3744
3745 2008-12-12 Jason Rumney <jasonr@gnu.org>
3746
3747 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
3748 Vwindow_system_version to the real w32 major version.
3749
3750 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
3751
3752 * term.c (init_tty): Move setting the terminal name before the
3753 potential user: maybe_fatal.
3754
3755 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
3756
3757 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
3758 all callers changed. Call free_frame_faces to free the face cache.
3759
3760 2008-12-11 Jason Rumney <jasonr@gnu.org>
3761
3762 * w32font.c (fill_in_logfont): Don't assume symbol script means
3763 SYMBOL_CHARSET. (Bug#547)
3764
3765 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
3766 size for surrogates. (Bug#1096, bug#872)
3767
3768 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
3769
3770 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
3771
3772 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
3773
3774 * process.c (Fsystem_process_attributes, syms_of_process):
3775 Fix typo in name of Ssystem_process_attributes.
3776 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
3777
3778 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
3779
3780 * syntax.c (Fmodify_syntax_entry): Doc fix.
3781
3782 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
3783
3784 * font.c (Ffont_spec): Move usage to end of docstring.
3785
3786 2008-12-10 Jason Rumney <jasonr@gnu.org>
3787
3788 * w32font.c (Qcham): New symbol.
3789 (font_supported_scripts): Add cham, and comments for other new
3790 scripts in bitfield from OpenType spec.
3791 (add_font_entity_to_list): Limit unicode-sip fonts to those that
3792 contain characters beyond the bmp.
3793
3794 2008-12-10 Kenichi Handa <handa@m17n.org>
3795
3796 * ftfont.c (fc_charset_table): Add "unicode-sip".
3797 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
3798 Qunicode_sip.
3799
3800 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
3801
3802 * coding.c (QCdefault_char): Rename from QCdefalut_char.
3803 (Fcoding_system_put): Use QCdefault_char.
3804 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
3805
3806 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
3807
3808 * xftfont.c (syms_of_xftfont): Fix typo.
3809
3810 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
3811
3812 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
3813
3814 * emacs.c (main): Close daemon_pipe on exec.
3815
3816 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
3817
3818 * termchar.h (struct tty): New members termcap_term_buffer and
3819 termcap_strings_buffer.
3820
3821 * term.c (encode_terminal_code): Free any previous memory blocks
3822 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
3823 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
3824 All callers changed.
3825 (init_tty): Store termcap data and string buffers in new struct
3826 tty members termcap_term_buffer and termcap_strings_buffer.
3827 (delete_tty): Free them.
3828 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
3829
3830 2008-12-07 Seiji Zenitani <zenitani@mac.com>
3831
3832 * nsfns.m (ns_set_background_color): Remove code duplication.
3833 It was a substitute for face-transparency on OS X 10.3.
3834
3835 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
3836
3837 * coding.c (make_conversion_work_buffer): Disable buffer
3838 modification hooks in the work buffer.
3839
3840 2008-12-05 Eli Zaretskii <eliz@gnu.org>
3841
3842 * process.c (procfs_system_process_attributes): If `nread' has a
3843 negative value, assign zero to it.
3844
3845 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
3846
3847 * eval.c (Vdebug_on_error): Doc fix.
3848
3849 2008-12-05 Kenichi Handa <handa@m17n.org>
3850
3851 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
3852 second character is a combining character.
3853
3854 2008-12-05 Eli Zaretskii <eliz@gnu.org>
3855
3856 * process.c (procfs_system_process_attributes): Don't use cmd,
3857 cmdsize, and q without initializing them first.
3858
3859 2008-12-04 Jason Rumney <jasonr@gnu.org>
3860
3861 * w32font.c (w32font_draw): Initialize orig_clip before getting
3862 it, and delete it when finished.
3863
3864 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
3865
3866 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
3867 case when running as a daemon before detaching.
3868
3869 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
3870
3871 * w32.c (init_environment): Don't unload library shell32.dll.
3872
3873 2008-12-03 Kenichi Handa <handa@m17n.org>
3874
3875 * font.c (font_at): Set `multibyte' at first.
3876
3877 * coding.c (decode_coding_charset): Check type of an element of
3878 vector VALIDS.
3879 (encode_coding_emacs_mule): Be sure to set `code'.
3880
3881 * fontset.c (face_for_char): Handle invalid charset property correctly.
3882 (font_for_char): Likewise.
3883
3884 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
3885
3886 * font.c (Fopen_font): Compute pixel size correctly.
3887 (font_update_lface): Handle fonts with corrupted size specs,
3888 i.e. non-int and non-float.
3889
3890 * ftfont.c (ftfont_match): Initialize entity variable.
3891 (ftfont_resolve_generic_family): Avoid using uninitialized var.
3892 (ftfont_list_family): Initialize list var earlier.
3893
3894 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
3895
3896 * xterm.c (x_draw_glyph_string): Fall back on
3897 underline_minimum_offset for underline position.
3898
3899 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
3900
3901 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
3902
3903 * character.c (c_string_width): Specify the type for LEN.
3904
3905 2008-12-03 Kenichi Handa <handa@m17n.org>
3906
3907 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
3908 (decode_coding_utf_8): Likewise.
3909 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
3910 (produce_chars): Initialize consumed_chars to 0.
3911
3912 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
3913
3914 * keyboard.c (make_lispy_position): Only use PT if the selected
3915 window is current.
3916
3917 2008-12-02 Andreas Schwab <schwab@suse.de>
3918
3919 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
3920
3921 * doprnt.c (doprnt1): Fix size of charbuf.
3922
3923 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
3924
3925 * keyboard.c (timer_check): Revert last change.
3926
3927 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
3928
3929 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
3930
3931 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
3932
3933 * makefile.w32-in: Update dependencies.
3934 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
3935
3936 2008-12-01 Andreas Schwab <schwab@suse.de>
3937
3938 * font.c (register_font_driver): Use xmalloc.
3939 (font_put_frame_data): Likewise.
3940
3941 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
3942
3943 * xfaces.c (realize_x_face): Make abort condition clearer.
3944
3945 * gtkutil.c (update_frame_tool_bar): Initialize variable.
3946
3947 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
3948
3949 * keyboard.c (timer_check): After a timer runs, ensure that the
3950 selected window's buffer is current.
3951
3952 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
3953
3954 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
3955 It was accidentally restored by the Unicode merge.
3956
3957 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
3958
3959 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
3960
3961 * w32proc.c: Include "coding.h".
3962 (Fw32_short_file_name): Encode filename passed to Windows API.
3963 (Fw32_long_file_name): Encode filename passed to Windows API and
3964 decode back the result. (Bug#1433)
3965
3966 2008-11-29 Kenichi Handa <handa@m17n.org>
3967
3968 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
3969 not before accessing it.
3970
3971 * charset.c (Fdefine_charset_internal): After calculating
3972 min_char, max_char, and fastmap, copy the charset structure again.
3973 (encode_char): Fix the previous change.
3974
3975 2008-11-28 Seiji Zenitani <zenitani@mac.com>
3976
3977 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
3978
3979 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
3980
3981 * nsterm.m (x_set_frame_alpha): New function.
3982
3983 2008-11-27 Eli Zaretskii <eliz@gnu.org>
3984
3985 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
3986
3987 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
3988
3989 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
3990 pointer to check_face_name.
3991
3992 2008-11-27 Kenichi Handa <handa@m17n.org>
3993
3994 * category.h (SET_CATEGORY_SET): Call set_category_set.
3995 (set_category_set): Extern it.
3996
3997 * category.c (hash_get_category_set): New function.
3998 (Fmodify_category_entry): Adjusted for the change of
3999 char_table_ref_and_range. Call hash_get_category_set to get a
4000 category set to store in the table.
4001
4002 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4003 Funify_charset.
4004
4005 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
4006 (DECODE_CHAR): Check if the decoder vector is ready.
4007 (ENCODE_CHAR): Check if the encoder char-table is ready.
4008 (maybe_unify_char): Extern it.
4009
4010 * charset.c (Vchar_unified_charset_table): Delete it.
4011 (inhibit_load_charset_map): New variable.
4012 (temp_charset_work): New variable.
4013 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4014 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4015 New macros.
4016 (load_charset_map): Meaning of control_flag changed. If
4017 inhibit_load_charset_map is nonzero, setup a table in
4018 temp_charset_work.
4019 (load_charset): New argument control_flag.
4020 (map_charset_for_dump): New function.
4021 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4022 map_charset_for_dump.
4023 (Fdefine_charset_internal): If the charset method is MAP, load
4024 mapping tables by calling load_charset.
4025 (Funify_charset): Don't load a mapping table but directly set
4026 Vchar_unify_table.
4027 (maybe_unify_char): New function.
4028 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4029 Handle the case of inhibit_load_charset_map being nonzero.
4030 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4031 Handle the case of inhibit_load_charset_map being nonzero.
4032 (Fclear_charset_maps): Just free temp_charset_work.
4033 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4034 variable.
4035
4036 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4037 change of char_table_ref_and_range.
4038 (char_table_ref_and_range): Change the meaning of argument FROM
4039 and TO. Now the caller must provide initial values for *FROM
4040 and *TO.
4041
4042 * fontset.c (fontset_add): Adjusted for the change of
4043 char_table_ref_and_range.
4044 (fontset_get_font_group): Likewise.
4045 (Ffontset_info): Likewise.
4046
4047 * keymap.c (describe_vector): Adjusted for the change of
4048 char_table_ref_and_range. For char-table, put boundary between
4049 non-ASCII and 8-bit characters.
4050
4051 * print.c (print_object): For bool-vector, delete unnecessary
4052 check of ASCII_BYTE_P.
4053
4054 2008-11-26 Jason Rumney <jasonr@gnu.org>
4055
4056 * w32font.c (w32font_open_internal): Don't include external
4057 leading in font height. (Bug#879)
4058
4059 2008-11-26 Glenn Morris <rgm@gnu.org>
4060
4061 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4062 redefinition with ifdef. (Bug#1383)
4063
4064 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4065
4066 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4067
4068 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
4069
4070 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4071 New EmacsView methods.
4072 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4073 Fixes bug #1048,1357,1414.
4074
4075 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4076
4077 Fix bug #1362.
4078 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4079 is not an indexed color.
4080 * nsterm.m (free_indexed_color): Add argument checking.
4081 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4082
4083 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
4084
4085 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4086 Document confirm-after-completion value for
4087 minibuffer-completion-confirm.
4088
4089 2008-11-24 Jason Rumney <jasonr@gnu.org>
4090
4091 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4092 warning.
4093
4094 2008-11-23 Jason Rumney <jasonr@gnu.org>
4095
4096 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4097 restored before returning.
4098
4099 * w32font.c (check_face_name): New function.
4100 (add_font_entity_to_list): Use it to filter out common substituted
4101 fonts. (Bug#642)
4102
4103 2008-11-22 Martin Rudalics <rudalics@gmx.at>
4104
4105 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4106 confirm-nonexistent-file-or-buffer in doc-string.
4107
4108 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4109
4110 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4111 Fix copy/paste typo. Add checks.
4112
4113 2008-11-21 Kenichi Handa <handa@m17n.org>
4114
4115 * coding.c (detect_coding_iso_2022): Reject invalid composition
4116 sequence.
4117 (DECODE_COMPOSITION_START): If the current source is the last
4118 block, and the current composition doesn't end, regard this
4119 sequence as invalid.
4120 (decode_coding_iso_2022): Handle invalid composition sequence.
4121
4122 2008-11-20 Martin Rudalics <rudalics@gmx.at>
4123
4124 * window.c (coordinates_in_window): Don't return
4125 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4126 line when the window is not the rightmost one. (Bug#1372)
4127
4128 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4129
4130 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4131
4132 2008-11-15 Eli Zaretskii <eliz@gnu.org>
4133
4134 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4135 and bright_bg if noninteractive is non-zero.
4136
4137 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4138
4139 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4140 x_draw_glyph_string_background.
4141
4142 * w32term.c (x_draw_glyph_string): Likewise.
4143
4144 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
4145
4146 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4147 the next glyph string once past the overhang width.
4148
4149 * nsterm.m (ns_draw_glyph_string): Likewise.
4150
4151 * w32term.c (x_draw_glyph_string): Likewise.
4152
4153 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4154
4155 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4156 double file close.
4157
4158 2008-11-14 Martin Rudalics <rudalics@gmx.at>
4159
4160 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4161 dedicated status of window before attempting to display another
4162 buffer in it.
4163
4164 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
4165
4166 * msdos.c (Fmsdos_long_file_names):
4167 (syms_of_msdos) <dos-unsupported-char-glyph>:
4168 * dosfns.c (Fint86): Fix typos in docstrings.
4169
4170 2008-11-14 Eli Zaretskii <eliz@gnu.org>
4171
4172 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4173
4174 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4175
4176 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4177
4178 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4179
4180 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4181
4182 * frame.h: Negative alpha means "don't touch".
4183
4184 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4185
4186 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4187
4188 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4189
4190 * hftctl.c:
4191 * chpdef.h:
4192 * acldef.h: Remove files used only for systems no longer supported.
4193
4194 * Makefile.in: Fix .o alphabetical ordering.
4195 (hftctl.o): Remove dependency, file removed.
4196 (keymap.o, print.o): Depend on charset.h.
4197
4198 2008-11-10 Kenichi Handa <handa@m17n.org>
4199
4200 * character.c (Fget_byte): Fix and make it faster for unibyte target.
4201
4202 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
4203
4204 * dired.c (file_name_completion): If completion_ignore_case is
4205 enabled, ignore case when checking completion-regexp-list.
4206
4207 2008-11-08 Eli Zaretskii <eliz@gnu.org>
4208
4209 * vm-limit.c (get_lim_data): Fix last change.
4210
4211 2008-11-08 Kenichi Handa <handa@m17n.org>
4212
4213 * character.c (Fget_byte): New function.
4214 (syms_of_character): Defsubr Fget_byte.
4215
4216 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
4217
4218 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4219 cursor position is valid after scrolling.
4220
4221 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
4222
4223 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4224
4225 2008-11-06 Glenn Morris <rgm@gnu.org>
4226
4227 * xterm.c (handle_one_xevent): Don't let popup menus cause
4228 mouse-autoselect-window related window switching. (Bug#1261)
4229
4230 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4231
4232 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4233
4234 2008-11-04 Andreas Schwab <schwab@suse.de>
4235
4236 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4237
4238 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
4239
4240 * xfns.c (Fx_wm_set_size_hint): New function.
4241
4242 2008-11-03 Martin Rudalics <rudalics@gmx.at>
4243
4244 * textprop.c (Fprevious_single_char_property_change): Return 0
4245 when there's no change in a string. (Bug#1301)
4246
4247 2008-11-02 Martin Rudalics <rudalics@gmx.at>
4248
4249 * frame.c (do_switch_frame): New argument NORECORD passed to
4250 Fselect_window.
4251 (Fselect_frame): New argument NORECORD passed to
4252 do_switch_frame.
4253 (Fset_frame_selected_window): New argument NORECORD passed to
4254 Fselect_frame.
4255 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4256 in call of do_switch_frame.
4257 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4258 Handle NORECORD argument in call of Fselect_frame.
4259 * lisp.h (do_switch_frame, Fselect_frame)
4260 (Fset_frame_selected_window): Adjust declarations.
4261 * window.c (select_frame_norecord): New function.
4262 (run_window_configuration_change_hook): Use it and call
4263 Fselect_frame with NORECORD set.
4264 (Fselect_window): Pass NORECORD to Fselect_frame.
4265 (Fset_window_configuration): Handle NORECORD argument in call of
4266 do_switch_frame.
4267 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4268 Fset_frame_selected_window.
4269 * keyboard.c (command_loop_1): Handle NORECORD in call of
4270 Fselect_frame (currently ifdefd).
4271
4272 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4273
4274 * emacs.c (USAGE2): Untabify.
4275
4276 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4277
4278 * composite.c (fill_gstring_header): Fix copy/paste typo.
4279
4280 2008-10-31 Martin Rudalics <rudalics@gmx.at>
4281
4282 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4283 (Fother_window): Rename argument and rewrite doc-string.
4284 (select_window_norecord): Fix return value. (Bug#1276)
4285
4286 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
4287
4288 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4289 new frames overriding foreground for tooltips. Based on similar patch
4290 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4291
4292 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
4293
4294 * emacs.c (Fdaemon_initialized): Initialize nfd.
4295
4296 2008-10-29 Martin Rudalics <rudalics@gmx.at>
4297
4298 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4299 (Fwindow_text_height): Clarify doc-strings.
4300 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4301 doc-string of window-scroll-functions.
4302
4303 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4304
4305 * category.c (syms_of_category): Fix typo in docstring.
4306
4307 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
4308
4309 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4310 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4311 Fix typos in docstrings.
4312
4313 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4314
4315 * emacs.c (daemon_pipe): Make non-static.
4316 (IS_DAEMON): Move definition ...
4317 * lisp.h (IS_DAEMON): ... here.
4318 (daemon_pipe): Declare.
4319 (is_daemon): Remove.
4320 * dispnew.c (init_display): Use IS_DAEMON.
4321
4322 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4323
4324 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4325 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4326
4327 * emacs.c (is_daemon): Remove.
4328 (main): Don't set is_daemon.
4329 (IS_DAEMON): New macro.
4330 (Fdaemonp, Fdaemon_initialized): Use it.
4331 (Fdaemon_initialized): Write a char into the pipe to make sure the
4332 parent exits.
4333 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4334
4335 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
4336
4337 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4338 over-sized glyph, draw it with the default glyph width.
4339
4340 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4341 glyph, draw it with the default glyph width.
4342
4343 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4344 glyph, draw it with the default glyph width.
4345
4346 * xdisp.c (try_scrolling): When computing the distance from the
4347 scroll margin to PT, try moving some distance past the window
4348 bottom before giving up.
4349
4350 2008-10-27 Martin Rudalics <rudalics@gmx.at>
4351
4352 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4353 (Fset_window_buffer): Explain in doc-string that a window can be
4354 "strongly" dedicated to its buffer.
4355
4356 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4357
4358 * emacs.c (daemon_name): New variable.
4359 (main): Deal with --daemon=SERVER_NAME.
4360 (Fdaemonp): Return a name if one was passed to --daemon.
4361
4362 2008-10-26 Romain Francoise <romain@orebokech.com>
4363
4364 * emacs.c (daemon_pipe): New variable.
4365 (main): Create a pipe before forking, make the parent exit only after
4366 the child has closed its end of the pipe. Move closing the
4367 descriptors ...
4368 (Fdaemon_initialized): ... here. New function.
4369
4370 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4371
4372 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4373 the previous unoptimized table.
4374
4375 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4376 the distinction between non-nil and non-t value of `dedicated'.
4377
4378 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
4379
4380 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
4381 read_char_minibuf_menu_text is large enough to hold the menu string.
4382
4383 2008-10-25 Martin Rudalics <rudalics@gmx.at>
4384
4385 * window.c (Fget_buffer_window, Fdelete_windows_on)
4386 (Freplace_buffer_in_windows): Make buffer argument optional and
4387 rename to buffer_or_name.
4388
4389 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
4390
4391 * xdisp.c (handle_single_display_spec, handle_display_prop):
4392 Undo 2005-05-16 change.
4393 (handle_stop): Pop iterator if it's loaded with an empty string.
4394 (get_overlay_strings_1): Don't save iterator if it's loaded with
4395 an empty string (bug#1201).
4396
4397 2008-10-24 Kenichi Handa <handa@m17n.org>
4398
4399 * ftfont.c (ftfont_otf_features): Fix previous change.
4400 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4401 calling ftfont_otf_features.
4402
4403 2008-10-24 Kenichi Handa <handa@m17n.org>
4404
4405 * font.c (font_match_p): Fix for the case that a vector of
4406 characters is in script-representative-chars.
4407
4408 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
4409
4410 * dbusbind.c (xd_in_read_queued_messages): New variable.
4411 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
4412 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4413 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4414 macro. (Bug#1186).
4415
4416 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
4417
4418 * s/sol2-10.h: New file.
4419
4420 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
4421
4422 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4423 poor beast has survived 9+ years and the jump from xterm.c!).
4424
4425 2008-10-23 Martin Rudalics <rudalics@gmx.at>
4426
4427 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4428 Reword doc-string.
4429 (Fbury_buffer): In doc-string say what happens to the buffer's window.
4430
4431 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
4432
4433 * character.c (syms_of_character) <script-representative-chars>:
4434 <unicode-category-table>: Doc fixes.
4435
4436 2008-10-23 Noah Friedman <friedman@splode.com>
4437
4438 * coding.c (make_conversion_work_buffer): Check that
4439 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4440 Fget_buffer_create.
4441
4442 2008-10-23 Kenichi Handa <handa@m17n.org>
4443
4444 * font.c (font_add_log): Check the values of extra properties.
4445
4446 2008-10-22 Martin Rudalics <rudalics@gmx.at>
4447
4448 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4449 Reword doc-string.
4450 (Fset_window_parameter): Use NILP.
4451 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
4452 (Frecenter): Use "selected" instead of "current" window in doc-strings.
4453
4454 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
4455
4456 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4457
4458 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4459
4460 * nsfns.m (ns_appkit_version): New function.
4461 (x-server-version): Use it.
4462 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4463 (x-server-vendor): Don't check_ns().
4464
4465 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4466
4467 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
4468
4469 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4470 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4471
4472 2008-10-22 Kenichi Handa <handa@m17n.org>
4473
4474 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4475 scripts.
4476
4477 * category.c (word_boundary_p): Check scripts instead of charset.
4478 Handle nil value in word-separating-categories and
4479 word-combining-categories.
4480 (syms_of_category): Fix docstrings of word-separating-categories
4481 and word-combining-categories.
4482
4483 2008-10-21 Eli Zaretskii <eliz@gnu.org>
4484
4485 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4486 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4487
4488 2008-10-21 Martin Rudalics <rudalics@gmx.at>
4489
4490 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4491 Rename arg "buffer" to "buffer_or_name".
4492 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4493 it optional.
4494 (no_switch_window): Remove since the return value is not used.
4495 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
4496 Consider window as dedicated when Fwindow_dedicated_p returns a
4497 non-nil value.
4498 * lisp.h: Remove prototype for no_switch_window.
4499
4500 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4501
4502 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
4503 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
4504
4505 2008-10-21 Kenichi Handa <handa@m17n.org>
4506
4507 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4508 check Vlatin_extra_code_table.
4509
4510 2008-10-20 Eli Zaretskii <eliz@gnu.org>
4511
4512 * fileio.c (Fset_file_modes): Doc fix.
4513
4514 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
4515
4516 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4517 in arrays.
4518
4519 2008-10-19 Martin Rudalics <rudalics@gmx.at>
4520
4521 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4522 Mention kill-buffer in doc-string.
4523 (Fset_window_buffer): Reinsert tem check removed in last commit.
4524 (Fenlarge_window, Fshrink_window): Have argument names and
4525 doc-string follow Elisp manual more closely.
4526
4527 2008-10-18 Eli Zaretskii <eliz@gnu.org>
4528
4529 * fileio.c (Fset_file_modes): Doc fix.
4530
4531 2008-10-18 Martin Rudalics <rudalics@gmx.at>
4532
4533 * window.c (Fwindow_width, Fset_window_start)
4534 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
4535 (Fdelete_windows_on, Freplace_buffer_in_windows):
4536 Make doc-strings follow code and Elisp manual more closely.
4537 (Fwindow_dedicated_p): Make window argument optional.
4538 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4539 (Fset_window_buffer): Respect any non-nil dedicated value for
4540 window. Rename "buffer" argument to "buffer_or_name".
4541
4542 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
4543
4544 * m/sh3.h: New file, machine description for SuperH.
4545
4546 2008-10-17 Martin Rudalics <rudalics@gmx.at>
4547
4548 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4549
4550 2008-10-17 Kenichi Handa <handa@m17n.org>
4551
4552 * ftfont.c (ftfont_otf_features): Fix indexing
4553 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4554
4555 2008-10-16 Magnus Henoch <mange@freemail.hu>
4556
4557 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4558 (Fdbus_call_method_asynchronously): Ditto.
4559 This change makes C-h f display the argument list.
4560
4561 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
4562
4563 * fileio.c (Fexpand_file_name): Doc fix.
4564
4565 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4566 of :foreground and :background equivalent to unspecified (20.x
4567 compatibility).
4568
4569 2008-10-15 Eli Zaretskii <eliz@gnu.org>
4570
4571 * buffer.c (syms_of_buffer): Doc fix.
4572
4573 2008-10-14 Kenichi Handa <handa@m17n.org>
4574
4575 * font.c (font_clear_prop): When clearing font width, clear the
4576 average width field too.
4577
4578 2008-10-12 Andreas Schwab <schwab@suse.de>
4579
4580 * ftfont.c (ftfont_shape_by_flt): Make static.
4581 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4582
4583 * font.c: Don't include <m17n-flt.h>.
4584
4585 2008-10-10 Eli Zaretskii <eliz@gnu.org>
4586
4587 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4588
4589 2008-10-09 Eli Zaretskii <eliz@gnu.org>
4590
4591 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4592 away code.
4593
4594 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
4595
4596 * dispnew.c (update_text_area): Avoid looping due to large glyph
4597 overhangs (bug#1070).
4598
4599 2008-10-09 Kenichi Handa <handa@m17n.org>
4600
4601 * fontset.c (face_for_char): If face->fontset is negative, just
4602 return ascii_face.
4603
4604 * font.c (font_delete_unmatched): Fix previous change.
4605 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
4606
4607 2008-10-09 Martin Rudalics <rudalics@gmx.at>
4608
4609 * frame.c (Fraise_frame): On text-only terminals select frame in
4610 order to make it visible. (Bug#1061)
4611
4612 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
4613
4614 * fontset.c (fontset_find_font): Check frame validity.
4615
4616 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
4617
4618 * gtkutil.c (xg_display_open): Reset default display if none exists.
4619 (xg_display_close): Allow Emacs to close all displays (bug#985).
4620
4621 2008-10-06 Andreas Schwab <schwab@suse.de>
4622
4623 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
4624
4625 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
4626
4627 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
4628
4629 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
4630
4631 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4632 during initialization.
4633
4634 2008-10-04 Eli Zaretskii <eliz@gnu.org>
4635
4636 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4637 whole thing on MSDOS frames as well as on a TTY.
4638
4639 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4640 well as for TTY.
4641 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4642 well as on a TTY.
4643
4644 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4645 as well as for TTY.
4646
4647 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4648
4649 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4650 MSDOS frames as well.
4651
4652 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4653
4654 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4655 correct arguments.
4656 * menu.c (find_and_return_menu_selection): Add cast.
4657
4658 2008-10-03 Glenn Morris <rgm@gnu.org>
4659
4660 * emacs.c (USAGE1): Add --daemon.
4661
4662 2008-10-02 Eli Zaretskii <eliz@gnu.org>
4663
4664 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4665 100, so it's in percents as advertised.
4666
4667 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4668
4669 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4670 (ns_output.current_cursor, ns_output.desired_cursor)
4671 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4672 (FRAME_NEW_CURSOR_COLOR): Remove.
4673
4674 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
4675 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
4676 enumeration (HOLLOW_BOX_CURSOR, etc.).
4677
4678 * nsterm.m (ns_frame_rehighlight): Remove commented code.
4679 (draw_window_cursor): Simplify code.
4680 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
4681 Don't change cursor type. In latter, call rehighlight instead of doing
4682 updates manually.
4683 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
4684 Use core Emacs cursor types.
4685
4686 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
4687
4688 2008-10-02 Martin Rudalics <rudalics@gmx.at>
4689
4690 * process.c (Faccept_process_output): Fix doc-string.
4691
4692 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
4693
4694 * gmalloc.c (__sbrk): Also define for uClibc.
4695
4696 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
4697 for uClibc.
4698
4699 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4700
4701 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
4702 styles.
4703 (nsfont_open): Reenable the cache.
4704
4705 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4706
4707 * font.c (font_matching_entity): Reflect ATTRS in font selection.
4708 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
4709
4710 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
4711
4712 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
4713 a suspended terminal.
4714
4715 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
4716
4717 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
4718
4719 2008-09-30 Eli Zaretskii <eliz@gnu.org>
4720
4721 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
4722
4723 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
4724
4725 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
4726 in a continued line coincides with a line beginning.
4727
4728 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4729
4730 * nsfont.m (nsfont_trait_distance): Fix bug.
4731 (nsfont_list): Return a list rather than a vector (syncs with Handa
4732 changes of 2008-05-14).
4733 (nsfont_open): Improve logging.
4734
4735 2008-09-29 Andreas Schwab <schwab@suse.de>
4736
4737 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4738
4739 2008-09-28 Martin Rudalics <rudalics@gmx.at>
4740
4741 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
4742 name as char-resolve-modifiers.
4743 Reported by: Markus Triska <markus.triska@gmx.at>
4744
4745 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
4746
4747 * dispnew.c (init_display): Return earlier when running as a daemon.
4748
4749 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4750
4751 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
4752
4753 2008-09-27 Eli Zaretskii <eliz@gnu.org>
4754
4755 * composite.c (Fcomposition_get_gstring)
4756 (Fcompose_region_internal, Fcompose_string_internal)
4757 (Ffind_composition_internal): Doc fix.
4758 (syms_of_composite) <compose-chars-after-function>: Doc fix.
4759 (syms_of_composite) <auto-composition-function>: Doc fix.
4760 (syms_of_composite) <composition-function-table>: Doc fix.
4761
4762 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
4763
4764 * search.c (wordify): New argument for lax word-ends.
4765 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
4766
4767 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
4768
4769 * lisp.h (is_daemon): Declare.
4770 * dispnew.c (init_display): Do not try to initialize the terminal
4771 when running as a daemon.
4772
4773 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
4774
4775 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
4776 x_display_pixel_height.
4777
4778 2008-09-22 Martin Rudalics <rudalics@gmx.at>
4779
4780 * undo.c (record_point): Don't call Fundo_boundary for first
4781 change. (Bug#731)
4782
4783 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
4784
4785 * emacs.c (Fdaemonp): Doc fix.
4786
4787 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
4788
4789 * emacs.c (main): Place #ifdef in the proper place.
4790
4791 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4792
4793 * emacs.c (standard_args): Add --daemon.
4794 (main): Disconnect from the terminal when --daemon is passed.
4795 (is_daemon): New variable.
4796 (Fdaemonp): New function.
4797 (syms_of_emacs): Defsubr it.
4798
4799 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
4800
4801 * xdisp.c (get_next_display_element): Handle string display
4802 correctly when checking for the end of a box run.
4803
4804 2008-09-20 Glenn Morris <rgm@gnu.org>
4805
4806 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
4807 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
4808 (Frename_file): Avoid copying to trash if a rename involves
4809 a delete. (Bug#964).
4810
4811 2008-09-20 Eli Zaretskii <eliz@gnu.org>
4812
4813 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
4814 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
4815 frames as well as termcap frames.
4816 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
4817 get_named_tty.
4818
4819 2008-09-19 Eli Zaretskii <eliz@gnu.org>
4820
4821 * process.c (procfs_system_process_attributes): Fix cmdline in
4822 case /proc/PID/cmdline is empty.
4823
4824 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
4825 x_display_pixel_height.
4826
4827 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
4828
4829 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
4830
4831 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
4832 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
4833
4834 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
4835
4836 * dispextern.h (struct it): Move line_wrap away from the middle of
4837 bitfields. Move voffset in struct iterator_stack_entry after the
4838 bitfields. Move tab_width near after another short.
4839
4840 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
4841
4842 * frame.h (struct frame): Move alpha from the middle of bitfields.
4843
4844 * window.h (struct window): Move frozen_window_start_p after the
4845 rest of the bitfields to reduce padding.
4846
4847 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
4848
4849 * xterm.h (x_display_info): Remove `height' and `width' members.
4850
4851 * nsterm.h (ns_display_info): Remove `height' and `width' members.
4852
4853 * w32term.h (w32_display_info): Remove `height', `width',
4854 `height_in', and `width_in' members.
4855
4856 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4857 New functions.
4858 (x_calc_absolute_position): Use them.
4859 (x_term_init): Omit removed `height' and `width' members.
4860
4861 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4862 New functions.
4863 (w32_read_socket, x_calc_absolute_position): Use them.
4864 (w32_initialize_display_info, w32_term_init): Omit removed members
4865 of w32_display_info.
4866
4867 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
4868 New functions.
4869 (ns_initialize_display_info): Omit removed members of ns_display_info.
4870
4871 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4872 New functions.
4873 (x_calc_absolute_position): Use them.
4874 (x_term_init): Omit removed `height' and `width' members.
4875
4876 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
4877 (compute_tip_xy):
4878 * frame.c (x_fullscreen_adjust):
4879 * xmenu.c (menu_position_func): Use x_display_pixel_height and
4880 x_display_pixel_width.
4881
4882 2008-09-18 Kenichi Handa <handa@m17n.org>
4883
4884 * composite.c (fill_gstring_header): Don't check FROM and TO here.
4885 (composition_compute_stop_pos): Fix handling of static composition.
4886 (Fcomposition_get_gstring): Check FROM and TO at first.
4887
4888 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4889
4890 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
4891 mixup (YAILOM).
4892
4893 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
4894
4895 * indent.c (Fvertical_motion): Use position reported by iterator
4896 instead of PT for determining screen motion (bug#943).
4897
4898 2008-09-17 Romain Francoise <romain@orebokech.com>
4899
4900 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
4901
4902 2008-09-17 Kenichi Handa <handa@m17n.org>
4903
4904 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
4905
4906 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
4907 if necessary.
4908
4909 2008-09-16 Kenichi Handa <handa@m17n.org>
4910
4911 * coding.c (make_conversion_work_buffer): Avoid calling
4912 Fget_buffer_create if it is not necessary.
4913
4914 2008-09-15 Martin Rudalics <rudalics@gmx.at>
4915
4916 * window.c (Fselect_window): Don't update window_select_count and
4917 use_time when norecord is not nil.
4918
4919 2008-09-14 Kenichi Handa <handa@m17n.org>
4920
4921 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
4922 specpdl_ptr.
4923
4924 2008-09-12 Kenichi Handa <handa@m17n.org>
4925
4926 * indent.c (scan_for_column): Don't handle automatic composition
4927 if the current buffer is not associated with a window.
4928
4929 * composite.c (composition_reseat_it): If the current buffer is
4930 not associated with a window, ignore the automatic composition.
4931 (find_automatic_composition): Likewise.
4932
4933 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4934
4935 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
4936 (Fgpm_mouse_stop): Use it.
4937 * termhooks.h (close_gpm): Declare.
4938 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
4939 connection if Gpm_GetEvent fails.
4940
4941 * window.c (set_window_buffer): Always preserve current-buffer.
4942
4943 2008-09-12 Glenn Morris <rgm@gnu.org>
4944
4945 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
4946
4947 2008-09-11 Glenn Morris <rgm@gnu.org>
4948
4949 * charset.c (charset-map-path): Doc fix.
4950
4951 2008-09-10 Kenichi Handa <handa@m17n.org>
4952
4953 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
4954
4955 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
4956 compose a grapheme cluster with the preceding base glyph.
4957
4958 * composite.c (composition_compute_stop_pos): Fix previous change.
4959 Reset cmp_it->id to -1 at first.
4960
4961 2008-09-10 Glenn Morris <rgm@gnu.org>
4962
4963 * Makefile.in (character.o, chartab.o): Fix config.h typo.
4964
4965 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
4966
4967 * keyboard.c (read_key_sequence): Reapply translation maps when
4968 switching keyboards.
4969
4970 2008-09-09 Kenichi Handa <handa@m17n.org>
4971
4972 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
4973 characters.
4974
4975 * composite.c (FORWARD_CHAR): Fix calculation
4976 of (POSITION).pos_byte.
4977 (composition_compute_stop_pos): Limit the search of composition to
4978 at most 500 characters ahead. If we reach the limit or find a
4979 newline, set cmp_it->ch to -2 and return 0.
4980 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
4981
4982 2008-09-08 Kenichi Handa <handa@m17n.org>
4983
4984 * indent.c (Fvertical_motion): Be sure to set
4985 it_overshoot_expected if it.cmp_it.id is non-negative.
4986
4987 2008-09-07 Andreas Schwab <schwab@suse.de>
4988
4989 * callproc.c (Fcall_process): Don't hold references to string data
4990 across garbage collection. Move initialisation of new_argv down
4991 to avoid compiler bug.
4992
4993 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4994
4995 * process.c (Fsystem_process_attributes): Doc fix.
4996
4997 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
4998
4999 * callproc.c (Fcall_process): Canonicalize current directory name.
5000
5001 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5002 iterator advances to the next line if the current line ends in a
5003 continued tab.
5004
5005 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5006
5007 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5008 member to point to cmp_from.
5009
5010 * xdisp.c: Doc fix for references to gidx data member.
5011
5012 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5013
5014 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5015
5016 2008-09-07 Kenichi Handa <handa@m17n.org>
5017
5018 * composite.c (FORWARD_CHAR): Check STOP after
5019 incrementing (POSITION).pos.
5020
5021 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5022
5023 * process.c (Fsystem_process_attributes): Doc fix.
5024
5025 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
5026
5027 * keyboard.c (Ftop_level): Doc fix.
5028
5029 2008-09-06 Eli Zaretskii <eliz@gnu.org>
5030
5031 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5032 minibuffer, don't let lower part of menu invade the echo area.
5033
5034 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5035 "char *q" to access menu text and advance through it. Revert the
5036 change that displayed ">" instead of ASCII character 0x10.
5037
5038 2008-09-05 Eli Zaretskii <eliz@gnu.org>
5039
5040 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5041 toggle boxes and radio buttons on MS-DOS as well.
5042
5043 2008-09-05 Kenichi Handa <handa@m17n.org>
5044
5045 * composite.c (autocmp_chars): Check lookback count.
5046 (composition_compute_stop_pos): Set cmp_it->lookback.
5047 (composition_reseat_it): Check lookback count.
5048 (struct position_record): New struct.
5049 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5050 (find_automatic_composition): New function.
5051 (composition_adjust_point): Use find_automatic_composition.
5052
5053 * dispextern.h (struct composition_it): New member lookback.
5054
5055 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
5056
5057 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5058 if moving by a single line.
5059
5060 2008-09-02 Andreas Schwab <schwab@suse.de>
5061
5062 * xterm.c (x_delete_display): Fix merge error.
5063
5064 * fileio.c (Fexpand_file_name): Remove unused variables.
5065
5066 2008-09-02 Eli Zaretskii <eliz@gnu.org>
5067
5068 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5069 storage on all platforms, not just on DOS_NT.
5070
5071 2008-09-02 Jason Rumney <jasonr@gnu.org>
5072
5073 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5074 Ensure mouse is not grabbed after menu is finished.
5075
5076 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
5077
5078 * xfaces.c (Finternal_set_alternative_font_family_alist)
5079 (Finternal_set_alternative_font_registry_alist): Properly copy
5080 entire alist structure.
5081
5082 2008-09-01 Kenichi Handa <handa@m17n.org>
5083
5084 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
5085 representative chars of the script is a vector.
5086 (ftfont_list): Handle the case where the representative chars of
5087 the script is a vector.
5088
5089 * character.c (syms_of_character): Docstring of
5090 script-representative-chars fixed.
5091
5092 2008-08-31 Eli Zaretskii <eliz@gnu.org>
5093
5094 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5095 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5096 the menu. Allocate larger buffer for `text', to account for
5097 possible ^C characters.
5098
5099 2008-08-31 Martin Rudalics <rudalics@gmx.at>
5100
5101 * xdisp.c (prepare_menu_bars): Don't call
5102 Vwindow_size_change_functions with arg Qt.
5103
5104 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5105
5106 * font.h (font_range):
5107 * fileio.c (report_file_error):
5108 * composite.c (composition_update_it): Yet another int/Lisp_Object
5109 mixup (YAILOM).
5110
5111 2008-08-30 Glenn Morris <rgm@gnu.org>
5112
5113 * data.c (Fmake_variable_frame_local): Doc fix.
5114
5115 * frame.c (Fmodify_frame_parameters): Doc fix.
5116
5117 2008-08-30 Eli Zaretskii <eliz@gnu.org>
5118
5119 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5120 needed by GetTokenInformation.
5121 (w32_system_process_attributes): Check return values of all system
5122 APIs.
5123
5124 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5125 only when the state changes.
5126 (IT_update_begin, IT_update_end): Add termscript trace.
5127
5128 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5129 clipboard is unavailable. Set dst to NULL if it doesn't point to
5130 malloc'ed data.
5131 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5132 passing random values to xfree.
5133
5134 * dispnew.c (init_display): Set `tty's association in frame's
5135 parameters alist to the name of the terminal device, if that is known.
5136
5137 2008-08-29 Jason Rumney <jasonr@gnu.org>
5138
5139 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5140
5141 2008-08-29 Eli Zaretskii <eliz@gnu.org>
5142
5143 * composite.c (fill_gstring_body): Avoid compiler warnings.
5144
5145 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5146 LGLYPH_SET_CODE to avoid compiler warnings.
5147
5148 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
5149
5150 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5151
5152 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5153 LGLYPH_SET_CODE.
5154
5155 2008-08-29 Kenichi Handa <handa@m17n.org>
5156
5157 * fileio.c (report_file_error): Don't downcase the first character
5158 of errstring if it is still unibyte.
5159
5160 2008-08-29 Kenichi Handa <handa@m17n.org>
5161
5162 These changes are to re-implement the automatic composition so
5163 that it doesn't use text properties.
5164
5165 * Makefile.in (ftfont.o): Depend on composite.h.
5166 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5167
5168 * character.h (Vunicode_category_table): Extern it.
5169
5170 * character.c (Vunicode_category_table): New variable.
5171 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5172
5173 * chartab.c (optimize_sub_char_table): Perform more greedy
5174 optimization.
5175
5176 * composite.h (enum composition_method):
5177 Delete COMPOSITION_WITH_GLYPH_STRING.
5178 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5179 (Vcomposition_function_table): Extern it.
5180 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5181 (composition_gstring_put_cache, composition_gstring_from_id)
5182 (composition_gstring_p, composition_gstring_width)
5183 (composition_compute_stop_pos, composition_reseat_it)
5184 (composition_update_it, composition_adjust_point): Extern them.
5185 (Fcomposition_get_gstring): EXFUN it.
5186
5187 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
5188 (Vcomposition_function_table)
5189 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
5190 (gstring_hash_table, gstring_work, gstring_work_headers):
5191 New variables.
5192 (gstring_lookup_cache, composition_gstring_put_cache)
5193 (composition_gstring_from_id, composition_gstring_p)
5194 (composition_gstring_width, fill_gstring_header)
5195 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5196 (composition_reseat_it, composition_update_it)
5197 (composition_adjust_point, Fcomposition_get_gstring): New functions.
5198 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5199 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5200 Defsubr compostion_get_gstring.
5201
5202 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5203 cmp_id.
5204 (struct glyph_string): Delete the member gidx. New members
5205 cmp_id, cmp_from, and cmp_to.
5206 (enum it_method): Delete GET_FROM_COMPOSITION.
5207 (struct composition_it): New struct.
5208 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5209 Delete c, len, cmp_id, cmp_len in u.comp.
5210
5211 * font.h (enum lgstring_indices): Delete it.
5212 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
5213 (enum lglyph_indices): Likewise.
5214 (font_range): Adjust extern.
5215 (font_fill_lglyph_metrics): Extern it.
5216
5217 * font.c (QCf): New variable.
5218 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5219 (font_prepare_composition): Delete this function.
5220 (font_range): Type and arguments changed.
5221 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5222 (font_fill_lglyph_metrics): New function.
5223 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
5224 (syms_of_font): DEFSYM QCf. Delete defsubr for
5225 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5226 Defsubr Sfont_shape_gstring.
5227
5228 * fontset.h (font_for_char): Extern it.
5229
5230 * fontset.c (font_for_char): New function.
5231
5232 * ftfont.c: Include composite.h.
5233 (ftfont_resolve_generic_family): Add langset "en" to pattern.
5234 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5235
5236 * indent.c: Include composite.h and dispextern.h.
5237 (check_composition): Delete this function.
5238 (scan_for_column): Handle composition by
5239 composition_compute_stop_pos, composition_reseat_it, and
5240 composition_update_it.
5241 (compute_motion): Likewise.
5242 (Fvertical_motion): Fix checking of composition.
5243
5244 * keyboard.c (adjust_point_for_property): Check composition by
5245 composition_adjust_point.
5246
5247 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
5248 struct glyph_string.
5249
5250 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5251 (append_composite_glyph): Adjust for the change of struct it and
5252 struct glyph.
5253 (produce_composite_glyph): Likewise.
5254
5255 * w32term.c (x_draw_composite_glyph_string_foreground):
5256 Adjust for the change of struct glyph_string.
5257 (x_draw_glyph_string): Likewise.
5258
5259 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5260 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5261
5262 * xdisp.c: Include font.h.
5263 (it_props): Delete the entry for Qauto_composed.
5264 (init_iterator): Initialize it->cmp_it.id to -1.
5265 (compute_stop_pos): Call composition_compute_stop_pos.
5266 (face_before_or_after_it_pos): Adjust for the change of struct it.
5267 (handle_auto_composed_prop): Delete it.
5268 (handle_composition_prop): Handle only static composition.
5269 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5270 from xassert. Initialize it->cmp_it.stop_pos.
5271 (push_it): Adjust for the change of struct it.
5272 (pop_it): Likewise.
5273 (get_next_element): Delete next_element_from_composition.
5274 (CHAR_COMPOSED_P): New macro.
5275 (get_next_display_element): For automatic composition, get a face
5276 from the font in the glyph-string.
5277 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
5278 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
5279 (next_element_from_string): Check if the character at the current
5280 position is composed by CHAR_COMPOSED_P.
5281 (next_element_from_buffer): Likewise.
5282 (next_element_from_composition): Adjust for the change of struct it.
5283 Update it->cmp_it.
5284 (dump_glyph): Adjust for the change of struct glyph.
5285 (fill_composite_glyph_string): Adjust for the change of struct
5286 it and struct glyph. Don't handle automatic composition here.
5287 (fill_gstring_glyph_string): New function.
5288 (x_get_glyph_overhangs): Handle automatic composition.
5289 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
5290 (BUILD_GSTRING_GLYPH_STRING): New macro.
5291 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5292 automatic composition.
5293 (append_composite_glyph): Adjust for the change of struct it and
5294 struct glyph.
5295 (x_produce_glyphs): Adjust for the change of struct it.
5296
5297 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
5298 the change of struct glyph_string.
5299 (x_draw_glyph_string): Likewise.
5300
5301 2008-08-29 Glenn Morris <rgm@gnu.org>
5302
5303 * buffer.c (word-wrap): Doc fix.
5304 * xdisp.c (truncate-partial-width-windows): Doc fix.
5305 Increase default to 50.
5306
5307 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
5308
5309 * xdisp.c (update_tool_bar_unwind): New function.
5310 (update_tool_bar): Temporarily set selected frame before building
5311 tool-bar items.
5312
5313 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
5314
5315 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5316 snprintf, respectively.
5317 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5318
5319 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
5320
5321 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5322 LDFLAGS to GNUstep CC invocation.
5323
5324 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
5325
5326 * indent.c (Fvertical_motion): Revert last change. Handle the
5327 general case where we are moving forward, and PT spans multiple
5328 screen lines.
5329
5330 * eval.c (find_handler_clause): Temporarily increase
5331 max-lisp-eval-depth while printing the backtrace buffer, to
5332 guarantee that help-mode code can run.
5333
5334 2008-08-27 Eli Zaretskii <eliz@gnu.org>
5335
5336 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5337 colors under -rv.
5338 (IT_set_frame_parameters): Don't swap foreground and background
5339 colors if `(reverse . t)' is present in the frame properties.
5340 (internal_terminal_init): Call init_frame_faces only for the
5341 initial frame.
5342
5343 2008-08-27 Andreas Schwab <schwab@suse.de>
5344
5345 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5346
5347 2008-08-27 Andreas Schwab <schwab@suse.de>
5348
5349 * search.c (search_buffer): Set char_base to zero only at the end.
5350
5351 2008-08-27 Kenichi Handa <handa@m17n.org>
5352
5353 * fileio.c (report_file_error): Fix handling of multibyte error string.
5354
5355 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5356
5357 * xterm.c (x_term_init): Temporarily hide the partially
5358 initialized terminal while calling vendor-specific-keysyms.
5359
5360 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5361
5362 * msdos.c (internal_terminal_init): Most initializations done only
5363 once, especially initial_screen_colors[] and termscript open.
5364
5365 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5366
5367 * eval.c (Fcondition_case): Doc fix.
5368
5369 * widgetprv.h (EmacsFramePart): Change font member to the new font
5370 struct.
5371
5372 * widget.c: Include character.h and font.h for XSETFONT.
5373 (setup_frame_gcs): Compute X font id from font struct, just once.
5374
5375 2008-08-26 Eli Zaretskii <eliz@gnu.org>
5376
5377 * term.c (get_named_tty): Fix last change.
5378
5379 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
5380
5381 * indent.c (Fvertical_motion): If moving forward starting from a
5382 multi-line string, move the iterator to the last line of that string.
5383
5384 2008-08-25 Eli Zaretskii <eliz@gnu.org>
5385
5386 * frame.c (do_switch_frame): Mark previously displayed frame as
5387 obscured for FRAME_MSDOS_P frames as well.
5388
5389 2008-08-24 Eli Zaretskii <eliz@gnu.org>
5390
5391 * frame.c (make_terminal_frame): Initialize f->terminal,
5392 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5393 Set the top frame to newly created frame.
5394 (Fmake_terminal_frame): Reuse the_only_display_info.
5395
5396 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5397 estimating available memory.
5398
5399 2008-08-23 David Reitter <david.reitter@gmail.com>
5400
5401 * nsterm.m (ns_draw_window_cursor): Don't call
5402 NSDisableScreenUpdates and NSEnableScreenUpdates on
5403 non-NS_IMPL_COCOA systems.
5404
5405 2008-08-23 Andreas Schwab <schwab@suse.de>
5406
5407 * process.c (procfs_system_process_attributes): Fix use of
5408 uninitialized variables.
5409
5410 2008-08-23 Eli Zaretskii <eliz@gnu.org>
5411
5412 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5413
5414 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5415 calling tty-set-up-initial-frame-faces.
5416
5417 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5418 Allow MSDOS frames along with X frames.
5419
5420 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5421 addition to output_termcap.
5422
5423 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5424
5425 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5426 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5427 highlight.
5428
5429 * process.c [!subprocesses]: Define QCname.
5430 (syms_of_process): Intern and staticpro it.
5431
5432 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5433 Adjust for changes in encoding/decoding routines.
5434 Use encode_coding_object and decode_coding_object instead of
5435 encode_coding and decode_coding.
5436
5437 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
5438
5439 * dosfns.c: Include frame.h before termhooks.h.
5440 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5441 variable termscript.
5442
5443 * s/msdos.h (USER_FULL_NAME): Define.
5444 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5445
5446 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5447 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5448 pw->pw_gecos.
5449
5450 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5451 SELECTED_FRAME as additional (1st) argument.
5452 (tty_read_avail_input): Handle output_msdos_raw in
5453 addition to output_termcap.
5454
5455 * msdos.c: Include frame.h before termhooks.h.
5456 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5457 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5458 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5459 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5460 (IT_set_terminal_modes, IT_reset_terminal_modes)
5461 (IT_set_frame_parameters): Use tty->termscript instead of a global
5462 variable termscript.
5463 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5464 global variable terminal_coding. Don't refer to
5465 Vnonascii_translation_table.
5466 (internal_terminal_init): Set Vwindow_system in current_kboard.
5467 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5468 Announce date and time of session start, if termscript is open.
5469 Don't zero out the_only_display_info (it is done in
5470 term.c:init_tty). Open termscript only of not already open.
5471 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
5472 here instead of dos_ttraw. Don't initialize display if this is an
5473 initial tty. Don't set FRAME_FONT.
5474 (Vwindow_system_version): Bump to 23.
5475 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5476 is available, set up mouse_position_hook.
5477 (dos_ttraw, IT_set_terminal_modes): If called with initial
5478 terminal, do nothing.
5479 (IT_set_frame_parameters): Handle the Qtty_type frame
5480 parameter by calling internal_terminal_init.
5481 (dos_set_window_size, show_mouse_face)
5482 (clear_mouse_face, IT_note_mode_line_highlight)
5483 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5484 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5485 (initialize_msdos_display): New function.
5486 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5487 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5488 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5489 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
5490 Accept additional argument: a pointer to a frame. Update all callers.
5491 (request_sigio, unrequest_sigio): Don't define, now defined on
5492 sysdep.c.
5493 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5494
5495 * term.c [MSDOS]: Include msdos.h.
5496 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5497 conditional to DOS_NT. Allow only one call to this function in a
5498 session. Don't allocate a new struct tty_display_info; instead,
5499 reuse the_only_display_info. Call get_tty_size to get screen
5500 dimensions. Call init_baud_rate to set bad_rate.
5501 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5502 (Fsuspend_tty) [MSDOS]: Don't close input and output.
5503 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
5504 (get_tty_terminal, get_named_tty, Ftty_type)
5505 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5506 output_termcap.
5507 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5508 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
5509 only when subprocesses are supported.
5510
5511 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5512 f->output_data.x.
5513 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5514 terminal devices.
5515
5516 * msdos.h: Remove definition of struct x_display_info and struct
5517 x_output.
5518 (FRAME_FONT): Use output_data.tty.
5519 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
5520 (struct x_display_info): Rename from display_info. Update all users in
5521 msdos.c.
5522 (struct x_output): Remove background_pixel and foreground_pixel.
5523 (the_only_display_info): Rename from the_only_x_display.
5524 (dos_ttraw): Update prototype.
5525
5526 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5527 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5528
5529 2008-08-23 Jason Rumney <jasonr@gnu.org>
5530
5531 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5532 (fn_TIFFSetDirectory): New library function used.
5533 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5534 (tiff_load): Use :index to select among multiple images. Set count
5535 property when multiple images exist.
5536 (gif_format): Use :index, not :image.
5537
5538 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
5539
5540 * xdisp.c (try_scrolling): Check INT_MAX instead of
5541 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5542 to obtain INT_MAX.
5543
5544 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5545
5546 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5547
5548 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5549
5550 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5551 GNUstep library location.
5552
5553 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
5554
5555 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5556 before using it.
5557
5558 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5559
5560 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5561
5562 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5563 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5564 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5565 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5566 (EmacsApp-cursor_blink_handler): Remove declaration.
5567 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5568 match 01 Feb 2008 changes in xterm.c.
5569 (ns_read_socket): Add cast to avoid warning.
5570 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5571 GNUstep.
5572
5573 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
5574
5575 * xselect.c (x_get_foreign_selection): Return nil if desired
5576 selection could not be obtained, instead of signalling an error.
5577
5578 2008-08-20 David Reitter <david.reitter@gmail.com>
5579
5580 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5581 * nsterm.m: Remove ns-specific code for cursor blinking.
5582 (ns_draw_window_cursor): Clear cursor properly rather than
5583 redrawing the area. Respect width of bar cursors.
5584 These changes enable the use of generic blink-cursor-mode and
5585 generic cursor types in NS and support smooth cursor movements (do
5586 not blink off after command).
5587 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5588 Nextstep, too.
5589
5590 2008-08-19 Kenichi Handa <handa@m17n.org>
5591
5592 * font.c (Vfont_log_deferred): New variable.
5593 (font_add_log): Check Vfont_log_deferred.
5594 (font_deferred_log): New function.
5595
5596 * font.h (font_deferred_log): Extern it.
5597
5598 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5599 for sorting.
5600 (face_for_char): Use deferred log.
5601
5602 2008-08-18 Kenichi Handa <handa@m17n.org>
5603
5604 * fontset.c (face_for_char): Add font log.
5605
5606 * font.c (font_add_log): Add the font properties :script, :lang,
5607 and :otf in the log.
5608
5609 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
5610
5611 * xdisp.c: Remove dead code.
5612 (handle_invisible_prop, next_overlay_string): Defer call to
5613 setup_for_ellipsis.
5614 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5615
5616 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
5617
5618 * xfaces.c (lookup_derived_face): Properly handle possible zero
5619 return value of get_lface_attributes.
5620 (merge_faces): Don't tell lookup_derived_face to signal an error
5621 if face is not found.
5622
5623 * dired.c (Fdirectory_files): Doc fix.
5624
5625 * process.c (make_process): Initialize kill_without_query struct
5626 member.
5627
5628 2008-08-15 Eli Zaretskii <eliz@gnu.org>
5629
5630 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5631 Alternative calculation of totphys for Visual Studio 6.
5632
5633 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5634
5635 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5636 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5637 All users changed.
5638 (stat): Only root directory passed to GetDriveType. Allow RAM
5639 disk as well as local fixed disk when w32-get-true-file-attributes
5640 is set to `local'.
5641 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5642 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5643 (w32_cached_id, w32_add_to_cache): New functions.
5644 (get_name_and_id): Look account names in the cache before calling
5645 lookup_account_sid.
5646 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5647 New initialization flags.
5648 (globals_of_w32): Initialize them to zero.
5649 (w32_system_process_attributes): Use w32_cached_id and
5650 w32_add_to_cache.
5651
5652 2008-08-14 Lawrence Mitchell <wence@gmx.li>
5653
5654 * lread.c (Fread_char, Fread_char_exclusive): If no character
5655 event is read before timeout is reached, return nil, rather than
5656 converting to a number.
5657
5658 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
5659
5660 * fns.c (use_dialog_box): Doc fix.
5661
5662 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5663 on OS X.
5664
5665 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
5666
5667 * frame.c (Qns_parse_geometry): New var.
5668 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5669
5670 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
5671
5672 * xdisp.c (x_produce_glyphs): Handle the case when font has no
5673 space character in calculating tabs.
5674
5675 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
5676
5677 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
5678
5679 2008-08-10 Glenn Morris <rgm@gnu.org>
5680
5681 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
5682 silence gcc "limited range of data type" warnings in some
5683 make_fixnum_or_float calls.
5684
5685 2008-08-09 Eli Zaretskii <eliz@gnu.org>
5686
5687 * w32.c (w32_system_process_attributes): If the process does not
5688 exist, return nil.
5689
5690 * w32.c: Include thelp32.h, psapi.h and coding.h.
5691 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
5692 declarations.
5693 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
5694 (Process32Next_Proc): New typedefs.
5695 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
5696 (g_b_init_process32_next, g_b_init_open_thread_token)
5697 (g_b_init_impersonate_self, g_b_init_revert_to_self)
5698 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
5699 (g_b_init_get_process_working_set_size)
5700 (g_b_init_global_memory_status_ex): New static variables.
5701 (globals_of_w32): Initialize them.
5702 (create_toolhelp32_snapshot, process32_first, process32_next)
5703 (open_thread_token, impersonate_self, revert_to_self)
5704 (get_process_memory_info, get_process_working_set_size)
5705 (global_memory_status, global_memory_status_ex): New wrapper
5706 functions.
5707 (w32_list_system_processes, w32_system_process_attributes)
5708 (enable_privilege, restore_privilege, ltime, process_times):
5709 New functions.
5710 (convert_time_raw): New function.
5711 (convert_time): Remove conversion of FILETIME into time in 100
5712 nsec units, call convert_time_raw instead.
5713
5714 * process.h (w32_list_system_processes, w32_system_process_attributes):
5715 Add prototypes.
5716 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
5717 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
5718 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
5719 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
5720
5721 * process.c (Fsystem_process_attributes): Doc fix.
5722
5723 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
5724
5725 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
5726 a continued multi-char glyph; if so, advance to the actual glyph.
5727
5728 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5729
5730 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
5731
5732 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
5733 (.m.o): Use it.
5734 * config.in: Regenerate.
5735
5736 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
5737
5738 * xdisp.c (redisplay_window): Revert last change.
5739 (try_window): Check bottom scroll margin too.
5740
5741 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5742
5743 * config.in: Regenerate.
5744
5745 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
5746 -list-load-path-shadows'.
5747 (nsgui.h): Reduce number of things depending on it.
5748
5749 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
5752 instead of window-end which does the wrong thing at eob.
5753 (try_cursor_movement): Minor optimization.
5754 (redisplay_window): If scroll margin is defined, don't assume
5755 window doesn't need scrolling.
5756
5757 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5758
5759 * config.in: Regenerate.
5760
5761 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
5762 (mostlyclean): Don't delete *.d under NS.
5763
5764 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
5765
5766 2008-08-06 Kenichi Handa <handa@m17n.org>
5767
5768 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
5769
5770 2008-08-06 Andreas Schwab <schwab@suse.de>
5771
5772 * config.in: Regenerate.
5773
5774 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
5775
5776 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
5777 forcing a window start.
5778
5779 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
5780 (auto_save_1): Update modtime when auto-save-list-file-name is on.
5781
5782 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5783
5784 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
5785 argument.
5786
5787 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
5788
5789 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
5790 <scroll-down-aggressively, before-change-functions>:
5791 <after-change-functions>: Reflow docstrings.
5792
5793 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5794 Ken Raeburn <raeburn@gnu.org>
5795
5796 Dock menu customization, based on a patch by Ken Raeburn, plus some
5797 other fixes.
5798 * nsmenu.m (dockMenu): New variable.
5799 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
5800
5801 * nsterm.h (dockMenu): Declare.
5802
5803 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
5804 (ns_term_init): Initialize dockMenu.
5805 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
5806 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
5807 left.
5808
5809 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
5810
5811 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
5812
5813 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
5814
5815 * config.in: Regenerate.
5816
5817 2008-08-04 Seiji Zenitani <zenitani@mac.com>
5818
5819 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
5820
5821 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
5822
5823 * nsterm.h (find_and_call_menu_selection): Fix prototype.
5824
5825 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5826
5827 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
5828
5829 * keyboard.h: Comment an #endif.
5830
5831 * lisp.h (have_menus_p): Adjust comment.
5832
5833 * menu.c (find_and_return_menu_selection): Fix comparison with
5834 client_data.
5835
5836 * nsmenu.m (popup_activated_flag): New variable.
5837 (popup_activated): New function.
5838 (menu-or-popup-active-p): New exported lisp definition.
5839 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
5840 when popup done.
5841 (ns_popup_dialog): Set popup_activated_flag.
5842
5843 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
5844 version for GNUstep (handled by conditional typedef in nsterm.m).
5845 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
5846 in rgb.txt).
5847
5848 * process.c (init_process): Use DARWIN_OS, not DARWIN.
5849
5850 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
5851
5852 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
5853
5854 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
5855 shortcircuit if popup_activated like GTK and X toolkit.
5856
5857 * m/inter386.h: Change DARWIN to DARWIN_OS.
5858
5859 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
5860 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
5861 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
5862 comment on NO_SOCK_SIGIO.
5863
5864 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
5865
5866 * nsterm.m (windowDidResize): Remove stopModal call.
5867
5868 2008-08-03 Andreas Schwab <schwab@suse.de>
5869
5870 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
5871 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
5872
5873 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
5874
5875 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
5876 Don't use uninitialized pointer variable when using getrlimit.
5877
5878 2008-08-02 Jason Rumney <jasonr@gnu.org>
5879
5880 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
5881
5882 2008-08-02 Eli Zaretskii <eliz@gnu.org>
5883
5884 * alloc.c (NSTATICS): Bump to 0x640.
5885
5886 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
5887
5888 * lisp.h: Add prototype for directory_files_internal.
5889
5890 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
5891 New functions.
5892 (syms_of_process): Defsubr them. Add initializations for various
5893 Q* symbols used in procfs_system_process_attributes.
5894 (procfs_list_system_processes, procfs_system_process_attributes)
5895 [HAVE_PROCFS]: New functions.
5896 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
5897 (procfs_get_total_memory): New functions.
5898
5899 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
5900
5901 * xfaces.c (Fx_load_color_file): Fix previous change;
5902 it is #ifdef WINDOWSNT, not WINDOWS_NT.
5903
5904 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
5905
5906 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
5907
5908 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5909
5910 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
5911
5912 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
5913
5914 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
5915
5916 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
5917 define NSApplicationDelegateReplySuccess.
5918 (EmacsView -converstationIdentifier): Use long instead of
5919 NSInteger for GNUstep, since it doesn't have NSInteger.
5920
5921 * xmenu.c: Revert last change.
5922
5923 * keyboard.h: Fix last change.
5924
5925 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
5926
5927 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
5928 on Windows.
5929
5930 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5931
5932 Warning clearing and clean-up in NS port.
5933 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5934 Add prototypes.
5935 * nsgui.h (FACE_DEFAULT): Remove, unused.
5936 (XGCValues): Change colors to unsigned long.
5937 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
5938 nsterm.m.
5939 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
5940 (ns_list_fonts): Remove, unused.
5941 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
5942 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
5943 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
5944 (nsfont_draw): Compare face colors to 0, not nil.
5945 * nsmenu.m (struct widget_value): Drop unneeded declaration.
5946 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
5947 (-addSubmenuWithTitle:): Use NSMenuItem class.
5948 (ns_popup_menu): Use NO, not NULL, for enabled setting.
5949 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
5950 (ns_clip_to_row): Make gc arg a BOOL.
5951 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
5952 ns_clip_to_row() call.
5953 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
5954 used). Cast FRAME_FONT assignments.
5955 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
5956 (ns_string_to_lispmod): Change arg to const char.
5957 (ns_term_init): Use NSMenuItem class.
5958 (EmacsApp -openFile:): Move to different section of file.
5959 (EmacsApp -application:openFiles:): Don't return a value, call
5960 -replyToOpenOrPrint:.
5961 (EmacsView -keyDown:): Fix up cast.
5962 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
5963 (EmacsView -menuDown:): Cast tag in call to
5964 find_and_call_menu_selection().
5965 (ns_list_fonts): Remove, unused.
5966 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
5967 (ns_fontname_to_xlfd): Make static.
5968 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
5969 Remove prototypes (now in keyboard.h).
5970 (next_menubar_widget_id): Remove, unused.
5971 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
5972 Remove prototypes (now in keyboard.h).
5973 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
5974
5975 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
5976
5977 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
5978 (floatfns.o): Depend on syssignal.h.
5979 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
5980
5981 * systty.h: Fix previous change that removed BSD_TERMIOS.
5982 Add comments to #ifdefs.
5983
5984 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5985
5986 * w32fns.c (w32-load-color-file): Remove.
5987 (x-open-connection): Use renamed Fx_load_color_file.
5988 * xfaces.c (x-load-color-file): Add.
5989 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
5990 Emacs.clr.
5991 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
5992
5993 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
5994
5995 * dbusbind.c (Fdbus_call_method_asynchronously)
5996 (Fdbus_method_error_internal): New defuns.
5997 (xd_read_message): Handle also reply messages.
5998 (Vdbus_registered_functions_table): Extend docstring.
5999
6000 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
6001
6002 * keyboard.c (gobble_input): Fix previous change.
6003
6004 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6005
6006 * bitmaps/README:
6007 * xfns.c:
6008 * termcap.c:
6009 * term.c:
6010 * syswait.h:
6011 * systty.h:
6012 * systime.h:
6013 * syssignal.h:
6014 * sysdep.c:
6015 * process.h:
6016 * process.c:
6017 * print.c:
6018 * ndir.h:
6019 * lread.c:
6020 * keyboard.c:
6021 * getpagesize.h:
6022 * floatfns.c:
6023 * fileio.c:
6024 * emacs.c:
6025 * doc.c:
6026 * dispnew.c:
6027 * dired.c:
6028 * data.c:
6029 * callproc.c:
6030 * buffer.c:
6031 * README:
6032 * Makefile.in:
6033 * s/template.h:
6034 * s/msdos.h:
6035 * m/vax.h: Remove VMS support.
6036 * s/vms.h:
6037 * vlimit.h:
6038 * uaf.h:
6039 * temacs.opt:
6040 * param.h:
6041 * ioctl.h: Remove file.
6042
6043 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6044
6045 * s/ms-w32.h (MULTI_KBOARD): Remove.
6046 * xterm.c:
6047 * xselect.c:
6048 * xfns.c:
6049 * window.c:
6050 * w32term.c:
6051 * w32fns.c:
6052 * terminal.c:
6053 * termhooks.h:
6054 * term.c:
6055 * sysdep.c:
6056 * keyboard.h:
6057 * keyboard.c:
6058 * frame.h:
6059 * frame.c:
6060 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6061 * config.in: Regenerate.
6062
6063 2008-07-30 Jason Rumney <jasonr@gnu.org>
6064
6065 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6066
6067 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6068 (w32font_open_internal): Get unicode version of textmetrics.
6069 Don't enable or disable glyph indices here.
6070 (w32font_open): Disable use of glyph indices.
6071
6072 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6073
6074 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
6075
6076 * minibuf.c (Vread_buffer_function): Doc fix.
6077
6078 2008-07-30 John Paul Wallington <jpw@pobox.com>
6079
6080 * minibuf.c (read_buffer_completion_ignore_case): New var.
6081 (Fread_buffer): Use it.
6082
6083 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6084
6085 * systty.h (sensemode): Remove empty #if. Remove reference to
6086 BSD_TERMIOS, unused.
6087
6088 * sysdep.c: Remove reference to DGUX.
6089 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6090
6091 * config.in: Regenerate.
6092
6093 2008-07-30 Jason Rumney <jasonr@gnu.org>
6094
6095 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6096
6097 2008-07-29 Jason Rumney <jasonr@gnu.org>
6098
6099 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6100 is populated.
6101 (uniscribe_encode_char): Always use uniscribe.
6102 Avoid using context if cache is populated.
6103
6104 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6105
6106 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6107 open menu.
6108
6109 * gtkutil.c (menu_nav_ended): Remove.
6110 (create_menus): Remove signal connect for menu_nav_ended.
6111
6112 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
6113
6114 * xdisp.c (redisplay_window): Check return value of
6115 compute_window_start_on_continuation_line before forcing a window
6116 start.
6117
6118 2008-07-28 Jason Rumney <jasonr@gnu.org>
6119
6120 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6121
6122 * w32term.c (w32_enable_unicode_output, cleartype_active):
6123 Remove obsolete display options.
6124 (x_draw_glyph_string_background): Don't use old cleartype_active
6125 workaround.
6126 (w32_initialize): Remove cleartype_active initialization.
6127 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6128
6129 2008-07-28 Andreas Schwab <schwab@suse.de>
6130
6131 * lisp.h (init_weak_hash_tables, syms_of_font)
6132 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6133 (remove_hash_entry): Don't declare.
6134 * eval.c (maybe_call_debugger): Make static and move before use.
6135 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6136 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6137 * xterm.h (x_set_frame_alpha): Declare.
6138
6139 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6140
6141 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6142 (create_menus): Connect selection-done to menu_nav_ended.
6143
6144 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6145
6146 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6147 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6148 parameter with read of 'alpha' one.
6149 (Qns_frame_parameter): Remove.
6150 * nsselect.m (selection-coding-system)
6151 (next-selection-coding-system, Vselection_coding_system)
6152 (Vnext_selection_coding_system): Drop.
6153
6154 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6155
6156 * nsfns.m (do-applescript, do_applescript): Rename to
6157 ns-do-applescript, ns_do_applescript, and move within file.
6158
6159 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6160
6161 Remove support for Mac Carbon.
6162 * mactoolbox.c:
6163 * macterm.h:
6164 * macterm.c:
6165 * macselect.c:
6166 * macmenu.c:
6167 * macgui.h:
6168 * macfns.c:
6169 * mac.c: Remove file.
6170 * s/darwin.h:
6171 * m/intel386.h:
6172 * xfaces.c:
6173 * xdisp.c:
6174 * window.c:
6175 * tparam.c:
6176 * termhooks.h:
6177 * termcap.c:
6178 * term.c:
6179 * syssignal.h:
6180 * sysselect.h:
6181 * sysdep.c:
6182 * process.c:
6183 * lread.c:
6184 * lisp.h:
6185 * keyboard.c:
6186 * image.c:
6187 * fringe.c:
6188 * frame.h:
6189 * frame.c:
6190 * fontset.c:
6191 * font.h:
6192 * font.c:
6193 * fns.c:
6194 * fileio.c:
6195 * emacs.c:
6196 * dispnew.c:
6197 * dispextern.h:
6198 * config.in:
6199 * atimer.c:
6200 * Makefile.in: Remove code for Carbon.
6201
6202 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6203
6204 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6205
6206 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6207
6208 * macterm.h (kCGBitmapByteOrder32Host): New define for
6209 non-universal SDKs.
6210
6211 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6212 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6213
6214 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6215 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6216
6217 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6218
6219 * w32inevt.c: Include dispextern.h.
6220
6221 2008-07-26 Andreas Schwab <schwab@suse.de>
6222
6223 * print.c (print_object): Fix off-by-one in last change.
6224
6225 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
6226
6227 * term.c (syms_of_term): Don't initialize default_orig_pair,
6228 default_set_foreground and default_set_background on Windows.
6229
6230 2008-07-25 Jason Rumney <jasonr@gnu.org>
6231
6232 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6233 ScriptItemize. Clean up return value checking. Remove unused
6234 variables.
6235 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6236 shaping engine.
6237
6238 * w32font.c (w32font_has_char): Handle the case where we can't
6239 determine the script for a character.
6240
6241 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6242
6243 * term.c (syms_of_term): Initialize default_orig_pair,
6244 default_set_foreground, and default_set_background.
6245
6246 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6247 clash (bug#86).
6248 (getloadavg): Callers changed.
6249
6250 * image.c (svg_load_image): Fix last change.
6251 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6252 image size is valid. Use g_object_unref instead of deprecated
6253 rsvg_handle_free to free rsvg handle.
6254 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6255
6256 2008-07-25 Jason Rumney <jasonr@gnu.org>
6257
6258 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6259 surrogates before looking up glyph index.
6260 (w32font_text_extents): Encode as surrogates if falling back to
6261 functions that need UTF-16 wide chars.
6262
6263 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6264 BMP as surrogates before looking up glyph index.
6265
6266 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
6267
6268 * image.c (svg_load_image): Check for failure in return value of
6269 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6270
6271 2008-07-25 Jason Rumney <jasonr@gnu.org>
6272
6273 * w32font.c (Fx_select_font): Reverse sense of second arg.
6274
6275 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6276
6277 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6278 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6279
6280 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6281 (PURESIZE): Use it.
6282
6283 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6284
6285 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6286 * m/alpha.h (TEXT_END):
6287 * m/ibmrs6000.h (TEXT_END):
6288 * m/macppc.h (TEXT_END):
6289 * s/darwin.h (TEXT_END):
6290 * s/msdos.h (TEXT_END): Remove, unused.
6291 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6292 * s/cygwin.h: Remove comment.
6293
6294 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6295 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6296 * m/intel386.h (DOT_GLOBAL_START):
6297 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6298 (USG): Remove, file not used on USG platforms.
6299
6300 * Makefile.in (HAVE_X11): Remove empty #else.
6301
6302 2008-07-24 Andreas Schwab <schwab@suse.de>
6303
6304 * fileio.c (Finsert_file_contents): Properly adjust undo list
6305 after format conversion.
6306
6307 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6308
6309 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6310 (menu_nav_ended): Remove.
6311 (create_menus): Remove signal connect for menu_nav_ended.
6312 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6313 create_menus.
6314 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6315
6316 2008-07-23 Jason Rumney <jasonr@gnu.org>
6317
6318 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6319 with opened font.
6320 (w32font_open): Set font type to gdi.
6321
6322 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6323
6324 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6325
6326 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6327 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6328 defines it.
6329 * unexec.c (ADDR_CORRECT): Define unconditionally.
6330
6331 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6332
6333 * unexec.c: Remove code depending on !COFF and USG, the file is
6334 not used for such systems.
6335
6336 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6337 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6338 (LD_SWITCH_SYSTEM_1): Remove, update users.
6339
6340 * s/darwin.h (DATA_END):
6341 * m/intel386.h (DATA_END):
6342 * m/ibmrs6000.h (DATA_END):
6343 * m/alpha.h (DATA_END): Remove, unused.
6344
6345 * config.in: Regenerate.
6346 * s/ms-w32.h (subprocesses): Define unconditionally.
6347 * s/template.h (subprocesses): Update comment.
6348 * s/vms.h (subprocesses):
6349 * s/usg5-4.h (subprocesses):
6350 * s/hpux10-20.h (subprocesses):
6351 * s/gnu-linux.h (subprocesses):
6352 * s/cygwin.h (subprocesses):
6353 * s/bsd-common.h (subprocesses):
6354 * s/aix4-2.h (subprocesses):
6355 * s/darwin.h (subprocesses): Do not define, defined by default now.
6356
6357 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6358 Remove all references.
6359 (temacs): Add GNUstep specific ld flags.
6360
6361 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6362 similarly to what X does.
6363
6364 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6365
6366 * nsfns.m (x-list-fonts): Remove.
6367 (syms_of_nsfns): Drop the x-list-fonts declaration.
6368 * nsterm.m: Get rid of remaining "//" comments.
6369
6370 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
6371
6372 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6373
6374 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6375 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6376 (Fns_own_selection_internal, Fx_disown_selection_internal)
6377 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6378
6379 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6380 ... */' style of docstrings. Doc fixes.
6381
6382 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6383
6384 * terminfo.c (UP, BC, PC): Undo previous change.
6385
6386 * nsfns.m: Rename ns prefixed functions/variables to the
6387 corresponding x versions. Update references.
6388
6389 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6390
6391 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6392
6393 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6394
6395 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6396 Remove forwarding functions.
6397 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6398 non-static.
6399 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6400 non-static.
6401 (ns_frame_parm_handlers): Use the new names.
6402 (syms_of_nsfns): Move to the end of file.
6403
6404 * nsterm.m (syms_of_nsterm): Move to the end of file.
6405
6406 * dispnew.c (init_display): Remove code for X10.
6407
6408 2008-07-22 Jason Rumney <jasonr@gnu.org>
6409
6410 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6411 bare drive.
6412
6413 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6414
6415 * nsterm.m (syms_of_nsterm): Remove debugging println.
6416
6417 2008-07-22 David Reitter <david.reitter@gmail.com>
6418
6419 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6420 Carbon implementation of the same functionality: execute arbitrary
6421 AppleScript code.
6422
6423 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6424
6425 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6426 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6427 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6428 (Fx_display_mm_height, Fx_display_mm_width)
6429 (Fx_display_backing_store, Fx_display_visual_class)
6430 (Fx_display_save_under, Fx_open_connection)
6431 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6432 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6433 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6434 (Fx_display_pixel_width, Fx_display_pixel_height)
6435 (Fx_display_usable_bounds, Fx_display_planes)
6436 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6437 ... */' style of docstrings.
6438
6439 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6440
6441 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6442 on this platform.
6443 (mips):
6444 * m/iris4d.h (mips): Do not define.
6445 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6446
6447 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6448
6449 * image.c:
6450 * nsfns.m:
6451 * nsselect.m:
6452 * nsterm.h:
6453 * nsterm.m: Rename ns prefixed functions/variables to the
6454 corresponding x versions. Update references.
6455
6456 * m/ibms390x.h (NO_REMAP): Do not undefine.
6457
6458 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6459
6460 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
6461
6462 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6463 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6464 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6465 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6466 (Fns_display_mm_height, Fns_display_mm_width)
6467 (Fns_display_backing_store, Fns_display_visual_class)
6468 (Fns_display_save_under, Fns_open_connection)
6469 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6470 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6471 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6472 (Fns_display_pixel_width, Fns_display_pixel_height)
6473 (Fns_display_usable_bounds, Fx_display_planes)
6474 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6475
6476 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6477
6478 * print.c (print_object): Check print_depth before searching for
6479 circularities.
6480
6481 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
6482
6483 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6484 only sprintf.
6485
6486 2008-07-21 Kenichi Handa <handa@m17n.org>
6487
6488 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6489
6490 2008-07-20 Andreas Schwab <schwab@suse.de>
6491
6492 * syntax.c (find_start_pos, find_start_value)
6493 (find_start_value_byte, find_start_begv, find_defun_start)
6494 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6495
6496 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6497
6498 * s/sol2-3.h: Insert contents of s/sol2.h.
6499 (LD_SWITCH_SYSTEM): Remove redundant definition.
6500 * s/sol2.h: Remove, unused.
6501
6502 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6503
6504 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6505
6506 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6507
6508 * Makefile.in (ns_appdir): Fix typo in find command.
6509
6510 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6511
6512 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6513
6514 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6515 added not supported anymore.
6516
6517 * s/usg5-4-2.h (LIBS_SYSTEM):
6518 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6519
6520 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6521 * s/lynxos.h (GETPGRP_NO_ARG):
6522 * s/hpux10-20.h (NO_SIOCTL_H):
6523 * s/gnu.h (GETPGRP_NO_ARG):
6524 * s/gnu-linux.h (NO_SIOCTL_H):
6525 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6526 * s/cygwin.h (GETPGRP_NO_ARG):
6527 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6528 (C_DEBUG_SWITCH): Remove duplicate definition.
6529
6530 * m/ibms390.h: Remove boilerplate comments.
6531
6532 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6533
6534 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6535 (wait_reading_process_output): Remove code for SunOS, platform not
6536 supported anymore. Use SOLARIS2 instead of sun.
6537
6538 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6539
6540 * font.c (font_open_by_name): Under NS, default lface height to zero.
6541 (font_open_for_lface): Under NS, set size based on frame fontsize.
6542 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6543 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6544
6545 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6546
6547 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6548 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6549 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6550 YES/NO.
6551 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6552 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6553 * Makefile.in (clean): Clear out build destination dir.
6554
6555 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6556
6557 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6558 xterm, xselect.
6559 * lisp.h: Remove declaration of hash_remove.
6560 * nsgui.h: Remove redefinitions of hash_remove.
6561 * fns.c (hash_remove): Rename to hash_remove_from_table.
6562
6563 2008-07-19 Seiji Zenitani <zenitani@mac.com>
6564
6565 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6566 strdup() the family UTF8String before modifying it.
6567
6568 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6569
6570 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6571 NS_FACE_BACKGROUND with 0 instead of nil.
6572 * nsfont.m (nsfont_draw): Same.
6573
6574 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
6575
6576 * nsfns.m (ns_set_background_color): Fix crash.
6577
6578 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
6579
6580 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6581
6582 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6583
6584 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6585
6586 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6587
6588 * gtkutil.c: Include <config.h> instead of "config.h".
6589
6590 * lisp.h (Foverlay_buffer): Add EXFUN.
6591
6592 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6593 child process to complete child_setup. Undo 2005-09-21 change.
6594
6595 * s/darwin.h: Mention setsid after vfork.
6596
6597 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6598
6599 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6600 Depend on macgui.h.
6601
6602 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6603 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6604
6605 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6606 and f19.
6607 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6608
6609 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6610 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6611 Remove enumerators.
6612
6613 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6614 Check if FACE_FROM_ID returns NULL.
6615
6616 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6617
6618 * w32inevt.c (change_frame_size): Remove extern declaration.
6619 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6620 change_frame_size.
6621
6622 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6623
6624 * getloadavg.c: Revert last change (2008-07-15).
6625
6626 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6627
6628 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
6629 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
6630 from configure.
6631
6632 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6633
6634 * s/sol2.h:
6635 * s/sol2-4.h: Reorganize conditionals.
6636
6637 * ecrt0.c: Remove code depending on m68000, not used anymore.
6638
6639 * fns.c (hash_remove): Make static.
6640 * lisp.h (hash_remove): Don't prototype.
6641
6642 * m/ibmrs6000.h:
6643 * m/ibms390x.h:
6644 * m/macppc.h: Remove boilerplate comments.
6645
6646 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6647 Solaris, which does not need them.
6648
6649 * m/vax.h: Remove comments about unsupported systems.
6650
6651 * s/darwin.h: Reorganize ifdefs.
6652
6653 2008-07-17 Andreas Schwab <schwab@suse.de>
6654
6655 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6656
6657 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6658
6659 Use SDATA. Follow coding convention of placing operators at
6660 beginning of next line rather than end of previous line, and placing
6661 spaces around infix operators.
6662
6663 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6664 in case it was defined already.
6665 USE @GNUSTEP_MAKEFILES@ rather than envvars.
6666 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6667 ns_default.
6668 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6669 Lisp_Objects.
6670 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6671 (ns_defined_color, ns_color_to_lisp): Declare.
6672 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6673 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6674 it's accepted even with USE_LISP_UNION_TYPE.
6675 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
6676 (update_frame_tool_bar): Remove apparently obsolete tests for
6677 non-integerness of f->tool_bar_lines.
6678 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
6679 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
6680 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
6681 (nsfont_open): Don't confuse NULL for Qnil.
6682 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
6683 * menu.h (find_and_call_menu_selection):
6684 * menu.c (find_and_call_menu_selection): Use just int for vector size.
6685 (find_and_return_menu_selection): Always return something.
6686 * frame.h: Include dispextern.h for Display_Info.
6687 (display_x_get_resource): Declare.
6688
6689 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
6690
6691 * syntax.c: Remove stdio.h include accidentally introduced in
6692 Emacs.app commit.
6693 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
6694 NS_IMPL_COCOA.
6695 * keyboard.c (handle_async_input, input_available_signal): Remove
6696 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
6697
6698 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6699
6700 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
6701 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
6702 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
6703 Use SDATA.
6704
6705 * keymap.c: Remove all NS-specific code.
6706 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
6707 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
6708 where_is_preferred_modifier, return a different value depending on how
6709 preferred is the binding.
6710 (where_is_internal): Adjust accordingly.
6711 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
6712 Adjust to new preferred_sequence_p.
6713 (syms_of_keymap): Declare `where-is-preferred-modifier'.
6714 * keyboard.c (parse_solitary_modifier): Not static any more.
6715 * keyboard.h (parse_solitary_modifier): Declare.
6716
6717 2008-07-16 Andreas Schwab <schwab@suse.de>
6718
6719 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
6720 of easymenu.
6721
6722 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
6723
6724 * xdisp.c (move_it_in_display_line): Account for word wrap, so
6725 that we don't move off the line.
6726
6727 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6728
6729 * keyboard.c (Qsuper): Remove.
6730 (parse_menu_item): Don't call where_is_internal specially for NS.
6731
6732 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6733
6734 * s/gnu-linux.h: Remove boilerplate comments.
6735
6736 * m/alpha.h (__ELF__): Consolidate conditions.
6737
6738 * m/m68k.h (linux): Use GNU_LINUX instead.
6739 Remove boilerplate comments.
6740
6741 * m/intel386.h: Undo refactoring from previous change.
6742 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
6743 too, remove dead code.
6744 (linux): Use GNU_LINUX instead.
6745
6746 2008-07-16 Jason Rumney <jasonr@gnu.org>
6747
6748 * w32gui.h: Repeat 26 June changes lost by last change.
6749
6750 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6751
6752 * systty.h: Remove code for Aix on 386, unsupported platform.
6753
6754 * s/ms-w32.h: Remove boilerplate comments.
6755 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
6756
6757 * s/gnu-linux.h (TERM): Remove support.
6758 (HAVE_SYSVIPC): Remove, unused.
6759 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
6760 for this system.
6761
6762 * process.c: Remove support for IRIS, unused.
6763 Remove support for TERM, not relevant anymore.
6764
6765 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
6766 used with the definition.
6767
6768 * s/aix4-2.h (static): Do not undef.
6769
6770 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
6771 only used on Aix.
6772 (HAVE_SYSVIPC): Remove, unused.
6773
6774 * m/hp800.h (CANNOT_DUMP): Do not undef.
6775
6776 * m/alpha.h: Fix comment.
6777
6778 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
6779 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
6780 used by this configuration.
6781 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
6782 * unexec.c: Remove code depending on HPUX and
6783 USG_SHARED_LIBRARIES, not used with this file. Remove code
6784 depending on IRIS, unused. Remove if 0-ed code.
6785
6786 * s/template.h: Remove comments about static.
6787
6788 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
6789 Remove if 0-ed code.
6790 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
6791 were the same as the default.
6792 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
6793 Remove boilerplate comments.
6794 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
6795 (HAVE_SYSVIPC): Remove, unused.
6796 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
6797
6798 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6799 Remove boilerplate comments.
6800 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6801 Remove boilerplate comments.
6802 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6803 Remove boilerplate comments.
6804 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
6805
6806 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
6807 USG systems which do not use DATA_SEG_BITS.
6808 Refactor code. Remove boilerplate comments.
6809
6810 * m/ibms390.h:
6811 * m/m68k.h:
6812 * s/bsd-common.h:
6813 * s/cygwin.h:
6814 * s/darwin.h:
6815 * s/freebsd.h:
6816 * s/gnu.h:
6817 * s/msdos.h: Remove boilerplate comments.
6818
6819 * m/iris4d.h: Remove boilerplate comments and code for systems that
6820 do not use this file.
6821 (IRIS_4D): Remove, unused.
6822
6823 * m/mips.h: Remove boilerplate comments and code for systems that
6824 do not use this file.
6825 (SIGN_EXTEND_CHAR):
6826 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
6827 * unexmips.c: Remove file, unused.
6828
6829 * editfns.c (Fuser_full_name): Replace the only use of
6830 USER_FULL_NAME with its value.
6831 * config.in: Regenerate.
6832
6833 2008-07-16 David Reitter <david.reitter@gmail.com>
6834
6835 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
6836 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6837
6838 2008-07-16 Glenn Morris <rgm@gnu.org>
6839
6840 * emacs.c (system-type): Doc fix.
6841
6842 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
6843
6844 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
6845 If the cache doesn't work, let's fix it, rather than work around it.
6846
6847 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6848
6849 * Makefile.in: Correct additions for nsfont.o in last commit.
6850 * nsfont.m: New file (forgot last commit).
6851
6852 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6853
6854 * callproc.c (set_initial_environment): Initialize
6855 Vprocess_environment under CANNOT_DUMP (fixes crash when
6856 batch-compiling for bootstrap).
6857
6858 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6859 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6860
6861 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
6862 fix crash due to different init order.
6863
6864 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6865
6866 Changes and additions for NeXTstep windowing system (Cocoa and
6867 GNUstep) support.
6868
6869 * Makefile.in:
6870 * config.in: Support defines and build commands for NS port.
6871 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
6872 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
6873 * dispextern.h: Include nsgui.h and add needed typedefs under NS
6874 windowing.
6875 (struct face): Add synth_ital field.
6876 * dispnew.c: Include nsterm.h when compiling under NS windowing.
6877 (init_display): Initialize Vinitial_window_system to "ns" when so
6878 compiled.
6879 * emacs.c: Include GSConfig.h when compiling under GNUstep.
6880 (display_arg): Use under NS.
6881 (main): Under NS, allocate autorelease pool and handle command line
6882 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
6883 (standard_args): Add NS-specific args.
6884 (shut_down_emacs): Shut down NS terminal if compiled under NS.
6885 * font.c (DEFAULT_ENCODING): New variable.
6886 (font_find_for_lface): Use it.
6887 (syms_of_font): Load syms_of_nsfont under NS.
6888 * font.h: Declare nsfont_driver when compiled under NS.
6889 * fontset.c: When compiling under NS, include nsterm.h.
6890 (fontset_from_font): Autoconstruct fontset under NS.
6891 * frame.c (various): Under NS, include nsterm.h, add Qns window system
6892 symbol, document and use it.
6893 (do_switch_frame): When for_deletion under Cocoa, add
6894 Fraise_frame(Qnil).
6895 (x_set_frame_parameters): Ensure font attribute changes are picked up.
6896 (x_get_arg): Allow "yes" and "no" as boolean values.
6897 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
6898 Qright under Cocoa.
6899 (focus-follows-mouse): Default to 0 under NS.
6900 * frame.h (enum output_method): Add output_ns.
6901 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
6902 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
6903 (FRAME_WINDOW_P): NS-specific definition.
6904 * fringe.c (max_used_fringe_bitmap): Make public.
6905 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
6906 (getloadavg): Use NeXT code under descendant OS's.
6907 * image.c (includes and header section, x_create_bitmap_from_data)
6908 (x_create_bitmap_from_file, free_bitmap_record, image_background)
6909 (image_background_transparent, x_clear_image_1)
6910 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
6911 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
6912 (x_to_xcolors, x_from_xcolors, x_disable_image)
6913 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
6914 other GUIs, including XPM support using code originally written for
6915 Carbon GUI.
6916 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
6917 using NS API.
6918 (image_ascent): Use font metrics macros instead of direct struct field
6919 access.
6920 * keyboard.c (includes): Add nsterm.h when compiling under NS.
6921 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
6922 Also, handle NS as GTK for menu bar purposes.
6923 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
6924 toolkit where they differ.
6925 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
6926 use cachelist, still needed under NS.
6927 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
6928 (struct widget_value): Define it here for menu.c.
6929 * keymap.c (includes): Include modifier internals.
6930 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
6931 NS.
6932 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
6933 support for preferring sequences using certain modifiers, specified by
6934 the FIRSTONLY argument.
6935 * lisp.h (hash_remove): Rename to avoid name clash when compiling
6936 under NS GNUstep implementation.
6937 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
6938 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
6939 * menu.c: Include nsterm.h under NS.
6940 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
6941 (free_menubar_widget_tree_value, update_submenu_strings)
6942 (find_and_call_menu_selection): Treat NS as X and NT.
6943 (find_and_return_menu_selection): New function, used for popup menus.
6944 * nsgui.h:
6945 * nsterm.h:
6946 * nsfns.m:
6947 * nsimage.m:
6948 * nsmenu.m:
6949 * nsselect.m:
6950 * nsterm.m: New files.
6951 * process.c (wait_reading_process_output): Under NS, call ns_select()
6952 instead of plain select().
6953 * syntax.c (char_quoted): Under NS, avoid a crash when called near
6954 beginning of buffer.
6955 * sysselect.h (init_process): Rename when compiling under Cocoa to
6956 avoid name conflict.
6957 * termhooks.h (display_info): Add ns_display_info to union.
6958 * terminal.c (Fterminal_live_p): Add ns to terminal types.
6959 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
6960 COCOA environment.
6961 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
6962 unexec() signature. (Note, this will dump, but the resulting file
6963 crashes; unexosx is used instead; keeping around for reference and
6964 possible aid in getting dump working under GNUstep.)
6965 * w32gui.h (button_type, widget_value): Remove definitions (now in
6966 keyboard.h).
6967 * window.c: Include nsterm.h when compiling under NS.
6968 * xdisp.c (includes): Include nsterm.h when compiling under NS.
6969 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
6970 other GUI windowing systems.
6971 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
6972 GTK.
6973 (x_consider_frame_title): Under NS, set icon type and frame
6974 modified-state indicator; use ns_set_name_as_filename() when using
6975 formatted title.
6976 (update_window_cursor): Make public when compiling under NS.
6977 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
6978 (hourglass_atimer, Vhourglass_delay
6979 * xfaces.c (header section, init_frame_faces, clear_font_table)
6980 (defined_color, unload_color, x_face_list_fonts)
6981 (prepare_face_for_display): Add NS support parallel to other GUIs.
6982 Emulate GCs like other non-X GUIs.
6983 (split_font_name): Don't lowercase font name under NS.
6984 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
6985 under NS.
6986 * s/darwin.h: Add support for compilation under NS.
6987
6988 2008-07-15 Jason Rumney <jasonr@gnu.org>
6989
6990 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
6991 (w32_show_hourglass): Rename from show_hourglass.
6992 (w32_hide_hourglass): Rename from hide_hourglass.
6993 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
6994 (Vhourglass_delay): Declare extern.
6995 (hourglass_started): Remove.
6996
6997 * xdisp.c (Vhourglass_delay): Remove static.
6998 (hourglass_started, start_hourglass, cancel_hourglass):
6999 Don't include these versions on WINDOWSNT.
7000
7001 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7002
7003 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7004 variables (formerly in xfns.c).
7005 (show_hourglass, hide_hourglass): New prototypes (same).
7006 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7007 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7008 in xfns.c).
7009 (syms_of_xdisp): Declare/initialize display-hourglass,
7010 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7011 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7012 formerly in xfns.c.
7013 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7014 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7015 (start_hourglass, cancel_hourglass): Remove.
7016 (show_hourglass, hide_hourglass): Remove prototypes and static
7017 modifiers.
7018 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7019 hourglass_atimer, hourglass_shown_p declaration/initialization.
7020 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7021 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7022 (start_hourglass, cancel_hourglass): Remove.
7023 (show_hourglass, hide_hourglass): Remove prototypes and static
7024 modifiers.
7025 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7026 hourglass_atimer, hourglass_shown_p declaration/initialization.
7027 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7028 (DEFAULT_HOURGLASS_DELAY): Remove.
7029 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7030 hourglass_shown_p declaration/initialization.
7031
7032 2008-07-14 Jason Rumney <jasonr@gnu.org>
7033
7034 * w32fns.c (w32_get_arg): Remove wrapper function.
7035 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7036 directly.
7037 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7038
7039 2008-07-14 Kenichi Handa <handa@m17n.org>
7040
7041 * xfont.c (xfont_open): Add workaround for X's bug.
7042
7043 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7044
7045 * fontset.c: Include <stdio.h> unconditionally.
7046
7047 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
7048
7049 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7050 for filtering.
7051
7052 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7053
7054 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7055
7056 * m/macppc.h:
7057 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7058
7059 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7060 (SPECIAL_EMACS_INT):
7061 * m/ia64.h (SPECIAL_EMACS_INT):
7062 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7063 * s/gnu.h (NLIST_STRUCT):
7064 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7065 * s/gnu-linux.h (LINUX):
7066 * s/msdos.h (HAVE_FACES):
7067 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7068
7069 * systty.h:
7070 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7071 anymore.
7072
7073 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7074
7075 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7076 always defined as int.
7077
7078 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7079 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7080 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7081 * s/freebsd.h (HAVE_WAIT_HEADER):
7082 * s/bsd-common.h (HAVE_UNION_WAIT):
7083 * s/aix4-2.h (HAVE_WAIT_HEADER):
7084 * m/mips.h (HAVE_UNION_WAIT):
7085 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7086 (COFF, static): Do not define, they are undefined later in the file.
7087
7088 * process.c (update_status): Don't use a union.
7089 (status_convert):
7090 (sigchld_handler): Use int instead of WAITTYPE.
7091
7092 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
7093
7094 * indent.c (Fvertical_motion): Restore hscroll before moving to
7095 goal column.
7096
7097 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7098
7099 * lisp.h: Remove left over code.
7100
7101 2008-07-11 Andreas Schwab <schwab@suse.de>
7102
7103 * lisp.h: Fix logic in last change.
7104
7105 * menu.h: New file.
7106 * menu.c: Include it.
7107 * xmenu.c: Likewise.
7108 * Makefile.in: Update dependencies.
7109
7110 2008-07-11 Kenichi Handa <handa@m17n.org>
7111
7112 * fontset.c (fontset_from_font): Cancel the previous change.
7113
7114 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7115
7116 * lisp.h:
7117 * w32heap.c:
7118 * emacs.c:
7119 * alloc.c: Replace all references of NO_UNION_TYPE with
7120 USE_LISP_UNION_TYPE.
7121
7122 * m/xtensa.h (NO_UNION_TYPE):
7123 * m/vax.h (NO_UNION_TYPE):
7124 * m/template.h (NO_UNION_TYPE):
7125 * m/sparc.h (NO_UNION_TYPE):
7126 * m/mips.h (NO_UNION_TYPE):
7127 * m/macppc.h (NO_UNION_TYPE):
7128 * m/m68k.h (NO_UNION_TYPE):
7129 * m/iris4d.h (NO_UNION_TYPE):
7130 * m/intel386.h (NO_UNION_TYPE):
7131 * m/ibms390x.h (NO_UNION_TYPE):
7132 * m/ibms390.h (NO_UNION_TYPE):
7133 * m/ibmrs6000.h (NO_UNION_TYPE):
7134 * m/ia64.h (NO_UNION_TYPE):
7135 * m/hp800.h (NO_UNION_TYPE):
7136 * m/arm.h (NO_UNION_TYPE):
7137 * m/amdx86-64.h (NO_UNION_TYPE):
7138 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7139 defining it the same.
7140
7141 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
7142
7143 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7144
7145 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7146
7147 * fileio.c:
7148 * sysdep.c
7149 * systty.h:
7150 * m/ibmrs6000.h:
7151 * m/iris4d.h:
7152 * s/aix4-2.h:
7153 * s/freebsd.h:
7154 * s/gnu-linux.h:
7155 * s/hpux10-20.h:
7156 * s/hpux11.h:
7157 * s/netbsd.h:
7158 * s/sol2-3.h:
7159 * s/sol2-4.h:
7160 * s/sol2.h:
7161 * s/usg5-4.h:
7162 * s/vms.h: Remove references to unused variables.
7163
7164 2008-07-10 Andreas Schwab <schwab@suse.de>
7165
7166 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7167 pattern before matching the generic family.
7168
7169 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7170
7171 * unexec.c:
7172 * s/vms.h:
7173 * s/usg5-4-2.h:
7174 * s/sol2-5.h:
7175 * s/freebsd.h:
7176 * s/darwin.h: Remove dead code.
7177
7178 * m/template.h:
7179 * m/sparc.h:
7180 * m/mips.h:
7181 * m/m68k.h:
7182 * m/iris4d.h:
7183 * m/intel386.h:
7184 * m/ibms390x.h:
7185 * m/ibms390.h:
7186 * m/ia64.h:
7187 * m/hp800.h:
7188 * m/arm.h:
7189 * m/amdx86-64.h: Remove dead code and references to unused
7190 and compiler defined symbols.
7191
7192 * unexmips.c:
7193 * unexelf.c: Remove references to desupported systems.
7194
7195 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7196
7197 * m/powermac.h: Remove boilerplate comments.
7198 (NO_REMAP): Remove unused definition.
7199
7200 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7201 define them.
7202
7203 2008-07-10 Kenichi Handa <handa@m17n.org>
7204
7205 * xfont.c (xfont_open): Log the reason of failure.
7206
7207 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7208
7209 * fontset.c (fontset_get_font_group):
7210 * font.c (font_check_otf): Specify argument types.
7211
7212 2008-07-09 Kenichi Handa <handa@m17n.org>
7213
7214 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7215 non-ASCII char is found.
7216
7217 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7218 (reorder_font_vector): Change the arg preferred_family to font.
7219 Prefer the spec matching with font.
7220 (fontset_get_font_group): New function.
7221 (fontset_find_font): Change the format of an element of a realized
7222 fontset. Use fontset_get_font_group.
7223 (fontset_font): Try the current fontset, the default fontset, the
7224 fallbacks of the current fontset, and the fallbacks of the default
7225 fontset in this order.
7226 (face_for_char): Delete the shortcut to use the current font.
7227 (fontset_from_font): Don't set fonts for Latin in the fontset.
7228
7229 * font.h (font_make_object, font_match_p): Adjust prototypes.
7230
7231 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7232
7233 * font.c (font_make_object): New arg entity and pixelsize.
7234 (font_check_otf_features, font_check_otf): New functions.
7235 (font_match_p): Check :lang, :script, and :otf properties.
7236
7237 * xfont.c (xfont_open): Adjust it for the change of
7238 font_make_object.
7239 (xfont_text_extents): Fix initial setting of metrics.
7240
7241 * ftfont.c (struct ftfont_info): New member index, delete member
7242 fc_charset_idx. Make the member order compatible with struct
7243 xftfont_info.
7244 (fc_charset_table): Change charset names to registry names.
7245 (ftfont_pattern_entity): Delete the args registry and
7246 fc_charset_idx. Change the value of :font-entity property
7247 to (FONTNAME . INDEX). Always set :registry property to
7248 `iso10646-1'.
7249 (struct ftfont_cache_data): New struct.
7250 (ftfont_lookup_cache): New arg for_face.
7251 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7252 (ftfont_driver): Set the member otf_capability.
7253 (ftfont_get_charset): Adjust it for the change of
7254 fc_charset_table.
7255 (OTF_TAG_SYM): New macro.
7256 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7257 for the change of fc_charset_table.
7258 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7259 ftfont_pattern_entity. Add FC_INDEX to objset.
7260 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7261 and ftfont_pattern_entity.
7262 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7263 font_make_object, struct ftfont_info.
7264 (ftfont_has_char): Use ftfont_get_fc_charset.
7265 (ftfont_otf_features, ftfont_otf_capability): New functions.
7266 (ftfont_shape): Use ftfont_get_otf.
7267 (ftfont_text_extents): Fix initial setting of metrics.
7268
7269 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7270 member order compatible with struct ftfont_info.
7271 (xftfont_open): Add FC_CHARSET to the pattern. Set
7272 xftfont_info->ft_size. Don't unlock the face. Check BDF
7273 properties if appropriate.
7274 (xftfont_close): Unlock the face.
7275 (xftfont_anchor_point, xftfont_shape): Deleted.
7276 (syms_of_xftfont): Don't set members anchor_point and shape of
7277 xftfont_driver.
7278
7279 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7280 font_make_object.
7281
7282 * w32font.c (w32font_open): Adjust it for the change of
7283 font_make_object.
7284 (w32font_open_internal): Don't set properties of font_object here.
7285
7286 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
7287
7288 * macfns.c (x_create_tip_frame):
7289 * w32fns.c (x_create_tip_frame):
7290 * xfns.c (x_create_tip_frame): Pass parameter argument to
7291 face-set-after-frame-default.
7292
7293 * xfaces.c (Finternal_merge_in_global_face): Save merged
7294 attributes for the default face back into the face vector.
7295
7296 2008-07-08 Andreas Schwab <schwab@suse.de>
7297
7298 * fontset.h: Declare fontset_from_font. Don't declare
7299 new_fontset_from_font and fontset_from_font_name.
7300 * xterm.c: Include "fontset.h".
7301 * Makefile.in (xterm.o): Update dependencies.
7302
7303 2008-07-08 Glenn Morris <rgm@gnu.org>
7304
7305 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7306 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7307
7308 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
7309
7310 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7311 (x_set_frame_parameters): Don't bind it.
7312
7313 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
7314
7315 * w32fns.c (map_w32_filename): Declare extern.
7316
7317 2008-07-07 Jason Rumney <jasonr@gnu.org>
7318
7319 * w32term.c (WS_EX_LAYERED): Define if not already.
7320
7321 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
7322
7323 * xfaces.c (set_font_frame_param): Don't try to set the font
7324 parameter if it is still unspecified in the lface.
7325
7326 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7327
7328 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7329 face if it didn't already exist.
7330
7331 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7332
7333 2008-07-05 Andreas Schwab <schwab@suse.de>
7334
7335 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7336
7337 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
7338
7339 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7340 word-wrapping.
7341 (IT_DISPLAYING_WHITESPACE): New macro.
7342 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7343 when word-wrapping. Simplify word-wrapping logic. Use correct
7344 pixel positions when saving copies of the iterator.
7345 (display_line): Use proper wrap point if the last character on a
7346 line was preceded by whitespace.
7347
7348 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7349
7350 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7351
7352 2008-07-04 Kenichi Handa <handa@m17n.org>
7353
7354 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7355
7356 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7357
7358 2008-07-02 Jason Rumney <jasonr@gnu.org>
7359
7360 * xfns.c (syms_of_xfns): Only define x-select-font when both
7361 HAVE_FREETYPE and USE_GTK.
7362
7363 * xdisp.c (next_element_from_display_vector): Move assignment out
7364 of if statement.
7365
7366 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7367
7368 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7369
7370 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7371 (syms_of_fileio): Initialize and export them.
7372 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7373
7374 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7375 (Fsystem_move_file_to_trash): New function.
7376 (syms_of_w32fns): Export it to lisp.
7377
7378 2008-07-01 Jason Rumney <jasonr@gnu.org>
7379
7380 * w32font.c (w32font_text_extents): Don't count overhang as part
7381 of width.
7382
7383 2008-06-30 Miles Bader <miles@gnu.org>
7384
7385 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7386 Add `avoid_cursor_p' field.
7387
7388 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7389 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7390 (append_glyph, append_composite_glyph, produce_image_glyph)
7391 (append_stretch_glyph): Initialize avoid_cursor_p.
7392 (get_it_property): Rename from `get_line_height_property'.
7393 (x_produce_glyphs): Use get_it_property.
7394 (handle_line_prefix, push_display_prop): New functions.
7395 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7396 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7397 New variables.
7398 (syms_of_xdisp): Initialize them.
7399
7400 2008-06-30 Kenichi Handa <handa@m17n.org>
7401
7402 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7403 XftDefaultSubstitute (they are called in XftFontMatch).
7404 (xftfont_open): Fix args to ftfont_font_format.
7405
7406 * ftfont.c (fc_charset_table): New member lang.
7407 (ftfont_resolve_generic_family): New arg pattern.
7408 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
7409 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7410 (ftfont_open): Fix args to ftfont_font_format.
7411 (ftfont_font_format): New arg filename.
7412
7413 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
7414
7415 * xfaces.c (Finternal_merge_in_global_face): If default face was
7416 modified, realize it again. Update the font face attribute.
7417
7418 2008-06-29 Jason Rumney <jasonr@gnu.org>
7419
7420 * w32term.c (x_set_frame_alpha): Fix logic.
7421
7422 2008-06-29 Kenichi Handa <handa@m17n.org>
7423
7424 * fontset.c (Finternal_char_font): Return font-object instead of
7425 font-name.
7426
7427 * composite.c (get_composition_id): Fix the width calculation for TAB.
7428
7429 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7430
7431 * indent.c (Fvertical_motion): Properly handle float column arg.
7432
7433 2008-06-28 Jason Rumney <jasonr@gnu.org>
7434
7435 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7436 (pfnSetLayeredWindowAttributes): New function pointer.
7437 (w32_initialize): Initialize it when supported.
7438 (x_set_frame_alpha): New function.
7439
7440 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7441 (w32_frame_parm_handlers): Set alpha handler.
7442
7443 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7444
7445 2008-06-27 Jason Rumney <jasonr@gnu.org>
7446
7447 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7448 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7449 (w32_to_x_charset, x_to_w32_charset)
7450 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7451 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7452 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7453 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7454 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7455 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7456 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7457 (Qw32_charset_unicode): Remove.
7458 (syms_of_w32fns): Update for above changes.
7459
7460 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7461 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7462 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7463 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7464 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7465 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7466 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7467 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7468 (syms_of_w32font): Update for above changes.
7469
7470 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7471
7472 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7473 removed #if.
7474 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7475
7476 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
7477 Eli Zaretskii <eliz@gnu.org>
7478
7479 * makefile.w32-in (LOCAL_FLAGS):
7480 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7481
7482 * sysdep.c (_spawnlp, _getpid):
7483 Declare with explicit _cdecl instead of _CRTAPI1.
7484
7485 * editfns.c (Fget_internal_run_time):
7486 Check for WINDOWSNT with #ifdef, not #if.
7487
7488 2008-06-26 Jason Rumney <jasonr@gnu.org>
7489
7490 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7491
7492 * w32term.c (x_draw_glyph_string_foreground)
7493 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7494 Use FONT_HANDLE macro.
7495 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7496
7497 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7498 (uniscribe_encode_char): Use FONT_HANDLE macro.
7499
7500 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7501 (w32font_text_extents): Use precast w32_font.
7502 (w32font_close): Free cached metrics.
7503 (w32font_open_internal): Allocate space for name on stack.
7504
7505 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
7506
7507 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7508
7509 2008-06-26 Jason Rumney <jasonr@gnu.org>
7510
7511 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7512 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7513
7514 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
7515
7516 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7517
7518 2008-06-26 Jason Rumney <jasonr@gnu.org>
7519
7520 * w32bdf.c, w32bdf.h: Remove obsolete files.
7521
7522 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7523
7524 * w32gui.h: Don't include w32bdf.h.
7525 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7526 Remove obsolete font support.
7527
7528 * w32font.h (struct w32font_info): Remove compat_w32_font.
7529 Add hfont member.
7530 (FONT_COMPAT): Remove obsolete macro.
7531
7532 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7533 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7534 (w32font_open_internal): Remove compat code. Set new hfont member.
7535 (Fx_select_font): Use new hfont member.
7536
7537 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7538 (uniscribe_encode_char): Use new hfont member.
7539
7540 * w32term.c (x_draw_glyph_string_foreground)
7541 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7542 (x_draw_glyph_string): Use metrics in w32font_info.
7543
7544 2008-06-26 Kenichi Handa <handa@m17n.org>
7545
7546 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7547
7548 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7549
7550 * unexnext.c:
7551 * m/ews4800.h:
7552 * m/hp9000s300.h:
7553 * m/ibm370aix.h:
7554 * m/mips-siemens.h:
7555 * m/ncr386.h:
7556 * m/next.h:
7557 * m/pmax.h:
7558 * m/powerpcle.h:
7559 * m/tandem-s2.h:
7560 * s/386bsd.h:
7561 * s/bsd386.h:
7562 * s/bsd4-1.h:
7563 * s/bsd4-2.h:
7564 * s/bsdos2-1.h:
7565 * s/bsdos2.h:
7566 * s/bsdos3.h:
7567 * s/bsdos4.h:
7568 * s/nextstep.h:
7569 * s/ultrix4-3.h:
7570 * s/usg5-0.h:
7571 * s/usg5-2-2.h:
7572 * s/usg5-2.h:
7573 * s/usg5-4-3.h:
7574 * s/ux4800.h:
7575 * s/uxpds.h:
7576 * s/uxpv.h: Remove support for obsolete systems.
7577 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
7578 Remove, insert contents in s/hpux10-20.h.
7579 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7580 Remove, insert contents in s/aix4-2.h.
7581 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7582 * s/bsd4-3.h: Rename to ...
7583 * s/bsd-common.h: ... this.
7584 * data.c:
7585 * doc.c:
7586 * ecrt0.c:
7587 * emacs.c:
7588 * fileio.c:
7589 * floatfns.c:
7590 * keyboard.c:
7591 * mem-limits.h:
7592 * print.c:
7593 * process.c:
7594 * sysdep.c:
7595 * syssignal.h:
7596 * systty.h:
7597 * syswait.h:
7598 * term.c:
7599 * unexec.c:
7600 * unexelf.c:
7601 * unexhp9k800.c:
7602 * m/hp800.h:
7603 * m/ibmrs6000.h:
7604 * m/mips.h:
7605 * m/vax.h:
7606 * s/darwin.h:
7607 * s/freebsd.h:
7608 * s/gnu.h:
7609 * s/ms-w32.h:
7610 * s/msdos.h:
7611 * s/netbsd.h:
7612 * s/template.h: Remove references to obsolete variables.
7613
7614 * Makefile.in: Add dependencies for all unexec files.
7615 (admindir): Remove unused variable.
7616 (UNEXEC_SRC): Remove references.
7617
7618 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
7619
7620 * xfns.c (x_default_font_parameter): If Xft is available, first
7621 try Monospace-12 for the default font.
7622
7623 2008-06-25 Jason Rumney <jasonr@gnu.org>
7624
7625 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7626
7627 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7628
7629 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7630
7631 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7632
7633 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
7634
7635 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7636 <scroll-conservatively>: Fix typo in docstring.
7637
7638 * xselect.c (Fx_send_client_event): Doc fix.
7639
7640 2008-06-25 Kenichi Handa <handa@m17n.org>
7641
7642 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7643
7644 * font.c (font_parse_fcname): Remove unused variables.
7645 (font_sort_entites): Delete the arg SPEC. Caller changed.
7646 Fix for the case of ! best_only.
7647 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7648
7649 * lisp.h (Fstring_to_unibyte): EXFUN it.
7650
7651 * character.h (str_to_unibyte): Extern it.
7652
7653 * character.c (str_to_unibyte): New function.
7654
7655 * fns.c (Fstring_to_unibyte): New function.
7656 (syms_of_fns): Defsubr it.
7657
7658 2008-06-24 Kenichi Handa <handa@m17n.org>
7659
7660 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7661 DPI too.
7662 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7663
7664 2008-06-24 Andreas Schwab <schwab@suse.de>
7665
7666 * Makefile.in (${lispsource}loaddefs.el): Rename from
7667 ../lisp/loaddefs.el.
7668 (bootstrap-clean): Do what distclean does but don't remove
7669 Makefile.
7670 (distclean): Depend on bootstrap-clean and remove Makefile.
7671
7672 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
7673
7674 * buffer.h (struct buffer): New member word_wrap.
7675
7676 * buffer.c (syms_of_buffer): New variables default-word-wrap and
7677 word-wrap.
7678 (init_buffer_once): Initialize them.
7679
7680 * dispextern.h (struct it): Replace bool truncate_lines_p with a
7681 line_wrap enum possessing three possible values.
7682
7683 * termopts.h: Replace truncate_partial_width_windows with
7684 Vtruncate_partial_width_windows.
7685
7686 * dispnew.c (direct_output_for_insert): Avoid direct output when
7687 inserting a space with word wrap on.
7688
7689 * indent.c (compute_motion): Obey integer values of
7690 truncate-partial-width-windows.
7691
7692 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
7693 replacing truncate_partial_width_windows.
7694 (init_iterator): If Vtruncate_partial_width_windows is an integer,
7695 truncate only if the window width is below that integer.
7696 (start_display, resize_mini_window, produce_stretch_glyph)
7697 (display_string, move_it_in_display_line_to): Use line_wrap.
7698 (back_to_previous_visible_line_start, reseat_1): Reset
7699 string_from_display_prop_p.
7700 (display_line): Extend default face to end of line when wrapping.
7701
7702 2008-06-24 Kim F. Storm <storm@cua.dk>
7703
7704 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
7705 to wrap continued lines at word boundaries.
7706
7707 2008-06-24 Jason Rumney <jasonr@gnu.org>
7708
7709 * font.c (Ffont_face_attributes): Multiply pixel size before point
7710 conversion to avoid multiplying rounding error.
7711
7712 2008-06-23 Jason Rumney <jasonr@gnu.org>
7713
7714 * w32term.c (x_draw_glyph_string_background)
7715 (x_draw_glyph_string): Remove old bdf font code.
7716
7717 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
7718
7719 2008-06-22 Kenichi Handa <handa@m17n.org>
7720
7721 * font.c (font_find_for_lface): Try the adstyle specified in
7722 the property of LFACE_FONT of LFACE (if any).
7723
7724 2008-06-21 Seiji Zenitani <zenitani@mac.com>
7725 Ryo Yoshitake <ryo@shiftmode.net>
7726
7727 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
7728
7729 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
7730
7731 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
7732 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
7733 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
7734 (witness-emacs): Remove.
7735 (lisp, shortlisp): Move loaddefs.el earlier.
7736 (mostlyclean): Forget about witness-emacs.
7737
7738 2008-06-22 Glenn Morris <rgm@gnu.org>
7739
7740 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
7741 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
7742
7743 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7744
7745 * Makefile.in (PRECOMP): Remove.
7746 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
7747 (witness-emacs): Run `compile-first'.
7748 (.el.elc): Use the new compile-onefile target.
7749
7750 2008-06-21 Kenichi Handa <handa@m17n.org>
7751
7752 * xftfont.c (xftfont_open): Handle QCembolden only when
7753 FC_EMBOLDEN is defined.
7754
7755 2008-06-21 Andreas Schwab <schwab@suse.de>
7756
7757 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
7758 (.el.elc): Likewise.
7759
7760 2008-06-21 Miles Bader <miles@gnu.org>
7761
7762 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
7763 build dir, not the lisp source dir.
7764
7765 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7766
7767 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
7768 (bootstrapclean): Remove.
7769 (.el.elc): New rule.
7770 (PRECOMP): New var.
7771 (../lisp/subdirs.el): Remove.
7772 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
7773 (witness-emacs): New target.
7774 (mostlyclean): Remove witness-emacs as well.
7775 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
7776 Add witness-emacs dependency.
7777
7778 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
7779
7780 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
7781 defined by the font.
7782
7783 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7784
7785 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
7786 (bootstrap-clean): New target that keeps TAGS around.
7787 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
7788 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
7789
7790 2008-06-20 Jason Rumney <jasonr@gnu.org>
7791
7792 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
7793 Remove obsolete font code.
7794
7795 * w32font.c (font_matches_spec): Use csb bitfield from font signature
7796 to determine language support.
7797
7798 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7799
7800 * sysdep.c (cfsetspeed): New fun extracted from the code.
7801 (cfmakeraw): Move before first use.
7802
7803 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
7804
7805 * sysdep.c (cfmakeraw): Provide fallback implementation.
7806 (serial_configure): Provide fallback implementation of cfsetspeed.
7807
7808 2008-06-20 Kenichi Handa <handa@m17n.org>
7809
7810 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
7811 the pattern.
7812
7813 * fontset.c (fontset_from_font): Copy font_spec before changing
7814 the elements.
7815
7816 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
7817
7818 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7819
7820 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
7821 for explicit `font' parameters.
7822
7823 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
7824
7825 2008-06-19 Kenichi Handa <handa@m17n.org>
7826
7827 * frame.c: Include <ctype.h>.
7828 (x_set_font_backend): Allow spacing characters in the X resource
7829 for FontBackend.
7830
7831 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
7832
7833 * w32fns.c, xfns.c (Qfont_param): New var.
7834 (syms_of_w32fns): Initialize it.
7835 (x_default_font_parameter): Record explicit `font' into
7836 `font-parameter'.
7837
7838 2008-06-18 Kenichi Handa <handa@m17n.org>
7839
7840 * font.c (font_parse_xlfd): Fix previous change.
7841 (font_parse_fcname): Don't use :fc-unknown-spec.
7842 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
7843 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
7844 (font_add_log): Prepend the driver name to the resulting fonts.
7845
7846 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
7847 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
7848 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
7849
7850 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
7851 (QCembolden): New variables.
7852 (syms_of_xftfont): DEFSYM them.
7853 (xftfont_open): Call XftFontMatch. Don't trust the result of
7854 XftTextExtents8 if the pixel_size is less than 5.
7855
7856 2008-06-18 Andreas Schwab <schwab@suse.de>
7857
7858 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
7859 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
7860
7861 2008-06-18 Jason Rumney <jasonr@gnu.org>
7862
7863 * w32font.c (w32font_list, w32font_match): Add logging.
7864
7865 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
7866
7867 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
7868
7869 * font.c (font_parse_fcname): Store divider characters for
7870 unknown-spec list. For known key symbols, intern using correct
7871 symbol name.
7872
7873 2008-06-17 Kenichi Handa <handa@m17n.org>
7874
7875 * xfaces.c (realize_default_face): If the frame is not on window
7876 system, set the fontset of face to nil.
7877
7878 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7879
7880 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
7881
7882 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
7883
7884 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
7885 (build_font_name_from_vector): Delete externs.
7886
7887 * xfaces.c (struct font_name): Don't declare.
7888
7889 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7890
7891 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
7892
7893 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
7894
7895 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
7896
7897 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
7898
7899 * font.c (Ffont_spec): Fix usage in docstring.
7900 (Ffont_face_attributes): Doc fix.
7901
7902 2008-06-16 Andreas Schwab <schwab@suse.de>
7903
7904 * font.c (Ffont_face_attributes): Fix definition.
7905
7906 2008-06-16 Jason Rumney <jasonr@gnu.org>
7907
7908 * font.h (font_style_symbolic_from_value): Remove.
7909
7910 * font.c (font_style_symbolic_from_value): Remove.
7911 (font_style_symbolic): Revert to pre 2008-06-13 version.
7912
7913 * w32font.c (w32_to_fc_weight): New function.
7914 (w32font_full_name, logfont_to_fcname): Use it.
7915
7916 2008-06-16 Kenichi Handa <handa@m17n.org>
7917
7918 * font.c (font_check_object): Delete it.
7919 (font_clear_cache): Check if a font-object is alive.
7920 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
7921 font-object to nil.
7922 (font_close_object): Don't check FONT_CLOSE_OBJECT.
7923 (font_at): Don't call font_check_object.
7924 (Ffont_get): Return a symbol for :weight, :slant, and :width.
7925
7926 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
7927
7928 * puresize.h (BASE_PURESIZE): Increase to 1230000.
7929
7930 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
7931
7932 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
7933
7934 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
7935
7936 * font.c (font_parse_fcname): Only one decimal point.
7937 (font_unparse_fcname): Handle data in family and foundry indices
7938 as symbols, not strings.
7939 (font_unparse_gtkname, Ffont_face_attributes): New functions.
7940
7941 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
7942
7943 * font.h (font_unparse_gtkname): Add prototype.
7944
7945 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7946
7947 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
7948
7949 2008-06-15 Andreas Schwab <schwab@suse.de>
7950
7951 * font.c (font_update_drivers): Fix crash when no drivers match.
7952
7953 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
7954
7955 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
7956 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
7957
7958 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
7959
7960 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
7961
7962 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7963
7964 * process.c (Fserial_process_configure, Fprocess_send_eof):
7965 Use EQ to compare Lisp_Objects.
7966
7967 2008-06-13 Jason Rumney <jasonr@gnu.org>
7968
7969 * w32fns.c (Fw32_select_font): Remove old font API function.
7970
7971 * w32font.c (logfont_to_fcname): New function.
7972 (Fx_select_font): New font dialog function compatible with
7973 GTK/fontconfig version.
7974
7975 * font.c (font_style_symbolic_from_value): New function.
7976 (font_style_symbolic): Use it.
7977
7978 * font.h (font_style_symbolic_from_value): Declare new function.
7979
7980 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
7981
7982 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
7983 <font-width-table>: Fix typos in docstrings.
7984
7985 2008-06-13 Daniel Engeler <engeler@gmail.com>
7986
7987 These changes add serial port access.
7988 * process.c: Add HAVE_SERIAL.
7989 (Fdelete_process, Fprocess_status, Fset_process_buffer)
7990 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
7991 (list_processes_1, select_wrapper, Fstop_process)
7992 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
7993 (status_notify): Modify to handle serial processes.
7994 [HAVE_SERIAL] (Fserial_process_configure)
7995 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
7996 New functions.
7997 * process.h (struct Lisp_Process): Add `type'.
7998 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
7999 New functions.
8000 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8001 serial ports.
8002 (serial_open, serial_configure): New functions.
8003 * w32.h: Add FILE_SERIAL.
8004 (struct _child_process): Add ovl_read, ovl_write.
8005
8006 2008-06-13 Kenichi Handa <handa@m17n.org>
8007
8008 * dispextern.h (enum lface_attribute_index): New member
8009 LFACE_FOUNDRY_INDEX.
8010
8011 * font.c (font_score): Delete arg alternate_families. Check only
8012 weight, slant, width, and size. Ignore the difference of alias
8013 style symbols.
8014 (font_sort_entites): Adjust for the above change. Reflect the
8015 order of font-driver to scores.
8016 (font_list_entities): Don't check alternate_familes here.
8017 (font_clear_prop): Handle foundry.
8018 (font_update_lface): Don't parse "foundry-family" form here.
8019 Handle FONT_FOUNDRY_INDEX.
8020 (font_find_for_lface): Likewise. Handle alternate families here.
8021 If registry is nil, try iso8859-1 and ascii-0.
8022 (font_open_for_lface): Pay attention to size in ENTITY.
8023 (font_open_by_name): Simplify by calling font_load_for_lface.
8024 (free_font_driver_list): Delete it.
8025 (font_update_drivers): Preserve the order of backends.
8026 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8027 of font_score and font_sort_entites.
8028 (font_update_sort_order): Likewise.
8029
8030 * xfaces.c (LFACE_FOUNDRY): New macro.
8031 (check_lface_attrs): Check foundry.
8032 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8033 (merge_face_vectors): Check foundry.
8034 (merge_face_ref): Likewise.
8035 (Finternal_set_lisp_face_attribute): Likewise.
8036 (x_update_menu_appearance): Likewise.
8037 (Finternal_get_lisp_face_attribute): Likewise.
8038 (lface_hash): Likewise.
8039 (lface_same_font_attributes_p): Likewise.
8040 (x_supports_face_attributes_p): Likewise.
8041 (tty_supports_face_attributes_p): Likewise.
8042 (Finternal_set_alternative_font_family_alist): Intern strings.
8043 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8044 (realize_default_face): Set LFACE_FOUNDRY (lface).
8045
8046 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8047 font-driver at first.
8048
8049 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8050
8051 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8052
8053 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8054
8055 2008-06-12 Jim Meyering <meyering@redhat.com>
8056
8057 Make unexec_free handle NULL the same way free does.
8058 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8059
8060 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8061
8062 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8063 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8064 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8065 (WEAK_ALIAS): Simplify.
8066 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8067 when searching a unibyte buffer.
8068
8069 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
8070
8071 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8072
8073 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
8074
8075 * w32font.c: Include ctype.h.
8076
8077 2008-06-11 Jason Rumney <jasonr@gnu.org>
8078
8079 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8080 misreported as space.
8081 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8082 as aliases for registry iso10646-1.
8083
8084 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8085
8086 * buffer.c (clone_per_buffer_values): Skip `name'.
8087
8088 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
8089
8090 * font.c (font_parse_fcname): Fix last change; accept decimal
8091 points in font size.
8092
8093 2008-06-10 Jason Rumney <jasonr@gnu.org>
8094
8095 * w32uniscribe.c (add_opentype_font_name_to_list):
8096 Skip non unicode fonts.
8097
8098 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8099
8100 * xfns.c (Fx_font_dialog): New function.
8101
8102 * gtkutil.c (xg_dialog_response_cb): Rename from
8103 xg_file_response_callback.
8104 (pop_down_dialog): Rename from pop_down_file_dialog.
8105 (xg_get_file_name): Callers changed.
8106 (xg_get_font_name): New function.
8107
8108 * gtkutil.h (xg_get_font_name): Insert prototype.
8109
8110 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8111
8112 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8113 x_underline_minimum_display_offset.
8114 (syms_of_xdisp): Declare it here rather than in xterm.c.
8115 * dispextern.h (underline_minimum_offset): Declare it.
8116 * w32term.c (x_draw_glyph_string): Use it.
8117 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8118 (syms_of_xterm): Don't declare it any more.
8119 (x_draw_glyph_string): Adjust to the new name.
8120
8121 2008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8122
8123 * xterm.c (x_underline_minimum_display_offset): New var.
8124 (x_draw_glyph_string): Use it.
8125 (syms_of_xterm): Declare it.
8126
8127 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
8128
8129 * font.c (font_parse_fcname): Accept GTK-style font names too.
8130
8131 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8132
8133 * dired.c (file_name_completion): Don't return t if the match is exact
8134 but with different capitalization.
8135 * minibuf.c (Ftry_completion): Simplify.
8136
8137 * window.c (Vwindow_point_insertion_type): New var.
8138 (set_window_buffer): Use it.
8139 (syms_of_window): Init and export it to Lisp.
8140
8141 2008-06-10 Kenichi Handa <handa@m17n.org>
8142
8143 * font.h (font_intern_prop): Prototype adjusted.
8144
8145 * font.c (font_intern_prop): New arg force_symbol.
8146 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8147 Adjust for the change of font_intern_prop.
8148
8149 * ftfont.c (ftfont_pattern_entity):
8150 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8151 (w32_registry):
8152 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8153 the change of font_intern_prop.
8154
8155 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
8156
8157 * w32menu.c (digest_single_submenu): Declare extern.
8158
8159 2008-06-09 Jason Rumney <jasonr@gnu.org>
8160
8161 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8162
8163 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8164 (parse_single_submenu): Remove.
8165 (digest_single_submenu): Remove.
8166 (syms_of_w32menu): Don't initialise variables that have moved
8167 to menu.c.
8168 (set_frame_menubar): Sync with version in xmenu.c.
8169 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8170
8171 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8172 Make static again.
8173
8174 2008-06-09 Jason Rumney <jasonr@gnu.org>
8175
8176 Changes to w32 files related to the move of common menu code
8177 to menu.c on 2008-06-08 by Chong Yidong.
8178
8179 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8180 defs to w32gui.h.
8181 (single_keymap_panes, push_menu_item, push_menu_pane):
8182 Make globally visible.
8183
8184 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8185 (local_free, malloc_widget_value, free_widget_value)
8186 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8187 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8188 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8189 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8190 (menu_items, menu_items_allocated, menu_items_used)
8191 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8192 (init_menu_items, finish_menu_items, discard_menu_items)
8193 (grow_menu_items, push_submenu_start, push_submenu_end)
8194 (push_left_right_boundary, push_menu_pane, push_menu_item)
8195 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8196 (free_menubar_widget_tree_value, parse_single_submenu)
8197 (update_submenu_strings): Remove functions.
8198 (xmalloc_widget_value): Remove and declare extern.
8199
8200 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8201 (OBJ1): Build it.
8202
8203 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8204 (local_heap, local_alloc, local_free, malloc_widget_value)
8205 (free_widget_value): Define here.
8206
8207 2008-06-09 Kenichi Handa <handa@m17n.org>
8208
8209 * font.h (Qascii_0): Extern it.
8210
8211 * font.c (Qascii_0): New variable.
8212 (syms_of_font): DEFSYM it.
8213 (font_open_by_name): If the registry "iso8859-1" fails, try also
8214 "ascii-0".
8215
8216 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8217
8218 2008-06-08 Kenichi Handa <handa@m17n.org>
8219
8220 * .gdbinit (xfont): New command.
8221
8222 2008-06-08 Andreas Schwab <schwab@suse.de>
8223
8224 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8225 * Makefile.in (menu.o): Update dependencies.
8226
8227 * Makefile.in (obj): Always add menu.o.
8228 * emacs.c (main): Always call syms_of_menu.
8229 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8230
8231 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
8232
8233 * Makefile.in: Compile menu.c.
8234
8235 * lisp.h: Declare syms_of_menu.
8236
8237 * emacs.c (main): Call syms_of_menu.
8238
8239 * keyboard.h: Relocate platform-independent menu definitions from
8240 xmenu.c.
8241
8242 * menu.c: New file. Relocate platform-independent menu
8243 definitions from xmenu.c. Suggested by Adrian Robert.
8244
8245 * xmenu.c: Remove platform-independent menu definitions.
8246 (menu_items menu_items_inuse, menu_items_allocated)
8247 (menu_items_used, menu_items_n_panes)
8248 (menu_items_submenu_depth): Move to keyboard.h.
8249 (init_menu_items, finish_menu_items, unuse_menu_items)
8250 (discard_menu_items, restore_menu_items, save_menu_items)
8251 (grow_menu_items, push_submenu_start, push_submenu_end)
8252 (push_left_right_boundary, push_menu_pane, push_menu_item)
8253 (keymap_panes, single_keymap_panes, single_menu_item)
8254 (list_of_panes, list_of_items, find_and_call_menu_selection)
8255 (xmalloc_widget_value, free_menubar_widget_value_tree)
8256 (parse_single_submenu, digest_single_submenu)
8257 (update_submenu_strings): Move to menu.c.
8258
8259 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8260
8261 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8262
8263 2008-06-06 Miles Bader <miles@gnu.org>
8264
8265 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8266 face, not frame default.
8267
8268 2008-06-05 Martin Rudalics <rudalics@gmx.at>
8269
8270 * window.c (pop_up_windows, pop_up_frames)
8271 (display_buffer_reuse_frames, Vpop_up_frame_function)
8272 (Vdisplay_buffer_function, Veven_window_heights)
8273 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8274 (Vspecial_display_function, Vsame_window_buffer_names)
8275 (Vsame_window_regexps, split_height_threshold)
8276 (Vsplit_window_preferred_function): Move those vars to window.el.
8277 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8278 (Fdisplay_buffer): Move those functions to window.el.
8279 (syms_of_window): Remove corresponding declarations.
8280 (display_buffer): New function.
8281 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8282 * dispnew.c (Flast_nonminibuf_frame): New function.
8283 * buffer.c (Fpop_to_buffer): Move to window.el.
8284
8285 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8286
8287 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8288
8289 2008-06-05 Kenichi Handa <handa@m17n.org>
8290
8291 * coding.c (detect_coding): Fix previous change.
8292 (detect_coding_system): Likewise.
8293
8294 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8295
8296 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8297
8298 * keymap.c (Vminibuffer_local_filename_must_match_map):
8299 Rename from Vminibuffer_local_must_match_filename_map.
8300 (syms_of_keymap):
8301 * minibuf.c (Fcompleting_read): Adjust accordingly.
8302 * commands.h: Rename declaration as well.
8303
8304 2008-06-05 Kenichi Handa <handa@m17n.org>
8305
8306 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8307 family name.
8308 (Ffont_put): Likewise.
8309
8310 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8311 current font-spec.
8312
8313 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8314 is unspecified.
8315
8316 * xfaces.c (realize_x_face): If the font-related face attributes
8317 are the same as those of default face, realize a new fontset from
8318 default->fontset.
8319 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8320
8321 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8322
8323 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8324 (move_it_in_display_line): New wrapper.
8325
8326 * window.c (window_scroll_pixel_based_preserve_x)
8327 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8328 (window_scroll_pixel_based, window_scroll_line_based):
8329 Use them to preserve column positions.
8330 (syms_of_window): Initialize them.
8331
8332 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8333 (HPOS . VPOS) pair.
8334
8335 * dispextern.h (move_it_in_display_line): Declare.
8336
8337 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
8338
8339 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8340 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8341 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8342
8343 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
8344
8345 * window.c (Fset_window_parameter): Doc fix.
8346 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8347
8348 2008-06-04 Joakim Verona <joakim@verona.se>
8349
8350 * window.h (struct window): Add new member window_parameters.
8351
8352 * window.c (Fwindow_parameters, Fwindow_parameter)
8353 (Fset_window_parameter): New defuns.
8354 (syms_of_window): Defsubr the new defuns.
8355 (make_window): Initialize window_parameters to nil.
8356
8357 2008-06-04 John Paul Wallington <jpw@pobox.com>
8358
8359 * eval.c (Fdefmacro): Doc fix.
8360
8361 2008-06-04 Kenichi Handa <handa@m17n.org>
8362
8363 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8364 Be sure to call setup_coding_system when we find a proper coding system.
8365 (detect_coding_system): Fix handling of coding->head_ascii.
8366
8367 2008-06-03 Andreas Schwab <schwab@suse.de>
8368
8369 * font.c (font_prop_validate_spacing): Fix last change.
8370
8371 2008-06-03 Kenichi Handa <handa@m17n.org>
8372
8373 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8374 (font_parse_fcname): Fix handling of unknown key.
8375
8376 * xfont.c (xfont_list): Try an alias.
8377
8378 * charset.c (char_charset): Return NULL if the arg charset_list is
8379 specified and C doesn't belong to any of them.
8380
8381 2008-06-02 Chip Coldwell <coldwell@redhat.com>
8382
8383 * font.c (font_pixel_size): Don't take cdr of an integer.
8384
8385 2008-06-02 Jim Meyering <meyering@redhat.com>
8386
8387 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8388 * alloc.c (xfree): Return right away for a NULL arg.
8389 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8390 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8391 * mac.c (create_apple_event_from_event_ref): Likewise.
8392 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8393 Likewise.
8394 * doprnt.c (doprnt1): Likewise.
8395 * frame.c (frame): Likewise.
8396 * keyboard.c (wipe_kboard): Likewise.
8397 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8398 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8399 * term.c (tty_default_color_capabilities, maybe_fatal)
8400 (delete_tty): Likewise.
8401 * w16select.c (string): Likewise.
8402 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8403 * w32bdf.c (w32_free_bdf_font): Likewise.
8404 * w32fns.c (w32_unload_font): Likewise.
8405 * w32font.c (w32font_close): Likewise.
8406 * window.c (size_window): Likewise.
8407 * xselect.c (receive_incremental_selection): Likewise.
8408 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8409 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8410 * w32.c (stat): Likewise.
8411
8412 Remove useless if-before-free tests.
8413 * editfns.c (Fset_time_zone_rule): Likewise.
8414 * lread.c (nosuffix): Likewise.
8415 * ralloc.c (get_bloc): Likewise.
8416 * regex.c (reg_free): Likewise.
8417 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8418 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8419 * xsmfns.c (smc_save_yourself_CB): Likewise.
8420
8421 2008-06-02 Kenichi Handa <handa@m17n.org>
8422
8423 * font.c (font_find_for_lface): Handle float font size.
8424 (font_open_for_lface): Likewise.
8425
8426 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8427 comparing the properties.
8428
8429 2008-06-01 Jason Rumney <jasonr@gnu.org>
8430
8431 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8432 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8433 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8434 Don't add empty script list.
8435 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8436
8437 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8438
8439 * Makefile.in (dot, dotdot): Remove, update users.
8440 ".." has been used elsewhere in the file for a long time.
8441 (LIBXT_STATIC): Remove conditional based on unused variable.
8442
8443 2008-06-01 Miles Bader <miles@gnu.org>
8444
8445 * xfaces.c (Vface_remapping_alist): New variable.
8446 (syms_of_xfaces): Initialize it.
8447 (enum named_merge_point_kind): New type.
8448 (struct named_merge_point): Add `named_merge_point_kind' field.
8449 (push_named_merge_point): Make cycle detection respect different
8450 named-merge-point kinds.
8451 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8452 Remove face-name alias resolution.
8453 (lface_from_face_name): New definition using
8454 `lface_from_face_name_no_resolve'.
8455 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8456 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8457 (get_lface_attributes): New definition that layers face-remapping on
8458 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8459 (lookup_basic_face): New function.
8460 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8461 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8462 `get_lface_attributes'.
8463 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8464 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8465 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8466
8467 * xdisp.c (init_iterator): Pass base_face_id through
8468 `lookup_basic_face' when we actually use it as a face-id.
8469 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8470 DEFAULT_FACE_ID.
8471
8472 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8473 lookup the initial face-id.
8474
8475 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8476
8477 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
8478
8479 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8480 (Fremove_text_properties): Fix typos in docstrings.
8481
8482 2008-05-31 Kenichi Handa <handa@m17n.org>
8483
8484 * font.c (font_list_entities): Fix the car part of data to be
8485 stored in the cache.
8486
8487 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8488
8489 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8490
8491 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8492 Add a `test' argument so another predicate than `equal' can be used.
8493 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8494 (map_char_table): Remove unused vars `c' and `i'.
8495 * lisp.h (Foptimize_char_table): Adjust declaration.
8496 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8497
8498 2008-05-30 Kenichi Handa <handa@m17n.org>
8499
8500 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8501 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8502 defined.
8503
8504 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8505
8506 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8507 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8508 frame-local settings for the same variable.
8509
8510 2008-05-30 Kenichi Handa <handa@m17n.org>
8511
8512 * fontset.c (Ffont_info): Move to font.c.
8513 (syms_of_fontset): Delete defsubr of Sfont_info.
8514
8515 * font.c (font_style_to_value, font_score): Delete casting of the
8516 args to xstcasecmp.
8517 (register_font_driver): Increment num_font_drivers only when
8518 registering the driver globally.
8519 (Ffont_info): Move from fontset.c. Handle a font object too.
8520 (syms_of_font): Defsubr Sfont_info.
8521
8522 2008-05-29 Kenichi Handa <handa@m17n.org>
8523
8524 * coding.h (enum define_coding_utf8_arg_index): New enum.
8525 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8526 coding_attr_utf_bom.
8527 (enum utf_bom_type): Rename from utf_16_bom_type.
8528 (struct utf_16_spec): Adjust for the above change.
8529 (struct coding_system): Add utf_8_bom in `spec' union.
8530
8531 * coding.c (CODING_UTF_8_BOM): New macro.
8532 (enum coding_category): Delete coding_category_utf_8, add
8533 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8534 coding_category_utf_8_sig.
8535 (CATEGORY_MASK_UTF_8): Delete it.
8536 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8537 (CATEGORY_MASK_UTF_8_SIG): New macros.
8538 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8539 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8540 CATEGORY_MASK_UTF_8_SIG.
8541 (CATEGORY_MASK_UTF_8): New macro.
8542 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8543 (detect_coding_utf_8): Check BOM.
8544 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8545 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8546 (encode_coding_utf_16): Likewise.
8547 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8548 (detect_coding, detect_coding_system): Handle utf-8-auto.
8549 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8550 (syms_of_coding): Fix setting up of Vcoding_category_table.
8551
8552 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8553
8554 * process.c (Faccept_process_output): If `millisec' is non-nil,
8555 `seconds' default to 0.
8556 (wait_reading_process_output): Also return non-nil if we read output
8557 from a non-running process.
8558
8559 2008-05-29 Jason Rumney <jasonr@gnu.org>
8560
8561 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8562 `raster' specified.
8563 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8564 in the uniscribe backend, but disallow any font that has no
8565 unicode subrange support.
8566
8567 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
8568
8569 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8570 Fix typos in docstrings.
8571
8572 2008-05-29 Kenichi Handa <handa@m17n.org>
8573
8574 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8575 (Fx_family_fonts): Set frame correctly.
8576
8577 2008-05-28 Jason Rumney <jasonr@gnu.org>
8578
8579 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8580
8581 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8582
8583 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8584 calling build_annotations.
8585
8586 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
8587
8588 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8589 (Fencode_coding_string):
8590 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8591 <latin-extra-code-table>: Fix typos in docstrings.
8592 (syms_of_coding) <coding-system-alist>: Doc fix.
8593 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8594
8595 2008-05-28 Kenichi Handa <handa@m17n.org>
8596
8597 * fontset.c (Ffont_info): Don't call font_close_object.
8598
8599 * font.c (font_parse_family_registry): Use Ffont_put to validate
8600 foundry and family.
8601 (font_delete_unmatched): Don't check spacing.
8602 (font_list_entities): Add spacing to the spec to list fonts.
8603
8604 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8605 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8606
8607 * coding.c (encode_coding_raw_text): Fix previous change.
8608 (encode_coding_object): When the dst_object is a buffer and is
8609 different from src_object, move gap to PT.
8610
8611 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
8612
8613 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8614
8615 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8616
8617 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8618 all branches. Compute it differently.
8619
8620 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8621
8622 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
8623
8624 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8625 into "else if () ... else ...".
8626
8627 2008-05-27 Jason Rumney <jasonr@gnu.org>
8628
8629 * w32font.c (w32font_open_internal): Determine if glyph indices
8630 are likely to work here.
8631
8632 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
8633
8634 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8635 draw overlap glyphs with appropriate highlighting.
8636
8637 2008-05-27 Kenichi Handa <handa@m17n.org>
8638
8639 * xfont.c (xfont_open): Fix calculation of font->average_width.
8640
8641 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8642
8643 * casefiddle.c (casify_object): Try to guess better whether the
8644 argument is a byte or a char.
8645
8646 2008-05-26 Andreas Schwab <schwab@suse.de>
8647
8648 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8649 Always send multiples of format size.
8650
8651 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8652
8653 2008-05-26 Jason Rumney <jasonr@gnu.org>
8654
8655 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8656 (compute_metrics): Don't set failure if we just cleared the cache.
8657 (w32_weight_table): Remove unused variable.
8658 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8659 backwards compatibility.
8660
8661 2008-05-25 Kenichi Handa <handa@m17n.org>
8662
8663 * w32term.c (x_draw_glyph_string):
8664 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8665
8666 * xfaces.c: Delete unused function prototypes.
8667 (xstrlwr, font_frame): Delete them.
8668 (clear_face_cache): Delete unused variable.
8669
8670 * xftfont.c (xftfont_open): Delete unused variable.
8671 If underline_thickness is not 1, adjust underline_position.
8672
8673 * ftxfont.c (ftxfont_open): Delete unused variable.
8674
8675 * fontset.c (face_for_char): Optimize for the case of no charset
8676 property.
8677
8678 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
8679 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
8680 (otf_open, font_otf_capability, generate_otf_features)
8681 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8682 Comment out by surrounding "#if 0" and "#endif" for the moment.
8683 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
8684 (syms_of_font): Codes for accessing above commented out.
8685
8686 2008-05-24 Eli Zaretskii <eliz@gnu.org>
8687
8688 * w32proc.c: Include dispextern.h.
8689
8690 * w32.c: Include dispextern.h.
8691
8692 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
8693
8694 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
8695 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
8696 Fix typos in docstrings.
8697
8698 2008-05-23 Jason Rumney <jasonr@gnu.org>
8699
8700 * xsmfns.c: Remove includes that are already included by config.h.
8701
8702 2008-05-23 Kenichi Handa <handa@m17n.org>
8703
8704 * charset.c (Qemacs, charset_emacs): New variables.
8705 (char_charset): Fix for non-Unicode characters.
8706 (syms_of_charset): Define charset_emacs.
8707
8708 * w32term.c (x_draw_glyph_string): Be sure to update
8709 s->underline_thickness and s->underline_position. Be sure to draw
8710 underline within the current line area.
8711
8712 * xterm.c (x_draw_glyph_string): Be sure to update
8713 s->underline_thickness and s->underline_position. Be sure to draw
8714 underline within the current line area.
8715
8716 * fontset.c: Delete unused variables and add casting for char *
8717 throughout the file.
8718 (fontset_font): Try the fallback fonts of the current fontset
8719 before consulting the default fontset.
8720
8721 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
8722
8723 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
8724
8725 2008-05-22 Jason Rumney <jasonr@gnu.org>
8726
8727 * font.c: Don't include strings.h.
8728
8729 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
8730
8731 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
8732 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
8733 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
8734 to call xstrcasecmp.
8735
8736 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
8737
8738 * fontset.c (fs_query_fontset): Use xstrcasecmp.
8739
8740 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
8741
8742 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
8743
8744 2008-05-22 Kenichi Handa <handa@m17n.org>
8745
8746 * puresize.h (BASE_PURESIZE): Increase to 1220000.
8747
8748 * font.c (font_prop_validate_style): Adjust for the format
8749 change of font_style_table.
8750
8751 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
8752 two args.
8753
8754 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
8755 two args.
8756
8757 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
8758
8759 * minibuf.c (keys_of_minibuf): Delete.
8760 * lisp.h (keys_of_minibuf): Delete.
8761 * emacs.c (main): Don't call keys_of_minibuf.
8762
8763 2008-05-22 Kenichi Handa <handa@m17n.org>
8764
8765 * ftfont.c (ftfont_resolve_generic_family): Rename from
8766 ftfont_list_generic_family. Return a single family for each
8767 generic family.
8768 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
8769 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
8770 Call font_add_log.
8771 (ftfont_match): Call font_add_log.
8772
8773 * font.h (Ffont_xlfd_name): EXFUN adjusted.
8774 (FONT_DEBUG): Define it.
8775 (font_add_log): Extern it.
8776 (font_assert): Rename from xassert.
8777
8778 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
8779 (xfont_list_family): Call font_add_log.
8780 (xfont_match): Likewise.
8781 (memq_no_quit): Delete.
8782
8783 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
8784 call of Ffont_xlfd_name.
8785
8786 * xfaces.c (struct table_entry, slant_table, weight_table)
8787 (swidth_table): Move to font.c.
8788
8789 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
8790 xassert are changed to font_assert. Delete many unused variables.
8791 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
8792 New variables.
8793 (struct table_entry): Move from xfaces.c and modified.
8794 (weight_table, slant_table, width_table): Move from xfaces.c and
8795 contents adjusted for the change of struct table_entry.
8796 (font_style_to_value, font_style_symbolic): Adjust for the
8797 format change of font_style_table.
8798 (font_parse_family_registry): Don't overwrite existing foundry and
8799 family of font_spec.
8800 (font_score): Fix calculation of diff for sizes.
8801 (font_sort_entites): Call font_add_log.
8802 (font_delete_unmatched): Return a newly created list.
8803 (font_list_entities): Fix previous change. Call font_add_log.
8804 (font_matching_entity, font_open_entity, font_close_entity):
8805 Call font_add_log.
8806 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
8807 (Finternal_set_font_style_table): Delete.
8808 (BUILD_STYLE_TABLE): New macro.
8809 (build_style_table): New function.
8810 (Vfont_log, font_log_env_checked): New variables.
8811 (font_add_log): New function.
8812 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
8813 Declare Lisp variables "font-weight-table", "font-slant-table",
8814 "font-width-table", and "font-log". Initialize font_style_table.
8815
8816 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
8817
8818 * xterm.c (x_set_frame_alpha): Move declarations before statements.
8819
8820 2008-05-21 Seiji Zenitani <zenitani@mac.com>
8821 Ryo Yoshitake <ryo@shiftmode.net>
8822
8823 * frame.c (Qalpha): Add a new frame parameter `alpha'.
8824 (Vframe_alpha_lower_limit): New variable.
8825 (x_set_alpha): New function.
8826
8827 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
8828
8829 * xfns.c (x-create-frame, Qalpha):
8830 Initialize the frame parameter `alpha'.
8831 * xterm.c (OPAQUE, OPACITY): New.
8832 (x_set_frame_alpha): New function.
8833 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
8834
8835 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
8836 * w32fns.c (w32_frame_parm_handlers): Likewise.
8837
8838 2008-05-20 Jason Rumney <jasonr@gnu.org>
8839
8840 * w32font.c (add_font_entity_to_list): Don't add non-opentype
8841 truetype fonts to opentype list.
8842
8843 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
8844
8845 * fontset.c (Ffontset_info): Doc fix.
8846 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
8847 <ignore-relative-composition>: Fix typos in docstrings.
8848
8849 * font.c (syms-of-font) <font-encoding-alist>:
8850 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
8851 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
8852 (Ffont_otf_alternates): Doc fixes.
8853
8854 2008-05-20 Kenichi Handa <handa@m17n.org>
8855
8856 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
8857 font.h through out the file.
8858 (FONT_DRIVERS): Rename from FONTOBJ.
8859 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
8860 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
8861
8862 * emacs.c (main): Call syms_of_font unconditionally.
8863
8864 * font.h (find_font_encoding): Extern it.
8865
8866 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
8867 fontset.c.
8868 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
8869 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
8870 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
8871 only when HAVE_WINDOW_SYSTEM is defined.
8872 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
8873 when HAVE_WINDOW_SYSTEM is defined.
8874
8875 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
8876 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
8877
8878 * xfaces.c: Include font.h unconditionally.
8879 (merge_face_ref, merge_face_vectors)
8880 (Finternal_set_lisp_face_attribute): Cancel the previous change.
8881
8882 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
8883
8884 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
8885 indirect_variable.
8886 * eval.c (lisp_indirect_variable): New fun.
8887 (Fuser_variable_p): Use it.
8888
8889 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8890
8891 * lisp.h (indirect_variable):
8892 * data.c (indirect_variable, let_shadows_buffer_binding_p):
8893 Use Lisp_Symbol pointers rather than Lisp_Object.
8894 Adjust callers.
8895 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
8896 To this end, change calling-convention.
8897
8898 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
8899 if some non-hidden buffers are selected by string&pred.
8900
8901 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
8902
8903 * process.c (wait_reading_process_output): Always check status
8904 when in batch mode.
8905
8906 2008-05-19 Kenichi Handa <handa@m17n.org>
8907
8908 * font.c (font_list_entities): Fix handling of cache.
8909 (font_matching_entity): Likewise.
8910
8911 * ftfont.c (cs_iso8859_1): Delete.
8912 (ft_face_cache): New variable.
8913 (struct ftfont_info): New member fc_charset_idx.
8914 (ftfont_build_basic_charsets): Delete.
8915 (fc_charset_table): New variable.
8916 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
8917 . FC_CHARSET_IDX) as :font-entity property in the font entity.
8918 Callers changed.
8919 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8920 (ftfont_spec_pattern): New argument fc_charset_idx.
8921 Check registry more rigidly. Change callers.
8922 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
8923 change of :font-entity property of the font.
8924
8925 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
8926 property of the font.
8927
8928 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
8929
8930 * coding.c (Fcoding_system_p): Rename argument to match docstring.
8931 (Funencodable_char_position, Fcheck_coding_systems_region)
8932 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
8933 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
8934 (Ffind_operation_coding_system, Fset_coding_system_priority)
8935 (Fcoding_system_eol_type): Doc fixes.
8936
8937 2008-05-17 Glenn Morris <rgm@gnu.org>
8938
8939 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
8940
8941 2008-05-16 Eli Zaretskii <eliz@gnu.org>
8942
8943 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
8944 and st_gid.
8945
8946 * frame.c (Fdelete_frame): Don't call font_update_drivers if
8947 HAVE_WINDOW_SYSTEM is not defined.
8948
8949 * xfaces.c (merge_face_ref, merge_face_vectors)
8950 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
8951 HAVE_WINDOW_SYSTEM is defined.
8952 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
8953
8954 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
8955
8956 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
8957
8958 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8959
8960 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
8961
8962 2008-05-15 Kenichi Handa <handa@m17n.org>
8963
8964 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
8965 preference.
8966
8967 2008-05-15 Glenn Morris <rgm@gnu.org>
8968
8969 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
8970
8971 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
8972
8973 * fns.c (init_fns): Don't initialize weak_hash_tables here.
8974 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
8975
8976 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
8977
8978 2008-05-15 Kenichi Handa <handa@m17n.org>
8979
8980 * ftfont.c (ftfont_list): Downcase family name to check generic
8981 families.
8982
8983 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
8984 font-spec for QCfont value.
8985
8986 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
8987 buffer. Check the return value of it.
8988
8989 2008-05-14 Jason Rumney <jasonr@gnu.org>
8990
8991 * w32term.c (w32_get_glyph_overhangs): Remove.
8992 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
8993
8994 2008-05-14 Kenichi Handa <handa@m17n.org>
8995
8996 * font.c (font_prop_validate): Make nil a valid value.
8997 (font_clear_cache): Check if the cached vector of entities is nil
8998 or not.
8999
9000 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9001
9002 * emacs.c (main_thread): Conditionalize on
9003 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9004 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9005
9006 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9007 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9008 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9009
9010 2008-05-14 Kenichi Handa <handa@m17n.org>
9011
9012 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9013 has no corresponding coding system.
9014
9015 2008-05-14 Jason Rumney <jasonr@gnu.org>
9016
9017 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9018
9019 * w32font.h (w32font_open_internal): Update declaration.
9020
9021 * w32font.c (w32font_open_internal): Change last argument from
9022 w32font_info struct to font object. Fill in font object from
9023 font_entity. Get Outline metrics if possible. Use them to
9024 calculate underline position and thickness. Use xlfd name as name
9025 property. Don't set codepage.
9026 (w32font_open): Pass font_object to w32font_open_internal. Don't
9027 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9028 (w32font_draw): Use s->font.
9029 (clear_cached_metrics): Don't clear non-existent blocks.
9030
9031 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9032 font was not found.
9033 (x_draw_glyph_string): Use underline position and thickness from font.
9034
9035 * w32uniscribe.c (uniscribe_open): Pass font_object to
9036 w32font_open_internal.
9037
9038 2008-05-14 Kenichi Handa <handa@m17n.org>
9039
9040 These changes are to delete all legacy font-handling codes, and
9041 make Emacs use only font-backends.
9042
9043 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9044 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9045
9046 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9047
9048 * charset.h (Vcharset_non_preferred_head)
9049 (Vcurrent_iso639_language): Extern them.
9050
9051 * charset.c (Vcharset_non_preferred_head): New variable.
9052 (Vcurrent_iso639_language): New variable.
9053 (syms_of_charset): Declare it as a Lisp variable.
9054 (char_charset): Don't check non preferred charsets. As a last
9055 resort, return charset_unicode.
9056 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9057
9058 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9059 conditionals. Don't check enable_font_backend. Delete all codes
9060 used only when USE_FONT_BACKEND is not defined.
9061
9062 * dispextern.h (struct glyph_string): Change type of `font' to
9063 `struct font *'.
9064 (struct glyph_string): New member underline_position and
9065 underline_thickness.
9066 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9067 (struct face): Change type of `font' to `struct font *'. Remove
9068 members `font_name', `font_info_id'.
9069 (per_char_metric, encode_char): Delete externs.
9070 (calc_pixel_width_or_height): Adjust the prototype.
9071
9072 * emacs.c (enable_font_backend): Delete extern.
9073 (main): Don't set enable_font_backend. Don't check the command
9074 line argument "-disable-font-backend".
9075
9076 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9077 (enum font_property_index): New members FONT_DPI_INDEX,
9078 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9079 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9080 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9081 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9082 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9083 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9084 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9085 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9086 (struct font_spec, struct font_entity): New structs.
9087 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9088 (struct font): Many members from old "struct font_info" moved to
9089 here. Members font and entity deleted.
9090 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9091 the new font-related objects.
9092 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9093 (CHECK_FONT_GET_OBJECT): Likewise.
9094 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9095 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9096 (struct font_driver): New members case_sensitive anc check. Type
9097 of the member list and open changed.
9098 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9099 (font_symbolic_width, font_find_object, font_get_spec)
9100 (font_set_lface_from_name): Delete extern.
9101 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9102
9103 * font.c: Include <strings.h>.
9104 (enable_font_backend): Delete it.
9105 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9106 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9107 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9108 (null_string): Delete it.
9109 (null_vector): Make it static.
9110 (font_family_alist): Delete it.
9111 (Qnormal): Extern it.
9112 (QCextra, QClanguage): Delete it.
9113 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9114 (font_make_spec, font_make_entity, font_make_object)
9115 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9116 the string. Callers changed.
9117 (font_pixel_size): Adjusted for the format change of font-related
9118 objects.
9119 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9120 (font_style_to_value, font_style_symbolic): New function.
9121 (build_font_family_alist): Delete it.
9122 (font_registry_charsets): Use Fassoc_string instead of
9123 assq_no_quit.
9124 (font_prop_validate_symbol): Don't return null_string.
9125 (font_prop_validate_style): Adjusted for the change of
9126 style-related values in a font vector.
9127 (font_property_table): Delete entries for QClanguage and
9128 QCantialias, add entries for QCavgwidth.
9129 (get_font_prop_index): Delete the 2nd argument FROM.
9130 (font_prop_validate): Arguments changed.
9131 (font_put_extra): Adjusted for the change of font-related objects.
9132 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9133 (font_parse_fcname, font_unparse_fcname)
9134 (font_prepare_composition): Likewise.
9135 (font_parse_family_registry): Renamed from font_merge_old_spec.
9136 (otf_open): Delete the 1st arg entity.
9137 (font_otf_capability): Adjusted for the above change.
9138 (font_score): New arg alternate_families. Adjusted for the change
9139 of font-related objects.
9140 (font_sort_entites): New arg best_only.
9141 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9142 Delete them.
9143 (font_match_p): Check alternate families.
9144 (font_find_object): Delete it.
9145 (font_check_object): New function.
9146 (font_clear_cache): Adjusted for the change of font-related objects.
9147 (font_delete_unmatched): New arg.
9148 (font_list_entities): Call font_driver->list with a spec that
9149 doesn't specify style-related properties.
9150 (font_matching_entity): Arguments changed. Caller changed.
9151 (font_open_entity): Adjusted for the change of font-related objects.
9152 (font_close_object, font_has_char, font_encode_char)
9153 (font_get_name, font_get_spec): Likewise.
9154 (font_spec_from_name, font_clear_prop, font_update_lface):
9155 New functions.
9156 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9157 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9158 (font_at): Adjusted for the change of font-related objects.
9159 (font_range): New function.
9160 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9161 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9162 (Fcopy_font_spec, Fmerge_font_spec): New function.
9163 (Ffont_family_list): Renamed from list-families.
9164 (Finternal_set_font_style_table): Arguments changed.
9165 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9166 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9167 change of font-related objects.
9168 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9169
9170 * fontset.h (struct font_info): Delete it. Most members go to
9171 struct font.
9172 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9173 (enum FONT_SPEC_INDEX): Delete it.
9174 (font_info, list_fonts_func, load_font_func, query_font_func)
9175 (set_frame_fontset_func, find_ccl_program_func)
9176 (get_font_repertory_func, new_fontset_from_font_name): Delete
9177 externs.
9178 (fontset_from_font_name): Extern it.
9179 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9180 (FONT_INFO_FROM_FACE): Deleted.
9181 (face_for_font): Adjust prototype.
9182
9183 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9184 conditionals. Don't check enable_font_backend. Delete all codes
9185 used only when USE_FONT_BACKEND is not defined.
9186 (get_font_info_func, list_font_func, load_font_func)
9187 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9188 (get_font_repertory_func): Delete them.
9189 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9190 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9191 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9192 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9193 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9194 (fontset_compare_rfontdef): New function.
9195 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9196 rfont-defs by qsort. Adjusted for the change of font-group vector.
9197 (load_font_get_repertory): Deleted.
9198 (fontset_find_font): Use new macros to ref/set elements of
9199 font-def and rfont-def.
9200 (fontset_font): Fix the timing of remembering that no font for C.
9201 (free_face_fontset): Do nothing if the face has no fontset.
9202 (face_suitable_for_char_p): Use new macros to ref/set elements of
9203 rfont-def.
9204 (face_for_char): Likewise. Call face_for_char with font_object.
9205 (fs_load_font): Delete. Delete #pragma surrounding it.
9206 (fs_query_fontset): Use strcasecmp instead of strcmp.
9207 (generate_ascii_font_name): Adjusted for the format change of
9208 font-spec.
9209 (Fset_fontset_font): Likewise. Use new macros to set elements of
9210 font-def.
9211 (Fnew_fontset): Use font_unparse_xlfd to generate
9212 FONTSET_ASCII (fontset).
9213 (new_fontset_from_font_name): Deleted.
9214 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9215 a fontset is already created for the font. FIx updating of
9216 Vfontset_alias_alist.
9217 (fontset_ascii_font): Deleted.
9218 (Ffont_info): Adjusted for the format change of font-spec.
9219 (Finternal_char_font): Likewise.
9220 (Ffontset_info): Likewise.
9221 (syms_of_fontset): Don't check load_font_func.
9222
9223 * fns.c (internal_equal): Handle PREV_FONT.
9224
9225 * frame.h: Delete USE_FONT_BACKEND conditional.
9226
9227 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9228 conditionals. Don't check enable_font_backend. Delete all codes
9229 used only when USE_FONT_BACKEND is not defined.
9230 (x_set_font): Call x_new_font, not x_new_fontset2.
9231 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9232 already set for the frame.
9233
9234 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9235 a font-entity by font_make_entity. Use font_intern_prop instead
9236 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9237 font property. If a font is scalable, set avgwidth property to 0.
9238 Set font-entity property by font_put_extra.
9239 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9240 (ffont_driver): Adjusted for the change of struct font_driver.
9241 (ftfont_spec_pattern): New function.
9242 (ftfont_list): Return a list, not vector.
9243 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9244 (ftfont_list_family): Don't downcase names.
9245 (ftfont_free_entity): Deleted.
9246 (ftfont_open): Return a font-object. Adjusted for the change of
9247 struct font. Get underline_thickness and underline_position from
9248 font property. Don't update dpyinfo->smallest_font_height and
9249 dpyinfo->smallest_char_width.
9250 (ftfont_close): Don't free `struct font'.
9251 (ftfont_has_char): Adjusted for the format change of font-entity.
9252 (ftfont_encode_char, ftfont_text_extents): Likewise.
9253
9254 * ftxfont.c (ftxfont_list): Return a list, not vector.
9255 (ftxfont_open): Return a font-object. Adjusted for the change of
9256 struct font. Get underline_thickness and underline_position from
9257 font property. Don't update dpyinfo->smallest_font_height and
9258 dpyinfo->smallest_char_width.
9259 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9260 (ftxfont_draw): Adjusted for the change of struct font.
9261
9262 * image.c (image_ascent): Don't include "charset.h". Include
9263 "character.h" and "font.h".
9264
9265 * lisp.h (enum pvec_type): New member PREV_FONT.
9266 (Fassoc_string): EXFUN it.
9267
9268 * print.c: Include font.h.
9269 (print_object): Handle font-related objects.
9270
9271 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9272 conditionals. Don't check enable_font_backend. Delete all codes
9273 used only when USE_FONT_BACKEND is not defined.
9274 (handle_auto_composed_prop): Do nothing if it->f is not on a
9275 window system. Check how many following characters can be
9276 displayed by the same font.
9277 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9278 'struct font *'.
9279 (get_char_face_and_encoding): Assign the whole encoding task to
9280 the `encode-char' method of a font driver.
9281 (fill_composite_glyph_string): Adjusted for the change of `struct
9282 face' and `struct glyph_string'.
9283 (fill_glyph_string): Likewise.
9284 (get_per_char_metric): Arguments changed.
9285 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9286 and `struct glyph_string'.
9287 (produce_stretch_glyph, calc_line_height_property)
9288 (x_produce_glyphs): Likewise.
9289
9290 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9291 conditionals. Don't check enable_font_backend. Delete all codes
9292 used only when USE_FONT_BACKEND is not defined. Use
9293 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9294 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9295 (Qp): Extern them.
9296 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9297 Deleted.
9298 (struct font_name): Deleted.
9299 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9300 (compare_fonts_by_sort_order): New function.
9301 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9302 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9303 Deleted.
9304 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9305 compare_fonts_by_sort_order.
9306 (Fx_font_family_list): Call Ffont_family_list.
9307 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9308 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9309 (face_symbolic_slant, face_symbolic_swidth)
9310 (split_font_name_into_vector, build_font_name_from_vector)
9311 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9312 (font_rescale_ratio, split_font_name, build_font_name)
9313 (free_font_names, sort_fonts, x_face_list_fonts)
9314 (face_font_available_p, sorted_font_list, cmp_font_names)
9315 (font_list_1, concat_font_list, font_list, remove_duplicates):
9316 Deleted.
9317 (Fx_list_fonts): Use Ffont_list.
9318 (LFACE_AVGWIDTH): Deleted.
9319 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9320 by FONTP.
9321 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9322 (set_lface_from_font_name): Delete it.
9323 (set_lface_from_font): Renamed from
9324 set_lface_from_font_and_fontset. Caller changed. Don't set
9325 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9326 for face.
9327 (merge_face_vectors): Copy font-spec if necessary.
9328 Clear properties of the font-spec if necessary.
9329 (merge_face_ref): Clear properties of the font-spec if necessary.
9330 (Finternal_set_lisp_face_attribute): Likewise.
9331 (set_font_frame_param): Use font_load_for_lface to load a
9332 font-object, and call Fmodify_frame_parameters with it.
9333 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9334 font name by Ffont_xlfd_name.
9335 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9336 QCslant, and QCwidth.
9337 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9338 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9339 Compare fonts by EQ.
9340 (lookup_non_ascii_face): Deleted.
9341 (face_for_font): The 2nd argument changed.
9342 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9343 Check atomic font properties by case insensitive.
9344 (realize_non_ascii_face): Set face->overstrike correctly.
9345 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9346 (dump_realized_face): Get font name from
9347 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9348
9349 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9350 conditionals. Don't check enable_font_backend. Delete all codes
9351 used only when USE_FONT_BACKEND is not defined.
9352 (xic_create_xfontset): Original code deleted and renamed from
9353 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9354 (x_make_gc): Don't set GCFont in GCs.
9355 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9356 opened by "fixed".
9357 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9358 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9359 get_font_repertory_func.
9360
9361 * xfont.c: Include <stdlib.h> and "ccl.h".
9362 (struct xfont_info): New structure.
9363 (xfont_query_font): Deleted.
9364 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9365 moved from xterm.c.
9366 (xfont_driver): Adjusted for the change of struct font_driver.
9367 (compare_font_names): New function.
9368 (xfont_list_pattern): Sort font names case insensitively. Make
9369 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9370 (xfont_list): Return a list, not vector.
9371 (xfont_match): If the font doesn't have QCname property, generate
9372 a name from the other font properties.
9373 (xfont_open): Return a font-object. Adjusted for the change of
9374 struct font. Get underline_thickness and underline_position from
9375 font property. Don't update dpyinfo->smallest_font_height and
9376 dpyinfo->smallest_char_width.
9377 (xfont_close): Don't free struct font.
9378 (xfont_prepare_face): Adjusted for the change of struct font.
9379 (xfont_done_face): Deleted.
9380 (xfont_has_char): Adjusted for the change of struct font.
9381 (xfont_encode_char, xfont_draw): Likewise.
9382 (xfont_check): New function.
9383
9384 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9385 callback function.
9386 (xftfont_match): Adjusted for the format change of font-entity.
9387 (xftfont_open): Adjusted for the format change of font-entity and
9388 font-object. Adjusted for the change of struct font. Return a
9389 font-object. Don't update dpyinfo->smallest_font_height and
9390 dpyinfo->smallest_char_width.
9391 (xftfont_close): Block input while calling XftFontClose.
9392 (xftfont_prepare_face): Don't block input while calling
9393 xftfont_get_colors. Adjusted for the change of struct font.
9394 (xftfont_shape): Return value of error case fixed.
9395
9396 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9397
9398 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9399 conditionals.
9400 (FONT_WIDTH): Return (f)->max_width.
9401 (struct x_display_info): Delete member `font'.
9402 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9403 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9404 (struct x_output): Change type of `font' to `struct font *'.
9405
9406 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9407 conditionals. Don't check enable_font_backend. Delete all codes
9408 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9409 (x_per_char_metric, x_encode_char): Deleted.
9410 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9411 (x_compute_glyph_string_overhangs): Adjusted for the change of
9412 `struct face'.
9413 (x_draw_glyph_string_foreground)
9414 (x_draw_composite_glyph_string_foreground): Likewise.
9415 (x_draw_glyph_string): Likewise. Use font->underline_position and
9416 font->underline_thickness.
9417 (x_new_font): Renamed from x_new_fontset2.
9418 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9419 (x_check_font): Call `check' method of a font driver.
9420 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9421 (x_query_font, x_get_font_repertory): Deleted.
9422 (x_find_ccl_program): Renamed and moved to xfont.c.
9423 (x_redisplay_interface): Adjusted for the change of `struct
9424 redisplay_interface'.
9425
9426 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9427 conditionals. Don't check enable_font_backend. Delete all codes
9428 used only when USE_FONT_BACKEND is not defined. Surround non-used
9429 code by "#ifdef OLD_FONT" and "endif".
9430 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9431
9432 * w32font.h (struct w32font_info): New member.
9433 (FONT_COMPAT): New macro.
9434 (w32font_open_internal): Prototype adjusted.
9435
9436 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9437 OLD_FONT" and "endif".
9438
9439 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9440 conditionals. Don't check enable_font_backend. Delete all codes
9441 used only when USE_FONT_BACKEND is not defined.
9442 (w32font_open): Return a font-object. Make a font-object by
9443 font_make_object. Adjusted for the change of struct w32font_info.
9444 (w32font_close): Don't free struct font. Adjusted for the change
9445 of struct w32font_info.
9446 (w32font_encode_char, w32font_text_extents, w32font_draw):
9447 Adjusted for the change of struct w32font_info.
9448 (w32font_draw): Likewise.
9449 (w32font_list_internal): Return a list, not vector.
9450 (w32font_open_internal): Change the 4th arg to font-object.
9451 Adjusted for the change of struct w32font_info and font-object format.
9452 (add_font_name_to_list): Don't downcase names.
9453 (w32_enumfont_pattern_entity): Make a font-entity by
9454 font_make_entity. Adjusted for the format change of font-entity.
9455 Use FONT_SET_STYLE to set a style-related font property. If a
9456 font is scalable, set avgwidth property to 0. Set font-entity
9457 property by font_put_extra.
9458 (font_matches_spec): Adjusted for the format change of font-entity.
9459 (w32_weight_table, w32_decode_weight): New variables.
9460 (w32_encode_weight): New function.
9461 (fill_in_logfont): Adjusted for the format change of font-spec.
9462 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9463 weight value.
9464 (w32font_driver): Adjusted for the change of struct font_driver.
9465
9466 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9467 conditionals. Don't check enable_font_backend. Surround non-used
9468 code by "#ifdef OLD_FONT" and "endif".
9469 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9470 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9471
9472 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9473 conditionals. Don't check enable_font_backend. Delete all codes
9474 used only when USE_FONT_BACKEND is not defined. Surround non-used
9475 code by "#ifdef OLD_FONT" and "endif".
9476
9477 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9478 (uniscribe_open): Return value changed to font-object.
9479 Adjusted for the format change of font-object.
9480 (uniscribe_otf_capability): Adjusted for the change of struct font.
9481 (add_opentype_font_name_to_list): Don't downcase names.
9482 (uniscribe_font_driver): Adjusted for the change of struct
9483 font_driver.
9484
9485 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
9486
9487 * dispnew.c (update_frame_1): Check if tty output is still valid
9488 before flushing it.
9489
9490 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9491
9492 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9493 to Gtk+ menus.
9494
9495 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9496
9497 * dired.c (file_name_completion): Tweak the code so as to always do it
9498 in a single pass. Tighten the scope of some variables.
9499
9500 * dired.c (Qdefault_directory): New var.
9501 (file_name_completion): Use it instead of Fexpand_file_name.
9502 (syms_of_dired): Initialize it.
9503
9504 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9505
9506 * fileio.c (double_dollars): Remove dead code.
9507
9508 2008-05-10 Eli Zaretskii <eliz@gnu.org>
9509
9510 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9511 Mention w32-get-true-file-attributes in doc string.
9512
9513 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9514
9515 2008-05-09 Glenn Morris <rgm@gnu.org>
9516
9517 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9518 2008-04-23.
9519
9520 2008-05-09 Eli Zaretskii <eliz@gnu.org>
9521
9522 Support for reporting owner and group of each file on MS-Windows:
9523 * dired.c (stat_uname, stat_gname): New functions, with special
9524 implementation for w32.
9525 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9526
9527 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9528 (dflt_group_name): New static variable.
9529 (dflt_group): Rename from the_group.
9530 (init_user_info): Init dflt_group fields. Get user's group name
9531 from LookupAccountSid.
9532 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9533 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9534 New initialization states.
9535 (globals_of_w32): Initialize them to zero. Initialize the default
9536 group name to "None".
9537 (GetFileSecurity_Name): New global var, the name of the function
9538 to call for GetFileSecurity.
9539 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9540 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9541 (get_file_security, get_security_descriptor_owner)
9542 (get_security_descriptor_group, is_valid_sid)
9543 (get_file_security_desc, get_rid, get_name_and_id)
9544 (get_file_owner_and_group): New functions.
9545 (stat): Use get_file_security_desc and get_file_owner_and_group to
9546 report the owner and primary group of each file. Don't ignore the
9547 high 32 bits of file's size, now that st_size is 64-bit wide.
9548 Fix test when to get true file attributes.
9549 (init_user_info): Use get_rid instead of equivalent inline code.
9550 (fstat): Don't ignore the high 32 bits of file's size.
9551
9552 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
9553
9554 * image.c (png_load): Use correct bit-depth for setting background
9555 color.
9556
9557 2008-05-08 Eli Zaretskii <eliz@gnu.org>
9558
9559 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9560 epa-hook.elc.
9561
9562 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
9563
9564 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9565
9566 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9567
9568 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9569 because the original parameters are in pure storage now.
9570 (mac_window): Remove unused params. Update callers.
9571
9572 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9573
9574 * lread.c (substitute_object_recurse): Use lower-level primitives.
9575 Don't signal errors when traversing sub-char-tables.
9576 Don't loop over all the possible characters when traversing char-tables.
9577
9578 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9579 just like we do in print.c.
9580
9581 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9582
9583 * minibuf.c (Ftry_completion): Remove code left over from when we used
9584 scmp instead of Fcompare_strings.
9585
9586 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
9587
9588 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9589
9590 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9591
9592 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9593 Create bitmap context in native byte order.
9594
9595 * macterm.c (XDrawLine)
9596 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9597 context in native byte order.
9598
9599 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9600
9601 * config.in: Regenerate.
9602
9603 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9604 New definitions for Image I/O support.
9605 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9606 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9607 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9608 (mac_data_provider_release_data, image_load_image_io)
9609 [USE_MAC_IMAGE_IO]: New functions.
9610 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9611 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9612 (init_image_func_pointer) [MAC_OSX]: Remove function.
9613 (image_load_quartz2d) [MAC_OSX]: Check availability of
9614 CGImageCreateWithPNGDataProvider at compile time.
9615 Use lowercase `false' for boolean constant.
9616 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9617 Use image_load_image_io.
9618 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9619 Don't check MyCGImageCreateWithPNGDataProvider.
9620 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9621 Don't call init_image_func_pointer.
9622
9623 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9624
9625 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9626 Make variable non-static.
9627 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9628 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9629
9630 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9631 (RED_FROM_ULONG): Mask off higher bits.
9632 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9633
9634 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9635 Include AvailabilityMacros.h.
9636 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9637 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9638
9639 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9640
9641 * chartab.c (Fset_char_table_range): If range is t, really set all
9642 chars to that value.
9643
9644 2008-05-03 Eli Zaretskii <eliz@gnu.org>
9645
9646 * dired.c (Ffile_attributes): Don't allow the device number become
9647 negative.
9648
9649 2008-05-02 Daiki Ueno <ueno@unixuser.org>
9650
9651 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9652
9653 2008-05-02 Juri Linkov <juri@jurta.org>
9654
9655 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9656 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9657 DEFAULT argument as a list of default values in docstrings.
9658
9659 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
9660
9661 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9662
9663 2008-05-01 Martin Rudalics <rudalics@gmx.at>
9664
9665 * dispnew.c (change_frame_size_1): Preserve small windows when
9666 shrinking frames by calling set_window_height|width with third
9667 arg 2.
9668
9669 * window.h (struct window): Replace field too_small_ok by field
9670 resize_proportionally.
9671
9672 * window.c (make_window): Initialize resize_proportionally.
9673 (enlarge_window): Temporarily set resize_proportionally to make
9674 sure that shrink_windows does scale the window proportionally.
9675 (shrink_windows): When window has resize_proportionally set try
9676 to shrink it proportionally by stealing from other windows.
9677 (struct saved_window, Fset_window_configuration)
9678 (compare_window_configurations): Handle resize_proportionally.
9679 (WINDOW_TOTAL_SIZE): New macro.
9680 (window_min_size, shrink_windows, size_window): Use it.
9681 (check_min_window_sizes): Remove. Invalid values of
9682 window-min-height|width are handled by window_min_size_2 now.
9683 (size_window, Fsplit_window, enlarge_window)
9684 (adjust_window_trailing_edge, grow_mini_window): Don't call
9685 check_min_window_sizes.
9686 (window_min_size_2, window_min_size_1, window_min_size):
9687 New argument safe_p for retrieving "safe" minimum sizes.
9688 (Fdisplay_buffer, Fsplit_window, enlarge_window)
9689 (adjust_window_trailing_edge, grow_mini_window):
9690 Adjust arguments of window_min_size... functions.
9691 (shrink_windows): Argument min_size removed. New argument
9692 safe_p allows shrinking windows to their safe minimum sizes.
9693 Calculate minimum size and decide whether a window shall be
9694 deleted for each window individually.
9695 (size_window): When nodelete_p equals 2, tell shrink_windows to
9696 delete windows only if their new minimum size is no more safe.
9697 (shrink_window_lowest_first): Call window_min_size_1 to make
9698 sure to preserve modeline of bottom-most window when resizing
9699 the minibuffer.
9700 (Fset_window_configuration, Fcurrent_window_configuration)
9701 (compare_window_configurations): Do not handle
9702 window-min-height|width any more.
9703 (syms_of_window): Clarify window-min-height|width doc-strings.
9704
9705 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
9706
9707 * dired.c (file_name_completion): Fix up the encoding/decoding issue
9708 some more. Copy some of the code from Ftry_completions.
9709 Remove special case code that dates back to initial revision when the
9710 slash was only added when necessary and that can't trigger nowadays.
9711
9712 2008-04-27 Kenichi Handa <handa@m17n.org>
9713
9714 * font.c (font_prop_validate): Signal `error' instead of `font'.
9715
9716 2008-04-29 Jason Rumney <jasonr@gnu.org>
9717
9718 * w32fns.c (Fw32_battery_status): New defun.
9719 (syms_of_w32fns): Defsubr it.
9720
9721 2008-04-28 Andreas Schwab <schwab@suse.de>
9722
9723 * dired.c (file_name_completion): Fix another mixing of encoded
9724 and decoded names.
9725
9726 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
9727
9728 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
9729
9730 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
9731
9732 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
9733
9734 2008-04-27 Andreas Schwab <schwab@suse.de>
9735
9736 * dired.c (file_name_completion): Fix inappropriate mixing of
9737 encoded and decoded names.
9738
9739 * xterm.c (XTread_socket): Fix use of uninitialized variable.
9740
9741 * puresize.h (BASE_PURESIZE): Increase to 1200000.
9742
9743 2008-04-26 Eli Zaretskii <eliz@gnu.org>
9744
9745 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
9746 2008-03-31, it's not needed anymore with `struct stat' definition
9747 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
9748 for the same reasons.
9749
9750 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
9751
9752 * m/sparc.h: Additional redefinitions for GNU/Linux.
9753
9754 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9755
9756 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
9757 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
9758 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
9759 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
9760 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9761 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
9762 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9763 Likewise.
9764
9765 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
9766 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
9767 (mac_ax_number_of_characters): Add externs.
9768 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9769 [USE_MAC_TSM]: Likewise.
9770 (mac_handle_text_input_event) [MAC_OSX]:
9771 Handle kEventTextInputOffsetToPos for no active input area case.
9772 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9773 (mac_handle_document_access_event)
9774 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
9775 (install_application_handler) [MAC_OSX]: Register handlers for
9776 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9777 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9778 Register mac_handle_document_access_event.
9779
9780 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
9781 Make functions non-static.
9782
9783 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9784
9785 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
9786 (read_file_name_completion_ignore_case, insert_default_directory)
9787 (Qdefault_directory): Move to minibuffer.el.
9788 (Fread_file_name): Call the new `read-file-name' instead.
9789
9790 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9791
9792 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
9793 Make function non-static.
9794 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
9795 Remove function.
9796 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9797 Move to mactoolbox.c.
9798 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
9799
9800 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
9801 (mac_rect_make): New macro.
9802
9803 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
9804 instead of float.
9805 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9806 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
9807 (XSetBackground) [USE_CG_DRAWING]: Likewise.
9808 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
9809 CGRectMake.
9810 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9811 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
9812 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
9813 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9814 instead of WindowRef in argument type.
9815 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
9816 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
9817 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
9818 instead of DISPLAY. All uses changed.
9819 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
9820 (x_calc_absolute_position): Simplify so as not to use
9821 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
9822
9823 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9824 instead of WindowRef in argument type.
9825 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
9826 [TARGET_API_MAC_CARBON]: Remove externs.
9827 (create_apple_event, mac_event_parameters_to_lisp)
9828 [TARGET_API_MAC_CARBON]: Add externs.
9829
9830 * mactoolbox.c (Vmac_ts_script_language_on_focus)
9831 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
9832 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
9833 is clicked.
9834 (x_activate_menubar): Remove extern for saved_menu_event_location.
9835 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9836 Move from mac.c.
9837
9838 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9839
9840 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
9841 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
9842
9843 2008-04-23 Jason Rumney <jasonr@gnu.org>
9844
9845 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
9846 attributes only for local files.
9847
9848 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
9849 default to Qlocal.
9850
9851 2008-04-22 Juri Linkov <juri@jurta.org>
9852
9853 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
9854 read-buffer-to-switch instead of using the letter "B".
9855
9856 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
9857
9858 * fileio.c (Qdefault_directory): New variable.
9859 (Fread_file_name): Use it to pass `dir' to the completion functions.
9860
9861 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
9862
9863 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
9864
9865 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
9866
9867 * keyboard.c (Vpre_help_message): Remove.
9868 (show_help_echo): Remove default C code.
9869
9870 * dired.c (directory_files_internal, file_name_completion):
9871 Only call ENCODE_FILE if the string is indeed decoded.
9872
9873 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9874
9875 * Makefile.in (TOOLKIT_DEFINES): Remove.
9876 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
9877
9878 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9879
9880 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
9881 (mactoolbox.o): New target.
9882
9883 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
9884 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
9885
9886 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
9887 Use mac_set_frame_window_background instead of XSetWindowBackground.
9888 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
9889 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
9890 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
9891 instead of SetWindowTitleWithCFString.
9892 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
9893 Move function to mactoolbox.c.
9894 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
9895 Use mac_set_window_modified instead of SetWindowModified.
9896 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
9897 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
9898 (Fx_focus_frame): Use mac_front_non_floating_window instead of
9899 FrontNonFloatingWindow. Use mac_activate_window instead of
9900 ActivateWindow. Use mac_active_non_floating_window instead of
9901 ActiveNonFloatingWindow.
9902 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
9903 Use mac_show_hourglass and mac_hide_hourglass.
9904 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
9905 instead of GetGlobalMouse.
9906 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
9907 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
9908 Use mac_bring_window_to_front instead of BringToFront.
9909 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
9910 mactoolbox.c.
9911 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
9912 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
9913 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
9914 mactoolbox.c.
9915
9916 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
9917 (XtPointer): Move typedef from macmenu.c.
9918 (enum button_type): Move enum from macmenu.c.
9919 (widget_value): Move typedef from macmenu.c.
9920 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
9921 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9922 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9923 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9924 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9925 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9926 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9927 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
9928 (Selection): Move typedef from macselect.c.
9929 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
9930 macterm.c.
9931 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
9932 (mac_is_window_collapsed, mac_bring_window_to_front)
9933 (mac_send_window_behind, mac_hide_window, mac_show_window)
9934 (mac_collapse_window, mac_front_non_floating_window)
9935 (mac_active_non_floating_window, mac_activate_window)
9936 (mac_move_window_structure, mac_move_window, mac_size_window)
9937 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
9938
9939 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
9940 (enum mac_menu_kind): Move enum to mactoolbox.c.
9941 (min_menu_id): Move variable to mactoolbox.c.
9942 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
9943 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
9944 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
9945 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
9946 [TARGET_API_MAC_CARBON]: Likewise.
9947 (XtPointer): Move typedef to macgui.h.
9948 (enum button_type): Move enum to macgui.h.
9949 (widget_value): Move typedef to macgui.h.
9950 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9951 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9952 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9953 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9954 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9955 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9956 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
9957 (popup_activated_flag): Make variable non-static.
9958 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
9959 (add_menu_item, fill_menu, dispose_menus):
9960 Move functions to mactoolbox.c.
9961 (restore_show_help_function, menu_target_item_handler)
9962 (install_menu_target_item_handler, mac_handle_dialog_event)
9963 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
9964 [TARGET_API_MAC_CARBON]: Likewise.
9965 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
9966 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9967 (find_and_call_menu_selection, name_is_separator): Make function
9968 non-static.
9969 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
9970 to mactoolbox.c.
9971 (set_frame_menubar): Don't call install_menu_quit_handler.
9972 (menu_item_selection): New variable.
9973 (mac_menu_show): Use create_and_show_popup_menu.
9974 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
9975 selection but set variable menu_item_selection. All uses changed.
9976 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
9977 Call install_menu_quit_handler. Move to mactoolbox.c.
9978
9979 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
9980 (Selection): Move typedef to macgui.h.
9981 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
9982 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
9983 Make variables non-static.
9984 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9985 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
9986 Make functions non-static.
9987 (Vmac_service_selection) [MAC_OSX]: Likewise.
9988 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
9989 (mac_valid_selection_target_p, mac_clear_selection)
9990 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9991 (mac_put_selection_value, mac_selection_has_target_p)
9992 (mac_get_selection_value, mac_get_selection_target_list)
9993 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
9994 Move functions to mactoolbox.c.
9995 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
9996 Likewise.
9997 (copy_scrap_flavor_data, mac_handle_service_event)
9998 (install_service_handler) [MAC_OSX]: Likewise.
9999 (syms_of_macselect) <Vmac_dnd_known_types>:
10000 Use mac_dnd_default_known_types.
10001
10002 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10003 Move to mactoolbox.c.
10004 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10005 (Fx_selection_owner_p): Add EXFUN.
10006 (install_window_handler, remove_window_handler, XSetWindowBackground):
10007 Remove externs.
10008 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10009 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10010 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10011 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10012 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10013 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10014 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10015 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10016 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10017 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10018 (mac_valid_selection_target_p, mac_clear_selection)
10019 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10020 (mac_put_selection_value, mac_selection_has_target_p)
10021 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10022 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10023 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10024 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10025 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10026 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10027 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10028 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10029 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10030
10031 * mactoolbox.c: New file.
10032
10033 2008-04-18 Jason Rumney <jasonr@gnu.org>
10034
10035 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10036
10037 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10038
10039 * character.c (Fmultibyte_char_to_unibyte):
10040 Return latin1 chars unchanged.
10041
10042 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10043 relocated if it points to `name'.
10044
10045 2008-04-17 Kenichi Handa <handa@m17n.org>
10046
10047 * data.c (Faset): Allow setting a multibyte character in an
10048 ASCII-only unibyte string.
10049
10050 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10051
10052 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10053
10054 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10055 done in config.h.
10056
10057 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
10058
10059 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10060 (Fchar_direction): Add usage in the docstring.
10061
10062 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
10063
10064 * keyboard.c (read_key_sequence): Remove always-true checks.
10065
10066 2008-04-14 Jason Rumney <jasonr@gnu.org>
10067
10068 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10069 compatibility struct, for better underline positioning.
10070
10071 2008-04-13 David Hansen <david.hansen@gmx.net>
10072
10073 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10074 string.
10075
10076 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10077
10078 * m/hp800.h (XUINT, XSET): Remove.
10079
10080 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
10081
10082 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10083 previous change.
10084
10085 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10086
10087 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10088 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10089
10090 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10091
10092 * keymap.h (map_keymap_canonical): Declare.
10093 * xmenu.c (single_keymap_panes): Use it.
10094
10095 2008-04-11 Glenn Morris <rgm@gnu.org>
10096
10097 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10098 set the target's value to that of the alias.
10099
10100 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10101
10102 * term.c (set_tty_color_mode): Left over typo.
10103
10104 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
10105
10106 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10107 only after check for file name handler functions. Signal, when
10108 native functionality is not supported.
10109 (syms_of_fileio): Declare it unconditionally.
10110
10111 2008-04-10 Jason Rumney <jasonr@gnu.org>
10112
10113 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10114 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10115
10116 * w32.c (logon_network_drive): Also logon to remote drives that
10117 are mapped to drive letters.
10118
10119 2008-04-10 Glenn Morris <rgm@gnu.org>
10120
10121 * xdisp.c (truncate-partial-width-windows): Doc fix.
10122
10123 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10124
10125 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10126 Move functions to minibuffer.el.
10127 (syms_of_fileio): Don't declare them.
10128
10129 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10130
10131 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10132 (syms_of_minibuf): Remove its initialization.
10133
10134 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10135
10136 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
10137
10138 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10139
10140 2008-04-09 Jason Rumney <jasonr@gnu.org>
10141
10142 * makefile.w32-in (distclean): Delete makefile too.
10143 (maintainer-clean): New target.
10144
10145 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10146
10147 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10148 for new font backend and composite cases.
10149
10150 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10151
10152 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10153 Most of the code moved to run_timers.
10154 (do_pending_atimers): Call run_timers.
10155 (run_timers): New function.
10156
10157 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10158 run atimers.
10159
10160 * process.c (wait_reading_process_output): The same as above.
10161
10162 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10163
10164 * minibuf.c (last_exact_completion): Remove variable.
10165 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10166 (complete_and_exit_1, complete_and_exit_2)
10167 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10168 (Fdisplay_completion_list, display_completion_list_1)
10169 (Fminibuffer_completion_help, Fself_insert_and_exit)
10170 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10171 minibuffer.el.
10172 (syms_of_minibuf): Remove corresponding initializations.
10173
10174 * keyboard.c (Qdeactivate_mark): New var.
10175 (command_loop_1): Use it to call `deactivate-mark'.
10176 (syms_of_keyboard): Initialize it.
10177
10178 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10179 to another frame.
10180 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10181 Don't call set_tty_color_mode.
10182 (store_frame_param): Reset previous_frame rather than call
10183 set_tty_color_mode.
10184 * term.c (set_tty_color_mode): Rewrite.
10185 * dispextern.h (set_tty_color_mode): New type.
10186 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10187
10188 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10189
10190 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10191 for generic chars, which do not exist any more in emacs-unicode.
10192
10193 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
10194
10195 * coding.c (detect_coding_emacs_mule)
10196 (Ffind_operation_coding_system): Fix typo.
10197
10198 2008-04-08 Jason Rumney <jasonr@gnu.org>
10199
10200 * w32uniscribe.c (SNAME): Extract only symbol name.
10201
10202 * w32font.h (struct w32_metric_cache): New struct.
10203 (w32font_info): Use it.
10204 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10205 (CACHE_BLOCKSIZE): New constants.
10206
10207 * w32font.c (Qja, Qko, Qzh): New symbols.
10208 (syms_of_w32font): Initialise them.
10209 (font_matches_spec): Use them to filter by language.
10210 (recompute_cached_metrics): Remove function.
10211 (compute_metrics, clear_cached_metrics): New functions.
10212 (w32font_encode_char): Use them to manage metric cache.
10213 (w32font_text_extents): Cache metrics for all glyphs on demand.
10214 Delay converting glyph indices to WORD until needed.
10215 (w32font_open_internal): Initialize metric cache to empty.
10216 (registry_to_w32_charset): Charset should always be a symbol.
10217 (fill_in_logfont, list_all_matching_fonts): Family should
10218 always be a symbol.
10219
10220 2008-04-06 Jason Rumney <jasonr@gnu.org>
10221
10222 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10223 Give up if glyph indices not supported. Use uniscribe obtained
10224 ABC widths for individual metrics. Map glyph clusters back to
10225 characters using fClusterStart flag. Return number of glyphs
10226 produced, not chars processed.
10227 (uniscribe_shape): Map char at FROM to current glyph.
10228
10229 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10230
10231 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10232 Use SetMenuItemHierarchicalMenu.
10233
10234 2008-04-05 Jason Rumney <jasonr@gnu.org>
10235
10236 * image.c (pbm_load): Allow color values up to 65535.
10237 Throw an error if max_color_idx is outside the supported range.
10238 Report an error when image size is invalid.
10239 Read two bytes at a time when raw images have max_color_idx above 255.
10240
10241 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10242
10243 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10244 cFileName a file name that includes `?' characters, use the 8+3
10245 alias in cAlternateFileName instead.
10246
10247 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10248
10249 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10250 append "CCL: Quitted" when the CCL program is quitted.
10251 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10252
10253 * ccl.h (struct ccl_program): New member quit_silently.
10254
10255 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
10256
10257 * search.c (compile_pattern_1): Treat non-nil and non-string of
10258 search-spaces-regexp as nil.
10259
10260 * minibuf.c (Fassoc_string): Tweak docstring.
10261
10262 2008-04-05 Eli Zaretskii <eliz@gnu.org>
10263
10264 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10265 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10266 2008-03-14 to force inode be positive.
10267
10268 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10269 _S_* ones, since we now use our own sys/stat.h.
10270 (stat, fstat): Don't mangle the inode number.
10271 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10272
10273 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10274
10275 * frame.h (struct frame): Give one more bit to `visible' since we use
10276 values larger than 1 to indicate obscured frames on ttys.
10277
10278 * keymap.c (Qkeymap_canonicalize): New var.
10279 (Fmap_keymap_internal): New fun.
10280 (describe_map): Use keymap-canonicalize.
10281
10282 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10283 (Fundo_boundary): Set them.
10284 (syms_of_undo): Initialize them.
10285 (record_point): Use them instead of last_point_position*.
10286 (last_undo_buffer): Change type.
10287
10288 2008-04-04 Jason Rumney <jasonr@gnu.org>
10289
10290 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10291 (recompute_cached_metrics): Don't set ascent and descent per char.
10292
10293 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10294 (uniscribe_check_otf): Add GC protection before consing.
10295 Rearrange loop for counting features.
10296
10297 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10298
10299 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10300 buffer with byte-size of source buffer.
10301
10302 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
10303
10304 * callint.c (Fcall_interactively): Handle temporary region even
10305 when shift-select-mode is off.
10306
10307 2008-04-03 Jason Rumney <jasonr@gnu.org>
10308
10309 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10310
10311 2008-04-03 Kenichi Handa <handa@m17n.org>
10312
10313 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10314 (CATEGORY_MASK_UTF_16): Likewise.
10315 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10316 binary file.
10317 (detect_coding): Add null-byte detection for a binary file.
10318 (detect_coding_system): Likewise.
10319
10320 2008-04-03 Jason Rumney <jasonr@gnu.org>
10321
10322 * w32uniscribe.c: New file.
10323
10324 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10325
10326 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10327
10328 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10329 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10330 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10331 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10332 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10333 (Qphonetic): New symbols.
10334 (syms_of_w32font): Initialize them.
10335 (font_supported_scripts): Use them.
10336 (w32font_list_family): List all charsets.
10337 (w32font_text_extents, recompute_cached_metrics): Fix metric
10338 calculations.
10339 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10340 Give opentype fonts their own format.
10341 (font_matches_spec): New arguments backend and logfont.
10342 Handle :otf spec for uniscribe backend.
10343 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10344 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10345
10346 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10347 font backend.
10348 (globals_of_w32fns): Initialize uniscribe font backend.
10349
10350 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10351 dependencies.
10352 (w32uniscribe.$(O)): New file to build.
10353 (FONT_OBJ): Include w32uniscribe.$(O).
10354 (LIBS): Add uniscribe libraries.
10355
10356 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10357
10358 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
10359
10360 * callint.c (Vshift_select_mode): New var.
10361 (Finteractive): Document new ^ spec.
10362 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10363 is present.
10364
10365 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10366 (command_loop_1): Avoid running the direct display versions of
10367 forward-char and backward-char if shift-selection may occur.
10368 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10369 shift-translation takes place.
10370
10371 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10372 avoid clobbering by define-minor-mode.
10373
10374 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10375 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10376
10377 * syntax.c (Fforward_word): Add ^ interactive spec.
10378
10379 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10380 (Fscroll_right): Add ^ interactive spec.
10381
10382 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10383
10384 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10385
10386 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10387
10388 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10389
10390 2008-03-31 Juri Linkov <juri@jurta.org>
10391
10392 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10393
10394 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10395
10396 * gtkutil.c (xg_set_geometry): Fix indentation.
10397 (xg_resize_outer_widget): Remove.
10398 (x_wm_size_hint_off): Fix indentation.
10399 (xg_frame_set_char_size): Call flush_and_sync after
10400 gtk_window_resize.
10401 (x_wm_set_size_hint): Pass NULL as geometry window to
10402 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10403 Add menu bar and tool bar height to base height.
10404 (xg_update_frame_menubar, free_frame_menubar)
10405 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10406 (update_frame_tool_bar, free_frame_tool_bar):
10407 Change xg_resize_outer_widget to xg_frame_set_char_size.
10408
10409 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
10410
10411 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10412 (Fdbus_call_method): New parameter TIMEOUT.
10413 (dbus-send-signal): Optimize UNGCPRO call.
10414
10415 2008-03-29 Juri Linkov <juri@jurta.org>
10416
10417 * window.c (Fdisplay_buffer): Move call to
10418 Vsplit_window_preferred_function out of conditions that check
10419 if window is eligible for vertical splitting.
10420 When Vsplit_window_preferred_function is non-nil, call it and use
10421 its non-nil return value as window. Otherwise, continue doing
10422 vertical splitting using Fsplit_window with arg horflag=nil.
10423 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10424 default value from `split-window' to nil.
10425
10426 2008-03-29 Juri Linkov <juri@jurta.org>
10427
10428 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10429 for interactive code letters 'b' and 'B'.
10430
10431 2008-03-29 Eli Zaretskii <eliz@gnu.org>
10432
10433 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10434 multibyte string.
10435
10436 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10437
10438 * keyboard.c (pending_funcalls): New var.
10439 (timer_check): Run it.
10440 (syms_of_keyboard): Initialize it.
10441 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10442 (Vdelete_terminal_functions): New vars.
10443 (syms_of_terminal): Initialize them.
10444 (Fdelete_terminal): Run delete-terminal-functions.
10445 * xdisp.c (safe_eval): Rewrite.
10446 (safe_call2): New fun.
10447 * frame.c (Qdelete_frame_functions): New var.
10448 (syms_of_frame): Initialize it.
10449 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10450 * lisp.h (safe_call2, pending_funcalls): Declare.
10451
10452 2008-03-28 Andreas Schwab <schwab@suse.de>
10453
10454 * indent.c (Fmove_to_column): Move declaration before statements.
10455
10456 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10457
10458 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10459 (struct frame): Use bit fields for boolean vars.
10460
10461 * process.c (server_accept_connection): Simplify naming.
10462 (emacs_get_tty_pgrp): Use SDATA.
10463
10464 * coding.c (decode_coding_object): Fix last change.
10465
10466 2008-03-27 Jason Rumney <jasonr@gnu.org>
10467
10468 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10469
10470 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10471
10472 * charset.c (Fdefine_charset_internal): Change the way of
10473 registering charsets in Vcharset_order_list.
10474 (syms_of_charset): Make the charset `eight-bit' supplementary.
10475
10476 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10477
10478 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10479 operations, to avoid having the difference between pointers
10480 overflow.
10481
10482 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10483
10484 * indent.c (check_display_width): New fun.
10485 (scan_for_column): Use it.
10486
10487 * data.c (syms_of_data): Mark most-positive-fixnum and
10488 most-negative-fixnum as constants.
10489
10490 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10491
10492 * indent.c (scan_for_column): Extract from current_column_1.
10493 Merge with the same code from Fmove_to_column.
10494 (current_column_1, Fmove_to_column): Use it.
10495
10496 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10497
10498 * keymap.c (map_keymap_internal): New fun.
10499 (map_keymap): Use it.
10500 (Fmap_keymap_internal): New fun.
10501 (Fmap_keymap): Remove left-out test from before make_save_value.
10502
10503 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10504
10505 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10506 Use XCAR/XCDR.
10507
10508 * process.h (struct Lisp_Process): Remove filter_multibyte.
10509 * process.c (QCfilter_multibyte): Remove.
10510 (setup_process_coding_systems): Don't use filter_multibyte.
10511 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10512 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10513 (Fset_process_filter_multibyte): Change the coding-system to
10514 approximate the previous behavior.
10515 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10516 coding-system.
10517
10518 * coding.c (decode_coding_object): When not decoding into a buffer,
10519 obey the coding system's preference of (uni|multi)byte.
10520
10521 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10522
10523 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10524 every char is changed and has a different byte-length.
10525 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10526 Fix int -> EMACS_INT.
10527
10528 2008-03-23 David Hansen <david.hansen@gmx.net>
10529
10530 * dbusbind.c (xd_read_message): Remove extra copying of message
10531 strings. Check for NULL `interface' or `member'.
10532
10533 2008-03-22 Eli Zaretskii <eliz@gnu.org>
10534
10535 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10536 cFileName a file name that includes `?' characters, use the 8+3
10537 alias in cAlternateFileName instead.
10538
10539 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10540
10541 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10542
10543 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10544
10545 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10546 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10547 work on current_buffer only instead (that was already the case
10548 for some of the code anyway).
10549 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10550 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10551 (SET_PT, SET_PT_BOTH): Adjust.
10552 * intervals.h (set_point, temp_set_point, set_point_both)
10553 (temp_set_point_both): Remove redundant declarations.
10554
10555 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10556
10557 * fileio.c (Finsert_file_contents):
10558 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10559 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10560 when buffer != current_buffer anyway.
10561
10562 2008-03-20 Andreas Schwab <schwab@suse.de>
10563
10564 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10565 as default.
10566
10567 2008-03-19 Jason Rumney <jasonr@gnu.org>
10568
10569 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10570 (syms_of_w32fns): Initialize them.
10571 (HOURGLASS_ID): New constant.
10572 (x_window_to_frame): Don't check hourglass_window.
10573 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10574 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10575 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10576 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10577 Only change the cursor if hourglass is not active.
10578 (Fx_create_frame): Initialize frame's current_cursor.
10579 (hourglass_atimer): Remove.
10580 (hourglass_started): New function.
10581 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10582 (show_hourglass): Adapt to w32, changing argument to frame.
10583
10584 * w32term.h (struct w32_output): Remove hourglass_window.
10585 Add current_cursor.
10586
10587 * eval.c (call_debugger, Fsignal):
10588 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10589 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10590 (Fexecute_extended_command, cancel_hourglass_unwind):
10591 * minibuf.c (read_minibuf):
10592 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10593
10594 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10595
10596 * window.c (run_funs): New fun.
10597 (run_window_configuration_change_hook): Use it to run the buffer-local
10598 and the global part of the hook.
10599
10600 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10601 (unwind_format_mode_line): Restore selected window.
10602 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10603
10604 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10605
10606 * editfns.c (Fchar_equal): Check they are valid characters.
10607
10608 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10609
10610 2008-03-17 Andreas Schwab <schwab@suse.de>
10611
10612 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10613 against a charset.
10614
10615 * lisp.h (Fbuffer_list): Declare.
10616
10617 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
10618
10619 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10620 handlebox_widget is != 0.
10621
10622 2008-03-16 Juri Linkov <juri@jurta.org>
10623
10624 * callint.c (Fcall_interactively): For interactive code letters
10625 'b' and 'B' put the buffer list into the list of default "future"
10626 values of the minibuffer.
10627
10628 2008-03-16 Andreas Schwab <schwab@suse.de>
10629
10630 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10631 modifiers.
10632
10633 * regex.c (re_match_2_internal): Correct matching of a charset
10634 against latin-1 characters.
10635
10636 2008-03-16 Kenichi Handa <handa@m17n.org>
10637
10638 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10639 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10640 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10641 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10642 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10643 CHAR_STRING_ADVANCE.
10644 (produce_chars): Fix for the case that the source and the
10645 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10646 instead of CHAR_STRING_ADVANCE.
10647 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10648 STRING_CHAR_ADVANCE.
10649
10650 2008-03-15 Andreas Schwab <schwab@suse.de>
10651
10652 * regex.c (re_match_2_internal): Correct matching of eight bit
10653 characters in unibyte strings.
10654
10655 2008-03-15 Martin Rudalics <rudalics@gmx.at>
10656
10657 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10658 at end of range when it coincides with the end of the buffer.
10659
10660 2008-03-14 Eli Zaretskii <eliz@gnu.org>
10661
10662 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10663
10664 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10665
10666 2008-03-14 Jason Rumney <jasonr@gnu.org>
10667
10668 * editfns.c (initial_tz): New variable.
10669 (syms_of_editfns): Initialize it.
10670 (Fset_time_zone_rule): Set it when first called.
10671 Use it when TZSTRING is nil.
10672
10673 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10674 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10675 (monitor_from_point_fn, get_monitor_info_fn): New globals.
10676 (globals_of_w32fns): Initialize them.
10677 (compute_tip_xy): Use them to position tooltips.
10678
10679 2008-03-14 Glenn Morris <rgm@gnu.org>
10680
10681 * emacs.c (main): Revert previous change.
10682 (standard_args): Revert -internal-script back to -scriptload,
10683 and remove the long-option form.
10684
10685 2008-03-13 Glenn Morris <rgm@gnu.org>
10686
10687 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
10688 Remove option -enable-font-backend.
10689
10690 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10691
10692 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
10693
10694 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
10695
10696 * xterm.c (x_connection_closed): For GTK: If this is the last
10697 terminal just exit without closing the display.
10698
10699 2008-03-11 Jason Rumney <jasonr@gnu.org>
10700
10701 * w32font.c (w32font_full_name): Use floor to round.
10702
10703 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
10704
10705 * sound.c (alsa_configure): Declare vol at beginning of block.
10706
10707 * fontset.c (Ffontset_info): Remove extra semicolon.
10708
10709 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10710
10711 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
10712 size of resulting string.
10713
10714 2008-03-10 Jason Rumney <jasonr@gnu.org>
10715
10716 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
10717
10718 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10719
10720 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
10721 Don't pretend as if characters with display property haven't been
10722 consumed for string-replacing-string case.
10723
10724 2008-03-08 Kim F. Storm <storm@cua.dk>
10725
10726 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
10727 (get_next_display_element, next_element_from_string)
10728 (next_element_from_ellipsis, next_element_from_buffer): Use it.
10729
10730 2008-03-08 Andreas Schwab <schwab@suse.de>
10731
10732 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
10733
10734 2008-03-06 Jason Rumney <jasonr@gnu.org>
10735
10736 * w32font.c (w32_registry): Take font_type argument. Use ANSI
10737 when charset not specified. Only translate ANSI to unicode when
10738 font_type is truetype.
10739 (w32font_coverage_ok): New function.
10740 (add_font_entity_to_list): Use it to filter unsuitable fonts.
10741
10742 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
10743
10744 * lread.c (Fread_char): Resolve modifiers.
10745 (Fread_char_exclusive): Likewise.
10746
10747 * character.c (char_resolve_modifier_mask): New function.
10748 (char_string): Use char_resolve_modifier_mask.
10749 (Fchar_resolve_modifiers): New function.
10750 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
10751 function.
10752
10753 2008-03-04 Jason Rumney <jasonr@gnu.org>
10754
10755 * makefile.w32-in: Always include w32font.c in the build.
10756 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
10757
10758 2008-03-04 Andreas Schwab <schwab@suse.de>
10759
10760 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
10761 (versionclean): Likewise.
10762
10763 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
10764
10765 * .cvsignore: Add oo.
10766
10767 2008-03-03 Andreas Schwab <schwab@suse.de>
10768
10769 * coding.c (decode_coding_object): Inhibit gap shrinking while
10770 decoding in place.
10771
10772 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
10773
10774 * w32term.c: Remove unused include "gnu.h".
10775 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
10776
10777 * gnu.h: Rename to ...
10778 * emacs-icon.h: ... this.
10779 * xterm.c: Use emacs-icon.h instead of gnu.h.
10780 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
10781
10782 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
10783
10784 * w32font.c: Include math.h.
10785
10786 2008-03-03 Jason Rumney <jasonr@gnu.org>
10787
10788 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
10789 Compute options separately.
10790 (w32font_open_internal): Set glyph_idx before caching metrics.
10791
10792 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
10793 Define if system headers don't.
10794 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
10795 (w32font_encode_char): Don't declare here.
10796
10797 * w32font.c (Quniscribe, QCformat): New symbols.
10798 (syms_of_w32font): Define them.
10799 (w32font_has_char): Indicate uncertainty.
10800 (w32font_encode_char): Encode as glyph point. Make static.
10801 (recompute_cached_metrics): New function.
10802 (w32font_open_internal): Use it. Set font to use glyph points
10803 initially. Set format based on type of font.
10804 (w32font_text_extents, w32font_draw): Optionally use glyph points.
10805 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
10806 on it. Set format based on information available here.
10807 (add_font_entity_to_list): Identify backend based on opentype_only.
10808
10809 2008-03-02 Andreas Schwab <schwab@suse.de>
10810
10811 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
10812
10813 * coding.c (decode_coding_big5, produce_chars):
10814 Fix typos in last change.
10815
10816 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
10817
10818 * gnu.h: New icon.
10819
10820 2008-03-02 Kenichi Handa <handa@m17n.org>
10821
10822 * coding.c (decode_coding_utf_8): When eol-type of CODING is
10823 `dos', don't decode '\r' if that is the last in the source.
10824 (decode_coding_utf_16, decode_coding_emacs_mule)
10825 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10826 (decode_coding_raw_text, decode_coding_charset): Likewise.
10827 (produce_chars): Don't decode EOL here. Use EMACS_INT.
10828
10829 2008-03-01 Jason Rumney <jasonr@gnu.org>
10830
10831 * w32font.c (w32font_full_name): Report point size for scalable fonts.
10832
10833 2008-03-01 Kim F. Storm <storm@cua.dk>
10834
10835 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
10836
10837 2008-03-01 Jason Rumney <jasonr@gnu.org>
10838
10839 * w32font.c (w32font_full_name): New function.
10840 (w32font_open_internal): Use it.
10841
10842 2008-03-01 Kim F. Storm <storm@cua.dk>
10843
10844 * dispnew.c (line_draw_cost): Fix invalid glyph check.
10845
10846 2008-03-01 Jason Rumney <jasonr@gnu.org>
10847
10848 * font.c (font_unparse_fcname): Increase len when style is a symbol.
10849
10850 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
10851
10852 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
10853 xg_frame_resized when the event is for the edit widget.
10854
10855 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
10856
10857 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
10858 set_char_size.
10859 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
10860 operations on widgets here. Just set frame size if needed.
10861 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
10862 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
10863 (x_wm_set_size_hint): Set size hints on the edit widget only, not
10864 the whole frame.
10865 (xg_create_tool_bar): Move attachment of the tool bar to
10866 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
10867 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
10868
10869 2008-03-01 Jason Rumney <jasonr@gnu.org>
10870
10871 * w32fns.c (w32_msg_pump): Disable debug code.
10872
10873 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10874
10875 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
10876
10877 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
10878
10879 * xdisp.c (next_overlay_string): Don't set
10880 overlay_strings_at_end_processed_p if we're currently reading from
10881 a display string.
10882
10883 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
10884
10885 * xdisp.c (get_overlay_strings_1): Fix typo.
10886
10887 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * xdisp.c (get_overlay_strings_1): Add missing argument type.
10890
10891 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
10892
10893 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
10894
10895 * xdisp.c (display_mode_element): Cancel the previous change.
10896 (decode_mode_spec): Likewise.
10897 (handle_auto_composed_prop): Don't make composition if it->string
10898 is a string.
10899
10900 2008-02-27 Kim F. Storm <storm@cua.dk>
10901
10902 * lisp.h (GLYPH): Change type from int to struct with separate char
10903 and face_id members.
10904 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
10905 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
10906 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
10907 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
10908 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
10909 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
10910 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
10911 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
10912 handle new Lisp glyph code encoding, either an integer or a cons.
10913
10914 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
10915 (GLYPH_ALIAS): Delete.
10916 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
10917 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
10918 (GLYPH_FROM_CHAR): Replace macro by ...
10919 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
10920
10921 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
10922 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
10923 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
10924 (GLYPH_INVALID_P): New macro.
10925 (spec_glyph_lookup_face): Update prototype.
10926
10927 * dispnew.c (line_draw_cost): Adapt to new glyph type.
10928 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
10929 new glyph code encoding.
10930 (spec_glyph_lookup_face): No return value; update passed glyph instead.
10931 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
10932
10933 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10934 Adapt to new glyph type and new glyph code encoding.
10935
10936 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
10937
10938 * indent.c (current_column, current_column_1, Fmove_to_column)
10939 (compute_motion): Adapt to new glyph code encoding.
10940
10941 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
10942
10943 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
10944
10945 * process.c (wait_reading_process_output): Check for window
10946 changes caused by timers.
10947 Suggested by Johan Bockgård.
10948
10949 2008-02-27 Glenn Morris <rgm@gnu.org>
10950
10951 * emacs.c (USAGE1): Add `--disable-font-backend'.
10952
10953 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
10954
10955 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
10956 is made to the buffer.
10957
10958 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
10959
10960 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
10961 (face_at_string_position):
10962 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
10963 (face_at_string_position):
10964 * xdisp.c (display_string, next_overlay_change):
10965 * buffer.h (overlays_at):
10966 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
10967 Update callers.
10968
10969 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
10970
10971 * editfns.c (Fformat): Doc fix.
10972
10973 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
10974
10975 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
10976 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
10977 (Ffont_otf_alternates, Fquery_font): Doc fixes.
10978
10979 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10980
10981 * buffer.c (Fbuffer_swap_text): New function.
10982 (syms_of_buffer): Defsubr it.
10983
10984 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
10985
10986 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
10987
10988 2008-02-25 Jason Rumney <jasonr@gnu.org>
10989
10990 * w32font.c (w32font_draw): Draw one character at a time when padding.
10991
10992 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10993
10994 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
10995 Handle a nil arg. Use run_window_configuration_change_hook.
10996 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
10997 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
10998 Use run_window_configuration_change_hook.
10999
11000 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11001
11002 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11003 1-pixel width.
11004
11005 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11006
11007 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11008 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11009 if the glyph in the font is zero pixel with.
11010
11011 * dispextern.h (struct glyph_string): New member padding_p.
11012
11013 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11014
11015 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11016
11017 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11018
11019 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11020
11021 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11022
11023 2008-02-25 Jason Rumney <jasonr@gnu.org>
11024
11025 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11026
11027 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11028
11029 Allow fine-grained image-cache flushing.
11030 * dispextern.h (struct image): Add `dependencies' field.
11031 (clear_image_caches): Change arg to Lisp_Object.
11032 * image.c (make_image): Initialize `dependencies' field.
11033 (clear_image_cache): Change arg to allow fine-grained flushing.
11034 Perform the flush even if image-cache-eviction-delay is nil.
11035 (clear_image_caches): Change arg to Lisp_Object.
11036 (Fclear_image_cache): Expand meaning of the argument.
11037 (mark_image): Mark `dependencies' field.
11038 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11039 (lface_hash): Use XHASH rather than XFASTINT.
11040 (face_at_buffer_position): Fix int -> EMACS_INT position.
11041 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11042 (select_frame_for_redisplay): Remove code duplication.
11043 (redisplay_internal): Adapt arg to call to clear_image_caches.
11044
11045 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11046
11047 * s/vms4-0.h:
11048 * s/vms4-2.h:
11049 * s/vms4-4.h:
11050 * s/vms5-5.h: Remove, unused.
11051
11052 * s/irix5-2.h:
11053 * s/irix6-0.h:
11054 * s/riscos5.h:
11055 * s/mach-bsd4-3.h:
11056 * m/mips4.h: Remove files for obsolete systems.
11057
11058 * Makefile.in:
11059 * filelock.c:
11060 * unexmips.c:
11061 * m/hp9000s300.h:
11062 * m/iris4d.h:
11063 * s/aix3-1.h:
11064 * s/hpux.h:
11065 * s/msdos.h:
11066 * s/usg5-0.h:
11067 * s/usg5-2-2.h:
11068 * s/usg5-2.h:
11069 * s/usg5-3.h: Remove references to obsolete variables.
11070
11071 * s/irix5-0.h: Remove, move all the contents ...
11072 * s/irix6-5.h: ... here. Simplify.
11073 * config.in: Regenerate.
11074
11075 2008-02-24 Jason Rumney <jasonr@gnu.org>
11076
11077 * w32term.c (x_draw_glyph_string_background): Clear the background
11078 manually when cleartype is in use.
11079 (x_draw_glyph_string_foreground): Draw text transparently when
11080 cleartype is in use.
11081
11082 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11083 a font into it unless we have to.
11084
11085 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11086
11087 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11088 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
11089
11090 2008-02-18 Jason Rumney <jasonr@gnu.org>
11091
11092 * w32fns.c (Fw32_shell_execute): Encode parameters.
11093
11094 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11095
11096 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11097
11098 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
11099
11100 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11101
11102 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11103
11104 * xterm.c (x_set_offset): Don't change the gravity if
11105 CHANGE_GRAVITY is -1.
11106
11107 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
11108
11109 * fileio.c (auto_save_error_occurred): New var.
11110 (auto_save_error): Set it.
11111 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11112 error occurred.
11113
11114 2008-02-23 Eli Zaretskii <eliz@gnu.org>
11115
11116 * w32.c (globals_of_w32): Add initializations for
11117 g_b_init_get_sid_sub_authority and
11118 g_b_init_get_sid_sub_authority_count.
11119
11120 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11121
11122 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11123 (font_parse_xlfd): Use them for sanity check.
11124 (Finternal_set_font_style_table): Make sure the table is bijective.
11125
11126 Consolidate the image_cache to the terminal struct.
11127 * termhooks.h (P_): Remove redundant def.
11128 (struct terminal): New field `image_cache'.
11129 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11130 of FRAME_X_IMAGE_CACHE.
11131 * xterm.h (struct x_display_info): Remove image_cache field.
11132 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11133 * w32term.h (struct w32_display_info): Remove image_cache field.
11134 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11135 * macterm.h (struct mac_display_info): Remove image_cache field.
11136 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11137 * xterm.c (x_term_init):
11138 * w32term.c (w32_term_init):
11139 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11140 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11141 Remove declarations.
11142 (clear_image_caches, mark_image_cache): New declarations.
11143 * xfaces.c (clear_face_cache):
11144 * xdisp.c (redisplay_internal): Use clear_image_caches.
11145 * image.c (clear_image_cache): Don't check that a frame is on
11146 a window-system before checking if it shares the same cache.
11147 (clear_image_caches): New function.
11148 (Fclear_image_cache): Use it.
11149 (mark_image): Move from allo.c.
11150 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11151 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11152 (mark_object): Don't call mark_image_cache for frames.
11153 (mark_terminals): Call mark_image_cache.
11154
11155 * lisp.h (Fdelete_terminal): Declare.
11156
11157 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11158 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11159 wrong_type_argument.
11160
11161 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11162
11163 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11164 malayalam.el, and tamil.el. Add sinhala.el.
11165
11166 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11167
11168 * xterm.c (x_connection_closed): Consolidate identical tests.
11169 (x_delete_terminal): Don't crash if called via x_connection_closed.
11170
11171 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11172
11173 * xdisp.c (decode_mode_spec): New arg string.
11174 (display_mode_element): Adjust for the above change.
11175
11176 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11177
11178 * callint.c (Fcall_interactively): Use AREF.
11179
11180 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11181
11182 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11183
11184 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11185
11186 * xfns.c (Fx_show_tip): Set string to " " if empty.
11187
11188 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11189
11190 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11191 with Qt.
11192
11193 2008-02-17 Kenichi Handa <handa@m17n.org>
11194
11195 * ftfont.c (ftfont_shape): Return Lispy number.
11196
11197 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11198 for GCs.
11199 (Finternal_set_font_selection_order): Call font_update_sort_order
11200 only when enable_font_backend is set.
11201 (realize_x_face): Set face->font_info to that of default face only
11202 when enable_font_backend is set.
11203
11204 * xdisp.c (handle_composition_prop): Set it->c to the fist
11205 character of the composed region.
11206 (fill_composite_glyph_string): Set base_face->font_info to
11207 s->font_info. Get a face for ascii from base_face->ascii_face.
11208 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11209 with a face already decided.
11210 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11211 non-negative.
11212 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11213 call font_prepare_composition unconditionally.
11214
11215 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11216
11217 * xterm.h (struct x_display_info): New member font.
11218
11219 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11220 (x_set_mouse_face_gc, x_new_font): Likewise.
11221 (x_term_init): Setup display_info->font.
11222 (x_delete_terminal): Free display_info->font.
11223
11224 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11225
11226 * ftxfont.c (ftxfont_default_fid): Delete it.
11227 (ftxfont_open): Set xfont->fid to 0.
11228 (ftxfont_end_for_frame): Clear data specific to the frame and the
11229 font-driver.
11230
11231 * xftfont.c (xftfont_default_fid): Delete it.
11232 (xftfont_open): Set xfont->fid to 0.
11233
11234 * fontset.c (FONTSET_OBJLIST): New macro.
11235 (fontset_find_font): Update font-object list of the fontset.
11236 (free_realized_fontset): New function.
11237 (free_face_fontset): Call free_realized_fontset.
11238 (Ffont_info): Call font_close_object only when enable_font_backend
11239 is set.
11240
11241 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11242 [HAVE_NTGUI]: Include w32term.h.
11243 [MAC_OS]: Include macterm.ch.
11244 (font_otf_ValueRecord): Use make_number.
11245 (font_finish_cache): Fix handling of reference count.
11246 (font_clear_cache): Update num_fonts.
11247 (font_open_entity): Update smallest_char_width and
11248 smallest_font_height of the frame.
11249 (font_close_object): Update num_fonts.
11250 (Fclear_font_cache): Fix finding the target cache data.
11251
11252 2008-02-16 Glenn Morris <rgm@gnu.org>
11253
11254 * fontset.c (Finternal_char_font): Fix compilation warning.
11255
11256 2008-02-16 Eli Zaretskii <eliz@gnu.org>
11257
11258 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11259 instead of char arrays. Enlarge the size of array passed to
11260 get_token_information.
11261
11262 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11263 warnings.
11264
11265 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11266
11267 * .gdbinit: Don't set `args', it breaks gdb --args.
11268
11269 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11270
11271 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11272 within a narrowed buffer.
11273
11274 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11275
11276 * coding.c (decode_coding_object, encode_coding_object):
11277 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11278
11279 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11280
11281 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11282 hardcoding 1.
11283 (detect_coding_system):
11284 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11285 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11286 * insdel.c (insert_from_gap):
11287 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11288 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11289 (string_to_multibyte):
11290 * character.c (chars_in_text, multibyte_chars_in_text):
11291 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11292
11293 * character.h (FETCH_STRING_CHAR_ADVANCE)
11294 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11295 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11296 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11297
11298 * casefiddle.c (casify_region): Only call after-change and composition
11299 functions on the part of the region that was changed.
11300
11301 * keyboard.c (read_avail_input):
11302 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11303
11304 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11305
11306 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11307 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11308
11309 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
11310
11311 * w32menu.c (push_submenu_start, push_submenu_end)
11312 (push_left_right_boundary, push_menu_pane, push_menu_item):
11313 * keyboard.c (read_key_sequence): Don't pass args with side effects
11314 to AREF, it fails when compiling with -DENABLE_CHECKING.
11315
11316 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11317
11318 * Makefile.in (${lispsource}international/charprop.el):
11319 Delete this target.
11320
11321 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11322 emacs-unicode-2.
11323
11324 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11325
11326 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11327
11328 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11329
11330 * frame.c (Qnoelisp): New symbol.
11331 (syms_of_frame): Initialize it.
11332 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11333 harmless Elisp code, from a strong `force' from x_connection_closed.
11334 * frame.h (Qnoelisp): Declare.
11335 * xterm.c (x_connection_closed): Pass `noelisp'.
11336
11337 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11338 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11339 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11340 rather than `int' for the type of `type'.
11341
11342 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11343
11344 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11345
11346 * Makefile.in (GNUC): Remove support for gcc-1.x.
11347
11348 2008-02-10 Richard Stallman <rms@gnu.org>
11349
11350 * lisp.h (ASET): Use AREF, not ASLOT.
11351
11352 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11353
11354 * lisp.h (ASET): Check bounds.
11355
11356 2008-02-10 Glenn Morris <rgm@gnu.org>
11357
11358 * buffer.c (mode-name): Doc fix.
11359
11360 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11361
11362 * Makefile.in:
11363 * emacs.c:
11364 * gmalloc.c:
11365 * keyboard.c:
11366 * lisp.h:
11367 * m/ibm370aix.h:
11368 * process.c:
11369 * regex.c:
11370 * s/hpux.h:
11371 * sysdep.c:
11372 * sysselect.h:
11373 * systty.h:
11374 * unexec.c:
11375 * w32term.c:
11376 * xsmfns.c:
11377 * xterm.c: Remove code that deals with obsolete variables.
11378
11379 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11380
11381 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11382 nothing else needs it anymore.
11383
11384 2008-02-09 Eli Zaretskii <eliz@gnu.org>
11385
11386 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11387 instead of unibyte_char_to_multibyte.
11388
11389 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11390
11391 * s/gnu-linux.h: Remove commented out code.
11392
11393 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11394
11395 * Makefile.in: Update what RMS says about using autoconf.
11396 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11397 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11398 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11399 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11400
11401 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11402
11403 * keymap.c (Fkey_description): Move side effect outside of macro call.
11404
11405 * xfaces.c (Finternal_make_lisp_face):
11406 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11407
11408 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11409 (syms_of_fontset): Use ASET.
11410
11411 * fns.c (concat): Move side effect outside of macro call.
11412 (hash_clear): Use ASET.
11413
11414 2008-02-08 Richard Stallman <rms@gnu.org>
11415
11416 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11417 If FORCE, and frame has a surrogate minibuffer for another frame,
11418 delete the other frame first.
11419
11420 2008-02-07 Timo Savola <timo.savola@iki.fi>
11421
11422 * xterm.c (x_detect_focus_change): Handle embed client message.
11423 (handle_one_xevent): Ditto.
11424 (handle_one_xevent): If embedded and we get a button press/release,
11425 request focus.
11426 (xembed_set_info, xembed_send_message): New functions.
11427 (x_make_frame_visible): Call xembed_set_info if embedded.
11428 (x_make_frame_invisible): Call xembed_set_info if embedded.
11429 (x_term_init): Initialize Xatom_XEMBED.
11430 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11431 (x_iconify_frame): Ditto.
11432
11433 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11434 (enum xembed_info, enum xembed_message, enum xembed_focus)
11435 (enum xembed_modifier, enum xembed_accelerator): New.
11436 (xembed_set_info, xembed_send_message): Declare.
11437 (FRAME_X_EMBEDDED_P): New.
11438
11439 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11440 gtk_plug_new.
11441
11442 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11443 window ID of a frame.
11444 (x_window): Reparent frame if embedded.
11445 (Fx_create_frame): Don't set border width if embedded.
11446
11447 * emacs.c (USAGE3): Add --parent-id.
11448 (standard_args): Ditto.
11449
11450 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11451
11452 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11453
11454 2008-02-07 Jim Meyering <meyering@redhat.com>
11455
11456 Use "do...while (0)", not "if (1)...else" in macro definitions.
11457 The latter provokes a warning from gcc about the empty else, when
11458 followed by ";". Also, without that trailing semicolon, it would
11459 silently swallow up any following statement.
11460 * syntax.h (SETUP_SYNTAX_TABLE)
11461 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11462 * buffer.h (DECODE_POSITION): Likewise.
11463 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11464 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11465 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11466 (FETCH_CHAR_ADVANCE): Likewise.
11467 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11468
11469 2008-02-07 Jim Meyering <meyering@redhat.com>
11470
11471 * lread.c [lint]: Don't include <sys/inode.h>.
11472
11473 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11474
11475 * xselect.c (x_handle_dnd_message):
11476 * xmenu.c (digest_single_submenu, xmenu_show):
11477 * xdisp.c (with_echo_area_buffer_unwind_data)
11478 (format_mode_line_unwind_data, unwind_format_mode_line)
11479 (display_menu_bar):
11480 * eval.c (Ffetch_bytecode):
11481 * doc.c (store_function_docstring):
11482 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11483 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11484 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11485
11486 2008-02-07 Kenichi Handa <handa@m17n.org>
11487
11488 * ftxfont.c (ftxfont_open): Don't set
11489 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11490
11491 * ftfont.c (ftfont_open): Fix previous change.
11492
11493 2008-02-06 Jason Rumney <jasonr@gnu.org>
11494
11495 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11496 Use cached metrics for ASCII characters.
11497 (w32font_open_internal): Don't set font's owning_frame.
11498 Cache metrics for ASCII characters.
11499
11500 * w32font.h (struct w32font_info): Add ascii_metrics.
11501 Remove owning_frame.
11502
11503 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11504
11505 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11506 to negative value.
11507
11508 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11509
11510 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11511
11512 * charset.c (syms_of_charset): Set QCtest and Qeq.
11513
11514 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11515
11516 * process.c (Fstart_process):
11517 * callproc.c (Fcall_process): Handle the case where
11518 Funhandled_file_name_directory returns nil.
11519
11520 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11521 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11522 * font.c (check_gstring): Use them and AREF to access the vector before
11523 we know it's really a gstring.
11524 (Ffont_shape_text): Fix typo.
11525 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
11526
11527 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11528 Declare.
11529
11530 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11531
11532 2008-02-05 Jason Rumney <jasonr@gnu.org>
11533
11534 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11535 Set smallest_font_height and smallest_char_width in display info.
11536
11537 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11538
11539 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11540
11541 2008-02-05 Miles Bader <miles@gnu.org>
11542
11543 * xfaces.c (get_lface_attributes, merge_named_face)
11544 (lookup_named_face, lookup_derived_face, realize_named_face):
11545 Revert 2008-02-01 change by cyd@stupidchicken.com.
11546
11547 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11548
11549 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11550 fallback fonts.
11551 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11552
11553 2008-02-04 Jason Rumney <jasonr@gnu.org>
11554
11555 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11556 set full_name.
11557 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11558
11559 2008-02-03 Jason Rumney <jasonr@gnu.org>
11560
11561 * makefile.w32-in (OBJ1): Include font.o here.
11562 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11563
11564 2008-02-02 Jason Rumney <jasonr@gnu.org>
11565
11566 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11567
11568 2008-02-01 Jason Rumney <jasonr@gnu.org>
11569
11570 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11571
11572 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11573
11574 2008-02-01 Andreas Schwab <schwab@suse.de>
11575
11576 * Makefile.in (shortlisp, lisp): Update for rename of
11577 ../lisp/language/myanmar.el.
11578
11579 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
11580
11581 * xfaces.c (get_lface_attributes): Delete function.
11582 (merge_named_face, lookup_named_face, lookup_derived_face)
11583 (realize_named_face): Call lface_from_face_name directly, and use
11584 the fact that merge_face_vectors does not alter its FROM argument.
11585
11586 2008-02-01 Jason Rumney <jasonr@gnu.org>
11587
11588 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11589 input in the default locale. Handle non-Unicode multibyte input.
11590
11591 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11592
11593 * fontset.c (reorder_font_vector): Exclude nil elements from the
11594 font group. Don't try multiple fonts.
11595 (fontset_font): Adjust for the above change.
11596 (Finternal_char_font): Return nil if the found font doesn't
11597 contain the character ch.
11598
11599 * Makefile.in (lisp, shortlisp): Add cham.el.
11600
11601 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11602
11603 * font.h (FONTP): Make it return 1 also for a font-object.
11604
11605 * .gdbinit (xfontset): New function.
11606
11607 * font.c (font_find_for_lface): Check if the character C is
11608 supported or not only for the first font.
11609
11610 * fontset.c (reorder_font_vector): Fix typo.
11611 (fontset_find_font): Don't add a font-spec specifying a script.
11612 Use 0 (not Qt) for the indication of empty font-group. Change the
11613 format of RFONT-DEF. Return Qt if no font in the font-group
11614 support the character.
11615 (fontset_font): Adjust for the above change. If no font was
11616 found the character, remember that.
11617 (face_for_char): Adjust for the change of RFONT-DEF.
11618 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11619 no font for the target.
11620 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11621
11622 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11623
11624 * font.c (font_load_for_face): Handle the case that the font in
11625 face->lface is a string.
11626
11627 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11628
11629 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11630
11631 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11632
11633 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11634 Fix previous change. If the frame is not on a window system,
11635 signal an error.
11636
11637 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11638
11639 * coding.c (decode_coding_object, encode_coding_object): Adjust
11640 marker positions after conversion.
11641
11642 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11643
11644 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11645
11646 * font.c (font_find_for_lface): Fix the handling of the return
11647 value of font_has_char.
11648 (Ffont_shape_text): Fix previous change.
11649
11650 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11651 (fontset_ref_and_range): Delete it.
11652 (fontset_find_font): Call char_table_ref_and_range instead of
11653 FONTSET_REF_AND_RANGE.
11654 (make_fontset): Don't setup font groups of Latin here.
11655 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11656 (new_fontset_from_font): Make the specified font the default for
11657 all Latin characters.
11658
11659 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11660
11661 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11662 is on a window system before accessing the fontset of the frame.
11663
11664 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11665
11666 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11667
11668 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11669 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11670
11671 * font.c (Ffont_shape_text): If the font driver doesn't have a
11672 shaper function, make zero-width glyphs to have at least one-pixel
11673 width. Fix setting of `to' field of glyphs.
11674
11675 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11676
11677 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
11678 glyphs.
11679
11680 * font.h (struct font_driver): Improve docstring of member `shape'.
11681
11682 2008-02-01 Kenichi Handa <handa@m17n.org>
11683
11684 * composite.c (syms_of_composite): Fix docstring of
11685 auto-composition-function.
11686
11687 * font.h (LGLYPH_SIZE): New macro.
11688
11689 * font.c (Ffont_fill_gstring): Stop filling when a character not
11690 supported by the font is found.
11691 (Ffont_shape_text): When a shape callback function returns nil,
11692 try at most two more times with larger gstring.
11693 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
11694
11695 * xdisp.c (handle_auto_composed_prop): Change the argument to
11696 auto-composition-function.
11697
11698 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
11699 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
11700 Lispy glyph and store it in the lgstring.
11701
11702 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
11703
11704 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
11705
11706 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11707
11708 * font.c (Ffont_shape_text): Avoid unnecessary composition.
11709
11710 * fontset.c (Vfont_encoding_charset_alist): New variable.
11711 (syms_of_fontset): DEFVAR it.
11712 (reorder_font_vector, fontset_find_font): Optimize for the case of
11713 no need of reordering.
11714 (face_for_char): Map the charset property by
11715 Vfont_encoding_charset_alist.
11716
11717 2008-02-01 Jason Rumney <jasonr@gnu.org>
11718
11719 * w32font.c (logfonts_match): Don't check adstyle here.
11720 (font_matches_spec): Check here against physical font instead.
11721 (add_font_entity_to_list): Avoid some substitutions.
11722
11723 * font.c (font_parse_fcname): Default weight and slant to normal.
11724 (font_score): Prefer normal fonts if weight or slant unspecified.
11725 (font_score) [WINDOWSNT]: Scale weight difference down to closer
11726 match freetype scores.
11727
11728 2008-02-01 Jason Rumney <jasonr@gnu.org>
11729
11730 * w32font.c (w32font_text_extents): Don't use the frame stored in the
11731 font, as it may have been deleted.
11732 (w32_enumfont_pattern_entity): Map generic family to adstyle using
11733 most common hyphenless variation.
11734 (logfonts_match): Check generic family.
11735 (font_matches_spec): Don't check generic family here.
11736 (fill_in_logfont): Set generic family based on adstyle.
11737
11738 * w32font.h (w32font_get_cache): Update declaration.
11739
11740 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11741
11742 * ftfont.c (ftfont_get_cache): Adjust the argument type.
11743
11744 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
11745 If none of the new drivers are available, call font_update_drivers
11746 with the old drivers.
11747
11748 * w32font.c (w32font_get_cache): Adjust the argument type.
11749
11750 * xfont.c (xfont_get_cache): Adjust the argument type.
11751
11752 * font.h (struct font_driver): Change argument type of get_cache.
11753
11754 * xftfont.c (xftfont_start_for_frame): Delete prototype.
11755
11756 * font.c (Ffont_get): Fix arguments to Fassoc.
11757 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
11758 (font_clear_cache): New function.
11759 (font_list_entities, font_matching_entity): Use font_get_cache.
11760 (font_update_drivers): Call font_clear_cache when finishing a driver.
11761
11762 * fontset.c (fontset_find_font): Fix previous change.
11763
11764 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11765
11766 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
11767 dpyinfo->font_table.
11768 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
11769 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
11770
11771 * font.c (font_at): Handle the case that the arg C is negative.
11772 Handle the unibyte case.
11773 (Ffont_at): Call font_at with the arg C -1.
11774
11775 * xdisp.c (handle_auto_composed_prop): Don't get a character at
11776 the position here, and call font_at with the arg C -1.
11777 Don't check the range of the existing composition at the point.
11778
11779 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11780
11781 * fontset.c (fontset_add): New args charset_id and family.
11782 Change caller.
11783 (load_font_get_repertory, fontset_find_font): Assume that
11784 font_spec is always a font-spec object.
11785 (Fset_fontset_font): Always store a font-spec object in a fontset.
11786
11787 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
11788 instead of get_property_and_range.
11789
11790 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11791
11792 * xftfont.c (struct xftfont_info): Delete the member ft_face.
11793 (xftfont_open): Don't keep locking face.
11794 (xftfont_close): Don't unlock face.
11795 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
11796
11797 * fontset.c (fontset_find_font): Don't prefer a font of
11798 supplementary charset.
11799
11800 2008-02-01 Kenichi Handa <handa@m17n.org>
11801
11802 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
11803 script, langsys_tag to langsys, new member script.
11804 (OTF_TAG_STR): Terminate by '\0'.
11805 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
11806 listing to the script specified in that property. Fix arg to
11807 OTF_check_features.
11808
11809 2008-02-01 Jason Rumney <jasonr@gnu.org>
11810
11811 * w32font.h: New file.
11812
11813 * w32font.c: Include it.
11814 (struct w32font_info): Add owning_frame field. Move to w32font.h.
11815 (w32font_open): Set owning_frame.
11816 (w32font_text_extents): Use owning_frame.
11817 (struct font_callback_data): Add opentype_only field.
11818 (add_font_entity_to_list): Use it to filter fonts.
11819 Don't check against full name.
11820 (w32font_list_internal): New function.
11821 (w32font_list): Use it.
11822 (w32font_match_internal): New function.
11823 (w32font_match): Use it.
11824 (w32font_open_internal): New function.
11825 (w32font_open): Use it.
11826 (w32font_get_cache, w32font_close, w32font_has_char)
11827 (w32font_encode_char, w32font_text_extents, w32font_draw):
11828 Make non-static.
11829
11830 * makefile.w32-in (w32font.o): Depend on w32font.h.
11831
11832 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11833
11834 * charset.c (Fdefine_charset_internal): Record a supplementary
11835 charset at the tail of Vcharset_order_list.
11836
11837 * font.c (Ffont_shape_text): Fix the return value.
11838
11839 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
11840
11841 * xdisp.c (handle_auto_composed_prop): Fix previous change.
11842
11843 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11844
11845 * ftfont.c (struct OpenTypeSpec): New struct.
11846 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
11847 (ftfont_get_open_type_spec): New function.
11848 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
11849
11850 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
11851
11852 2008-02-01 Jason Rumney <jasonr@gnu.org>
11853
11854 * w32font.c (add_font_entity_to_list): Compare only the beginning
11855 of full name.
11856
11857 2008-02-01 Kenichi Handa <handa@m17n.org>
11858
11859 * xdisp.c (handle_auto_composed_prop): Simplify the code.
11860 Never return HANDLED_RECOMPUTE_PROPS.
11861
11862 2008-02-01 Kenichi Handa <handa@m17n.org>
11863
11864 * font.c (font_gstring_produce): Delete it.
11865
11866 * composite.h (COMPOSITION_METHOD):
11867 Handle COMPOSITION_WITH_GLYPH_STRING.
11868
11869 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11870
11871 * xfont.c (Qx): Delete.
11872 (syms_of_xfont): Don't initialize Qx.
11873
11874 * composite.h (enum composition_method):
11875 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
11876
11877 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11878
11879 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
11880 (choose_face_font): Accept new form of font-spec.
11881
11882 * frame.h (font_driver_list): Declare it unconditionally.
11883 (struct frame): Define members font_driver_list and font_data_list
11884 unconditionally.
11885
11886 * fontset.c: Include "font.h" unconditionally.
11887 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
11888 (Fset_fontset_font): Accept a font-spec object.
11889
11890 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
11891 PIXEL_SIZE part a wild card.
11892
11893 * dispextern.h (struct glyph_string): Define members clip and
11894 num_clips unconditionally.
11895 (struct face): Define members font_info and extra unconditionally.
11896
11897 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
11898 ftfont_info only when HAVE_LIBOTF is defined.
11899
11900 2008-02-01 Andreas Schwab <schwab@suse.de>
11901
11902 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
11903 and end.
11904
11905 2008-02-01 Jason Rumney <jasonr@gnu.org>
11906
11907 * w32font.c (w32font_driver): Add new fields.
11908
11909 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11910
11911 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
11912 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
11913 (LIBES): Add @M17N_FLT_CFLAGS@.
11914
11915 * composite.c (compose_text): Don't treat the new style
11916 composition specially.
11917
11918 * emacs.c (main): Call syms_of_font unconditionally.
11919
11920 * font.h (FONT_ENTITY_NOT_LOADABLE)
11921 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
11922 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
11923 (struct font_driver): New member shape.
11924 (font_registry_charsets): Extern it.
11925 (font_find_for_lface, font_prepare_composition): Adjust prototype.
11926 (font_otf_capability, font_drive_otf): Delete their externs.
11927
11928 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
11929 (font_charset_alist, font_registry_charsets): Move from xfont.c
11930 and rename.
11931 (font_prop_validate_otf): New function.
11932 (font_property_table): Register it for QCotf.
11933 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
11934 (font_drive_otf): Delete.
11935 (font_prepare_composition): New arg F. Adjust for the change of
11936 lispy gstring.
11937 (font_find_for_lface): New arg C.
11938 (font_load_for_face): Adjust for the change of font_find_for_lface.
11939 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
11940 lispy gstring.
11941 (Ffont_shape_text): New function.
11942 (Fopen_font): If the font size is not given, use 12-pixel.
11943 (Ffont_at): New arg STRING.
11944 (syms_of_font): Initalize font_charset_alist.
11945 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
11946 conditionally.
11947
11948 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
11949 fonts of the same font-spec. Change the format of RFONT-DEF.
11950 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
11951 Adjust for the change of RFONT-DEF.
11952 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
11953
11954 * ftfont.h: New file.
11955
11956 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
11957 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11958 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11959 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
11960 font_otf_capability and font_drive_otf, set ftfont_shape.
11961 (ftfont_list): Adjust for the change of :otf property value.
11962 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
11963 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
11964 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
11965 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11966 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
11967 (otf_gstring, gstring, m17n_flt_initialized): New variables.
11968
11969 * w32term.c (x_draw_composite_glyph_string_foreground):
11970 Adjust for the change of lispy gstring.
11971
11972 * xdisp.c (handle_composition_prop): Adjust for the change of
11973 lispy gstring. Call a function for auto-composition with the
11974 third arg it->window.
11975 (fill_composite_glyph_string): Adjust for the change of lispy string.
11976 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
11977
11978 * xfaces.c (set_font_frame_param): Adjust for the change of
11979 font_find_for_lface.
11980
11981 * xfont.c (x_font_charset_alist): Move to font.c and rename.
11982 (xfont_registry_charsets): Likewise. Change caller.
11983 (syms_of_xfont): Don't handle x_font_charset_alist.
11984
11985 * xftfont.c: Include "ftfont.h".
11986 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11987 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11988 (xftfont_close) [HAVE_LIBOTF]: Close otf.
11989 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11990 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
11991 Set xftfont_driver.shape to xftfont_shape.
11992
11993 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11994 the change of lispy gstring.
11995
11996 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11997
11998 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
11999
12000 2008-02-01 Jason Rumney <jasonr@gnu.org>
12001
12002 * w32font.c (w32font_draw): Fill background manually.
12003
12004 2008-02-01 Jason Rumney <jasonr@gnu.org>
12005
12006 * font.c (Qfontp): Remove unused symbol.
12007 (QCantialias): New symbol.
12008 (syms_of_font): Define it.
12009 (font_property_table): Set a validator for QCantialias.
12010
12011 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12012 Define if not already.
12013 (QCfamily): Share with xfaces.c.
12014 (Qstandard, Qsubpixel, Qnatural): New symbols.
12015 (syms_of_w32font): Define them. Don't define QCfamily here.
12016 (w32_antialias_type, lispy_antialias_type): New functions.
12017 (w32_enumfont_pattern_entity): New arg requested_font.
12018 Set antialias parameter if non-default was requested.
12019 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12020
12021 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12022
12023 * lread.c (read1): Undo the previous change.
12024
12025 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12026
12027 * frame.c (Fdelete_frame): Call font_update_drivers only when
12028 USE_FONT_BACKEND is defined.
12029
12030 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12031
12032 * font.h (struct font_bitmap): New member bits_per_pixel.
12033 (struct font_driver): New members start_for_frame and end_for_frame.
12034 (struct font_data_list): New struct.
12035 (font_put_frame_data, font_get_frame_data): Extern them.
12036
12037 * frame.h (struct frame): New member font_data_list.
12038
12039 * font.c (font_update_drivers): Call driver->start_for_frame and
12040 driver->end_for_frame at proper timings.
12041 (font_put_frame_data, font_get_frame_data): New functions.
12042 (Ffont_spec): Add usage in the docstring.
12043
12044 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12045 (Fdelete_frame): Call font_update_drivers.
12046
12047 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12048 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12049 (xftfont_get_xft_draw): New function.
12050 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12051 (xftfont_end_for_frame): New function.
12052 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12053
12054 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12055 Change argument. Cache GCs in the per-frame data.
12056 (struct ftxfont_frame_data): New struct.
12057 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12058 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12059 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12060 (ftxfont_end_for_frame): New function.
12061 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12062
12063 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12064
12065 2008-02-01 Kenichi Handa <handa@m17n.org>
12066
12067 * xselect.c (Vselection_coding_system)
12068 (Vnext_selection_coding_system): Delete them.
12069 (syms_of_xselect): Don't declare selection-coding-system and
12070 next-selection-coding-system. They are declared in select.el.
12071
12072 2008-02-01 Jason Rumney <jasonr@gnu.org>
12073
12074 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12075
12076 * w32fns.c: Include imm.h.
12077 (get_composition_string_fn, get_ime_context_fn): New optional
12078 system functions.
12079 (globals_of_w32fns): Load them from imm32.dll.
12080 (ignore_ime_char): New flag.
12081 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12082 WM_IME_ENDCOMPOSITION messages.
12083
12084 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12085 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12086
12087 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12088
12089 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12090 (READCHAR_REPORT_MULTIBYTE): New macro.
12091 (readchar): New 2nd arg MULTIBYTE.
12092 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12093 Make symbol's name multibyte according to the multibyteness of the
12094 source.
12095
12096 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12097
12098 * xfaces.c (face_for_overlay_string): Call lookup_face with
12099 correct arguments (fix of synching with the trunk).
12100
12101 2008-02-01 Kenichi Handa <handa@m17n.org>
12102
12103 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12104 (font_prop_validate_non_neg, font_prop_validate_spacing):
12105 Delete argument prop_index.
12106 (font_property_table): Change arguments to validater. Change Callers.
12107 (font_lispy_object): Delete.
12108 (font_at): Use font_find_object instead fo font_lispy_object.
12109
12110 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12111
12112 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12113 and file names.
12114
12115 2008-02-01 Jason Rumney <jasonr@gnu.org>
12116
12117 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12118 (font_matches_spec): Remove debug output.
12119 (add_font_entity_to_list): Avoid using substituted fonts.
12120
12121 2008-02-01 Jason Rumney <jasonr@gnu.org>
12122
12123 * doc.c (Fsnarf_documentation):
12124 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12125
12126 2008-02-01 Miles Bader <miles@gnu.org>
12127
12128 * dispextern.h (struct glyph_row): Only define "clip" field if
12129 HAVE_WINDOW_SYSTEM is defined.
12130
12131 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12132
12133 Fix up multi-tty merge.
12134
12135 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12136 and indentation.
12137
12138 * xfaces.c (free_realized_face, clear_face_gcs):
12139 Include font_done_for_face in the input_blocked section, just in case.
12140
12141 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12142 (get_char_face_and_encoding): Undo last change and remove the *other*
12143 duplicate definition (i.e. keep the one that's better scoped and that
12144 includes code for the font-backend).
12145
12146 * terminal.c (create_terminal): Default keyboard_coding to
12147 `no-conversion' and terminal_coding to `undecided'.
12148
12149 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12150
12151 * fontset.c (free_realized_fontsets): Check that the table entry does
12152 contain a fontset before trying to compare it to `base'.
12153
12154 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12155 syms_of_charset, and syms_of_coding earlier because init_window_once
12156 now needs Vcoding_system_hash_table to be setup.
12157
12158 * coding.h (default_buffer_file_coding): Remove.
12159
12160 * coding.c (default_buffer_file_coding): Remove.
12161 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12162 than ->symbol, and use the terminal-local coding system.
12163 (syms_of_coding): Don't setup the coding-systems that are not
12164 terminal-local.
12165 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12166
12167 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12168 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12169
12170 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12171 in chartab.c and were re-added here by mistake.
12172 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12173
12174 * doc.c (Fsnarf_documentation):
12175 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12176 src to etc.
12177
12178 * ChangeLog.10: Add mistakenly removed entry.
12179
12180 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12181
12182 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12183
12184 2008-02-01 Miles Bader <miles@gnu.org>
12185
12186 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12187 Add extra args to FACE_FOR_CHAR.
12188
12189 2008-02-01 Kenichi Handa <handa@m17n.org>
12190
12191 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12192 in sequence.
12193
12194 * chartab.c (map_sub_char_table, map_char_table): If the range
12195 contains just one character, call the function with that character
12196 even if the depth is not 3.
12197
12198 2008-02-01 Jason Rumney <jasonr@gnu.org>
12199
12200 * w32font.c (w32font_text_extents): Calculate metrics for the
12201 whole string.
12202
12203 2008-02-01 Jason Rumney <jasonr@gnu.org>
12204
12205 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12206
12207 2008-02-01 Jason Rumney <jasonr@gnu.org>
12208
12209 * w32term.c (x_set_glyph_string_clipping): Use
12210 get_glyph_string_clip_rects.
12211 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12212 Adjust for the change of struct glyph_string.
12213
12214 * w32font.c (w32font_draw): Do clipping here.
12215
12216 2008-02-01 Kenichi Handa <handa@m17n.org>
12217
12218 * xftfont.c (xftfont_draw): Adjust for the change of struct
12219 glyph_string.
12220
12221 * xterm.c (x_set_glyph_string_clipping): Use
12222 get_glyph_string_clip_rects.
12223 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12224 Adjust for the change of struct glyph_string.
12225
12226 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12227 the resulting clip(s}.
12228 (expose_overlaps): Add arg r. Change callers. Set it to
12229 row->clip temporarily.
12230 (expose_window): Redraw rows overlapping the exposed area.
12231
12232 * dispextern.h (struct glyph_row): New member clip.
12233 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12234 clip_height, new member clip, and num_clips.
12235
12236 2008-02-01 Kenichi Handa <handa@m17n.org>
12237
12238 * data.c (Fchar_or_string_p): Fix docstring.
12239
12240 2008-02-01 Kenichi Handa <handa@m17n.org>
12241
12242 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12243 create a temporary XftDraw object.
12244
12245 2008-02-01 Kenichi Handa <handa@m17n.org>
12246
12247 * font.c (Ffontp): Fix docstring.
12248
12249 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12250 strong evidence of ISO-2022.
12251
12252 2008-02-01 Kenichi Handa <handa@m17n.org>
12253
12254 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12255 SYNTAX_ENTRY_FOLLOW_PARENT.
12256
12257 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12258
12259 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12260 its type.
12261 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12262 Update to the new type of weak_hash_tables and next_weak.
12263
12264 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12265 a plain C pointer to Lisp_Hash_Table.
12266
12267 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12268 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12269 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12270 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12271 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12272 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12273 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12274 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12275 (GC_EQ): Remove since they've been identical to their non-GC_
12276 alter-egos ever since the markbit was eradicated.
12277
12278 * alloc.c:
12279 * buffer.c:
12280 * buffer.h:
12281 * data.c:
12282 * fileio.c:
12283 * filelock.c:
12284 * fns.c:
12285 * frame.h:
12286 * lisp.h:
12287 * macterm.c:
12288 * print.c:
12289 * process.c:
12290 * w32fns.c:
12291 * w32menu.c:
12292 * w32term.c:
12293 * xfns.c:
12294 * xmenu.c:
12295 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12296
12297 2008-02-01 Kenichi Handa <handa@m17n.org>
12298
12299 * chartab.c (map_sub_char_table): Make it work for the top-level
12300 char-table. Fix handling of parent char-table.
12301 (map_char_table): Adjust for the above change.
12302
12303 2008-02-01 Jason Rumney <jasonr@gnu.org>
12304
12305 * w32font.c (Qgdi): Rename from Qw32.
12306
12307 2008-02-01 Jason Rumney <jasonr@gnu.org>
12308
12309 * w32bdf.c (get_quoted_string): Make function static.
12310
12311 2008-02-01 Kenichi Handa <handa@m17n.org>
12312
12313 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12314 bigger ascent and descent than those of the font, use them as
12315 font's ascent and descent.
12316
12317 2008-02-01 Kenichi Handa <handa@m17n.org>
12318
12319 * Makefile.in (${lispsource}international/charprop.el): Move this
12320 target within "#ifdef HAVE_UNIDATA" and "#endif".
12321
12322 2008-02-01 Kenichi Handa <handa@m17n.org>
12323
12324 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12325 (shortlisp): Add ../lisp/language/tai-viet.el.
12326
12327 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
12328
12329 * Makefile.in (${lispsource}international/charprop.el): Depend on
12330 temacs${EXEEXT}.
12331
12332 2008-02-01 Jason Rumney <jasonr@gnu.org>
12333
12334 * w32font.c (w32font_close): Delete the GDI font object.
12335
12336 * w32menu.c: Include character.h.
12337
12338 * w32proc.c: Likewise.
12339
12340 * w32select.c: Likewise.
12341
12342 * makefile.w32-in (w32proc.o): Depend on character.h.
12343
12344 2008-02-01 Jason Rumney <jasonr@gnu.org>
12345
12346 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12347
12348 * w32menu.c (syms_of_w32menu): Likewise.
12349
12350 * w32proc.c (syms_of_ntproc): Likewise.
12351
12352 * w32select.c (syms_of_w32select): Likewise.
12353
12354 * w32term.c (syms_of_w32term): Likewise.
12355
12356 2008-02-01 Jason Rumney <jasonr@gnu.org>
12357
12358 * w32font.c (w32font_draw): Delete brush after using it.
12359
12360 2008-02-01 Jason Rumney <jasonr@gnu.org>
12361
12362 * w32font.c (w32font_open): Don't set font_idx.
12363 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12364 to font settings.
12365 (w32font_draw): Fill background explicitly.
12366
12367 2008-02-01 Jason Rumney <jasonr@gnu.org>
12368
12369 * w32term.c (w32_initialize): Don't call w32font_initialize.
12370
12371 * w32font.c (w32font_info): Remove subranges.
12372 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12373 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12374 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12375 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12376 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12377 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12378 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12379 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12380 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12381 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12382 New symbols.
12383 (font_callback_data): New struct.
12384 (w32font_list, w32font_match): Use it.
12385 (w32font_open): Don't populate subranges.
12386 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12387 (w32font_encode_char): Always return unicode code-point as-is.
12388 (w32font_text_extents): Supply a transformation matrix to
12389 GetGlyphOutline. Never look up by glyph index. Avoid looping
12390 twice. Use unicode version of GetTexExtentPoint32 instead of
12391 glyph index version.
12392 (set_fonts_frame): Remove.
12393 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12394 set frame parameter. Use backward compatible fake foundries.
12395 Save generic family in extra slot under QCfamily. Make width slot
12396 constant. Save QCspacing value. Save list of scripts instead of
12397 binary subranges.
12398 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12399 (add_font_entity_to_list): Use font_callback_data struct. Filter
12400 unwanted fonts.
12401 (add_one_font_entity_to_list): Use font_callback_data struct.
12402 (w32_registry): Default to iso10646_1.
12403 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12404 string font registries. Don't fill in font name if it is a generic
12405 family name, fill family instead. Use spacing, family and script
12406 extra info to fill pitch, family and charset fields.
12407 (list_all_matching_fonts): Use font_callback_data struct.
12408 (unicode_range_for_char): Remove.
12409 (font_supported_scripts): New function.
12410 (w32font_initialize): Remove.
12411 (syms_of_w32font): Update which symbols are defined.
12412
12413 2008-02-01 Jason Rumney <jasonr@gnu.org>
12414
12415 * font.c (font_pixel_size): Reverse assq_no_quit args.
12416
12417 * w32term.h (FONT_WIDTH): Report max width, not average.
12418 (FONT_MAX_WIDTH): Remove.
12419 (FONT_AVG_WIDTH): New macro.
12420
12421 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12422 redefinition of FONT_WIDTH.
12423
12424 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12425 (w32_cache_char_metrics): Use FONT_WIDTH.
12426
12427 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12428
12429 2008-02-01 Jason Rumney <jasonr@gnu.org>
12430
12431 * w32font.c (w32font_open): Make lfHeight negative.
12432
12433 * w32fns.c (x_default_font_parameter): Use new style font name.
12434 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12435
12436 2008-02-01 Jason Rumney <jasonr@gnu.org>
12437
12438 * w32font.c (QCsubranges): New symbol.
12439 (w32font_open, w32font_has_char): Get subranges from subproperty
12440 of extra.
12441 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12442 (syms_of_w32font): Define :subranges symbol.
12443
12444 * font.c (font_put_extra): Expose externally.
12445
12446 * font.h (font_put_extra): Move declaration from font.c.
12447
12448 * font.c (Ffont_get): Use font driver to determine otf capability.
12449 (adjust_anchor): Check if driver defines anchor_point before using.
12450
12451 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12452 (w32font_draw): Use options.
12453 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12454 Fix detection of truetype fonts.
12455 (registry_to_w32_charset): Handle charsets other than iso8859-1
12456 expressed as lisp symbols.
12457 (w32_registry): Express charset as lisp symbol.
12458 (fill_in_logfont): Reverse pixel and point height logic.
12459 Don't set width here. Set quality to default.
12460
12461 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12462 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12463
12464 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12465 Remove redundant loop and allocation.
12466
12467 * makefile.w32-in (font.o, w32font.o): New objects.
12468 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12469 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12470
12471 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12472 STORE_XCHARB a valid l-value.
12473
12474 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12475 calculations for non-Truetype fonts.
12476 (x_draw_glyph_string): Sync with xterm.c.
12477 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12478 Remove redundant code.
12479 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12480
12481 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12482 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12483
12484 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12485 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12486
12487 * w32font.c: New file for w32 font backend.
12488
12489 2008-02-01 Kenichi Handa <handa@m17n.org>
12490
12491 * term.c: Don't include "buffer.h" twice.
12492
12493 2008-02-01 Kenichi Handa <handa@m17n.org>
12494
12495 * character.c (Funibyte_string): New function.
12496 (syms_of_character): Defsubr it.
12497
12498 2008-02-01 Jason Rumney <jasonr@gnu.org>
12499
12500 * w32term.c [USE_FONT_BACKEND]:
12501 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12502 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12503 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12504 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12505 (x_free_frame_resources): Sync with xterm.c.
12506
12507 2008-02-01 Andreas Schwab <schwab@suse.de>
12508
12509 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12510 char-table size.
12511
12512 2008-02-01 Kenichi Handa <handa@m17n.org>
12513
12514 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12515
12516 2008-02-01 Kenichi Handa <handa@m17n.org>
12517
12518 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12519 font_otf_gpos, add font_drive_otf.
12520
12521 * fontset.c (fontset_find_font): Pay attention to font size
12522 specified for a font.
12523 (reorder_font_vector): Check contents of font_def.
12524
12525 * font.c (struct otf_list): Delete it.
12526 (otf_list): Make it a lisp variable.
12527 (otf_open): Use lispy otf_list.
12528 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12529 (check_otf_features): New function.
12530 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12531 New functions.
12532 (font_drive_otf): New function merging font_otf_gsub and
12533 font_otf_gpos.
12534 (font_open_for_lface): New arg spec. Change argument order.
12535 (font_load_for_face): Adjust for the change of font_open_for_lface.
12536 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12537 Ffont_otf_gpos.
12538 (syms_of_font): Staticpro otf_list. Delete defsubr of
12539 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12540
12541 * xfaces.c (set_font_frame_param): Adjust for the change of
12542 font_open_for_lface.
12543
12544 * font.h (font_open_for_lface): Adjust prototype.
12545 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12546 member otf_drive.
12547 (font_otf_gsub, font_otf_gpos): Delete externs.
12548 (font_drive_otf): Extern it.
12549
12550 2008-02-01 Kenichi Handa <handa@m17n.org>
12551
12552 * font.c (font_at): If the window W is not on a window system,
12553 return Qnil.
12554
12555 * coding.c (produce_chars, encode_coding): Don't call
12556 insert_from_gap if no characters to produce.
12557
12558 2008-02-01 Kenichi Handa <handa@m17n.org>
12559
12560 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12561 Fclear_face_cache.
12562
12563 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12564
12565 2008-02-01 Miles Bader <miles@gnu.org>
12566
12567 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12568 Parse "--disable-font-backend" option.
12569 (standard_args): Add "--disable-font-backend" option.
12570
12571 2008-02-01 Kenichi Handa <handa@m17n.org>
12572
12573 * fontset.c (fontset_find_font): New function.
12574 (fontset_font): Use fontset_find_font.
12575 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12576 Register the specified font for all Latin characters.
12577 (new_fontset_from_font): Register the specified font for all Latin
12578 characters.
12579 (dump_fontset): For a realized fontset, include the base fontset
12580 name in the returned vector.
12581
12582 2008-02-01 Kenichi Handa <handa@m17n.org>
12583
12584 * character.h (CHAR_STRING): Cast C to unsigned on calling
12585 char_string.
12586
12587 * character.c (char_string): Type of arg C changed to unsigned.
12588 Signal an error if C is an invalid character code.
12589
12590 * editfns.c (general_insert_function, Fchar_to_string):
12591 Use CHARACTERP, not INTEGERP.
12592
12593 2008-02-01 Kenichi Handa <handa@m17n.org>
12594
12595 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12596 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12597
12598 * regex.c (analyse_first): Fix for multibyte characters in "case
12599 charset:" and "case categoryspec:".
12600
12601 2008-02-01 Andreas Schwab <schwab@suse.de>
12602
12603 * Makefile.in (LIBES): Move standard libraries to the end.
12604
12605 2008-02-01 Kenichi Handa <handa@m17n.org>
12606
12607 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12608 nonzero, don't shrink the buffer nextb.
12609
12610 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12611
12612 * coding.c (coding_alloc_by_making_gap): New arg offset.
12613 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12614 offset.
12615 (decode_coding_iso_2022): Update coding->safe_charsets.
12616 (decode_coding_gap): Temporarily set
12617 current_buffer->text->inhibit_shrinking to 1.
12618
12619 2008-02-01 Kenichi Handa <handa@m17n.org>
12620
12621 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12622 indexing into elements of s->cmp and s->char2b.
12623
12624 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
12625
12626 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12627
12628 2008-02-01 Kenichi Handa <handa@m17n.org>
12629
12630 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12631 target_multibyte instead of multibyte.
12632 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12633 (bcmp_translate): Change the argument name from multibyte to
12634 target_multibyte.
12635
12636 2008-02-01 Kenichi Handa <handa@m17n.org>
12637
12638 These changes are to compile a regexp into a pattern that can be
12639 used both for multibyte and unibyte targets.
12640
12641 * Makefile.in (search.o): Depend on charset.h.
12642
12643 * character.c (multibyte_char_to_unibyte_safe): New function.
12644
12645 * search.c: Include "charset.h".
12646 (compile_pattern_1): Delete argument multibyte. Don't set
12647 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12648 (compile_pattern): Don't compare cp->buf.target_multibyte.
12649 Compare cp->buf.charset_unibyte.
12650 (compile_pattern): Set cp->buf.target_multibyte.
12651
12652 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12653
12654 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12655
12656 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12657 multibyte. Change callers.
12658 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12659 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12660 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12661 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12662 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12663 (regex_compile): Make the compiled pattern usable both for
12664 multibyte and unibyte targets.
12665 (analyse_first): Make the fastmap usable both for multibyte and
12666 unibyte targets.
12667 (TRANSLATE_VIA_MULTIBYTE): Delete.
12668 (re_match_2_internal): Pay attention to the case that the
12669 multibyteness of bufp and target may be different.
12670
12671 2008-02-01 Kenichi Handa <handa@m17n.org>
12672
12673 * xdisp.c (x_produce_glyphs): When a font is not found, make the
12674 empty box occupy at least one column width.
12675
12676 2008-02-01 Miles Bader <miles@gnu.org>
12677
12678 * Makefile.in: Remove redundant HAVE_XFT clause.
12679
12680 2008-02-01 Kenichi Handa <handa@m17n.org>
12681
12682 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
12683
12684 2008-02-01 Kenichi Handa <handa@m17n.org>
12685
12686 * fontset.c (Finternal_char_font): Fix for the case of POSITION
12687 being nil.
12688
12689 2008-02-01 Kenichi Handa <handa@m17n.org>
12690
12691 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
12692
12693 2008-02-01 Kenichi Handa <handa@m17n.org>
12694
12695 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
12696
12697 2008-02-01 Kenichi Handa <handa@m17n.org>
12698
12699 * search.c (simple_search): Fix previous change.
12700
12701 2008-02-01 Kenichi Handa <handa@m17n.org>
12702
12703 * xftfont.c (ftfont_font_format): Extern declaration.
12704
12705 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
12706
12707 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
12708 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
12709
12710 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
12711 (ftfont_font_format): Fix previous change.
12712
12713 * font.h (Ffont_xlfd_name): EXFUN it.
12714
12715 * font.c (font_parse_xlfd): Fix the array size of `f'.
12716 (register_font_driver): Use EQ to compare driver->type.
12717
12718 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
12719 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
12720 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
12721
12722 2008-02-01 Kenichi Handa <handa@m17n.org>
12723
12724 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
12725 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
12726
12727 2008-02-01 Kenichi Handa <handa@m17n.org>
12728
12729 * xfont.c (xfont_open): Set font->format.
12730
12731 * xftfont.c (xftfont_open): Set font->format.
12732
12733 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
12734 (ftfont_list): Include FC_FONTFORMAT in FcObject.
12735 (ftfont_open): Set font->format.
12736 (ftfont_font_format): New function.
12737
12738 * font.h (struct font): New member format.
12739
12740 * font.c (Qopentype): New variable.
12741 (syms_of_font): Defsym it.
12742 (Fquery_font): Change the format of the last element of the return
12743 value.
12744
12745 2008-02-01 Kenichi Handa <handa@m17n.org>
12746
12747 * xfns.c (xic_create_xfontset): Try the default fontset name as a
12748 last resort.
12749
12750 2008-02-01 Kenichi Handa <handa@m17n.org>
12751
12752 * coding.c (detect_coding_charset): Fix detection of multi-byte
12753 charset.
12754
12755 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
12756
12757 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
12758
12759 2008-02-01 Kenichi Handa <handa@m17n.org>
12760
12761 * xdisp.c (get_next_display_element): Set it->face_id for the
12762 first component of a composition.
12763 (x_produce_glyphs): Check if the font is changed or not for composition.
12764
12765 2008-02-01 Kenichi Handa <handa@m17n.org>
12766
12767 * fontset.c (Qlatin): New variable.
12768 (syms_of_fontset): Define it as a lisp symbol.
12769 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
12770
12771 2008-02-01 Kenichi Handa <handa@m17n.org>
12772
12773 * font.c (font_unparse_fcname): Pay attention to the case that
12774 some of font property is a null string.
12775
12776 2008-02-01 Kenichi Handa <handa@m17n.org>
12777
12778 * term.c: Include "composite.h".
12779 (encode_terminal_code): Output all components of composition.
12780 Check the size of encode_terminal_src.
12781 (produce_glyphs): For composition, call produce_composite_glyph.
12782 (append_composite_glyph, produce_composite_glyph): New functions.
12783
12784 * xdisp.c (x_produce_glyphs): In handling composition, if a font
12785 is not found, get font_info from the current ascii face.
12786
12787 2008-02-01 Kenichi Handa <handa@m17n.org>
12788
12789 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
12790 buffer-file-name to Qnil before calling insert_from_buffer.
12791
12792 * font.c (font_unparse_fcname): Pay attention to the case that
12793 foundry is a null string.
12794
12795 2008-02-01 Kenichi Handa <handa@m17n.org>
12796
12797 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
12798
12799 * font.c (Qunicode_sip): New variable.
12800 (syms_of_font): Declare it as a Lisp symbol.
12801
12802 * font.h (Qunicode_sip): Extern it.
12803
12804 2008-02-01 Kenichi Handa <handa@m17n.org>
12805
12806 * composite.c (get_composition_id): Pay attention to TAB component.
12807
12808 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
12809 TAB. Adjust for the change of s->char2b which always points to
12810 the first element of allocated memory.
12811
12812 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
12813
12814 * xdisp.c (handle_composition_prop): Set it->c to the first
12815 non-TAB component.
12816 (fill_composite_glyph_string): Change argument.
12817 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
12818 (x_produce_glyphs): Fix handling of left/right padding.
12819
12820 2008-02-01 Kenichi Handa <handa@m17n.org>
12821
12822 * coding.c (detect_coding_system): Fix for handling off
12823 inhibit_iso_escape_detection. Fix for the case that no coding
12824 system is defined for a specific coding category.
12825
12826 2008-02-01 Kenichi Handa <handa@m17n.org>
12827
12828 * font.c (font_matching_entity): Delete unused local var.
12829
12830 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
12831 opening a font.
12832
12833 * fileio.c (Finsert_file_contents): On recovering a file, assume
12834 Unix-like eol.
12835 (choose_write_coding_system): On auto-saving a file, force
12836 Unix-like eol.
12837
12838 * coding.c (setup_coding_system): Fix setting of
12839 coding->common_flags based on eol_type.
12840 (coding_inherit_eol_type): If PARENT is not nil, be sure to
12841 inherit from it.
12842
12843 2008-02-01 Kenichi Handa <handa@m17n.org>
12844
12845 * alloc.c (NSTATICS): Increas to 0x600.
12846
12847 2008-02-01 Kenichi Handa <handa@m17n.org>
12848
12849 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
12850 (ftfont_list): Don't check :name property.
12851 (ftfont_match): New function.
12852 (ftfont_pattern_entity): If the pattern doesn't contain
12853 FC_SPACING, don't assume FC_MONO.
12854
12855 * font.h (struct font_driver): New member `match'.
12856 (font_update_drivers): Adjust prototype.
12857
12858 * font.c (font_parse_fcname, font_parse_name): Don't change :name
12859 property of FONT.
12860 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
12861 them unconditionally.
12862 (font_matching_entity): New function.
12863 (font_open_by_name): Try font_matching_entity if exact match is
12864 not found.
12865 (font_update_drivers): Delete the arg FONT. Return a list of
12866 actually used backends. Don't free faces, font caches here.
12867 Don't store data in frame parameters. Don't call x_set_font.
12868 (Ffont_spec): Store :name property as is.
12869 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
12870 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
12871 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
12872 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
12873 Call font->driver->otf_gsub instead of font_otf_gsub.
12874
12875 * frame.c (x_set_font_backend): Do more works that were done in
12876 font_update_drivers before.
12877
12878 * xfont.c (xfont_match): New function.
12879 (xfont_driver): Set xfont_driver.match to xfont_match.
12880 (xfont_draw): Set font in GC if necessary.
12881
12882 * ftxfont.c (ftxfont_match): New function.
12883 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
12884
12885 * xftfont.c (xftfont_match): New function.
12886 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
12887
12888 2008-02-01 Kenichi Handa <handa@m17n.org>
12889
12890 * font.h (struct font): New member scalable.
12891 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
12892 (font_otf_gsub): Adjust prototype.
12893
12894 * font.c (font_otf_capability): Fix handling of the default langsys.
12895 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
12896 Check the contents of SPEC.
12897 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
12898 (check_gstring): New function.
12899 (REPLACEMENT_CHARACTER): New macro.
12900 (font_otf_gsub): New arg alternate_subst. Be sure to set all
12901 glyph codes of GSTRING.
12902 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
12903 (font_prepare_composition): Set cmp->glyph_len.
12904 (font_open_entity): Set font->scalable.
12905 (Ffont_get): Handle :otf property.
12906 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
12907 functions.
12908 (Fquery_font): Use font->font.full_name.
12909 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
12910 Sfont_otf_alternates.
12911
12912 * ftfont.c (ftfont_open): Set font->font.full_name and
12913 font->font.name properly. Fix calculation of font->font.height
12914 and font->min_width.
12915
12916 * ftxfont.c (ftxfont_create_gcs): New function.
12917 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
12918 (ftxfont_draw_backgrond): Fix filling region.
12919 (ftxfont_default_fid): New function.
12920 (ftxfont_open): Set xfont->fid to the return value of
12921 ftxfont_default_fid.
12922 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
12923 (ftxfont_done_face): Free only GCs that are created by
12924 ftxfont_create_gcs.
12925 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
12926
12927 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
12928 Clip to src->width, etc (not src->clip_XXX).
12929
12930 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
12931 FontBackend frame parameter.
12932
12933 2008-02-01 Kenichi Handa <handa@m17n.org>
12934
12935 * font.h (struct font_driver_list): New member `on'.
12936 (Fclear_font_cache): EXFUN it.
12937 (font_update_drivers): Extern it.
12938
12939 * font.c (font_unparse_fcname): Fix typo (swidth->width).
12940 (font_list_entities): Check driver_list->on.
12941 (register_font_driver): Initalize `on' member to 0.
12942 (font_update_drivers): New function.
12943 (Fclear_font_cache): Check driver_list->on.
12944
12945 * frame.h (Qfont_backend): Extern it.
12946 (x_set_font_backend): Extern it.
12947
12948 * frame.c (Qfont_backend): New variable.
12949 (frame_parms): New element for font-backend.
12950 (x_set_font_backend): New function.
12951
12952 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
12953 FontBackend frame parameter.
12954 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
12955 x_set_font_backend.
12956
12957 * xfont.c (xfont_list): Don't try listing by :name property if the
12958 name is not for XLFD.
12959
12960 2008-02-01 Kenichi Handa <handa@m17n.org>
12961
12962 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
12963 (LGLYPH_SET_TO): New macros.
12964 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
12965 element of G is vector or not.
12966 (font_at): Extern it.
12967
12968 * font.c: Include window.h.
12969 (font_lispy_object): New function.
12970 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
12971 end of valid glyph.
12972 (font_close_object): Fix getting (struct font *).
12973 (font_at): New function.
12974 (Ffont_get): If FONT is a font-object, get entity from it.
12975 (Ffont_make_gstring): Initialize elements of glyphs with nil.
12976 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
12977 range check.
12978 (Ffont_at): New function.
12979 (syms_of_font): Defsubr Sfont_at.
12980
12981 * xdisp.c (it_props): Move the entry for Qauto_composed to just
12982 before the entry for Qcomposition.
12983 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
12984 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
12985 the font in gstring.
12986 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
12987 LGLYPH_FORM (g) to detect the end of valid glyph.
12988 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
12989 we are composing with gstring.
12990
12991 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
12992 Check if adjustment is vector or not.
12993
12994 * Makefile.in (font.o): Make it depends on window.h.
12995
12996 2008-02-01 Kenichi Handa <handa@m17n.org>
12997
12998 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
12999 adjustment is vector or not.
13000
13001 2008-02-01 Miles Bader <miles@gnu.org>
13002
13003 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13004
13005 2008-02-01 Kenichi Handa <handa@m17n.org>
13006
13007 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13008 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13009 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13010
13011 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13012 (DEVICE_DELTA): Fix typo.
13013 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13014 LGLYPH format.
13015
13016 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13017 the change of LGLYPH format.
13018
13019 2008-02-01 Kenichi Handa <handa@m17n.org>
13020
13021 * ftfont.c (ftfont_list): Fix typo.
13022 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13023
13024 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13025
13026 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13027
13028 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13029 xftface_info is non-NULL.
13030
13031 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13032
13033 * ftfont.c (ftfont_list): Move misplaced #endif.
13034
13035 2008-02-01 Kenichi Handa <handa@m17n.org>
13036
13037 * ftfont.c (ftfont_list): Pay attention to the case that
13038 FC_CAPABILITY is not defined.
13039
13040 2008-02-01 Kenichi Handa <handa@m17n.org>
13041
13042 * xftfont.c (xftfont_open): Set charset related members to -1.
13043
13044 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13045 QCname.
13046 (ftfont_open): Set charset related members to -1.
13047
13048 * fontset.c (Votf_script_alist): New variable.
13049 (syms_of_fontset): Initialize it.
13050 (fontset_font): Delete unused variable.
13051
13052 * fontset.h (Votf_script_alist): Extern it.
13053
13054 * font.c (font_find_for_lface): Optimize code.
13055
13056 * font.h (font_close_object, font_merge_old_spec): Extern them.
13057
13058 2008-02-01 Kenichi Handa <handa@m17n.org>
13059
13060 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13061 (syms_of_font): Initialize them.
13062 (font_pixel_size): Allow float value in dpi.
13063 (font_prop_validate_type): Delete.
13064 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13065 Change caller.
13066 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13067 (font_prop_validate_extra): Delete.
13068 (font_prop_validate_spacing): New function.
13069 (font_property_table): Add elements for all known properties.
13070 (get_font_prop_index): Rename from check_font_prop_name. New
13071 argument FROM. Change caller.
13072 (font_prop_validate): Validate all known properties.
13073 (font_put_extra): Delete argument force. Change caller.
13074 (font_expand_wildcards): Make it static. Fix the way of shrinking
13075 the possible range.
13076 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13077 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13078 Change caller.
13079 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13080 (font_parse_fcname): Delete argument merge. Fix parsing of point
13081 size. Don't validate properties values here. Change caller.
13082 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13083 (font_open_by_name): Delete unused variable.
13084 (Ffont_spec): Likewise. Validate property values.
13085 (Ffont_match_p): New function.
13086
13087 * font.h (QCscalable): Extern it.
13088 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13089
13090 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13091
13092 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13093 (xfont_list_pattern): New function.
13094 (xfont_list): Use xfont_list_pattern.
13095
13096 2008-02-01 Kenichi Handa <handa@m17n.org>
13097
13098 * font.h (Flist_fonts): EXFUN it.
13099
13100 2008-02-01 Jason Rumney <jasonr@gnu.org>
13101
13102 * w32term.c (w32_initialize): Add back smoothing_type and
13103 smoothing_enabled definitions.
13104
13105 2008-02-01 Kenichi Handa <handa@m17n.org>
13106
13107 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13108 s->face->font on determining underline position.
13109
13110 2008-02-01 Kenichi Handa <handa@m17n.org>
13111
13112 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13113 (font_has_char): Accept font-object too.
13114 (font_find_for_lface): Try at first with a size specified in face.
13115
13116 2008-02-01 Kenichi Handa <handa@m17n.org>
13117
13118 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13119 font_open_by_name.
13120
13121 2008-02-01 Kenichi Handa <handa@m17n.org>
13122
13123 * font.h (QCspacing, QCdpi): Extern them.
13124 (enum font_spacing): New enum.
13125 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13126
13127 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13128 (QCspacing, QCdpi): New variables.
13129 (syms_of_font): Initialize them.
13130 (font_pixel_size): New function.
13131 (font_put_extra): New function.
13132 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13133 in FONT_EXTRA.
13134 (font_parse_fcname): Handle enumerated values (e.g. bold).
13135 Fix handling font size. Add QCname property that contains only
13136 unknown properties.
13137 (font_score): Change argument. Change caller. Pay attention to
13138 FONT_PIXEL_SIZE_QUANTUM.
13139 (font_sort_entites, font_list_entities, font_find_for_lface)
13140 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13141 (Ffont_spec): Add QCname property that contains only unknown properties.
13142
13143 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13144 include weight in listing pattern, instead check weight of each
13145 listed font. Don't include scalable in pattern. Pay attention to
13146 FONT_PIXEL_SIZE_QUANTUM.
13147
13148 2008-02-01 Kenichi Handa <handa@m17n.org>
13149
13150 * font.c (font_parse_fcname): Fix parsing of point-size.
13151 (font_unparse_fcname): Produce symbolic names for style properties.
13152 (font_list_entities): Handle float size correctly.
13153 (font_open_by_name): Prefer `normal' property values if the name
13154 doesn't specify them.
13155
13156 * fontset.c (Finternal_char_font): Use font_get_name, not
13157 Ffont_xlfd_name.
13158
13159 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13160 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13161 pattern. Don't force scalable.
13162
13163 * xftfont.c (xftfont_open): For generating a name, start from
13164 96-byte buffer.
13165
13166 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13167
13168 * frame.h (x_new_fontset2): Fix prototype.
13169
13170 2008-02-01 Kenichi Handa <handa@m17n.org>
13171
13172 * font.h (struct font_driver): Delete member parse_name.
13173 (font_match_p, font_get_spec, font_parse_fcname)
13174 (font_unparse_fcname): Extern them.
13175 (font_get_name): Adjust prototype.
13176
13177 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13178 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13179 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13180 unnecessary checks for weight, slant, and swidth.
13181 (font_parse_fcname): New function.
13182 (font_unparse_fcname): New function.
13183 (font_parse_name): New function.
13184 (font_match_p): New function.
13185 (font_get_name): Change return value to Lisp string.
13186 (font_get_spec): New function.
13187 (Qunspecified, Qignore_defface): Don't extern them.
13188 (font_find_for_lface): Assume that LFACE is fully specified.
13189 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13190 object, use it for FACE.
13191 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13192 driver->parse_name.
13193 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13194
13195 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13196 prototype.
13197
13198 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13199 argument F. Don't call Fnew_fontset. Instead, directly call
13200 make_fontset.
13201
13202 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13203
13204 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13205 of x_new_fontset2.
13206
13207 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13208 (Qsans__serif): New variables.
13209 (ftfont_generic_family_list): New variable.
13210 (syms_of_ftfont): Initialize the above variables.
13211 (ftfont_pattern_entity): Delete argument NAME.
13212 (ftfont_list_generic_family): New function.
13213 (ftfont_parse_name): Delete this function.
13214 (ftfont_list): Try generic family only when FcFontList found no font.
13215 (ftfont_list_family): Fix args to FcObjectSetBuild.
13216
13217 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13218 object in attrs[LFACE_FONT_INDEX].
13219 (set_lface_from_font_name): Cancel all changes for font-backend.
13220 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13221 function.
13222 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13223 font object in QCfont attribute.
13224 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13225 (realize_default_face) [USE_FONT_BACKEND]: Call
13226 set_lface_from_font_and_fontset.
13227
13228 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13229 "fixed", and signal error here if no suitable font was found.
13230
13231 * xfont.c (xfont_parse_name): Delete this function.
13232
13233 * xftfont.c (xftfont_open): Change coding style of error
13234 handling. Generate fontconfig's fontname pattern.
13235
13236 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13237 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13238
13239 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13240 Both args FONTSET and FONT_OBJECT must be existing ones.
13241
13242 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13243
13244 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13245
13246 2008-02-01 Kenichi Handa <handa@m17n.org>
13247
13248 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13249
13250 * font.h (struct font): Fix typo.
13251
13252 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13253 XLFD_XXX_INDEX.
13254 (enum xlfd_field_mask): New enum.
13255 (intern_font_field): Changed argument. Change caller. If digits
13256 are followed by non-digits, return a symbol.
13257 (font_expand_wildcards): New function.
13258 (font_parse_xlfd): Fix wildcard handling.
13259 (Ffont_spec): If :name is specified, reflect the info in the other
13260 properties.
13261
13262 * ftfont.c (ftfont_pattern_entity): Fix typo.
13263 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13264 locale.
13265
13266 2008-02-01 Kenichi Handa <handa@m17n.org>
13267
13268 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13269
13270 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13271 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13272 registry doesn't specify encoding part.
13273 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13274 (font_open_by_name): At first try parsing the name.
13275 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13276 as Lisp symbols.
13277
13278 * fontset.c (reorder_font_vector): Pay attention to the case that
13279 the 3rd element of font_def is nil.
13280 (fontset_font): For the default fontset, append one more fontset
13281 elements for a script-based font specification. Don't add script
13282 attribute on finding a font.
13283 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13284 font name.
13285 (fontset_ascii_font): If a font can't be opened, return nil.
13286
13287 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13288 (ftfont_pattern_entity): New function.
13289 (ftfont_get_cache): Assume that freetype_font_cache is already
13290 initialized.
13291 (ftfont_list): Handle the case that a file is specified in font
13292 name. Use ftfont_pattern_entity to generate entities.
13293 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13294 (syms_of_ftfont): Initialize freetype_font_cache.
13295
13296 * xftfont.c (xftfont_open): Make the font name fontconfig's
13297 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13298 (xftfont_close): Free font->font.name if not NULL.
13299
13300 * xfont.c (xfont_list): If script is specified for a font, return
13301 null_vector.
13302 (xfont_list_family): Declare argument type.
13303
13304 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13305 name, set LFACE_FONT (lface) to nil.
13306
13307 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13308 return Qnil.
13309
13310 2008-02-01 Kenichi Handa <handa@m17n.org>
13311
13312 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13313 (standard_args): Add "-enable-font-backend".
13314
13315 2008-02-01 Kenichi Handa <handa@m17n.org>
13316
13317 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13318 (struct xftdraw_list, xftdraw_list): Delete them.
13319 (register_xftdraw, check_xftdraw): Delete them.
13320 (xftfont_prepare_face): Don't call register_xftdraw.
13321 (xftfont_done_face): Don't call check_xftdraw.
13322 (xftfont_draw): Get background color only when with_background is
13323 nonzero.
13324
13325 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13326
13327 2008-02-01 Kenichi Handa <handa@m17n.org>
13328
13329 These changes are for the new font handling codes.
13330
13331 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13332 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13333 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13334 (FONTSRC, FONTOBJ): New variables.
13335 (obj): Add $(FONTOBJ).
13336 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13337 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13338 @LIBOTF_LIBS@.
13339 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13340 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13341
13342 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13343
13344 * character.h (Vscript_representative_chars): Extern it.
13345
13346 * character.c (Vscript_representative_chars): New variable.
13347 (syms_of_character): Declare it as a Lisp variable.
13348
13349 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13350 enable_font_backend is nonzero, accept the composition method
13351 COMPOSITION_WITH_GLYPH_STRING.
13352
13353 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13354 enumeration COMPOSITION_WITH_GLYPH_STRING.
13355
13356 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13357 members clip_x, clip_y, clip_width, and clip_height.
13358 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13359
13360 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13361 --enable-font-backend. Call syms_of_font.
13362
13363 * fns.c (assoc_no_quit): New function.
13364
13365 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13366 (face_for_font, new_fontset_from_font)
13367 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13368
13369 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13370 (fontset_font, fontset_ascii, face_for_char)
13371 (make_fontset_for_ascii_face, Ffont_info)
13372 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13373 is nonzero, use font-backend mechanism.
13374 (find_font_encoding): Make it non-static.
13375 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13376 New functions.
13377
13378 * frame.h (struct frame): New members resx and resy.
13379 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13380 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13381
13382 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13383 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13384
13385 * lisp.h (assoc_no_quit): Extern it.
13386
13387 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13388 Through out the file, use FONT_INFO_FROM_FACE instead of
13389 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13390 rif->per_char_metric.
13391 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13392 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13393 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13394 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13395 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13396 nonzero, use font-backend mechanism.
13397 (get_per_char_metric): New function.
13398
13399 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13400 (set_lface_from_font_name)
13401 (set_font_frame_param, free_realized_face)
13402 (prepare_face_for_display, clear_face_gcs)
13403 (Finternal_set_font_selection_order, realize_x_face)
13404 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13405 font-backend mechanism.
13406 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13407 (load_face_font) [USE_FONT_BACKEND]: Abort.
13408 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13409 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13410
13411 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13412 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13413 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13414 nonzero, register all available font drivers. Call
13415 x_default_font_parameter for deciding a font.
13416 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13417
13418 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13419 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13420 (x_set_glyph_string_clipping_exactly)
13421 (x_compute_glyph_string_overhangs)
13422 (x_draw_glyph_string_foreground)
13423 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13424 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13425 enable_font_backend is nonzero, use font-backend mechanism.
13426 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13427
13428 2008-02-01 Kenichi Handa <handa@m17n.org>
13429
13430 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13431 system_eol_type.
13432 (syms_of_coding): Initialize system_eol_type.
13433
13434 * process.c (Fset_process_coding_system): Inherit system's eol
13435 format if necessary.
13436
13437 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13438
13439 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13440
13441 2008-02-01 Kenichi Handa <handa@m17n.org>
13442
13443 * coding.c (decode_eol): Pay attention to buffer relocation in
13444 del_range_2.
13445 (decode_coding): Call decode_eol before restoring undo_list.
13446
13447 2008-02-01 Kenichi Handa <handa@m17n.org>
13448
13449 * charset.c (Fdefine_charset_internal): Fix setting of
13450 emacs_mule_bytes.
13451
13452 2008-02-01 Kenichi Handa <handa@m17n.org>
13453
13454 * keyboard.c (read_char): Check if C is a character or not before
13455 looking up Vkeyboard_translate_table.
13456
13457 2008-02-01 Kenichi Handa <handa@m17n.org>
13458
13459 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13460 condition to terminate the loop.
13461
13462 2008-02-01 Kenichi Handa <handa@m17n.org>
13463
13464 * coding.c (produce_composition): Compare charbuf[i] instead of
13465 args[i] against 0.
13466 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13467
13468 2008-02-01 Kenichi Handa <handa@m17n.org>
13469
13470 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13471 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13472 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13473 detect_coding.
13474 (emacs_mule_char): Handle old style (Emacs 20) component character
13475 of a composition.
13476 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13477 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13478 composition rule.
13479 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13480
13481 2008-02-01 Kenichi Handa <handa@m17n.org>
13482
13483 * coding.c (encode_coding_ccl): Allocate destination dynamically
13484 when necessary.
13485
13486 2008-02-01 Kenichi Handa <handa@m17n.org>
13487
13488 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13489 the loop. When quitted, show a proper error message.
13490
13491 2008-02-01 Kenichi Handa <handa@m17n.org>
13492
13493 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13494 src->clip_head and src->clip_tail temporarily instead of src->hl.
13495
13496 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13497 character sequence.
13498 (Fccl_execute_on_string): Use ASET, not XSET.
13499
13500 2008-02-01 Kenichi Handa <handa@m17n.org>
13501
13502 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13503
13504 2008-02-01 Kenichi Handa <handa@m17n.org>
13505
13506 * coding.c (decode_coding): Fix the condition of terminating the
13507 decoding loop.
13508
13509 2008-02-01 Kenichi Handa <handa@m17n.org>
13510
13511 * data.c (Faset): On setting a character bigger than 255 in a
13512 unibyte string, signal an error instead of make the string multibyte.
13513
13514 2008-02-01 Kenichi Handa <handa@m17n.org>
13515
13516 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13517 made by a mapping table.
13518
13519 2008-02-01 Kenichi Handa <handa@m17n.org>
13520
13521 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13522 not.
13523 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13524 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13525
13526 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13527 s->face is NULL or not.
13528
13529 2008-02-01 Kenichi Handa <handa@m17n.org>
13530
13531 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13532 (x_draw_glyph_string): Fix drawing of right_overhang and
13533 left_overhang around/on cursor.
13534
13535 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13536
13537 2008-02-01 Kenichi Handa <handa@m17n.org>
13538
13539 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13540
13541 2008-02-01 Kenichi Handa <handa@m17n.org>
13542
13543 * coding.c (Fdefine_coding_system_internal)
13544 (Fdefine_coding_system_alias): Avoid a duplicated element in
13545 Vcoding_system_alist.
13546
13547 2008-02-01 Kenichi Handa <handa@m17n.org>
13548
13549 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13550
13551 * coding.c (Qcoding_system_define_form): New variable.
13552 (syms_of_coding): Intern and staticpro it.
13553 (Fcoding_system_p): Check Qcoding_system_define_form.
13554 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13555
13556 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13557 Fcoding_system_p.
13558 (CHECK_CODING_SYSTEM): If ID is not available, call
13559 Fcheck_coding_system.
13560 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13561 Try also Fcheck_coding_system.
13562
13563 2008-02-01 Kenichi Handa <handa@m17n.org>
13564
13565 * coding.c (code_conversion_restore): GCPRO arg.
13566
13567 2008-02-01 Kenichi Handa <handa@m17n.org>
13568
13569 * character.c (lisp_string_width): Check multibyteness of STRING.
13570
13571 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13572
13573 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13574 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13575 (decode_mac_font_name): Use decode_coding_c_string instead of
13576 decode_coding.
13577 (x_load_font): Initialize fontp->fontset to -1. Set
13578 fontp->encoding_type.
13579
13580 2008-02-01 Kenichi Handa <handa@m17n.org>
13581
13582 * search.c (search_buffer): Give up BM search on case-fold-search
13583 if one of a target character has a case-equivalence of different
13584 byte length even if that target charcter is an ASCII.
13585 (simple_search): Fix calculation of byte length of matched text.
13586 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13587
13588 2008-02-01 Kenichi Handa <handa@m17n.org>
13589
13590 * coding.c (decode_coding): Fix handling of invalid bytes.
13591
13592 2008-02-01 Kenichi Handa <handa@m17n.org>
13593
13594 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13595 Unicode characters.
13596
13597 2008-02-01 Kenichi Handa <handa@m17n.org>
13598
13599 * coding.c (encode_coding_object): If a pre-write-conversion
13600 function makes a new buffer, kill it.
13601
13602 2008-02-01 Kenichi Handa <handa@m17n.org>
13603
13604 * coding.c (QCascii_compatible_p): New variable.
13605 (syms_of_coding): Initialize it.
13606 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13607 calling string_char.
13608 (record_conversion_result): Add `default:' case.
13609 (coding_charset_list): Delete unused variable `coding_type'.
13610 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13611 property in the plist of the coding system.
13612 (Fcoding_system_put): Check QCascii_compatible_p.
13613
13614 2008-02-01 Miles Bader <miles@gnu.org>
13615
13616 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13617 removed calculation of frame `f', as it's now used.
13618
13619 2008-02-01 Kenichi Handa <handa@m17n.org>
13620
13621 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13622 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13623 (UNIDATA): New variable.
13624 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13625 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13626 $(RUN_TEMACS) unconditionally.
13627
13628 2008-02-01 Kenichi Handa <handa@m17n.org>
13629
13630 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13631 (admindir): New variable.
13632 ($(lispsource)international/charprop.el): New target.
13633
13634 2008-02-01 Miles Bader <miles@gnu.org>
13635
13636 * character.c (chars-in-region): Remove obsolete function.
13637 (syms_of_character): Remove its initialization.
13638
13639 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13640
13641 * w32select.c (validate_coding_system)
13642 (setup_windows_coding_system): New functions.
13643 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13644 setup_windows_coding_system.
13645 (setup_config, Fw32_get_clipboard_data): Use
13646 validate_coding_system.
13647 (Fx_selection_exists): Move call to setup_config to a place
13648 where signals are allowed.
13649
13650 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13651 (Fcheck_coding_system): Add declarations.
13652
13653 2008-02-01 Kenichi Handa <handa@m17n.org>
13654
13655 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13656
13657 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13658
13659 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13660 string as the second argument for x_new_fontset.
13661
13662 2008-02-01 Kenichi Handa <handa@m17n.org>
13663
13664 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13665 (encode_coding_object): Use safe_call instead of call2.
13666
13667 2008-02-01 Kenichi Handa <handa@m17n.org>
13668
13669 * fontset.c (Fset_fontset_font): Check family element of a given vector.
13670
13671 * Makefile.in (lisp): Include charprop.el.
13672
13673 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13674
13675 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
13676 Not sure if it's unnecessary.
13677
13678 2008-02-01 Steven Tamm <steventamm@mac.com>
13679
13680 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
13681 some possibly unnecessary fontset checking code that crashed
13682 when creating a new frame.
13683
13684 2008-02-01 Kenichi Handa <handa@m17n.org>
13685
13686 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
13687 lookup_face.
13688
13689 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
13690
13691 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
13692
13693 2008-02-01 Kenichi Handa <handa@m17n.org>
13694
13695 * coding.c: Cancel the change done in HEAD on 2008-02-01.
13696 (coding_charset_list): New function.
13697
13698 * coding.h (coding_charset_list): Extern it.
13699
13700 2008-02-01 Kenichi Handa <handa@m17n.org>
13701
13702 * fontset.c (Fset_fontset_font): Call find_font_encoding with
13703 concatenation of family and registry.
13704
13705 2008-02-01 Kenichi Handa <handa@m17n.org>
13706
13707 * character.h (BYTE8_STRING): Fix typo.
13708
13709 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
13710 string to multibyte (sync to HEAD).
13711
13712 * casefiddle.c (casify_region): Handle changes in byte-length
13713 using replace_range_2 (sync to HEAD).
13714
13715 2008-02-01 Andreas Schwab <schwab@suse.de>
13716
13717 * chartab.c (map_char_table): GCPRO table and arg.
13718
13719 2008-02-01 Kenichi Handa <handa@m17n.org>
13720
13721 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
13722 already at limit.
13723
13724 2008-02-01 Kenichi Handa <handa@m17n.org>
13725
13726 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
13727 instead of fast_c_string_match_ignore_case.
13728 (find_font_encoding): Change argument to Lisp_Object. Use
13729 fast_string_match_ignore_case instead of
13730 fast_c_string_match_ignore_case. Change caller.
13731
13732 2008-02-01 Kenichi Handa <handa@m17n.org>
13733
13734 * xdisp.c (get_next_display_element): In unibyte case, decide to
13735 display in octal form by checking a character by
13736 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
13737
13738 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
13739
13740 * character.c (unibyte_has_multibyte_table): New variable.
13741
13742 * character.h (unibyte_has_multibyte_table): Extern it.
13743 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
13744
13745 2008-02-01 Kenichi Handa <handa@m17n.org>
13746
13747 * coding.c (encode_coding_iso_2022): Fix handling of charset
13748 annotation.
13749
13750 2008-02-01 Kenichi Handa <handa@m17n.org>
13751
13752 * coding.c (setup_coding_system): If coding_system is nil, use
13753 Qundecided.
13754 (Fterminal_coding_system): Return nil if terminal coding system is
13755 `undecided'.
13756 (syms_of_coding): Define coding-system `undecided' here. Setup
13757 terminal_coding as `undecided'.
13758
13759 2008-02-01 Kenichi Handa <handa@m17n.org>
13760
13761 * xdisp.c (message_dolog, set_message_1): Call
13762 unibyte_char_to_multibyte with arg type int.
13763
13764 * lread.c (read1): Fix reading of a char-table.
13765
13766 * print.c (print_object): Include sub char-table in circularities
13767 detection.
13768
13769 2008-02-01 Kenichi Handa <handa@m17n.org>
13770
13771 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
13772 Append the found sequences in car of ARGS instead of prepending.
13773
13774 2008-02-01 Kenichi Handa <handa@m17n.org>
13775
13776 * fileio.c (report_file_error): Make a unibyte string from
13777 strerror (errorno).
13778 (Fsubstitute_in_file_name): Fix the arg to
13779 unibyte_char_to_multibyte. It is evaluated twice.
13780
13781 2008-02-01 Kenichi Handa <handa@m17n.org>
13782
13783 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
13784
13785 2008-02-01 Kenichi Handa <handa@m17n.org>
13786
13787 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
13788 BOM is not found.
13789 (detect_coding, detect_coding_system): Optimization for ISO-2022
13790 when no 8-bit data is found.
13791
13792 2008-02-01 Jason Rumney <jasonr@gnu.org>
13793
13794 * w32fns.c (x_to_w32_font): Update to use new coding struct.
13795
13796 2008-02-01 Kenichi Handa <handa@m17n.org>
13797
13798 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
13799 CHARS.
13800
13801 2008-02-01 Steven Tamm <steventamm@mac.com>
13802
13803 * macterm.c (mac_encode_char): Add charset argument and update
13804 to use encoding_type.
13805 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
13806 switch to pure fontset.
13807 (decode_mac_font_name): Temporarily remove decoding.
13808 (x_font_name_to_mac_font_name): Temporarily remove encoding.
13809 (x_load_font): Temporarily remove encoding.
13810
13811 2008-02-01 Kenichi Handa <handa@m17n.org>
13812
13813 * xfaces.c (Fface_font): If frame is not on a window system,
13814 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
13815 refer to face->font.
13816 (split_font_name_into_vector, build_font_name_from_vector)
13817 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
13818 when HAVE_WINDOW_SYSTEM is defined.
13819
13820 2008-02-01 Kenichi Handa <handa@m17n.org>
13821
13822 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
13823 (x_produce_glyphs): Fix setting of members of cmp in case
13824 cmp->glyph_len is zero.
13825
13826 * fontset.c (Fset_fontset_font): Fix docstring.
13827 (Ffontset_info): Make it backward compatible. New arg ALL.
13828
13829 2008-02-01 Kim F. Storm <storm@cua.dk>
13830
13831 * process.c (read_process_output): Grow decoding_buf when needed;
13832 this could cause a crash in allocate_string and compact_small_strings.
13833
13834 2008-02-01 Kenichi Handa <handa@m17n.org>
13835
13836 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
13837
13838 2008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * coding.c (setup_coding_system): Set coding->common_flags
13841 correctly for raw-text.
13842 (consume_chars): On encoding unibyte text by raw-text, don't check
13843 multibyte form.
13844 (encode_coding): On encoding by raw-text, never use translation tables.
13845
13846 * fileio.c (e_write): Short cut for the case of no encoding.
13847
13848 2008-02-01 Kenichi Handa <handa@m17n.org>
13849
13850 * coding.c (detect_coding, detect_coding_system): Delete unused
13851 variables.
13852
13853 2008-02-01 Kenichi Handa <handa@m17n.org>
13854
13855 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
13856 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
13857
13858 2008-02-01 Kenichi Handa <handa@m17n.org>
13859
13860 * coding.c (Ffind_coding_systems_region_internal): Include
13861 raw-text and no-conversion in the result.
13862
13863 2008-02-01 Kenichi Handa <handa@m17n.org>
13864
13865 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
13866 (load_font_get_repertory): Delete unnecessary check of ENCODING of
13867 FONT_DEF.
13868 (font_def_arg, add_arg, from_arg, to_arg): New args.
13869 (set_fontset_font): Change argument.
13870 (Fset_fontset_font): Fix for the case that TARGET is a script
13871 name and charset name.
13872 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
13873
13874 2008-02-01 Kenichi Handa <handa@m17n.org>
13875
13876 * fontset.c (fontset_font): Rename from fontset_face. Change return
13877 value.
13878 (face_suitable_for_char_p, face_for_char): Adjust for the change
13879 of fontset_font.
13880 (make_fontset_for_ascii_face): Fix setting of the fontset element
13881 for ASCII.
13882 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
13883 to get a font name.
13884 (Ffontset_info): Adjust for the change of fontset_font.
13885
13886 * coding.c (emacs_mule_char): Check invalid code more rigidly.
13887
13888 * character.h (LEADING_CODE_LATIN_1_MIN)
13889 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
13890
13891 2008-02-01 Kenichi Handa <handa@m17n.org>
13892
13893 * editfns.c (check_translation): New function.
13894 (Ftranslate_region_internal): Handle M:N mapping.
13895
13896 2008-02-01 Kenichi Handa <handa@m17n.org>
13897
13898 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
13899
13900 2008-02-01 Kenichi Handa <handa@m17n.org>
13901
13902 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
13903 goto invalid_code.
13904 (decode_coding_iso_2022): Fix handling of invalid designation.
13905
13906 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
13907 after calling code_conversion_save.
13908
13909 2008-02-01 Kenichi Handa <handa@m17n.org>
13910
13911 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
13912
13913 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
13914
13915 * fontset.c: Include "intervals.h".
13916 (fontset_face): Fix comparing of Lisp_Objects.
13917 (free_face_fontset, new_fontset_from_font_name): Fix
13918 Lisp_Object/int mixup.
13919
13920 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
13921
13922 * coding.c: Add many prototypes for static functions.
13923 (get_translation_table): Allow max_lookup to be NULL.
13924 (decode_coding, Ffind_coding_systems_region_internal)
13925 (Funencodable_char_position, Fcheck_coding_systems_region): Call
13926 get_translation_table with max_lookup NULL.
13927
13928 2008-02-01 Kenichi Handa <handa@m17n.org>
13929
13930 * coding.c (get_translation_table): Declare it as Lisp_Object.
13931 (LOOKUP_TRANSLATION_TABLE): New macro.
13932 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
13933 instead of CHAR_TABLE_REF.
13934
13935 2008-02-01 Kenichi Handa <handa@m17n.org>
13936
13937 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
13938 annotation data format.
13939 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
13940 Change arguments FROM and TO to single argument NCHARS. Change caller.
13941 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
13942 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13943 (decode_coding_ccl, decode_coding_charset): Pay attention to
13944 coding->charbuf_used.
13945 (get_translation): New function.
13946 (produce_chars): New arguments translation_table and last_block.
13947 Translate characters here. Return number of carryover chars.
13948 Change caller.
13949 (produce_composition): New argument pos. Change caller.
13950 Adjust for the change of annotation data format.
13951 (produce_charset, produce_annotation): Likewise.
13952 (decode_coding, encode_coding): Don't call translate_chars.
13953 (consume_chars): New arg translation_table. Change caller.
13954 (translate_chars): Delete.
13955 (syms_of_coding): Make translation-table's number of extra slots 2.
13956
13957 2008-02-01 Kenichi Handa <handa@m17n.org>
13958
13959 * search.c (simple_search): Fix setting this_pos_byte in backward
13960 search.
13961
13962 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
13963 byte sequence.
13964 (detect_coding_ccl): Fix setting of the variable valids.
13965
13966 2008-02-01 Kenichi Handa <handa@m17n.org>
13967
13968 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
13969
13970 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
13971
13972 * editfns.c (Ftranslate_region_internal): Rename from
13973 Ftranslate_region. Accept a char-table in TABLE.
13974 (syms_of_editfns): Defsubr Stranslate_region_internal.
13975
13976 * xfaces.c (set_lface_from_font_name): If a font is specified for
13977 a frame, generate a fontset from the font.
13978 (build_scalable_font_name): If the scalable font is requested for
13979 a specific size, don't change that size.
13980 (try_font_list): Try a scalable font also in the case that a
13981 pattern string is specified.
13982
13983 2008-02-01 Kenichi Handa <handa@m17n.org>
13984
13985 * xfaces.c (Fface_font): New optional arg CHARACTER.
13986
13987 2008-02-01 Kenichi Handa <handa@m17n.org>
13988
13989 * charset.h (CHARSET_OFFSET): New macro.
13990
13991 2008-02-01 Kenichi Handa <handa@m17n.org>
13992
13993 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
13994
13995 * fontset.c (fontset_face): Handle the case that repertory is a
13996 char-table.
13997 (find_font_encoding): Return nil for unknown encoding.
13998 (Fset_fontset_font): Ignore a font of unknown encoding.
13999
14000 2008-02-01 Kenichi Handa <handa@m17n.org>
14001
14002 * keymap.c (describe_vector): Handle default value of a char table.
14003
14004 * fontset.c (fontset_face): Handle fallback fonts correctly.
14005 (Ffontset_info): Return infomation about fallback fonts.
14006
14007 2008-02-01 Kenichi Handa <handa@m17n.org>
14008
14009 * fontset.c (FONTSET_DEFAULT): New macro.
14010 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14011 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14012 the case that it is nil.
14013 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14014 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14015
14016 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14017 subset or superset.
14018
14019 2008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * emacs.c (main): Call init_charset after syms_of_XXX.
14022
14023 * charset.c (Vcharset_map_directory): Delete.
14024 (Vcharset_map_path): New variable.
14025 (load_charset_map_from_file): Use Vcharset_map_path instead.
14026 (init_charset): Initialize Vcharset_map_path.
14027 (syms_of_charset): Delete declaration of "charset-map-directory",
14028 add declaration of "charset-map-path".
14029
14030 2008-02-01 Kenichi Handa <handa@m17n.org>
14031
14032 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14033 ASCII only string.
14034
14035 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14036
14037 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14038 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14039
14040 2008-02-01 Kenichi Handa <handa@m17n.org>
14041
14042 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14043
14044 * coding.c (QCmnemonic, QCdefalut_char)
14045 (QCdecode_translation_table, QCencode_translation_table)
14046 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14047 (get_translation_table): Return a list of translation tables if
14048 necessary.
14049 (decode_coding): Call get_translation_table with ENCODEP 0.
14050 (char_encodable_p): If translation_table is non-nil, always call
14051 translate_char.
14052 (Fdefine_coding_system_internal): Accept list of translation
14053 tables as :encode-translation-table and :decode-translation-table.
14054 (Fcoding_system_put): New function.
14055 (syms_of_coding): Declare new symbols. Defsubr
14056 Scoding_system_put.
14057 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14058 typically JISX0212.
14059
14060 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14061 when the charset is superset type.
14062
14063 * character.c (translate_char): Accept list of translation tables.
14064
14065 2008-02-01 Kenichi Handa <handa@m17n.org>
14066
14067 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14068 (CODING_ATTR_TRANS_TBL): New macro.
14069
14070 * coding.c (get_translation_table): New function.
14071 (translate_chars): Fix the bug of skipping annotation data.
14072 (decode_coding, encode_coding): Utilize get_translation_table.
14073 (char_encodable_p, Funencodable_char_position): Translate char if
14074 necessary.
14075 (Ffind_coding_systems_region_internal)
14076 (Fcheck_coding_systems_region): Setup translation table for encode
14077 in a coding system attribute vector in advance.
14078 (Fdefine_coding_system_internal): Allow a symbol as translation
14079 table. For shift-jis type coding system, allow 4th charset.
14080
14081 2008-02-01 Kenichi Handa <handa@m17n.org>
14082
14083 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14084
14085 * xdisp.c (get_next_display_element): Pass -1 as POS to
14086 FACE_FOR_CHAR if displaying a C-string.
14087
14088 2008-02-01 Kenichi Handa <handa@m17n.org>
14089
14090 * composite.c (get_composition_id): Handle xoff and yoff in a
14091 composition rule.
14092
14093 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14094 (struct composition): New member lbearing and rbearing.
14095
14096 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14097 (x_get_glyph_overhangs): Handle a composition glyph.
14098 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14099
14100 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14101 composition glyph.
14102
14103 2008-02-01 Kenichi Handa <handa@m17n.org>
14104
14105 * print.c: Include charset.h.
14106 (Vprint_charset_text_property): New variable.
14107 (Qdefault): Extern it.
14108 (PRINT_STRING_NON_CHARSET_FOUND)
14109 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14110 (print_check_string_result): New variable.
14111 (print_check_string_charset_prop): New function.
14112 (print_prune_charset_plist): New variable.
14113 (print_prune_string_charset): New function.
14114 (print_object): Call print_prune_string_charset if
14115 Vprint_charset_text_property is not t.
14116 (print_interval): Print nothing if interval->plist is nil.
14117 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14118 variable. Init and staticpro print_prune_charset_plist.
14119
14120 2008-02-01 Kenichi Handa <handa@m17n.org>
14121
14122 * fontset.c (new_fontset_from_font_name): Use the specified font
14123 for all characters in the new fontset.
14124
14125 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14126 OBJECT args.
14127
14128 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14129 OBJECT args for composition too.
14130
14131 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14132 OBJECT args.
14133
14134 2008-02-01 Kenichi Handa <handa@m17n.org>
14135
14136 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14137
14138 * fontset.c (reorder_font_vector): Adjust for the change of
14139 FONT_DEF format.
14140 (fontset_face): New arg id. Change caller.
14141 (face_for_char): New args pos and object.
14142 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14143 (fs_query_fontset): Check NAME by Fassoc too.
14144 (Fset_fontset_font): Allow non-XLFD font name.
14145 (Ffontset_info): Adjust for the change of FONT_DEF format.
14146
14147 * fontset.h (face_for_char): Adjust prototype.
14148
14149 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14150 (append_space, extend_face_to_end_of_line)
14151 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14152 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14153
14154 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14155 POS and OBJECT args.
14156
14157 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14158 POS and OBJECT args.
14159
14160 2008-02-01 Jason Rumney <jasonr@gnu.org>
14161
14162 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14163 of GlobalAlloc'ed memory.
14164
14165 2008-02-01 Kenichi Handa <handa@m17n.org>
14166
14167 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14168
14169 * charset.h (charset_table_used): Delete extern.
14170
14171 * charset.c (charset_table_used): Make it static.
14172 (map_charset_chars): Fix args to c_function with.
14173
14174 * chartab.c (map_sub_char_table_for_charset): Fix args to
14175 c_function with.
14176
14177 * coding.h (enum coding_result_code): Delete
14178 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14179
14180 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14181 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14182 (Vlast_code_conversion_error): New variables.
14183 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14184 (ONE_MORE_BYTE): Record error if any instead of signaling an
14185 error. If non-ASCII multibyte char is found, return the negative
14186 value of the code. All callers changed to check it.
14187 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14188 (record_conversion_result): New function. Change all codes setting
14189 coding->result to call this function.
14190 (detect_coding_utf_8, decode_coding_utf_8)
14191 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14192 Don't use the local variable incomplete.
14193 (emacs_mule_char): Change the second arg to `const'.
14194 (decode_coding): Fix of flushing out unprocessed data.
14195 (make_conversion_work_buffer): Fix making of a work buffer.
14196 (decode_coding_object): Return coding->dst_object.
14197
14198 * fontset.c (set_fontset_font): Fix args.
14199
14200 * lisp.h (CHARACTERBITS): Define as 22.
14201
14202 * process.c (send_process): Be sure to set coding->src_multibyte.
14203
14204 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14205
14206 2008-02-01 Kenichi Handa <handa@m17n.org>
14207
14208 * xdisp.c (handle_auto_composed_prop): Give limit to
14209 Fnext_single_char_property_change.
14210
14211 2008-02-01 Kenichi Handa <handa@m17n.org>
14212
14213 * composite.c (syms_of_composite): Don't make the composition hash
14214 table weak.
14215
14216 * fontset.c (Fset_fontset_font): Fix docstring.
14217
14218 * lisp.h (detect_coding_system): Adjust prototype.
14219
14220 * fileio.c (kill_workbuf_unwind): Delete this function.
14221 (Finsert_file_contents): Adjust the call of detect_coding_system.
14222 Get conversion_buffer by code_conversion_save. Use the macro
14223 CODING_MAY_REQUIRE_DECODING. After decoding, update
14224 coding_system.
14225
14226 * coding.h (make_conversion_work_buffer): Delete extern.
14227 (code_conversion_save): Extern it.
14228
14229 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14230 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14231 (decode_coding_utf_8): Don't do eol converion.
14232 (detect_coding_utf_16): Check coding->src_chars, not
14233 coding->src_bytes. Add heuristics for those that have no signature.
14234 (decode_coding_emacs_mule, decode_coding_iso_2022)
14235 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14236 Don't do eol converion.
14237 (adjust_coding_eol_type): Return a new coding system.
14238 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14239 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14240 each change.
14241 (decode_coding): Pay attention to undo_list. Do eol conversion for
14242 all types of coding-systems (if necessary).
14243 (Vcode_conversion_work_buf_list): Delete it.
14244 (Vcode_conversion_reused_workbuf): Rename from
14245 Vcode_conversion_reused_work_buf.
14246 (Vcode_conversion_workbuf_name): New variable.
14247 (reused_workbuf_in_use): New variable.
14248 (make_conversion_work_buffer): Delete the arg DEPTH.
14249 (code_conversion_restore): Change argument to cons.
14250 (code_conversion_save): Delete the argument BUFFER. Change callers.
14251 (detect_coding_system): New argument src_chars. Change callers.
14252 Fix for utf-16 detection.
14253 (init_coding_once): Don't use ISO_carriage_return.
14254 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14255 reused_workbuf_in_use.
14256
14257 2008-02-01 Kenichi Handa <handa@m17n.org>
14258
14259 * keymap.c (store_in_keymap): Pay attention to the case that idx
14260 is a cons specifying a character range.
14261
14262 2008-02-01 Kenichi Handa <handa@m17n.org>
14263
14264 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14265 HANDLED_RECOMPUTE_PROPS.
14266
14267 * coding.c (Fdefine_coding_system_internal): Fix checking of
14268 ascii compatibility.
14269
14270 2008-02-01 Kenichi Handa <handa@m17n.org>
14271
14272 * charset.c (find_charsets_in_text): Delete unused locale variable.
14273 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14274
14275 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14276 Resync charset_list to Vemacs_mule_charset_list.
14277
14278 * keymap.c (store_in_keymap): Pay attention to the case that idx
14279 is a cons specifying a character range.
14280
14281 2008-02-01 Kenichi Handa <handa@m17n.org>
14282
14283 * composite.c (update_compositions): Bind inhibit-read-only, etc
14284 to t before calling remove-list-of-text-properties.
14285
14286 * print.c (print_object): Always print ASCII chars as is.
14287
14288 2008-02-01 Kenichi Handa <handa@m17n.org>
14289
14290 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14291
14292 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14293 is a char table.
14294
14295 2008-02-01 Kenichi Handa <handa@m17n.org>
14296
14297 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14298
14299 2008-02-01 Kenichi Handa <handa@m17n.org>
14300
14301 * xfaces.c (set_lface_from_font_name): Fix for the case that
14302 FONTNAME is not fontset name.
14303
14304 2008-02-01 Kenichi Handa <handa@m17n.org>
14305
14306 * fns.c (base64_encode_1): Fix previous change.
14307
14308 2008-02-01 Kenichi Handa <handa@m17n.org>
14309
14310 * fontset.c (set_fontset_font): New function.
14311 (Fset_fontset_font): If a font is specified for a charset, use
14312 map_charset_chars to store the font spec in a fontset.
14313
14314 2008-02-01 Kenichi Handa <handa@m17n.org>
14315
14316 * fontset.c (fontset_face): Create a fallback fontset on demand.
14317 (make_fontset): Don't create a fallback fontset here.
14318 (free_face_fontset): Free a fallback fontset (if any) too.
14319 (n_auto_fontsets): Delete this variable.
14320 (auto_fontset_alist): New variable.
14321 (new_fontset_from_font_name): Check auto_fontset_alist.
14322 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14323 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14324 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14325 Defsubr Sfontset_list_all.
14326
14327 2008-02-01 Kenichi Handa <handa@m17n.org>
14328
14329 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14330
14331 2008-02-01 Kenichi Handa <handa@m17n.org>
14332
14333 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14334
14335 2008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 * editfns.c (Fgoto_char): Fix docstring.
14338
14339 2008-02-01 Kenichi Handa <handa@m17n.org>
14340
14341 * insdel.c (insert_from_gap): Adjust intervals correctly.
14342
14343 2008-02-01 Jason Rumney <jasonr@gnu.org>
14344
14345 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14346 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14347 (w32_initialize): Try to load it.
14348 (x_get_font_repertory): Use it if available.
14349 (w32_encode_char): Add shortcut for unicode output.
14350
14351 * w32fns.c (w32_load_system_font): Default charset to -1.
14352 (x_to_w32_charset): Match all fonts for unicode.
14353 (w32_to_x_charset): New parameter matching. Don't return partial
14354 or wildcard charsets.
14355 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14356 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14357 (w32_to_x_font): Match charset to real charset.
14358 (enum_font_cb2): Always list unicode versions.
14359
14360 * makefile.w32-in (temacs): Increase EMHEAP.
14361
14362 2008-02-01 Jason Rumney <jasonr@gnu.org>
14363
14364 * w32term.c (w32_encode_char): New charset parameter.
14365 font_info.encoding becomes encoding_type.
14366 (x_get_font_repertory): New function. Warning: stub only!
14367 (x_new_font): Return quickly if font already set.
14368 (x_new_fontset): fontsetname parameter is Lisp_Object.
14369 Use new fs_query_fontset. Try new_fontset_from_font_name.
14370 Use fontset_name for return value.
14371
14372 * w32term.h: Declare x_get_font_repertory.
14373
14374 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14375 place of find_charset_in_text. Use encode_coding_object in place
14376 of encode_coding.
14377 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14378 decode_coding.
14379
14380 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14381 of x_new_fontset.
14382 (w32_load_system_font): Initialize charset as unicode.
14383 font_info.encoding becomes encoding_type.
14384 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14385 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14386 (syms_of_w32fns): Set get_font_repertory_func.
14387
14388 * w32console.c: Include character.h. Use terminal_encode_buffer
14389 from term.c.
14390 (write_glyphs): Use new version of encode_terminal_code. Use
14391 encode_coding_object in place of encode_coding.
14392
14393 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14394 encoding becomes encoding_type.
14395
14396 * term.c (terminal_encode_buffer): Make externally visible.
14397
14398 * makefile.w32-in: Add character.h dependancies.
14399 (character.o, chartab.o): New targets.
14400
14401 2008-02-01 Kenichi Handa <handa@m17n.org>
14402
14403 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14404 CODING_ID_EOL_TYPE.
14405
14406 2008-02-01 Andreas Schwab <schwab@suse.de>
14407
14408 * coding.c (produce_chars): Revert last change.
14409
14410 2008-02-01 Kenichi Handa <handa@m17n.org>
14411
14412 * charset.h (charset_unicode): Extern it.
14413
14414 * charset.c (string_xstring_p): Check by (C >= 0x100).
14415 (find_charsets_in_text): Change format of the arc CHARSETS. New
14416 arg MULTIBYTE.
14417 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14418 change of find_charsets_in_text.
14419 (Fsplit_char): Fix doc. Never return unknown.
14420
14421 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14422
14423 * coding.c (Fdefine_coding_system_alias): Update
14424 Vcoding_system_list.
14425
14426 * fontset.c (load_font_get_repertory): Pay attention to the case
14427 that ENCODING of a font is specified by a char-table.
14428
14429 * xterm.c (x_get_font_repertory): Handle the case that the
14430 encoding of font is other than Unicode.
14431
14432 2008-02-01 Kenichi Handa <handa@m17n.org>
14433
14434 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14435 if a character is encodable by the terminal coding system. If
14436 not, produces proper number of `?'s. Update
14437 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14438 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14439
14440 2008-02-01 Kenichi Handa <handa@m17n.org>
14441
14442 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14443 variables.
14444 (encode_terminal_code): Change argument. Encode multiple
14445 characters at once. Store the result of encoding in
14446 terminal_encode_buffer.
14447 (write_glyphs, insert_glyphs): Adjust for the change of
14448 encode_terminal_code.
14449 (term_init): Initialize terminal_encode_buffer and
14450 terminal_encode_buf_size.
14451
14452 * coding.c (consume_chars): If coding->src_object is nil, don't
14453 check annotation.
14454
14455 2008-02-01 Kenichi Handa <handa@m17n.org>
14456
14457 * character.c (char_string): Use ASCII_CHAR_P instead of
14458 SINGLE_BYTE_CHAR_P.
14459
14460 2008-02-01 Kenichi Handa <handa@m17n.org>
14461
14462 * xdisp.c (handle_auto_composed_prop): Check if the last
14463 characters of auto-composed region is newly composed with the
14464 following characters.
14465 (handle_composition_prop): Fix checking of point being inside
14466 composition.
14467
14468 2008-02-01 Kenichi Handa <handa@m17n.org>
14469
14470 * fns.c (concat): Don't change multibyteness of the result by
14471 concatenating an 8-bit character.
14472
14473 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14474 multibyteness of the result when newelt is an 8-bit character.
14475
14476 2008-02-01 Dave Love <fx@gnu.org>
14477
14478 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14479 EMACS_INT.
14480
14481 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14482
14483 * xfaces.c (face_numeric_value): Declare dim size_t.
14484 (Finternal_lisp_face_equal_p): Remove unused f.
14485
14486 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14487 (MATRIX_ROW): Remove unused vars.
14488 (draw_glyphs, x_insert_glyphs, fast_find_position)
14489 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14490 byte/char counts.
14491
14492 * regex.c (regex_compile): Remove unused var.
14493
14494 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14495
14496 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14497 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14498
14499 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14500
14501 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14502
14503 * fileio.c (Fwrite_region): Remove unused var.
14504
14505 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14506 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14507
14508 * composite.c (Fremove_list_of_text_properties): Declare.
14509
14510 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14511 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14512 (coding_inherit_eol_type): Remove unused attrs.
14513 (detect_coding): Cast arg of detect_eol.
14514
14515 * charset.c (syms_of_charset): Remove unused var p.
14516 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14517 byte/char counts.
14518
14519 * casetab.c (set_case_table): Remove unused var.
14520
14521 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14522 unused vars.
14523
14524 2008-02-01 Dave Love <fx@gnu.org>
14525
14526 * xterm.c (x_bitmap_mask): Declare.
14527
14528 2008-02-01 Dave Love <fx@gnu.org>
14529
14530 * xterm.c (x_term_init): Fix type error.
14531
14532 * lisp.h: Add Funibyte_char_to_multibyte.
14533
14534 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14535 (Fset_coding_system_priority): Doc fix.
14536
14537 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14538
14539 * indent.c (check_composition): Make start and end EMACS_INT.
14540
14541 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14542
14543 * xdisp.c (handle_composition_prop, check_point_in_composition):
14544 Make buffer positions EMACS_INT.
14545
14546 * composite.c (find_composition, run_composition_function)
14547 (update_compositions, Ffind_composition_internal): Make buffer
14548 positions EMACS_INT.
14549
14550 * composite.h (find_composition, update_compositions): Make
14551 position args EMACS_INT.
14552
14553 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14554
14555 * intervals.c (get_property_and_range):
14556 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14557
14558 * unexalpha.c: Don't include varargs.h.
14559
14560 2008-02-01 Dave Love <fx@gnu.org>
14561
14562 * coding.h (ENCODE_UTF_8): New.
14563
14564 * Makefile.in (gtkutil.o): Depend on coding.h.
14565
14566 * coding.c (Fset_coding_system_priority): Doc fix.
14567
14568 2008-02-01 Kenichi Handa <handa@m17n.org>
14569
14570 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14571 the case of auto saving.
14572
14573 2008-02-01 Andreas Schwab <schwab@suse.de>
14574
14575 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14576 `range' from GC.
14577
14578 2008-02-01 Kenichi Handa <handa@m17n.org>
14579
14580 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14581
14582 2008-02-01 Kenichi Handa <handa@m17n.org>
14583
14584 * fileio.c (choose_write_coding_system): Return a decided coding system.
14585 (Fwrite_region): Set Vlast_coding_system_used to the return value
14586 of choose_write_coding_system.
14587
14588 2008-02-01 Kenichi Handa <handa@m17n.org>
14589
14590 * charset.c (Fset_charset_priority): Pay attention to duplicated
14591 arguments.
14592
14593 * coding.c (QCcategory): New variable.
14594 (syms_of_coding): Defsym it. Set all elements of
14595 Vcoding_category_table and their symbol values.
14596 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14597 coding-category-XXX, and coding-category-list.
14598 (Fdefine_coding_system_internal): Add category in the plist.
14599
14600 2008-02-01 Kenichi Handa <handa@m17n.org>
14601
14602 * callproc.c (Fcall_process): Handle carryover correctly.
14603
14604 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14605 (raw_text_coding_system): Check NILP (coding_system).
14606 (coding_inherit_eol_type): Check NILP (coding_system) and
14607 NILP (parent).
14608 (consume_chars): Fix for the case of raw-text.
14609
14610 * process.c (read_process_output): Handle carryover correctly.
14611
14612 2008-02-01 Dave Love <fx@gnu.org>
14613
14614 * regex.c (re_search_2): Fix last change.
14615
14616 2008-02-01 Kenichi Handa <handa@m17n.org>
14617
14618 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14619 target_multibyte. Even in a unibyte case, return a converted
14620 multibyte char.
14621 (GET_CHAR_AFTER): New macro.
14622 (PATFETCH): Translate via multibyte char.
14623 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14624 (SETUP_MULTIBYTE_RANGE): New macro.
14625 (regex_compile): Setup compiled code so that its multibyteness
14626 matches that of a target. Fix the handling of "[X-YZ]" using
14627 SETUP_MULTIBYTE_RANGE.
14628 (analyse_first) <charset>: For filling fastmap for all multibyte
14629 characters, don't check by BASE_LEADING_CODE_P.
14630 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14631 the same as RE_MULTIBYTE_P (bufp) now.
14632 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14633 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14634 (TRANSLATE_VIA_MULTIBYTE): New macro.
14635 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14636 It is the same as RE_MULTIBYTE_P (bufp) now.
14637 <exactn>: Translate via multibyte.
14638 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14639 translate it.
14640 <charset, charset_not>: Fetch a character by
14641 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14642 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14643 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14644 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14645 by GET_CHAR_AFTER.
14646 (bcmp_translate): Likewise.
14647
14648 * search.c (compile_pattern): Check the member target_multibyte,
14649 not the member multibyte of buf.
14650
14651 * lread.c (read1): While reading a string, set force_singlebyte
14652 and force_multibyte correctly.
14653
14654 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14655 up of unibyte_to_multibyte_table.
14656
14657 2008-02-01 Kenichi Handa <handa@m17n.org>
14658
14659 * coding.c (setup_coding_system): If coding has
14660 post-read-conversion or pre-write-conversion, set
14661 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14662 respectively.
14663 (decode_coding_gap): Run post-read-conversion if any.
14664
14665 * fileio.c (Finsert_file_contents): Even if we read into a
14666 unibyte buffer, check if we must decode the result or not.
14667
14668 2008-02-01 Kenichi Handa <handa@m17n.org>
14669
14670 * coding.c (make_conversion_work_buffer): Change the work buffer
14671 name to the same one as that of Emacs 21.
14672
14673 2008-02-01 Kenichi Handa <handa@m17n.org>
14674
14675 * coding.h (make_conversion_work_buffer): Adjust prototype.
14676 (code_conversion_restore): Don't extern it.
14677
14678 * coding.c (detected_mask): Delete unused variable.
14679 (decode_coding_iso_2022): Pay attention to the byte sequence of
14680 CTEXT extended segment, and retain those bytes as is.
14681 (decode_coding_ccl): Delete unused variable `valids'.
14682 (setup_coding_system): Delete unused variable `category'.
14683 (consume_chars): Delete unused variable `category'. Make it work
14684 for non-multibyte case.
14685 (make_conversion_work_buffer): Change argument.
14686 (saved_coding): Delete unused variable.
14687 (code_conversion_restore): Don't check saved_coding->destination.
14688 (code_conversion_save): New function.
14689 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
14690 instead of record_unwind_protect.
14691 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
14692 (detect_coding_system): Delete unused variable `mask'.
14693 (Fdefine_coding_system_internal): Delete unused variable id.
14694
14695 * fileio.c (kill_workbuf_unwind): New function.
14696 (Finsert_file_contents): On replacing, call
14697 make_conversion_work_buffer with correct args, and call
14698 record_unwind_protect with the first arg kill_workbuf_unwind.
14699
14700 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
14701
14702 2008-02-01 Kenichi Handa <handa@m17n.org>
14703
14704 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
14705 (fontset_add): Fix for the case that TO is less than TO1.
14706 (Ffontset_info): Don't use fallback fontset on checking the
14707 default fontset.
14708 (dump_fontset): New function for debugging.
14709
14710 * coding.c (Fdefine_coding_system_internal): Fix for the case that
14711 coding_type is Qcharset.
14712
14713 2008-02-01 Kenichi Handa <handa@m17n.org>
14714
14715 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
14716 (map_char_table): Don't inherit the value from the parent on
14717 initializing VAL. Adjust for the above change.
14718
14719 2008-02-01 Kenichi Handa <handa@m17n.org>
14720
14721 * coding.c (Qsignature, Qendian): Delete these variables.
14722 (syms_of_coding): Don't initialize them.
14723 (CATEGORY_MASK_UTF_16_AUTO): New macro.
14724 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
14725 detect_info->found.
14726 (decode_coding_utf_16): Don't detect BOM here.
14727 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
14728 is NOT utf_16_without_bom.
14729 (setup_coding_system): For a coding system of type utf-16, check
14730 if the attribute :endian is Qbig or not (not nil or not), and set
14731 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
14732 (detect_coding): If coding type is utf-16 and BOM detection is
14733 required, detect it.
14734 (Fdefine_coding_system_internal): For a coding system of type
14735 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
14736
14737 2008-02-01 Kenichi Handa <handa@m17n.org>
14738
14739 * coding.c (coding_set_source): Fix for the case that the current
14740 buffer is different from coding->src_object.
14741 (decode_coding_object): Don't use the conversion work buffer if
14742 DST_OBJECT is a buffer.
14743
14744 2008-02-01 Dave Love <fx@gnu.org>
14745
14746 * lread.c (read_emacs_mule_char) [len==2]: Index
14747 emacs_mule_charset correctly.
14748
14749 2008-02-01 Dave Love <fx@gnu.org>
14750
14751 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
14752 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
14753 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
14754 treated specially.)
14755 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
14756 (detected_mask): Remove Big5 bits.
14757
14758 2008-02-01 Kenichi Handa <handa@m17n.org>
14759
14760 The following changes are to make the font rescaling facility
14761 compatible with Emacs 21.
14762
14763 * xfaces.c (Vface_font_rescale_alist): Rename from
14764 Vface_resizing_fonts.
14765 (struct font_name): Rename member resizing_ratio to rescale_ratio.
14766 (font_rescale_ratio): Rename from font_resizing_ratio.
14767 (split_font_name): Set font->rescale_ratio.
14768 (better_font_p): Pay attention to font->rescale_ratio.
14769 (build_scalable_font_name): Likewise. Change RESX, and RESY
14770 fields.
14771 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
14772
14773 2008-02-01 Kenichi Handa <handa@m17n.org>
14774
14775 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
14776 (Qutf_16_le): Remove these variables.
14777 (syms_of_coding): Don't DEFSYM them.
14778 (decode_coding_utf_16): Fix handling of BOM.
14779 (encode_coding_utf_16): Fix handling of BOM.
14780
14781 2008-02-01 Kenichi Handa <handa@m17n.org>
14782
14783 * fileio.c (Finsert_file_contents): On replacing, before decoding
14784 the file into the work buffer, set point of the work buffer to the end.
14785
14786 2008-02-01 Dave Love <fx@gnu.org>
14787
14788 * coding.c (Fcheck_coding_systems_region): Fix type errors.
14789
14790 2008-02-01 Dave Love <fx@gnu.org>
14791
14792 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14793 and fix C types.
14794
14795 2008-02-01 Kenichi Handa <handa@m17n.org>
14796
14797 * xdisp.c (SKIP_GLYPHS): New macro.
14798 (set_cursor_from_row): Pay attention to string display properties.
14799
14800 * category.c (copy_category_entry): Fix for the case that RANGE
14801 is an integer.
14802
14803 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
14804
14805 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
14806
14807 2008-02-01 Kenichi Handa <handa@m17n.org>
14808
14809 * charset.c (Fcharset_id_internal): New function.
14810 (syms_of_charset): Defsubr it.
14811
14812 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
14813 with the last arg charset_list acquired from coding.
14814 (Fdefine_coding_system_internal): For ccl-based coding system, fix
14815 the attribute coding_attr_ccl_valids.
14816
14817 * coding.h (enum define_coding_ccl_arg_index): Set the first
14818 member coding_arg_ccl_decoder to coding_arg_max.
14819
14820 * ccl.h (ccl_driver): Adjust prototype.
14821
14822 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
14823 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
14824 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
14825 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
14826 last arg Qnil.
14827
14828 2008-02-01 Kenichi Handa <handa@m17n.org>
14829
14830 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
14831 call encode_char.
14832
14833 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
14834
14835 2008-02-01 Dave Love <fx@gnu.org>
14836
14837 * composite.c (syms_of_composite): Make composition_hash_table weak.
14838
14839 2008-02-01 Kenichi Handa <handa@m17n.org>
14840
14841 * dispextern.h (check_face_attributes, generate_ascii_font_name)
14842 (font_name_registry): Don't extern them.
14843 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
14844
14845 * fontset.h (Qfontset): Don't extern it.
14846 (new_fontset_from_font_name): Extern it.
14847
14848 * fontset.c: Give 8 extra slots to fontset objects.
14849 (Qfontset_info): New variable.
14850 (syms_of_fontset): Defsym it.
14851 (FONTSET_FALLBACK): New macro.
14852 (fontset_face): Try also the default fontset.
14853 (make_fontset): Realize a fallback fontset from the default fontset.
14854 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
14855 using split_font_name_into_vector and build_font_name_from_vector.
14856 (Fset_fontset_font): Access the elements of font_spec by enum
14857 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
14858 name by using split_font_name_into_vector.
14859 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
14860 generate a proper font name from the fontset name. Update
14861 Vfontset_alias_alist.
14862 (n_auto_fontsets): New variable.
14863 (new_fontset_from_font_name): New function.
14864 (Ffont_info): Store the information about fonts generated from the
14865 default fontset in the first extra slot of the returned char-table.
14866
14867 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
14868 (font_name_registry): Delete function.
14869 (split_font_name_into_vector): New function.
14870 (build_font_name_from_vector): New function.
14871 (font_list): The argument REGISTRY is now a list of registry names.
14872 (choose_face_font): If we are choosing an ASCII font, and ATTRS
14873 specifies an explicit font name, return the name as is. Make a
14874 list of registy names.
14875
14876 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
14877 of x_new_fontset.
14878 (Fx_create_frame): Don't call x_new_fontset here. Just use
14879 x_list_fonts to check the existence of fonts.
14880
14881 * xterm.h (x_new_fontset): Adjust prototype.
14882
14883 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
14884 string. Use new_fontset_from_font_name to create a fontset from a
14885 font name.
14886
14887 2008-02-01 Kenichi Handa <handa@m17n.org>
14888
14889 * syntax.c (Vfind_word_boundary_function_table): New name for
14890 Vnext_word_boundary_function_table.
14891 (find-word-boundary-function-table): New name for
14892 next-word-boundary-function-table.
14893
14894 2008-02-01 Dave Love <fx@gnu.org>
14895
14896 * Makefile.in: Fix some dependencies.
14897
14898 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
14899 set it to nil before returning.
14900
14901 * composite.c (update_compositions): Fix type error.
14902
14903 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
14904
14905 2008-02-01 Kenichi Handa <handa@m17n.org>
14906
14907 * xterm.c (x_new_font): Optimize for the case that the font is
14908 already set for the frame.
14909
14910 2008-02-01 Kenichi Handa <handa@m17n.org>
14911
14912 * chartab.c (char_table_ascii): Check if the char table contents
14913 is sub-char-table or not.
14914 (char_table_set, char_table_set_range): Fix argument to
14915 char_table_ascii.
14916
14917 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
14918 (detect_coding_utf_8, detect_coding_utf_16)
14919 (detect_coding_emacs_mule, detect_coding_iso_2022)
14920 (detect_coding_sjis, detect_coding_big5)
14921 (detect_coding_ccl, detect_coding_charset): Change argument MASK
14922 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
14923 sequence is valid in this coding system. Change callers.
14924 (MAX_ANNOTATION_LENGTH): New macro.
14925 (ADD_ANNOTATION_DATA): New macro.
14926 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
14927 ADD_ANNOTATION_DATA. Change the format of annotation data.
14928 (ADD_CHARSET_DATA): New macro.
14929 (emacs_mule_char): New argument ID. Change callers.
14930 (decode_coding_emacs_mule, decode_coding_iso_2022)
14931 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14932 Produce charset annotation data in coding->charbuf.
14933 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
14934 to charset annotation data in coding->charbuf.
14935 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
14936 coding->common_flags if the coding system is iso-2022 based and
14937 uses designation.
14938 (produce_composition): Adjust for the new annotation data format.
14939 (produce_charset): New function.
14940 (produce_annotation): Handle charset annotation.
14941 (handle_composition_annotation, handle_charset_annotation): New
14942 functions.
14943 (consume_chars): Handle charset annotation. Utilize the above two
14944 functions.
14945 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
14946 buffer, get the deleted text as a string and set
14947 coding->src_object to that string.
14948 (detect_coding, detect_coding_system): Use the new struct
14949 coding_detection_info.
14950
14951 * coding.h (struct coding_detection_info): New structure.
14952 (struct coding_system): Adjust prototype of the member `detector'.
14953 (CODING_ANNOTATE_CHARSET_MASK): New macro.
14954
14955 2008-02-01 Kenichi Handa <handa@m17n.org>
14956
14957 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
14958
14959 2008-02-01 Dave Love <fx@gnu.org>
14960
14961 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
14962 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
14963 to new local and nullify apropos_accumulate before returning.
14964 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
14965
14966 2008-02-01 Kenichi Handa <handa@m17n.org>
14967
14968 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
14969 correctly.
14970
14971 2008-02-01 Dave Love <fx@gnu.org>
14972
14973 * fns.c (Flanginfo): Call synchronize_system_time_locale.
14974
14975 2008-02-01 Kenichi Handa <handa@m17n.org>
14976
14977 The following changes are to make character composition happen
14978 automatically on displaying.
14979
14980 * Makefile.in (lisp, shortlisp): Add composite.elc.
14981
14982 * composite.h (Qauto_composed, Vauto_composition_function)
14983 (Qauto_composition_function): Extern them.
14984
14985 * composite.c (Vcomposition_function_table)
14986 (Qcomposition_function_table): Delete variables.
14987 (Qauto_composed, Vauto_composition_function)
14988 (Qauto_composition_function): New variables.
14989 (run_composition_function): Don't call
14990 compose-chars-after-function.
14991 (update_compositions): Clear `auto-composed' text property.
14992 (compose_chars_in_text): Delete this function.
14993 (syms_of_composite): Staticpro Qauto_composed and
14994 Qauto_composition_function. Declare Vauto_composition_function as
14995 a Lisp variable.
14996
14997 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
14998
14999 * xdisp.c (it_props): Add an entry for Qauto_composed.
15000 (handle_auto_composed_prop): New function.
15001
15002 * xselect.c (selection_data_to_lisp_data): Don't call
15003 compose_chars_in_text.
15004
15005 2008-02-01 Dave Love <fx@gnu.org>
15006
15007 * keyboard.c (read_char): Modify checking around use of
15008 Vkeyboard_translate_table.
15009
15010 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15011 and fix C types.
15012
15013 2008-02-01 Kenichi Handa <handa@m17n.org>
15014
15015 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15016 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15017 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15018 the case that the last byte is '\r' correctly.
15019 (decode_coding): Flush out the unprocessed data correctly.
15020 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15021
15022 2008-02-01 Dave Love <fx@gnu.org>
15023
15024 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15025 Add XK_ISO... case.
15026 (xaw_scroll_callback): Revert last change.
15027
15028 2008-02-01 Kenichi Handa <handa@m17n.org>
15029
15030 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15031
15032 2008-02-01 Kenichi Handa <handa@m17n.org>
15033
15034 * xfaces.c (Vface_resizing_fonts): New variable.
15035 (struct font_name): New member `resizing_ratio'.
15036 (font_resizing_ratio): New function.
15037 (split_font_name): Set font->resizing_ratio.
15038 (better_font_p): Pay attention to font->resizing_ratio.
15039 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15040 RESX, and RESY fields.
15041 (try_alternative_families): Try scalable fonts if
15042 Vscalable_fonts_allowed is not Qt.
15043 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15044
15045 2008-02-01 Dave Love <fx@gnu.org>
15046
15047 * xterm.c (xaw_scroll_callback): Cast correctly.
15048
15049 2008-02-01 Dave Love <fx@gnu.org>
15050
15051 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15052 (lispy_kana_keys): Comment out.
15053 (make_lispy_event) [XK_kana_A]: Comment out.
15054
15055 * xterm.c (xaw_scroll_callback): Cast call_data.
15056 (XTread_socket): Deal with ASCII keysyms.
15057 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15058
15059 2008-02-01 Dave Love <fx@gnu.org>
15060
15061 * xterm.c (Vx_keysym_table): New.
15062 (syms_of_xterm): Initialize it.
15063 (XTread_socket): Use it.
15064 From head: Eliminate incorrect optimization that tried to avoid
15065 decoding the output of X*LookupString.
15066 (x_get_font_repertory): Delete charset declaration.
15067
15068 2008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15071 return 0.
15072 (Fdefine_coding_system_internal): Setup
15073 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15074
15075 2008-02-01 Dave Love <fx@gnu.org>
15076
15077 * coding.c (Fcheck_coding_system): Doc fix.
15078
15079 * editfns.c (Finsert_byte): Return a proper value.
15080
15081 2008-02-01 Kenichi Handa <handa@m17n.org>
15082
15083 * coding.c (decode_coding): Fix args to translate_chars. Pay
15084 attention to Vstandard_translation_table_for_decode.
15085 (encode_coding): Fix args to translate_chars. Pay attention to
15086 Vstandard_translation_table_for_encode.
15087
15088 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15089 SINGLE_BYTE_CHAR_P.
15090
15091 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15092 not by SINGLE_BYTE_CHAR_P.
15093
15094 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15095 SINGLE_BYTE_CHAR_P.
15096
15097 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15098 SINGLE_BYTE_CHAR_P.
15099
15100 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15101 by SINGLE_BYTE_CHAR_P.
15102
15103 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15104 SINGLE_BYTE_CHAR_P.
15105
15106 2008-02-01 Dave Love <fx@gnu.org>
15107
15108 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15109
15110 2008-02-01 Dave Love <fx@gnu.org>
15111
15112 * fns.c (Flanginfo): Fix typo.
15113
15114 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15115
15116 2008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15119 (detect_coding_emacs_mule, detect_coding_iso_2022)
15120 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15121 incomplete byte sequence. Don't update *mask when correctly detected.
15122 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15123 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15124 (detect_coding, detect_coding_system): Adjust for the changes above.
15125
15126 2008-02-01 Kenichi Handa <handa@m17n.org>
15127
15128 * character.c (char_string): Rename from
15129 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15130 (string_char): Rename from string_char.
15131
15132 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15133 if C is greater than MAX_3_BYTE_CHAR.
15134 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15135 string_char instead of string_char_with_unification.
15136
15137 2008-02-01 Dave Love <fx@gnu.org>
15138
15139 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15140
15141 2008-02-01 Kenichi Handa <handa@m17n.org>
15142
15143 * keymap.c (push_key_description): Pay attention to force_multibyte.
15144
15145 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15146
15147 2008-02-01 Dave Love <fx@gnu.org>
15148
15149 * charset.c (define_charset_internal): Rename `supprementary'.
15150
15151 * Makefile.in (lisp, shortlisp): Remove latin-N.
15152
15153 2008-02-01 Dave Love <fx@gnu.org>
15154
15155 * xfns.c (x_window, x_window): Use use_xim.
15156
15157 * xterm.c (use_xim): Initialize.
15158 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15159 (x_term_init): Maybe set use_xim.
15160
15161 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15162
15163 2008-02-01 Kenichi Handa <handa@m17n.org>
15164
15165 * search.c (search_buffer): Fix case-fold-search of multibyte
15166 characters.
15167 (boyer_moore): Rename the last argument to char_high_bits.
15168
15169 2008-02-01 Kenichi Handa <handa@m17n.org>
15170
15171 * xdisp.c (display_string): Fix for the case of zero width glyph.
15172
15173 * xfns.c (x_set_font): Change the error message of the case that
15174 x_new_fontset returns Qt.
15175
15176 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15177 (Finternal_set_lisp_face_attribute): Use signal_error for the
15178 error of invalid fontset.
15179
15180 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15181 fontset, return Qt.
15182
15183 2008-02-01 Dave Love <fx@gnu.org>
15184
15185 * unexelf.c (unexec): Make .got handling not SGI-specific.
15186
15187 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15188
15189 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15190
15191 * keyboard.c (read_key_sequence): Fix type error.
15192
15193 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15194 type error.
15195
15196 * fontset.c (fontset_add): Return Lisp_Object.
15197
15198 2008-02-01 Dave Love <fx@gnu.org>
15199
15200 * charset.h (charset_ordered_list_tick): Declare extern.
15201
15202 2008-02-01 Kenichi Handa <handa@m17n.org>
15203
15204 The following changes (and some of 2008-02-01 changes of mine) are
15205 for handling syntax, category, and case conversion for unibyte
15206 characters by converting them to multibyte on the fly. With these
15207 changes, we don't have to setup syntax and case tables for unibyte
15208 characters in each language environment.
15209
15210 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15211 multibyte if necessary.
15212
15213 * bytecode.c (Fbyte_code): Likewise.
15214
15215 * character.h (LEADING_CODE_LATIN_1_MIN)
15216 (LEADING_CODE_LATIN_1_MAX): New macros.
15217 (unibyte_to_multibyte_table): Extern it.
15218 (unibyte_char_to_multibyte): New macro.
15219 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15220 (CHAR_LEADING_CODE): New macro.
15221 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15222
15223 * character.c (unibyte_to_multibyte_table): New variable.
15224 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15225 (multibyte_char_to_unibyte): If C is an eight-bit character,
15226 convert it to the corresponding byte value.
15227
15228 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15229 not 1, signals an error. Update the elements of
15230 unibyte_to_multibyte_table.
15231 (init_charset_once): Initialize unibyte_to_multibyte_table.
15232 (syms_of_charset): Define the charset `iso-8859-1'.
15233
15234 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15235 as is without converting it to unibyte. In a unibyte buffer,
15236 convert C to multibyte before checking the syntax.
15237
15238 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15239
15240 * minibuf.c (Fminibuffer_complete_word): Use the macro
15241 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15242
15243 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15244
15245 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15246 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15247 that is zero, convert an eight-bit char to multibyte.
15248 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15249 non-emacs case.
15250 (PATFETCH): Convert an eight-bit char to multibyte.
15251 (HANDLE_UNIBYTE_RANGE): New macro.
15252 (regex_compile): Setup the compiled pattern for multibyte chars
15253 even if the given regex string is unibyte. Use PATFETCH_RAW
15254 instead of PATFETCH in many places. To handle `charset'
15255 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15256 only for ASCII chars.
15257 (analyse_first) <exactn>: Simplify because the compiled pattern
15258 is multibyte.
15259 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15260 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15261 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15262 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15263 multibyte always 1.
15264 (re_search_2): In emacs, set the locale variable multibyte to 1,
15265 otherwise to 0. New local variable target_multibyte. Check it
15266 to decide the multibyteness of STR1 and STR2. If
15267 target_multibyte is zero, convert unibyte chars to multibyte
15268 before translating and checking fastmap.
15269 (TARGET_CHAR_AND_LENGTH): New macro.
15270 (re_match_2_internal): In emacs, set the locale variable multibyte
15271 to 1, otherwise to 0. New local variable target_multibyte. Check
15272 it to decide the multibyteness of STR1 and STR2. Use
15273 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15274 <charset, charset_not>: If multibyte is nonzero, check fastmap
15275 only for ASCII chars. Call bcmp_translate with
15276 target_multibyte, not with multibyte.
15277 <begline>: Declare the local variable C as `unsigned'.
15278 (bcmp_translate): Change the last arg name to target_multibyte.
15279
15280 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15281 the regexp pattern and the matching target. Set cp->buf.multibyte
15282 to the multibyteness of the regexp pattern. Set
15283 cp->but.target_multibyte to the multibyteness of the matching target.
15284 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15285 FETCH_STRING_CHAR_ADVANCE.
15286 (Freplace_match): Convert unibyte chars to multibyte.
15287
15288 * syntax.c (char_quoted, back_comment, scan_words)
15289 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15290 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15291 unibyte chars to multibyte.
15292 (skip_chars): Delete the arg syntaxp, and move the code for
15293 handling syntaxes to skip_syntaxes. Change callers.
15294 Fix the case that the multibyteness of STRING and the current
15295 buffer doesn't match.
15296 (skip_syntaxes): New function.
15297 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15298 SINGLE_BYTE_CHAR_P.
15299
15300 2008-02-01 Kenichi Handa <handa@m17n.org>
15301
15302 * xfaces.c (QCfontset): New variable.
15303 (LFACE_FONTSET): New macro.
15304 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15305 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15306 (Finternal_set_lisp_face_attribute)
15307 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15308 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15309 check also LFACE_FONTSET_INDEX.
15310 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15311 attrs[LFACE_FONT_INDEX].
15312 (syms_of_xfaces): Intern and staticpro QCfontset.
15313
15314 * dispextern.h (enum lface_attribute_index): New member
15315 LFACE_FONTSET_INDEX.
15316
15317 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15318
15319 2008-02-01 Kenichi Handa <handa@m17n.org>
15320
15321 * coding.c (coding_set_destination): Fix coding->destination for
15322 the case converting a region.
15323 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15324 (encode_coding_object): Fix coding->dst_pos and
15325 coding->dst_pos_byte for the case converting a region.
15326
15327 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15328
15329 * character.h (BYTE8_STRING): New macro.
15330
15331 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15332
15333 2008-02-01 Kenichi Handa <handa@m17n.org>
15334
15335 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15336 characters by octal form.
15337
15338 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15339
15340 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15341 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15342 _fetch_multibyte_char_len.
15343 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15344
15345 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15346
15347 * casefiddle.c (casify_object): Simplify. Handle the case that
15348 the case conversion change the byte length.
15349 (casify_region): Likewise.
15350
15351 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15352
15353 * character.c (_fetch_multibyte_char_len): Delete this variable.
15354 (syms_of_character): Setup Vprintable_chars.
15355
15356 * editfns.c (Fchar_equal): Fix for the unibyte case.
15357 (Finsert_byte): New function.
15358 (syms_of_editfns): Defsubr it.
15359
15360 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15361 of direct code 0x3ffff.
15362
15363 * search.c (Freplace_match): Fix for the unibyte case.
15364
15365 2008-02-01 Kenichi Handa <handa@m17n.org>
15366
15367 * lread.c (safe_to_load_p): Fix the logic.
15368
15369 * syntax.c (scan_words): Don't treat characters belonging to
15370 different scripts as constituting a word.
15371
15372 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15373
15374 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15375
15376 * emacs.c (main): In the case of --unibyte, instead of aborting on
15377 finding non-empty buffer, make it unibyte.
15378
15379 2008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15382 to create a fontset.
15383
15384 2008-02-01 Dave Love <fx@gnu.org>
15385
15386 * character.c (Funibyte_char_to_multibyte): Doc fix.
15387
15388 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15389
15390 2008-02-01 Kenichi Handa <handa@m17n.org>
15391
15392 * fontset.c (fontset_add): Make the type `int'.
15393 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15394
15395 * character.c (unibyte_char_to_multibyte)
15396 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15397 charset_unibyte, not charset_primary.
15398
15399 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15400
15401 * charset.c (charset_unibyte): Rename from charset_primary.
15402 (Funibyte_charset): Rename from Fprimary_charset.
15403 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15404 (syms_of_charset): Adjust for the above changes.
15405
15406 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15407 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15408 it->multibyte_p is zero.
15409
15410 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15411 Delete extern.
15412
15413 2008-02-01 Kenichi Handa <handa@m17n.org>
15414
15415 * coding.c (Fdefine_coding_system_internal): Fix category setting
15416 for a coding system of type iso-2022.
15417
15418 2008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15421
15422 2008-02-01 Kenichi Handa <handa@m17n.org>
15423
15424 * syntax.c (Vnext_word_boundary_function_table): New variable.
15425 (next-word-boundary-function-table): Declare it as a Lisp variable
15426 in syms_of_syntax.
15427 (scan_words): Call functions in Vnext_word_boundary_function_table
15428 if any.
15429
15430 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15431
15432 * fontset.c (fs_load_font): If fontp->charset is not negative,
15433 return fontp without setting its members.
15434
15435 2008-02-01 Dave Love <fx@gnu.org>
15436
15437 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15438
15439 * m/sparc.h (HAVE_ALLOCA): Delete.
15440
15441 * s/irix6-5.h: Don't include strings.h.
15442 (bcopy, bzero, bcmp): Don't undef.
15443
15444 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15445
15446 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15447 (TIOCSIGSEND): Don't test IRIX6.
15448 (bcopy, bzero, bcmp): Define conditionally.
15449
15450 2008-02-01 Kenichi Handa <handa@m17n.org>
15451
15452 * buffer.c (Qas, Qmake, Qto): New variables.
15453 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15454 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15455
15456 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15457 we are inserting a process output into a multibyte buffer.
15458
15459 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15460 multibyte_char_to_unibyte.
15461
15462 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15463 by the primary charset, make it eight-bit char.
15464 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15465
15466 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15467 (charset_8_bit__control, charset_8_bit_graphic)
15468 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15469 (define_charset_internal): New function.
15470 (syms_of_charset): Call define_charset_internal for pre-defined
15471 charsets.
15472
15473 * charset.h (charset_8_bit): Extern it.
15474
15475 * coding.c (make_conversion_work_buffer): Adjust for the change
15476 of Fset_buffer_multibyte.
15477 (encode_coding_raw_text): Increment p0 in the loop.
15478
15479 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15480
15481 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15482 for the change of Fset_buffer_multibyte.
15483
15484 * fns.c (Fstring_to_multibyte): New function.
15485 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15486
15487 2008-02-01 Dave Love <fx@gnu.org>
15488
15489 * xfns.c (x_put_x_image): Declare args.
15490
15491 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15492 (try_font_list): Declare an arg.
15493
15494 * xdisp.c (message2_nolog, set_message): Declare an arg.
15495
15496 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15497
15498 * syntax.c (scan_sexps_forward): Declare an arg.
15499
15500 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15501 Declare an arg.
15502
15503 * lisp.h (Fnew_fontset): Declare.
15504
15505 * keymap.c (push_key_description): Call CHARACTERP correctly.
15506
15507 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15508 (face_for_char): Delete unused vars.
15509 (Fset_fontset_font): Doc fix. Delete unused vars.
15510
15511 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15512
15513 * composite.c (update_compositions): Declare arg.
15514
15515 * cm.c (calccost, cmgoto): Declare args.
15516
15517 * charset.c: Remove `emacs' conditional. Doc fixes.
15518 (map_char_table_for_charset): Declare.
15519
15520 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15521
15522 * ccl.c: Remove `emacs' conditional.
15523
15524 2008-02-01 Kenichi Handa <handa@m17n.org>
15525
15526 The following changes are to allow specifying multiple font
15527 patterns for a character range (specified by script or charset).
15528
15529 * Makefile.in (abbrev.o): Depend on syntax.h.
15530 (xfaces.o): Depend on charset.h.
15531
15532 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15533 SINGLE_BYTE_CHAR_P.
15534
15535 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15536
15537 * character.h (Vchar_script_table): Extern it.
15538
15539 * character.c (Vscript_alist): Delete.
15540 (Vchar_script_table, Qchar_script_table): New variable.
15541 (syms_of_character): Declare Vchar_script_table as a lisp variable
15542 and initialize it.
15543
15544 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15545 have property char-table-extra-slots, make no extra slot.
15546
15547 * dispextern.h (struct face): Delete member `charset'.
15548 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15549 SINGLE_BYTE_CHAR_P.
15550 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15551 Add prototypes.
15552 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15553 (generate_ascii_font_name): Rename from generate_ascii_font.
15554
15555 * fontset.h (get_font_repertory_func): New prototype.
15556 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15557 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15558
15559 * fontset.c (Qprepend, Qappend): New variables.
15560 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15561 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15562 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15563 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15564 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15565 (load_font_get_repertory): New functions.
15566 (fontset_set): Delete.
15567 (fontset_face): New arg FACE. Return face ID, not face.
15568 Complete re-write to handle new fontset structure. Change caller.
15569 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15570 (face_for_char): Don't call lookup_face.
15571 (make_fontset_for_ascii_face): New arg FACE.
15572 (fs_load_font): New arg CHARSET_ID. Don't check
15573 Vfont_encoding_alist here.
15574 (find_font_encoding): New function.
15575 (list_fontsets): Use STRINGP, not ! NILP.
15576 (accumulate_script_ranges): New function.
15577 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15578 re-written to handle new fontset structure.
15579 (Ffontset_font): Return a copy of element.
15580 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15581 docstring of font-encoding-alist.
15582
15583 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15584 (Fset_fotset_font): Fix arguments to 5.
15585
15586 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15587
15588 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15589 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15590 (highlight_trailing_whitespace): Adjust for the change of
15591 lookup_named_face.
15592
15593 * xfaces.c: Include charset.h.
15594 (load_face_font): Delete argument C. Change caller.
15595 (generate_ascii_font_name): Rename from generate_ascii_font.
15596 (font_name_registry): New function.
15597 (cache_face): Store ascii faces before non-ascii faces in buckets.
15598 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15599 Lookup only ascii faces.
15600 (lookup_non_ascii_face): New function.
15601 (lookup_named_face): Delete argument C. Change caller.
15602 (lookup_derived_face): Delete argument C. Change caller.
15603 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15604 a string, just call font_list with it.
15605 (choose_face_font): Delete arguments FACE and C. New arg
15606 FONT_SPEC. Change caller.
15607 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15608 Change caller.
15609 (realize_non_ascii_face): New function.
15610 (realize_x_face): Call load_face_font here.
15611 (realize_tty_face): Delete argument C. Change caller.
15612 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15613 get a face ID.
15614 (dump_realized_face): Don't print charset of FACE.
15615
15616 * xfns.c (x_set_font): Always call x_new_fontset and
15617 store_frame_parameter.
15618 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15619 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15620
15621 * xterm.h (x_get_font_repertory): Extern it.
15622
15623 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15624 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15625 it->multibyte_p is zero.
15626 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15627 (x_new_fontset): If FONTSETNAME doesn't match any existing
15628 fontsets, create a new one.
15629 (x_get_font_repertory): New function.
15630
15631 2008-02-01 Kenichi Handa <handa@m17n.org>
15632
15633 * coding.c (Ffind_coding_systems_region_internal): Detect an
15634 ASCII only string correctly.
15635
15636 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15637 version is 0.
15638
15639 2008-02-01 Kenichi Handa <handa@m17n.org>
15640
15641 * lread.c: Include "coding.h".
15642 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15643 (load_each_byte, unread_char): New variables.
15644 (readchar_backlog): Delete.
15645 (readchar): Return a character unless load_each_byte is nonzero.
15646 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15647 cons. If unread_char is not -1, simply return it.
15648 (unreadchar): Handle the case that readcharfun is
15649 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15650 (read_multibyte): Delete.
15651 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15652 (read_emacs_mule_char): New functions.
15653 (Fload): Even if the file doesn't have the extension ".elc", if
15654 safe_to_load_p returns a positive version number, assume that the
15655 file contains bytecompiled code. If the version is less than 22,
15656 load the file while decoding multibyte sequences by emacs-mule.
15657 (readevalloop): Don't use readchar_backlog.
15658 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15659 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15660 (read_escape): Delete the arg BYTEREP.
15661 (read1): Set load_each_byte to 1 temporarily while handling
15662 #@NUMBER. Don't call read_multibyte.
15663 (read_vector): Call Fread with a cons. If readcharfun is
15664 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15665 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15666 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15667 and Qload_force_doc_strings.
15668
15669 2008-02-01 Kenichi Handa <handa@m17n.org>
15670
15671 * xdisp.c (face_before_or_after_it_pos): Call
15672 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15673
15674 2008-02-01 Kenichi Handa <handa@m17n.org>
15675
15676 * character.h (TRAILING_CODE_P): New macro.
15677 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
15678 (string_char_with_unification): Fix prototype.
15679 (Vscript_alist): Extern it.
15680
15681 * character.c (Vscript_alist): New variable.
15682 (string_char_with_unification, str_as_unibyte)
15683 (string_escape_byte8): Add `const' to local variables.
15684 (syms_of_character): Declare script-alist as a Lisp variable.
15685
15686 * charset.h (Vcharset_ordered_list): Extern it.
15687 (charset_ordered_list_tick): Extern it.
15688 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
15689 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
15690 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
15691 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
15692 (Funify_charset): Adjust for the change of Funify_charset.
15693
15694 * charset.c (charset_ordered_list_tick): New variable.
15695 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
15696 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
15697 deunify intead of unify a charset.
15698 (string_xstring_p): Add `const' to local variables.
15699 (find_charsets_in_text): Add `const' to arguments and local variables.
15700 (encode_char): Adjust for the change of Funify_charset. Fix
15701 detecting of invalid code.
15702 (Fset_charset_priority): Increment charset_ordered_list_tick.
15703 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
15704 and TO_CODE.
15705
15706 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
15707 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
15708 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
15709 (decode_coding_ccl, consume_chars)
15710 (Ffind_coding_systems_region_internal)
15711 (Fcheck_coding_systems_region): Add `const' to local variables.
15712
15713 * print.c (print_object): Use octal form for printing the
15714 contents of a bool vector.
15715
15716 2008-02-01 Dave Love <fx@gnu.org>
15717
15718 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
15719 <version == 20>: Refuse to load.
15720
15721 2008-02-01 Dave Love <fx@gnu.org>
15722
15723 * fns.c: Move coding.h.
15724 (Qcodeset, Qdays, Qmonths): New.
15725 (concat): Use CHARACTERP instead of INTEGERP.
15726 (Flocale_codeset): Delete.
15727 (Flanginfo): New function.
15728 (syms_of_fns): Change accordingly.
15729
15730 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
15731
15732 2008-02-01 Dave Love <fx@gnu.org>
15733
15734 * casetab.c (init_casetab_once, init_casetab_once): Fix
15735 CHAR_TABLE_SET call.
15736
15737 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
15738
15739 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
15740
15741 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
15742 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
15743 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
15744
15745 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
15746
15747 * coding.c (ENCODE_DESIGNATION, decode_eol)
15748 (make_conversion_work_buffer, code_conversion_restore)
15749 (Fdefine_coding_system_internal): Convert Lisp types.
15750 (code_conversion_restore): Use EQ, not ==.
15751 (Fencode_coding_string): Fix code_convert_string call.
15752
15753 * coding.h (code_convert_region): Fix prototype.
15754
15755 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
15756
15757 * fontset.c (fontset_ref, fontset_set, fs_load_font)
15758 (Ffontset_info): Convert Lisp types.
15759
15760 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
15761
15762 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
15763
15764 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
15765
15766 * chartab.c: Include "...h", not <...h> in some cases.
15767
15768 * callproc.c (Fcall_process): Remove unused variables.
15769
15770 2008-02-01 Dave Love <fx@gnu.org>
15771
15772 * coding.c (Fset_coding_system_priority): Allow null arg list.
15773
15774 2008-02-01 Dave Love <fx@gnu.org>
15775
15776 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15777 (Fself_insert_and_exit): Use CHARACTERP.
15778
15779 * callproc.c (Fcall_process): Remove unused vars.
15780
15781 * xterm.c (XTread_socket): Add extra dead keysyms.
15782
15783 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
15784
15785 * dispextern.h: Remove prototypes for redraw_frame,
15786 redraw_garbaged_frames.
15787
15788 * cmds.c (Fself_insert_command): Use CHARACTERP.
15789
15790 * chartab.c (make_sub_char_table): Remove unused var.
15791 (Fset_char_table_default, Fmap_char_table): Doc fix.
15792
15793 * keymap.c (access_keymap): Remove generic char code.
15794 (push_key_description): Use CHARACTERP.
15795
15796 2008-02-01 Dave Love <fx@gnu.org>
15797
15798 * charset.c: Doc fixes.
15799 (Funify_charset): Extra checking.
15800
15801 2008-02-01 Dave Love <fx@gnu.org>
15802
15803 * lread.c: Remove some unused variables.
15804 (safe_to_load_p): If safe, return the magic number version byte.
15805 (Fload): Maybe use load-with-code-conversion.
15806
15807 2008-02-01 Kenichi Handa <handa@m17n.org>
15808
15809 * category.c (Fmodify_category_entry): Don't modify the contents
15810 of category_set for characters out of the range. Avoid
15811 unnecessary modification.
15812
15813 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
15814 Vchar_unify_table. The default value of the table is now nil.
15815
15816 * character.c (syms_of_character): Setup Vchar_width_table for
15817 eight-bit-control and raw-byte chars.
15818
15819 * charset.h (enum define_charset_arg_index): Delete
15820 charset_arg_parents and add charset_arg_subset and
15821 charset_arg_superset.
15822 (enum charset_attr_index): Delete charset_parents and add
15823 charset_subset and charset_superset.
15824 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
15825 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
15826 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
15827 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
15828 (CHARSET_SUPERSET): New macros.
15829 (charset_work): Extern it.
15830 (ENCODE_CHAR): Use charset_work.
15831 (CHAR_CHARSET_P): Adjust for the change of encoder format.
15832 (map_charset_chars): Extern it.
15833
15834 * charset.c (load_charset_map): Set the default value of encoder
15835 and deunifier char-tables to nil.
15836 (map_charset_chars): Change argument. Change callers. Use
15837 map_char_table_for_charset instead of map_char_table.
15838 (Fmap_charset_chars): New optional args from_code and to_code.
15839 (Fdefine_charset_internal): Adjust for the change of
15840 `define-charset' (:parents -> :subset or :superset).
15841 (charset_work): New variable.
15842 (encode_char, syms_of_charset): Adjust for the change of
15843 Fdefine_charset_internal.
15844 (Ffind_charset_string): Setup the vector `charsets' correctly.
15845
15846 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
15847 the previous change.
15848 (char_table_ref_and_range): Adjust for the above change.
15849 (map_sub_char_table_for_charset): New function.
15850 (map_char_table_for_charset): New function.
15851
15852 * keymap.c (describe_vector): Handle a char-table directly here.
15853 (describe_char_table): Delete.
15854
15855 * lisp.h (map_charset_chars): Delete.
15856
15857 2008-02-01 Dave Love <fx@gnu.org>
15858
15859 * fns.c (count_combining): Comment out (unused).
15860 (Flocale_codeset): New.
15861 (syms_of_fns): Defsubr it.
15862
15863 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
15864 (size_t): Remove.
15865
15866 2008-02-01 Dave Love <fx@gnu.org>
15867
15868 * Makefile.in (chartab.o): Depend on charset.h.
15869
15870 2008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * character.c (syms_of_character): Set the default value of
15873 Vprintable_chars to Qnil.
15874
15875 2008-02-01 Dave Love <fx@gnu.org>
15876
15877 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
15878
15879 2008-02-01 Kenichi Handa <handa@m17n.org>
15880
15881 * charset.c (load_charset_map): Handle the case that from < to
15882 correctly.
15883
15884 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
15885 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
15886 Pay attention to raw-8-bit chars.
15887
15888 2008-02-01 Kenichi Handa <handa@m17n.org>
15889
15890 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
15891 It is not bytecompiled now.
15892
15893 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
15894 (charset_jisx0208): New variables.
15895 (Fdefine_charset_internal): Setup them if appropriate.
15896 (init_charset_once): Initialize them to -1.
15897
15898 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
15899 (charset_jisx0208): Extern them.
15900
15901 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
15902 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
15903 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
15904 (setup_iso_safe_charsets): Fix arguments to Fassq.
15905 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
15906 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
15907 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
15908 (encode_coding_iso_2022): Change the 1st arg to
15909 ENCODE_ISO_CHARACTER to a variable.
15910
15911 2008-02-01 Kenichi Handa <handa@m17n.org>
15912
15913 * charset.h (enum define_charset_arg_index): New enums
15914 charset_arg_min_code and charset_arg_max_code.
15915 (struct charset): New member char_index_offset.
15916
15917 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
15918 Take charset->char_index_offset into account.
15919 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
15920 args[charset_arg_max_code]. Setup charset.char_index_offset.
15921 (syms_of_charset): Fix args to Fdefine_charset_internal.
15922
15923 2008-02-01 Dave Love <fx@gnu.org>
15924
15925 * coding.c (decode_coding_utf_8): Reject overlong sequences.
15926
15927 2008-02-01 Dave Love <fx@gnu.org>
15928
15929 * coding.c: Doc fixes.
15930 (Fcoding_system_aliases): Fix return value.
15931 (Qmac): Remove (duplicated) definition.
15932
15933 2008-02-01 Dave Love <fx@gnu.org>
15934
15935 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
15936 functions.
15937
15938 * character.c (Fstring): Doc fix.
15939
15940 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
15941
15942 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
15943 ids.
15944 (font-encoding-alist): Doc fix.
15945
15946 2008-02-01 Dave Love <fx@gnu.org>
15947
15948 * term.c (costs_set): Declare static, non-initialized for pcc.
15949 (encode_terminal_code): Remove unused var.
15950
15951 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15952 for K&R.
15953
15954 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
15955
15956 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
15957 (suffixes): Move out of make_subsidiaries for K&R.
15958
15959 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
15960
15961 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
15962
15963 2008-02-01 Dave Love <fx@gnu.org>
15964
15965 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
15966
15967 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
15968
15969 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
15970
15971 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
15972
15973 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
15974
15975 2008-02-01 Kenichi Handa <handa@m17n.org>
15976
15977 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
15978 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
15979
15980 2008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * coding.c (decode_coding_charset): Adjust for the change of
15983 Fdefine_coding_system_internal.
15984 (Fdefine_coding_system_internal): For a coding system of
15985 `charset' type, store a list of charset IDs in
15986 `charset_attr_charset_valids' element of coding attributes.
15987
15988 2008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
15991 (emacs_mule_char): New arg src. Delete arg `composition'. Change
15992 caller. Handle 2-byte and 3-byte charsets correctly.
15993 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
15994 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
15995 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
15996 (DECODE_EMACS_MULE_21_COMPOSITION): Call
15997 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
15998 sequence.
15999 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16000 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16001 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16002 and alt&rule composition.
16003 (decode_coding_iso_2022): Handle composition correctly.
16004 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16005
16006 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16007 re-defining a charset. If the charset has :emacs-mule-id, setup
16008 emacs_mule_bytes.
16009 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16010
16011 2008-02-01 Kenichi Handa <handa@m17n.org>
16012
16013 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16014 (encode_coding_big5, encode_coding_charset): If coding requires safe
16015 encoding, produce a character specified by
16016 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16017
16018 2008-02-01 Dave Love <fx@gnu.org>
16019
16020 * xterm.c (XSetIMValues): Declare.
16021
16022 * process.c: Conditionally include sys/wait.h, pty.h.
16023
16024 * print.c (print_object): Fix print format for 64-bit systems.
16025
16026 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16027
16028 * buffer.c (emacs_strerror): Declare.
16029
16030 * fontset.c (Fclear_face_cache): Declare.
16031 (accumulate_font_info): Comment-out (unused).
16032 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16033 variables.
16034
16035 * character.h (string_escape_byte8): Declare.
16036
16037 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16038 unused vars.
16039 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16040 (Fmap_charset_chars): Doc fix.
16041
16042 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16043 (Fset_coding_system_priority, Fset_coding_system_priority)
16044 (Fdefine_coding_system_internal): Doc fix.
16045
16046 2008-02-01 Dave Love <fx@gnu.org>
16047
16048 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16049
16050 2008-02-01 Kenichi Handa <handa@m17n.org>
16051
16052 * character.c (string_escape_byte8): Make multibyte string with
16053 correct size.
16054
16055 * charset.c (Fmake_char): Delete unnecessary code.
16056
16057 2008-02-01 Kenichi Handa <handa@m17n.org>
16058
16059 * xfns.c (x_encode_text): Allocate coding.destination here, and
16060 call encode_coding_object with dst_object Qnil.
16061
16062 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16063 multibyte form correctly.
16064
16065 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16066 against Vfont_encoding_alist.
16067
16068 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16069 handling of charset list.
16070 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16071 (decode_coding_object): Move point to coding->dst_pos before
16072 calling post-read-conversion function.
16073 (encode_coding_object): Give correct arguments to
16074 pre-write-conversion. Ignore the return value of
16075 pre-write-conversion function. Pay attention to the case that
16076 pre-write-conversion changes the current buffer. If dst_object is
16077 Qt, even if coding->src_bytes is zero, allocate at least one byte
16078 to coding->destination.
16079
16080 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16081
16082 * charset.c (Fmake_char): Make it more backward compatible.
16083 (Fmap_charset_chars): Fix docstring.
16084
16085 2008-02-01 Dave Love <fx@gnu.org>
16086
16087 * coding.c: Doc fixes.
16088 (Fdefine_coding_system_alias): Use names, not symbols, in
16089 coding-system-alist.
16090
16091 2008-02-01 Kenichi Handa <handa@m17n.org>
16092
16093 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16094 of calling free_realized_face.
16095
16096 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
16097
16098 * charset.c (read_hex): Don't treat SPC as a comment starter.
16099 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16100 (Fdecode_char): Fix typo.
16101
16102 2008-02-01 Kenichi Handa <handa@m17n.org>
16103
16104 * charset.h (struct charset): New member `code_space_mask'.
16105
16106 * coding.c (coding_set_source): Delete the local variable beg_byte.
16107 (encode_coding_charset, Fdefine_coding_system_internal):
16108 Delete the local variable charset.
16109 (Fdefine_coding_system_internal): Setup
16110 attrs[coding_attr_charset_valids] correctly.
16111
16112 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16113 member to check if CODE is valid or not.
16114 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16115 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16116 is within the range of charset->min_code and carset->max_code.
16117
16118 2008-02-01 Dave Love <fx@gnu.org>
16119
16120 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16121
16122 * dispextern.h (generate_ascii_font): Fix return type.
16123
16124 * xfaces.c (generate_ascii_font): Fix arg declaration.
16125
16126 * coding.c (coding_inherit_eol_type)
16127 (Fset_terminal_coding_system_internal)
16128 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16129
16130 2008-02-01 Kenichi Handa <handa@m17n.org>
16131
16132 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16133 multiple charsets correctly.
16134
16135 2008-02-01 Kenichi Handa <handa@m17n.org>
16136
16137 * search.c (boyer_moore): Fix handling of multibyte character
16138 translation.
16139
16140 * xdisp.c (display_mode_element): When the variable `elt' is
16141 changed, update `this' and `lisp_string'.
16142
16143 2008-02-01 Kenichi Handa <handa@m17n.org>
16144
16145 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16146
16147 * callproc.c (Fcall_process): Be sure to give the current buffer
16148 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16149
16150 * charset.c (struct charset_map_entries): New struct.
16151 (load_charset_map): Rename from parse_charset_map. New args
16152 entries and n_entries. Change caller.
16153 (load_charset_map_from_file): Rename from load_charset_map.
16154 Change caller. New arg control_flag. Call load_charset_map at
16155 the tail.
16156 (load_charset_map_from_vector): New function.
16157 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16158 (encode_char): If the charset is compact, change a character index
16159 to a code point.
16160
16161 * coding.c (coding_alloc_by_making_gap): Check the case that the
16162 source and destination are the same correctly.
16163 (decode_coding_raw_text): Set coding->consumed_char and
16164 coding->consumed to 0.
16165 (produce_chars): If coding->chars_at_source is nonzero, update
16166 coding->consumed_char and coding->consumed before calling
16167 alloc_destination.
16168 (Fdefine_coding_system_alias): Register ALIAS in
16169 Vcoding_system_alist.
16170 (syms_of_coding): Define `no-conversion' coding system at the tail.
16171
16172 * fileio.c (Finsert_file_contents): Set coding_system instead of
16173 val. If the current buffer is multibyte, always call
16174 decode_coding_gap.
16175
16176 * xfaces.c (try_font_list): Give higher priority to fontset's
16177 family than face's family.
16178
16179 2008-02-01 Kenichi Handa <handa@m17n.org>
16180
16181 * callproc.c (Fcall_process): Be sure to give the current buffer
16182 to decode_coding_c_string.
16183
16184 * xfaces.c (try_font_list): Give a family specified in a fontset
16185 higher priority than a family specified in a face.
16186
16187 2008-02-01 Kenichi Handa <handa@m17n.org>
16188
16189 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16190 Fix arguments to insert_from_buffer.
16191
16192 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16193
16194 2008-02-01 Kenichi Handa <handa@m17n.org>
16195
16196 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16197 (decode_coding_gap): Set coding->dst_multibyte correctly.
16198
16199 2008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16202 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16203 (encode_coding_utf_16): Substitute coding->default_char for
16204 non-Unicode characters.
16205 (decode_coding): Don't call record_insert here.
16206 (setup_coding_system): Initialize `surrogate' of
16207 coding->spec.utf_16 to 0.
16208 (EMIT_ONE_BYTE): Fix for multibyte case.
16209
16210 * insdel.c (insert_from_gap): Call record_insert.
16211
16212 2008-02-01 Kenichi Handa <handa@m17n.org>
16213
16214 * casefiddle.c (casify_region): Fix multibyte case.
16215
16216 * character.c (c_string_width): Add return type `int'.
16217 (char_string_with_unification): Delete arg ADVANCED.
16218
16219 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16220 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16221 (CHAR_STRING_ADVANCE): Make it do-while statement.
16222
16223 * chartab.c (sub_char_table_set_range): Optimize for the case
16224 DEPTH == 3. Add workaround code for a GCC optimization bug.
16225
16226 * charset.c (parse_charset_map): Remove an unused variable.
16227
16228 * coding.c: Delete unused variables.
16229
16230 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16231 earlier. If inserted is zero and the coding system doesn't
16232 require flushing, don't call decode_coding_gap.
16233
16234 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16235
16236 2008-02-01 Kenichi Handa <handa@m17n.org>
16237
16238 The following changes are for using Unicode as an internal
16239 character model, and use UTF-8 format for buffer/string
16240 representation.
16241
16242 * .gdbinit (xchartable): Adjust for the change of char table structure.
16243 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16244
16245 * Makefile.in (obj): Add character.o and chartab.o.
16246 (lisp, shortlisp): Remove utf-8.elc.
16247 (*.o): For many files, change dependency on charset.h to
16248 character.h, and add dependency on character.h.
16249 (character.o, chartab.o): New targets.
16250
16251 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16252 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16253 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16254 of "charset.h".
16255
16256 * dired.c, filelock.c: Include "character.h".
16257
16258 * alloc.c: Include "character.h" instead of "charset.h".
16259 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16260 (syms_of_alloc): Remove defsubr for Smake_char_table.
16261
16262 * buffer.c: Include "character.h" instead of "charset.h", don't
16263 include "coding.h".
16264 (Fset_buffer_multibyte): Adjust for UTF-8.
16265
16266 * buffer.h: EXFUN Fbuffer_live_p.
16267
16268 * callproc.c: Include "character.h" instead of "charset.h".
16269 (Fcall_process): Big change for the new code-conversion APIs.
16270
16271 * casetab.c: Include "character.h" instead of "charset.h".
16272 (set_canon, set_identity, shuffle): Adjust for the new
16273 map_char_table spec.
16274 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16275 accessing the char table structure.
16276
16277 * chartab.c: New file that implements char table.
16278
16279 * category.c: Include "character.h".
16280 (copy_category_entry): New function.
16281 (copy_category_table): Call map_char_table and copy_category_entry.
16282 (Fmake_category_table): Initialize all top-level slots.
16283 (char_category_set): New function.
16284 (modify_lower_category_set): Delete.
16285 (Fmodify_category_entry): Call char_table_ref_and_range.
16286
16287 * category.h (CATEGORY_SET): Just call char_category_set.
16288
16289 * ccl.c: Include "character.h".
16290 (Qccl, Qcclp): New variables.
16291 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16292 it's less than 256.
16293 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16294 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16295 and DST type.
16296 (ccl_driver): Change types of argument, adjust code accordingly.
16297 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16298 ccl_driver.
16299 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16300
16301 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16302 New members src_multibyte, dst_multibyte, consumed, and produced.
16303 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16304 (CODING_SPEC_CCL_PROGRAM): New macro.
16305 (ccl_driver): Update prototype.
16306 (Qccl, Qcclp, Fccl_program_p): Extern them.
16307 (CHECK_CCL_PROGRAM): New macro.
16308
16309 * character.c, character.h, chartab.c: New files.
16310
16311 * charset.c: Mostly re-written. Move character and multibyte sequence
16312 handling codes to character.c.
16313
16314 * charset.h: Mostly re-written. Move character and multibyte sequence
16315 handling codes to character.h.
16316
16317 * coding.c, coding.h: Mostly re-written.
16318
16319 * composite.c: Include "character.h" instead of "charset.h".
16320 (CHAR_WIDTH): Move to character.h.
16321 (HASH_KEY, HASH_VALUE): Delete.
16322
16323 * composite.h (enum composition_method): Change order of enumeration
16324 symbols.
16325
16326 * data.c: Include "character.h" instead of "charset.h".
16327 (Faref): Call CHAR_TABLE_REF for a char table.
16328 (Faset): Call CHAR_TABLE_SET for a char table.
16329
16330 * dispextern.h (free_realized_face, check_face_attribytes)
16331 (generate_ascii_font): Extern them.
16332 (free_realized_multibyte_face): Delete extern.
16333
16334 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16335 table structure.
16336
16337 * editfns.c: Include "character.h" instead of "charset.h".
16338 (Fchar_to_string): Always call CHAR_STRING.
16339
16340 * emacs.c (main): Call init_charset_once, init_charset,
16341 syms_of_chartab, and syms_of_character.
16342
16343 * fileio.c: Include "character.h" instead of "charset.h".
16344 (Finsert_file_contents): Big change for the new code-conversion API.
16345 (choose_write_coding_system, Fwrite_region): Likewise.
16346 (build_annotations_2): Delete.
16347 (e_write): Big change for the new code-conversion API.
16348
16349 * fns.c: Include "character.h" instead of "charset.h".
16350 (copy_sub_char_table): Move to chartab.c.
16351 (Fcopy_sequence): Call copy_char_table for a char table.
16352 (concat): Delete codes calling count_multibyte.
16353 (string_char_to_byte, string_byte_to_char): Adjust for the new
16354 multibyte form.
16355 (internal_equal): Adjust for the change of char table structure.
16356 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16357 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16358 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16359 (char_table_translate, optimize_sub_char_table)
16360 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16361 chartab.c.
16362 (char_table_ref_and_index): Delete.
16363 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16364 (Fmd5): Call preferred_coding_system instead of accessing
16365 Vcoding_category_list. Adjust for the new code-conversion API.
16366 (syms_of_fns): Move defsubr for char table related functions to
16367 chartab.c.
16368
16369 * fontset.c: Mostly re-written.
16370
16371 * fontset.h (struct font_info): Change type of the member encoding_type.
16372 (enum FONT_SPEC_INDEX): New enum.
16373 (fontset_font_pattern, fs_load_font): Update prototype.
16374 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16375
16376 * indent.c: Include "character.h" instead of "charset.h".
16377 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16378
16379 * insdel.c: Include "character.h" instead of "charset.h".
16380 (copy_text): Don't refer to Vnonascii_translation_table.
16381 (insert_from_gap): New function.
16382
16383 * keyboard.c: Include "character.h" instead of "charset.h".
16384 (command_loop_1): Never call direct_output_forward_char before
16385 a non-ASCII character.
16386 (read_char): If Vkeyboard_translate_table is a char table, always
16387 translate a character.
16388
16389 * keymap.c: Include "character.h".
16390 (store_in_keymap): Handle the case that IDX is a cons.
16391 (Fdefine_key): Handle the case that KEY is a cons and the car part
16392 is also a cons (range).
16393 (push_key_description): Adjust for the new character code.
16394 (describe_vector): Call describe_char_table for a char table.
16395 (describe_char_table): New function.
16396
16397 * keymap.h (describe_char_table): Extern it.
16398
16399 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16400 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16401 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16402 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16403 Delete.
16404 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16405 structure.
16406 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16407 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16408 (CHARTAB_SIZE_BITS_3): New macros.
16409 (chartab_size): Extern it.
16410 (struct Lisp_Char_Table): Re-design.
16411 (struct Lisp_Sub_Char_Table): New structure.
16412 (HASH_KEY, HASH_VALUE): Move from fns.c.
16413 (CHARACTERBITS): Define as 22.
16414 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16415 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16416 (GC_SUB_CHAR_TABLE_P): New macro.
16417 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16418 (code_convert_string_norecord): Deleted extern.
16419 (init_character_once, syms_of_character, init_charset)
16420 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16421
16422 * lread.c: Include "character.h".
16423 (read_multibyte): New arg NBYTES.
16424 (read_escape): Change the meaning of returned *BYTEREP.
16425 (to_multibyte): Delete.
16426 (read1): Adjust the handling of char table and string.
16427
16428 * print.c: Include "character.h" instead of "charset.h".
16429 (print_string): Convert 8-bit raw bytes to octal form by
16430 string_escape_byte8.
16431 (print_object): Adjust for the new multibyte form. Print 8-bit
16432 raw bytes always in octal form. Handle sub char table correctly.
16433
16434 * process.c: Include "character.h" instead of "charset.h".
16435 (read_process_output, send_process): Adjust for the new
16436 code-conversion API.
16437
16438 * puresize.h (BASE_PURESIZE): Increase.
16439
16440 * regex.c: Include "character.h" instead of "charset.h".
16441 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16442 (regex_compile): Accept a range whose starting and ending
16443 character have different leading bytes.
16444 (analyse_first): Adjust for the above change.
16445
16446 * search.c: Include "character.h" instead of "charset.h".
16447 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16448 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16449
16450 * syntax.c: Include "character.h" instead of "charset.h".
16451 (syntax_parent_lookup): Delete.
16452 (Fmodify_syntax_entry): Accept a cons as CHAR.
16453 (skip_chars): Adjust for the new multibyte form.
16454 (init_syntax_once): Call char_table_set_range instead of directly
16455 accessing the structure of a char table.
16456
16457 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16458 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16459 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16460 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16461
16462 * term.c: Include "buffer.h" and "character.h".
16463 (encode_terminal_code, write_glyphs): Adjust for the new
16464 code-conversion API.
16465 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16466
16467 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16468
16469 * xdisp.c: Include "character.h".
16470 (get_next_display_element): Adjust for the new multibyte form.
16471 (disp_char_vector): Adjust for the new char table structure.
16472 (decode_mode_spec_coding): Adjust for the new structure of
16473 coding system.
16474 (decode_mode_spec): Adjust for the new code-conversion API.
16475
16476 * xfaces.c: Include "character.h" instead of "charset.h".
16477 (load_face_font): Adjust for the change of choose_face_font and
16478 FS_LOAD_FONT.
16479 (generate_ascii_font): New function.
16480 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16481 (set_font_frame_param): Adjust for the change of choose_face_font.
16482 (free_realized_face): Make it public.
16483 (free_realized_faces_for_fontset): Rename from
16484 free_realized_multibyte_face. Free also faces realized for ASCII.
16485 (choose_face_font): Change arguments. Adjust for the change of
16486 fontset_font_pattern and FS_LOAD_FONT.
16487
16488 * xfns.c: Include "character.h".
16489 (x_encode_text): Adjust for the new code-conversion API.
16490
16491 * xselect.c: Don't include "charset.h".
16492 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16493
16494 * xterm.c: Include "character.h".
16495 (x_encode_char): New argument CHARSET. Change caller.
16496 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16497 Call ENCODE_CHAR instead of SPLIT_CHAR.
16498 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16499 CHAR_WIDTH instead of CHARSET_WIDTH.
16500 (XTread_socket): Adjust for the new code-conversion API.
16501 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16502 (x_load_font): Adjust for the change of struct font.
16503
16504 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16505
16506 * xfaces.c (face_at_buffer_position): Remove unused vars.
16507
16508 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16509
16510 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16511 Fix overflow checking.
16512
16513 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16514
16515 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16516 Cancel previous change.
16517
16518 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16519
16520 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16521 ccl->eight_bit_control. Fix check for buffer overflow.
16522 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16523 (ccl_driver): Initialize extra_bytes to 0.
16524
16525 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16526
16527 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16528 return it ORed with ctrl_modifier.
16529
16530 2008-01-29 Miles Bader <miles@gnu.org>
16531
16532 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16533
16534 2008-01-28 Jason Rumney <jasonr@gnu.org>
16535
16536 * w32.c (stat): Don't double check for networked drive.
16537
16538 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16539
16540 * window.c (run_window_configuration_change_hook): New function.
16541 Code extracted from set_window_buffer. Set the selected frame.
16542 (set_window_buffer): Use it.
16543 * window.h (run_window_configuration_change_hook): Declare.
16544 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16545
16546 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16547
16548 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16549
16550 * Makefile.in: Remove references to unused macros.
16551
16552 2008-01-26 Eli Zaretskii <eliz@gnu.org>
16553
16554 * w32.c (g_b_init_get_sid_sub_authority)
16555 (g_b_init_get_sid_sub_authority_count): New static variables.
16556 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16557 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16558 (init_user_info): Use them to retrieve uid and gid.
16559 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16560 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16561 st_uid and st_gid of the file.
16562
16563 2008-01-26 Jason Rumney <jasonr@gnu.org>
16564
16565 * w32.c (logon_network_drive): New function.
16566 (stat): Use it.
16567
16568 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
16569
16570 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16571 invisible text covered with an ellipsis.
16572
16573 2008-01-25 Richard Stallman <rms@gnu.org>
16574
16575 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16576 jump back to beginning. Move some other initializations after that.
16577 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16578 New variables.
16579 (syms_of_xdisp): Init them.
16580
16581 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16582
16583 * buffer.c (reset_buffer_local_variables):
16584 Implement `permanent-local-hook'.
16585 (Qpermanent_local_hook): New variable.
16586 (syms_of_buffer): Init and staticpro it.
16587
16588 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
16589
16590 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16591
16592 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16593
16594 * fns.c (Fclrhash): Return TABLE.
16595
16596 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16597
16598 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16599 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16600 is set even without positional changes.
16601 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16602
16603 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16604
16605 2008-01-23 Jason Rumney <jasonr@gnu.org>
16606
16607 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16608
16609 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16610 the unicode range available in MULE by locale-coding-system.
16611 Improve dbcs lead byte detection. Set event timestamp and modifiers
16612 earlier.
16613
16614 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16615
16616 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16617 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16618 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16619 when used on child processes.
16620
16621 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
16622
16623 * dbusbind.c (Fdbus_method_return_internal): Rename from
16624 Fdbus_method_return.
16625 (Fdbus_unregister_object): Move to dbus.el.
16626 (Fdbus_call_method, Fdbus_method_return_internal)
16627 (Fdbus_send_signal): Improve debug messages.
16628
16629 2008-01-20 Martin Rudalics <rudalics@gmx.at>
16630
16631 * undo.c (undo_inhibit_record_point): New variable.
16632 (syms_of_undo): Initialize it.
16633 (record_point): Don't record point when undo_inhibit_record_point
16634 is set.
16635
16636 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16637
16638 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16639
16640 * xdisp.c (Qauto_hscroll_mode): New var.
16641 (syms_of_xdisp): Initialize it.
16642 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16643 window's buffer.
16644 (hscroll_windows): Don't check automatic_hscrolling_p here.
16645
16646 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16647 vscroll if we're setting window-buffer to the value it already has.
16648
16649 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16650
16651 * m/intel386.h: Remove references to XENIX.
16652
16653 2008-01-17 Andreas Schwab <schwab@suse.de>
16654
16655 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16656 instead of HAVE_X86_64_LIB64_DIR.
16657 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16658
16659 2008-01-17 Glenn Morris <rgm@gnu.org>
16660
16661 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16662 to HAVE_X86_64_LIB64_DIR.
16663
16664 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
16665
16666 * s/irix3-3.h:
16667 * s/irix4-0.h:
16668 * s/386-ix.h:
16669 * s/domain.h:
16670 * s/hpux9-x11r4.h:
16671 * s/hpux9shxr4.h: Remove files for systems no longer supported.
16672
16673 * sysdep.c: Remove code containing references to symbols defined
16674 by unsupported systems.
16675
16676 2008-01-16 Glenn Morris <rgm@gnu.org>
16677
16678 * coding.c (select-safe-coding-system-function): Doc fix.
16679
16680 2008-01-15 Glenn Morris <rgm@gnu.org>
16681
16682 * config.in: Revert 2008-01-13 change: this is a generated file.
16683
16684 2008-01-13 Tom Tromey <tromey@redhat.com>
16685
16686 * lisp.h: Fix typo.
16687
16688 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16689
16690 * m/sequent-ptx.h:
16691 * m/sequent.h:
16692 * s/ptx.h:
16693 * s/ptx4-2.h:
16694 * s/ptx4.h: Remove files for systems no longer supported.
16695
16696 * callproc.c (Fcall_process): Fix previous change.
16697
16698 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16699
16700 * unexsunos4.c: Remove file, system not supported anymore.
16701
16702 * m/mips.h:
16703 * m/intel386.h:
16704 * callproc.c:
16705 * config.in:
16706 * ecrt0.c:
16707 * emacs.c:
16708 * fileio.c:
16709 * frame.c:
16710 * getpagesize.h:
16711 * keyboard.c:
16712 * lread.c:
16713 * process.c:
16714 * puresize.h:
16715 * sysdep.c:
16716 * systty.h:
16717 * syswait.h:
16718 * unexec.c:
16719 * xdisp.c:
16720 * alloc.c: Remove code containing references to symbols defined by
16721 unsupported systems.
16722
16723 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
16724
16725 * coding.c (detect_coding_mask): Fix previous change.
16726
16727 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
16728
16729 * coding.c (detect_coding_iso2022): New arg
16730 latin_extra_code_state. Allow Latin extra codes only
16731 when *latin_extra_code_state is nonzero.
16732 (detect_coding_mask): If there is a NULL byte, detect the encoding
16733 as UTF-16 or binary. If Latin extra codes exist, detect the
16734 encoding as ISO-2022 only when there's no other proper encoding is
16735 found.
16736
16737 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16738
16739 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
16740 #ifdef MAC_OS.
16741
16742 2008-01-08 Richard Stallman <rms@gnu.org>
16743
16744 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
16745
16746 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
16747
16748 * keyboard.c (parse_menu_item): Don't enclose key bindings on
16749 menu bar in parentheses.
16750
16751 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
16752
16753 * m/7300.h:
16754 * m/acorn.h:
16755 * m/alliant-2800.h:
16756 * m/alliant.h:
16757 * m/alliant1.h:
16758 * m/alliant4.h:
16759 * m/altos.h:
16760 * m/amdahl.h:
16761 * m/apollo.h:
16762 * m/att3b.h:
16763 * m/aviion-intel.h:
16764 * m/aviion.h:
16765 * m/celerity.h:
16766 * m/clipper.h:
16767 * m/cnvrgnt.h:
16768 * m/convex.h:
16769 * m/cydra5.h:
16770 * m/delta88k.h:
16771 * m/dpx2.h:
16772 * m/dual.h:
16773 * m/elxsi.h:
16774 * m/f301.h:
16775 * m/gould-np1.h:
16776 * m/gould.h:
16777 * m/i860.h:
16778 * m/ibmps2-aix.h:
16779 * m/ibmrt-aix.h:
16780 * m/ibmrt.h:
16781 * m/irist.h:
16782 * m/is386.h:
16783 * m/isi-ov.h:
16784 * m/mega68.h:
16785 * m/mg1.h:
16786 * m/news-r6.h:
16787 * m/news-risc.h:
16788 * m/news.h:
16789 * m/nh3000.h:
16790 * m/nh4000.h:
16791 * m/ns16000.h:
16792 * m/ns32000.h:
16793 * m/nu.h:
16794 * m/orion.h:
16795 * m/orion105.h:
16796 * m/paragon.h:
16797 * m/pfa50.h:
16798 * m/plexus.h:
16799 * m/pyramid.h:
16800 * m/pyrmips.h:
16801 * m/sh3el.h:
16802 * m/sps7.h:
16803 * m/sr2k.h:
16804 * m/stride.h:
16805 * m/sun1.h:
16806 * m/sun2.h:
16807 * m/sun3-68881.h:
16808 * m/sun3-fpa.h:
16809 * m/sun3-soft.h:
16810 * m/sun3.h:
16811 * m/sun386.h:
16812 * m/symmetry.h:
16813 * m/tad68k.h:
16814 * m/tahoe.h:
16815 * m/targon31.h:
16816 * m/tek4300.h:
16817 * m/tekxd88.h:
16818 * m/tower32.h:
16819 * m/tower32v3.h:
16820 * m/ustation.h:
16821 * m/wicat.h:
16822 * m/xps100.h:
16823 * s/cxux.h:
16824 * s/cxux7.h:
16825 * s/dgux.h:
16826 * s/dgux4.h:
16827 * s/dgux5-4-3.h:
16828 * s/dgux5-4r2.h:
16829 * s/esix.h:
16830 * s/esix5r4.h:
16831 * s/hiuxmpp.h:
16832 * s/hiuxwe2.h:
16833 * s/iris3-5.h:
16834 * s/iris3-6.h:
16835 * s/isc2-2.h:
16836 * s/isc3-0.h:
16837 * s/isc4-0.h:
16838 * s/isc4-1.h:
16839 * s/newsos5.h:
16840 * s/newsos6.h:
16841 * s/osf1.h:
16842 * s/osf5-0.h:
16843 * s/riscix1-1.h:
16844 * s/riscix12.h:
16845 * s/sco4.h:
16846 * s/sco5.h:
16847 * s/sunos4-0.h:
16848 * s/sunos4-1.h:
16849 * s/sunos413.h:
16850 * s/sunos4shr.h:
16851 * s/umax.h:
16852 * s/unipl5-2.h:
16853 * s/xenix.h:
16854 * cxux-crt0.s:
16855 * unexapollo.c:
16856 * unexconvex.c:
16857 * unexenix.c:
16858 * unexsni.c: Remove files for systems no longer supported.
16859
16860 * m/intel386.h: Remove references to unsupported systems.
16861
16862 * w32.c (get_emacs_configuration): Remove reference to i860.
16863
16864 * sysdep.c: Remove dead code.
16865
16866 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
16867
16868 * s/rtu.h:
16869 * m/masscomp.h: Remove files. Platform is obsolete.
16870
16871 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
16872
16873 * dbusbind.c (Fdbus_method_return): New function.
16874 (xd_read_message): Add the serial number to the event.
16875 (Fdbus_register_method): Activate the function.
16876
16877 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
16878
16879 * keyboard.c (read_key_sequence): Fix typo.
16880
16881 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
16882
16883 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
16884 (xd_signature, xd_append_arg): Handle element type detection for
16885 empty arrays.
16886 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
16887 SDATA () calls; this must be solved more general.
16888 (Fdbus_register_signal): Use SBYTES instead of strlen.
16889
16890 2008-01-03 Magnus Henoch <magnus@zemdatav>
16891
16892 * dbusbind.c (xd_append_arg): Use unsigned char instead of
16893 unsigned int for byte values (necessary for big-endian platform).
16894 (Fdbus_call_method): Handle the case of no returned arguments.
16895
16896 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
16897
16898 * dbusbind.c (xd_read_message): Use non-static input_event struct.
16899
16900 2007-12-31 Magnus Henoch <mange@freemail.hu>
16901
16902 * dbusbind.c (xd_signature): Signature of variant is just "v".
16903
16904 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
16905
16906 * dbusbind.c: Fix several errors and compiler warnings.
16907 Reported by Tom Tromey <tromey@redhat.com>.
16908 (XD_ERROR, XD_DEBUG_MESSAGE)
16909 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
16910 (xd_append_arg): Part for basic D-Bus types rewritten.
16911 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
16912 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
16913 appropriate.
16914 (xd_read_message): Return Qnil. Don't signal an error; it is not
16915 useful during event reading.
16916 (Fdbus_register_signal): Signal an error if the check for
16917 FUNCTIONP fails.
16918 (Fdbus_register_method): New function. The implementation is not
16919 complete, the call of the function signals an error therefore.
16920 (Fdbus_unregister_object): New function, renamed from
16921 Fdbus_unregister_signal. The initial check signals an error, if
16922 the object is not well formed.
16923
16924 2007-12-30 Richard Stallman <rms@gnu.org>
16925
16926 * textprop.c (get_char_property_and_overlay):
16927 Signal error if POSITION is out of range in a buffer.
16928
16929 2007-12-29 Martin Rudalics <rudalics@gmx.at>
16930
16931 * w32fns.c (Fx_create_frame): Make copy of frame parameters
16932 because the original parameters are in pure storage now.
16933
16934 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16935
16936 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
16937
16938 2007-12-22 Eli Zaretskii <eliz@gnu.org>
16939
16940 * callint.c (syms_of_callint) <command-history>: Add reference to
16941 history-length in the doc string.
16942
16943 2007-12-17 Jason Rumney <jasonr@gnu.org>
16944
16945 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
16946 before passing as wParam.
16947
16948 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
16949
16950 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
16951 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
16952 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
16953 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
16954 as number.
16955 (Fdbus_call_method): Fix docstring.
16956
16957 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
16958
16959 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
16960 New macros.
16961 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
16962 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
16963 Simplify.
16964 (xd_signature): New function.
16965 (xd_append_arg): Compute also signatures. Major rewrite.
16966 (xd_retrieve_arg): Make debug messages friendly.
16967 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
16968 Check for signatures of arguments.
16969
16970 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
16971
16972 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
16973 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
16974 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
16975 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
16976 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
16977 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
16978 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
16979 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
16980 (xd_retrieve_value): Remove. Functionality included in ...
16981 (xd_append_arg): New function.
16982 (Fdbus_call_method, Fdbus_send_signal): Apply it.
16983
16984 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
16985
16986 * dbusbind.c (top): Include <stdio.h>.
16987 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
16988 dbus_message_new_method_call and dbus_message_new_signal.
16989 (Fdbus_register_signal): Rename unique_name to uname.
16990 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
16991 non-existing unique name. Fix typos in matching rule. Return an
16992 object which is useful in Fdbus_unregister_signal.
16993 (Fdbus_unregister_signal): Reimplementation, in order to remove
16994 only the corresponding entry.
16995 (Vdbus_registered_functions_table): Change the order of entries.
16996 Apply these changes in xd_read_message and Fdbus_register_signal.
16997
16998 2007-12-16 Andreas Schwab <schwab@suse.de>
16999
17000 * fileio.c (Finsert_file_contents): Fix overflow check to not
17001 depend on undefined integer overflow.
17002
17003 2007-12-14 Jason Rumney <jasonr@gnu.org>
17004
17005 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17006 for characters above 127.
17007
17008 2007-12-13 Jason Rumney <jasonr@gnu.org>
17009
17010 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17011 before dereferencing array.
17012 (lookup_vk_code): Remove zero comparison.
17013
17014 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
17015
17016 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17017 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17018 Use `unsigned int' instead of `uint'.
17019 (xd_read_message, Fdbus_register_signal): Split expressions into
17020 multiple lines before operators "&&" and "||", according to the
17021 GNU Coding Standards.
17022
17023 2007-12-14 Eli Zaretskii <eliz@gnu.org>
17024
17025 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17026
17027 2007-12-12 Juri Linkov <juri@jurta.org>
17028
17029 * buffer.c (Frename_buffer): In interactive spec replace
17030 `read-buffer' with `read-string' that uses `buffer-name-history'
17031 as history, and the current buffer's name as default.
17032
17033 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17034
17035 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17036 manipulating the backtrace manually.
17037 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17038 (struct backtrace, backtrace_list): Remove.
17039 (command_loop_1): Remove dead var `no_direct'.
17040
17041 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17042 preserve non-built-in buffer-local variables.
17043 (Fkill_all_local_variables): Don't re-create&re-set permanent
17044 buffer-local variables.
17045
17046 2007-12-09 Juri Linkov <juri@jurta.org>
17047
17048 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17049 Lisp code that uses `read-buffer' with current buffer as default.
17050
17051 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
17052
17053 * dbusbind.c (xd_read_message): Generate an event for every
17054 registered handler. There might be several handlers registered
17055 for the same signal.
17056 (Fdbus_register_signal): Don't overwrite a registration for the
17057 same signal. Add a new registration if handlers are different.
17058 (Vdbus_registered_functions_table): Rework doc string.
17059
17060 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
17061
17062 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17063 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17064 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17065 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17066 Unify argument lists.
17067 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17068 arguments and hash table keys. Use unique name for service.
17069 (Fdbus_unregister_signal): Remove checks.
17070 (Vdbus_registered_functions_table): Fix doc string.
17071
17072 2007-12-05 Magnus Henoch <mange@freemail.hu>
17073
17074 * process.c (make_process): Initialize pty_flag to 0.
17075
17076 2007-12-05 Jason Rumney <jasonr@gnu.org>
17077
17078 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17079 specified XBMs.
17080
17081 2007-12-05 Richard Stallman <rms@gnu.org>
17082
17083 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17084
17085 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17086
17087 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17088 New variable.
17089 (mac_try_close_socket) [MAC_OSX]: New function.
17090 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17091 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17092
17093 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17094 Use mac_try_close_socket.
17095
17096 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17097
17098 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17099 reloc_base.
17100 (copy_dysymtab): Compute relocation base here.
17101 (rebase_reloc_address) [__ppc64__]: New function.
17102 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17103 changed.
17104
17105 2007-12-05 Jason Rumney <jasonr@gnu.org>
17106
17107 * w32proc.c (sys_spawnve): Quote args with wildcards.
17108
17109 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17110
17111 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17112 __objc_* sections.
17113 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17114
17115 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
17116
17117 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17118 Move check for Vdbus_registered_functions_table to
17119 xd_read_queued_messages.
17120 (xd_read_queued_messages): Protect xd_read_message calls by
17121 internal_condition_case_1.
17122
17123 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
17124
17125 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17126 Qdbus_system_bus and Qdbus_session_bus, respectively.
17127 (Vdbus_intern_symbols): Remove.
17128 (Vdbus_registered_functions_table): New hash table.
17129 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17130 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17131 Rewrite in order to manage registered functions by hash table
17132 Vdbus_registered_functions_table.
17133
17134 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17135
17136 * xterm.c: Update URL to Window Manager Specification in comment.
17137
17138 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
17139
17140 * config.in (HAVE_DBUS): Add.
17141
17142 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17143 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17144 (obj): Add $(DBUS_OBJ).
17145 (LIBES): Add $(DBUS_LIBS).
17146 (dbusbind.o): New target.
17147
17148 * dbusbind.c: New file.
17149
17150 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17151
17152 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17153 (Qdbus_event): New Lisp symbol.
17154 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17155 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
17156 (keys_of_keyboard): Define dbus-event.
17157
17158 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17159
17160 2007-12-01 Richard Stallman <rms@gnu.org>
17161
17162 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17163
17164 2007-11-30 Jason Rumney <jasonr@gnu.org>
17165
17166 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17167 (w32con_reset_terminal_modes): Clear screen buffer.
17168 (w32_face_attributes): Don't use color indexes that are out of range.
17169 Only reverse the default colors.
17170
17171 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17172 WINDOWSNT.
17173
17174 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17175
17176 2007-11-29 Jason Rumney <jasonr@gnu.org>
17177
17178 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17179 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17180 if the terminal colors are initialized.
17181 (unspecified_fg, unspecified_bg): Remove unused declarations.
17182
17183 2007-11-29 Andreas Schwab <schwab@suse.de>
17184
17185 * keyboard.c (apply_modifiers): Fix typo.
17186
17187 2007-11-29 Richard Stallman <rms@gnu.org>
17188
17189 * keymap.c (Fcurrent_local_map): Doc fix.
17190
17191 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17192
17193 * s/gnu-kfreebsd.h: New file.
17194
17195 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17196
17197 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17198 Don't cast redundantly.
17199
17200 * keyboard.c (KEY_TO_CHAR): New macro.
17201 (parse_modifiers, apply_modifiers): Accept integer arguments.
17202 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17203 for chars and symbol keys.
17204 After doing such remapping, apply function-key-map again.
17205
17206 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17207
17208 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17209 compiled anymore.
17210
17211 2007-11-26 Andreas Schwab <schwab@suse.de>
17212
17213 * process.c (list_processes_1): Fix indentation level of the
17214 command column.
17215
17216 2007-11-23 Andreas Schwab <schwab@suse.de>
17217
17218 * editfns.c (Fformat): Handle %c specially since it requires the
17219 argument to be of type int.
17220
17221 2007-11-23 Markus Triska <markus.triska@gmx.at>
17222
17223 * emacs.c (main): Call init_editfns before init_process, since
17224 init_process sets Vprocess_connection_type depending on OS release.
17225
17226 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17227
17228 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17229 (find_symbol_value): Use do_symval_forwarding.
17230
17231 * data.c (set_internal): Set the value in the `cons-cell' (for
17232 Buffer_Local_values) not only for frame-local variables.
17233
17234 2007-11-22 Andreas Schwab <schwab@suse.de>
17235
17236 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17237 values to sprintf.
17238 * keymap.c (Fsingle_key_description): Likewise.
17239 * print.c (print_object): Likewise.
17240
17241 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17242
17243 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17244 file for image is nil.
17245
17246 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17247
17248 * term.c: Include stdarg.h.
17249 (fatal): Implement using varargs.
17250 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17251
17252 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17253
17254 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17255 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17256 Update call to buffer_slot_type_mismatch.
17257 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17258 (buffer_slot_type_mismatch): Update.
17259 * buffer.c (buffer_local_types): Remove.
17260 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17261 (defvar_per_buffer): Set the type in the buffer_objfwd.
17262
17263 2007-11-21 Jason Rumney <jasonr@gnu.org>
17264
17265 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17266 CreateFileMapping returns NULL on failure.
17267
17268 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17269
17270 * search.c (Fset_match_data): Remove the `evaporate' feature.
17271 (unwind_set_match_data): Don't use the `evaporate' feature.
17272
17273 2007-11-21 Jason Rumney <jasonr@gnu.org>
17274
17275 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17276
17277 * w32console.c (w32con_write_glyphs): Remove unused variables.
17278
17279 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17280
17281 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17282
17283 * s/darwin.h (MULTI_KBOARD): Remove.
17284
17285 * macfns.c (x_create_tip_frame, Fx_create_frame)
17286 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17287
17288 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17289
17290 * buffer.c (Fbuffer_local_value): Remove redundant test.
17291 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17292 than in `current-buffer' to match the comment.
17293 Do the swap using swap_in_global_binding.
17294
17295 * data.c (store_symval_forwarding, set_internal):
17296 * eval.c (specbind): Remove dead code.
17297
17298 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17299 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17300 Since we do not want to see internal Lisp_*fwd objects here.
17301
17302 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17303
17304 * sysdep.c (init_system_name): Use getaddrinfo if available.
17305
17306 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17307 (x_scroll_bar_note_movement): start, end, with, height in struct
17308 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17309
17310 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17311
17312 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17313
17314 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17315
17316 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17317 This undoes Richard's change of 14-Oct-2002.
17318
17319 * alloc.c (allocate_other_vector):
17320 * lisp.h (allocate_other_vector): Remove.
17321
17322 * window.c (struct save_window_data): Move non-lisp data to the end
17323 and make it `int' rather than Lisp_Object.
17324 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17325 Done wrap/unwrap integer values.
17326 (Fset_window_configuration, compare_window_configurations):
17327 Update use of fields to their new types.
17328
17329 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17330 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17331 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17332 (SET_SCROLL_BAR_X_WINDOW): Remove.
17333 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17334 Access the new x_window field directly.
17335 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17336 Don't wrap/unwrap integers into Lisp_Objects.
17337 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17338 (x_scroll_bar_report_motion):
17339 Don't wrap/unwrap integers into Lisp_Objects.
17340 (x_term_init): Use SDATA.
17341 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17342 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17343 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17344 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17345 * xfns.c (x_set_background_color):
17346 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17347 Access the new x_window field directly.
17348
17349 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17350 (allocate_pseudovector): Make non-static.
17351
17352 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17353 (allocate_pseudovector): Declare.
17354 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17355
17356 2007-11-15 Andreas Schwab <schwab@suse.de>
17357
17358 * editfns.c (Fformat): Correctly format EMACS_INT values.
17359 Also take precision into account when formatting an integer.
17360
17361 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17362
17363 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17364
17365 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17366 (syms_of_keyboard): Defsubr it.
17367
17368 * data.c (swap_in_global_binding): Fix longstanding bug where
17369 store_symval_forwarding was not called with the right second argument,
17370 thus causing objfwd-ing from being dropped.
17371
17372 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
17373
17374 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17375 (Fx_display_pixel_height, Fx_display_planes)
17376 (Fx_display_color_cells, Fx_server_max_request_size)
17377 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17378 (Fx_display_visual_class, Fx_display_save_under):
17379 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17380 (Fx_display_pixel_height, Fx_display_planes)
17381 (Fx_display_color_cells, Fx_server_max_request_size)
17382 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17383 (Fx_display_mm_height, Fx_display_mm_width)
17384 (Fx_display_backing_store, Fx_display_visual_class)
17385 (Fw32_select_font, Fx_display_save_under):
17386 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17387 (Fx_display_pixel_height, Fx_display_planes)
17388 (Fx_display_color_cells, Fx_server_max_request_size)
17389 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17390 (Fx_display_save_under): Fix typos in docstrings.
17391
17392 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
17393
17394 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17395 corresponding to deleted entries; they are an implementation detail.
17396 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17397 Remove variables.
17398 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17399 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17400 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17401 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17402 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17403 (Fw32_define_rgb_color, Fw32_load_color_file)
17404 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17405 Fix typos in docstrings.
17406 (Fx_server_version): Reflow docstring.
17407 (Fw32_shell_execute): Doc fixes.
17408
17409 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
17410
17411 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17412 if w32_parse_hot_key returned nil.
17413
17414 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17415
17416 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17417
17418 2007-11-09 Jason Rumney <jasonr@gnu.org>
17419
17420 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17421
17422 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17423
17424 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17425 Remove W32_SCROLL_BAR_CLICK_EVENT.
17426
17427 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17428 Add MULTIMEDIA_KEY_EVENT.
17429
17430 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17431 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17432 (make_lispy_event) [WINDOWSNT]: Use it to translate
17433 MULTIMEDIA_KEY_EVENT.
17434
17435 * w32term.h (WM_APPCOMMAND): Define if not already.
17436 (GET_APPCOMMAND_LPARAM): Likewise.
17437
17438 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17439 WM_APPCOMMAND.
17440
17441 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17442 (syms_of_w32fns): Export and initialize it.
17443 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17444
17445 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
17446
17447 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17448 twice.
17449
17450 * xdisp.c (handle_face_prop): Fix last change.
17451
17452 2007-11-09 Richard Stallman <rms@gnu.org>
17453
17454 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17455 not just for after-strings and before-strings.
17456 Call face_for_overlay_string and pass the overlay to it.
17457 (handle_display_prop): Determine whether property came from an overlay.
17458 Pass OVERLAY arg to handle_single_display_spec.
17459 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17460 (load_overlay_strings): Fill in it->string_overlays.
17461 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17462
17463 * xfaces.c (face_for_overlay_string): Function renamed from
17464 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17465
17466 * dispextern.h (struct it): New elt string_overlays.
17467 New elt from_overlay, also in stack.
17468 Rearrange a few elements.
17469 (face_for_overlay_string): Decl renamed from
17470 face_at_buffer_position_no_overlays, and add argument.
17471
17472 2007-11-09 Richard Stallman <rms@gnu.org>
17473
17474 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17475 to get the base face for an overlay string.
17476
17477 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17478
17479 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17480
17481 * xdisp.c (handle_stop): Move some code out of loop.
17482
17483 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17484
17485 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17486 Fix conversion from Lisp object to ATSUFontID.
17487
17488 2007-11-09 Jason Rumney <jasonr@gnu.org>
17489
17490 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17491
17492 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17493
17494 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17495 Don't assume regions are aligned to page boundary.
17496 (print_load_command_name): Add LC_UUID if defined.
17497
17498 2007-11-09 Richard Stallman <rms@gnu.org>
17499
17500 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17501
17502 2007-11-07 Jason Rumney <jasonr@gnu.org>
17503
17504 * s/windows95.h: Remove.
17505
17506 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17507
17508 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17509 abort with a message on unhandled store_type values.
17510
17511 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17512
17513 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17514 Remove HAVE_X11R5 and HAVE_X11R4.
17515
17516 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17517
17518 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17519
17520 2007-11-01 Johan Bockgård <bojohan@gnu.org>
17521
17522 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17523 Don't set s->stippled_p here, since it has already been set by
17524 x_set_glyph_string_gc from x_draw_glyph_string.
17525
17526 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17527
17528 * sunfns.c: Remove file.
17529
17530 * m/sun386.h:
17531 * m/sun2.h:
17532 * m/sparc.h: Remove Sun windows code.
17533
17534 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17535
17536 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17537 (init_keyboard): Set current_kboard's window-system to nil.
17538 (tty_read_avail_input): Typo.
17539 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17540
17541 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17542
17543 * s/usg5-4.h:
17544 * s/usg5-3.h:
17545 * s/ptx.h:
17546 * m/is386.h:
17547 * m/ibmps2-aix.h:
17548 * Makefile.in: Remove all mentions of X10.
17549
17550 * dispnew.c (syms_of_display): Don't mention version 10.
17551
17552 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
17553
17554 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17555 ($(BLD)/abbrev.$(O)): Remove.
17556
17557 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17558
17559 Rewrite abbrev.c in Elisp.
17560 * image.c (Qcount): Don't declare as extern.
17561 (syms_of_image): Initialize and staticpro `Qcount'.
17562 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17563 * emacs.c (main): Don't call syms_of_abbrev.
17564 * Makefile.in (obj): Remove abbrev.o.
17565 (abbrev.o): Remove.
17566 * abbrev.c: Remove.
17567
17568 2007-10-26 Martin Rudalics <rudalics@gmx.at>
17569
17570 * window.c (window_min_size_2): Don't count header-line.
17571
17572 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17573
17574 * frame.h (struct frame): Move all bit fields after the first bit
17575 field to take advantage of the available space. Group all the
17576 chars together to reduce wasted space due to padding.
17577
17578 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
17579
17580 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17581
17582 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17583 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17584 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17585 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17586 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17587 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17588 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17589 (last_marked, mark_object_loop_halt): Make static.
17590
17591 * frame.c (syms_of_frame) <delete-frame-functions>:
17592 Fix typo in docstring.
17593
17594 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
17595
17596 * w32.c (init_environment): Fix tiny memory leak.
17597 (w32_get_resource): Remove unused variable `ok'.
17598
17599 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17600
17601 Make `window-system' into a keyboard-local variable (rather than
17602 frame-local as done originally by multi-tty).
17603
17604 * keyboard.h (struct kboard): Add Vwindow_system.
17605 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17606 (mark_kboards): Mark Vwindow_system.
17607
17608 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17609 (init_display): Don't set the obsolete `window-system' frame-param.
17610
17611 * xterm.c (x_term_init):
17612 * w32term.c (w32_create_terminal):
17613 * term.c (init_tty): Set Vwindow_system.
17614 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17615 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17616
17617 * xfns.c (Fx_create_frame, x_create_tip_frame):
17618 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17619 * macfns.c (Fx_create_frame):
17620 Don't set the obsolete `window-system' frame-param.
17621
17622 * frame.h (Qwindow_system): Remove.
17623 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17624 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17625
17626 2007-10-24 Richard Stallman <rms@gnu.org>
17627
17628 * frame.c (x_figure_window_size): For fullscreen case,
17629 set USPosition | PPosition without clobbering rest of window_prompting.
17630
17631 * keyboard.c (Fcurrent_idle_time): Doc fix.
17632
17633 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17634
17635 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17636
17637 * process.c (unwind_request_sigio): Only define if __ultrix__.
17638
17639 * callproc.c (child_setup): Remove spurious *.
17640
17641 * lisp.h (Fget_text_property): Declare.
17642 (have_menus_p): Declare it here rather than in sys-dep header files.
17643 * macterm.h (have_menus_p):
17644 * msdos.h (have_menus_p):
17645 * xterm.h (have_menus_p): Remove.
17646
17647 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17648 (Fmake_variable_frame_local): Just check the variable's const-ness
17649 rather than checking nil or t.
17650
17651 2007-10-22 Jason Rumney <jasonr@gnu.org>
17652
17653 * w32fns.c: Include math.h.
17654 (w32_abort): Declaration moved to nt/config.nt.
17655
17656 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17657 (abort): Redefinition moved to nt/config.nt.
17658
17659 * m/windowsnt.h: Remove.
17660
17661 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
17662
17663 * emacs.c (Fdump_emacs): Fix typo in message.
17664 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17665 <installation-directory>: Reflow docstring.
17666
17667 2007-10-22 Juri Linkov <juri@jurta.org>
17668
17669 * minibuf.c: Allow minibuffer default to be a list of default values.
17670 With empty input use the first element of this list as returned default.
17671 (string_to_object)
17672 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17673 (read_minibuf): If defalt is cons, set histstring to its car.
17674 (Fread_string): If default_value is cons, set val to its car.
17675 (Fread_buffer): If def is cons, use its car.
17676 (Fcompleting_read): If defalt is cons, set val to its car.
17677
17678 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
17679
17680 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
17681
17682 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
17683
17684 * doc.c (Fdocumentation): Check for advice in all cases.
17685
17686 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
17687
17688 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
17689
17690 2007-10-19 Richard Stallman <rms@gnu.org>
17691
17692 * doc.c (Fdocumentation): Check for and handle an advised function.
17693
17694 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
17695
17696 * process.c (Fset_process_filter): Doc fix.
17697
17698 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
17699
17700 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
17701 which caused key-translation-map to applied repeatedly (thus breaking
17702 double-mode).
17703
17704 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17705
17706 * xselect.c (x_own_selection, x_handle_selection_clear)
17707 (x_clear_frame_selections):
17708 * w32menu.c (list_of_panes, list_of_items):
17709 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
17710 * textprop.c (validate_plist, interval_has_all_properties)
17711 (interval_has_some_properties, interval_has_some_properties_list)
17712 (add_properties, text_property_list):
17713 * process.c (Fget_buffer_process, list_processes_1, status_notify):
17714 * minibuf.c (Fassoc_string):
17715 * macselect.c (x_own_selection, x_clear_frame_selections)
17716 (Fx_disown_selection_internal):
17717 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
17718 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
17719
17720 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
17721
17722 * process.c: Link to libs for calling res_init() if available.
17723 (Fmake_network_process): Call res_init() before getaddrinfo or
17724 gethostbyname, if possible.
17725
17726 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17727
17728 * lread.c (read1): Set pvectype for char_tables.
17729
17730 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
17731 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
17732 Add type checks.
17733 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
17734
17735 * alloc.c (free_misc): Use XMISCTYPE.
17736 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
17737
17738 2007-10-17 Glenn Morris <rgm@gnu.org>
17739
17740 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
17741 (syms_of_minibuf): Add Qcompletion_ignore_case.
17742 * dired.c (Qcompletion_ignore_case): Change to external.
17743 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
17744 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
17745 (Fread_file_name): Use it rather than intern'ing.
17746
17747 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
17748 (Fread_coding_system): Ignore case of user input.
17749
17750 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17751
17752 * xdisp.c (handle_display_prop): Ignore display specs after
17753 replacing one when string text is being replaced.
17754 (handle_single_display_spec): Pretend as if characters with display
17755 property haven't been consumed only when buffer text is being replaced.
17756
17757 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
17758
17759 * xfns.c (Fx_create_frame, Fx_display_list):
17760 * window.c (window_fixed_size_p, enlarge_window)
17761 (shrink_window_lowest_first):
17762 * macterm.c (init_font_name_table):
17763 * macfns.c (Fx_create_frame, Fx_display_list):
17764 * lread.c (close_load_descs):
17765 * keyboard.c (read_char_x_menu_prompt):
17766 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
17767 * coding.c (code_convert_region_unwind): Test the type of an object
17768 rather than just !NILP before extracting data from it.
17769
17770 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
17771
17772 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
17773 (XMISCANY): New macro.
17774 (XMISCTYPE): Use it.
17775 (struct Lisp_Misc_Any): New type.
17776 (union Lisp_Misc): Use it.
17777 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
17778 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
17779 (find_symbol_value, set_internal, default_value, Fset_default)
17780 (Fmake_variable_buffer_local, Fmake_local_variable)
17781 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
17782 (Flocal_variable_if_set_p, Fvariable_binding_locus):
17783 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
17784 * alloc.c (allocate_buffer): Set the size and tag.
17785 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
17786 Use XMISCANY.
17787 (die): Follow the GNU convention for error messages.
17788 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
17789 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
17790 tag any more.
17791 (set_buffer_internal_1):
17792 * frame.c (store_frame_param):
17793 * eval.c (specbind):
17794 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
17795
17796 * doc.c (Fsnarf_documentation): Simplify.
17797
17798 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
17799
17800 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
17801 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
17802
17803 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
17804
17805 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
17806
17807 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
17808
17809 * eval.c (do_autoload): Don't save autoloads.
17810
17811 * data.c (Ffset): Save autoload of the function being set.
17812
17813 2007-10-07 John Paul Wallington <jpw@pobox.com>
17814
17815 * xfns.c (x_create_tip_frame): Set the `display-type' frame
17816 parameter before setting up faces.
17817
17818 2007-10-13 Eli Zaretskii <eliz@gnu.org>
17819
17820 * ccl.c (Fregister_code_conversion_map):
17821 * keyboard.c (append_tool_bar_item): Reformat last change.
17822
17823 * lisp.h (eabs): Rename from `abs'. All callers changed.
17824
17825 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
17826
17827 * buffer.c (add_overlay_mod_hooklist):
17828 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
17829 * fontset.c (make_fontset):
17830 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
17831 (append_tool_bar_item):
17832 * macmenu.c (grow_menu_items):
17833 * w32menu.c (grow_menu_items):
17834 * xmenu.c (grow_menu_items): Use larger_vector.
17835
17836 2007-10-13 Eli Zaretskii <eliz@gnu.org>
17837
17838 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
17839 selected frame'' on MSDOS).
17840
17841 2007-10-12 Martin Rudalics <rudalics@gmx.at>
17842
17843 * frame.c (Qexplicit_name): New variable.
17844 (x_report_frame_params): Report it in parameter alist.
17845 (syms_of_frame): Intern and staticpro it.
17846
17847 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
17848
17849 * macfns.c (x_create_tip_frame): Set terminal for frame.
17850
17851 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
17852
17853 * frame.c (Qenvironment): Remove.
17854 (syms_of_frame) <Qenvironment>: Don't initialize.
17855 (Fdelete_frame): Don't treat the `environment' param specially.
17856 * frame.h (Qenvironment): Don't declare.
17857 * callproc.c (set_initial_environment): Don't set unused frame param.
17858
17859 * frame.c (Fframe_with_environment): Remove.
17860 (syms_of_frame) <Sframe_with_environment>: Don't declare.
17861
17862 * lisp.h (Fframe_with_environment): Don't declare.
17863
17864 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
17865
17866 * indent.c (indent_tabs_mode, last_known_column)
17867 (last_known_column_modified): Make static.
17868 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
17869
17870 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
17871
17872 * puresize.h (BASE_PURESIZE): Increase to 1170000.
17873
17874 2007-10-09 Jason Rumney <jasonr@gnu.org>
17875
17876 * w32term.c (x_set_window_size): Disable code that attempts to tell
17877 Lisp code about a size change before it actually happens.
17878
17879 2007-10-09 Richard Stallman <rms@gnu.org>
17880
17881 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
17882 return HANDLED_RETURN.
17883
17884 2007-10-08 Martin Rudalics <rudalics@gmx.at>
17885
17886 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
17887 when there's an unread command event.
17888
17889 * frame.c (focus_follows_mouse): Move here from frame.el to allow
17890 window autoselection act appropriately when leaving selected frame.
17891 (syms_of_frame): Initialize focus_follows_mouse.
17892 * frame.h (focus_follows_mouse): Extern it.
17893 * macterm.c (XTread_socket): When focus_follows_mouse is nil
17894 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
17895 * msdos.c (dos_rawgetc): Likewise.
17896 * w32term.c (w32_read_socket): Likewise.
17897 * xterm.c (handle_one_xevent): Likewise.
17898 * xdisp.c (syms_of_xdisp): In doc-string of
17899 mouse-autoselect-window mention focus-follows-mouse.
17900
17901 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17902
17903 * macterm.c (mac_load_query_font): Fix missing return value.
17904 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
17905 Add BLOCK_INPUT.
17906
17907 2007-10-08 Richard Stallman <rms@gnu.org>
17908
17909 * xdisp.c (get_window_cursor_type): Implement documented behavior
17910 for cursor-in-non-selected-windows = t.
17911
17912 2007-10-08 Jason Rumney <jasonr@gnu.org>
17913
17914 * w32.c (w32_get_resource): Always close registry keys.
17915
17916 2007-10-08 Jason Rumney <jasonr@gnu.org>
17917
17918 * makefile.w32-in (LIBS): Add COMCTL32.
17919
17920 * w32fns.c (globals_of_w32fns): Init common controls.
17921
17922 2007-10-08 Richard Stallman <rms@gnu.org>
17923
17924 * image.c (our_memory_buffer): Rename from omfib_buffer.
17925
17926 2007-10-08 Richard Stallman <rms@gnu.org>
17927
17928 * buffer.c (Foverlays_at): Doc fix.
17929
17930 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
17931
17932 * fns.c (Fplist_put): Preserve uneven tail data.
17933
17934 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
17935
17936 * termhooks.h (enum event_kind): Remove trailing comma.
17937
17938 * frame.h (enum): Remove trailing comma.
17939
17940 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17941
17942 * w32proc.c (delete_child): Don't terminate threads of zombies.
17943
17944 2007-10-08 Martin Rudalics <rudalics@gmx.at>
17945
17946 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
17947
17948 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
17949 last-repeatable-command.
17950 (init_kboard): Initialize Vlast_repeatable_command.
17951 (command_loop_1): Set it to real_this_command unless that was
17952 bound to an input event.
17953 (mark_kboards): Mark it.
17954
17955 2007-10-08 Richard Stallman <rms@gnu.org>
17956
17957 * eval.c (condition-case): Doc fix.
17958
17959 2007-10-08 Masatake YAMATO <jet@gyve.org>
17960
17961 * xfaces.c (tty_supports_face_attributes_p): Fix code
17962 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
17963 was copied and not edited.
17964
17965 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
17966
17967 Add new `input-decode-map' keymap and use it for terminal
17968 escape sequences.
17969 * keyboard.h (struct kboard): Add Vinput_decode_map.
17970 Remove Vlocal_key_translation_map.
17971 * keyboard.c (read_key_sequence): Add support for input-decode-map.
17972 (init_kboard): Init input-decode-map.
17973 Replace local-key-translation-map back with key-translation-map.
17974 (syms_of_keyboard): Declare input-decode-map.
17975 Remove local-key-translation-map. Update docstrings.
17976 (mark_kboards): Mark Vinput_decode_map.
17977 Don't mark Vlocal_key_translation_map.
17978 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
17979 Replace local-key-translation-map back with key-translation-map.
17980 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
17981 Bind in input-decode-map rather than function-key-map.
17982
17983 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
17984 This was made redundant by the previous introduction of XSETPVECTYPE.
17985
17986 2007-10-09 Richard Stallman <rms@gnu.org>
17987
17988 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
17989
17990 2007-09-29 Richard Stallman <rms@gnu.org>
17991
17992 * eval.c (internal_condition_case_2, internal_condition_case_1)
17993 (internal_condition_case): Reenable abort if x_catching_errors ()
17994 to see if that really happens and why.
17995
17996 2007-10-06 Andreas Schwab <schwab@suse.de>
17997
17998 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
17999
18000 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
18001
18002 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18003
18004 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18005
18006 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18007
18008 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18009
18010 * window.h (struct window):
18011 * window.c (struct save_window_data, struct saved_window):
18012 * termhooks.h (struct terminal):
18013 * process.h (struct Lisp_Process):
18014 * frame.h (struct frame):
18015 * buffer.h (struct buffer):
18016 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18017 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18018 The size field of (pseudo)vectors is now unsigned.
18019 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18020
18021 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18022 Turn `count' into an integer.
18023
18024 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18025 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18026 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18027 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18028 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18029
18030 * alloc.c (allocate_pseudovector): New fun.
18031 (ALLOCATE_PSEUDOVECTOR): New macro.
18032 (allocate_window, allocate_terminal, allocate_frame)
18033 (allocate_process): Use it.
18034 (mark_vectorlike): New function.
18035 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18036 (mark_terminals): Use it.
18037 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18038 (Fmake_byte_code): Use XSETPVECTYPE.
18039
18040 * frame.c (Fframe_parameters): Minor simplification.
18041
18042 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18043
18044 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18045
18046 * buffer.c (Fget_buffer_create, init_buffer_once):
18047 * lread.c (defsubr):
18048 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18049
18050 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18051 defined differently in the m/*.h files.
18052 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18053 (XSETPVECTYPE): New macro.
18054 (XSETPSEUDOVECTOR): Use it.
18055
18056 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18057 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18058
18059 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18060 * lread.c (defvar_per_buffer):
18061 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18062
18063 * window.c (candidate_window_p): Only consider as visible frames that
18064 are on the same terminal.
18065
18066 * m/ibms390x.h (MARKBIT): Remove unused macro.
18067
18068 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
18069
18070 * lread.c (Fload): Fix typo in docstring.
18071
18072 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18073
18074 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18075 of a non-zero value can't yield zero.
18076
18077 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18078
18079 * term.c (term_clear_mouse_face, term_mouse_highlight)
18080 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18081
18082 * print.c (safe_debug_print): Use XHASH.
18083
18084 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18085 Lisp elements such as tags.
18086 (XHASH): New macro.
18087 (EQ): Use it.
18088 (SREF, SSET, STRING_COPYIN): Use SDATA.
18089 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18090
18091 * alloc.c (mark_terminal): Remove left-over declaration.
18092 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18093 (allocate_vectorlike): Remove type argument. Adjust callers.
18094 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18095 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18096
18097 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18098 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18099 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18100 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18101 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18102 Use them.
18103
18104 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18105 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18106 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18107
18108 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18109
18110 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18111 loaded by default.
18112
18113 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18114
18115 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18116 on this tty.
18117 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18118
18119 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18120 Update all users.
18121 (handle_one_term_event): Use Gpm_DrawPointer.
18122 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18123 Signal errors instead of returning nil. Always return nil.
18124 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18125 Make it a noop if gpm-mouse was not activated.
18126 (syms_of_term): Update names.
18127
18128 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18129
18130 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18131 (init_sys_modes): Check that gpm_tty is the current tty.
18132
18133 * alloc.c (allocate_terminal): Set the vector size to only count the
18134 lisp fields. Initialize those to nil.
18135 (mark_object): Don't treat terminals specially.
18136 (mark_terminal): Remove.
18137 (mark_terminals): Use mark_object instead.
18138
18139 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18140 the GC to the beginning.
18141
18142 * indent.h:
18143 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18144
18145 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18146
18147 2007-09-25 Jason Rumney <jasonr@gnu.org>
18148
18149 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18150
18151 * w32console.c (create_w32cons_output): Remove.
18152
18153 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18154
18155 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18156 (reset_sys_modes): Use reset_terminal_modes_hook.
18157
18158 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18159
18160 * eval.c (do_autoload): Don't output any message.
18161
18162 2007-09-24 Juri Linkov <juri@jurta.org>
18163
18164 * emacs.c (standard_args): Change priority of "--no-splash"
18165 from 40 to 3. Add "--no-desktop" with the same priority.
18166
18167 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18168
18169 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18170 and optimize the case where they are all 1.
18171
18172 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
18173
18174 * lisp.h (abs): Define if not defined.
18175 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18176 Don't define `abs', since it's defined in lisp.h.
18177
18178 2007-09-22 Eli Zaretskii <eliz@gnu.org>
18179
18180 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18181 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18182 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18183 (init_tty): Use DEV_TTY instead of "/dev/tty".
18184 [WINDOWSNT]: No need to protect from NAME arg being null.
18185
18186 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18187
18188 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18189 up the tty state.
18190
18191 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18192
18193 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18194 (gpm_tty): Change its type.
18195 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18196 (gpm_tty): Change its type and initialize it.
18197 (Fterm_open_connection): Check the frame is indeed a tty.
18198 Use the new gpm_tty.
18199 (Fterm_close_connection): Use the new gpm_tty.
18200 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18201 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18202
18203 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
18204
18205 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18206 underline_color, to draw strike-through.
18207
18208 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18209
18210 * lisp.h (allocate_terminal): Declare.
18211
18212 * window.c (candidate_window_p): Consider frames that are being placed
18213 by the user as somewhere between visible and iconified.
18214 (window_loop): Prefer windows on the current frame.
18215 (Fselect_window): Move the use of select-frame to the beginning so we
18216 can just delegate all the work (it'll call us back anyway).
18217
18218 * frame.c (Qdisplay_environment_variable):
18219 * frame.h (Qdisplay_environment_variable): Delete.
18220
18221 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18222 of the first arg, since that value may be a union.
18223
18224 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18225 parameter rather than Qdisplay_environment_variable. If all else
18226 fails, look for DISPLAY in initial-environment.
18227
18228 2007-09-21 Glenn Morris <rgm@gnu.org>
18229
18230 * Makefile.in (emacstool): Remove target.
18231 (lisp, shortlisp): Remove termdev.elc.
18232
18233 2007-09-21 Markus Triska <markus.triska@gmx.at>
18234
18235 * xterm.c (x_delete_display): Compile session management conditionally.
18236
18237 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18238
18239 * callproc.c (getenv_internal_1): New function.
18240 (getenv_internal): Use it.
18241 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18242
18243 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18244 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18245 (Fset_terminal_parameter): Work with dead terminals as well.
18246 (Fmodify_terminal_parameters): Remove.
18247
18248 * terminal.c (get_terminal): Handle terminals.
18249 Make sure the terminal returned is live.
18250 (create_terminal): Use allocate_terminal.
18251 (mark_terminals): Move to alloc.c.
18252 (delete_terminal): Use terminal->name as liveness status.
18253 NULL out fields after freeing their contents.
18254 Don't deallocate the object.
18255 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18256 rather than an int.
18257 (Fterminal_live_p): Accept non-integer arguments.
18258 (Fterminal_list): Return terminal objects rather than an ints.
18259
18260 * alloc.c (enum mem_type): New member for `terminal' objects.
18261 (allocate_terminal): New function.
18262 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18263 Handle terminals.
18264 (mark_terminal): New fun.
18265 (mark_terminals): Move from terminal.c.
18266
18267 * term.c (get_tty_terminal): Don't treat output_initial specially.
18268 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18269 (delete_tty): Use terminal->name as liveness status.
18270
18271 * termhooks.h (struct terminal): Make it into a pseudovector.
18272 Remove `deleted' replaced by checking `name's nullness.
18273
18274 * print.c (print_object): Handle terminals.
18275
18276 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18277 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18278
18279 * frame.c (make_terminal_frame):
18280 * keyboard.c (tty_read_avail_input):
18281 * w32term.c (x_delete_terminal):
18282 * xfns.c (Fx_create_frame, x_create_tip_frame):
18283 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18284
18285 2007-09-20 Glenn Morris <rgm@gnu.org>
18286
18287 * process.c (Fmake_network_process): Doc fix.
18288
18289 2007-09-19 Jason Rumney <jasonr@gnu.org>
18290
18291 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18292
18293 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18294
18295 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18296 Fix a C warning regarding variable constness.
18297
18298 * xterm.c (handle_one_xevent): Fix a C warning.
18299
18300 2007-09-18 Jason Rumney <jasonr@gnu.org>
18301
18302 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18303
18304 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18305
18306 * gtkutil.c (gdpy_def): New variable.
18307 (xg_initialize): Initialize gdpy_def.
18308 (xg_display_close): If no other display exists, set gdpy_def to a
18309 new connection.
18310
18311 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18312
18313 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18314 when we have no file name for the icon.
18315 (xg_tool_bar_expose_callback): Remove.
18316 (xg_create_tool_bar): Don't connect expose signal to
18317 xg_tool_bar_expose_callback.
18318 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18319
18320 2007-09-16 Andreas Schwab <schwab@suse.de>
18321
18322 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18323 values instead of zapping them.
18324
18325 2007-09-14 Glenn Morris <rgm@gnu.org>
18326
18327 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18328 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18329 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18330 scope and rename to omfib_buffer for clarity.
18331 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18332
18333 2007-09-14 Kenichi Handa <handa@m17n.org>
18334
18335 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18336
18337 2007-09-13 Jason Rumney <jasonr@gnu.org>
18338
18339 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18340
18341 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18342
18343 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18344 (mac_term_init): Call here instead, passing rif.
18345
18346 2007-09-13 Glenn Morris <rgm@gnu.org>
18347
18348 * s/hpux.h: No longer define `static' as nothing.
18349
18350 2007-09-13 Johan Bockgård <bojohan@gnu.org>
18351
18352 * callint.c (Fcall_interactively): Remove unused var `fun'.
18353
18354 2007-09-12 Romain Francoise <romain@orebokech.com>
18355
18356 * window.c (prefer_window_split_horizontally, display_buffer):
18357 Revert 2007-09-08 change.
18358
18359 2007-09-12 Glenn Morris <rgm@gnu.org>
18360
18361 * alloca.c: Remove file.
18362 * Makefile.in (alloca): Do not undef.
18363 (allocaobj, alloca.o): Remove.
18364 (otherobj): Remove allocaobj.
18365 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18366 * regex.c (C_ALLOCA): Remove all references and code that was only
18367 used when this was defined.
18368 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18369 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18370 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18371
18372 * Makefile.in (SOURCES, unlock, relock): Delete.
18373
18374 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18375 (menu_grab_callback): All uses changed.
18376
18377 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18378 (x_reply_selection_request): All uses changed.
18379
18380 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18381
18382 * lread.c (load_warn_old_style_backquotes): Change message to look
18383 better when it appears in the middle of byte-compiler messages.
18384
18385 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18386
18387 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18388
18389 * xterm.c (x_create_terminal): Add comment.
18390
18391 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18392
18393 2007-09-10 Richard Stallman <rms@gnu.org>
18394
18395 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18396
18397 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18398
18399 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18400 (DEFUN): Document `intspec', use it instead of `prompt'.
18401
18402 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18403
18404 * data.c (Finteractive_form): If the interactive specification starts
18405 with a `(', use it as a Lisp form.
18406
18407 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18408 name and file modes.
18409
18410 * callint.c (Fcall_interactively): Comment fixes.
18411
18412 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18413
18414 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18415 and compiled functions.
18416
18417 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18418
18419 * window.c (prefer_window_split_horizontally): New variable.
18420 (display_buffer): Consider splitting window horizontally depending
18421 on prefer_window_split_horizontally.
18422
18423 2007-09-08 Eli Zaretskii <eliz@gnu.org>
18424
18425 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18426
18427 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18428
18429 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18430
18431 * frame.c (x_set_frame_parameters): Check number is positive before
18432 using XFASTINT.
18433
18434 * window.c (freeze_window_start): Don't presume selected_window holds
18435 a window object.
18436 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18437
18438 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18439
18440 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18441
18442 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18443
18444 * window.c (Vsplit_window_preferred_function): New var.
18445 (Fdisplay_buffer): Use it.
18446 (syms_of_window): Export, and initialize it.
18447
18448 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18449
18450 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18451
18452 2007-09-06 Glenn Morris <rgm@gnu.org>
18453
18454 * gtkutil.c (menu_grab_callback) <cnt>:
18455 * xselect.c (x_reply_selection_request) <cnt>: Move static
18456 variable to file scope.
18457
18458 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18459
18460 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18461 consistent values of selected_frame and selected_window.
18462
18463 2007-09-04 Jason Rumney <jasonr@gnu.org>
18464
18465 * w32console.c (initialize_w32_display): Zero unused hooks.
18466
18467 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18468
18469 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18470 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18471
18472 2007-09-04 Jason Rumney <jasonr@gnu.org>
18473
18474 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18475 in w32console.c. Set up input. Remove XXX comments that have been
18476 confirmed as correct.
18477
18478 * s/ms-w32.h (MULTI_KBOARD): Define.
18479
18480 * w32console.c (one_and_only_w32cons): Remove.
18481 (initialize_w32_display): Take terminal argument.
18482
18483 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18484 initialize_w32_display.
18485 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18486
18487 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18488
18489 * keyboard.c (discard_mouse_events): Discard it.
18490 (make_lispy_event): Translate it to a lisp event.
18491 (lispy_wheel_names): Add wheel-left and right events.
18492 (syms_of_keyboard): Enlarge wheel_syms.
18493
18494 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18495 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18496
18497 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18498
18499 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18500 from WM_MOUSEHWHEEL.
18501 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18502
18503 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18504 terminal.
18505
18506 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18507 keyboard for the terminal.
18508
18509 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18510
18511 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18512 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18513 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18514 and resume-tty-function to resume-tty-hook.
18515 (Fsuspend_tty, Fresume_tty): Use new names.
18516
18517 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18518
18519 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18520 if it starts with "n:".
18521
18522 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18523
18524 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18525
18526 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18527
18528 * frame.h:
18529 * frame.c (Qterm_environment_variable): Remove.
18530 (syms_of_frame): Don't init and staticpro it.
18531
18532 * callproc.c (getenv_internal): Remove special case for $TERM.
18533
18534 * callproc.c (Vinitial_environment): New variable.
18535 (set_initial_environment): Initialize it.
18536 (syms_of_callproc): Declare it.
18537 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18538 TERM under which a process runs is never related to the TERM in which
18539 Emacs is running.
18540
18541 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18542
18543 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18544 * s/darwin.h: ... do it here.
18545
18546 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18547
18548 * lisp.h (set_initial_environment): Rename from set_global_environment.
18549
18550 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18551 removed by mistake on the multi-tty branch.
18552
18553 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18554 (Fmodify_frame_parameters): Return a value.
18555
18556 * image.c (png_load): Comment-out var only used in commented-out code.
18557
18558 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18559 before passing it to mark_object.
18560
18561 * xfaces.c (internal_resolve_face_name): Return a value.
18562 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18563
18564 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18565 (x_icon): Comment-out var only used in commented-out code.
18566
18567 2007-08-29 Romain Francoise <romain@orebokech.com>
18568
18569 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18570 QUIT hasn't been provided.
18571
18572 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18573
18574 * callproc.c (child_setup, getenv_internal): Use the
18575 display-environment-variable and term-environment-variable frame params.
18576 (set_initial_environment): Initialise Vprocess_environment.
18577
18578 * config.in: Disable multi-keyboard support on a mac.
18579
18580 * frame.c (Qterm_environment_variable)
18581 (Qdisplay_environment_variable): New variables.
18582 (syms_of_frame): Intern and staticpro them.
18583 (Fmake_terminal_frame): Disable output method test.
18584
18585 * frame.h: Declare them here.
18586
18587 * macfns.c (x_set_mouse_color): Get rif from the frame.
18588 (x_set_tool_bar_lines): Don't use updating_frame.
18589 (mac_window): Add 2 new parameters for consistency with other systems.
18590 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18591 frame parameters following what is done in X11 and w32. Don't use
18592 FRAME_MAC_DISPLAY_INFO.
18593 (Fx_open_connection, start_hourglass): Remove window-system check.
18594 (x_create_tip_frame): Get the keyboard from the terminal.
18595
18596 * macmenu.c: Reorder includes.
18597 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18598
18599 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18600 terminal parameter.
18601 (x_clear_frame): Add a frame parameter.
18602 (note_mouse_movement): Get rif from the frame.
18603 (mac_term_init): Initialize the terminal.
18604 (mac_initialize): Make static and move terminal initialization ...
18605 (mac_create_terminal): ... to this new function.
18606
18607 * macterm.h (struct mac_display_info): Add terminal.
18608 (mac_initialize): Delete declaration.
18609
18610 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18611
18612 * sysdep.c: Comment out text after #endif.
18613
18614 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18615 is defined. Better initialize ttys in windows. Use terminal
18616 specific mouse_position_hook.
18617
18618 * termhooks.h (union display_info): Add mac_display_info.
18619
18620 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18621 Set the default minibuffer frame, window_system and the rest of the
18622 frame parameters following what is done in X11.
18623
18624 * w32term.c (w32_initialize): Make static.
18625
18626 * xselect.c (x_handle_selection_clear): Only access
18627 terminal->kboard when MULTI_KBOARD is defined.
18628
18629 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18630 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18631
18632 2007-08-29 Jason Rumney <jasonr@gnu.org>
18633
18634 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18635 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18636
18637 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18638 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18639
18640 * keyboard.c (restore_kboard_configuration): Only define when
18641 MULTI_KBOARD defined.
18642
18643 * makefile.w32-in: Update dependancies from Makefile.in.
18644 (OBJ1): Add terminal.$(O)
18645
18646 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18647 Don't define function body.
18648 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18649
18650 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18651
18652 * w32.c (request_sigio, unrequest_sigio): Remove.
18653
18654 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18655 (w32con_clear_frame, w32con_clear_end_of_line)
18656 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18657 (w32con_delete_glyphs, w32con_set_terminal_window)
18658 (scroll_line, w32_sys_ring_bell): Add frame arg.
18659 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18660 Add terminal arg.
18661 (PICK_FRAME): Remove.
18662 (w32con_write_glyphs): Use frame specific terminal coding.
18663 (one_and_only_w32cons): New global variable.
18664 (initialize_w32_display): Use it for storing hooks.
18665 (create_w32cons_output): New function.
18666
18667 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18668 arg a frame.
18669
18670 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18671 Set window_system.
18672 (x_set_tool_bar_lines): Don't use updating_frame.
18673 (Fx_create_frame): Set terminal and ref count.
18674 (Fx_open_connection): Remove window-system check.
18675
18676 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
18677
18678 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
18679 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
18680 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
18681 Add frame arg.
18682 (x_delete_terminal, w32_create_terminal): New functions.
18683 (w32_term_init): Create a terminal.
18684 (w32_initialize): Move terminal specific initialization to
18685 w32_create_terminal.
18686
18687 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
18688 (w32_clear_rect, w32_clear_area): Use background from frame.
18689 (w32_display_info): Add terminal.
18690 (w32_sys_ring_bell, x_delete_display): Declare here.
18691
18692 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
18693
18694 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
18695
18696 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
18697
18698 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
18699 Fix get_named_tty calls for the controlling tty.
18700
18701 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
18702
18703 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
18704
18705 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
18706
18707 * term.c (tty_insert_glyphs): Add missing first parameter.
18708
18709 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
18710
18711 * buffer.c (Fbuffer_list, Fbury_buffer):
18712 Take frame->buried_buffer_list into account.
18713
18714 * cm.c (current_tty): New variable, for cmputc().
18715 (cmputc): Use it.
18716 (cmcheckmagic): Add tty parameter, look up terminal streams there.
18717 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
18718 (cmgoto): Add tty parameter. Pass it on to calccost().
18719 Use emacs_tputs() instead of tputs().
18720
18721 * cm.h (emacs_tputs): New macro to set current_tty, and then call
18722 tputs().
18723 (current_tty): New variable, for cmputc().
18724 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
18725
18726 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
18727 (internal_condition_case, internal_condition_case_1)
18728 (internal_condition_case_2): Don't abort when x_catching_errors.
18729
18730 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
18731 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
18732 prevent crashes caused by bogus longjmps in read_char.
18733
18734 * keymap.h (Fset_keymap_parent): Add EXFUN.
18735
18736 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
18737 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18738 Remove redundant definition.
18739
18740 * macfns.c (x_set_mouse_color, x_make_gc):
18741 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18742
18743 * w32term.c (x_free_frame_resources):
18744 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18745 (w32_initialize): Use the accessor macros for terminal characteristics.
18746
18747 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
18748 Use the accessor macros for terminal characteristics.
18749 * msdos.c (internal_terminal_init): Use the accessor macros for
18750 terminal characteristics.
18751 (ScreenVisualBell, internal_terminal_init):
18752 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18753
18754 * termopts.h (no_redraw_on_reenter): Declare.
18755
18756 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
18757 (mark_terminals, mark_ttys): Declare.
18758 (Fgarbage_collect): Call them.
18759 (mark_object): Mark buried_buffer_list.
18760
18761 * prefix-args.c: Include stdlib.h for exit.
18762
18763 * syssignal.h: Add comment.
18764
18765 * indent.c: Include stdio.h.
18766
18767 * window.h (Vinitial_window_system): Declare.
18768 (Vwindow_system): Delete declaration.
18769
18770 * fontset.c (Finternal_char_font): Use FRAME_RIF.
18771
18772 * image.c (lookup_image): Don't initialize `c' until the xasserts
18773 have been run.
18774
18775 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
18776 FRAME_FOREGROUND_PIXEL.
18777
18778 * print.c (print_preprocess): Don't lose print_depth levels while
18779 iterating.
18780
18781 * widget.c (update_from_various_frame_slots):
18782 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18783
18784 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
18785 frames.
18786 (window_internal_height): Remove bogus make_number call.
18787 (init_window_once): Call make_terminal_frame with two zero parameters.
18788
18789 * fileio.c (Fread_file_name): Update comment.
18790
18791 * callint.c (Fcall_interactively):
18792 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
18793 Make sure it is correctly unwound.
18794
18795 * xsmfns.c (x_session_close): New function.
18796
18797 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
18798 Delete declarations.
18799
18800 * xterm.h: Remove declaration for x_fully_uncatch_errors.
18801 (x_output): Remove background_pixel and foreground_pixel fields.
18802 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
18803 (x_delete_device, x_session_close): Declare.
18804
18805 * lread.c: Include setjmp.h. Update declaration of `read_char'.
18806 (read_filtered_event): Call `read_char' with a local
18807 `wrong_kboard_jmpbuf'.
18808
18809 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
18810 Don't call single_kboard_state. Use FRAME_RIF.
18811
18812 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
18813 systems.
18814
18815 * lisp.h (set_process_environment): Rename to `set_global_environment'.
18816 (Fframe_with_environment, Fset_input_meta_mode)
18817 (Fset_quit_char): EXFUN.
18818 (x_create_device, tty_output, terminal, tty_display_info): Declare.
18819 (init_sys_modes, reset_sys_modes): Update prototypes.
18820 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
18821
18822 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
18823 Vlocal_key_translation_map, and Vkeyboard_translate_table.
18824 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
18825 Delete declarations.
18826 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
18827 (temporarily_switch_to_single_kboard, tty_read_avail_input):
18828 New declarations.
18829
18830 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
18831 already does that during init_display(). Call syms_of_keymap
18832 before syms_of_keyboard. Call `syms_of_terminal'.
18833 Call set_initial_environment, not set_process_environment.
18834 (shut_down_emacs): Call reset_all_sys_modes() instead of
18835 reset_sys_modes().
18836
18837 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
18838 (internal_resolve_face_name, resolve_face_name_error): New functions.
18839 (resolve_face_name): Protect against loops and errors thrown by Fget.
18840 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
18841 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
18842
18843 * scroll.c: Replace CURTTY() with local variables throughout the
18844 file (where applicable).
18845 (calculate_scrolling, calculate_direct_scrolling)
18846 (scrolling_1, scroll_cost): Use the accessor macros for terminal
18847 characteristics.
18848
18849 * keymap.c (Vfunction_key_map): Remove.
18850 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
18851 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
18852 (Vkey_translation_map): Remove.
18853 (syms_of_keymap): Remove DEFVAR for key-translation-map.
18854 (Fdescribe_buffer_bindings)
18855 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
18856 Update for terminal-local key-translation-map.
18857
18858 * Makefile.in (callproc.o): Update dependencies.
18859 (lisp, shortlisp): Add termdev.elc.
18860 (obj): Add terminal.o.
18861 (terminal.o): Add dependencies.
18862 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
18863 (data.o, fns.o): Add termhooks.h dependency.
18864 (SOME_MACHINE_LISP): Add dnd.elc.
18865 (minibuf.o): Fix typo.
18866 Update dependencies.
18867
18868 * data.c (do_symval_forwarding, store_symval_forwarding)
18869 (find_symbol_value): Use the selected frame's keyboard, not
18870 current_kboard.
18871
18872 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
18873 Vwindow_system.
18874
18875 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
18876 Fmenu_bar_open.
18877 (syms_of_xmenu): Update defsubr.
18878 (mouse_position_for_popup, Fx_popup_menu)
18879 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
18880 (set_frame_menubar, free_frame_menubar)
18881 (create_and_show_popup_menu, xmenu_show)
18882 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
18883 an X frame.
18884
18885 * xselect.c (x_own_selection): Abort if not an X frame.
18886 (some_frame_on_display): Check if it is an X frame.
18887 (x_handle_selection_clear): Deal with MULTI_KBOARD.
18888
18889 * coding.c: Include frame.h and termhooks.h.
18890 (terminal_coding, keyboard_coding): Delete.
18891 (Fset_terminal_coding_system_internal)
18892 (Fset_keyboard_coding_system_internal)
18893 (Fkeyboard_coding_system)
18894 (Fterminal_coding_system): Add a terminal parameter.
18895 Get terminal_coding from the terminal.
18896 (init_coding_once): Don't call setup_coding_system here.
18897
18898 * dispextern.h (set_scroll_region, turn_off_insert)
18899 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
18900 (tty_clear_end_of_line, tty_setup_colors)
18901 (delete_tty, updating_frame)
18902 (produce_special_glyphs, produce_glyphs, write_glyphs)
18903 (insert_glyphs): Remove.
18904 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
18905 (tty_turn_off_highlight, get_tty_size): Add declaration.
18906 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
18907
18908 * frame.h (enum output_method): Add output_initial.
18909 (struct x_output): Delete.
18910 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18911 Access foreground_pixel and background_pixel directly from the frame.
18912 (tty_display): Delete.
18913 (struct frame): Add buried_buffer_list, foreground_pixel,
18914 background_pixel and terminal. Delete kboard.
18915 (union output_data): Add tty.
18916 (FRAME_KBOARD): Get the kboard from the terminal.
18917 (FRAME_INITIAL_P): New macro.
18918 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
18919 (Qterm_environment_variable, Qdisplay_environment_variable)
18920 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
18921 New declarations.
18922
18923 * termchar.h (tty_output, tty_display_info): New structures.
18924 (tty_list): Declare.
18925 (FRAME_TTY, CURTTY): New macros.
18926 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
18927 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
18928 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
18929 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
18930
18931 * callproc.c: Include frame.h and termhooks.h, for terminal
18932 parameters.
18933 (add_env): New function.
18934 (child_setup): Use it.
18935 (child_setup, getenv_internal): Handle the new Vprocess_environment.
18936 (getenv_internal): Fix get_terminal_param call.
18937 (Fgetenv_internal, egetenv): Update doc.
18938 (syms_of_callproc): Initialize Vprocess_environment to nil.
18939 Register and initialize them. Remove obsolete defvars. Update doc
18940 strings.
18941 (child_setup): Handle Vlocal_environment_variables.
18942 (getenv_internal): Add terminal parameter.
18943 Handle Vlocal_environment_variables.
18944 (Fgetenv_internal): Add terminal parameter.
18945 (child_setup, getenv_internal, Fgetenv_internal): Store the local
18946 environment in a frame (not terminal) parameter. Update doc strings.
18947 (set_initial_environment): Rename from set_global_environment.
18948 Store Emacs environment in initial frame parameter.
18949
18950 * xdisp.c (redisplay_internal): Update references to
18951 `previous_terminal_frame'.
18952 (display_mode_line, Fformat_mode_line): Replace calls to
18953 `push_frame_kboard' with `push_kboard'.
18954 (get_glyph_string_clip_rects): Add extra parentheses and
18955 braces to prevent compiler warnings.
18956 (calc_pixel_width_or_height): Add xassert to check that the
18957 frame is alive. Don't call `lookup_image' on a termcap frame.
18958 (message2_nolog, message3_nolog, redisplay_internal)
18959 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
18960 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
18961 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
18962 (Fx_display_pixel_width, Fx_display_pixel_height)
18963 (Fx_display_planes, Fx_display_color_cells)
18964 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
18965 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
18966 (Fx_display_backing_store, Fx_display_visual_class)
18967 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
18968 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
18969
18970 * xfns.c (x_set_foreground_color x_set_background_color)
18971 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
18972 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18973 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
18974 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
18975 terminal that is being deleted.
18976 (Fx_create_frame): Use `store_frame_param' to set `window-system'
18977 frame parameter, and make sure it overrides any user-supplied setting.
18978 (Fx_close_connection, Fx_synchronize): Unify argument names with
18979 the rest of the DEFUNs.
18980
18981 * dispnew.c (Fsend_string_to_terminal): Update call to
18982 `get_tty_terminal'.
18983 (Fredraw_frame, Fsend_string_to_terminal)
18984 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
18985 FRAME_TERMCAP_P and FRAME_TTY.
18986 (window_change_signal): Don't believe width/height values that are
18987 impossibly small.
18988 (Vinitial_window_system): Rename from Vwindow_system.
18989 (termscript, Wcm, rif): Delete.
18990
18991 * termhooks.h (struct terminal): New struct containing the
18992 previously global text display hooks and new members NAME,
18993 DELETED and PARAM_ALIST.
18994 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
18995 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
18996 (FRAME_RIF): New macros.
18997 (get_terminal_param, get_device): New declarations.
18998 (termscript): Delete declaration.
18999
19000 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19001 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19002 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19003 FRAME_FOREGROUND_PIXEL.
19004 (x_fully_uncatch_errors): Disable definition.
19005 (x_scroll_bar_expose): Fix reference to foreground pixel.
19006 (XTread_socket): Disable loop on all X displays.
19007 (x_delete_terminal): Don't set terminal->deleted and let
19008 delete_terminal delete the frames on the terminal.
19009 (x_delete_display): Doc update to reflect changes in
19010 delete_terminal.
19011 (x_display_info) <terminal>: Move member earlier in the struct.
19012 (deleting_tty): Remove old variable.
19013 (Fsuspend_tty): Call clear_tty_hooks.
19014 (Fresume_tty, init_tty): Call set_tty_hooks.
19015 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19016 errors on X frames.
19017 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19018 (handle_one_xevent): Initialize `f' to NULL.
19019 (x_delete_terminal, x_create_terminal): New functions.
19020 (XTset_terminal_modes, XTreset_terminal_modes)
19021 (XTread_socket, x_connection_closed, x_term_init)
19022 (x_term_init, x_delete_display): Add terminal parameter.
19023 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19024 X connections.
19025
19026 * frame.c: Include termchar.h.
19027 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19028 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19029 (Qdisplay_environment_variable): New vars.
19030 (Fframep): Deal with output_initial.
19031 (Fframe-live-p): Doc fix.
19032 (Fwindow-system): New function.
19033 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19034 (make_terminal_frame): Don't create frames on a terminal that is
19035 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19036 (store_frame_param): Check for found_for_frame before calling XFRAME.
19037 (Fmake_terminal_frame): Handle NULL tty names correctly.
19038 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19039 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19040 frames to refer to a deleted frame in their 'environment parameter.
19041 (Fframe_with_environment): New function.
19042 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19043 (get_future_frame_param): New function.
19044 (Fmake_terminal_frame): Use it.
19045 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19046
19047 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19048 * sysdep.c (reset_sys_modes): Update for renames.
19049
19050 * keyboard.c (tty_read_avail_input): New function.
19051 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19052 (syms_of_keyboard): Defsubr them.
19053 (Fset_input_meta_mode, Fset_quit_char): New functions.
19054 (Fset_input_mode): Split to above functions.
19055 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19056 parameter. Use it in call to `read_char'.
19057 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19058 Set wrong_kboard_jmpbuf correctly in recursive calls.
19059 Use current_kboard to access Vkeyboard_translate_table.
19060 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19061 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19062 Update longjmp invocations. Remember the original current_kboard,
19063 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19064 changes it. Comment out unnecessary calls to
19065 `record_single_kboard_state' and `any_kboard_state'.
19066 Update recursive calls.
19067 (wrong_kboard_jmpbuf): Remove global variable.
19068 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19069 Handle deleted interrupted_kboards correctly; that is a legal
19070 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19071 and read_char calls. Abort if interrupted_kboard died in read_char.
19072 (any_kboard_state, single_kboard_state)
19073 (push_frame_kboard): Remove function.
19074 (pop_kboard): Switch out of single_kboard mode if the kboard has
19075 been deleted. Remove unused variable. Help debugging by not
19076 changing current_kboard unnecessarily. Set current_kboard to the
19077 kboard of the selected frame when the stored kboard object has
19078 been deleted before pop_kboard.
19079 (temporarily_switch_to_single_kboard): Change first parameter to a
19080 frame pointer. Throw an error when caller wants to change kboards
19081 while in single_kboard mode. Don't push_kboard if we weren't in
19082 single kboard state. Don't pop_kboard if we popped into any
19083 kboard state.
19084 (restore_kboard_configuration): Abort if pop_kboard changed the
19085 kboard in single_kboard mode. Call pop_kboard only after setting
19086 up single_kboard mode.
19087 (Frecursive_edit): Switch to single_kboard mode only in nested
19088 command loops.
19089 (cmd_error, command_loop, command_loop_1, timer_check):
19090 Comment out unnecessary call to `any_kboard_state' and
19091 `record_single_kboard_state'.
19092 (delete_kboard): Exit single_kboard mode if we have just deleted
19093 that kboard. Use FRAME_KBOARD.
19094 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19095 `fatal_error_signal'.
19096 (record_single_kboard_state): Don't push_kboard if we weren't in
19097 single kboard state. Don't pop_kboard if we popped into any
19098 kboard state.
19099 (push_frame_kboard): Rename to push_kboard.
19100 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19101 (read_avail_input): Read input from all terminals.
19102 (mark_kboards): Also mark Vkeyboard_translate_table.
19103 (kbd_buffer_store_event_hold): Simplify condition.
19104 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19105 (Vkeyboard_translate_table): Move to struct kboard.
19106 (init_kboard): Initialize Vkeyboard_translate_table.
19107 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19108 Vkeyboard_translate_table. Update doc strings. Update docs of
19109 local-function-key-map and function-key-map.
19110
19111 * terminal.c: New file.
19112
19113 * term.c: Include errno.h.
19114 (Vring_bell_function, device_list, initial_device)
19115 (next_device_id, ring_bell, update_begin, update_end)
19116 (set_terminal_window, cursor_to, raw_cursor_to)
19117 (clear_to_end, clear_frame, clear_end_of_line)
19118 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19119 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19120 (syms_of_term): Move their initialization to terminal.c.
19121 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19122 (Ftty_display_color_cells)
19123 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19124 (clear_tty_hooks, set_tty_hooks)
19125 (init_tty, maybe_fatal): New functions.
19126 (Ftty_type): Return nil if terminal is not on a tty instead of
19127 throwing an error. Doc update.
19128 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19129 Doc update. Initialize new subrs and variables.
19130 (delete_tty): Use terminal->deleted.
19131 (tty_set_terminal_modes): Rename from set_terminal_modes.
19132 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19133 (set_scroll_region): Rename to `tty_set_scroll_region'.
19134 (turn_on_insert): Rename to `tty_turn_on_insert'.
19135 (turn_off_insert): Rename to `tty_turn_off_insert'.
19136 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19137 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19138 (toggle_highligh): Rename to `tty_toggle_highlight'.
19139 (background_highlight): Rename to `tty_background_highlight'.
19140 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19141 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19142 (tty_set_scroll_region, tty_background_highlight)
19143 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19144 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19145 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19146 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19147 Add static modifier.
19148 (tty_reset_terminal_modes, tty_set_terminal_window)
19149 (tty_set_scroll_region, tty_background_highlight)
19150 (tty_highlight_if_desired, tty_cursor_to)
19151 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19152 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19153 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19154 renames.
19155
19156 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19157
19158 * keyboard.c: Qrtl is new.
19159 (parse_tool_bar_item): Handle :rtl keyword.
19160 (syms_of_keyboard): Intern :rtl keyword.
19161
19162 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19163
19164 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19165 so no Lisp code is executed.
19166 (file_for_image, find_rtl_image): New functions.
19167 (xg_get_image_for_pixmap): Use file_for_image.
19168 (update_frame_tool_bar): If direction is RTL, use RTL image if
19169 defined. Use Gtk stock images if defined.
19170
19171 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19172
19173 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19174 for nonexistent or zero-width glyph in composition glyph.
19175
19176 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19177
19178 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19179
19180 * xdisp.c (Finvisible_p): New function.
19181 (syms_of_xdisp): defsubr it.
19182
19183 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
19184
19185 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19186 Doc fixes.
19187
19188 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19189
19190 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19191
19192 2007-08-24 Martin Rudalics <rudalics@gmx.at>
19193
19194 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19195 whether decoding has modified buffer contents.
19196
19197 2007-08-24 Jason Rumney <jasonr@gnu.org>
19198
19199 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19200 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19201 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19202 (init_svg_functions) [HAVE_NTGUI]: New function.
19203 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19204 (svg_load_image): Use them.
19205 (svg_load_image) [HAVE_NTGUI]: Implement background.
19206
19207 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19208
19209 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19210 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19211 (LIBX): Remove @RSVG_LIBS@.
19212 (LIBES): Add $(RSVG_LIBS).
19213
19214 * image.c (svg_load_image): Blend with specified background if exists.
19215 Use IMAGE_BACKGROUND. Add Mac OS Support.
19216
19217 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19218 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19219 Remove macros.
19220 [MAC_OSX] (socket_callback): Do nothing.
19221 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19222 ReceiveNextEvent.
19223 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19224 socket_callback.
19225 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19226
19227 2007-08-22 Glenn Morris <rgm@gnu.org>
19228
19229 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19230
19231 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19232
19233 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19234
19235 * image.c: Add support for SVG images. Some additional comments
19236 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19237 (svg_image_p): New function to test for SVG image.
19238 (svg_load): New function to load SVG image.
19239 (svg_load_image): New function, helper for svg_load.
19240 (Qsvg): New Lisp_object.
19241 (svg_keyword_index): New enum.
19242 (svg_format): New static `image_keyword' struct.
19243 (svg_type): New static `image_type' struct.
19244 (librsvg/rsvg.h): Include it.
19245
19246 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19247
19248 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19249
19250 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19251
19252 * lread.c (Qold_style_backquotes): New var.
19253 (syms_of_lread): Init and staticpro it.
19254 (load_warn_old_style_backquotes): New fun.
19255 (Fload): Use them to warn about old style backquotes.
19256 (end_of_file_error, Fload): Remove unused vars.
19257
19258 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19259
19260 * lread.c (Vold_style_backquotes): New var.
19261 (syms_of_lread): Init and export it to Elisp.
19262 (read1): Set it when we find an old-style (back)quote.
19263
19264 2007-08-22 Jason Rumney <jasonr@gnu.org>
19265
19266 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19267
19268 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19269
19270 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19271
19272 2007-08-19 Richard Stallman <rms@gnu.org>
19273
19274 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19275
19276 2007-08-19 Andreas Schwab <schwab@suse.de>
19277
19278 * alloc.c (pure): Round PURESIZE up.
19279
19280 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19281
19282 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19283 active frame.
19284
19285 2007-08-16 Richard Stallman <rms@gnu.org>
19286
19287 * eval.c (Fcommandp): Add parens to clarify.
19288
19289 * minibuf.c (Fall_completions): Use enum for type of table.
19290
19291 * emacs.c (USAGE2): Improve text.
19292
19293 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19294
19295 * term.c (tty_default_color_capabilities): Declare static
19296 variables in file scope, to avoid HPUX compiler problem.
19297
19298 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19299
19300 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19301 to gtk_toolbar_insert.
19302
19303 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19304
19305 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19306
19307 * insdel.c (reset_var_on_error): New fun.
19308 (signal_before_change, signal_after_change):
19309 Use it to reset (after|before)-change-functions to nil in case of error.
19310 Bind inhibit-modification-hooks to t.
19311 Don't bind (after|before)-change-functions to nil while they run.
19312
19313 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19314
19315 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19316 filling pixmap with stippled background.
19317
19318 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19319
19320 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19321 Don't use invisible frame as parent window for repositioning.
19322
19323 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19324
19325 * print.c (new_backquote_output): Rename from old_backquote_output.
19326 (print): Inverse its logic (according to its name) so as to match the
19327 behavior of new_backquote_flag in lread.c.
19328
19329 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19330
19331 * gmalloc.c (posix_memalign): New function.
19332
19333 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19334 ActivateControl/DeactivateControl here.
19335 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19336 frame-notice-user-settings is non-nil.
19337 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19338 for kEventParamFMFontStyle.
19339 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19340 mac_pass_command_to_system and mac_pass_control_to_system here.
19341 (XTread_socket): Call ActivateControl/DeactivateControl here.
19342 (XTread_socket) [TARGET_API_MAC_CARBON]:
19343 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19344 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19345 for window repositioning.
19346
19347 2007-08-08 Glenn Morris <rgm@gnu.org>
19348
19349 * Replace `iff' in doc-strings and comments.
19350
19351 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
19352
19353 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19354
19355 2007-08-07 Martin Rudalics <rudalics@gmx.at>
19356
19357 * fileio.c (Finsert_file_contents): Run format-decode and
19358 after_insert_file_functions on entire buffer when REPLACE is
19359 non-nil and inhibit modification_hooks and point_motion_hooks.
19360 For consistency, run after_insert_file_functions iff something
19361 got inserted. Move signal_after_change and update_compositions
19362 after code running after_insert_file_functions. Make sure that
19363 undo_list doesn't record intermediate steps of the decoding process.
19364
19365 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19366
19367 * emacs.c (main)
19368 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19369 Call malloc_enable_thread on interactive startup.
19370
19371 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19372 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19373 [USE_PTHREAD]: Conditionalize with it.
19374 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19375 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19376 New functions.
19377
19378 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
19379
19380 * xdisp.c (redisplay_window): When restoring original buffer
19381 position, make sure it is still valid.
19382
19383 * image.c (png_load): Ignore png-supplied background color.
19384
19385 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19386
19387 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19388 Use kCFAbsoluteTimeIntervalSince1970.
19389
19390 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19391 New variable.
19392 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19393 event loop should be quit.
19394 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19395 Quit dialog event loop if quit_dialog_event_loop is set.
19396
19397 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19398 (Selection): New typedef. Use instead of ScrapRef.
19399 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19400 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19401 (mac_clear_selection): Rename from clear_scrap.
19402 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19403 scrap_has_target_type. All uses changed.
19404 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19405 (mac_selection_has_target_p): New functions.
19406 (mac_put_selection_value): Rename from put_scrap_string.
19407 (mac_get_selection_value): Rename from get_scrap_string.
19408 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19409 (put_scrap_private_timestamp, scrap_has_target_type)
19410 (get_scrap_private_timestamp): Remove functions.
19411 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19412 (x_own_selection, x_get_local_selection):
19413 Use mac_valid_selection_value_p.
19414 (x_own_selection): Don't use put_scrap_private_timestamp.
19415 Record OWNERSHIP-INFO into Vselection_alist instead.
19416 (x_get_local_selection): Don't check type if request is local.
19417 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19418 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19419
19420 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19421
19422 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19423 add comment explaining why.
19424
19425 2007-08-03 Richard Stallman <rms@gnu.org>
19426
19427 * fileio.c (Fvisited_file_modtime): Use make_time.
19428
19429 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19430
19431 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19432 build.
19433
19434 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19435
19436 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19437
19438 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19439
19440 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19441
19442 2007-07-30 Richard Stallman <rms@gnu.org>
19443
19444 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19445
19446 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19447
19448 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19449
19450 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
19451
19452 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19453 remote default-directory.
19454
19455 * buffer.c (mode-line-format): Update doc string.
19456
19457 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19458
19459 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19460 scroll bar gap.
19461 (x_scroll_bar_create): Set bar->fringe_extended_p.
19462 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19463 on frame edge. Check fringe background extension. Don't clear
19464 extended fringe background area.
19465
19466 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19467 (w32_fill_area): Enclose multiple statements with do ... while (0).
19468
19469 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19470 Extend fringe background to scroll bar gap.
19471 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19472 Set bar->fringe_extended_p.
19473 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19474 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19475 background extension. Don't clear extended fringe background area.
19476
19477 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19478 New member fringe_extended_p.
19479
19480 2007-07-25 Glenn Morris <rgm@gnu.org>
19481
19482 * Relicense all FSF files to GPLv3 or later.
19483
19484 * COPYING: Switch to GPLv3.
19485
19486 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19487
19488 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19489
19490 * data.c (Finteractive_form): Check for the presence of an
19491 `interactive-form' symbol property more thoroughly.
19492
19493 * data.c (Finteractive_form): Use an `interactive-form' property if
19494 present, analogous to the function-documentation property.
19495
19496 2007-07-24 Jason Rumney <jasonr@gnu.org>
19497
19498 * w32fns.c (x_real_positions): Get real position from OS instead of
19499 calculating it.
19500
19501 2007-07-23 Jason Rumney <jasonr@gnu.org>
19502
19503 * filelock.c (current_lock_owner): Allow for @ sign in username.
19504
19505 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
19506
19507 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19508 remote default-directory.
19509
19510 * buffer.c (mode-line-format): Describe above case in doc string.
19511
19512 2007-07-20 Eli Zaretskii <eliz@gnu.org>
19513
19514 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19515 Define if not defined.
19516
19517 2007-07-18 Jason Rumney <jasonr@gnu.org>
19518
19519 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19520
19521 2007-07-18 Richard Stallman <rms@gnu.org>
19522
19523 * data.c (Fsetq_default): Doc fix.
19524
19525 * eval.c (Fsetq): Doc fix.
19526
19527 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
19528
19529 * coding.c (Ffind_operation_coding_system):
19530 * eval.c (For, Fand): Doc fixes.
19531 Reported by Johan Bockgård.
19532
19533 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19534
19535 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19536
19537 * xterm.h: Declare x_ewmh_activate_frame.
19538
19539 * xterm.c (x_ewmh_activate_frame): New function.
19540 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19541
19542 2007-07-17 Martin Rudalics <rudalics@gmx.at>
19543
19544 * window.c (Fdisplay_buffer): If largest or LRU window is the
19545 only window, split it even if it is not eligible for splitting.
19546 This restores the original behavior broken by the 2007-07-15
19547 change.
19548
19549 2007-07-17 Glenn Morris <rgm@gnu.org>
19550
19551 * abbrev.c (abbrev_check_chars): New function.
19552 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19553 Call abbrev_check_chars to check abbrev characters are word
19554 constituents. Doc fix.
19555
19556 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19557
19558 * process.c (Fstart_process, Fmake_network_process)
19559 (read_process_output): Fix up last changes.
19560
19561 2007-07-16 Eli Zaretskii <eliz@gnu.org>
19562
19563 * makefile.w32-in (clean): Don't delete *~.
19564
19565 2007-07-16 Andreas Schwab <schwab@suse.de>
19566
19567 * window.c (Fdisplay_buffer): Use NILP.
19568 (Fset_window_scroll_bars): Likewise.
19569
19570 2007-07-15 Martin Rudalics <rudalics@gmx.at>
19571
19572 * window.c (window_min_size_2): New function.
19573 (window_min_size_1, size_window, Fdisplay_buffer)
19574 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19575 windows without mode- or header-lines when window-min-height is
19576 too small.
19577 (size_window): Reset nodelete_p after testing it, following an
19578 earlier note by Kim F. Storm.
19579 (display_buffer): Do not set split_height_threshold to twice the
19580 value of window_min_height to avoid changing the value of a
19581 customizable variable. Rather explicitly check whether the
19582 height of the window that shall be splitted is at least as large
19583 as split_height_threshold.
19584 (Fwindow_full_width_p): New defun.
19585 (syms_of_window): Defsubr it.
19586
19587 * window.h: Add EXFUN for Fwindow_full_width_p.
19588
19589 2007-07-14 Jason Rumney <jasonr@gnu.org>
19590
19591 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19592
19593 2007-07-14 Richard Stallman <rms@gnu.org>
19594
19595 * eval.c (maybe_call_debugger): New function.
19596 (find_handler_clause): Use maybe_call_debugger.
19597 Call it when the handler says `debug'.
19598 Eliminate DEBUGGER_VALUE_PTR.
19599 (Fsignal): Eliminate debugger_value.
19600 (Qdebug): New variable.
19601 (syms_of_eval): Initialize it.
19602
19603 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
19604
19605 * eval.c (Fprogn):
19606 * keyboard.c (Ftrack_mouse):
19607 * print.c (Fwith_output_to_temp_buffer):
19608 * window.c (Fsave_window_excursion): Doc fix.
19609
19610 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19611
19612 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19613
19614 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19615
19616 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19617 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19618 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19619 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19620 Remove unused encoding_carryover.
19621 * process.c: Adjust all functions accordingly.
19622
19623 2007-07-12 Richard Stallman <rms@gnu.org>
19624
19625 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19626
19627 2007-07-11 Jason Rumney <jasonr@gnu.org>
19628
19629 * makefile.w32-in (LIBS): Include OLE32.
19630
19631 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19632 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19633
19634 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19635
19636 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19637 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19638 from a Lisp_Object into a bare pointer.
19639 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19640 Adjust the code correspondingly.
19641
19642 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19643
19644 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19645 (term_show_mouse_face): Remove unused var `j'.
19646 (handle_one_term_event): Remove unused vars `i' and `j'.
19647 Don't cast return value of ttyname since it's not necessary.
19648
19649 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19650
19651 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19652 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19653
19654 * fns.c (map_char_table): Use an array of int for `indices' rather than
19655 an array of Lisp_Objects (which are only ever integers anyway).
19656 (Fmap_char_table): Update caller.
19657 * lisp.h: Update prototype.
19658 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19659 * fontset.c (Ffontset_info):
19660 * casetab.c (set_case_table): Update callers.
19661
19662 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19663
19664 * keymap.c (struct accessible_keymaps_data)
19665 (struct where_is_internal_data): New structures.
19666 (accessible_keymaps_1, where_is_internal_1): Use them to change
19667 interface to adhere to the one used by map_keymap.
19668 (Faccessible_keymaps, where_is_internal): Use map_keymap.
19669 (accessible_keymaps_char_table, where_is_internal_2): Remove.
19670
19671 * keymap.h (map_keymap_function_t): More informative prototype.
19672
19673 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
19674
19675 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19676 (looking_at_1): Don't change search_regs and last_thing_searched
19677 if `inhibit-changing-match-data' is non-nil.
19678 (string_match_1, search_buffer, set_search_regs): Likewise.
19679 (syms_of_search): Add Lisp level definition for
19680 `inhibit-changing-match-data' and set it to nil.
19681 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
19682 start and end of the match, instead of using values in search_regs.
19683
19684 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
19685
19686 * minibuf.c (Fcompleting_read): New value `confirm-only'
19687 for `require-match'.
19688
19689 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
19690
19691 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
19692 part of the 2007-06-27 change to syms_of_fileio.
19693
19694 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19695
19696 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
19697 Check WINDOWP before using XWINDOW. Consolidate return statements.
19698
19699 2007-06-27 Richard Stallman <rms@gnu.org>
19700
19701 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19702
19703 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
19704
19705 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
19706
19707 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19708
19709 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
19710 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
19711 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
19712 (_free_internal, memalign): Use them.
19713 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
19714 Initialize to PTHREAD_MUTEX_INITIALIZER.
19715 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
19716 (morecore_nolock): Rename from morecore. All uses changed.
19717 Use only nolock versions of internal allocation functions.
19718 (_malloc_internal_nolock, _realloc_internal_nolock)
19719 (_free_internal_nolock): New functions created from
19720 _malloc_internal, _realloc_internal, and _free_internal.
19721 (_malloc_internal, _realloc_internal, _free_internal): Use them.
19722 Copy hook value to automatic variable before its use.
19723 (memalign): Copy hook value to automatic variable before its use.
19724
19725 2007-06-26 Kenichi Handa <handa@m17n.org>
19726
19727 * coding.c (Ffind_operation_coding_system): Docstring improved.
19728 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
19729
19730 2007-06-25 David Kastrup <dak@gnu.org>
19731
19732 * keymap.c (Fcurrent_active_maps): Add `position' argument.
19733 (Fwhere_is_internal): Adjust call to `current-active-maps' to
19734 cater for additional parameter.
19735
19736 * keymap.h: Adjust number of parameters to `current-active-maps'.
19737
19738 * doc.c (Fsubstitute_command_keys): Adjust call of
19739 `current-active-maps'.
19740
19741 2007-06-25 David Kastrup <dak@gnu.org>
19742
19743 * callint.c (Fcall_interactively): Make the parsing of interactive
19744 specs somewhat more readable.
19745
19746 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19747
19748 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
19749 to scroll bar gap also when bitmap fills fringe. Draw only foreground
19750 if extended background has already been filled.
19751
19752 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19753
19754 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
19755 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
19756
19757 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
19758 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
19759 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
19760 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
19761 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
19762 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
19763 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
19764 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
19765 Run timers during dialog popup.
19766 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
19767
19768 2007-06-21 Jason Rumney <jasonr@gnu.org>
19769
19770 * image.c (convert_mono_to_color_image): Swap fore and background.
19771
19772 2007-06-20 Jason Rumney <jasonr@gnu.org>
19773
19774 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
19775 (w32_free_bdf_font): Unmap memory not handle.
19776
19777 2007-06-20 Sam Steingold <sds@gnu.org>
19778
19779 * gmalloc.c (__morecore): Fix the declaration to comply with the
19780 definition.
19781
19782 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
19783
19784 * w32term.c (w32_delete_display): Remove leftover declaration.
19785 (w32_define_cursor, w32_initialize): Make static.
19786
19787 * w32.c (_wsa_errlist): Fix typo in error message.
19788 (init_environment): Ignore any environment variable from the
19789 registry having a null value.
19790
19791 2007-06-20 Glenn Morris <rgm@gnu.org>
19792
19793 * Makefile.in (LIBGIF): Default to -lgif.
19794
19795 2007-06-17 Jason Rumney <jasonr@gnu.org>
19796
19797 * w32menu.c (add_menu_item): Don't use multibyte string functions on
19798 unicode strings.
19799
19800 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
19801
19802 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
19803 Fix typo in docstring.
19804
19805 2007-06-16 Eli Zaretskii <eliz@gnu.org>
19806
19807 * w32menu.c (add_menu_item): Escape `&' characters in menu items
19808 and their keybindings.
19809
19810 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
19811
19812 * composite.c (update_compositions): Fix last fix.
19813
19814 2007-06-14 Jason Rumney <jasonr@gnu.org>
19815
19816 * w32.c (get_process_times_fn): New function pointer.
19817 (globals_of_w32): Intialize it if present in kernel32.dll.
19818 (w32_get_internal_run_time): New function.
19819
19820 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
19821
19822 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
19823
19824 * composite.c (update_compositions): Check the validness of
19825 compositions.
19826
19827 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19828
19829 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
19830 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
19831
19832 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
19833 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
19834
19835 * macgui.h (USE_MAC_TOOLBAR): New define.
19836
19837 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19838 Return immediately unless popup is activated.
19839
19840 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
19841 background to scroll bar gap.
19842 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
19843 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
19844 scroll bars on frame edge. Check fringe background extension.
19845 Don't clear extended fringe background area.
19846 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
19847 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
19848 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
19849 [USE_MAC_TOOLBAR]: New macros.
19850 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
19851 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
19852 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
19853 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
19854 [USE_MAC_TOOLBAR]: New functions.
19855 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
19856 manually if previous repositioning has failed.
19857 (mac_handle_keyboard_event): Use precomputed event kind.
19858 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
19859 as tool bar item click. Handle mouse movement over tool bar items.
19860
19861 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
19862 toolbar_win_gravity.
19863 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
19864 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
19865 Add externs.
19866
19867 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
19868 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
19869
19870 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
19871
19872 * image.c (search_image_cache): Remove unused variable.
19873
19874 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
19875
19876 * xfns.c, xmenu.c: Link to xaw3d if available.
19877
19878 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19879
19880 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
19881 frame_foreground and frame_background.
19882
19883 * image.c (lookup_image): Save frame foreground and background colors.
19884 (search_image_cache): Check if saved and current frame colors match.
19885
19886 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19887
19888 * regex.c (regex_compile): Remove the `regnum' counter.
19889 Use bufp->re_nsub instead. Add support for \(?N:RE\).
19890
19891 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19892
19893 * term.c: Include intervals.h to declare Fget_text_property.
19894
19895 2007-06-10 Jason Rumney <jasonr@gnu.org>
19896
19897 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
19898
19899 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
19900
19901 * callint.c (Fcall_interactively):
19902 * editfns.c (Fdelete_and_extract_region):
19903 * fileio.c (Fread_file_name):
19904 * fns.c (Fmapconcat):
19905 * keyboard.c (cmd_error_internal):
19906 * keymap.c (Fkey_description):
19907 * lread.c (openp):
19908 * minibuf.c (read_minibuf):
19909 * search.c (wordify):
19910 * sunfns.c (sel_read):
19911 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
19912 * xfns.c (x_default_scroll_bar_color_parameter):
19913 * xmenu.c (menu_help_callback):
19914 * xselect.c (Fx_get_atom_name):
19915 * xterm.c (x_term_init): Use empty_unibyte_string.
19916
19917 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
19918
19919 * alloc.c (init_strings): Initialize canonical empty strings.
19920 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
19921 canonical empty string when the requested size is 0.
19922
19923 * emacs.c (empty_unibyte_string): Rename from empty_string.
19924 (empty_multibyte_string): New canonical empty string.
19925 (syms_of_emacs): Don't initialize empty_string.
19926
19927 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
19928 string, if appropriate.
19929 (empty_unibyte_string, empty_multibyte_string): New externs.
19930 (empty_string): Remove extern.
19931
19932 * lread.c (syms_of_lread): Use empty_unibyte_string.
19933
19934 2007-06-07 Jason Rumney <jasonr@gnu.org>
19935
19936 * s/ms-w32.h: Don't define HAVE_TZNAME.
19937
19938 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
19939
19940 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19941
19942 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
19943
19944 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
19945 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
19946
19947 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19948 Don't call next handler.
19949 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
19950 Remove argument. Install handler to application.
19951 (set_frame_menubar): Don't change deep_p.
19952 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
19953 FRAME_OUTER_TO_INNER_DIFF_Y.
19954 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19955 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19956 [HAVE_DIALOGS]: New macros.
19957 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
19958 Use them.
19959 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
19960
19961 * macselect.c [MAC_OSX] (install_service_handler): Rename from
19962 init_service_handler. All callers changed. Return OSStatus value.
19963
19964 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
19965 All callers changed so as not to call SetPortWindowPort.
19966 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
19967 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
19968 mac_draw_string_common.
19969 (mac_draw_image_string_qd): Likewise.
19970 (mac_draw_string_common): Use them. Add INLINE.
19971 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
19972 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
19973 GetGlobalMouse.
19974 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
19975 and FRAME_OUTER_TO_INNER_DIFF_Y.
19976 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
19977 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
19978 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
19979 repositioning window to mac_handle_window_event.
19980 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
19981 saving window location to mac_handle_window_event
19982 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
19983 (install_menu_target_item_handler): Remove argument in extern.
19984 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
19985 Also accept command events.
19986 (do_keystroke): New function created from XTread_socket.
19987 (init_command_handler): Remove functions.
19988 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
19989 and save window location by kEventWindowShowing and kEventWindowHiding
19990 handlers here. Don't call next handler for window state change and
19991 focus events.
19992 (mac_handle_application_event, mac_handle_keyboard_event)
19993 [TARGET_API_MAC_CARBON]: New functions.
19994 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
19995 kEventWindowShowing and kEventWindowHiding events. Move installation
19996 of mouse, font, text input and menu target item handlers to
19997 install_application_handler.
19998 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
19999 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20000 New function.
20001 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20002 Register it.
20003 (XTread_socket) [TARGET_API_MAC_CARBON]:
20004 Consolidate SendEventToEventTarget calls.
20005 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20006 Move application activation handler to mac_handle_application_event.
20007 Move keyboard handler to mac_handle_keyboard_event.
20008 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20009 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20010 init_command_handler. Call install_application_handler.
20011
20012 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20013 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20014
20015 2007-06-07 Glenn Morris <rgm@gnu.org>
20016
20017 * emacs.c (main): Use `emacs-copyright' in --version output.
20018
20019 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
20020
20021 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20022
20023 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20024
20025 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20026
20027 * macgui.h: Replace WindowPtr with WindowRef.
20028
20029 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20030 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20031 Replace ControlHandle with ControlRef.
20032 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20033
20034 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20035 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20036 Replace ControlHandle with ControlRef.
20037 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20038 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20039
20040 * macterm.h (struct scroll_bar): Rename member control_handle_low
20041 and control_handle_high to control_ref_low and control_ref_high.
20042 All uses changed.
20043 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20044 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20045 respectively. All uses changed.
20046 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20047 (install_window_handler, remove_window_handler): Replace WindowPtr
20048 with WindowRef in externs.
20049
20050 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
20051
20052 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20053
20054 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
20055
20056 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20057
20058 * frame.c (Fmouse_position, Fmouse_pixel_position):
20059 Condition on HAVE_GPM too.
20060
20061 * term.c (term_mouse_highlight): Remove unused variables.
20062 (Fterm_open_connection): Set gpm_zerobased to 1.
20063 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20064 Use zero based co-ordinates.
20065 (handle_one_term_event): Report a drag as mouse movement too.
20066
20067 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20068
20069 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
20070
20071 * image.c (search_image_cache): New function. Require background
20072 color match if background color is unspecified in the image spec.
20073 (uncache_image, lookup_image): Use it.
20074
20075 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
20076
20077 * window.c (Fshrink_window): Reflow docstring.
20078
20079 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
20080
20081 * Version 22.1 released.
20082
20083 2007-06-01 Richard Stallman <rms@gnu.org>
20084
20085 * xfns.c (x_encode_text): Add GCPRO.
20086
20087 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20088
20089 * xfns.c (x_set_name_internal): Save encoded name before
20090 x_encode_text in case string data is relocated.
20091
20092 2007-05-31 Richard Stallman <rms@gnu.org>
20093
20094 * buffer.c (syms_of_buffer): Doc fix.
20095
20096 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
20097
20098 * sysdep.c (init_sys_modes): Add rather than replace with
20099 O_NONBLOCK.
20100
20101 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20102 term_mouse_moveto.
20103
20104 * termhooks.h (term_mouse_moveto): New extern.
20105
20106 * term.c (mouse_face_window): Rename...
20107 (Qmouse_face_window): ...to this.
20108 (term_show_mouse_face, term_clear_mouse_face)
20109 (term_mouse_highlight): Use Qmouse_face_window.
20110 (term_mouse_moveto): New function.
20111 (term_mouse_position): Make it work.
20112 (syms_of_term): Uncomment assignment to mouse_position_hook.
20113 Staticpro Qmouse_face_window.
20114
20115 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20116
20117 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20118 around current_column call.
20119
20120 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20121
20122 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20123 * xdisp.c (next_element_from_buffer):
20124 * window.c (delete_window):
20125 * term.c (term_mouse_highlight):
20126 * msdos.c (getdefdir):
20127 * macterm.c (mac_create_bitmap_from_bitmap_data)
20128 (init_font_name_table):
20129 * fns.c (Fsxhash):
20130 * data.c (Fmake_local_variable):
20131 * ccl.c (ccl_driver): Likewise.
20132
20133 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20134
20135 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20136 Call mac_wakeup_from_rne on window size change.
20137
20138 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
20139
20140 * image.c (uncache_image): Fix typo.
20141
20142 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20143
20144 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20145
20146 2007-05-22 Richard Stallman <rms@gnu.org>
20147
20148 * xterm.c (x_connection_closed): Remove NO_RETURN.
20149
20150 2007-05-22 Martin Rudalics <rudalics@gmx.at>
20151
20152 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20153
20154 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
20155
20156 * image.c (uncache_image): New function.
20157 (Fimage_refresh): New function.
20158
20159 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20160
20161 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20162
20163 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20164
20165 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20166 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20167
20168 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20169
20170 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20171 conditional on [HAVE_GPM_H].
20172
20173 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20174
20175 * syntax.c (skip_chars): Update syntax-table only after we checked that
20176 the new location is valid.
20177
20178 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20179
20180 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20181 mac_get_window_bounds.
20182
20183 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
20184
20185 * Makefile.in (LIBGPM): Allow it to be set from configure.
20186 If set then link Emacs with it.
20187
20188 * config.in: Regenerate.
20189
20190 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20191 New externs.
20192
20193 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20194 Include gpm.h.
20195 (handle_one_term_event, term_gpm): New externs.
20196
20197 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20198 and allow it to be interrupted by SIGIO.
20199
20200 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20201 (wait_reading_process_output): Wait on gpm_fd too.
20202 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20203 (add_gpm_wait_descriptor_called_flag): New variable.
20204 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20205
20206 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20207 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20208 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20209 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20210 (make_lispy_event): Add case GPM_CLICK_EVENT.
20211 (read_avail_input): Handle mouse input.
20212
20213 * term.c (write_glyphs_with_face): New function.
20214 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20215 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20216 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20217 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20218 (last_mouse_x, last_mouse_y): New variables.
20219 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20220 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20221 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20222 (Fterm_close_connection): New functions.
20223 (term_init): Initialise mouse_face_window.
20224
20225 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
20226
20227 * xdisp.c (redisplay_window): If first window line is a
20228 continuation line, recompute the new window start instead of
20229 recentering.
20230
20231 2007-05-18 Glenn Morris <rgm@gnu.org>
20232
20233 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20234 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20235
20236 2007-05-17 Glenn Morris <rgm@gnu.org>
20237
20238 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20239
20240 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20241
20242 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20243 dead key repeat and up events.
20244
20245 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
20246
20247 * image.c (pbm_load): Check image size for monochrome pbm.
20248
20249 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
20250
20251 * xterm.c (XTread_socket): Revert last change.
20252
20253 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
20254
20255 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20256
20257 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20258
20259 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20260
20261 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20262 mixup (YAILOM).
20263
20264 2007-05-07 Andreas Schwab <schwab@suse.de>
20265
20266 * keymap.c (Flookup_key): Fix typo in last change.
20267
20268 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20269
20270 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20271 mapping for unibyte strings.
20272
20273 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20274
20275 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20276 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20277
20278 2007-04-29 Richard Stallman <rms@gnu.org>
20279
20280 * insdel.c (replace_range): For undo, record insertion first.
20281
20282 2007-04-29 Andreas Schwab <schwab@suse.de>
20283
20284 * lisp.h (VECSIZE): Use OFFSETOF.
20285
20286 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20287
20288 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20289 disabled lines.
20290
20291 2007-04-28 Richard Stallman <rms@gnu.org>
20292
20293 * lread.c (read_escape): In a string, \s is always space.
20294
20295 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20296
20297 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20298
20299 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20300 submenu for menu bar items.
20301
20302 See ChangeLog.10 for earlier changes.
20303
20304 ;; Local Variables:
20305 ;; coding: utf-8
20306 ;; add-log-time-zone-rule: t
20307 ;; End:
20308
20309 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
20310
20311 This file is part of GNU Emacs.
20312
20313 GNU Emacs is free software: you can redistribute it and/or modify
20314 it under the terms of the GNU General Public License as published by
20315 the Free Software Foundation, either version 3 of the License, or
20316 (at your option) any later version.
20317
20318 GNU Emacs is distributed in the hope that it will be useful,
20319 but WITHOUT ANY WARRANTY; without even the implied warranty of
20320 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20321 GNU General Public License for more details.
20322
20323 You should have received a copy of the GNU General Public License
20324 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20325
20326 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40