]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Convert most remaining function definitions to standard C.
[gnu-emacs] / src / ChangeLog
1 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2 Juanma Barranquero <lekktu@gmail.com>
3
4 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5 * xdisp.c: Convert function definitions to standard C.
6
7 * cm.c (cmputc): Arg C is now int, not char.
8 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
9
10 2010-07-05 James Cloos <cloos@jhcloos.com>
11
12 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
13
14 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
15 _NET_WM_ICON_NAME atoms.
16
17 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
18 and _NET_WM_ICON_NAME properties, too, matching what is
19 done in the Gtk+ case.
20
21 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
22
23 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
24
25 * xsmfns.c (SSDATA): New macro.
26 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
27 passed to strlen/strcpy/strcat.
28 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
29 7:th arg to XChangeProperty to (unsigned char *)
30
31 * xsettings.c (something_changedCB, parse_settings)
32 (apply_xft_settings): Reformat prototype.
33 (something_changedCB, init_gconf): Remove unused variable i.
34 (read_settings): Remove unused variable long_len.
35
36 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
37 (xg_get_image_for_pixmap, create_dialog)
38 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
39 (menuitem_highlight_callback, make_menu_item)
40 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
41 (xg_create_scroll_bar, xg_update_scrollbar_pos)
42 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
43 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
44 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
45 (xg_tool_bar_item_expose_callback): Reformat prototype.
46 (xg_update_menubar): GList *group => GSList *group.
47 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
48 before use.
49 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
50 to GTK_IMAGE (wimage).
51
52 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
53
54 * atimer.c: Use "" instead of <> for local includes for
55 consistency with the rest of the code.
56
57 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
58 * xrdb.c (get_system_name):
59 * window.c (shrink_windows):
60 * syntax.c (forw_comment):
61 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
62 (ins_del_costs):
63 * mem-limits.h (start_of_data):
64 * lread.c (readevalloop):
65 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
66 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
67 * frame.c (x_get_focus_frame):
68 * floatfns.c (fmod_float):
69 * fileio.c (choose_write_coding_system):
70 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
71 (malloc_initialize_hook, sort_args, synchronize_locale):
72 * doprnt.c (doprnt):
73 * dired.c (compile_pattern):
74 * data.c (fmod_float):
75 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
76 (map_char_table_for_charset):
77 * charset.c (define_charset_internal):
78 * alloc.c (Fgarbage_collect): Convert declarations or definitions
79 to standard C.
80
81 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
82 Stefan Monnier <monnier@iro.umontreal.ca>
83
84 * lread.c (read1): Fix up last change to not mess up `c'.
85
86 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
87
88 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
89
90 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
91
92 Fix prototypes.
93
94 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
95 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
96 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
97 arg, as required by internal_condition_case_1.
98 * print.c (strout): Use const char* for arg PTR.
99 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
100 (analyse_first): Fix "const const".
101 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
102 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
103 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
104
105 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
106
107 * alloc.c: Convert function definitions to standard C.
108 * atimer.c:
109 * bidi.c:
110 * bytecode.c:
111 * callint.c:
112 * callproc.c:
113 * casefiddle.c:
114 * casetab.c:
115 * category.c:
116 * ccl.c:
117 * character.c:
118 * charset.c:
119 * chartab.c:
120 * cmds.c:
121 * coding.c:
122 * composite.c:
123 * data.c:
124 * dbusbind.c:
125 * dired.c:
126 * dispnew.c:
127 * doc.c:
128 * doprnt.c:
129 * ecrt0.c:
130 * editfns.c:
131 * fileio.c:
132 * filelock.c:
133 * filemode.c:
134 * fns.c:
135 * font.c:
136 * fontset.c:
137 * frame.c:
138 * fringe.c:
139 * ftfont.c:
140 * ftxfont.c:
141 * gtkutil.c:
142 * indent.c:
143 * insdel.c:
144 * intervals.c:
145 * keymap.c:
146 * lread.c:
147 * macros.c:
148 * marker.c:
149 * md5.c:
150 * menu.c:
151 * minibuf.c:
152 * prefix-args.c:
153 * print.c:
154 * ralloc.c:
155 * regex.c:
156 * region-cache.c:
157 * scroll.c:
158 * search.c:
159 * sound.c:
160 * strftime.c:
161 * syntax.c:
162 * sysdep.c:
163 * termcap.c:
164 * terminal.c:
165 * terminfo.c:
166 * textprop.c:
167 * tparam.c:
168 * undo.c:
169 * unexelf.c:
170 * window.c:
171 * xfaces.c:
172 * xfns.c:
173 * xfont.c:
174 * xftfont.c:
175 * xgselect.c:
176 * xmenu.c:
177 * xrdb.c:
178 * xselect.c:
179 * xsettings.c:
180 * xsmfns.c:
181 * xterm.c: Likewise.
182
183 2010-07-03 Eli Zaretskii <eliz@gnu.org>
184
185 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
186 frames other than the initial one. Fix reversal of colors when
187 `reverse' is specified in the frame parameters. Call
188 update_face_from_frame_parameter instead of
189 internal-set-lisp-face-attribute. Initialize screen colors from
190 initial_screen_colors[] when f->default_face_done_p is zero,
191 instead of depending on being called with default-frame-alist as
192 the alist argument.
193
194 * xfaces.c (update_face_from_frame_parameter): Move out of
195 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
196 with HAVE_WINDOW_SYSTEM.
197
198 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
199 to menu-bar-mode, if not set in the frame parameters or in
200 default-frame-alist.
201
202 * w32console.c (sys_tputs): Adjust argument list to prototype in
203 term.c.
204
205 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
206
207 * lisp.h (memory_warnings): Fix prototype.
208
209 * cm.h (evalcost): Fix prototype.
210
211 * cm.c (evalcost): Fix arg type.
212
213 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
214
215 * term.c (term_clear_mouse_face, Fidentity):
216 * syssignal.h (signal_handler_t):
217 * lisp.h (memory_warnings):
218 * coding.h (preferred_coding_system):
219 * cm.h (evalcost):
220 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
221
222 2010-07-02 Eli Zaretskii <eliz@gnu.org>
223
224 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
225 from prototypes.
226
227 * msdos.h (load_pixmap): Don't define away.
228
229 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
230
231 * lisp.h:
232 * atimer.h: Remove define for P_.
233
234 * alloc.c: Remove __P and P_ from .c and .m files.
235 * atimer.c:
236 * buffer.c:
237 * callint.c:
238 * category.c:
239 * charset.c:
240 * chartab.c:
241 * cm.c:
242 * coding.c:
243 * composite.c:
244 * data.c:
245 * dired.c:
246 * dispnew.c:
247 * doc.c:
248 * editfns.c:
249 * emacs.c:
250 * eval.c:
251 * fileio.c:
252 * filelock.c:
253 * fns.c:
254 * font.c:
255 * fontset.c:
256 * frame.c:
257 * ftfont.c:
258 * ftxfont.c:
259 * gmalloc.c:
260 * gtkutil.c:
261 * image.c:
262 * indent.c:
263 * intervals.c:
264 * keyboard.c:
265 * keymap.c:
266 * lread.c:
267 * marker.c:
268 * menu.c:
269 * minibuf.c:
270 * print.c:
271 * process.c:
272 * scroll.c:
273 * search.c:
274 * sound.c:
275 * strftime.c:
276 * syntax.c:
277 * sysdep.c:
278 * term.c:
279 * terminal.c:
280 * textprop.c:
281 * unexalpha.c:
282 * w32console.c:
283 * w32fns.c:
284 * w32font.c:
285 * w32menu.c:
286 * w32term.c:
287 * w32uniscribe.c:
288 * window.c:
289 * xdisp.c:
290 * xfaces.c:
291 * xfns.c:
292 * xfont.c:
293 * xftfont.c:
294 * xmenu.c:
295 * xselect.c:
296 * xterm.c: Likewise.
297
298 Remove P_ and __P macros.
299 * atimer.h: Remove P_ and __P macros.
300 * buffer.h:
301 * category.h:
302 * ccl.h:
303 * character.h:
304 * charset.h:
305 * cm.h:
306 * coding.h:
307 * composite.h:
308 * dispextern.h:
309 * disptab.h:
310 * dosfns.h:
311 * font.h:
312 * fontset.h:
313 * frame.h:
314 * gtkutil.h:
315 * indent.h:
316 * intervals.h:
317 * keyboard.h:
318 * keymap.h:
319 * lisp.h:
320 * macros.h:
321 * md5.h:
322 * menu.h:
323 * msdos.h:
324 * nsterm.h:
325 * puresize.h:
326 * region-cache.h:
327 * syntax.h:
328 * syssignal.h:
329 * systime.h:
330 * termhooks.h:
331 * w32font.h:
332 * w32term.h:
333 * widget.h:
334 * window.h:
335 * xgselect.h:
336 * xsettings.h:
337 * xterm.h: Likewise.
338
339 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
340
341 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
342
343 Cleanup old code.
344 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
345 * syssignal.h: Remove code for Lynx, not supported anymore.
346 * vm-limit.c: Remove unused code the depends on emacs not being
347 defined and NO_LIM_DATA being defined.
348 * mem-limits.h: Remove dead code.
349
350 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
351
352 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
353
354 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
355 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
356
357 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
358 parameters, they are already absolute.
359
360 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
361 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
362
363 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
364
365 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
366 FRAME_TOOLBAR_HEIGHT.
367
368 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
369 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
370
371 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
372
373 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
374 check default-frame-alist.
375
376 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
377
378 * process.c (create_process): Avoid using invalid file descriptors.
379
380 * callproc.c (child_setup): Avoid closing a file descriptor twice.
381
382 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
383
384 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
385 Improve documentation. Return font regardless of use_system_font.
386 (syms_of_xsettings): Improve documentation for font-use-system-font.
387
388 2009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
389
390 * xftfont.c (xftfont_open): Check font width one by one also when
391 spacing is dual.
392
393 * ftfont.c (ftfont_open): Ditto.
394
395 2010-06-30 Glenn Morris <rgm@gnu.org>
396
397 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
398
399 * Makefile.in (CANNOT_DUMP): Update for configure name change.
400
401 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
402 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
403 * s/darwin.h (SYSTEM_MALLOC):
404 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
405
406 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
407
408 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
409 (ns_get_screen): Don't assign integer to f.
410 (Fx_display_color_cells): Declarations before statements.
411
412 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
413
414 * xfns.c (x_default_font_parameter): Remove got_from_system
415 (Bug#6526).
416
417 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
418 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
419 defines based on what configure finds.
420
421 * xterm.c (XTflash): Use gtk_widget_get_window.
422 (xg_scroll_callback): Use gtk_adjustment_get_upper and
423 gtk_adjustment_get_page_size.
424 (handle_one_xevent): Use gtk_widget_get_mapped.
425 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
426 messages.
427
428 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
429
430 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
431 HAVE_GTK_FILE_SELECTION_NEW.
432
433 * gtkutil.c (xg_display_open, xg_display_close): Remove
434 HAVE_GTK_MULTIDISPLAY, it is always defined.
435 (xg_display_open): Return type is void.
436 (gtk_widget_set_has_window)
437 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
438 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
439 (gtk_adjustment_set_page_increment)
440 (gtk_adjustment_get_step_increment): #define these if not found
441 by configure.
442 (remove_submenu): New define based on Gtk+ version.
443 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
444 gtk_widget_get_window.
445 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
446 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
447 (create_dialog): Use gtk_dialog_get_action_area and
448 gtk_dialog_get_content_area.
449 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
450 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
451 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
452 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
453 g_object_ref and g_object_unref.
454 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
455 gtk_widget_get_sensitive.
456 (xg_update_submenu): Use remove_submenu.
457 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
458 properties instead to get old x and y position.
459 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
460 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
461 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
462 (xg_get_tool_bar_widgets): New function.
463 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
464 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
465 (toolbar_set_orientation): New #define based on if configure
466 finds gtk_orientable_set_orientation.
467 (xg_create_tool_bar): Call toolbar_set_orientation.
468 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
469 instead of gtk_box_pack_start_defaults.
470
471 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
472
473 * cmds.c (Fdelete_backward_char): Move into Lisp.
474
475 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
476
477 * s/freebsd.h (BSD4_2): Remove redundant definition.
478 bsd-common.h defines it already.
479
480 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
481
482 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
483 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
484 tool-bar-mode, which are now set using these X resources at
485 startup, to determine the defaults (Bug#2249).
486
487 * w32fns.c (Fx_create_frame):
488 * nsfns.m (Fx_create_frame): Likewise.
489
490 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
491
492 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
493
494 * gtkutil.c (xg_update_scrollbar_pos):
495 Avoid C99 mid-block variable declaration.
496
497 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
498
499 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
500
501 * gtkutil.h (xg_show_scroll_bar): Remove.
502
503 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
504 if height is less than scroll bar min size.
505 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
506
507 * xfns.c (x_default_font_parameter): Try to open font from system
508 before using it (bug#6478). Rename got_from_gconf to got_from_system.
509
510 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
511
512 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
513
514 2010-06-20 Eli Zaretskii <eliz@gnu.org>
515
516 * xdisp.c (try_scrolling): When scroll-conservatively is set to
517 most-positive-fixnum, be extra accurate when scrolling window
518 start, to avoid missing the cursor line.
519
520 2010-06-19 Eli Zaretskii <eliz@gnu.org>
521
522 * xdisp.c (try_scrolling): Compute the limit for searching point
523 in forward scroll from scroll_max, instead of an arbitrary limit
524 of 10 screen lines. See
525 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
526 and
527 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
528 for details.
529
530 2010-06-16 Glenn Morris <rgm@gnu.org>
531
532 * editfns.c (Fbyte_to_string): Pacify compiler.
533
534 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
535
536 * lread.c (read1): Phase out old-style backquotes a bit more.
537
538 2010-06-12 Eli Zaretskii <eliz@gnu.org>
539
540 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
541 bidimirror.h.
542
543 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
544
545 * bidi.c (bidi_initialize): Remove explicit initialization of
546 bidi_type_table; include biditype.h instead. Don't support
547 entries whose second codepoint is zero. Initialize bidi_mirror_table.
548 (bidi_mirror_char): Use bidi_mirror_table.
549
550 * biditype.h: New file.
551
552 * bidimirror.h: New file.
553
554 * window.c (syms_of_window): Doc fix (bug#6409).
555
556 2010-06-12 Romain Francoise <romain@orebokech.com>
557
558 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
559 ediff-hook.
560
561 2010-06-10 Glenn Morris <rgm@gnu.org>
562
563 * editfns.c (Fbyte_to_string): Pacify compiler.
564
565 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
566
567 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
568
569 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
570 Check `object's type before accessing its guts.
571
572 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
573
574 * s/usg5-4.h: Fix previous change.
575 Suggested by Lawrence Mitchell <wence@gmx.li>
576
577 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
578
579 * minibuf.c (Fall_completions): Add more checks.
580
581 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
582
583 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
584
585 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
586
587 * lread.c (X_OK): Remove, unused.
588
589 * dispnew.c: Remove obsolete comment.
590
591 Remove INCLUDED_FCNTL.
592 * xterm.c (INCLUDED_FCNTL):
593 * callproc.c (INCLUDED_FCNTL):
594 * alloc.c (INCLUDED_FCNTL):
595 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
596 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
597
598 2010-06-07 Martin Rudalics <rudalics@gmx.at>
599
600 * window.c (Fselect_window): Move `record_buffer' up to the
601 beginning of this function, so the buffer gets recorded
602 even if the selected window does not change.
603 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
604
605 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
606
607 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
608 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
609
610 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
611
612 Remove BSTRING related code, all platforms define it.
613 * s/usg5-4.h (BSTRING): Remove definition.
614 * s/template.h (BSTRING):
615 * s/msdos.h (BSTRING):
616 * s/ms-w32.h (BSTRING):
617 * s/hpux10-20.h (BSTRING):
618 * s/gnu-linux.h (BSTRING):
619 * s/darwin.h (BSTRING):
620 * s/cygwin.h (BSTRING):
621 * s/bsd-common.h (BSTRING):
622 * s/aix4-2.h (BSTRING): Likewise.
623 * sysdep.c: Remove code depending on BSTRING not being defined.
624
625 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
626
627 Remove obsolete macro BASE_LEADING_CODE_P.
628 * character.h (BASE_LEADING_CODE_P): Remove.
629 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
630 * buffer.c (Fset_buffer_multibyte):
631 * indent.c (scan_for_column, compute_motion):
632 * insdel.c (count_combining_before, count_combining_after):
633 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
634
635 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
636
637 Turn `directory-sep-char' into a noop.
638
639 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
640 (DIRECTORY_SEP): Define unconditionally.
641
642 * s/ms-w32.h (DIRECTORY_SEP): Remove.
643
644 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
645 call dostounix_filename directly.
646
647 * fileio.c (CORRECT_DIR_SEPS): Remove.
648 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
649 (Fsubstitute_in_file_name): Use dostounix_filename instead.
650 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
651 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
652
653 * w32proc.c (CORRECT_DIR_SEPS): Remove.
654 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
655
656 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
657
658 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
659 address. (Bug#6346)
660
661 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
662
663 * ccl.c (Fccl_program_p): Fix typo in docstring.
664
665 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
666
667 Move UNEXEC definition to autoconf.
668 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
669 * s/sol2-10.h (UNEXEC):
670 * s/irix6-5.h (UNEXEC):
671 * s/hpux10-20.h (UNEXEC):
672 * s/gnu-linux.h (UNEXEC):
673 * s/darwin.h (UNEXEC):
674 * s/cygwin.h (UNEXEC):
675 * s/bsd-common.h (UNEXEC):
676 * s/aix4-2.h (UNEXEC):
677 * m/alpha.h (UNEXEC): Likewise.
678 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
679
680 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
681
682 Remove obsolete pre-unicode2 macros.
683 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
684 * composite.c (composition_reseat_it):
685 * data.c (Faset):
686 * fns.c (Ffillarray):
687 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
688 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
689
690 2010-06-03 Juri Linkov <juri@jurta.org>
691
692 * buffer.c (Fother_buffer): Add CHECK_FRAME.
693 (Fswitch_to_buffer): Remove unused variable `err'.
694
695 2010-06-03 Glenn Morris <rgm@gnu.org>
696
697 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
698
699 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
700 now that AH_BOTTOM does it.
701
702 * m/hp800.h (HAVE_ALLOCA):
703 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
704
705 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
706 Remove NOT_C_CODE tests, it is always true now.
707
708 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
709
710 Fix config.h includes.
711 * xsettings.c:
712 * xgselect.c:
713 * nsterm.m:
714 * nsselect.m:
715 * nsimage.m:
716 * nsfont.m:
717 * nsfns.m:
718 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
719 other files do.
720
721 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
722
723 * s/sol2-6.h: Remove obsolete comments.
724
725 Remove unnecessary alloca.h includes.
726 * keymap.c: Do not include alloca.h, config.h does that.
727 * sysdep.c: Likewise. Do not define fwrite, not used.
728
729 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
730
731 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
732 the HAVE_TERMIO where it belongs (bug#6149).
733
734 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
735
736 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
737 of bug#6305).
738
739 2010-05-30 Eli Zaretskii <eliz@gnu.org>
740
741 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
742 state is always cached (bug#6306).
743
744 2010-05-29 Eli Zaretskii <eliz@gnu.org>
745
746 Fix cursor motion in bidi-reordered continued lines.
747 * xdisp.c (try_cursor_movement): Backup to non-continuation line
748 only after finding point's row. Fix the logic. Rewrite the loop
749 over continuation lines in bidi-reordered buffers. Return
750 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
751 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
752
753 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
754
755 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
756
757 2010-05-28 Kenichi Handa <handa@m17n.org>
758
759 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
760 Don't sheck SPEC if it is nil.
761 (font_list_entities): Call font_delete_unmatched if
762 Vface_ignored_fonts is non-nil. (Bug#6287)
763
764 2010-05-28 Glenn Morris <rgm@gnu.org>
765
766 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
767
768 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
769
770 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
771 whether to trash.
772 (internal_delete_file, Frename_file): Callers changed.
773 (delete_by_moving_to_trash): Doc fix.
774 (Fdelete_directory_internal): Don't move to trash.
775
776 * callproc.c (delete_temp_file):
777 * buffer.c (Fkill_buffer): Callers changed.
778
779 * lisp.h: Update prototype.
780
781 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
782
783 * xdisp.c (redisplay_window): After redisplay, check if point is
784 still valid before setting it (Bug#6177).
785
786 2010-05-27 Glenn Morris <rgm@gnu.org>
787
788 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
789 Convert comments to Makefile format.
790
791 * Makefile.in (bootstrap-clean): No more Makefile.c.
792
793 2010-05-26 Glenn Morris <rgm@gnu.org>
794
795 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
796 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
797
798 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
799 Remove.
800 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
801
802 2010-05-26 Kenichi Handa <handa@m17n.org>
803
804 * composite.c (composition_compute_stop_pos): Fix condition for
805 backward scanning.
806
807 2010-05-25 Glenn Morris <rgm@gnu.org>
808
809 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
810 Move before TEMACS_LDFLAGS.
811 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
812 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
813
814 * Makefile.in (NOT_C_CODE): No longer define.
815 (config.h): No longer include.
816
817 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
818 variables it may reference.
819
820 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
821 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
822
823 2010-05-25 Kenichi Handa <handa@m17n.org>
824
825 * dispextern.h (struct composition_it): New members rule_idx and
826 charpos.
827
828 * xdisp.c (set_iterator_to_next): While scanning backward, assume
829 that the character positions of IT point the last character of the
830 current grapheme cluster.
831 (next_element_from_composition): Don't change character positions
832 of IT.
833 (append_composite_glyph): Set glyph->charpos to
834 it->cmp_it.charpos.
835
836 * composite.c (autocmp_chars): Change the first argument to RULE,
837 and try composition with RULE only.
838 (composition_compute_stop_pos): Record the index number of the
839 composition rule in CMP_IT->rule_idx.
840 (composition_reseat_it): Call autocmp_chars repeatedly until the
841 correct rule of the composition is found.
842 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
843 is at the last character of the current grapheme cluster when
844 CMP_IT->reversed_p is nonzero.
845
846 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
847
848 * editfns.c (Fbyte_to_string): New function.
849
850 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
851
852 * process.c (Fmake_network_process): Set :host to nil if it's not used.
853 Suggested by Masatake YAMATO <yamato@redhat.com>.
854
855 2010-05-23 Eli Zaretskii <eliz@gnu.org>
856
857 * dispextern.h (init_iterator): Sync prototype with changed definition.
858
859 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
860
861 * s/netbsd.h: If terminfo is found, use it in preference to
862 termcap. (Bug#6190) [Backport from trunk]
863
864 2010-05-19 Eli Zaretskii <eliz@gnu.org>
865
866 Redesign and reimplement bidi-aware edge positions of glyph rows.
867
868 * dispextern.h (struct glyph_row): New members minpos and maxpos.
869 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
870 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
871 and maxpos members instead of start.pos and end.pos, respectively.
872
873 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
874 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
875 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
876 (try_window_reusing_current_matrix, try_window_id):
877 Use ROW->minpos rather than ROW->start.pos.
878 (init_from_display_pos, init_iterator): Use EMACS_INT for
879 character and byte positions.
880 (find_row_edges): Rename from find_row_end. Accept additional
881 arguments for minimum and maximum buffer positions seen by
882 display_line for this row. Don't use iterator to find the
883 position following the maximum one; instead, increment the
884 position found by display_line directly. Fix logic; eol_pos
885 should be tested before the rest. Handle the case of characters
886 delivered from display vector (bug#6036). Fix tests related to
887 it->method. Handle the truncated_on_right_p rows.
888 (RECORD_MAX_MIN_POS): New macro.
889 (display_line): Use it to record the minimum and maximum buffer
890 positions for glyphs in the row being assembled. Record the
891 position of the newline that terminates the line. If word wrap is
892 in effect, restore minimum and maximum positions seen up to the
893 wrap point, when iterator returns to it.
894 (try_window_reusing_current_matrix): Give up if in bidi-reordered
895 row and cursor not already at point. Restore original pre-bidi
896 code for unidirectional buffers.
897
898 * dispnew.c (increment_row_positions, check_matrix_invariants):
899 Increment and check row->start.pos and row->end.pos, in addition
900 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
901
902 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
903 Display truncated_on_left_p and truncated_on_right_p flags.
904 Formatting fixes.
905 (pmtxrows): Display the ordinal number of each row. Don't display
906 rows beyond the last one.
907
908 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
909 it is not copied by bidi_copy_it.
910
911 2010-05-22 Eli Zaretskii <eliz@gnu.org>
912
913 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
914 (Bug#6237)
915
916 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
917
918 * image.c (Fimage_flush): Rename from image-refresh.
919
920 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
921
922 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
923 just one window.
924
925 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
926 (clear_image_cache): If the number of cached images is unusually
927 large, decrease the cache eviction delay (Bug#6230).
928
929 2010-05-21 Glenn Morris <rgm@gnu.org>
930
931 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
932 Move these rules to ns.mk.
933 * ns.mk: New file.
934
935 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
936
937 * Makefile.in (CANNOT_DUMP): New, set by configure.
938 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
939
940 2010-05-20 Juri Linkov <juri@jurta.org>
941
942 * fileio.c (Fdelete_file): Change interative spec to use
943 `read-file-name' like in `find-file-read-args' where the default
944 value is `default-directory' instead of `buffer-file-name'.
945 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
946
947 2010-05-20 Kevin Ryde <user42@zip.com.au>
948
949 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
950 (Voverriding_terminal_local_map, Vsystem_key_alist)
951 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
952
953 2010-05-20 Glenn Morris <rgm@gnu.org>
954
955 * Makefile.in (DEPDIR): New constant.
956 (DEPFLAGS): Set with configure, not cpp.
957 (MKDEPDIR): New, set by configure.
958 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
959 (clean): Use $DEPDIR.
960 (deps_frag): Include from configure.
961 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
962 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
963
964 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
965 reallocation of the cache. (Bug#6210)
966
967 2010-05-19 Glenn Morris <rgm@gnu.org>
968
969 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
970
971 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
972 (GNULIB_VAR): Remove.
973 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
974
975 * m/ibms390x.h (LINKER):
976 * m/macppc.h (LINKER) [GNU_LINUX]:
977 * s/aix4-2.h (ORDINARY_LINK):
978 * s/cygwin.h (LINKER):
979 * s/darwin.h (ORDINARY_LINK):
980 * s/gnu.h (ORDINARY_LINK):
981 * s/netbsd.h (LINKER):
982 * s/usg5-4.h (ORDINARY_LINK):
983 Move to configure.
984
985 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
986
987 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
988
989 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
990 prevent stack overflow if number of arguments is too large
991 (Bug#6214).
992
993 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
994
995 * charset.c (load_charset_map_from_file): Don't call close after fclose.
996
997 2010-05-18 Glenn Morris <rgm@gnu.org>
998
999 * s/gnu-linux.h: Combine two conditionals.
1000
1001 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
1002 $(POST_ALLOC_OBJ).
1003
1004 * Makefile.in (RALLOC_OBJ): New, set by configure.
1005 (rallocobj): Replace with the previous variable.
1006 (otherobj): Use $RALLOC_OBJ.
1007
1008 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1009 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1010
1011 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1012 (gmallocobj, vmlimitobj): Replace with previous two variables.
1013 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1014
1015 2010-05-17 Glenn Morris <rgm@gnu.org>
1016
1017 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1018 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1019
1020 2010-05-16 Glenn Morris <rgm@gnu.org>
1021
1022 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1023
1024 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1025
1026 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1027 trailing "/".
1028
1029 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1030 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1031
1032 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1033 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1034 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1035 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1036 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1037
1038 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1039 Remove ${STARTFLAGS}, nothing ever sets it.
1040
1041 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1042
1043 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1044
1045 2010-05-16 Glenn Morris <rgm@gnu.org>
1046
1047 * Makefile.in (LIBX_BASE): Always define.
1048
1049 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1050
1051 * Makefile.in (LIBXT): Always define.
1052
1053 2010-05-15 Glenn Morris <rgm@gnu.org>
1054
1055 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
1056
1057 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1058 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1059
1060 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
1061
1062 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
1063 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1064
1065 * emacs.c (main): Initialize initial-environment and
1066 process-environment before generating from env, not after.
1067
1068 Handle --version reasonably in CANNOT_DUMP configuration.
1069 * emacs.c (emacs_version, emacs_copyright): New string variables.
1070 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1071 (syms_of_emacs): Defvar them, and initialize them from the C
1072 string variables.
1073 (main): If initialization hasn't been done, print initial version
1074 info from the C strings, instead of starting an interactive session.
1075
1076 2010-05-15 Eli Zaretskii <eliz@gnu.org>
1077
1078 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1079 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
1080 (bidi_paragraph_init): Remove redundant assertion that we are at
1081 the beginning of a line after call to bidi_find_paragraph_start.
1082
1083 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1084 (syms_of_xdisp): Defsubr it.
1085
1086 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1087
1088 * Makefile.in: Fix MSDOS-related comments.
1089
1090 2010-05-15 Glenn Morris <rgm@gnu.org>
1091
1092 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1093 (really-lwlib, really-oldXMenu): Always define.
1094 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1095
1096 * Makefile.in: Simplify cpp conditional.
1097
1098 * Makefile.in (${ns_appdir}): Simplify using umask.
1099
1100 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1101
1102 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1103
1104 * eval.c (specbind): Remove left-over duplicate test.
1105 Disallow let-binding frame-local vars. Add comment.
1106
1107 2010-05-14 Eli Zaretskii <eliz@gnu.org>
1108
1109 Make the cache of bidi iterator states dynamically allocated.
1110 * bidi.c (bidi_cache_shrink): New function.
1111 (bidi_init_it): Call it.
1112 (bidi_cache_iterator_state): Enlarge the cache if needed.
1113
1114 * bidi.c (bidi_move_to_visually_next): Rename from
1115 bidi_get_next_char_visually. All callers changed.
1116
1117 2010-05-14 Kenichi Handa <handa@m17n.org>
1118
1119 * dispextern.h (struct composition_it): New member reversed_p.
1120
1121 * composite.c (composition_compute_stop_pos): Search backward if
1122 ENDPOS < CHARPOS.
1123 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1124 Set CMP_IT->reversed_p.
1125 (composition_update_it): Pay attention to CMP_IT->reversed_p.
1126
1127 * xdisp.c (set_iterator_to_next):
1128 Call composition_compute_stop_pos with negative ENDPOS if we are
1129 scanning backward. Call composition_compute_stop_pos if scan
1130 direction is changed.
1131 (next_element_from_buffer): Call composition_compute_stop_pos with
1132 negative ENDPOS if we are scanning backward.
1133 (next_element_from_composition): Pay attention to
1134 IT->cmp_it.reversed_p.
1135
1136 2010-05-14 Kenichi Handa <handa@m17n.org>
1137
1138 * font.c (font_range): Return the range for the font found at first.
1139
1140 2010-05-14 Glenn Morris <rgm@gnu.org>
1141
1142 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1143
1144 * Makefile.in (mktime, X11, register): Move undefs to configure.
1145
1146 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1147 (MSDOS_X_OBJ): New variable.
1148 (MSDOS_SUPPORT_REAL): New constant.
1149 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1150 (obj): Use MSDOS_X_OBJ.
1151 (lisp): Use MSDOS_SUPPORT as a variable.
1152
1153 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1154 (GPM_MOUSE_SUPPORT): Now it's a constant.
1155 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1156 not cpp.
1157
1158 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
1159 (ns_appresdir): Remove, unused.
1160
1161 * Makefile.in (SHELL): Move outside cpp section.
1162
1163 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1164
1165 2010-05-13 Glenn Morris <rgm@gnu.org>
1166
1167 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1168 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1169
1170 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1171 HAVE_WINDOW_SYSTEM must be too.
1172
1173 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1174 (lisp): Remove WINNT_SUPPORT.
1175
1176 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1177 Let configure set these variables (to empty) in this case as well.
1178
1179 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1180 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1181
1182 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1183 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1184 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1185 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1186 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
1187 the values output by configure.
1188 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1189
1190 2010-05-12 Glenn Morris <rgm@gnu.org>
1191
1192 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1193 (LINKER_WAS_SPECIFIED): Remove.
1194
1195 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1196 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1197 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1198 * s/cygwin.h (LIB_GCC):
1199 * s/freebsd.h (LIB_GCC):
1200 * s/gnu-linux.h (LIB_GCC):
1201 * s/msdos.h (LIB_GCC):
1202 * s/netbsd.h (LIB_GCC):
1203 Move to configure.
1204
1205 2010-05-11 Karel Klic <kklic@redhat.com>
1206
1207 * ftfont.c: Fix incorrect parentheses of #if condition for
1208 definining M17N_FLT_USE_NEW_FEATURE.
1209
1210 2010-05-11 Glenn Morris <rgm@gnu.org>
1211
1212 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1213 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1214
1215 2010-05-10 Eli Zaretskii <eliz@gnu.org>
1216
1217 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1218 unibyte buffers. See
1219 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1220
1221 2010-05-10 Glenn Morris <rgm@gnu.org>
1222
1223 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1224 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1225 (LIBES): Use LIBS_SYSTEM as a variable.
1226 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1227 * s/aix4-2.h (LIBS_SYSTEM):
1228 * s/freebsd.h (LIBS_SYSTEM):
1229 * s/hpux10-20.h (LIBS_SYSTEM):
1230 * s/sol2-6.h (LIBS_SYSTEM):
1231 * s/unixware.h (LIBS_SYSTEM):
1232 Move to configure.
1233
1234 * s/aix4-2.h (MAIL_USE_LOCKF):
1235 * s/bsd-common.h (MAIL_USE_FLOCK):
1236 * s/darwin.h (MAIL_USE_FLOCK):
1237 * s/gnu-linux.h (MAIL_USE_FLOCK):
1238 * s/irix6-5.h (MAIL_USE_FLOCK):
1239 * s/template.h (MAIL_USE_FLOCK):
1240 Move to configure.
1241
1242 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
1243
1244 * Version 23.2 released.
1245
1246 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
1247
1248 * composite.c (autocmp_chars): Save point as marker before calling
1249 auto-composition-function (Bug#5984).
1250
1251 * lisp.h (restore_point_unwind): Add prototype.
1252
1253 * fileio.c (restore_point_unwind): Remove static attribute.
1254
1255 2010-05-08 Kenichi Handa <handa@m17n.org>
1256
1257 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1258 new feature of libotf and m17n-flt.
1259 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1260 Call OTF_check_features even if no specific feature is given.
1261 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1262 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1263 that OUT is NULL. Use OTF_drive_gsub_with_log and
1264 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1265 OTF_drive_gpos.
1266 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
1267 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1268 Setup mflt_enable_new_feature and mflt_try_otf.
1269
1270 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1271
1272 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1273
1274 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1275 box and toolbar (Bug #6139).
1276 (xg_create_tool_bar): Remove comment (Bug #6139).
1277 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1278 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1279
1280 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
1281
1282 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1283 Update dependencies.
1284
1285 2010-05-08 Eli Zaretskii <eliz@gnu.org>
1286
1287 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1288 R2L lines.
1289
1290 2010-05-08 Glenn Morris <rgm@gnu.org>
1291
1292 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1293
1294 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1295 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1296 (termcapobj): Replace with TERMCAP_OBJ.
1297 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1298 (LIBES): Use LIBS_TERMCAP as a variable.
1299
1300 * s/freebsd.h (osreldate.h): No longer include, since this file
1301 does not use __FreeBSD_version any more.
1302
1303 * s/aix4-2.h (TERMINFO):
1304 * s/cygwin.h (TERMINFO):
1305 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1306 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1307 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1308 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1309 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1310 * s/irix6-5.h (TERMINFO):
1311 * s/netbsd.h (LIBS_TERMCAP):
1312 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1313 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1314 * s/usg5-4.h (TERMINFO):
1315 Move to configure.
1316
1317 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1318
1319 * eval.c (unbind_to): Don't unbind a local binding into the global
1320 binding when the local binding disappeared. Inversely, don't unbind
1321 a global binding into a newly created local binding.
1322 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1323 can specify the frame to use, when applicable. Adjust callers.
1324
1325 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
1326 Stefan Monnier <monnier@iro.umontreal.ca>
1327
1328 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1329
1330 2010-05-07 Eli Zaretskii <eliz@gnu.org>
1331
1332 * w32fns.c: Include w32.h.
1333 (Fw32_shell_execute): Decode the error message before passing it
1334 to `error'. (Bug#6126)
1335
1336 * msdos.c (dos_set_window_size):
1337 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1338 instead of `XSYMBOL (foo)->value'.
1339
1340 2010-05-07 Eli Zaretskii <eliz@gnu.org>
1341
1342 Fix the MS-DOS build, broken by autoconfiscation.
1343
1344 * Makefile.in: Don't use Make-style comments past the "start of
1345 cpp stuff" line.
1346 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1347
1348 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1349 edited directly by msdos/sed1v2.inp).
1350
1351 2010-05-07 Glenn Morris <rgm@gnu.org>
1352
1353 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1354 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1355 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1356 move out of cpp section.
1357 * s/freebsd.h (LD_SWITCH_SYSTEM):
1358 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1359 * s/netbsd.h (LD_SWITCH_SYSTEM):
1360 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1361
1362 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1363
1364 Define LIB_STANDARD and START_FILES using autoconf.
1365 * s/usg5-4.h (LIB_STANDARD):
1366 * s/netbsd.h (START_FILES):
1367 * s/irix6-5.h (LIB_STANDARD):
1368 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1369 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1370 * s/freebsd.h (START_FILES):
1371 * s/darwin.h (START_FILES):
1372 * s/cygwin.h (START_FILES):
1373 * s/aix4-2.h (LIB_STANDARD):
1374 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1375 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1376 autoconf, not cpp.
1377
1378 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1379
1380 Remove NEED_BSDTTY and NEED_UNISTD_H.
1381 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1382 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1383 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1384 <sys/ptyio.h> and <unistd.h>.
1385
1386 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1387
1388 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1389 * s/gnu.h (START_FILES): Remove empty definition.
1390
1391 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1392
1393 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1394
1395 2010-05-06 Glenn Morris <rgm@gnu.org>
1396
1397 * Makefile.in (CPP, LN_S): Remove unused variables.
1398
1399 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1400
1401 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1402
1403 2010-05-05 Lawrence Mitchell <wence@gmx.li>
1404
1405 * m/sparc.h: Fix typo in earlier change.
1406
1407 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1408
1409 Misc tweaks.
1410 * eval.c (Fdefvaralias): Remove unintended nested if.
1411 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1412
1413 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
1414
1415 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1416
1417 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1418
1419 Remove BSD_PGRPS.
1420 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1421 * s/gnu-linux.h (BSD_PGRPS): Remove.
1422 * term.c (dissociate_if_controlling_tty):
1423 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1424 (init_sys_modes, reset_sys_modes):
1425 * emacs.c (main):
1426 * callproc.c (Fcall_process, child_setup): Remove code depending
1427 on BSD_PGRPS.
1428
1429 Remove POSIX_SIGNALS.
1430 * s/usg5-4.h (POSIX_SIGNALS):
1431 * s/netbsd.h (POSIX_SIGNALS):
1432 * s/msdos.h (POSIX_SIGNALS):
1433 * s/ms-w32.h (POSIX_SIGNALS):
1434 * s/hpux11.h (POSIX_SIGNALS):
1435 * s/gnu.h (POSIX_SIGNALS):
1436 * s/gnu-linux.h (POSIX_SIGNALS):
1437 * s/freebsd.h (POSIX_SIGNALS):
1438 * s/darwin.h (POSIX_SIGNALS):
1439 * s/cygwin.h (POSIX_SIGNALS):
1440 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1441 * s/unixware.h:
1442 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1443 * process.c (create_process):
1444 * syssignal.h:
1445 * sysdep.c (wait_for_termination, init_signals):
1446 * process.c (create_process):
1447 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1448 remove all code that assumes the contrary.
1449
1450 2010-05-04 Glenn Morris <rgm@gnu.org>
1451
1452 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1453 variable.
1454 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1455 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1456 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1457 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1458 LD_SWITCH_SYSTEM_tmp.
1459 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1460 New variables, set by configure.
1461
1462 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1463 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1464 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1465 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1466 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1467
1468 * s/aix4-2.h (C_SWITCH_SYSTEM):
1469 * m/alpha.h (C_SWITCH_MACHINE):
1470 Move to configure.in.
1471 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1472 New variables, set by configure.
1473 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1474 $c_switch_machine and $c_switch_system.
1475
1476 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1477
1478 * s/hpux10-20.h (LIB_STANDARD): New definition.
1479 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1480 on it, not used anymore.
1481
1482 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
1483
1484 * eval.c (internal_condition_case_n): Rename from
1485 internal_condition_case_2.
1486 (internal_condition_case_2): New function.
1487
1488 * xdisp.c (safe_call): Use internal_condition_case_n.
1489
1490 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1491 (internal_delete_file, Frename_file): Callers changed.
1492
1493 * buffer.c (Fkill_buffer):
1494 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1495
1496 * lisp.h: Update prototypes.
1497
1498 2010-05-03 Glenn Morris <rgm@gnu.org>
1499
1500 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1501 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1502 (LIBXT): Set with configure, not cpp.
1503 (LIBX): Remove.
1504 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1505
1506 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1507
1508 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1509 The FreeBSD is not needed, the default works, Solaris version is
1510 not needed, and the remaining case is not supported by configure.
1511
1512 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1513
1514 * xsmfns.c (CHDIR_OPT): New define.
1515 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1516 restarting emacs.
1517
1518 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1519 shut_down_emacs.
1520
1521 * emacs.c (USAGE1): Mention --chdir.
1522 (main): Handle --chdir.
1523 (standard_args): Add --chdir.
1524 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1525 #5552).
1526
1527 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1528
1529 Remove LD_SWITCH_MACHINE.
1530 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1531 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1532
1533 Clean up IRIX code.
1534 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1535 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1536
1537 Clean up AIX code.
1538 * m/ibmrs6000.inp: Remove file, unused.
1539 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1540 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1541 definition ...
1542 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1543
1544 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1545 unused.
1546
1547 2010-05-01 Eli Zaretskii <eliz@gnu.org>
1548
1549 Emulate POSIX_SIGNALS on MS-Windows.
1550
1551 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1552 (SIG_SETMASK, SIG_UNBLOCK): Define.
1553
1554 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1555 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1556 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1557
1558 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1559 New stubs.
1560
1561 Miscellaneous fixes of bidi display.
1562
1563 * xdisp.c (find_row_end): New function, refactored from display_line.
1564 (display_line): Use it.
1565 (extend_face_to_end_of_line): In almost-filled rows, extend only
1566 if the row is R2L and not continued.
1567 (display_line): Fix prepending of truncation glyphs to R2L rows.
1568 Preserve overlay and string info in row->end.
1569 (insert_left_trunc_glyphs): Support addition of left truncation
1570 glyphs to R2L rows.
1571 (set_cursor_from_row): Don't place cursor on the vertical border
1572 glyph between adjacent windows. Fix a crash when a display string
1573 is continued to the next line. Don't return zero if cursor was
1574 found by `cursor' property of a display string.
1575 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1576 test for that explicitly.
1577
1578 2010-05-01 Glenn Morris <rgm@gnu.org>
1579
1580 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1581 for clarity.
1582 (OTHER_OBJ): Remove.
1583 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1584 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1585
1586 2010-05-01 Karel Klíč <kklic@redhat.com>
1587
1588 * fileio.c (Ffile_selinux_context): Context functions may return null.
1589
1590 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1591
1592 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
1593
1594 2010-04-30 Glenn Morris <rgm@gnu.org>
1595
1596 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1597 (OTHER_OBJ): Define as a separate variable, for clarity.
1598
1599 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1600
1601 * xsettings.c: include limits.h and update file comment.
1602
1603 2010-04-30 Glenn Morris <rgm@gnu.org>
1604
1605 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1606 Set with configure, not cpp.
1607 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1608
1609 * Makefile.in (mallocobj): Remove.
1610 (otherobj): Simplify using @OTHER_OBJ@.
1611
1612 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1613 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1614 Don't bother making nsgui.h dependency platform-specific.
1615
1616 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1617
1618 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1619
1620 * process.c (read_process_output, exec_sentinel): Don't burp if the
1621 sentinel/filter kills the current buffer (bug#6060).
1622
1623 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
1624 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1625 Remove unused var `args'.
1626 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1627 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1628 * doc.c (store_function_docstring): Use XSETCAR.
1629
1630 2010-04-28 Glenn Morris <rgm@gnu.org>
1631
1632 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1633 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1634
1635 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1636
1637 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1638 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1639
1640 * Makefile.in (FONT_OBJ): New, set by configure.
1641 (FONT_DRIVERS): Use $FONT_OBJ.
1642
1643 * Makefile.in (LIBXMU): Set with configure, not cpp.
1644 * s/aix4-2.h (LIBXMU):
1645 * s/hpux10-20.h (LIBXMU):
1646 Remove definition, now set in configure.
1647
1648 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1649
1650 * m/amdx86-64.h [i386]: Move this test to configure.in.
1651
1652 2010-04-27 Glenn Morris <rgm@gnu.org>
1653
1654 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1655 * s/unixware.h (NEED_LIBW): Remove definition.
1656
1657 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1658 (TOOLKIT_LIBW): New, set by configure.
1659 (@X_TOOLKIT_TYPE@): No longer define it.
1660
1661 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1662 (MOTIF_LIBW): Set with configure, not cpp.
1663 * s/aix4-2.h (LIB_MOTIF):
1664 * s/gnu-linux.h (LIB_MOTIF):
1665 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1666
1667 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1668
1669 Reduce CPP usage.
1670 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1671 (obj): Use autoconf for unexec instead of cpp.
1672 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1673 definitions and undefs. Inline definitions in the only user.
1674 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
1675
1676 2010-04-27 Glenn Morris <rgm@gnu.org>
1677
1678 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1679 since the defaults (set by the system file) are fine in most cases.
1680 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1681 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1682 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1683 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1684 Remove definitions, since they are set correctly in s/gnu-linux.h.
1685 * s/freebsd.h (START_FILES, LIB_STANDARD):
1686 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1687 * s/hpux10-20.h (START_FILES):
1688 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1689 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1690
1691 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1692 (MOTIF_LIBW): Use $LIBXP.
1693 (otherobj): Use $WIDGET_OBJ.
1694
1695 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1696
1697 * Makefile.in (LIBS_MACHINE): Remove, unused.
1698
1699 Use autoconf instead of cpp for LIB_MATH.
1700 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1701 * s/cygwin.h (LIB_MATH): Likewise.
1702 * Makefile.in (LIB_MATH): Do not define with cpp.
1703 (LIBES): Use autoconf for LIB_MATH.
1704
1705 2010-04-26 Kenichi Handa <handa@m17n.org>
1706
1707 * composite.c (Ffind_composition_internal): Fix the return value
1708 for an automatic composition.
1709
1710 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1711
1712 Remove all NO_ARG_ARRAY uses.
1713 * fns.c (concat2, concat3, nconc2):
1714 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1715 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1716 * m/xtensa.h (NO_ARG_ARRAY):
1717 * m/template.h (NO_ARG_ARRAY):
1718 * m/sparc.h (NO_ARG_ARRAY):
1719 * m/sh3.h (NO_ARG_ARRAY):
1720 * m/mips.h (NO_ARG_ARRAY):
1721 * m/macppc.h (NO_ARG_ARRAY):
1722 * m/iris4d.h (NO_ARG_ARRAY):
1723 * m/intel386.h (NO_ARG_ARRAY):
1724 * m/ibms390x.h (NO_ARG_ARRAY):
1725 * m/ibms390.h (NO_ARG_ARRAY):
1726 * m/ibmrs6000.h (NO_ARG_ARRAY):
1727 * m/ia64.h (NO_ARG_ARRAY):
1728 * m/hp800.h (NO_ARG_ARRAY):
1729 * m/arm.h (NO_ARG_ARRAY):
1730 * m/amdx86-64.h (NO_ARG_ARRAY):
1731 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1732
1733 2010-04-25 Eli Zaretskii <eliz@gnu.org>
1734
1735 * xdisp.c (display_line): Don't assume 2nd call to
1736 get_next_display_element cannot return zero. (Bug#6030)
1737 (iterate_out_of_display_property): New function, body from pop_it.
1738 (pop_it): Use it.
1739
1740 2010-04-24 Glenn Morris <rgm@gnu.org>
1741
1742 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1743 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1744 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1745 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1746
1747 2010-04-24 Eli Zaretskii <eliz@gnu.org>
1748
1749 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1750 use `get_next_display_element' and `set_iterator_to_next' to
1751 advance to the next character, when looking for the character that
1752 begins the next row.
1753
1754 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
1755 definition of "struct Lisp_Symbol".
1756
1757 2010-04-24 Glenn Morris <rgm@gnu.org>
1758
1759 * Makefile.in (CRT_DIR): New variable, set by configure.
1760 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1761 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1762
1763 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1764
1765 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1766
1767 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1768
1769 Remove redundant flags.
1770 * s/freebsd.h (C_SWITCH_SYSTEM):
1771 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1772 * s/netbsd.h (C_SWITCH_SYSTEM):
1773 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1774 of these.
1775
1776 Simplify m/intel386.h.
1777 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1778 user: ecrt0.c.
1779 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1780 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1781 the only user: s/unixware.h.
1782 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1783 from m/intel386.h.
1784 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1785 moved here from m/intel386.h.
1786
1787 * m/mips.h: Remove #if 0 code.
1788
1789 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1790
1791 Fix display of composed characters from L2R scripts in bidi buffers.
1792 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1793 After advancing IT past the composition, resync the bidi iterator
1794 with IT's position. (Bug#5977)
1795
1796 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1797
1798 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1799 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1800
1801 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1802
1803 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1804
1805 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1806
1807 Support `display' text properties and overlay strings in bidi buffers.
1808 * xdisp.c (pop_it): When the stack is popped after displaying
1809 from a string, bidi-iterate to exit from the text portion covered
1810 by the `display' property or overlay. (Bug#5988, bug#5920)
1811
1812 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1813
1814 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1815 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1816
1817 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1818 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1819
1820 Simplify STARTFILES definition.
1821 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1822 relying on Makefile.in to define it.
1823 * s/cygwin.h (START_FILES): Likewise.
1824 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1825
1826 Clean up Solaris code.
1827 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1828 (LIB_MOTIF): Remove, configure takes care of this.
1829 (NOT_USING_MOTIF): Remove, unused.
1830 * xrdb.c: Remove #if 0-ed #include.
1831 (SYSV): Remove conditional for old SysV.
1832 * sysdep.c (closedir): Remove conditional code for Solaris,
1833 Solaris has closedir.
1834
1835 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1836
1837 * xsettings.c (read_and_apply_settings): Check if current_font is
1838 NULL before strcmp (Bug#6001).
1839
1840 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1841
1842 Clean up HP-UX files.
1843 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1844 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1845 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1846 * s/hpux10-20.h: ... to the only user, here.
1847
1848 2010-04-21 Eli Zaretskii <eliz@gnu.org>
1849
1850 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1851 use buffer-local values of paragraph-start and paragraph-separate.
1852 <paragraph_start_re, paragraph_separate_re>: Rename from
1853 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1854 (Bug#5992)
1855
1856 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1857
1858 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1859 current_tool_bar_style are new.
1860 (store_config_changed_event): Rename from store_font_changed_event.
1861 (XSETTINGS_TOOL_BAR_STYLE): New define.
1862 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1863 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1864 HAVE_XFT.
1865 (something_changedCB): store_font_changed_event is now
1866 store_config_changed_event
1867 (parse_settings): Rename from parse_xft_settings. Read
1868 non-xft xsettings outside #ifdef HAVE_XFT.
1869 (read_settings): Renamed from read_xft_settings.
1870 (apply_xft_settings): Take current settings as parameter. Do not
1871 call read_(xft)_settings.
1872 (read_and_apply_settings): New function.
1873 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1874 read_and_apply_settings if there are settings to be read.
1875 (init_xsettings): Renamed from init_xfd_settings.
1876 Call read_and_apply_settings unconditionally.
1877 (xsettings_initialize): Call init_xsettings.
1878 (Ftool_bar_get_system_style): New function.
1879 (syms_of_xsettings): Define Qmonospace_font_name and
1880 Qtool_bar_style. Initialize current_tool_bar_style to nil.
1881 defsubr Stool_bar_get_system_style. Fprovide on
1882 dynamic-setting.
1883 Move misplaced HAVE_GCONF
1884
1885 * xsettings.h (Ftool_bar_get_system_style): Declare.
1886
1887 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1888 Qtext, Qboth, Qboth_horiz are new.
1889 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1890 Vtool_bar_style, tool_bar_max_label_size.
1891
1892 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1893
1894 * keyboard.c: QClabel is new.
1895 (parse_tool_bar_item): Take out QClabel from tool bar items.
1896 Try to construct a label if ther is no QClabel.
1897 (syms_of_keyboard): Intern :label as QClabel.
1898
1899 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1900 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1901 New.
1902
1903 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1904 dynamic-setting.el.
1905
1906 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1907 (xg_make_tool_item, xg_show_toolbar_item): New function.
1908 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1909 Call xg_make_tool_item to make a tool bar item.
1910 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1911
1912 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1913 into account for toolbars.
1914
1915 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1916
1917 * data.c (make_blv): Declarations before code (Bug#5993).
1918
1919 2010-04-21 Glenn Morris <rgm@gnu.org>
1920
1921 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1922 Define using autoconf, not cpp.
1923 (LIBXSM): New variable, set by autoconf.
1924 (LIBXT): Use $LIBXSM.
1925
1926 2010-04-21 Dan Nicolaescu <local_user@dannlt>
1927
1928 Remove NOMULTIPLEJOBS, unused.
1929 * s/template.h (NOMULTIPLEJOBS):
1930 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1931
1932 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1933 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1934 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1935 detects -znocombreloc and passes it to the linker
1936 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1937
1938 2010-04-21 Glenn Morris <rgm@gnu.org>
1939
1940 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1941
1942 2010-04-21 Karel Klíč <kklic@redhat.com>
1943
1944 * Makefile.in (LIBSELINUX_LIBS): New.
1945 (LIBES): Add $LIBSELINUX_LIBS.
1946 * eval.c, lisp.h (call7): New function.
1947 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1948 (Ffile_selinux_context, Fset_file_selinux_context):
1949 New functions.
1950 (Fcopy_file): New parameter preserve-selinux-context.
1951 (Frename_file): Preserve selinux context when renaming by copy-file.
1952
1953 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
1954 Eli Zaretskii <eliz@gnu.org>
1955
1956 Don't depend on cm.c or termcap.c on Windows, use stubs.
1957 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1958 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1959 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1960 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1961 (sys_tputs, sys_tgetstr): New stubs.
1962 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1963 (tputs, tgetstr): New; define to sys_*.
1964
1965 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
1966
1967 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1968
1969 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1970
1971 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1972 Just signal a warning rather than an error when inside a let.
1973 (Fmake_variable_frame_local): Add the same test.
1974
1975 * font.c (syms_of_font): Make the style table vars read-only.
1976
1977 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1978 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1979
1980 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1981
1982 2010-04-20 Eli Zaretskii <eliz@gnu.org>
1983
1984 Fix R2L paragraph display on TTY.
1985
1986 * xdisp.c (unproduce_glyphs): New function.
1987 (display_line): Use it when produced glyphs are discarded from R2L
1988 glyph rows.
1989 (append_composite_glyph): In R2L rows, prepend the glyph rather
1990 than appending it.
1991
1992 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1993 rather than append it. Set up the resolved_level and bidi_type
1994 attributes of the appended glyph.
1995 (produce_special_glyphs): Mirror the backslash continuation
1996 character in R2L lines.
1997
1998 Implement display of R2L paragraphs in GUI sessions.
1999
2000 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2001 append_stretch_glyph.
2002 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2003 off-by-one error in computing x at end of text in the row.
2004 (append_stretch_glyph): In reversed row, prepend the glyph rather
2005 than append it. Set resolved_level and bidi_type of the glyph.
2006 (extend_face_to_end_of_line): If the row is reversed, prepend a
2007 stretch glyph whose width is such that the rightmost glyph will be
2008 drawn at the right margin of the window. Fix off-by-one error on
2009 TTY frames in testing whether a line needs face extension. Fix
2010 face extension at ZV. If this is the last glyph row, use
2011 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2012 region face.
2013 (set_cursor_from_row, display_line): Use
2014 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2015 row->continuation_lines_width.
2016 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2017 are at ZV. Fixes a crash when reseated to ZV by
2018 try_window_reusing_current_matrix.
2019 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2020 which happens with R2L glyph rows. Fixes a crash when inserting a
2021 character at end of an R2L line.
2022 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2023 treat them as having zero-width characters. Improve comments.
2024 Don't reverse pos_before and pos_after for reversed glyph rows.
2025 Set cursor.x to negative value when the cursor might be on the
2026 left fringe.
2027 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2028 left fringe, not the right one.
2029 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2030 (erase_phys_cursor): For reversed cursor_row, support cursor on
2031 the left fringe.
2032
2033 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2034 of continuation indicators on the fringes.
2035 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2036 left fringe.
2037
2038 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2039 draw cursor on the left fringe.
2040
2041 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2042 cursor on the left fringe.
2043
2044 * dispnew.c (update_text_area): Handle reversed desired rows when
2045 the cursor is on the left fringe.
2046 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2047 below, not by 0, for when the cursor is on the left fringe.
2048
2049 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2050
2051 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2052 widget is a scrollbar.
2053
2054 2010-04-20 Kenichi Handa <handa@m17n.org>
2055
2056 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2057 only when the arg CHARSET_LIST is nil.
2058
2059 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2060
2061 Make variable forwarding explicit rather the using special values.
2062 Basically, this makes the structure of buffer-local values and object
2063 forwarding explicit in the type of Lisp_Symbols rather than use
2064 special Lisp_Objects for that. This tends to lead to slightly more
2065 verbose code, but is more C-like, simpler, and makes it easier to make
2066 sure we handled all cases, among other things by letting the compiler
2067 help us check it.
2068 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2069 Removing forwarding objects.
2070 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2071 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2072 explicit rather than hiding them inside Lisp_Object "values".
2073 (XFWDTYPE): New macro.
2074 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2075 (XBUFFER_LOCAL_VALUE): Remove.
2076 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2077 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2078 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2079 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2080 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2081 Remove the Lisp_Misc_* header.
2082 (struct Lisp_Buffer_Local_Value): Redefine.
2083 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2084 (struct Lisp_Misc_Any): Add filler to get the right size.
2085 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2086 Lisp_Intfwd.
2087 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2088 (DEFVAR_KBOARD): Allocate a forwarding object.
2089 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2090 (let_shadows_global_binding_p): New function.
2091 (union Lisp_Val_Fwd): New type.
2092 (make_blv): New function.
2093 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2094 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2095 (swap_in_symval_forwarding, find_symbol_value, Fset)
2096 (let_shadows_buffer_binding_p, set_internal, default_value)
2097 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2098 (Fkill_local_variable, Fmake_variable_frame_local)
2099 (Flocal_variable_p, Flocal_variable_if_set_p)
2100 (Fvariable_binding_locus):
2101 * xdisp.c (select_frame_for_redisplay):
2102 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2103 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2104 * frame.c (store_frame_param):
2105 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2106 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2107 value structure.
2108 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2109 (clone_per_buffer_values): Only adjust markers into the current buffer.
2110 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2111 (Fbuffer_local_value, set_buffer_internal_1)
2112 (swap_out_buffer_local_variables):
2113 Adapt to the new symbol value structure.
2114 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2115 (defvar_per_buffer): Take a new arg for the fwd object.
2116 (buffer_lisp_local_variables): Return a proper alist (different fix
2117 for bug#4138).
2118 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2119 (Fgarbage_collect): Don't handle buffer_defaults specially.
2120 (mark_object): Handle new symbol value structure rather than the old
2121 special Lisp_Misc_* objects.
2122 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2123 * term.c (set_tty_color_mode):
2124 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2125 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2126 a buffer_local_flags.
2127 * print.c (print_object): Get rid of impossible forwarding objects.
2128
2129 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2130
2131 * bidi.c (bidi_get_type, bidi_get_category)
2132 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
2133 (bidi_type_of_next_char, bidi_level_of_next_char):
2134 Declare static. Use `INLINE' rather than `inline'.
2135
2136 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
2137
2138 * dired.c (Ffile_attributes): Fix typo in docstring.
2139
2140 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
2141
2142 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2143 NSInteger (Bug#5811).
2144
2145 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2146
2147 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2148 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2149
2150 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2151
2152 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2153
2154 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
2155
2156 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2157 terminal frames (Bug#5837).
2158
2159 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2160
2161 * .gdbinit (xsubchartable): New command.
2162
2163 2010-04-19 Eli Zaretskii <eliz@gnu.org>
2164
2165 * xdisp.c (display_line): Don't write beyond the last glyph row in
2166 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
2167 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2168 and
2169 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2170
2171 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2172
2173 * alloc.c (Fpurecopy): Hash-cons if requested.
2174 (syms_of_alloc): Update purify-flag docstring.
2175
2176 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2177
2178 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2179 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2180
2181 2010-04-17 Eli Zaretskii <eliz@gnu.org>
2182
2183 Fix a crash when an NSM character is inserted at BEGV.
2184
2185 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2186 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2187 NEUTRAL_B or UNKNOWN_BT.
2188
2189 2010-04-16 Eli Zaretskii <eliz@gnu.org>
2190
2191 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2192 other rows with cursor unless they are different from this row and
2193 this row is part of a continued line. (Bug#5943)
2194
2195 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2196
2197 * s/freebsd.h: Restore osreldate.h include.
2198 Suggested by Naohiro Aota.
2199
2200 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2201
2202 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2203
2204 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2205
2206 * s/cygwin.h: Avoid linking against static libgcc.
2207
2208 2010-04-15 Juri Linkov <juri@jurta.org>
2209
2210 * window.c: Add Qscroll_command.
2211 Remove Vscroll_preserve_screen_position_commands.
2212 (window_scroll_pixel_based, window_scroll_line_based): Check the
2213 `scroll-command' property on the last command instead of searching
2214 the last command in Vscroll_preserve_screen_position_commands.
2215 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2216 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2217 (scroll-preserve-screen-position): Doc fix.
2218 (Vscroll_preserve_screen_position_commands): Remove variable.
2219
2220 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2221
2222 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2223
2224 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2225
2226 Reduce cpp use in Makefile.in.
2227 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2228 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2229 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2230 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2231 (CRT0_COMPILE): Remove, inline it in the only user.
2232
2233 2010-04-14 Juri Linkov <juri@jurta.org>
2234
2235 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2236 `scroll-up-command' and `M-v' from `scroll-down' to
2237 `scroll-down-command'.
2238
2239 2010-04-14 Juri Linkov <juri@jurta.org>
2240
2241 * window.c (Vscroll_preserve_screen_position_commands): New variable
2242 with the default value as the list of Qscroll_down and Qscroll_up.
2243 (window_scroll_pixel_based, window_scroll_line_based): Search the
2244 last command in the list Vscroll_preserve_screen_position_commands
2245 instead of comparing with Qscroll_up and Qscroll_down.
2246
2247 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2248
2249 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2250 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2251 does that.
2252
2253 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2254 to zero.
2255
2256 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2257
2258 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2259
2260 Try to solve the problem of spurious EOF chars in long lines of text
2261 sent to interactive subprocesses.
2262 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2263 (system_process_attributes): Remove unused var `ttotal'.
2264 * process.c (send_process): Don't bother breaking long line with EOF
2265 chars when talking to ttys any more.
2266 (wait_reading_process_output): Output a warning when called in such
2267 a way that it could block without being interruptible.
2268
2269 Try to detect file modification within the same second.
2270 * buffer.h (struct buffer): New field modtime_size.
2271 * buffer.c (reset_buffer): Initialize it.
2272 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2273 (Fverify_visited_file_modtime): Check it.
2274 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2275 (Fset_visited_file_modtime): Set (or clear) it.
2276
2277 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2278
2279 * process.c (status_notify): Remove unused var `ro'.
2280
2281 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2282
2283 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2284 more than one visual (Bug#5938).
2285
2286 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2287
2288 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2289 Undefine.
2290
2291 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2292
2293 Remove C_SWITCH_SYSTEM_TEMACS.
2294 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2295 (malloc, realloc, free): Use emacs, not temacs for conditional
2296 definition.
2297
2298 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2299 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2300
2301 Use autoconf, not cpp for some variables.
2302 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2303 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2304 (ALL_CFLAGS): Use them as make variables.
2305 (really-lwlib, really-oldXMenu): Do not pass them.
2306
2307 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2308
2309 * xmenu.c (apply_systemfont_to_dialog): New.
2310 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2311
2312 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2313
2314 * process.c (exec_sentinel): Preserve current-buffer.
2315
2316 * process.c (read_process_output): Move the save-current-buffer to
2317 apply to both the filter and the non-filter branches.
2318
2319 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2320
2321 * s/msdos.h (UNEXEC): New definition.
2322
2323 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2324
2325 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2326 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2327
2328 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2329 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2330 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2331 TRY_WINDOW_CHECK_MARGINS.
2332
2333 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
2334 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2335 width only when it is for padding.
2336
2337 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2338
2339 * xfns.c (Fx_show_tip): Call try_window in a loop until
2340 fonts_changed_p is zero (Bug#2423).
2341
2342 2010-04-08 Eli Zaretskii <eliz@gnu.org>
2343
2344 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2345 the end of TEXT_AREA. (Bug#5856)
2346
2347 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2348
2349 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2350 HAVE_GCONF.
2351
2352 2010-04-08 Eli Zaretskii <eliz@gnu.org>
2353
2354 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2355 prev.orig_type, for resolving type of NSM. (Bug#5858)
2356
2357 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2358
2359 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2360 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2361 in current_font.
2362 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
2363 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2364 New functions.
2365 (syms_of_xsettings): Initialize current_font.
2366 defsubr Sfont_get_system_normal_font.
2367
2368 * xsettings.h (Ffont_get_system_normal_font,
2369 xsettings_get_system_normal_font): Declare.
2370
2371 * xfns.c (extern xlwmenu_default_font): Remove.
2372 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2373 to xlwmenu.c.
2374
2375 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2376 menu items in UTF-8.
2377
2378 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2379 (apply_systemfont_to_menu): New function.
2380 (set_frame_menubar, create_and_show_popup_menu): Call
2381 apply_systemfont_to_menu.
2382
2383 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2384
2385 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2386 FRAME_LINE_TO_PIXEL_Y.
2387
2388 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2389 pixelwidth/height.
2390
2391 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2392
2393 Simplify code for HP machines.
2394 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2395 for GNU_LINUX, not needed.
2396 (UNEXEC, NEED_BSDTTY): Move definitions...
2397 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2398
2399 * m/iris4d.h (UNEXEC): Move definition ...
2400 * s/irix6-5.h (UNEXEC): ... here.
2401
2402 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2403
2404 * xfns.c (set_machine_and_pid_properties): New function.
2405 (Fx_create_frame): Call set_machine_and_pid_properties.
2406
2407 2010-04-03 Eli Zaretskii <eliz@gnu.org>
2408
2409 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2410 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2411 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2412
2413 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2414 in this function. (Bug#5703)
2415
2416 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
2417
2418 * nsterm.h: Fix last change.
2419
2420 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2421
2422 * m/intel386.h (NO_REMAP): Move definition ...
2423 * s/msdos.h (NO_REMAP): ... here.
2424
2425 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2426
2427 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2428 used on those platforms.
2429
2430 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2431
2432 Remove extern errno declarations.
2433 * xterm.c:
2434 * xrdb.c:
2435 * w32term.c:
2436 * unexec.c:
2437 * unexaix.c:
2438 * sysdep.c:
2439 * process.c:
2440 * lread.c:
2441 * keyboard.c:
2442 * floatfns.c:
2443 * filelock.c:
2444 * fileio.c:
2445 * emacs.c (main):
2446 * ecrt0.c:
2447 * dispnew.c:
2448 * callproc.c:
2449 * buffer.c: Remove errno extern declarations.
2450 * s/netbsd.h (NEED_ERRNO): Remove.
2451
2452 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2453
2454 Remove all uses of LIBX11_SYSTEM.
2455 * Makefile.in (LIBX11_SYSTEM): Remove.
2456 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2457 instead.
2458
2459 2010-04-01 Eli Zaretskii <eliz@gnu.org>
2460
2461 Remove support for DJGPP v1.x (bug#5813).
2462
2463 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
2464 * s/msdos.h:
2465 * unexec.c (make_hdr, copy_text_and_data):
2466 * sysdep.c (wait_for_termination, sys_subshell):
2467 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
2468 (IT_set_terminal_modes, __write, _rename, gethostname)
2469 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2470 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2471 the value of __DJGPP__.
2472 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2473 compatibility code.
2474 * lread.c:
2475 * gmalloc.c (memalign):
2476 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2477 * emacs.c (main):
2478 * dosfns.c (init_dosfns):
2479 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2480
2481 2010-04-01 Eli Zaretskii <eliz@gnu.org>
2482
2483 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2484 string with `cursor' property comes from an `after-string'
2485 overlay. (Bug#5816)
2486
2487 2010-04-01 Glenn Morris <rgm@gnu.org>
2488
2489 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2490 Define as Makefile variables.
2491 (LIBX): Use above variables rather than directly using autoconf.
2492
2493 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2494
2495 Clean up BSD_SYSTEM use.
2496 * xterm.c:
2497 * process.c:
2498 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2499 for including <sys/ioctl.h>.
2500 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2501 code is only used for MSDOS.
2502
2503 2010-03-31 Juri Linkov <juri@jurta.org>
2504
2505 * image.c: Add `Qextension_data'.
2506 (syms_of_image): Initialize and staticpro `Qextension_data'.
2507 (Fimage_metadata): Rename from `Fimage_extension_data'.
2508 (gif_load): Put GIF extension data to the property
2509 `Qextension_data'.
2510
2511 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
2512
2513 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2514 * nsterm.h: Fix prototype.
2515
2516 2010-03-31 Eli Zaretskii <eliz@gnu.org>
2517
2518 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2519 trailing whitespace in right-to-left rows.
2520
2521 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2522
2523 Get rid of the direct_output optimizations.
2524 * keyboard.c (nonundocount): Remove extern declaration.
2525 (command_loop_1): Remove brittle optimisation for cheap and
2526 common operations.
2527 * xdisp.c (redisplay_internal): Don't bother checking
2528 redisplay_performed_directly_p any more.
2529 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2530 any more.
2531 * dispnew.c (redisplay_performed_directly_p)
2532 (direct_output_for_insert, direct_output_forward_char):
2533 * dispextern.h (redisplay_performed_directly_p)
2534 (direct_output_for_insert, direct_output_forward_char): Remove.
2535 * cmds.c (nonundocount): Make it static.
2536
2537 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
2538
2539 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2540
2541 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
2542
2543 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2544 invisible (Bug#5766).
2545
2546 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
2547
2548 * xdisp.c (x_consider_frame_title, update_window_cursor):
2549 Remove HAVE_NS conditionals.
2550 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
2551
2552 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2553 filename for the title.
2554 (ns_set_doc_edited): Do nothing if the selected window is a
2555 minibuffer window.
2556
2557 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2558 ns_set_doc_edited.
2559
2560 * nsterm.m: Remove unneeded prototype.
2561
2562 2010-03-31 Glenn Morris <rgm@gnu.org>
2563
2564 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2565 in the DOC file. (Bug#5336)
2566
2567 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
2568
2569 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2570
2571 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2572
2573 * window.c (keys_of_window): Remove redundant/overridden bindings.
2574
2575 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2576
2577 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2578 Restore original behavior when the iterator is not bidi_p.
2579
2580 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2581
2582 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2583
2584 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2585
2586 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2587 are outside the range of cached character positions.
2588
2589 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
2590
2591 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2592
2593 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2594
2595 Initial support for bidirectional editing.
2596
2597 * Makefile.in (obj): Include bidi.o.
2598 (bidi.o): New target.
2599
2600 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2601 ($(BLD)/bidi.$(O)): New target.
2602
2603 * bidi.c: New file.
2604
2605 * buffer.h (struct buffer): New members bidi_display_reordering
2606 and bidi_paragraph_direction.
2607
2608 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2609 and bidi_paragraph_direction.
2610 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2611 and bidi-paragraph-direction.
2612 (Fbuffer_swap_text): Swap the values of
2613 bidi_display_reordering and bidi_paragraph_direction.
2614
2615 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2616 (bidi_type_t, bidi_dir_t): New types.
2617 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2618 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2619 prev_stop, base_level_stop, and eol_pos.
2620 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2621 (IT_STACK_SIZE): Enlarge to 5.
2622 (struct glyph_row): New member reversed_p.
2623 <string_buffer_position>: Update prototype.
2624 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2625 glyph_row if bidi_it.paragraph_dir == R2L.
2626 (struct glyph): New members resolved_level and bidi_type.
2627
2628 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2629 processing or buffer's direction is right-to-left.
2630 (prepare_desired_row): Preserve the reversed_p flag.
2631 (row_equal_p): Compare the reversed_p attributes as well.
2632
2633 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2634 bidi_init_it and set it->paragraph_embedding from the current
2635 buffer's value of bidi_paragraph_direction.
2636 (reseat_1): Initialize bidi_it.first_elt.
2637 (set_iterator_to_next, next_element_from_buffer): Use the value of
2638 paragraph_embedding to determine the paragraph direction.
2639 (set_iterator_to_next): Under bidi reordering, call
2640 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2641 new_paragraph flag is set in the bidi iterator.
2642 (next_element_from_buffer): If bidi_it.first_elt is set,
2643 initialize paragraph direction and find the first character to
2644 display in the visual order. If reseated to a middle of a line,
2645 prime the bidi iterator starting at the line's beginning. Handle
2646 the situation where we overstepped stop_charpos due to
2647 non-linearity of the bidi iteration. Likewise for when we back up
2648 beyond the previous stop_charpos. When moving across stop_charpos,
2649 record it in prev_stop.
2650 (display_line): Set row->end and it->start for the next row to the
2651 next character in logical order. Always extend reversed_p rows to
2652 the end of line, even if they end at ZV. Copy the reversed_p flag
2653 to the next glyph row. Keep calling set_cursor_from_row for
2654 bidi-reordered rows even if we already have a possible candidate
2655 for cursor position. Set row_end after all the row's glyphs have
2656 been produced, by looping over the glyphs. Record the position
2657 after EOL in it->eol_pos, and use it to set end_pos of the last
2658 row produced for a continued line.
2659 <Qright_to_left, Qleft_to_right>: New variables.
2660 (syms_of_xdisp): Initialize and staticpro them.
2661 (string_buffer_position_lim): New function.
2662 (string_buffer_position): Most of code moved to
2663 string_buffer_position_lim. Last argument and return value are
2664 now EMACS_INT; all callers changed.
2665 (set_cursor_from_row): Rewritten to support bidirectional text and
2666 reversed glyph rows.
2667 (text_outside_line_unchanged_p, try_window_id): Disable
2668 optimizations if we are reordering bidirectional text and the
2669 paragraph direction can be affected by the change.
2670 (append_glyph, append_composite_glyph)
2671 (produce_image_glyph, append_stretch_glyph): Set the
2672 resolved_level and bidi_type members of each glyph.
2673 (append_glyph): If the glyph row is reversed, prepend the glyph
2674 rather than appending it.
2675 (handle_stop_backwards): New function.
2676 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2677 (reseat): call handle_stop_backwards to recompute prev_stop and
2678 base_level_stop for the new position.
2679 (handle_invisible_prop): Under bidi iteration, skip invisible text
2680 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2681 paragraph direction. Update IT->prev_stop after skipping
2682 invisible text.
2683 (move_it_in_display_line_to): New variables prev_method
2684 and prev_pos. Compare for strict equality in
2685 BUFFER_POS_REACHED_P.
2686 (try_cursor_movement): Examine all the candidate rows that occlude
2687 point, to return the best match. If rows are bidi-reordered
2688 and point moved backwards, back up to the row that is not a
2689 continuation line, and start looking for a suitable row from
2690 there.
2691
2692 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2693 rather than appending, if the glyph_row's reversed_p flag is set.
2694 Set the resolved_level and bidi_type members of each glyph.
2695
2696 * .gdbinit (pbiditype): New command.
2697 (pgx): Use it to display bidi level and type of the glyph.
2698 (pitx): Display some bidi information about the iterator.
2699 (prowlims, pmtxrows): New commands.
2700
2701 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2702
2703 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2704 * s/usg5-4.h (LIBS_DEBUG):
2705 * s/irix6-5.h (C_DEBUG_SWITCH):
2706 * s/gnu-linux.h (LIBS_DEBUG):
2707 * s/darwin.h (LIBS_DEBUG):
2708 * s/bsd-common.h (LIBS_DEBUG):
2709 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2710 * m/iris4d.h (LIBS_DEBUG):
2711 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2712
2713 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2714 (LIBS_DEBUG): Remove definition.
2715
2716 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
2717
2718 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2719 Windows.
2720
2721 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2722
2723 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2724 `connect' (Bug#5723).
2725
2726 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
2727
2728 * process.c (Fmake_network_process): Call `select' for interrupted
2729 `connect' rather than creating new socket (Bug#5173).
2730
2731 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
2732
2733 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2734
2735 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2736
2737 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2738
2739 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2740
2741 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2742 XLoadQueryFont.
2743
2744 2010-03-24 Kenichi Handa <handa@m17n.org>
2745
2746 * coding.c (decode_coding_ccl): Fix previous change for the
2747 multibyte case.
2748 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2749 case that the output buffer is fullfilled.
2750 (encode_coding): Setup ccl program here.
2751
2752 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2753
2754 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2755
2756 Simplify LIBS_MACHINE definitions.
2757 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2758 * m/iris4d.h (LIBS_MACHINE): Likewise.
2759 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2760 * s/aix4-2.h (LIBS_SYSTEM): ... here.
2761 * s/netbsd.h: Remove commented out code.
2762
2763 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2764
2765 Remove dead code dealing with POSIX_SIGNALS.
2766 * atimer.c (set_alarm): Remove dead code, all USG systems define
2767 POSIX_SIGNALS.
2768 * data.c (arith_error): Likewise.
2769 * keyboard.c (input_available_signal, handle_user_signal)
2770 (interrupt_signal): Likewise.
2771 * process.c (sigchld_handler): Likewise.
2772 (create_process): Remove if 0 code. Remove HPUX conditional when
2773 !defined (POSIX_SIGNALS), it cannot be true.
2774 * syssignal.h: Remove USG5_4 and USG conditionals when
2775 !POSIX_SIGNALS, they cannot be true.
2776
2777 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2778 NO_SOCK_SIGIO, not used anymore.
2779
2780 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2781
2782 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2783 support vax on BSDs.
2784
2785 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2786 * s/aix4-2.h (ORDINARY_LINK): ... here.
2787
2788 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2789
2790 * Makefile.in (abs_builddir): Define.
2791 (bootstrap_exe): Use it.
2792 (VPATH): Use $(srcdir) instead of @srcdir@.
2793
2794 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2795
2796 * Makefile.in (bootstrap_exe): Use an absolute name.
2797
2798 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2799
2800 Remove support for old GNU/Linux using libc version 5.
2801 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2802 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2803
2804 Consolidate redundant definitions in s/bsd-common.h.
2805 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2806 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2807 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2808 doing it in all files that include this one.
2809 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2810 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2811 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2812 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2813 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2814 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2815 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2816 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2817 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2818
2819 Consolidate redundant definitions.
2820 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2821 it's undefined in all files that include this one.
2822 (POSIX_SIGNALS): Define here instead of doing it in all files that
2823 include this one.
2824 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2825 (POSIX_SIGNALS): Do not define.
2826 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2827 (POSIX_SIGNALS): Do not define.
2828 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2829 (POSIX_SIGNALS): Do not define.
2830
2831 Remove support for old UNIX System V systems.
2832 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2833 * s/usg-5-4-2.h: Remove.
2834
2835 Remove support for Solaris on PPC and for old versions.
2836 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2837 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2838 that cancel each other.
2839 * s/sol2-3.h:
2840 * s/sol2-4.h:
2841 * s/sol2-5.h: Remove.
2842 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2843 (NO_REMAP): Remove, unused.
2844 (UNEXEC): Move definition ...
2845 * s/aix4-2.h (UNEXEC): ... here.
2846
2847 * s/openbsd.h: Remove support for non-ELF and for systems that do
2848 not support shared libraries.
2849 * s/netbsd.h:
2850 * s/freebsd.h: Likewise.
2851
2852 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2853
2854 Remove non-working support for lynxos 3.0.
2855 * s/lynxos.h: Remove file.
2856
2857 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2858 COFF_BSD_SYMBOLS, nothing defines it anymore.
2859
2860 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2861
2862 Remove obsolete uses of HAVE_SHM.
2863 * emacs.c (standard_args):
2864 (Fdump_emacs):
2865 (syms_of_emacs): Remove code depending on HAVE_SHM.
2866
2867 * alloc.c: Remove HAVE_SHM dependent definition.
2868
2869 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2870
2871 2010-03-18 Glenn Morris <rgm@gnu.org>
2872
2873 * emacs.c (USAGE4): Hard-code bug address.
2874 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2875 (bug_reporting_address): Remove.
2876 (main): Don't call bug_reporting_address.
2877
2878 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2879 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2880
2881 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
2882
2883 * xfns.c (Fx_create_frame):
2884 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2885 on left.
2886
2887 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2888
2889 * editfns.c (Fformat): Account for string precision when computing
2890 field width (Bug#5710).
2891
2892 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
2893
2894 * xfns.c (Fx_create_frame): Set default to Qright.
2895
2896 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2897 all window systems.
2898
2899 2010-03-12 Eli Zaretskii <eliz@gnu.org>
2900
2901 These changes remove termcap.c from the build on Posix platforms.
2902 * Makefile.in (termcapobj): Move termcap.o from here...
2903 (MSDOS_OBJ): ...to here.
2904 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2905 now identical to when LIBS_TERMCAP is defined.
2906
2907 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2908
2909 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2910
2911 * config.in: Regenerated. (See top-level ChangeLog.)
2912
2913 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
2914
2915 * Branch for 23.2.
2916
2917 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2918
2919 Cleanup setup of gl_state in various parts of the code.
2920 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2921 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2922 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2923 (skip_chars):
2924 * regex.c (regex_compile): Use it.
2925 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2926 it's now set in regex_compile when/if we need it.
2927
2928 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2929
2930 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2931 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2932 (QUIT): Use it to consolidate code and remove redundancy.
2933 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2934
2935 * regex.c (regex_compile): Setup gl_state as well.
2936
2937 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2938 (in_classes): Use CONSP before XCAR/XCDR.
2939
2940 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
2941
2942 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2943 definitions, so that keyboard macros are correctly handled
2944 (Bug#5481).
2945
2946 2010-03-02 Eli Zaretskii <eliz@gnu.org>
2947
2948 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2949 text that could be relocated inside the call to emacs_mule_char.
2950 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2951 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2952
2953 2010-03-02 Kenichi Handa <handa@m17n.org>
2954
2955 * character.c (parse_str_as_multibyte): Fix handling of the
2956 multibyte form of raw-bytes.
2957 (str_as_multibyte): Likewise.
2958
2959 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2960 form of raw-bytes.
2961
2962 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
2963
2964 * charset.c (load_charset_map_from_file)
2965 (load_charset_map_from_vector): Zero out allocated
2966 charset_map_entries before using them.
2967
2968 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2969
2970 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2971
2972 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
2973
2974 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2975 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
2976
2977 2010-02-26 Kenichi Handa <handa@m17n.org>
2978
2979 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2980
2981 * xdisp.c (reseat_to_string): Fix previous change.
2982
2983 2010-02-26 David Reitter <david.reitter@gmail.com>
2984
2985 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2986 Lisp_Object (Bug#4736).
2987
2988 2010-02-25 Kenichi Handa <handa@m17n.org>
2989
2990 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2991
2992 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2993
2994 * xterm.c (XTflash): Move declarations before statements.
2995
2996 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2997 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2998 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2999 (xg_create_tool_bar): Remove unused variables.
3000 (x_wm_set_size_hint): Move declarations before statements.
3001 (xg_create_frame_widgets): Remove variable grav.
3002
3003 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
3004
3005 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3006
3007 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3008
3009 * term.c (fatal): Add a final \n if needed (bug#5596).
3010
3011 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
3012
3013 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3014
3015 2010-02-18 Glenn Morris <rgm@gnu.org>
3016
3017 * callint.c (Finteractive): Doc fix.
3018
3019 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3020
3021 * coding.c (record_conversion_result):
3022 Handle CODING_RESULT_INSUFFICIENT_DST.
3023 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3024 memory allocation error.
3025
3026 2010-02-17 Kenichi Handa <handa@m17n.org>
3027
3028 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3029 Fix for the case that the output buffer is fullfilled.
3030 (decode_coding): Setup ccl program here. Keep looping when the
3031 decoder stopped because the output buffer is
3032 fullfilled (bug#5534).
3033
3034 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3035
3036 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3037
3038 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
3039 bug #5571.
3040 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
3041 overdrawn.
3042
3043 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3044
3045 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3046 doing_interact here.
3047 (ice_connection_closed): New function.
3048 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3049 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3050 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3051 returns I/O error.
3052 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3053 bug #5512.
3054
3055 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
3056
3057 * nsfont.m (nsfont_open): The system's value for the font descent
3058 is negative, so round it down to avoid clipping.
3059
3060 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
3061
3062 * charset.c (load_charset_map_from_file)
3063 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
3064 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
3065
3066 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
3067
3068 * charset.c (load_charset_map_from_file): Allocate large
3069 charset_map_entries structure on the heap rather than the stack.
3070 (Bug#5526).
3071
3072 2010-01-31 Kenichi Handa <handa@m17n.org>
3073
3074 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
3075 size in NAME is invalid, return -1 (Bug#5396).
3076
3077 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
3078
3079 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3080 <deactivated@gmail.com> (Bug#3605).
3081
3082 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
3083
3084 * fileio.c (Frename_file): Correctly rename symlinks to
3085 directories (Bug#5496).
3086
3087 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3088
3089 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3090
3091 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3092
3093 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3094
3095 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
3096
3097 * frame.c (DEFAULT_ROWS): Change default to 35.
3098
3099 * xfns.c (x_default_font_parameter): Change default XFT font to
3100 monospace-10 (Bug#3643).
3101
3102 2010-01-29 Eli Zaretskii <eliz@gnu.org>
3103
3104 * w32inevt.c (key_event): Remove unnecessary comparison of
3105 event->uChar.AsciiChar with 128.
3106
3107 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
3108
3109 * fileio.c (Frename_file): Fix last change (Bug#5487).
3110
3111 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3112
3113 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3114
3115 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3116
3117 * xfns.c (Fx_create_frame): Remove window size matching code from
3118 2010-01-15.
3119 (x_get_current_desktop, x_get_desktop_workarea): Remove.
3120
3121 2010-01-27 Jason Rumney <jasonr@gnu.org>
3122
3123 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
3124 (key_event): Use unicode for characters 128 and higher (Bug#4567).
3125
3126 2010-01-27 Kenichi Handa <handa@m17n.org>
3127
3128 * regex.c (analyse_first): Fix setting of fastmap for unibyte
3129 pattern string (Bug#4209).
3130
3131 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
3132
3133 * fileio.c (Frename_file): Call copy-directory and
3134 delete-directory for directories, in order to handle cross-device
3135 renaming (Bug#3353).
3136
3137 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3138
3139 * xfns.c (Fx_create_frame): If frame height is too big, try
3140 sizes 24 and 10. Bug #3643.
3141
3142 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3143
3144 Try and fix bug#788, hopefully for real this time.
3145 * keymap.c (shadow_lookup): Add `remap' arg.
3146 (describe_map, describe_vector): Update calls to shadow_lookup.
3147 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3148 `remapped' so this flag is applicable to `sequence'. Be careful to
3149 perform remapping during shadow_lookup check of remapped_sequences.
3150
3151 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3152
3153 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3154 png_check_sig, which has been removed in libpng 1.4.
3155
3156 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3157
3158 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3159 lacks this header file).
3160
3161 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3162
3163 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3164 as in Emacs 22.
3165
3166 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3167
3168 * lisp.h (make_pure_string): String pointer arg now points to const.
3169
3170 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3171 args now point to const.
3172
3173 2010-01-22 Eli Zaretskii <eliz@gnu.org>
3174
3175 * lread.c (Fload): Don't treat files without .elc extension as
3176 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3177 them. (bug#5303)
3178
3179 2010-01-20 Kenichi Handa <handa@m17n.org>
3180
3181 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3182 treat the source as actual byte sequence.
3183
3184 2010-01-19 Alan Mackenzie <acm@muc.de>
3185
3186 Fix spurious before-change-functions invocation from (insert ?\n).
3187 * textprop.c (set_text_properties): Rename parameter
3188 `signal_after_change_p' to `coherent_change_p', and make the
3189 invocation of `modify_region' conditional on it.
3190
3191 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3192
3193 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3194 for debug purpose.
3195 (syms_of_xsettings): Declare xft-settings.
3196
3197 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
3198
3199 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3200
3201 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3202
3203 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3204
3205 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
3206
3207 * emacs.c (standard_args): Adjust arg priorities to reflect how
3208 they are processed in startup.el.
3209
3210 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3211
3212 * Makefile.in (lisp, shortlisp): Update.
3213
3214 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3215
3216 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3217 code, link the new kboard into all_kboard before running Lisp code,
3218 and protect the new terminal with GCPRO (Bug#5365).
3219 (x_term_init): Remove unused var `atom'.
3220 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3221
3222 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3223
3224 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3225 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3226 to find out usable size of the desktop. Don't make frames larger than
3227 this. Bug #3643.
3228
3229 2010-01-15 Kenichi Handa <handa@m17n.org>
3230
3231 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3232
3233 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
3234
3235 * nsterm.m (Qnone): Define.
3236
3237 * nsfns.m (Qnone): Move definition to nsterm.m.
3238
3239 2010-01-14 Kenichi Handa <handa@m17n.org>
3240
3241 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3242 systems.
3243
3244 2010-01-14 Kenichi Handa <handa@m17n.org>
3245
3246 Make auto-composition work on all buffers even if they are
3247 fundamental mode.
3248
3249 * composite.c (Vauto_composition_mode): New variable.
3250 (composition_compute_stop_pos): Check Vauto_composition_mode
3251 instead of Vauto_composition_function.
3252 (composition_adjust_point, Ffind_composition_internal): Likewise.
3253 (syms_of_composite): Declare Lisp variable
3254 "auto-composition-mode" here.
3255
3256 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
3257
3258 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3259 during call to vendor-specific-keysyms (Bug#5365).
3260
3261 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3262
3263 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3264 Call SIGNAL_THREAD_CHECK (Bug#5333).
3265
3266 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3267 Call SIGNAL_THREAD_CHECK.
3268
3269 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3270
3271 Try to fix bug#5314. This is probably not the final word, tho.
3272 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3273 recent-auto-save-p as a side-effect.
3274 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3275 * buffer.c (Fkill_buffer, reset_buffer):
3276 * editfns.c (Fsubst_char_in_region):
3277 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3278 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3279
3280 2010-01-13 Kenichi Handa <handa@m17n.org>
3281
3282 Display buffer name, etc. in mode line by composing correctly.
3283
3284 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3285 STRING is not nil.
3286 (display_mode_element): Adjust for the change of
3287 decode_mode_spec and display_line.
3288 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3289 (display_string): Handle the case that STRING is non-null and
3290 LISP_STRING is not nil.
3291
3292 * xterm.c (x_draw_composite_glyph_string_foreground):
3293 Pay attention to s->face->overstrike.
3294
3295 * composite.c (composition_reseat_it): Don't check PT if STRING is
3296 non nil.
3297
3298 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3299
3300 * keyboard.c (read_char): Don't apply previous change when current
3301 buffer is unchanged by command execution.
3302
3303 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3304
3305 * keyboard.c (read_char): Return after executing from special map.
3306
3307 2010-01-12 Glenn Morris <rgm@gnu.org>
3308
3309 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3310 bug-gnu-emacs rather than emacs-pretest-bug.
3311
3312 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
3313
3314 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3315 initializing the Lisp variables that depend on them.
3316
3317 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3318
3319 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3320 Clear areas that will not be updated after change of menu bar lines.
3321 Clear the menu bar window's current matrix when the window gets empty.
3322
3323 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
3324
3325 * intervals.h, textprop.c (extend_property_ranges): Return value
3326 and args changed. Discard properties that begin at or after the
3327 new end (Bug#5306).
3328
3329 * editfns.c (Fformat): Caller changed.
3330
3331 * nsterm.m (ns_set_default_prefs): Delete function.
3332 (syms_of_nsterm): Initialize ns_command_modifier,
3333 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3334 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3335
3336 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3337 position (Bug#4040).
3338
3339 2010-01-09 Eli Zaretskii <eliz@gnu.org>
3340
3341 * editfns.c (Ffloat_time): Doc fix.
3342
3343 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3344
3345 * xfns.c (Fx_create_frame): Don't create frame larger than display
3346 by default bug#3643.
3347
3348 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3349
3350 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3351 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3352 windows above internal border.
3353
3354 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3355 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3356 windows above internal border.
3357
3358 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3359 tool bar windows specially.
3360
3361 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3362
3363 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3364 specially.
3365 (XTflash): Take account of menu bar height.
3366
3367 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3368 specially.
3369
3370 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3371
3372 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
3373 also be true before we can return early (bug #5339).
3374
3375 2010-01-06 David Reitter <david.reitter@gmail.com>
3376
3377 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3378 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3379 (Bug#3233).
3380
3381 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3382
3383 * font.c (font_open_entity): Enable chache and call cached_font_ok
3384 for the driver if defined.
3385 (QCuser_spec): New symbol.
3386 (font_spec_from_name): Save name as user-spec.
3387 (font_load_for_lface): Keep user-spec instead of name.
3388 (font_open_by_name): Save name as user-spec.
3389 (syms_of_font): Initialize QCuser_spec.
3390 (font_clear_prop): Clear name if it exists in font (bug#5157).
3391
3392 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3393 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3394 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3395
3396 * font.h (struct font_driver): Add cached_font_ok.
3397
3398 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3399
3400 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3401
3402 * xterm.c (x_new_font): Move code for setting rows/cols before
3403 resizing ...
3404 (x_set_window_size): ... to here. Bug #2568.
3405
3406 * gtkutil.c (xg_clear_under_internal_border): New function.
3407 (xg_frame_resized, xg_frame_set_char_size):
3408 Call xg_clear_under_internal_border.
3409 (xg_update_scrollbar_pos): Clear under old scroll bar position.
3410
3411 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
3412
3413 * keyboard.c (read_key_sequence): Catch keyboard switch after
3414 making a new tty frame (Bug#5095).
3415
3416 2010-01-05 Kenichi Handa <handa@m17n.org>
3417
3418 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3419
3420 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3421
3422 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3423 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3424 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3425
3426 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
3427
3428 * dbusbind.c (xd_add_watch): Improve debug message.
3429 (xd_remove_watch): Improve debug message. If DATA is the session
3430 bus, unset D-Bus session environment.
3431 (Fdbus_init_bus): Pass the bus as argument to
3432 dbus_connection_set_watch_functions. (Bug#5283)
3433
3434 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
3435
3436 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3437
3438 * lread.c (syms_of_lread): Make it clearer that these are the
3439 names of loaded files (Bug#5068).
3440
3441 * eval.c (run_hook_with_args): Handle the case where the global
3442 value has the obsolete single-function form (Bug#5026).
3443
3444 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
3445
3446 * minibuf.c (Fall_completions): Minor optimization.
3447
3448 2009-12-26 Eli Zaretskii <eliz@gnu.org>
3449
3450 * .gdbinit (pgx): Fix display of composite glyphs.
3451 Display cmp.from and cmp.to as well.
3452 (pitx): Fix last change.
3453
3454 2009-12-25 Kenichi Handa <handa@m17n.org>
3455
3456 * composite.h (composition_adjust_point): Update prototype.
3457
3458 * composite.c (composition_reseat_it): Don't make a composition
3459 spanning over point.
3460 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3461 composable characters.
3462 (composition_adjust_point): New arg NEW_PT. Callers changed.
3463
3464 * keyboard.c (command_loop_1): Force redisplay if the last point
3465 was within a composition.
3466 (adjust_point_for_property): Don't adjust point for automatic
3467 composition when called after buffer modification.
3468
3469 2009-12-19 Eli Zaretskii <eliz@gnu.org>
3470
3471 * .gdbinit (pitx): Don't use enum names, use their values.
3472 Remove reference to non-existing value GET_FROM_COMPOSITION.
3473 (pgx): Don't use enum names, use their values.
3474 (pitmethod): New helper command.
3475 (pitx): Use it to display iteration method.
3476 (pgrowit): New command.
3477
3478 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3479
3480 Update dependencies in Makefile.in.
3481
3482 * Makefile.in (alloc.o): Depend on termhooks.h.
3483 (atimer.o): Depend on blockinput.h.
3484 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3485 and frame.h.
3486 (callint.o): Depend on systime.h, coding.h, and composite.h.
3487 (callproc.o): Depend on buffer.h.
3488 (casefiddle.o): Don't depend on charset.h.
3489 (casetab.o): Depend on character.h.
3490 (ccl.o): Depend on composite.h.
3491 (chartab.o): Depend on ccl.h.
3492 (cm.o): Depend on dispextern.h.
3493 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3494 (coding.o): Don't depend on $(INTERVALS_H).
3495 (composite.o): Don't depend on dispextern.h explicitly (it's in
3496 $(INTERVALS_H)). Depend on ccl.h.
3497 (data.o): Depend on systime.h, coding.h, composite.h,
3498 dispextern.h, font.h, and ccl.h.
3499 (dired.o): Depend on composite.h.
3500 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3501 composite.h (it's in $(INTERVALS_H)).
3502 (doc.o): Depend on systime.h, coding.h, and composite.h.
3503 (editfns.o): Don't depend explicitly on dispextern.h.
3504 (emacs.o): Depend on frame.h and coding.h.
3505 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3506 (fileio.o): Depend on frame.h and commands.h. Don't depend
3507 explicitly on dispextern.h.
3508 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3509 composite.h.
3510 (fns.o): Don't depend on termhooks.h.
3511 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3512 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3513 coding.h, $(INTERVALS_H), window.h, xterm.h.
3514 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3515 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3516 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3517 fontset.h, ccl.h, and ftfont.h.
3518 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3519 (gtkutil.o): Depend on dispextern.h and composite.h.
3520 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3521 termhooks.h, and ccl.h.
3522 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3523 (intervals.o): Depend on systime.h and coding.h.
3524 (keyboard.o): Depend on composite.h and coding.h.
3525 (keymap.o): Depend on coding.h and frame.h.
3526 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3527 (macros.o): Depend on systime.h, coding.h, and composite.h.
3528 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3529 and atimer.h.
3530 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3531 dispextern.h explicitly.
3532 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3533 Don't depend explicitly on dispextern.h and composite.h.
3534 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3535 (regex.o): Don't depend on charset.h.
3536 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3537 (search.o): Don't depend explicitly on composite.h.
3538 (sound.o): Depend on atimer.h and systime.h.
3539 (syntax.o): Don't depend explicitly on composite.h.
3540 (sysdep.o): Depend on coding.h and composite.h.
3541 (term.o): Depend on xterm.h and buffer.h.
3542 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3543 (textprop.o): Don't depend on dispextern.h explicitly.
3544 (undo.o): Depend on dispextern.h.
3545 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3546 dispextern.h and composite.h explicitly.
3547 (xdisp.o): Depend on ccl.h.
3548 (xfaces.o): Depend on coding.h and ccl.h.
3549 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3550 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3551 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3552 ftfont.h.
3553 (xgselect.o): New dependency.
3554 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3555 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3556 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3557 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3558 (xsmfns.o): Depend on frame.h and dispextern.h.
3559 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3560 sysselect.h.
3561
3562 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3563
3564 * font.c (Fclear_font_cache): Pass correct cache argument to
3565 font_clear_cache.
3566
3567 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3568
3569 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3570 twice.
3571
3572 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
3573
3574 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3575 calling file-remote-p. Reported by Jim Meyering.
3576
3577 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
3578
3579 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
3580 avoid compiler warnings. (Bug #5217)
3581
3582 2009-12-14 Kenichi Handa <handa@m17n.org>
3583
3584 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3585 in 8-bit encoding.
3586
3587 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
3588
3589 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3590 tooltip windows.
3591
3592 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3593
3594 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3595 Xatom_net_window_type.
3596
3597 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3598 Xatom_net_window_type.
3599
3600 * xterm.c (my_log_handler): New function.
3601 (x_term_init): Set my_log_handler as log handler during gtk_init
3602 so we can filter out buggy messages. (Bug #5120).
3603
3604 * xterm.c (xg_scroll_callback): Parameter list changed,
3605 use parameter GtkScrollType to determine scroll/line/page.
3606 Only allow dragging if a button < 4 is grabbed (bug #5177).
3607 (xg_end_scroll_callback): New function.
3608 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3609 xg_create_scroll_bar.
3610
3611 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3612 (scroll_end_callback): Remove.
3613 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3614 button-release-event. Replace value-changed event with change-value,
3615 bug #5177,
3616 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3617 bug #5177.
3618
3619 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3620 (xg_create_scroll_bar): Add GCallback end_callback.
3621
3622 * xftfont.c (QClcdfilter): New variable.
3623 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3624 (syms_of_xftfont): Initialize QClcdfilter.
3625
3626 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3627
3628 * xsettings.c (struct xsettings): Add member seen.
3629 (parse_xft_settings): Update member seen with what we have read.
3630 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3631 (apply_xft_settings): Only update Xft settings with what member seen
3632 indicates as new.
3633
3634 2009-12-12 Eli Zaretskii <eliz@gnu.org>
3635
3636 * dispextern.h (struct text_pos): Use EMACS_INT;
3637 (struct glyph): Use EMACS_INT for charpos.
3638 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3639 region_beg_charpos, region_end_charpos,
3640 redisplay_end_trigger_charpos, and also for
3641 iterator_stack_entry.end_charpos and
3642 iterator_stack_entry.stop_charpos.
3643
3644 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3645
3646 * gtkutil.c (scroll_end_callback): New function (bug #5177).
3647 (xg_create_scroll_bar): Call scroll_end_callback on button release
3648 event (bug #5177).
3649 (xg_event_is_for_scrollbar): != replaced with ==.
3650
3651 2009-12-12 Kenichi Handa <handa@m17n.org>
3652
3653 * ftfont.c (struct ftfont_info): New member matrix.
3654 (ftfont_open): Setup xftfont_info->matrix.
3655 (MFLTFontFT): New member matrix.
3656 (FLOOR, CEIL, ROUND): New macros.
3657 (ftfont_get_metrics): Handle matrix transformation.
3658 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3659
3660 * xftfont.c (struct xftfont_info): New member matrix.
3661 (xftfont_open): Setup xftfont_info->matrix.
3662
3663 2009-12-10 Kenichi Handa <handa@m17n.org>
3664
3665 * xdisp.c (append_space_for_newline): Consider face-remapping.
3666
3667 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3668
3669 * xsettings.c: Include "keyboard.h".
3670
3671 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3672
3673 Fix implicit function declarations.
3674 * cmds.c: Include "frame.h".
3675 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3676 * frame.h: Move declaration of delete_frame outside of
3677 HAVE_WINDOW_SYSTEM.
3678
3679 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3680
3681 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3682
3683 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3684 GTK builds.
3685
3686 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3687
3688 * unexelf.c (unexec): Don't search for .data twice.
3689
3690 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
3691
3692 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3693 if push failed.
3694 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3695 of push_display_prop (Bug#5000).
3696
3697 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3698 value of font_list_entities (Bug#5085).
3699
3700 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
3701
3702 Fix `string-to-number' to deal consistently with integers and floats.
3703 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3704 trailing characters, not just whitespace.
3705 (read1): Pass new arg 0 to keep old behavior.
3706 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3707 trailing chars, as it is already done for integers. Doc fixes.
3708 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3709
3710 2009-12-04 Eli Zaretskii <eliz@gnu.org>
3711
3712 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3713 Delete unused enumeration value.
3714
3715 2009-12-03 Eli Zaretskii <eliz@gnu.org>
3716
3717 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3718
3719 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3720
3721 * process.c (Fmake_network_process): Fix up the tests for
3722 "connectionless socket", so they DTRT for seqpacket sockets as well.
3723
3724 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3725
3726 * process.c (Qseqpacket): New symbol.
3727 (HAVE_SEQPACKET): New macro.
3728 (Fmake_network_process): Accept new :type `seqpacket'.
3729 (init_process): Add `seqpacket' feature when applicable.
3730 (syms_of_process): Initialize Qseqpacket.
3731
3732 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3733
3734 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3735 if entity is Qnil.
3736
3737 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3738
3739 * print.c (print_preprocess): Preprocess the key_and_value table of
3740 hashtables, even tho they're "hidden" (bug#5082).
3741
3742 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3743
3744 * frame.c (frame_make_pointer_invisible)
3745 (frame_make_pointer_visible): Declare f before statements.
3746
3747 2009-11-28 Eli Zaretskii <eliz@gnu.org>
3748
3749 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3750 omitted dependencies on lisp.h.
3751
3752 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3753
3754 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3755 is NULL.
3756
3757 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3758
3759 * frame.c (frame_make_pointer_invisible)
3760 (frame_make_pointer_visible): Just return if there isn't any selected
3761 frame.
3762
3763 * search.c (simple_search): Remove warning by making *p const.
3764
3765 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3766
3767 * xdisp.c (power_letter): Remove duplicate const.
3768
3769 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3770
3771 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3772
3773 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
3774 defaults (bug #5025).
3775
3776 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3777
3778 * insdel.c (adjust_markers_for_delete): Move it in the
3779 right direction! (bug#4803)
3780
3781 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3782
3783 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3784
3785 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3786
3787 2009-11-24 Glenn Morris <rgm@gnu.org>
3788
3789 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3790
3791 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3792
3793 * Makefile.in: Must create deps for ecrt0.o in its rule.
3794
3795 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3796 because that is what Gtk+ font dialog understands.
3797
3798 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3799 of Fcopy_sequence.
3800 (font_open_by_name): Put name given into QCname for font-object returned.
3801
3802 * frame.c (x_set_font): Save original font name as frame parameter
3803 font-parameter.
3804
3805 * xsettings.c (set_default_xft_settings): New function.
3806 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3807 is found.
3808
3809 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3810
3811 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3812 searching backwards through multibyte buffer.
3813
3814 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3815
3816 * xterm.c: #include xgselect.h.
3817 (x_initialize): Call xgselect_initialize.
3818
3819 * xsettings.c (something_changedCB): C++ comments => C comments.
3820 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3821 does that now.
3822
3823 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3824 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3825 (scroll_bar_button_cb): Remove.
3826 (create_menus): C++ comments => C comments. Don't bind grab-notify
3827 event.
3828 (xg_create_scroll_bar): Don't bind button-press-event and
3829 button-release-event.
3830
3831 * process.c: Include xgselect.h if defined (USE_GTK) ||
3832 defined (HAVE_GCONF).
3833 (wait_reading_process_output): Call xg_select for the same condition.
3834
3835 * xgselect.c (xg_select): New function to better integrate with
3836 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3837
3838 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3839
3840 * Makefile.in (XOBJ): Add xgselect.o.
3841
3842 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3843
3844 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3845 Remove ignored second argument. All callers changed.
3846 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3847 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3848 * xdisp.c (string_char_and_length): Likewise.
3849
3850 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3851
3852 * xterm.c (x_new_font):
3853 * print.c (print_object):
3854 * cmds.c (Fself_insert_command): Move declarations before statements.
3855
3856 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3857
3858 * s/cygwin.h: Remove unneeded linker flags.
3859
3860 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3861
3862 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3863
3864 * xsettings.h: Declare xsettings_get_system_font.
3865
3866 * xsettings.c (xsettings_get_system_font): New function.
3867 (init_gconf): No use initiating gconf unless we have Xft also.
3868 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3869 HAVE_GCONF.
3870
3871 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3872 add a blank entry so it doesn't collapse into nothing.
3873
3874 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3875
3876 * lread.c (Funintern): Comment out last change.
3877
3878 2009-11-19 Richard Stallman <rms@gnu.org>
3879
3880 * lread.c (Funintern): Error if symbol is t or nil.
3881
3882 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3883
3884 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3885 representation of Lisp integers.
3886 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3887
3888 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3889
3890 * lisp.h: Remove declaration of Ffont_get_system_font.
3891 * xfns.c: Move include of "xsettings.h".
3892 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3893
3894 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3895
3896 * xsettings.c (something_changedCB, Ffont_get_system_font):
3897 Check use_system_font.
3898 (syms_of_xsettings): DEFVAR font-use-system-font.
3899
3900 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3901
3902 * xfns.c (x_default_font_parameter): Remove dead assignment.
3903
3904 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3905
3906 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3907
3908 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
3909 not have FC_LCD_*. #define them if not there.
3910
3911 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
3912
3913 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3914
3915 * xterm.c (handle_one_xevent): Call xft_settings_event for
3916 ClientMessage, PropertyNotify and DestroyNotify.
3917 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3918 Call xsettings_initialize.
3919
3920 * xftfont.c (xftfont_fix_match): New function.
3921 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3922 Call xftfont_fix_match after XftFontMatch.
3923
3924 * xfont.c (xfont_driver): Initialize all members.
3925
3926 * xfns.c (x_default_font_parameter):
3927 Try font from Ffont_get_system_font.
3928 Do not get font from x_default_parameter if we got one from
3929 Ffont_get_system_font.
3930 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
3931
3932 * w32font.c (w32font_driver): Initialize all members.
3933
3934 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3935
3936 * lisp.h: Declare syms_of_xsettings.
3937
3938 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3939 Handle CONFIG_CHANGED_EVENT.
3940
3941 * ftfont.c (ftfont_filter_properties): New function.
3942
3943 * frame.c (x_set_font): Remove unused variable lval.
3944
3945 * font.h (struct font_driver): Add filter_properties.
3946
3947 * font.c (font_put_extra): Don't return if val is nil, it means
3948 boolean option is off.
3949 (font_parse_fcname): Collect all extra properties in extra_props
3950 and call filter_properties for all drivers with extra_props and
3951 font as parameter.
3952 (font_open_entity): Do not use cache, it does not pick up new
3953 fontconfig settings like hinting.
3954 (font_load_for_lface): If spec had a name in it, store it in entity.
3955
3956 * emacs.c (main): Call syms_of_xsettings.
3957
3958 * config.in: HAVE_GCONF is new.
3959
3960 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3961 xsettings.o is new.
3962
3963 2009-11-17 Kenichi Handa <handa@m17n.org>
3964
3965 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3966 back to the default font in case that no suitable font is found.
3967
3968 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3969
3970 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3971 Suggested by Chad Brown <yandros@mit.edu>.
3972 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3973
3974 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3975
3976 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3977
3978 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3979
3980 * Makefile.in: Ignore errors from mkdir when creating deps directory.
3981
3982 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3983
3984 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3985 has a parent.
3986
3987 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
3988 dependency files in deps/. Include those files into Makefile.
3989
3990 * config.in: Generated (AUTO_DEPEND).
3991
3992 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
3993
3994 * dbusbind.c (Vdbus_registered_objects_table): Rename from
3995 Vdbus_registered_functions_table, because it contains also
3996 properties. Fix docstring.
3997 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
3998
3999 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4000
4001 * alloc.c (mark_object): Don't reprocess marked strings.
4002 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4003 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4004
4005 2009-11-13 Kenichi Handa <handa@m17n.org>
4006
4007 * category.c (word_boundary_p): Adjust for the change of the
4008 semantics of Vword_combining_categories.
4009 (Vword_combining_categories): Describe the slight change of the
4010 semantics.
4011
4012 2009-11-13 Eli Zaretskii <eliz@gnu.org>
4013
4014 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4015
4016 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4017
4018 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4019
4020 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4021
4022 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
4023
4024 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4025
4026 2009-11-11 David Reitter <david.reitter@gmail.com>
4027
4028 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4029 variables to fix 2009-11-09 change.
4030
4031 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4032
4033 * process.c (ifflag_def): Make flag_sym constant.
4034 (Fnetwork_interface_info): Use a constant pointer.
4035 (ifflag_table):
4036 * xfns.c (cursor_bits):
4037 * xdisp.c (power_letter):
4038 * termcap.c (speeds, esctab):
4039 * sysdep.c (baud_convert):
4040 * keyboard.c (lispy_accent_codes, modifier_names):
4041 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4042 (jpeg_format, tiff_format, gif_format, svg_format)
4043 (interlace_start, interlace_increment, gs_format):
4044 * gtkutil.c (separator_names):
4045 * fringe.c (swap_nibble):
4046 * fns.c (base64_value_to_char, base64_char_to_value):
4047 * fileio.c (make_temp_name_tbl):
4048 * coding.c (suffixes): Make constant.
4049
4050 * frame.c (make_initial_frame):
4051 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4052 build_string.
4053 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4054
4055 * s/freebsd.h:
4056 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4057
4058 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4059 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4060
4061 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4062 * xterm.c (syms_of_xterm):
4063 * xfaces.c (syms_of_xfaces):
4064 * xdisp.c (syms_of_xdisp):
4065 * lread.c (syms_of_lread):
4066 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4067 build_string.
4068
4069 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4070
4071 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4072
4073 * fns.c (Fplist_get): Merge the active and the commented out code.
4074
4075 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4076
4077 * keyboard.h: Declare timer_check.
4078
4079 * keyboard.c (timer_check_2): New function that does what the old
4080 timer_check did.
4081 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4082 returned, i.e. don't return -1 with timers pending.
4083
4084 * process.c: Remove extern declaration of timer_check.
4085
4086 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4087 even if timer_check returned -1.
4088
4089 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4090 xg_dialog_data.
4091 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4092 the event loop.
4093 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4094 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4095 Destroy the dialog after xg_dialog_run.
4096
4097 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4098
4099 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4100
4101 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4102
4103 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4104
4105 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
4106
4107 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4108
4109 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4110
4111 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4112 w32menu.c, and nsmenu.m.
4113 Simplify the obsolete case where position is nil.
4114 (cleanup_popup_menu): New function, moved from nsmenu.m.
4115 (struct skp): Remove slot `notreal'.
4116 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4117 adjust callers.
4118 (single_menu_item): Adjust call to parse_menu_item.
4119 (syms_of_menu): Defsubr x-popup-menu.
4120 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4121 (keymap_panes): Don't export any more.
4122 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4123 (xmenu_show): Declare.
4124 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4125 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4126 * keyboard.h (parse_menu_item): Update declaration.
4127 * xmenu.c (Fx_popup_menu): Remove.
4128 (syms_of_xmenu): Don't defsubr x-popup-menu.
4129 * w32menu.c (Fx_popup_menu): Remove.
4130 (syms_of_w32menu): Don't defsubr x-popup-menu.
4131 * nsmenu.m (cleanup_popup_menu): Remove.
4132 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4133 moved to menu.c's Fx_popup_menu.
4134 (Fx_popup_menu): Remove.
4135 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4136 menu_items (it's done in menu.c already).
4137
4138 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4139
4140 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4141 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4142
4143 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
4144
4145 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
4146 xmenu_show. Hide any tooltip before opening a menu.
4147 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4148 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4149
4150 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4151
4152 Let integers use up 2 tags to give them one extra bit and thus double
4153 their range.
4154 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4155 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4156 New macros.
4157 (enum Lisp_Type): Use them. Give explicit values.
4158 (Lisp_Type_Limit): Remove.
4159 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4160 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4161 Pay attention to USE_2_TAGS_FOR_INTS.
4162 (INTEGERP): Use LISP_INT_TAG_P.
4163 * fns.c (internal_equal): Simplify the default case.
4164 (sxhash): Use case_Lisp_Int.
4165 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4166 any more.
4167 (Ftype_of): Use case_Lisp_Int.
4168 (store_symval_forwarding): Take into account the fact that Ints can
4169 now have more than one tag.
4170 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4171 buffer_slot_type_mismatch):
4172 * xfaces.c (face_attr_equal_p):
4173 * print.c (print_object):
4174 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4175 Use case_Lisp_Int.
4176
4177 2009-11-06 Eli Zaretskii <eliz@gnu.org>
4178
4179 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4180
4181 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4182 warning.
4183
4184 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4185
4186 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4187
4188 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4189
4190 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4191 ButtonPressRelease and MotionNotify (bug#4870).
4192
4193 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4194
4195 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4196
4197 * xterm.c (syms_of_xterm):
4198 * xselect.c (syms_of_xselect):
4199 * xmenu.c (syms_of_xmenu):
4200 * xfns.c (syms_of_xfns):
4201 * xfaces.c (syms_of_xfaces):
4202 * xdisp.c (syms_of_xdisp):
4203 * window.c (syms_of_window):
4204 * w32fns.c (syms_of_w32fns):
4205 * undo.c (syms_of_undo):
4206 * textprop.c (syms_of_textprop):
4207 * terminal.c (syms_of_terminal):
4208 * syntax.c (syms_of_syntax):
4209 * sound.c (syms_of_sound):
4210 * search.c (syms_of_search):
4211 * print.c (syms_of_print):
4212 * minibuf.c (syms_of_minibuf):
4213 * macros.c (syms_of_macros):
4214 * keymap.c (syms_of_keymap, initial_define_key)
4215 (initial_define_lispy_key):
4216 * keyboard.c (syms_of_keyboard):
4217 * insdel.c (syms_of_insdel):
4218 * image.c (syms_of_image):
4219 * fringe.c (syms_of_fringe):
4220 * frame.c (syms_of_frame):
4221 * fontset.c (syms_of_fontset):
4222 * fns.c (syms_of_fns):
4223 * fns.c (syms_of_fns):
4224 * fileio.c (syms_of_fileio):
4225 * fileio.c (syms_of_fileio):
4226 * eval.c (syms_of_eval):
4227 * doc.c (syms_of_doc):
4228 * dispnew.c (syms_of_display):
4229 * dired.c (syms_of_dired):
4230 * dbusbind.c (syms_of_dbusbind):
4231 * data.c (syms_of_data):
4232 * composite.c (syms_of_composite):
4233 * coding.c (syms_of_coding):
4234 * cmds.c (syms_of_cmds):
4235 * charset.c (define_charset_internal, syms_of_character):
4236 * ccl.c (syms_of_ccl):
4237 * category.c (syms_of_category, init_category_once):
4238 * casetab.c (syms_of_casetab):
4239 * casefiddle.c (syms_of_casefiddle):
4240 * callint.c (syms_of_callint):
4241 * bytecode.c (syms_of_bytecode):
4242 * buffer.c (keys_of_buffer, syms_of_buffer):
4243 * alloc.c (syms_of_alloc):
4244 * process.c (syms_of_process, init_process):
4245 * lread.c (syms_of_lread, init_obarray):
4246 * font.c (build_style_table):
4247 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4248 intern_c_string, calls to make_pure_string with
4249 make_pure_c_string. Use pure_cons instead of Fcons.
4250
4251 * process.c (socket_options): Make it const.
4252 (set_socket_option, init_process): Use a const pointer.
4253
4254 * lread.c (intern_c_string): New function.
4255 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4256 (defvar_int): Uset it. Make the name const char*.
4257
4258 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4259 (defvar_int): Update prototypes.
4260 (DEFUN, EXFUN): Support for prototypes is now required.
4261 (intern_c_string): New prototype.
4262 (struct Lisp_Subr): Make symbol_name constant.
4263
4264 * font.c (struct table_entry): Remove unused member. Make NAMES
4265 constant.
4266 (weight_table, slant_table, width_table): Make constant.
4267
4268 * emacs.c (struct standard_args): Make name and longname constant.
4269
4270 * character.h (DEFSYM): Use intern_c_string.
4271
4272 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4273
4274 * alloc.c (make_pure_c_string): New function.
4275
4276 * eval.c (Fautoload): Purecopy all arguments.
4277
4278 2009-11-05 Kenichi Handa <handa@m17n.org>
4279
4280 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4281 the buffer in case of replace.
4282
4283 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4284
4285 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4286
4287 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4288
4289 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4290 when applicable (bug#4851).
4291
4292 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4293 (P_): Support for prototypes is now required.
4294
4295 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
4296
4297 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4298 (Bug#4827).
4299
4300 2009-10-30 Eli Zaretskii <eliz@gnu.org>
4301
4302 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
4303
4304 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4305
4306 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4307
4308 * lread.c (Fload): Purecopy the file name when building
4309 Vpreloaded_file_list.
4310
4311 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4312
4313 * w32fns.c (syms_of_w32fns): Change default value of
4314 w32-scroll-lock-modifier to nil. (Bug#2827)
4315
4316 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
4317
4318 * minibuf.c (Fall_completions): Fix typos in docstring.
4319
4320 2009-10-26 Andreas Schwab <schwab@redhat.com>
4321
4322 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4323
4324 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
4325
4326 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4327 For delta < 0, skip check that only makes sense when the mini-window
4328 is going to be enlarged. (Bug#4534)
4329
4330 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
4331
4332 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4333 string in menu maps (Bug#4471).
4334
4335 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
4336
4337 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4338 FRAME_NS_VIEW on terminal frames (Bug#4765).
4339
4340 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4341
4342 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4343 DBUS_TYPE_UINTnn separately to get proper sign extension.
4344
4345 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4346 can properly handle unsigned types.
4347 (make_uid, make_gid): Remove.
4348
4349 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4350 types again.
4351
4352 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
4353 (system_process_attributes): Likewise.
4354
4355 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4356
4357 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4358
4359 * eval.c (Fautoload): Purecopy the filename. Simplify.
4360
4361 * category.c (Fdefine_category): Purecopy docstring.
4362
4363 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4364
4365 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4366
4367 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4368
4369 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
4370
4371 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4372 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4373 (Bug#4775).
4374
4375 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4376
4377 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4378 (init_fileio_once):
4379 * lisp.h (init_fileio_once): Remove.
4380 * emacs.c (main): Don't call init_fileio_once.
4381
4382 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4383
4384 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4385
4386 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4387
4388 * doprnt.c (doprnt): Fix overflow check.
4389
4390 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4391
4392 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4393
4394 * xterm.h (x_wait_for_event): Declare it.
4395
4396 * xterm.c (pending_event_wait): New variable.
4397 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4398 see pending_event_wait.eventtype.
4399 (handle_one_xevent): Don't change gravity when parent changes.
4400 (x_new_font): Call change_frame_size with new rows/columns before we
4401 try to resize the frame.
4402 (x_wait_for_event): New function.
4403 (x_set_window_size_1): Don't change gravity unless change_gravity
4404 is set.
4405 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4406 don't change frame size, instead wait for the ConfigureNotify.
4407 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4408 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4409 (x_initialize): Initialize pending_event_wait.
4410
4411 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4412 size.
4413
4414 * widget.c (EmacsFrameSetValues): Add comment.
4415 (EmacsFrameSetCharSize): Just call x_set_window_size.
4416
4417 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4418 x_wait_for_event.
4419 (flush_and_sync): Remove again.
4420 (xg_get_font_name): Suggest monospace if no previous font is known.
4421
4422 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4423
4424 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
4425 8th bit, since that only made sense in the ASCII world (bug#4751).
4426
4427 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4428
4429 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4430 processing pending events when event is filtered for input method.
4431 (Bug#3681)
4432
4433 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
4434
4435 * fns.c: Add #endif accidentally removed in previous change.
4436
4437 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4438
4439 * fns.c: Remove code for unsupported system: MAC_OS.
4440 * image.c: Likewise. Include setjmp.h.
4441
4442 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4443
4444 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4445 pixel -1 (bug #4742).
4446
4447 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4448
4449 * process.c (create_pty): Remove conditionals for no longer
4450 supported systems: UNIPLUS and RTU.
4451
4452 * xterm.c:
4453 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4454
4455 * alloc.c: Do not define struct catchtag.
4456 * eval.c: Move struct catchtag definition ...
4457 * lisp.h: ... here.
4458
4459 * image.c: Move png.h #include earlier to avoid warnings.
4460
4461 * xterm.c:
4462 * xsmfns.c:
4463 * xselect.c:
4464 * xrdb.c:
4465 * xmenu.c:
4466 * xftfont.c:
4467 * xfont.c:
4468 * xfns.c:
4469 * xfaces.c:
4470 * xdisp.c:
4471 * window.c:
4472 * widget.c:
4473 * w32xfns.c:
4474 * w32uniscribe.c:
4475 * w32term.c:
4476 * w32select.c:
4477 * w32reg.c:
4478 * w32proc.c:
4479 * w32menu.c:
4480 * w32inevt.c:
4481 * w32heap.c:
4482 * w32font.c:
4483 * w32fns.c:
4484 * w32console.c:
4485 * w32.c:
4486 * w16select.c:
4487 * vm-limit.c:
4488 * unexsol.c:
4489 * unexec.c:
4490 * unexcw.c:
4491 * unexaix.c:
4492 * undo.c:
4493 * tparam.c:
4494 * textprop.c:
4495 * terminfo.c:
4496 * terminal.c:
4497 * termcap.c:
4498 * term.c:
4499 * syntax.c:
4500 * sound.c:
4501 * sheap.c:
4502 * search.c:
4503 * scroll.c:
4504 * region-cache.c:
4505 * regex.c:
4506 * ralloc.c:
4507 * process.c:
4508 * print.c:
4509 * nsterm.m:
4510 * nsselect.m:
4511 * nsmenu.m:
4512 * nsimage.m:
4513 * nsfont.m:
4514 * nsfns.m:
4515 * msdos.c:
4516 * minibuf.c:
4517 * menu.c:
4518 * marker.c:
4519 * macros.c:
4520 * keymap.c:
4521 * keyboard.c:
4522 * intervals.c:
4523 * insdel.c:
4524 * indent.c:
4525 * gtkutil.c:
4526 * ftxfont.c:
4527 * ftfont.c:
4528 * fringe.c:
4529 * frame.c:
4530 * fontset.c:
4531 * font.c:
4532 * fns.c:
4533 * floatfns.c:
4534 * filelock.c:
4535 * fileio.c:
4536 * emacs.c:
4537 * editfns.c:
4538 * dosfns.c:
4539 * doprnt.c:
4540 * doc.c:
4541 * dispnew.c:
4542 * dired.c:
4543 * dbusbind.c:
4544 * data.c:
4545 * composite.c:
4546 * coding.c:
4547 * cmds.c:
4548 * cm.c:
4549 * chartab.c:
4550 * charset.c:
4551 * character.c:
4552 * ccl.c:
4553 * category.c:
4554 * casetab.c:
4555 * casefiddle.c:
4556 * callproc.c:
4557 * callint.c:
4558 * bytecode.c:
4559 * buffer.c:
4560 * atimer.c: Include setjmp.h. (Bug#4643)
4561
4562 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4563
4564 Remove leftover table unibyte_to_multibyte_table.
4565 * character.c (unibyte_to_multibyte_table): Remove.
4566 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4567 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4568 * character.h (UNIBYTE_TO_CHAR): New macro.
4569 (MAKE_CHAR_MULTIBYTE): Use it.
4570 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4571 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4572 (message_dolog, set_message_1):
4573 * search.c (Freplace_match):
4574 * editfns.c (Fcompare_buffer_substrings):
4575 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4576 (concat):
4577 * insdel.c (copy_text, count_size_as_multibyte):
4578 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4579 * term.c (produce_glyphs):
4580 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4581 * regex.c (RE_CHAR_TO_MULTIBYTE):
4582 * cmds.c (internal_self_insert):
4583 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4584
4585 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4586
4587 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4588
4589 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4590
4591 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
4592
4593 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4594
4595 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4596
4597 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4598 still needed under Tiger.
4599
4600 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4601
4602 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4603 __Apple__.
4604
4605 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4606
4607 2009-10-15 Kenichi Handa <handa@m17n.org>
4608
4609 * print.c (print_object): Escape a symbol like "2E10" too.
4610
4611 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
4612
4613 Cleanups and changes for 64-bit compile under Snow Leopard.
4614 Based on suggestions by Erik Charlebois.
4615
4616 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4617
4618 * nsfont.m (ns_char_width): Replace deprecated call.
4619 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4620 cast argument.
4621 (nsfont_open): Use ns_char_width() everywhere.
4622 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
4623
4624 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4625
4626 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4627 where appropriate.
4628
4629 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4630 where appropriate.
4631 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4632 Use stringWithUTF8String.
4633 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4634
4635 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4636 Add formal protocol mention to inheritance.
4637 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4638
4639 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4640 Fix printf format.
4641 (ns_query_color): Use CGFloat where appropriate.
4642 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
4643 (EmacsScroller-mouseDown:): Use long format in printf, and cast
4644 argument.
4645
4646 * config.in (NS_HAVE_NSINTEGER): Drop.
4647
4648 * dbusbind.c (dbus-method-return-internal)
4649 (dbus-method-error-internal): Use long format in printf, and cast
4650 argument.
4651
4652 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4653 in printf, and cast argument.
4654
4655 * process.c (list_processes_1): Use long format in printf, and
4656 cast argument.
4657
4658 2009-10-11 Glenn Morris <rgm@gnu.org>
4659
4660 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4661
4662 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4663
4664 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4665 menu bar with a small width so it doesn't enlarge the frame.
4666
4667 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
4668
4669 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4670
4671 2009-10-06 Glenn Morris <rgm@gnu.org>
4672
4673 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4674 SOME_MACHINE_LISP (this enters indirectly via DOC).
4675
4676 2009-10-05 Eli Zaretskii <eliz@gnu.org>
4677
4678 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4679
4680 2009-10-04 Eli Zaretskii <eliz@gnu.org>
4681
4682 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4683 Doc fix.
4684
4685 2009-10-03 Martin Rudalics <rudalics@gmx.at>
4686
4687 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4688
4689 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
4690
4691 * lisp.h (Qdelete_directory_internal): Remove, because it is not
4692 used anymore outside fileio.c.
4693
4694 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4695
4696 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
4697
4698 * lisp.h (Qdelete_directory_internal):
4699 Declare, instead of Qdelete_directory.
4700
4701 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4702
4703 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4704
4705 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4706
4707 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
4708
4709 * fileio.c (Fdelete_directory_internal): Rename from
4710 Fdelete_directory. It is not a command anymore. It has no file
4711 name handler.
4712
4713 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4714
4715 * xdisp.c (get_next_display_element): Use an enum in last change.
4716
4717 2009-09-28 Kenichi Handa <handa@m17n.org>
4718
4719 * xdisp.c (get_next_display_element): Pay attention to
4720 unibyte_display_via_language_environment in handling
4721 Vnobreak_char_display.
4722
4723 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4724
4725 * nsterm.h (ns_app_name): New extern variable.
4726
4727 * nsterm.m (ns_app_name): New variable.
4728 (ns_term_init): Set and use it.
4729 (ns_term_shutdown): Use it.
4730
4731 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4732 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4733
4734 * nsfns.m (ns_set_name_iconic, ns_set_name)
4735 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4736 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4737
4738 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4739 Remove double-casting in client_data comparison.
4740
4741 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4742
4743 * keyboard.c (make_lispy_event): Remember last wheel direction.
4744 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4745
4746 2009-09-26 Glenn Morris <rgm@gnu.org>
4747
4748 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4749 internal.elc. Add term/pc-win.elc.
4750 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4751 term/x-win.elc.
4752 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4753 term/w32-win.elc.
4754 (NS_SUPPORT): New.
4755 (lisp): Add NS_SUPPORT.
4756 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4757
4758 2009-09-25 David Reitter <david.reitter@gmail.com>
4759
4760 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4761 on Mac OS X 10.6+ (bug#4513).
4762
4763 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4764
4765 * frame.c (xrdb_get_resource): Return nil for empty string resources;
4766 some parts of Emacs code (like font selection) don't grok them.
4767 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
4768
4769 2009-09-24 Andreas Schwab <schwab@redhat.com>
4770
4771 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4772
4773 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4774
4775 * dired.c (Fdirectory_files): Fix typo in docstring.
4776
4777 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4778
4779 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4780 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4781 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4782 under GNUstep.
4783 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4784
4785 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4786 glyph advancement.
4787
4788 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4789
4790 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
4791 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
4792
4793 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4794 deleted (bug #4492).
4795
4796 * nsfont.m (Vns_reg_to_script): New lisp variable.
4797 (syms_of_nsfont): Declare it.
4798 (ns_registry_to_script): New function.
4799 (ns_get_req_script): Call it.
4800 (ns_findfonts): Don't give up on non-unicode registry.
4801
4802 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4803
4804 2009-09-20 Tom Tromey <tromey@redhat.com>
4805
4806 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4807 batch mode (bug#4228).
4808
4809 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
4810
4811 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
4812 carefully. (Bug #4339)
4813
4814 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
4815
4816 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
4817
4818 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4819
4820 * emacs.c (inhibit_x_resources): Update doc string for NS.
4821 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
4822 legacy code for -NXHost. Fix error printf in daemon case.
4823
4824 * nsterm.h (ns_no_defaults): Remove.
4825
4826 * nsterm.m (ns_no_defaults): Remove.
4827 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4828 (ns_use_qd_smoothing): Remove legacy variable.
4829 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4830 don't update the NSWindow itself.
4831 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
4832 state detection and store user rect ourselves. (Bug #3581)
4833
4834 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4835 ns_use_qd_smoothing.
4836
4837 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4838 platform versions. Drop support for emacs-20-style face specs.
4839 (x-close-connection): Drop PSFlush() under OS X.
4840 (x-focus-frame): Activate the app first. (Bug #4180)
4841
4842 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
4843
4844 * emacs.c (inhibit_x_resources): New variable.
4845 (main) [HAVE_NS]: Don't process --quick command line option.
4846 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4847
4848 * lisp.h (inhibit_x_resources): Declare it extern.
4849
4850 * w32reg.c (x_get_string_resource):
4851 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4852
4853 2009-09-17 Eli Zaretskii <eliz@gnu.org>
4854
4855 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4856 Add lisp/term/internal.elc.
4857
4858 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4859
4860 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4861 (bug#4461).
4862
4863 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4864
4865 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4866
4867 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4868 (OBJECTS_MACHINE): Remove, unused.
4869
4870 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4871
4872 * frame.c (x_get_resource_string): Remove unused.
4873
4874 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4875
4876 * xterm.c (x_new_font): Call change_frame_size before calling
4877 x_set_window_size, in case frame size won't change.
4878
4879 * frame.c (x_set_font): Remove dead code.
4880
4881 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4882
4883 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4884
4885 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4886
4887 * lread.c (Fload): Don't output a message after loading an obsolete
4888 package any more (done in Lisp now).
4889
4890 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
4891
4892 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4893
4894 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4895
4896 * keymap.c (Fwhere_is_internal): Use nconc2.
4897
4898 2009-09-11 Alan Mackenzie <acm@muc.de>
4899
4900 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4901 batch mode.
4902
4903 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4904
4905 * xdisp.c (display_mode_element): Detect cycles.
4906
4907 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4908
4909 * keymap.c (where_is_internal): Don't erroneously return nil right after
4910 filling the cache.
4911 (where_is_internal_1): Fix up typo.
4912
4913 2009-09-11 Glenn Morris <rgm@gnu.org>
4914
4915 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4916 share a common doc-string.
4917
4918 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4919
4920 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4921 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4922
4923 * keymap.c (QCadvertised_binding): New constant.
4924 (syms_of_keymap): Initialize it.
4925 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4926 if applicable.
4927
4928 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4929
4930 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4931 (parse_menu_item): Streamline since bindings are recomputed all the
4932 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4933 more and don't support lmenu's menu-alias any more either.
4934
4935 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4936 (where_is_internal): Strip it down to only traverse the keymaps.
4937 Move the cache handling from Fwhere_is_internal to here.
4938 (Fwhere_is_internal): Move the handling of remapping and the choice of
4939 the best binding from where_is_internal to here.
4940 Unify the cached/noncached paths, so remapping is also handled
4941 correctly when the cache is used, and so the cache can be used to
4942 speed up remap-handling when applicable.
4943 Give preference to non-remapped bindings.
4944 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4945 non-remapped bindings.
4946 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4947 command remapping.
4948
4949 * xdisp.c (display_mode_element): Move list length limit from 50 to
4950 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4951
4952 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
4953
4954 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4955
4956 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4957
4958 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4959 (Bug#4334)
4960
4961 * keymap.c (where_is_internal): Filter out shadowed remappings.
4962 Assume that where_is_internal returns unshadowed bindings to simplify
4963 the code and get rid of the gotos. Use ASIZE.
4964
4965 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4966
4967 * xterm.c (x_focus_changed): If we get a focusout and pointer
4968 is invisible, make it visible.
4969
4970 * xterm.h: Remove condition for declaration of
4971 x_*_window_to_frame.
4972
4973 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4974
4975 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4976 initial terminal as well.
4977
4978 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4979
4980 * xterm.h: Rename x_non_menubar_window_to_frame to
4981 x_menubar_window_to_frame.
4982
4983 * xterm.c: Remove declarations also in xterm.h.
4984 (XTmouse_position): Do not return valid positions
4985 for clicks in the menubar and the toolbar for Gtk+.
4986
4987 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4988 if the widget for the event has the same top level as a frame,
4989 return the frame.
4990 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4991 internal windows, bug #4122.
4992 (x_non_menubar_window_to_frame): Remove.
4993
4994 2009-09-02 Glenn Morris <rgm@gnu.org>
4995
4996 * buffer.c (default-major-mode): Move most of the doc from here...
4997 (major-mode): ... to here.
4998
4999 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
5000
5001 * process.c (wait_reading_process_output): Keep the descriptor
5002 when pty is used by a non-child process, e.g., in I/O buffer of
5003 GDB this allows inferior to be restarted.
5004
5005 2009-08-29 Eli Zaretskii <eliz@gnu.org>
5006
5007 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5008 both branches into one.
5009
5010 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5011
5012 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5013 (main): Use enable-multibyte-characters rather than
5014 default-enable-multibyte-characters. Output a warning message when
5015 running a unibyte session.
5016
5017 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5018
5019 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5020 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5021 (copy_data_segment): Also copy __program_vars section.
5022 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5023 (dump_it) [LC_DYLD_INFO]: Use it.
5024
5025 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5026
5027 2009-08-28 Eli Zaretskii <eliz@gnu.org>
5028
5029 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5030 $(SRC)/buildobj.h.
5031 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5032 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5033 $(SRC)/buildobj.h.
5034 (clean): Add buildobj.h.
5035
5036 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5037
5038 * print.c (print_object): Set escapeflag to 1 when printing
5039 hashtable keys and values.
5040
5041 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5042
5043 * lread.c (read_integer): Use doubles (and potentially return a float
5044 number) as we do in string-to-number.
5045 (read1): Use strtol to read integers, signal errors on strtol's
5046 overflow and use floats if strtol's output is too large for
5047 Elisp integers.
5048
5049 2009-08-27 Eli Zaretskii <eliz@gnu.org>
5050
5051 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5052 (make-buildobj-SH): Fix last change.
5053 (SRC): Move to before where it's first used.
5054
5055 2009-08-27 Kenichi Handa <handa@m17n.org>
5056
5057 * process.c (send_process): Use encode_coding_object instead of
5058 encode_coding_string to perform eol-conversion even if the string
5059 is unibyte.
5060
5061 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5062 character.
5063
5064 * cmds.c (Fself_insert_command): Avoid unnecessay
5065 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
5066
5067 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5068
5069 * callproc.c (Fcall_process): Remove always true #if.
5070
5071 * lisp.h: Replace #if 0 code for checking with text pointing to
5072 the --enable-checking configure flag.
5073
5074 * emacs.c (main): Mention the --enable-profiling configure flag
5075 instead of using CFLAGS.
5076
5077 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
5078
5079 * Makefile.in (buildobj.h): New target.
5080 (doc.o): Depend on it.
5081 (temacs${EXEEXT}): Don't generate buildobj.lst.
5082 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5083 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5084 ($(BLD)/doc.$(O)): Depend on it.
5085 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5086 provided by Eli Zaretskii.)
5087 ($(TEMACS)): Don't generate buildobj.lst.
5088 * doc.c: Include buildobj.h.
5089 (buildobj): New static variable.
5090 (Fsnarf_documentation): Use it, instead of opening and reading
5091 buildobj.lst.
5092
5093 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
5094
5095 * dbusbind.c (Fdbus_call_method)
5096 (Fdbus_call_method_asynchronously): Use English numeric format for
5097 timeout values in doc string.
5098
5099 2009-08-25 Kenichi Handa <handa@m17n.org>
5100
5101 * alloc.c (mark_char_table): New function.
5102 (mark_object): Use mark_char_table for a char-table.
5103
5104 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5105 (CHAR_TABLE_REF): Use it.
5106
5107 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
5108
5109 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5110 before invoking the newly build emacs to check for load-path
5111 shadowing.
5112
5113 2009-08-22 Glenn Morris <rgm@gnu.org>
5114
5115 * Makefile.in (bootstrap_exe): New variable.
5116 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5117 Use ${bootstrap_exe}.
5118
5119 2009-08-22 Eli Zaretskii <eliz@gnu.org>
5120
5121 * coding.h (encode_coding_string): Don't encode unibyte strings.
5122 (Bug#4047)
5123
5124 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
5125
5126 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5127
5128 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5129 intended as hotfix only.
5130 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5131
5132 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5133
5134 * nsterm.m (ns_get_color): Update documentation properly for last
5135 change, and clean up loose ends in the code left by it. Fix
5136 longstanding bug with 16-bit hex parsing, and add support for
5137 yet another X11 format (rgb:r/g/b) for compatibility.
5138 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5139 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5140
5141 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5142
5143 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5144
5145 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
5146
5147 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5148 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5149 (xd_initialize, xd_pending_messages): Check, whether
5150 $DBUS_SESSION_BUS_ADDRESS is set.
5151
5152 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5153
5154 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5155
5156 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5157
5158 2009-08-20 Glenn Morris <rgm@gnu.org>
5159
5160 * emacs.c (system-type): Doc fix.
5161
5162 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5163
5164 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5165 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5166
5167 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
5168
5169 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5170 New functions.
5171 (xd_initialize): Revert change from 2009-08-16.
5172
5173 2009-08-18 Kenichi Handa <handa@m17n.org>
5174
5175 * fontset.c (Ffontset_font): If a nil element is found in a
5176 font-group vector, return nil.
5177
5178 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
5179
5180 * process.c (status_notify): Don't perform redisplay.
5181 (Fdelete_process, list_processes_1, process_send_signal):
5182 Expliticly perform redisplay.
5183 (wait_reading_process_output): Always check process status, but
5184 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5185
5186 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
5187
5188 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
5189 (XFLOAT_INIT): New macro for storing a float value.
5190 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5191 * fns.c (sxhash): Copy out the value of a float in order to
5192 examine its bytes.
5193 * dbusbind.c (xd_append_arg): Likewise.
5194
5195 * emacs.c (main): Don't call syms_of_data twice.
5196
5197 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
5198
5199 * dbusbind.c (xd_initialize): Add connection file descriptor to
5200 input_wait_mask, in order to let select() detect, whether a new
5201 message has been arrived.
5202 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
5203
5204 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
5205
5206 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5207 New functions.
5208
5209 * lisp.h (xd_pending_messages): Declare.
5210
5211 * keyboard.c (readable_events): Call xd_pending_messages.
5212
5213 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
5214
5215 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
5216
5217 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5218
5219 * buffer.c (set_buffer_internal_1)
5220 (swap_out_buffer_local_variables): Check for unbound local
5221 variables (Bug#4138).
5222
5223 2009-08-14 Eli Zaretskii <eliz@gnu.org>
5224
5225 * process.c (create_pty): Fix last change.
5226
5227 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
5228
5229 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5230 (xbm_load_image): Caller changed.
5231 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
5232
5233 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
5234
5235 * process.c (create_pty): New function.
5236 (Fstart_process): Use it to allow Emacs to just associate a pty
5237 with the buffer. See associated change in gdb-mi.el.
5238 (list_processes_1): Deal with no program name.
5239 (start_process_unwind): Use pid == -2 to mean no process.
5240
5241 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5242
5243 * cmds.c (nonundocount): New global variable.
5244 (keys_of_cmds): Initialize it.
5245 (Fself_insert_command): Use it to combine upto 20 sequential chars
5246 into a single undo entry, just like the Qself_insert_command code in
5247 keyboard.c does.
5248 Call frame_make_pointer_invisible, also like the Qself_insert_command
5249 code in keyboard.c does.
5250 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5251 than its own local replacement for it.
5252
5253 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
5254
5255 * fns.c (concat): Don't re-set string length to its current value.
5256
5257 * coding.h (decode_coding_string, encode_coding_string):
5258 Use SBYTES macro.
5259
5260 * doprnt.c (doprnt_lisp): Delete unused function.
5261 (doprnt): Merge with doprnt1, discarding lispstrings code.
5262 * lisp.h (doprnt_lisp): Don't declare.
5263
5264 2009-08-07 Juri Linkov <juri@jurta.org>
5265
5266 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5267
5268 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5269
5270 * print.c (syms_of_print): Undo previous change.
5271
5272 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5273
5274 * lread.c (read1, syms_of_lread): Read hashtables back from the
5275 readable format.
5276
5277 * print.c (print_preprocess, print_object): Print hashtables fully
5278 and readably.
5279 (syms_of_print): Provide 'hashtable-print-readable.
5280
5281 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5282
5283 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5284 no family set.
5285 (nsfont_open): Handle case when entity has no family.
5286
5287 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5288
5289 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5290 element, not a list, for match case.
5291
5292 2009-07-28 Kenichi Handa <handa@m17n.org>
5293
5294 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5295 rigidly.
5296
5297 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5298 font_parse_xlfd. Check font properties more rigidly.
5299
5300 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5301
5302 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5303 bsd-common.h.
5304
5305 2009-07-27 Kenichi Handa <handa@m17n.org>
5306
5307 * xfaces.c (face_with_height): Call font_clear_prop.
5308
5309 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
5310
5311 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5312
5313 * xterm.c (x_term_init): Use Qx.
5314
5315 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5316
5317 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
5318 (ns_get_color): Revert 2009-07-16 change.
5319
5320 2009-07-25 Eli Zaretskii <eliz@gnu.org>
5321
5322 * lread.c (syms_of_lread) <force_load_messages>: New variable.
5323 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
5324
5325 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
5326
5327 * coding.h (decode_coding_string, encode_coding_string):
5328 Use SCHARS macro.
5329
5330 * lread.c: Rewrite 2009-07-21 changes.
5331 (load_depth): Delete.
5332 (Qload_in_progress): New variable.
5333 (load_unwind): Don't reference load_depth or load_in_progress.
5334 (Fload): Likewise; specbind Qload_in_progress instead.
5335 (init_lread): Don't initialize load_depth.
5336 (syms_of_lread): Initialize and protect Qload_in_progress.
5337
5338 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5339
5340 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5341
5342 2009-07-23 Yavor Doganov <yavor@gnu.org>
5343
5344 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5345
5346 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5347
5348 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
5349 Bugs 3792, 3720, 2402.
5350 (ns_lookup_indexed_color): Check for bad index.
5351 (ns_index_color): Init unused slot to 0.
5352 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5353 Bug 3714, possibly 3082.
5354
5355 2009-07-22 Jason Rumney <jasonr@gnu.org>
5356
5357 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5358 Position IME window at cursor (Bug#2570).
5359 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5360 (globals_of_w32fns): Dynamically load functions required above.
5361
5362 * w32term.c (w32_draw_window_cursor): Send message to reposition
5363 any IME window.
5364
5365 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
5366
5367 * fileio.c: Revert 2009-07-16 changes.
5368 (Vauto_save_include_big_deletions): New variable.
5369 (Fdo_auto_save): Disable auto-save only if
5370 auto-save-include-big-deletions is nil.
5371
5372 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
5373
5374 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5375 the overflowed pixels into account (Bug#3879).
5376
5377 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
5378
5379 * lread.c (load_depth): New variable.
5380 (Fload, load_unwind, init_lread): Set it to the load recursion
5381 depth; set load_in_progress as a simple boolean based on the
5382 current load_depth. (Bug#3892)
5383
5384 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5385
5386 * nsfont.m (ns_has_attribute): Remove.
5387 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5388
5389 2009-07-18 Juri Linkov <juri@jurta.org>
5390
5391 * process.c (Fset_process_query_on_exit_flag): Mention killing
5392 a buffer in docstring.
5393
5394 2009-07-17 Kenichi Handa <handa@m17n.org>
5395
5396 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5397
5398 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5399
5400 * nsfns.m (Fns_set_alpha): Remove function.
5401 (syms_of_nsfns): Don't defsubr it.
5402
5403 * nsterm.m (ns_get_color): Remove incompatible color formats.
5404 (ns_color_to_lisp): Generate #rrggbb color format string.
5405
5406 2009-07-16 Richard Stallman <rms@gnu.org>
5407
5408 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5409 (Fset_buffer_auto_saved): Handle save_length = -2.
5410
5411 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
5412
5413 * xterm.c (Qx_gtk_map_stock): New var.
5414
5415 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5416 of calling intern each time.
5417
5418 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5419
5420 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5421 does tiling.
5422
5423 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5424
5425 2009-07-14 Kenichi Handa <handa@m17n.org>
5426
5427 * font.c (font_vconcat_entity_vectors): New function.
5428 (struct font_sort_data): New member font_driver_preference.
5429 (font_compare): Check font_driver_preference.
5430 (font_sort_entities): The format of the first argument changed.
5431 (font_delete_unmatched): Likewise.
5432 (font_list_entities): The return type changed.
5433 (font_select_entity): The format of the second argument changed.
5434 (font_find_for_lface): Adjuste for the above changes.
5435 Don't suppress the checking of C even if the repertory supports it.
5436 (Flist_fonts): Adjust for the above changes.
5437
5438 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5439 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
5440 Reject a font who has adstyle property that is different from a
5441 langname derived from registry property.
5442 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
5443
5444 2009-07-13 Eli Zaretskii <eliz@gnu.org>
5445
5446 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5447 local copy of dirfilename.
5448
5449 2009-07-13 Kenichi Handa <handa@m17n.org>
5450
5451 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5452 against max_char.
5453
5454 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5455 calling XSYMBOL (sym).
5456
5457 2009-07-11 Eli Zaretskii <eliz@gnu.org>
5458
5459 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5460 New function.
5461 (directory_files_internal) [WINDOWSNT]:
5462 Bind w32-get-true-file-attributes to either t or nil, depending whether
5463 the filesystem of the directory is fast or slow.
5464
5465 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5466 file name.
5467 (is_slow_fs): New function.
5468 (stat): Use it to determine whether to issue more system calls to
5469 get accurate file attributes, when w32-get-true-file-attributes is
5470 `local'.
5471
5472 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5473
5474 * xfns.c (Fx_select_font): Remember last font selected in
5475 x_last_font_name and use that the next time. Also try the frame
5476 parameter font-parameter as default to the font dialog.
5477
5478 2009-07-10 Kenichi Handa <handa@m17n.org>
5479
5480 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5481
5482 2009-07-09 Eli Zaretskii <eliz@gnu.org>
5483
5484 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
5485
5486 * w32.c (stat): Treat UNC file names as residing on remote
5487 drives. (Bug#3542)
5488
5489 2009-07-09 Kenichi Handa <handa@m17n.org>
5490
5491 * fontset.c (fontset_find_font): Fix previous change.
5492
5493 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
5494
5495 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5496 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5497 error flag.
5498
5499 2009-07-08 Kenichi Handa <handa@m17n.org>
5500
5501 * fontset.c (fontset_find_font): Fix the logic of handling
5502 charset_matched.
5503 (font_for_char): Delete unused var.
5504 (generate_ascii_font_name): Delete it.
5505
5506 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5507
5508 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5509 (encode_coding_sjis): Fix the code range check.
5510
5511 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
5512
5513 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5514 (Fexpand_file_name): Copy string data properly (Bug#3772).
5515
5516 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5517
5518 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5519 first MapNotify.
5520
5521 2009-07-07 Kenichi Handa <handa@m17n.org>
5522
5523 * character.h (unibyte_has_multibyte_table): Delete extern.
5524 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5525
5526 * charset.c (Fset_charset_priority): Update charset_unibyte.
5527 (syms_of_charset): Initialize charset_unibyte.
5528
5529 * character.c (unibyte_has_multibyte_table): Delete it.
5530 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5531 charset_unibyte.
5532 (multibyte_char_to_unibyte_safe): Likewise.
5533 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5534
5535 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
5536 (x_produce_glyphs): Likewise.
5537
5538 * .gdbinit (xcharset): Fix the treating $arg0.
5539
5540 2009-07-04 Eli Zaretskii <eliz@gnu.org>
5541
5542 Emulation of `getloadavg' on MS-Windows.
5543 * w32.c: Include float.h.
5544 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5545 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5546 (get_native_system_info, get_system_times): New functions.
5547 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5548 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5549 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5550 g_b_init_get_system_times, and num_of_processors.
5551
5552 2009-07-03 Jason Rumney <jasonr@gnu.org>
5553
5554 * w32term.c (w32_initialize): Use standard types.
5555
5556 2009-07-03 Eli Zaretskii <eliz@gnu.org>
5557
5558 * dired.c (Ffile_attributes): Decode user and group names by the
5559 locale's encoding. (Bug#3443)
5560
5561 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5562
5563 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5564 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5565
5566 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5567
5568 * term.c (init_tty): Remove spurious #ifdef.
5569
5570 * m/mips.h: Mention this file is also used for netbsd.
5571 * m/pmax.h: Remove file.
5572
5573 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5574
5575 * xterm.h (struct x_display_info): Add invisible_cursor.
5576 (struct x_output): Add current_cursor.
5577
5578 * xterm.c (XTtoggle_invisible_pointer): New function.
5579 (x_define_frame_cursor): Don't define cursor if invisible or the
5580 same as before. Set current_cursor.
5581 (x_create_terminal): Set toggle_invisible_pointer_hook.
5582
5583 * xfns.c (make_invisible_cursor): New function.
5584 (x_set_mouse_color): Call make_invisible_cursor.
5585 Set current_cursor.
5586 (x_window): Set current_cursor.
5587
5588 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5589
5590 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5591 inserting a character.
5592 (read_avail_input): Call frame_make_pointer_visible.
5593
5594 * frame.c (Vmake_pointer_invisible): New variable.
5595 (frame_make_pointer_invisible, frame_make_pointer_visible):
5596 New functions.
5597 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5598
5599 * frame.h: Declare frame_make_pointer_invisible and
5600 frame_make_pointer_visible.
5601 (struct frame): Add pointer_invisible.
5602
5603 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5604
5605 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5606 frame isn't visible.
5607 (xg_frame_resized): If width/height is -1, get size of window
5608 from X server.
5609
5610 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5611 for MapNotify.
5612
5613 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
5614 here or call change_frame_size. Just call flush_and_sync.
5615 (flush_and_sync): Reintroduce.
5616
5617 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
5618
5619 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
5620
5621 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5622 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5623
5624 * frame.h: Declare Qsticky.
5625
5626 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5627
5628 * nsfns.m (ns_frame_parm_handlers): Ditto.
5629
5630 * frame.c: Declare Qsticky.
5631 (frame_parms): Add sticky.
5632
5633 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5634
5635 * xterm.h: Declare x_set_sticky.
5636
5637 * xterm.c (x_set_sticky): New function.
5638
5639 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5640 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5641 xg_tool_bar_proxy_help_callback.
5642
5643 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5644
5645 * frame.c: Qmaximized is new.
5646 (x_set_frame_parameters): Do not handle fullscreen specially.
5647 Only set width and height if explicitly set.
5648 (x_set_fullscreen): Handle Qmaximized.
5649 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5650 (syms_of_frame): Initialize Qmaximized.
5651
5652 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5653 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
5654
5655 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
5656 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5657 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
5658 set gravity to NorthWestGravity when USE_GTK.
5659 (set_wm_state): New function.
5660 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
5661 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5662 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
5663 or the case when no window manager is running. That means remove calls
5664 to x_real_positions and x_fullscreen_adjust.
5665
5666 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5667 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5668 flush_and_sync.
5669 (xg_height_changed): New function.
5670 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
5671 and gtk_window_set_policy. Set frame gravity after parsing the
5672 geometry string.
5673 (xg_update_frame_menubar, free_frame_menubar)
5674 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5675 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5676 Remove calls to xg_frame_set_char_size.
5677
5678 2009-07-01 Kenichi Handa <handa@m17n.org>
5679
5680 * keyboard.c (decode_keyboard_code): New function.
5681 (tty_read_avail_input): Decode the input bytes if necessary.
5682
5683 * coding.c (setup_coding_system):
5684 Initialize coding->carryover_bytes to 0.
5685 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5686 use Qno_conversion.
5687
5688 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5689
5690 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5691
5692 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
5693
5694 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
5695
5696 2009-06-30 Jason Rumney <jasonr@gnu.org>
5697
5698 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5699 is already loaded.
5700 Set user model ID if supported (bug#1849).
5701
5702 2009-06-29 Jim Meyering <meyering@redhat.com>
5703
5704 Remove useless if-before-xfree test.
5705 * nsfont.m (nsfont_close): Remove useless test.
5706 * term.c (delete_tty): Likewise.
5707 * w32.c (system_process_attributes): Likewise.
5708 * w32font.c (w32font_close): Likewise.
5709 * xfaces.c (x_free_gc): Likewise.
5710 * xselect.c (buffer): Likewise.
5711
5712 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5713
5714 * process.c (send_process): Keep decoded string in a local
5715 variable and protect it from GC. (Bug#3521)
5716
5717 2009-06-28 Eli Zaretskii <eliz@gnu.org>
5718
5719 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5720 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5721
5722 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
5723
5724 * xdisp.c (start_display, handle_face_prop)
5725 (move_it_vertically_backward, cursor_row_fully_visible_p)
5726 (redisplay_window, try_window_id, produce_image_glyph):
5727 Delete some #ifdef-ed out code chunks that are now obsolete.
5728
5729 * xterm.c (x_update_window_begin, x_new_focus_frame)
5730 (x_scroll_bar_handle_click, handle_one_xevent)
5731 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5732 (x_make_frame_visible, x_make_frame_invisible)
5733 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5734 code chunks that are now obsolete.
5735
5736 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
5737
5738 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5739 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5740 for hours, when optimzation is enabled.
5741 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5742 (xd_read_message): Make them static.
5743
5744 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5745
5746 * term.c (turn_on_face): Allow simultaneously bold and dim
5747 terminal faces (Bug#3530).
5748
5749 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5752
5753 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5754 truncation glyphs (Bug#3686).
5755
5756 2009-06-27 Glenn Morris <rgm@gnu.org>
5757
5758 * m/pmax.h: Restore file, with only netbsd portions.
5759
5760 2009-06-26 David Reitter <david.reitter@gmail.com>
5761
5762 * nsterm.m (keydown): Avoid infinite loop.
5763
5764 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5765
5766 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5767 the arg FORCE_SYMBOL.
5768
5769 2009-06-25 Kenichi Handa <handa@m17n.org>
5770
5771 * fontset.c (fontset_find_font): When a usable rfont_def is found
5772 in a fallback font-group, make it the first element of the group.
5773
5774 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
5775
5776 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5777
5778 2009-06-24 Kenichi Handa <handa@m17n.org>
5779
5780 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5781 set for C.
5782 (fontset_font): Record the availability of a font for C both in
5783 the realized fontsets of the current one and the default one.
5784
5785 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5786
5787 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5788 conditional, it is always defined on AIX.
5789
5790 2009-06-23 Miles Bader <miles@gnu.org>
5791
5792 * window.c (Vrecenter_redisplay): New variable.
5793 (syms_of_window): Initialize it.
5794 (Qtty): New extern declaration.
5795 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5796
5797 2009-06-23 Jim Meyering <meyering@redhat.com>
5798
5799 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5800 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
5801 pointer dereferences are guaranteed to be valid.
5802
5803 2009-06-23 Kenichi Handa <handa@m17n.org>
5804
5805 * emacs.c (main): Call init_font ().
5806
5807 * font.h (Vfont_log): Extern it.
5808 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5809
5810 * font.c (font_sort_entities, font_list_entities)
5811 (font_matching_entity, font_open_entity)
5812 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5813 (Vfont_log): Delete static.
5814 (font_log_env_checked): Delete this variable.
5815 (font_add_log): Don't check font_log_env_checked.
5816 (font_deferred_log): Check Vfont_log.
5817 (init_font): New function.
5818
5819 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5820
5821 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5822
5823 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5824
5825 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5826
5827 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5828 (face_for_char): Don't call font_deferred_log here.
5829 (font_for_char): Likewise.
5830
5831 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
5832
5833 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5834 rather than its background_width for drawing the overline and
5835 underline (Bug#489).
5836
5837 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5838 rather than its background_width for drawing the overline and
5839 underline (Bug#489).
5840 (xg_default_icon_file): New variable.
5841 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5842 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
5843
5844 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5845 (load_overlay_strings): Remove externs.
5846 (fast_find_position): Function deleted.
5847 (mouse_face_from_buffer_pos): New function, based on
5848 fast_find_position. Correctly handle before-strings,
5849 display-strings, and after-strings (Bug#1220).
5850 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5851
5852 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5853
5854 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
5855 (move_it_in_display_line_to, move_it_in_display_line_to)
5856 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5857
5858 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5859
5860 * Branch for 23.1.
5861
5862 2009-06-21 Jason Rumney <jasonr@gnu.org>
5863
5864 * w32term.c (keyboard_codepage): New static variable.
5865 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5866 (w32_read_socket) [WM_CHAR]: Use it to decode character
5867 input (bug#3237).
5868 (w32_initialize): Initialize it.
5869 (codepage_for_locale): New function.
5870
5871 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
5872
5873 * process.c (status_message): Pass Faset index argument as a lisp
5874 object, so as to work with USE_LISP_UNION_TYPE.
5875
5876 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5877
5878 * coding.c (Ffind_coding_systems_region_internal):
5879 Cache checked characters.
5880
5881 2009-06-18 Kenichi Handa <handa@m17n.org>
5882
5883 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
5884
5885 2009-06-18 Andreas Schwab <aschwab@redhat.com>
5886
5887 * xdisp.c (redisplay_internal): Check that the frame is still
5888 live after redisplay of its windows.
5889 (redisplay_windows): Check that the window is still live.
5890
5891 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5892
5893 * coding.c (detect_coding_utf_16): Fix previous change.
5894
5895 2009-06-16 Kenichi Handa <handa@m17n.org>
5896
5897 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5898 UTF-16 by checking the dispersion of Eth and Oth bytes.
5899
5900 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5901
5902 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5903
5904 2009-06-15 Kenichi Handa <handa@m17n.org>
5905
5906 * process.c (status_message): Fix previous change. Be sure to
5907 decode a localized string.
5908
5909 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5910
5911 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5912 add comment explaining why.
5913
5914 2009-06-14 Sidney Markowitz <sidney@sidney.com>
5915
5916 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5917
5918 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5919
5920 * nsfont.m (ns_attribute_value): Remove.
5921 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5922 (ns_has_attribute): Shrink the normal range.
5923 (ns_findfonts): Don't worry about requested spec in determining
5924 need for synthItal.
5925 (ns_get_covering_families): Retain scriptToFamilies.
5926
5927 2009-06-14 Seiji Zenitani <zenitani@mac.com>
5928
5929 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5930
5931 2009-06-11 Kenichi Handa <handa@m17n.org>
5932
5933 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5934 overhang for the static composition case.
5935
5936 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5937
5938 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5939 overhang for the automatic composition case.
5940
5941 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5942 composition case.
5943
5944 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
5945
5946 * xdisp.c (get_next_display_element): When handling wrap-prefix
5947 and line-prefix, treat \n as a control character (bug#3502).
5948
5949 2009-06-10 Kenichi Handa <handa@m17n.org>
5950
5951 * font.c (font_parse_family_registry): Fix for one-char foundry.
5952 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5953
5954 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5955
5956 * process.c (status_message): Fix handling of multibyte signal
5957 string (Bug#3499).
5958
5959 2009-06-09 Jim Meyering <meyering@redhat.com>
5960
5961 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5962 color name is missing.
5963
5964 2009-06-09 Kenichi Handa <handa@m17n.org>
5965
5966 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5967 FROM-CODE and TO-CODE are codepoints of CHARSET.
5968
5969 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5970
5971 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5972
5973 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5974
5975 Changes to support :script/:lang/:otf in NS font driver.
5976 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5977 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5978 indicate not part of font driver interface, and change callers.
5979 (ns_get_family): Remove pointless null check.
5980 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5981 ns_spec_to_descriptor, ns_descriptor_to_entity.
5982 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5983 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5984 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5985 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5986 (ns_get_req_script, ns_accumulate_script_ranges)
5987 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5988 New functions.
5989 (nsfont_list, nsfont_match): Use ns_findfonts.
5990 (nsfont_open): Use font descriptor instead of traits.
5991 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5992 (dump_glyphstring): Rename to ns_dump_glyphstring.
5993
5994 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5995
5996 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5997
5998 * fontset.c (fontset_from_font): Remove NS-specific code.
5999
6000 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
6001
6002 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6003 nonactive windows.
6004
6005 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
6006
6007 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
6008
6009 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6010
6011 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6012
6013 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
6014
6015 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6016 account for the overflowing of newlines into the last glyph on the
6017 display line (Bug#3482).
6018
6019 2009-06-05 David Reitter <david.reitter@gmail.com>
6020
6021 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6022 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
6023 Fns_selection_exists_p, Fns_selection_owner_p.
6024
6025 2009-06-03 Jason Rumney <jasonr@gnu.org>
6026
6027 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6028 available. (Bug#3379)
6029
6030 2009-05-29 Kenichi Handa <handa@m17n.org>
6031
6032 * coding.c (get_translation_table):
6033 Check Venable_character_translation.
6034
6035 2009-05-26 David Reitter <david.reitter@gmail.com>
6036
6037 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6038 (x_make_frame_visible): Move frame to front rather than calling
6039 ns_raise_frame().
6040 (keyDown:): Do not swallow events that aren't re-sent if frame
6041 isn't key window.
6042 (drawRect:): Do not set visibility/iconified flags because
6043 drawRect may be called by NSView even if the frame is hidden.
6044
6045 * nsfns.m (Fx_create_frame): Follow other ports in
6046 determining visibility; default to t. Ensure async_visible is set.
6047
6048 2009-05-23 Eli Zaretskii <eliz@gnu.org>
6049
6050 * dired.c (Ffile_attributes): Doc fix.
6051
6052 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
6053
6054 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6055
6056 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6057
6058 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6059 and xfont_scratch_props.
6060 (syms_of_xfont): Do it here instead.
6061 (xfont_find_ccl_program): Delete, unused.
6062 (xfont_open): Delete unused var `i'.
6063
6064 2009-05-21 Kenichi Handa <handa@m17n.org>
6065
6066 * fontset.c (Qlatin): Don't make it static.
6067
6068 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6069 New functions.
6070 (xfont_scripts_cache, xfont_scratch_props): New variables.
6071 (Qlatin, Vscalable_fonts_allowed): Extern it.
6072 (xfont_list_pattern): Argument changed. Callers changed.
6073 Check Vscalable_fonts_allowed. Check the support of a script.
6074 (xfont_list): Don't reject a font spec with :script property.
6075 (xfont_has_char): Fix setting of encoding.
6076 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6077 xfont_scratch_props.
6078
6079 2009-05-19 Kenichi Handa <handa@m17n.org>
6080
6081 * font.c (font_sort_entities): Rename from font_sort_entites.
6082 Callers changed.
6083
6084 2009-05-18 Kenichi Handa <handa@m17n.org>
6085
6086 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6087
6088 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6089
6090 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6091 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6092
6093 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6094
6095 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6096 (x_delete_terminal): Dissociate resource database from display and
6097 then call XrmDestroyDatabase before closing display.
6098
6099 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6100
6101 * nsterm.m (ns_read_socket): Remove unused variable.
6102 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6103 whether selected frame is viable before raising it (based on patch
6104 by David Reitter), and improve commentary.
6105 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
6106
6107 2009-05-15 Kenichi Handa <handa@m17n.org>
6108
6109 * font.c (Ffont_spec): Check arguments.
6110
6111 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
6112
6113 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6114 weight when testing attributes (Bug#3282).
6115
6116 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6117
6118 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6119 what we expect to get in the next ConfigureNotify event.
6120
6121 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6122 before Xft one (Bug#1696).
6123
6124 2009-05-07 David Reitter <david.reitter@gmail.com>
6125
6126 * nsfns.m (Fx_display_planes): Compute bitplanes using
6127 NSBitsPerPixelFromDepth (Bug#3207).
6128
6129 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
6130
6131 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6132
6133 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
6134
6135 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6136
6137 2009-05-07 David Reitter <david.reitter@gmail.com>
6138
6139 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6140 Respect mouse face background.
6141
6142 2009-05-07 David Reitter <david.reitter@gmail.com>
6143
6144 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6145 Mouse movement/highlight: bracket drawing operations
6146 in ns_update_begin and ns_update_end.
6147
6148 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6149
6150 * nsfns.m (ns_get_screen): Rewrite.
6151 Don't presume selected-frame is of type `ns'.
6152
6153 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6154 all drivers.
6155
6156 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6157
6158 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6159
6160 * keyboard.h (add_user_signal): Fix typo in extern.
6161
6162 * lisp.h (add_user_signal): Remove extern.
6163
6164 * unexelf.c (unexec): Consider a section to precede the .bss section
6165 if its addresses overlap that of .bss.
6166 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6167 instead of dumping process.
6168
6169 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6170
6171 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6172
6173 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6174
6175 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6176
6177 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6178
6179 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6180 any statements.
6181
6182 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6183
6184 * process.c (read_process_output): Make sure the current buffer is
6185 always restored.
6186
6187 * coding.c (record_conversion_result): Don't modify
6188 Vlast_code_conversion_error for successful result.
6189 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6190
6191 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6192
6193 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
6194 (load_charset_map): Remove unnecessary code.
6195
6196 2009-04-30 David Reitter <david.reitter@gmail.com>
6197
6198 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
6199 through f24.
6200
6201 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
6202
6203 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6204
6205 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6206 face_at_buffer_position.
6207 (face_before_or_after_it_pos, get_next_display_element)
6208 (note_mouse_highlight): Update face_at_buffer_position call.
6209
6210 * term.c (term_mouse_highlight):
6211 * msdos.c (IT_note_mouse_highlight):
6212 * fontset.c (Finternal_char_font):
6213 * font.c (font_at, font_range): Update face_at_buffer_position call.
6214
6215 * dispextern.h (face_at_buffer_position): Update prototype.
6216
6217 2009-04-30 Kenichi Handa <handa@m17n.org>
6218
6219 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
6220
6221 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6222
6223 * callproc.c (Fcall_process): Fix GC protection. Make sure
6224 current buffer is always restored.
6225
6226 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6227
6228 * atimer.c (init_atimer): Also clear stopped_atimers.
6229
6230 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6231
6232 * process.c (create_process): Clean up merger residues of
6233 2008-07-17 change.
6234
6235 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
6236
6237 * lread.c (Vread_circle): New variable.
6238 (read1): Disable recursive read if Vread_circle is nil.
6239
6240 2009-04-29 Kenichi Handa <handa@m17n.org>
6241
6242 * fontset.h (set_default_ascii_font): Delete extern.
6243
6244 * fontset.c (set_default_ascii_font): Delete this unused function.
6245
6246 * frame.c (x_set_font): When ARG is a font-object, check if the
6247 font-object matches with the ASCII font-spec of the frame's
6248 fontset. If not, create a new fontset for the frame. (Bug #3075)
6249
6250 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6251
6252 * fns.c (Flocale_info): Protect vector from GC during decoding.
6253
6254 * process.c (Fstart_process): Protect argv strings from GC during
6255 encoding.
6256
6257 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6258
6259 * sysdep.c: Include <ctype.h>.
6260
6261 2009-04-27 David Reitter <david.reitter@gmail.com>
6262
6263 * nsfont.m (nsfont_open): Remove unused variable shrink.
6264 Remove commented-out code.
6265
6266 2009-04-26 Johan Bockgård <bojohan@gnu.org>
6267
6268 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6269
6270 2009-04-25 Jason Rumney <jasonr@gnu.org>
6271
6272 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6273
6274 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6275
6276 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6277 Swap bytes in short integer if fringe bitmap width > 8.
6278
6279 2009-04-23 Kenichi Handa <handa@m17n.org>
6280
6281 * xfaces.c (Fx_list_fonts): If a font size is specified in
6282 PATTERN, set it in returned scalable fonts.
6283
6284 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
6285
6286 * keyboard.c (Fset_input_meta_mode): Doc fix.
6287
6288 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6289
6290 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
6291
6292 * coding.c (Fterminal_coding_system): Doc fix.
6293
6294 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6295 (Fx_display_pixel_height, Fx_display_planes)
6296 (Fx_display_color_cells, Fx_server_max_request_size)
6297 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6298 (Fx_display_mm_height, Fx_display_mm_width)
6299 (Fx_display_backing_store, Fx_display_visual_class)
6300 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6301 Doc fixes, replacing "terminal id" with "terminal object".
6302 (check_x_display_info): Handle terminal objects instead of
6303 terminal ids.
6304
6305 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6306 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
6307 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6308 Doc fixes, replacing "terminal id" with "terminal object".
6309
6310 2009-04-21 Kenichi Handa <handa@m17n.org>
6311
6312 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
6313 (font_score): Check AVGWIDTH too.
6314
6315 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6316 worst case.
6317 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6318 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
6319
6320 2009-04-19 Jason Rumney <jasonr@gnu.org>
6321
6322 The following changes fix Bug#3005 for wide glyphs on each platform,
6323 without reintroducing Bug#1258 for stretch glyphs.
6324
6325 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6326 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6327 get_phys_cursor_geometry.
6328
6329 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
6330 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6331 using get_phys_cursor_geometry.
6332
6333 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6334 correctly calculated.
6335
6336 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6337
6338 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6339 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
6340 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6341 is deprecated.
6342
6343 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6344
6345 * font.c (font_put_frame_data): Use xfree instead of free.
6346
6347 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
6348
6349 * w32font.c (Qja, Qko): Remove declarations.
6350 (syms_of_w32font): Don't DEFSYM them.
6351
6352 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
6353
6354 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6355
6356 * font.h (Qja, Qko): Extern them.
6357
6358 * ftfont.c (Qja, Qko): Remove declarations.
6359
6360 * xfont.c (Qja, Qko): Remove declarations.
6361
6362 2009-04-17 Kenichi Handa <handa@m17n.org>
6363
6364 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6365 string from a vector to handle Latin-1 characters correctly.
6366
6367 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6368 entity even if the cache hits.
6369
6370 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6371
6372 * search.c (boyer_moore): Use zero as marker value for a possible
6373 match instead of depending on overflow behavior. (Bug#2844)
6374
6375 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6376 * lisp.h: Adjust prototypes.
6377
6378 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
6379
6380 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6381 change (Bug#3003).
6382
6383 2009-04-16 Kenichi Handa <handa@m17n.org>
6384
6385 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
6386
6387 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6388 adstyle.
6389
6390 * ftfont.c (Qja, Qko): Don't make them static.
6391 (enum ftfont_cache_for): New enum.
6392 (fc_charset_table): Undo the previous change.
6393 (ftfont_get_latin1_charset): Delete it.
6394 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6395 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
6396 non-scarable font, try to get AVERAGE_WIDTH.
6397 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6398 Change ft_face_cache from a list of a hash-table. Don't check
6399 `ja' and `ko' adstyle here.
6400 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6401 FTFONT_CACHE_FOR_CHARET.
6402 (ftfont_get_charset): Undo the previous change.
6403 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
6404 (ftfont_close): Likewise.
6405 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6406
6407 * font.c (font_sort_entites): Change the meaning of the arg
6408 BEST-ONLY. Don't optimize for VEC of lenght 1.
6409 (font_select_entity): Just return the value of font_sort_entites.
6410
6411 * xfaces.c (merge_face_vectors): Reflect font properties in
6412 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6413 font_clear_prop if a face attribute doesn't change.
6414
6415 * charset.h (charset_ksc5601): Extern it.
6416
6417 * charset.c (charset_ksc5601): New variable.
6418 (Fdefine_charset_internal): Set charset_ksc5601.
6419 (init_charset_once): Initialize charset_ksc5601 to -1.
6420
6421 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6422
6423 * fileio.c (history_delete_duplicates): Remove unused declaration.
6424
6425 * callint.c (history_delete_duplicates): New declaration.
6426 (Fcall_interactively): Remove command history duplicates when
6427 history_delete_duplicates is true.
6428
6429 2009-04-14 Eli Zaretskii <eliz@gnu.org>
6430
6431 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6432
6433 2009-04-14 Kenichi Handa <handa@m17n.org>
6434
6435 * font.c (Ffont_info): Fix docstring. Fix the second element of
6436 the returned value (bug#2949).
6437
6438 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
6439
6440 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6441
6442 2009-04-14 Kenichi Handa <handa@m17n.org>
6443
6444 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6445 encoding charset is ascii_compatible.
6446
6447 * charset.c (Fdefine_charset_internal): Make charset
6448 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6449 code_offset is 0, and covers all ASCII characters.
6450
6451 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6452
6453 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6454 (ns_string_to_pasteboard_internal):
6455 * nsmenu.m (process_dialog):
6456 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6457 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6458 * lisp.h (Fx_load_color_file): Declare.
6459
6460 2009-04-13 Kenichi Handa <handa@m17n.org>
6461
6462 * font.c (font_delete_unmatched): Preserve the order of list elements.
6463 (font_select_entity): Suppress the code to optimize for the same
6464 kind of fonts.
6465 (font_load_for_lface): Get a font that supports at least ASCII
6466 characters.
6467
6468 * ftfont.c (Qja, Qko): New variables.
6469 (fc_charset_table): Delete uniquifier data for iso8859-1.
6470 (ftfont_get_latin1_charset): New function.
6471 (get_adstyle_property): New function.
6472 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6473 bitmap fonts.
6474 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6475 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6476 `ko' or `ja'.
6477 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
6478 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
6479 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6480 property.
6481 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6482 (syms_of_ftfont): DEFSYM Qja and Qko.
6483
6484 2009-04-09 Kenichi Handa <handa@m17n.org>
6485
6486 * charset.c (map_charset_chars): For a charset of `superset'
6487 method, fix calculation of code range.
6488
6489 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6490 from the list of extra properties.
6491 (font_clear_prop): Be sure to delete `:name' font property.
6492
6493 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6494
6495 * dispnew.c (redraw_overlapping_rows): Fix detection of
6496 overlapping for topmost and bottommost rows.
6497
6498 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
6499
6500 2009-04-06 Jason Rumney <jasonr@gnu.org>
6501
6502 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6503
6504 2009-04-06 Kenichi Handa <handa@m17n.org>
6505
6506 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6507
6508 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6509
6510 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6511
6512 * ftfont.c (ftfont_open): Fix checking of the return value of
6513 FT_Load_Char. Fix setting font->underline_thickness.
6514
6515 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
6516
6517 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6518 (Fterminal_parameters, Fterminal_parameter)
6519 (Fset_terminal_parameter): In doc string, refer to terminal
6520 objects rather than terminal ids.
6521
6522 2009-04-04 Eli Zaretskii <eliz@gnu.org>
6523
6524 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6525 ret_lim_data. (Bug#2867)
6526
6527 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
6528
6529 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6530 so they don't get wider than the window, matching 2006-01-23
6531 change to the partner function in xdisp.c (Bug#2800).
6532
6533 2009-04-03 Kenichi Handa <handa@m17n.org>
6534
6535 * print.c (print_object): Make each lowest sub_char_table start a
6536 new line (Bug#2866).
6537
6538 2009-04-02 Kenichi Handa <handa@m17n.org>
6539
6540 * fontset.c (fontset_font): Record no-font when a fontset
6541 explicitly tells not to try another font-specs.
6542
6543 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6544
6545 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6546
6547 2009-03-30 Kenichi Handa <handa@m17n.org>
6548
6549 * fontset.c (fontset_from_font): Specify only registry in a
6550 font-spec for all characters supported by that registry.
6551
6552 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6553 even if HAVE_M17N_FLT is not defined.
6554
6555 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6556
6557 * ftfont.c: Conditionalize prototyping and use of
6558 ftfont_variation_glyphs.
6559
6560 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6561
6562 * frame.c (delete_frame): Work around compiler bug.
6563
6564 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6565 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6566 Some more EMACS_INT.
6567 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6568
6569 * xdisp.c (dump_glyph): Fix typo.
6570
6571 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6572 (adjust_markers_gap_motion, adjust_markers_for_delete)
6573 (adjust_markers_for_insert, adjust_point)
6574 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6575 (make_gap, copy_text, count_size_as_multibyte, insert)
6576 (insert_and_inherit, insert_before_markers)
6577 (insert_before_markers_and_inherit, insert_1)
6578 (count_combining_before, count_combining_after, insert_1_both)
6579 (insert_from_string, insert_from_string_before_markers)
6580 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6581 (insert_from_buffer_1, adjust_after_replace)
6582 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6583 (replace_range_2, del_range, del_range_1, del_range_byte)
6584 (del_range_both, del_range_2, modify_region)
6585 (prepare_to_modify_buffer, signal_before_change)
6586 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6587 for buffer positions and sizes.
6588 * lisp.h: Adjust prototypes accordingly.
6589
6590 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6591 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6592 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6593
6594 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6595
6596 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6597
6598 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6599 lines and columns so we keep the same pixel height and width.
6600
6601 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6602 the property _NET_WM_STATE has changed.
6603 (x_handle_net_wm_state): New function to update frame parameter
6604 fullscreen.
6605 (x_term_init): Initialize atoms for _NET_WM_STATE.
6606
6607 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6608
6609 2009-03-27 Kevin Ryde <user42@zip.com.au>
6610
6611 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6612 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6613 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6614 (Fgpm_mouse_stop): Pass that new parameter.
6615 * termhooks.h (close_gpm): Adjust prototype.
6616
6617 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6618
6619 * lisp.h (Fx_focus_frame): Declare.
6620
6621 * callint.c (Fcall_interactively): For '^' just delegate the work to
6622 handle-shift-selection.
6623 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6624
6625 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
6626
6627 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6628
6629 * data.c (Qinteractive_form): New variable.
6630 (Finteractive_form): Use it.
6631
6632 * eval.c (Fcommandp): Use Qinteractive_form.
6633
6634 2009-03-24 Jason Rumney <jasonr@gnu.org>
6635
6636 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6637 Calculate total size precisely. Decode environment variables
6638 before substituting. (Bug#38)
6639
6640 2009-03-24 Kenichi Handa <handa@m17n.org>
6641
6642 * font.c (find_font_encoding): Return Qnil for unsupported
6643 encoding (Bug#2722).
6644
6645 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6646
6647 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6648 that gdpy is set.
6649
6650 2009-03-22 Alan Mackenzie <acm@muc.de>
6651
6652 * callint.c (Finteractive): Clarify the doc string - even
6653 promptless elements need \n separators.
6654
6655 2009-03-22 Jason Rumney <jasonr@gnu.org>
6656
6657 * w32term.c (syms_of_w32term): Doc fix for
6658 x-use-underline-position-properties.
6659
6660 2009-03-21 Eli Zaretskii <eliz@gnu.org>
6661
6662 * w32.c (getpwuid): Change argument type to unsigned.
6663 (struct w32_id): Change type of `rid' member to unsigned.
6664 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6665 argument ID to unsigned. All callers changed.
6666 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6667
6668 2009-03-20 Eli Zaretskii <eliz@gnu.org>
6669
6670 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6671 negative, produce a float value.
6672
6673 * dired.c (make_uid, make_gid): New functions.
6674 (Ffile_attributes): Use them to avoid negative UID and GID.
6675
6676 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
6677
6678 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6679 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6680 Fix typos in docstrings.
6681
6682 2009-03-19 Kenichi Handa <handa@m17n.org>
6683
6684 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
6685 changed, use font_load_for_lface to get a new font object.
6686 Call free_realized_fontset after handling ASCII font change.
6687
6688 * frame.c (x_set_font): Handle the case that ARG is a cons.
6689
6690 2009-03-19 Glenn Morris <rgm@gnu.org>
6691
6692 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6693
6694 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
6695
6696 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6697
6698 2009-03-19 Kenichi Handa <handa@m17n.org>
6699
6700 * charset.c (load_charset_map_from_file): When a mapfile can't be
6701 loaded, signal an error.
6702
6703 2009-03-18 Eli Zaretskii <eliz@gnu.org>
6704
6705 * dired.c (Ffile_attributes): Make sure UID and GID are always
6706 positive, even if the value is too large for a positive EMACS_INT.
6707 Doc fix.
6708
6709 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6710
6711 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6712
6713 * xmenu.c (xdialog_show): Move Fredisplay call ...
6714 (Fx_popup_dialog): ... here.
6715
6716 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6717
6718 * dired.c (file_name_completion): Disable the first optimization just
6719 installed, since it is not implemented correctly.
6720
6721 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6722
6723 * dired.c (file_name_completion): Check completion-ignored-extensions
6724 only if the entry can affect bestmatch.
6725 Stop the search early, as Ftry_completion already does.
6726
6727 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
6728
6729 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
6730
6731 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
6732
6733 * keyboard.c (parse_menu_item): Don't display remappings as menu
6734 equivalent bindings (Bug#788).
6735
6736 2009-03-15 Jason Rumney <jasonr@gnu.org>
6737
6738 * w32term.h (WM_EMACS_PAINT): New message.
6739 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6740 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6741 before passing to lisp thread. (Bug#950)
6742
6743 2009-03-14 David Reitter <david.reitter@gmail.com>
6744
6745 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6746 variable as it was never reset.
6747 (ns_term_init): Remove initialization of Lisp-settable defaults
6748 and ns_expand_space.
6749 (-setPanelFromDefaultValues): Remove ns_expand_space.
6750 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6751 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
6752 i.e. no additional spacing, similar to Carbon port.
6753
6754 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6755 * nsfns.m (ns-popup-prefs-panel): Remove.
6756
6757 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6758
6759 * sound.c (alsa_configure): Remove call to deprecated
6760 snd_pcm_sw_params_set_xfer_align.
6761
6762 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
6763
6764 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6765 after clicking in a detached tool bar.
6766 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6767
6768 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6769
6770 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6771 int/Lisp_Object mixup).
6772
6773 2009-03-13 Kenichi Handa <handa@m17n.org>
6774
6775 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
6776 Handle NAME nil and t correctly. Callers changed.
6777 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6778 (set_fontset_font): Change ARG to a vector. Handle range_list in
6779 ARG correctly.
6780 (Fset_fontset_font): Fix the case that TARGET is both a script
6781 name and charset name. Adjust the arg to set_fontset_font for
6782 the above change.
6783 (fontset_from_font): Fix previous change.
6784 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
6785 entry. If FONTSET is the default fontset, don't set the extra
6786 slot of the returning char-table.
6787
6788 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
6789
6790 * nsfns.m (Fx_close_connection): Doc fix.
6791 (Fns_do_applescript): Reflow docstring.
6792 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6793 (Fx_display_pixel_width, Fx_display_pixel_height)
6794 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6795 Fix typos in docstrings.
6796 (Fns_set_alpha): Fix typos in error messages.
6797
6798 2009-03-12 David Reitter <david.reitter@gmail.com>
6799
6800 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
6801 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6802 were used for such events.
6803
6804 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6805 (toggleToolbar, performDragOperation, runHelp): Use it.
6806
6807 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
6808 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6809
6810 2009-03-11 Kenichi Handa <handa@m17n.org>
6811
6812 * font.h (font_open_by_spec): Extern it.
6813
6814 * font.c (font_open_by_spec): New function.
6815 (font_open_by_name): Use font_open_by_spec.
6816
6817 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6818 fontset of the frame.
6819
6820 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6821 modify the default font of frames that use this fontset.
6822 (num_auto_fontsets): New variable.
6823 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6824 name. Be sure to set FONTSET_ASCII to the correct font name.
6825 (update_auto_fontset_alist): New function.
6826
6827 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
6828
6829 * makefile.w32-in: Update dependencies.
6830
6831 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6832
6833 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6834
6835 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6836
6837 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6838
6839 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
6840
6841 * lread.c (Feval_buffer): Doc fix.
6842
6843 2009-03-09 Kenichi Handa <handa@m17n.org>
6844
6845 * charset.c (Qfile_name_handler_alist): Extern it.
6846 (load_charset_map_from_file): Temporarily bind
6847 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6848
6849 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
6850
6851 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6852 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
6853
6854 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6855
6856 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6857 (x_set_window_size): Change back to calculated method of setting
6858 toolbar height under Cocoa. (Bug#2546)
6859 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6860 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6861
6862 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6863
6864 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6865 accelerator in parens under GNUstep.
6866
6867 2009-03-06 Kenichi Handa <handa@m17n.org>
6868
6869 These changes are to detect incorrect composition sequence without
6870 looking ahead the source. (Bug#2370)
6871
6872 * coding.h: Include "composite.h".
6873 (enum compisition_state): New enum.
6874 (struct compisition_status): New struct.
6875 (struct iso_2022_spec): New member cmp_status.
6876 (struct emacs_mule_spec): New struct.
6877 (struct coding_system): New members ctext_extended_segment_len and
6878 embedded_utf_8. Change the union member
6879 spec.emacs_mule_full_support to spec.emacs_mule.
6880
6881 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6882 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
6883 (MAX_ANNOTATION_LENGTH): Define to 5.
6884 (ADD_COMPOSITION_DATA): New arg nbytes.
6885 (emacs_mule_char): New arg cmp_status.
6886 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6887 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6888 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6889 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6890 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6891 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6892 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6893 (EMACS_MULE_COMPOSITION_END): New macro.
6894 (emacs_mule_finish_composition): New function.
6895 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6896 (decode_coding_emacs_mule): Avoid long looking ahead while
6897 handling composition.
6898 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6899 (ENCODE_COMPOSITION_RULE): New macro.
6900 (finish_composition): New function.
6901 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6902 (DECODE_COMPOSITION_START): New implementation.
6903 (DECODE_COMPOSITION_END): Likewise.
6904 (STORE_COMPOSITION_RULE): New macro.
6905 (decode_coding_iso_2022): Avoid long looking ahead while handling
6906 composition, CTEXT extended segment, and embedded UTF-8.
6907 (setup_coding_system): For a coding of type iso-2022, reset
6908 CODING_ISO_EXTSEGMENT_LEN (coding) and
6909 CODING_ISO_EMBEDDED_UTF_8 (coding).
6910 (get_translation): Delete arguments last_block, from_nchars,
6911 to_nchars. Callers changed.
6912 (produce_chars): Don't modify charbuf. Adjusted for the change of
6913 get_translation.
6914 (produce_composition): Adjust for the new annotation sequence.
6915 (handle_composition_annotation): Likewise.
6916 (consume_chars): Adjust for the change of get_translation.
6917
6918 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6919
6920 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
6921
6922 2009-03-05 Kenichi Handa <handa@m17n.org>
6923
6924 * font.c (font_select_entity): New function.
6925 (font_find_for_lface): Use font_select_entity to select a font.
6926
6927 * fontset.c (fontset_find_font): If a font found without
6928 restricting to the characters C doesn't support C, try to find a
6929 font with C restriction.
6930
6931 2009-03-04 Nikolaj Schumacher <me@nschum.de>
6932
6933 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
6934
6935 2009-03-04 Jason Rumney <jasonr@gnu.org>
6936
6937 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
6938 characters that have already been read. (Bug#2569)
6939
6940 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6941 Log an error message if check_image_size failed.
6942 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
6943 (gs_load): Mention max-image-size in size error message. (Bug#2560)
6944
6945 2009-03-02 Eli Zaretskii <eliz@gnu.org>
6946
6947 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6948 when decoding process output.
6949
6950 2009-03-01 Richard M Stallman <rms@gnu.org>
6951
6952 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6953
6954 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6955
6956 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6957
6958 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6959 (decode_coding_emacs_mule, decode_coding_iso_2022)
6960 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6961 (decode_coding_raw_text, decode_coding_charset)
6962 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6963 Honor inhibit-eol-conversion. (Bug #2186)
6964
6965 2009-02-28 Jason Rumney <jasonr@gnu.org>
6966
6967 * coding.c (detect_coding_charset): If not checking latin extra,
6968 fail on characters between 0x80 and 0xA0. (Bug#2354)
6969
6970 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6971
6972 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
6973 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
6974
6975 2009-02-27 Glenn Morris <rgm@gnu.org>
6976
6977 * callint.c (Finteractive): Doc fix.
6978
6979 2009-02-27 Kenichi Handa <handa@m17n.org>
6980
6981 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6982
6983 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
6984
6985 * font.c (font_style_to_value): Set value for unknown symbols to
6986 100 instead of 255.
6987 (weight_table, slant_table, width_table): Treat "unspecified" as
6988 the default value.
6989
6990 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
6991
6992 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6993
6994 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
6995
6996 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6997 error as soon as a recursive load is detected.
6998
6999 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7000
7001 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7002 before caching.
7003
7004 2009-02-24 Kenichi Handa <handa@m17n.org>
7005
7006 * fontset.c (fontset_find_font): Fix the condition for checking
7007 unavailable font.
7008
7009 2009-02-24 Glenn Morris <rgm@gnu.org>
7010
7011 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7012 whitespace that confuses documentation.
7013
7014 2009-02-23 Miles Bader <miles@gnu.org>
7015
7016 * process.c (Flist_system_processes, Fprocess_attributes)
7017 (syms_of_process): Rename `system-process-attributes' to
7018 `process-attributes'.
7019
7020 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7021
7022 * coding.h (struct coding_system): Make safe_charsets a pointer to
7023 unsigned char.
7024 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7025 being 255.
7026 (SAFE_CHARSET_P): Likewise.
7027 (setup_iso_safe_charsets): Properly setup safe_charsets.
7028 (Fdefine_coding_system_internal): Likewise.
7029 (setup_coding_system): Likewise. Remove unneeded casts.
7030 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7031 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7032 unneeded casts.
7033
7034 * insdel.c (del_range_2): Don't modify gap contents when called
7035 from decode_coding_object. (Bug#1809)
7036
7037 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
7038
7039 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7040 Qfont_object.
7041 (Ftype_of): Recognize font objects.
7042
7043 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7044
7045 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7046 moved to data.c.
7047
7048 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7049
7050 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7051 async_iconified. Based on a patch by Christian Lynbech
7052 <christian.lynbech@tieto.com>.
7053 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7054
7055 2009-02-20 Glenn Morris <rgm@gnu.org>
7056
7057 * syntax.c (Fskip_chars_forward): Fix doc typo.
7058
7059 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
7060
7061 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7062
7063 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
7064
7065 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7066
7067 2009-02-19 Kenichi Handa <handa@m17n.org>
7068
7069 * coding.c (detect_coding): Preserve coding->mode.
7070 Don't overflow coding->carryover. (Bug#2370)
7071
7072 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7073
7074 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7075
7076 2009-02-18 Kenichi Handa <handa@m17n.org>
7077
7078 * font.c (font_check_otf_features): Fix handling of `nil' element.
7079 (Ffont_spec): Describe :lang and :otf in the docstring.
7080
7081 2009-02-16 Andreas Schwab <schwab@suse.de>
7082
7083 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7084 string.
7085
7086 2009-02-16 Kenichi Handa <handa@m17n.org>
7087
7088 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
7089 (Bug#1723)
7090
7091 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
7092
7093 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
7094
7095 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7096 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7097
7098 2009-02-14 Eli Zaretskii <eliz@gnu.org>
7099
7100 * msdos.c (MAX_SCREEN_BUF): New macro.
7101 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7102 Encode the entire run of glyphs sharing the same face, instead of
7103 doing that one glyph at a time (fixes a bug with displaying
7104 double-size characters).
7105
7106 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7107
7108 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7109
7110 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7111 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
7112 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
7113
7114 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
7115 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
7116
7117 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7118
7119 * keyboard.c (adjust_point_for_property): Allow stopping between two
7120 invisible areas.
7121
7122 2009-02-12 Jason Rumney <jasonr@gnu.org>
7123
7124 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7125 (add_font_entity_to_list): Call check_face_name even when family
7126 is unspecified.
7127
7128 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7129 Release DC when finished. Use NULL window to refer to desktop.
7130 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
7131
7132 * w32font.c (add_font_entity_to_list): Fix check for substituted
7133 raster fonts. (Bug#2219)
7134
7135 2009-02-12 Kenichi Handa <handa@m17n.org>
7136
7137 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7138 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7139 (autocmp_chars): Use fast_looking_at. Don't compose more
7140 characters than MAX_COMPOSITION_COMPONENTS.
7141 (find_automatic_composition): While looking forward and backward,
7142 check static composition. Fix where to stop looking forward.
7143 (composition_adjust_point): Fix checking of static composition.
7144 (Fcomposition_get_gstring): Pay attention to
7145 MAX_COMPOSITION_COMPONENTS.
7146
7147 * lisp.h (fast_looking_at): Extern it.
7148
7149 * search.c (fast_looking_at): New function.
7150
7151 * term.c (encode_terminal_code): Adjust for the change of
7152 <struct glyph>.u.cmp.to.
7153 (append_composite_glyph): Likewise.
7154
7155 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
7156 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7157 composition.
7158 (append_composite_glyph): Adjust for the change of
7159 <strcut glyph>.u.cmp.to.
7160
7161 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
7162
7163 * casetab.c (init_casetab_once):
7164 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7165 * font.c (font_update_lface):
7166 * fontset.c (Fnew_fontset):
7167 * ftfont.c (ftfont_drive_otf):
7168 * xfont.c (xfont_open):
7169 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7170
7171 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7172
7173 * fileio.c (Fwrite_region): !NILP -> CONSP.
7174
7175 2009-02-10 Andreas Schwab <schwab@suse.de>
7176
7177 * process.c (send_process): Properly relocate pointer into data
7178 when using encoded data. (Bug#2272)
7179
7180 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7181
7182 * coding.c (detect_coding_charset): Fix previous change.
7183
7184 2009-02-08 Jason Rumney <jasonr@gnu.org>
7185
7186 * w32fns.c (w32_hide_hourglass): Handle case where frame
7187 disappeared while hourglass was displayed. (Bug #2193)
7188
7189 2009-02-07 Andreas Schwab <schwab@suse.de>
7190
7191 * unexelf.c (unexec): Fix error message.
7192
7193 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7194
7195 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
7196 when modal window is active. (Bug #2152)
7197 (applicationShouldTerminate:): Remove now-unneeded while loop
7198 around NSRunAlertPanel.
7199
7200 * nsmenu.m (popupSession): New file-global variable.
7201 (pop_down_menu): End the popupSession before closing dialog.
7202 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7203 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7204 don't query NSApp for events (just sleep instead).
7205
7206 2009-02-07 Eli Zaretskii <eliz@gnu.org>
7207
7208 * coding.c (syms_of_coding) <translation-table-for-input>:
7209 Modify doc string to discourage use for character code unification.
7210
7211 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7212
7213 * atimer.c (run_timers): Update pending_atimers.
7214
7215 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
7216
7217 * image.c (svg_load_image): Fix last change.
7218
7219 * xfns.c (Fx_create_frame): Signal an error if no font is
7220 found (Bug#2147).
7221
7222 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
7223
7224 * character.c (syms_of_character) <script-representative-chars>:
7225 Fix typo in docstring.
7226
7227 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7228
7229 * nsmenu.m (pop_down_menu): New function.
7230 (ns_popup_dialog): Call it on unwind.
7231 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7232 call timer_check() (Bug#2154).
7233 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7234 handling_signal is set.
7235 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7236
7237 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
7238
7239 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7240
7241 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7242
7243 * keyboard.c (poll_for_input_1, handle_async_input):
7244 Set handling_signal under HAVE_NS.
7245
7246 2009-02-04 Glenn Morris <rgm@gnu.org>
7247
7248 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7249
7250 2009-02-04 Kenichi Handa <handa@m17n.org>
7251
7252 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7253
7254 * charset.c (Fchar_charset): New optional arg restriction.
7255
7256 * coding.h (coding_system_charset_list): Extern it.
7257
7258 * coding.c (coding_system_charset_list): New function.
7259
7260 * composite.c: Include coding.h and termhooks.h.
7261 (composition_gstring_p): Fix for the terminal case.
7262 (composition_gstring_width): Likewise.
7263 (fill_gstring_body): Likewise.
7264 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7265 the frame.
7266 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7267 is within a composition.
7268 (Fcomposition_get_gstring): Fix the terminal case.
7269
7270 * term.c (encode_terminal_code): Fix handling of composition.
7271 (produce_composite_glyph): For static composition, get pixel_width
7272 from struct composition.
7273
7274 2009-02-02 Andreas Schwab <schwab@suse.de>
7275
7276 * unexelf.c (unexec): Handle unaligned bss offset.
7277
7278 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7279
7280 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7281 XT,w32read_socket changes to ns_read_socket.
7282
7283 * keyboard.c (handle_interrupt): Don't call
7284 quit_throw_to_read_char() under NS.
7285
7286 * blockinput.h: Remove NS-specific code.
7287
7288 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7289
7290 * dispnew.c (window_change_signal): Don't try to get the size of a
7291 suspended tty frame.
7292 * term.c (Fresume_tty): Resize if the size has changed while the
7293 tty was suspended.
7294
7295 * alloc.c (mark_stack): Properly conditionalize previous change.
7296
7297 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
7298
7299 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7300 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7301 Remove; this code is not used on Windows.
7302
7303 2009-01-30 Eli Zaretskii <eliz@gnu.org>
7304
7305 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7306 EOLs that also has stray ^M characters.
7307
7308 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
7309
7310 * atimer.c (run_timers, alarm_signal_handler):
7311 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7312 * w32inevt.c (w32_console_read_socket):
7313 * w32term.c (w32_read_socket):
7314 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7315
7316 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
7317
7318 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7319 Initialize it as a relative filename pattern.
7320 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7321 (Fcall_process_region): Simplify temp file creation using
7322 temporary-file-directory.
7323
7324 2009-01-29 Eli Zaretskii <eliz@gnu.org>
7325
7326 * msdos.c: Rename pending_signals to msdos_pending_signals.
7327 (sig_suspender, sigprocmask): Adjust.
7328
7329 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
7330
7331 * keyboard.c (pending_signals): New var.
7332 (poll_for_input, input_available_signal, init_keyboard): Set it.
7333 (process_pending_signals): New function.
7334
7335 * lisp.h (QUIT): Check pending_signals instead of
7336 interrupt_input_pending. Use process_pending_signals.
7337
7338 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
7339
7340 * process.c (wait_reading_process_output): Use process_pending_signals.
7341
7342 * sysdep.c (emacs_write): Use process_pending_signals.
7343
7344 * xterm.c (XTread_socket): Update pending_signals.
7345
7346 * w32term.c (w32_read_socket): Update pending_signals.
7347
7348 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7349
7350 2009-01-29 Kenichi Handa <handa@m17n.org>
7351
7352 * xftfont.c (xftfont_has_char): New function.
7353 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7354
7355 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7356
7357 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7358 under GNUstep.
7359 (ns_query_color): New declaration.
7360
7361 * nsterm.m (ns_confirm_quit): New variable.
7362 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7363 (EmacsApp-applicationShouldTerminate:): Use it.
7364 (EmacsPrefsController): Let user set it.
7365 (ns_query_color): New function.
7366 (ns_defined_color): Use it.
7367 (ns_initialize): Drop.
7368 (ns_term_init): Add two lines from ns_initialize(), and set
7369 input_interrupt_mode to nil.
7370
7371 * image.c (svg_load_image): Don't right-shift background RGB when
7372 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
7373
7374 2009-01-28 Kenichi Handa <handa@m17n.org>
7375
7376 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
7377 (fontset_get_font_group): Remember that no font-group is specified
7378 for C.
7379
7380 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
7381
7382 * fns.c (concat): Check for string overflow (bug#1787).
7383
7384 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7385 Quadruple undo limits (bug#1501).
7386
7387 2009-01-27 Kenichi Handa <handa@m17n.org>
7388
7389 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7390 directly use GT_Get_Char_index.
7391
7392 * xftfont.c (struct xftfont_info): New member `index'.
7393
7394 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
7395 (Ffontset_font): Adjust for the change of fontset entry.
7396
7397 2009-01-26 Kenichi Handa <handa@m17n.org>
7398
7399 * fontset.c (fontset_find_font): Fix handling of non-cons return
7400 value of fontset_get_font_group.
7401 (fontset_font): Revert last change.
7402
7403 2009-01-26 Jason Rumney <jasonr@gnu.org>
7404
7405 * w32font.c (w32font_list_internal): Return quickly if registry is
7406 unknown. Simplify final return.
7407 (add_font_entity_to_list): Break complex logic down into more
7408 manageable chunks. Move unknown registry check to
7409 w32font_list_internal.
7410
7411 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7412
7413 Changes to remove Feval calls from GUI under NS.
7414
7415 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7416 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
7417 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7418
7419 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7420 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7421 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7422 instead of NON_ASCII_KEYSTROKE_EVENT.
7423 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7424 (EmacsApp-applicationShouldTerminate:): Query user.
7425 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7426 instead of Feval.
7427
7428 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7429
7430 * keyboard.c (kbd_buffer_get_event): Check for it.
7431 (keys_of_keyboard): Define lispy keys for
7432 ns-put/unput-working-text.
7433
7434 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7435 versions.
7436 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7437
7438 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
7439
7440 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
7441 setting current_buffer directly. (Bug#2044)
7442
7443 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
7444
7445 * fontset.c (fontset_font): If we know there is no font, don't do
7446 any work. (Bug#1952, bug#1990).
7447
7448 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
7449
7450 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7451
7452 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
7453 (ns_no_defaults): New declaration.
7454 (main): Use it.
7455
7456 * nsterm.h (ns_no_defaults): New declaration.
7457
7458 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
7459
7460 * nsterm.m (ns_no_defaults): New variable.
7461 (ns_initialize): Don't read defaults when ns_no_defaults.
7462 (EmacsView-readSelectionFromPasteboard:)
7463 (writeSelectionToPasteboard:types:): New stubbed-out methods for
7464 NSServicesRequests protocol. (Bug#1435)
7465 (ns_dumpglyphs_stretch): New function.
7466 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
7467 of 2008-11-15 to other terms. (Bug#615)
7468
7469 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7470
7471 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7472
7473 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7474 call for Sparc64.
7475
7476 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7477
7478 * nsfns.m:
7479 * nsgui.h:
7480 * nsmenu.m:
7481 * nsselect.m:
7482 * nsterm.h:
7483 * nsterm.m: Remove '23' comments that indicated code added during
7484 update from emacs-20 -> emacs-23.
7485
7486 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7487
7488 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
7489 ns_alternate_modifier. (Bug#1217)
7490
7491 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7492 Display all shortcuts, including those w/o super modifier.
7493
7494 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7495
7496 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
7497
7498 * fileio.c (Vwrite_region_post_annotation_function)
7499 (Vwrite_region_annotation_buffers): New vars.
7500 (build_annotations_unwind): Just reset
7501 Vwrite_region_annotation_buffers.
7502 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7503 Call write-region-post-annotation-function.
7504 (build_annotations): Add to Vwrite_region_annotation_buffers if
7505 buffer changes.
7506
7507 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7508
7509 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7510 Tiger.
7511 * nsfns.m (ns_do_applescript):
7512 Conditionalize typeUTF16ExternalRepresentation on Tiger.
7513
7514 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7515
7516 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7517
7518 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7519
7520 * nsmenu.m (NSMENUPROFILE): Change #if style.
7521
7522 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7523
7524 * nsterm.m (x_set_frame_alpha): Add prototype.
7525 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7526 handle Ctrl-tab. (Bug#1841)
7527 (ns_get_color): Use unsigned long long for scanned hex string value.
7528 (ns_term_shutdown): Abort on non SIGTERM signals.
7529 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
7530 (EmacsPrefsController-setPanelFromDefaultValues): New function.
7531 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
7532 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
7533 (ns_defined_color): Fix settings of the XColor variable fields:
7534 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
7535
7536 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
7537 DPI. (Bug#1316)
7538 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7539 values in onTiger section.
7540
7541 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
7542
7543 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7544 Check return value of font_spec_from_name.
7545 (Fx_list_fonts): Doc fix. (Bug#1951)
7546
7547 * font.c (font_spec_from_name): Return Qnil if font name could not
7548 be parsed.
7549 (font_parse_name): Treat a `?' character as part of an XLFD.
7550
7551 * fns.c (Fsubstring): Doc fix.
7552
7553 2009-01-19 Kenichi Handa <handa@m17n.org>
7554
7555 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
7556 (ftfont_list): Likewise.
7557
7558 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
7559
7560 * dbusbind.c (Fdbus_register_signal):
7561 * process.c (conv_sockaddr_to_lisp):
7562 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7563
7564 * callproc.c (Fgetenv_internal): Doc fix.
7565
7566 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
7567
7568 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7569 it is not even used.
7570
7571 2009-01-16 Glenn Morris <rgm@gnu.org>
7572
7573 * font.c (Ffont_variation_glyphs): Silence compiler.
7574
7575 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
7576
7577 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7578 Reported by David Robinow <drobinow@gmail.com>.
7579
7580 2009-01-15 Kenichi Handa <handa@m17n.org>
7581
7582 * coding.c (detect_coding_system): Fix handling of null_byte_found.
7583
7584 2009-01-14 Jason Rumney <jasonr@gnu.org>
7585
7586 * frame.c (x_set_font): Always store a font to the font parameter,
7587 never a fontset. (Bug#1562)
7588
7589 2009-01-14 Kenichi Handa <handa@m17n.org>
7590
7591 * coding.c (TWO_MORE_BYTES): New macro.
7592 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
7593
7594 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
7595
7596 * font.c (font_clear_prop): If clearing the family, clear the font
7597 width index too.
7598
7599 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
7600
7601 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
7602
7603 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7604 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7605 functions, use sizeof.
7606
7607 2009-01-12 Martin Rudalics <rudalics@gmx.at>
7608
7609 * keyboard.c (read_char): Fix case where last_nonmenu_event
7610 returned a bad value with submenus. (Bug#447)
7611
7612 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
7613
7614 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7615 family, clear the font width index too.
7616
7617 2009-01-11 Jason Rumney <jasonr@gnu.org>
7618
7619 * keyboard.c (cmd_error_internal): Exit when errors occur before
7620 frame creation and not in daemon mode. (Bug#1836)
7621
7622 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
7623
7624 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7625 of a display vector, backtrack.
7626 (try_window_reusing_current_matrix): Check glyph type before
7627 referencing charpos member.
7628
7629 2009-01-10 Eli Zaretskii <eliz@gnu.org>
7630
7631 Fix Bug #876:
7632
7633 * coding.c (inhibit_null_byte_detection): New variable.
7634 (detect_coding, detect_coding_system): Don't pay attention to null
7635 bytes if inhibit_null_byte_detection is non-zero.
7636 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
7637 <inhibit-iso-escape-detection>: Doc fix.
7638
7639 2009-01-09 Jason Rumney <jasonr@gnu.org>
7640
7641 * w32font.c (add_font_entity_to_list): Don't report unknown
7642 Windows charset as any unrecognized registry. (Bug#1548)
7643 Only report Unicode Plane 2 fonts as unicode-sip.
7644
7645 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
7646
7647 * xfaces.c (Fx_font_family_list): Delete function.
7648 Move compatibility version to faces.el.
7649
7650 * font.c (Ffont_family_list): Return a list of strings, not symbols.
7651
7652 2009-01-09 Martin Rudalics <rudalics@gmx.at>
7653
7654 * frame.c (x_set_frame_parameters): Remember requested value for
7655 fullscreen before it's reset by the parameter handler.
7656
7657 2009-01-09 Glenn Morris <rgm@gnu.org>
7658
7659 * keyboard.c (last_command_char): For clarity, rename to...
7660 (last_command_event): ... and update all users.
7661 (last_input_char): For clarity, rename to...
7662 (last_input_event): ... and update all users.
7663 (last-command-char, last-input-char): Move to subr.el as aliases.
7664 * cmds.c, commands.h: Update for last_command_char rename.
7665
7666 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
7667
7668 * font.c (font_open_for_lface): Handle unspecified height attribute.
7669
7670 2009-01-08 Jason Rumney <jasonr@gnu.org>
7671
7672 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7673 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7674 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7675 Don't declare.
7676 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
7677 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7678
7679 2009-01-07 Kenichi Handa <handa@m17n.org>
7680
7681 * fileio.c (Finsert_file_contents): In the case of replace,
7682 remember the coding system used for decoding in
7683 coding_system (Bug#1039).
7684
7685 * coding.c (decode_coding_utf_8): Check byte_after_cr before
7686 breaking the loop. (Bug#870)
7687 (decode_coding_utf_16, decode_coding_emacs_mule)
7688 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7689 (decode_coding_charset): Likewise.
7690
7691 2009-01-05 Martin Rudalics <rudalics@gmx.at>
7692
7693 * frame.c (x_set_frame_parameters): Make sure height (width) get
7694 applied when fullwidth (fullheight) is set. (Bug#1522)
7695
7696 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
7697
7698 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7699 (utc_base): Declare as ULONGLONG, not long double.
7700 (convert_time_raw): Delete.
7701 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7702 (initialize_utc_base): New function.
7703 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7704 (convert_from_time_t): Use initialize_utc_base; compute result with
7705 64-bit arithmetic.
7706 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7707
7708 2009-01-03 Eli Zaretskii <eliz@gnu.org>
7709
7710 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
7711 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7712 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7713 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7714 [!subprocesses]: Define.
7715 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7716 (Flist_system_processes, Fsystem_process_attributes)
7717 [!subprocesses]: Call list_system_processes and
7718 system_process_attributes instead of returning Qnil.
7719
7720 * dosfns.c (system_process_attributes, list_system_processes):
7721 New functions.
7722
7723 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7724
7725 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7726 Don't use the default (no-op) implementation.
7727
7728 2009-01-03 Jason Rumney <jasonr@gnu.org>
7729
7730 * keyboard.c (parse_modifiers_uncached): Wheel events are
7731 clicks (bug#687).
7732
7733 * w32term.c (x_query_colors, x_query_color): New functions.
7734
7735 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7736 (svg_load_image): Cast returned pointers from dynamically loaded
7737 functions. Eliminate W32 specific code.
7738
7739 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7740
7741 * nsfns.m (x_set_foreground_color, x_set_background_color)
7742 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7743 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7744 x_ prefix instead of ns_. Update references.
7745 (syms_of_nsfns): Add a FIXME comment.
7746
7747 * nsterm.m (x_set_cursor_type): New prototype.
7748 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7749
7750 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7751 for Solaris instead of incorrectly providing Qutime and Qcutime.
7752
7753 2009-01-02 Eli Zaretskii <eliz@gnu.org>
7754
7755 * w32.c (process_times): Compute sum of utime and stime.
7756 (system_process_attributes): Add Qtime to the alist.
7757
7758 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7759 and add them to the alist.
7760
7761 * process.c (top level) <Qtime, Qctime>: New variables.
7762 (syms_of_process): staticpro them.
7763 (Fsystem_process_attributes): Add their documentation to the doc
7764 string.
7765
7766 * process.h: Declare Qtime and Qctime.
7767
7768 2009-01-02 Jason Rumney <jasonr@gnu.org>
7769
7770 * image.c (Qgobject): New symbol.
7771 (syms_of_image): Initialize it.
7772 (init_svg_functions): Load some functions from gobject library.
7773
7774 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7775
7776 * frame.c (make_terminal_frame): Remove redundant code and useless
7777 block.
7778
7779 2009-01-01 Andreas Schwab <schwab@suse.de>
7780
7781 * process.c (conv_sockaddr_to_lisp): Add workaround for
7782 getsockname bug on BSD.
7783
7784 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
7785
7786 * xfns.c (x_create_tip_frame): Set border width of the X window.
7787
7788 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
7789
7790 2009-01-01 Jason Rumney <jasonr@gnu.org>
7791
7792 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
7793 Don't block input, as per earlier xterm.c changes.
7794
7795 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7796
7797 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7798 (ns_appkit_version_int): New function.
7799 (x-server-version): Use ns_appkit_version_int and follow 21+
7800 convention of returning 3 integers.
7801
7802 2008-12-30 Kenichi Handa <handa@m17n.org>
7803
7804 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7805 (CHAR_SURROGATE_PAIR_P): New macro.
7806
7807 * font.h (struct font_driver): New member get_variation_glyphs.
7808
7809 * font.c (font_range): Don't require a font for a variation selector.
7810 (Ffont_variation_glyphs): New function.
7811 (syms_of_font): Defsubr it.
7812
7813 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7814 ftfont_variation_glyphs.
7815 (setup_otf_gstring): New function.
7816 (ftfont_drive_otf): Use it.
7817 (ftfont_shape_by_flt): Handle variation selector.
7818 (ftfont_variation_glyphs): New function.
7819
7820 2008-12-30 Martin Rudalics <rudalics@gmx.at>
7821
7822 * frame.c (Vemacs_iconified): Remove.
7823
7824 2008-12-30 Jason Rumney <jasonr@gnu.org>
7825
7826 * frame.c (store_frame_param, x_get_arg): Enable newer code on
7827 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7828
7829 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
7830
7831 * indent.c (Fvertical_motion): Don't advance iterator if we have
7832 reseated to the desired position.
7833
7834 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7835 checking for pos match.
7836
7837 2008-12-30 Kenichi Handa <handa@m17n.org>
7838
7839 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7840 just get the low 8-bit of the code.
7841
7842 * font.c (font_intern_prop): Validate str as multibyte.
7843
7844 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7845
7846 * dispextern.h (struct face): Move lface and hash from the middle
7847 of bitfields.
7848
7849 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7850
7851 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7852
7853 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7854 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7855 instead of intervals.h.
7856
7857 2008-12-26 Andreas Schwab <schwab@suse.de>
7858
7859 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7860 cons.
7861
7862 2008-12-26 Martin Rudalics <rudalics@gmx.at>
7863
7864 * textprop.c (Qminibuffer_prompt): New variable.
7865 (syms_of_textprop): Initialize it.
7866 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7867 in minibuffer-prompt face. (Bug#1662)
7868
7869 2008-12-25 Jason Rumney <jasonr@gnu.org>
7870
7871 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7872
7873 2008-12-24 Jason Rumney <jasonr@gnu.org>
7874
7875 * ralloc.c (r_alloc_reset_variable): New function.
7876
7877 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
7878 record of what points where. (Bug#716)
7879
7880 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7881
7882 * minibuf.c (read_minibuf): Follow the non-interactive case when
7883 running as a daemon, before detaching.
7884
7885 2008-12-22 Andreas Schwab <schwab@suse.de>
7886
7887 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7888 * gtkutil.c (free_widget_value): Use xfree instead of free.
7889
7890 2008-12-22 Martin Rudalics <rudalics@gmx.at>
7891
7892 * frame.c (delete_frame): New function derived from
7893 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7894 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7895 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7896 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7897 * frame.h: Extern delete_frame.
7898 * window.c (window_loop):
7899 * terminal.c (delete_terminal):
7900 * xterm.c (x_connection_closed):
7901 * xfns.c (Fx_hide_tip):
7902 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
7903
7904 2008-12-21 Jason Rumney <jasonr@gnu.org>
7905
7906 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7907 when character maps to .notdef character.
7908
7909 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7910
7911 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7912
7913 2008-12-20 Jason Rumney <jasonr@gnu.org>
7914
7915 * frame.c (Fmake_terminal_frame): Raise an error when called from
7916 a graphical frame on Windows. (Bug#1325)
7917
7918 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7919
7920 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7921
7922 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
7923
7924 * minibuf.c (Fread_buffer): Doc fix.
7925
7926 2008-12-20 Jason Rumney <jasonr@gnu.org>
7927
7928 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
7929 server name in UNC paths. (Bug#719)
7930
7931 * coding.c (decode_coding): Clear chars_at_source flag when using
7932 charbuf. (Bug#1035)
7933
7934 2008-12-19 Daniel Engeler <engeler@gmail.com>
7935
7936 * sysdep.c (serial_configure): Fix typo.
7937
7938 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7939
7940 * sysdep.c: Include alloca.h.
7941 (system_process_attributes): Add implementation for Solaris.
7942
7943 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
7944
7945 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7946
7947 Reorganize implementation of Flist_system_processes and
7948 Fsystem_process_attributes. No functional changes.
7949 * process.c: Don't #include pwd.h, grp.h and limits.h.
7950 (Flist_system_processes): Just call list_system_processes.
7951 (Fsystem_process_attributes): Just call system_process_attributes.
7952 (procfs_list_system_processes, time_from_jiffies)
7953 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7954 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7955
7956 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7957 (list_system_processes): Rename from
7958 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7959 Provide a do nothing implementation.
7960 (system_process_attributes): Rename from
7961 procfs_list_system_processes.
7962 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7963 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
7964
7965 * w32.c (list_system_processes): Rename from
7966 w32_list_system_processes.
7967 (system_process_attributes): Rename from
7968 w32_system_process_attributes.
7969
7970 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7971
7972 * process.h (w32_list_system_processes)
7973 (w32_system_process_attributes): Remove.
7974 (list_system_processes, system_process_attributes):
7975 New prototypes.
7976
7977 2008-12-19 Kenichi Handa <handa@m17n.org>
7978
7979 * xfont.c (xfont_decode_coding_xlfd): New function.
7980 (xfont_encode_coding_xlfd): New function.
7981 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7982 (xfont_list): Decode and encode XLFD by iso-8859-1.
7983 (xfont_match): Likewise.
7984 (xfont_list_family): Likewise.
7985 (xfont_open): Likewise.
7986
7987 * ftfont.c (ftfont_open): Generate a multibyte string if given
7988 names are utf-8.
7989
7990 * xftfont.c (xftfont_open): Generate a multibyte string if given
7991 names are utf-8.
7992
7993 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7994
7995 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7996 changed.
7997 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7998 clicked on a detached tool bar button.
7999
8000 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8001
8002 * emacs.c (main): Print and error and exit when no data is read
8003 from the pipe.
8004
8005 2008-12-17 Jason Rumney <jasonr@gnu.org>
8006
8007 * w32font.c (w32font_has_char): Always return -1.
8008
8009 2008-12-16 Kenichi Handa <handa@m17n.org>
8010
8011 * font.c (font_open_entity): Fix previous change.
8012
8013 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8014
8015 * process.c: Include <limits.h>.
8016
8017 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
8018
8019 * font.c (font_update_drivers): Fix mistake in reconstructing the
8020 driver list.
8021
8022 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
8023
8024 * font.c (font_clear_cache): Fix format of font cache data.
8025
8026 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
8027
8028 * xftfont.c (xftfont_open): Free Xft font pattern if
8029 XftFontOpenPattern fails.
8030
8031 * xterm.c (x_free_frame_resources): Remove extraneous call to
8032 free_frame_faces.
8033
8034 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8035
8036 * xterm.c (x_delete_display): Move xim_close_dpy call to
8037 x_delete_terminal.
8038 (x_delete_terminal): Call xim_close_dpy.
8039
8040 2008-12-13 Jason Rumney <jasonr@gnu.org>
8041
8042 * w32font.c (intern_font_name): New function.
8043 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8044 (w32font_open_internal, Fx_select_font): Decode font name.
8045 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8046
8047 * w32font.h (intern_font_name): Declare new function.
8048
8049 * w32uniscribe.c (add_opentype_font_name_to_list):
8050 Use intern_font_name.
8051
8052 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8053
8054 * frame.c (Fdelete_frame): Call free_font_driver_list.
8055
8056 * font.c (free_font_driver_list): Implement missing function.
8057
8058 * w32term.c (w32_term_init): Don't initialize the image cache
8059 here; it will be done in init_frame_faces.
8060
8061 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8062 (struct x_display_info): Remove unused member null_pixel. New
8063 member xim_callback_data.
8064
8065 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8066 (xim_initialize): Save pointer to callback function data.
8067 (xim_close_dpy): Free callback function data. Call XCloseIM,
8068 reverting 2008-11-04 change by David Smith.
8069 (x_term_init): Don't initialize the image cache here; it will be
8070 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8071 (x_delete_display): Free x_dnd_atoms member.
8072
8073 2008-12-13 Kenichi Handa <handa@m17n.org>
8074
8075 * font.c (font_rescale_ratio): Moved from xfaces.c.
8076 Argument type changed. Handle a font-spec too.
8077 (font_score): Check Vface_font_rescale_alist.
8078 (font_open_entity): Likewise. (Bug#1547)
8079
8080 * xfaces.c (font_rescale_ratio): Moved to font.c.
8081
8082 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
8083
8084 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8085
8086 2008-12-12 Jason Rumney <jasonr@gnu.org>
8087
8088 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8089 Vwindow_system_version to the real w32 major version.
8090
8091 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8092
8093 * term.c (init_tty): Move setting the terminal name before the
8094 potential user: maybe_fatal.
8095
8096 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
8097
8098 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8099 all callers changed. Call free_frame_faces to free the face cache.
8100
8101 2008-12-11 Jason Rumney <jasonr@gnu.org>
8102
8103 * w32font.c (fill_in_logfont): Don't assume symbol script means
8104 SYMBOL_CHARSET. (Bug#547)
8105
8106 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
8107 size for surrogates. (Bug#1096, bug#872)
8108
8109 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8110
8111 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8112
8113 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8114
8115 * process.c (Fsystem_process_attributes, syms_of_process):
8116 Fix typo in name of Ssystem_process_attributes.
8117 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8118
8119 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
8120
8121 * syntax.c (Fmodify_syntax_entry): Doc fix.
8122
8123 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
8124
8125 * font.c (Ffont_spec): Move usage to end of docstring.
8126
8127 2008-12-10 Jason Rumney <jasonr@gnu.org>
8128
8129 * w32font.c (Qcham): New symbol.
8130 (font_supported_scripts): Add cham, and comments for other new
8131 scripts in bitfield from OpenType spec.
8132 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8133 contain characters beyond the bmp.
8134
8135 2008-12-10 Kenichi Handa <handa@m17n.org>
8136
8137 * ftfont.c (fc_charset_table): Add "unicode-sip".
8138 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
8139 Qunicode_sip.
8140
8141 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
8142
8143 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8144 (Fcoding_system_put): Use QCdefault_char.
8145 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8146
8147 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
8148
8149 * xftfont.c (syms_of_xftfont): Fix typo.
8150
8151 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
8152
8153 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8154
8155 * emacs.c (main): Close daemon_pipe on exec.
8156
8157 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
8158
8159 * termchar.h (struct tty): New members termcap_term_buffer and
8160 termcap_strings_buffer.
8161
8162 * term.c (encode_terminal_code): Free any previous memory blocks
8163 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
8164 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8165 All callers changed.
8166 (init_tty): Store termcap data and string buffers in new struct
8167 tty members termcap_term_buffer and termcap_strings_buffer.
8168 (delete_tty): Free them.
8169 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
8170
8171 2008-12-07 Seiji Zenitani <zenitani@mac.com>
8172
8173 * nsfns.m (ns_set_background_color): Remove code duplication.
8174 It was a substitute for face-transparency on OS X 10.3.
8175
8176 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
8177
8178 * coding.c (make_conversion_work_buffer): Disable buffer
8179 modification hooks in the work buffer.
8180
8181 2008-12-05 Eli Zaretskii <eliz@gnu.org>
8182
8183 * process.c (procfs_system_process_attributes): If `nread' has a
8184 negative value, assign zero to it.
8185
8186 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
8187
8188 * eval.c (Vdebug_on_error): Doc fix.
8189
8190 2008-12-05 Kenichi Handa <handa@m17n.org>
8191
8192 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8193 second character is a combining character.
8194
8195 2008-12-05 Eli Zaretskii <eliz@gnu.org>
8196
8197 * process.c (procfs_system_process_attributes): Don't use cmd,
8198 cmdsize, and q without initializing them first.
8199
8200 2008-12-04 Jason Rumney <jasonr@gnu.org>
8201
8202 * w32font.c (w32font_draw): Initialize orig_clip before getting
8203 it, and delete it when finished.
8204
8205 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8206
8207 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8208 case when running as a daemon before detaching.
8209
8210 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
8211
8212 * w32.c (init_environment): Don't unload library shell32.dll.
8213
8214 2008-12-03 Kenichi Handa <handa@m17n.org>
8215
8216 * font.c (font_at): Set `multibyte' at first.
8217
8218 * coding.c (decode_coding_charset): Check type of an element of
8219 vector VALIDS.
8220 (encode_coding_emacs_mule): Be sure to set `code'.
8221
8222 * fontset.c (face_for_char): Handle invalid charset property correctly.
8223 (font_for_char): Likewise.
8224
8225 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
8226
8227 * font.c (Fopen_font): Compute pixel size correctly.
8228 (font_update_lface): Handle fonts with corrupted size specs,
8229 i.e. non-int and non-float.
8230
8231 * ftfont.c (ftfont_match): Initialize entity variable.
8232 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8233 (ftfont_list_family): Initialize list var earlier.
8234
8235 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8236
8237 * xterm.c (x_draw_glyph_string): Fall back on
8238 underline_minimum_offset for underline position.
8239
8240 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8241
8242 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8243
8244 * character.c (c_string_width): Specify the type for LEN.
8245
8246 2008-12-03 Kenichi Handa <handa@m17n.org>
8247
8248 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
8249 (decode_coding_utf_8): Likewise.
8250 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
8251 (produce_chars): Initialize consumed_chars to 0.
8252
8253 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
8254
8255 * keyboard.c (make_lispy_position): Only use PT if the selected
8256 window is current.
8257
8258 2008-12-02 Andreas Schwab <schwab@suse.de>
8259
8260 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8261
8262 * doprnt.c (doprnt1): Fix size of charbuf.
8263
8264 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
8265
8266 * keyboard.c (timer_check): Revert last change.
8267
8268 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
8269
8270 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8271
8272 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
8273
8274 * makefile.w32-in: Update dependencies.
8275 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8276
8277 2008-12-01 Andreas Schwab <schwab@suse.de>
8278
8279 * font.c (register_font_driver): Use xmalloc.
8280 (font_put_frame_data): Likewise.
8281
8282 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
8283
8284 * xfaces.c (realize_x_face): Make abort condition clearer.
8285
8286 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8287
8288 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
8289
8290 * keyboard.c (timer_check): After a timer runs, ensure that the
8291 selected window's buffer is current.
8292
8293 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
8294
8295 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8296 It was accidentally restored by the Unicode merge.
8297
8298 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8299
8300 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
8301
8302 * w32proc.c: Include "coding.h".
8303 (Fw32_short_file_name): Encode filename passed to Windows API.
8304 (Fw32_long_file_name): Encode filename passed to Windows API and
8305 decode back the result. (Bug#1433)
8306
8307 2008-11-29 Kenichi Handa <handa@m17n.org>
8308
8309 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8310 not before accessing it.
8311
8312 * charset.c (Fdefine_charset_internal): After calculating
8313 min_char, max_char, and fastmap, copy the charset structure again.
8314 (encode_char): Fix the previous change.
8315
8316 2008-11-28 Seiji Zenitani <zenitani@mac.com>
8317
8318 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8319
8320 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8321
8322 * nsterm.m (x_set_frame_alpha): New function.
8323
8324 2008-11-27 Eli Zaretskii <eliz@gnu.org>
8325
8326 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8327
8328 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
8329
8330 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8331 pointer to check_face_name.
8332
8333 2008-11-27 Kenichi Handa <handa@m17n.org>
8334
8335 * category.h (SET_CATEGORY_SET): Call set_category_set.
8336 (set_category_set): Extern it.
8337
8338 * category.c (hash_get_category_set): New function.
8339 (Fmodify_category_entry): Adjusted for the change of
8340 char_table_ref_and_range. Call hash_get_category_set to get a
8341 category set to store in the table.
8342
8343 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8344 Funify_charset.
8345
8346 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
8347 (DECODE_CHAR): Check if the decoder vector is ready.
8348 (ENCODE_CHAR): Check if the encoder char-table is ready.
8349 (maybe_unify_char): Extern it.
8350
8351 * charset.c (Vchar_unified_charset_table): Delete it.
8352 (inhibit_load_charset_map): New variable.
8353 (temp_charset_work): New variable.
8354 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8355 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8356 New macros.
8357 (load_charset_map): Meaning of control_flag changed. If
8358 inhibit_load_charset_map is nonzero, setup a table in
8359 temp_charset_work.
8360 (load_charset): New argument control_flag.
8361 (map_charset_for_dump): New function.
8362 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8363 map_charset_for_dump.
8364 (Fdefine_charset_internal): If the charset method is MAP, load
8365 mapping tables by calling load_charset.
8366 (Funify_charset): Don't load a mapping table but directly set
8367 Vchar_unify_table.
8368 (maybe_unify_char): New function.
8369 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8370 Handle the case of inhibit_load_charset_map being nonzero.
8371 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8372 Handle the case of inhibit_load_charset_map being nonzero.
8373 (Fclear_charset_maps): Just free temp_charset_work.
8374 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8375 variable.
8376
8377 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8378 change of char_table_ref_and_range.
8379 (char_table_ref_and_range): Change the meaning of argument FROM
8380 and TO. Now the caller must provide initial values for *FROM
8381 and *TO.
8382
8383 * fontset.c (fontset_add): Adjusted for the change of
8384 char_table_ref_and_range.
8385 (fontset_get_font_group): Likewise.
8386 (Ffontset_info): Likewise.
8387
8388 * keymap.c (describe_vector): Adjusted for the change of
8389 char_table_ref_and_range. For char-table, put boundary between
8390 non-ASCII and 8-bit characters.
8391
8392 * print.c (print_object): For bool-vector, delete unnecessary
8393 check of ASCII_BYTE_P.
8394
8395 2008-11-26 Jason Rumney <jasonr@gnu.org>
8396
8397 * w32font.c (w32font_open_internal): Don't include external
8398 leading in font height. (Bug#879)
8399
8400 2008-11-26 Glenn Morris <rgm@gnu.org>
8401
8402 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8403 redefinition with ifdef. (Bug#1383)
8404
8405 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8406
8407 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8408
8409 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8410
8411 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8412 New EmacsView methods.
8413 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8414 Fixes bug #1048,1357,1414.
8415
8416 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8417
8418 Fix bug #1362.
8419 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8420 is not an indexed color.
8421 * nsterm.m (free_indexed_color): Add argument checking.
8422 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8423
8424 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
8425
8426 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8427 Document confirm-after-completion value for
8428 minibuffer-completion-confirm.
8429
8430 2008-11-24 Jason Rumney <jasonr@gnu.org>
8431
8432 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8433 warning.
8434
8435 2008-11-23 Jason Rumney <jasonr@gnu.org>
8436
8437 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8438 restored before returning.
8439
8440 * w32font.c (check_face_name): New function.
8441 (add_font_entity_to_list): Use it to filter out common substituted
8442 fonts. (Bug#642)
8443
8444 2008-11-22 Martin Rudalics <rudalics@gmx.at>
8445
8446 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8447 confirm-nonexistent-file-or-buffer in doc-string.
8448
8449 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8450
8451 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8452 Fix copy/paste typo. Add checks.
8453
8454 2008-11-21 Kenichi Handa <handa@m17n.org>
8455
8456 * coding.c (detect_coding_iso_2022): Reject invalid composition
8457 sequence.
8458 (DECODE_COMPOSITION_START): If the current source is the last
8459 block, and the current composition doesn't end, regard this
8460 sequence as invalid.
8461 (decode_coding_iso_2022): Handle invalid composition sequence.
8462
8463 2008-11-20 Martin Rudalics <rudalics@gmx.at>
8464
8465 * window.c (coordinates_in_window): Don't return
8466 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8467 line when the window is not the rightmost one. (Bug#1372)
8468
8469 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8470
8471 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8472
8473 2008-11-15 Eli Zaretskii <eliz@gnu.org>
8474
8475 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8476 and bright_bg if noninteractive is non-zero.
8477
8478 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8479
8480 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8481 x_draw_glyph_string_background.
8482
8483 * w32term.c (x_draw_glyph_string): Likewise.
8484
8485 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
8486
8487 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8488 the next glyph string once past the overhang width.
8489
8490 * nsterm.m (ns_draw_glyph_string): Likewise.
8491
8492 * w32term.c (x_draw_glyph_string): Likewise.
8493
8494 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8495
8496 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8497 double file close.
8498
8499 2008-11-14 Martin Rudalics <rudalics@gmx.at>
8500
8501 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8502 dedicated status of window before attempting to display another
8503 buffer in it.
8504
8505 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
8506
8507 * msdos.c (Fmsdos_long_file_names):
8508 (syms_of_msdos) <dos-unsupported-char-glyph>:
8509 * dosfns.c (Fint86): Fix typos in docstrings.
8510
8511 2008-11-14 Eli Zaretskii <eliz@gnu.org>
8512
8513 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8514
8515 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8516
8517 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8518
8519 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8520
8521 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8522
8523 * frame.h: Negative alpha means "don't touch".
8524
8525 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8526
8527 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8528
8529 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8530
8531 * hftctl.c:
8532 * chpdef.h:
8533 * acldef.h: Remove files used only for systems no longer supported.
8534
8535 * Makefile.in: Fix .o alphabetical ordering.
8536 (hftctl.o): Remove dependency, file removed.
8537 (keymap.o, print.o): Depend on charset.h.
8538
8539 2008-11-10 Kenichi Handa <handa@m17n.org>
8540
8541 * character.c (Fget_byte): Fix and make it faster for unibyte target.
8542
8543 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
8544
8545 * dired.c (file_name_completion): If completion_ignore_case is
8546 enabled, ignore case when checking completion-regexp-list.
8547
8548 2008-11-08 Eli Zaretskii <eliz@gnu.org>
8549
8550 * vm-limit.c (get_lim_data): Fix last change.
8551
8552 2008-11-08 Kenichi Handa <handa@m17n.org>
8553
8554 * character.c (Fget_byte): New function.
8555 (syms_of_character): Defsubr Fget_byte.
8556
8557 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
8558
8559 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8560 cursor position is valid after scrolling.
8561
8562 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
8563
8564 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8565
8566 2008-11-06 Glenn Morris <rgm@gnu.org>
8567
8568 * xterm.c (handle_one_xevent): Don't let popup menus cause
8569 mouse-autoselect-window related window switching. (Bug#1261)
8570
8571 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8572
8573 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8574
8575 2008-11-04 Andreas Schwab <schwab@suse.de>
8576
8577 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8578
8579 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
8580
8581 * xfns.c (Fx_wm_set_size_hint): New function.
8582
8583 2008-11-03 Martin Rudalics <rudalics@gmx.at>
8584
8585 * textprop.c (Fprevious_single_char_property_change): Return 0
8586 when there's no change in a string. (Bug#1301)
8587
8588 2008-11-02 Martin Rudalics <rudalics@gmx.at>
8589
8590 * frame.c (do_switch_frame): New argument NORECORD passed to
8591 Fselect_window.
8592 (Fselect_frame): New argument NORECORD passed to
8593 do_switch_frame.
8594 (Fset_frame_selected_window): New argument NORECORD passed to
8595 Fselect_frame.
8596 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8597 in call of do_switch_frame.
8598 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8599 Handle NORECORD argument in call of Fselect_frame.
8600 * lisp.h (do_switch_frame, Fselect_frame)
8601 (Fset_frame_selected_window): Adjust declarations.
8602 * window.c (select_frame_norecord): New function.
8603 (run_window_configuration_change_hook): Use it and call
8604 Fselect_frame with NORECORD set.
8605 (Fselect_window): Pass NORECORD to Fselect_frame.
8606 (Fset_window_configuration): Handle NORECORD argument in call of
8607 do_switch_frame.
8608 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8609 Fset_frame_selected_window.
8610 * keyboard.c (command_loop_1): Handle NORECORD in call of
8611 Fselect_frame (currently ifdefd).
8612
8613 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8614
8615 * emacs.c (USAGE2): Untabify.
8616
8617 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8618
8619 * composite.c (fill_gstring_header): Fix copy/paste typo.
8620
8621 2008-10-31 Martin Rudalics <rudalics@gmx.at>
8622
8623 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8624 (Fother_window): Rename argument and rewrite doc-string.
8625 (select_window_norecord): Fix return value. (Bug#1276)
8626
8627 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
8628
8629 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8630 new frames overriding foreground for tooltips. Based on similar patch
8631 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8632
8633 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
8634
8635 * emacs.c (Fdaemon_initialized): Initialize nfd.
8636
8637 2008-10-29 Martin Rudalics <rudalics@gmx.at>
8638
8639 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8640 (Fwindow_text_height): Clarify doc-strings.
8641 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8642 doc-string of window-scroll-functions.
8643
8644 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8645
8646 * category.c (syms_of_category): Fix typo in docstring.
8647
8648 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
8649
8650 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8651 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8652 Fix typos in docstrings.
8653
8654 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8655
8656 * emacs.c (daemon_pipe): Make non-static.
8657 (IS_DAEMON): Move definition ...
8658 * lisp.h (IS_DAEMON): ... here.
8659 (daemon_pipe): Declare.
8660 (is_daemon): Remove.
8661 * dispnew.c (init_display): Use IS_DAEMON.
8662
8663 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8664
8665 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8666 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8667
8668 * emacs.c (is_daemon): Remove.
8669 (main): Don't set is_daemon.
8670 (IS_DAEMON): New macro.
8671 (Fdaemonp, Fdaemon_initialized): Use it.
8672 (Fdaemon_initialized): Write a char into the pipe to make sure the
8673 parent exits.
8674 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8675
8676 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
8677
8678 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8679 over-sized glyph, draw it with the default glyph width.
8680
8681 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8682 glyph, draw it with the default glyph width.
8683
8684 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8685 glyph, draw it with the default glyph width.
8686
8687 * xdisp.c (try_scrolling): When computing the distance from the
8688 scroll margin to PT, try moving some distance past the window
8689 bottom before giving up.
8690
8691 2008-10-27 Martin Rudalics <rudalics@gmx.at>
8692
8693 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8694 (Fset_window_buffer): Explain in doc-string that a window can be
8695 "strongly" dedicated to its buffer.
8696
8697 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8698
8699 * emacs.c (daemon_name): New variable.
8700 (main): Deal with --daemon=SERVER_NAME.
8701 (Fdaemonp): Return a name if one was passed to --daemon.
8702
8703 2008-10-26 Romain Francoise <romain@orebokech.com>
8704
8705 * emacs.c (daemon_pipe): New variable.
8706 (main): Create a pipe before forking, make the parent exit only after
8707 the child has closed its end of the pipe. Move closing the
8708 descriptors ...
8709 (Fdaemon_initialized): ... here. New function.
8710
8711 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8712
8713 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8714 the previous unoptimized table.
8715
8716 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8717 the distinction between non-nil and non-t value of `dedicated'.
8718
8719 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
8720
8721 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
8722 read_char_minibuf_menu_text is large enough to hold the menu string.
8723
8724 2008-10-25 Martin Rudalics <rudalics@gmx.at>
8725
8726 * window.c (Fget_buffer_window, Fdelete_windows_on)
8727 (Freplace_buffer_in_windows): Make buffer argument optional and
8728 rename to buffer_or_name.
8729
8730 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
8731
8732 * xdisp.c (handle_single_display_spec, handle_display_prop):
8733 Undo 2005-05-16 change.
8734 (handle_stop): Pop iterator if it's loaded with an empty string.
8735 (get_overlay_strings_1): Don't save iterator if it's loaded with
8736 an empty string (bug#1201).
8737
8738 2008-10-24 Kenichi Handa <handa@m17n.org>
8739
8740 * ftfont.c (ftfont_otf_features): Fix previous change.
8741 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8742 calling ftfont_otf_features.
8743
8744 2008-10-24 Kenichi Handa <handa@m17n.org>
8745
8746 * font.c (font_match_p): Fix for the case that a vector of
8747 characters is in script-representative-chars.
8748
8749 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
8750
8751 * dbusbind.c (xd_in_read_queued_messages): New variable.
8752 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
8753 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8754 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
8755 macro. (Bug#1186)
8756
8757 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
8758
8759 * s/sol2-10.h: New file.
8760
8761 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8762
8763 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8764 poor beast has survived 9+ years and the jump from xterm.c!).
8765
8766 2008-10-23 Martin Rudalics <rudalics@gmx.at>
8767
8768 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8769 Reword doc-string.
8770 (Fbury_buffer): In doc-string say what happens to the buffer's window.
8771
8772 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8773
8774 * character.c (syms_of_character) <script-representative-chars>:
8775 <unicode-category-table>: Doc fixes.
8776
8777 2008-10-23 Noah Friedman <friedman@splode.com>
8778
8779 * coding.c (make_conversion_work_buffer): Check that
8780 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8781 Fget_buffer_create.
8782
8783 2008-10-23 Kenichi Handa <handa@m17n.org>
8784
8785 * font.c (font_add_log): Check the values of extra properties.
8786
8787 2008-10-22 Martin Rudalics <rudalics@gmx.at>
8788
8789 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8790 Reword doc-string.
8791 (Fset_window_parameter): Use NILP.
8792 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
8793 (Frecenter): Use "selected" instead of "current" window in doc-strings.
8794
8795 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8796
8797 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8798
8799 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8800
8801 * nsfns.m (ns_appkit_version): New function.
8802 (x-server-version): Use it.
8803 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8804 (x-server-vendor): Don't check_ns().
8805
8806 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8807
8808 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8809
8810 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8811 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8812
8813 2008-10-22 Kenichi Handa <handa@m17n.org>
8814
8815 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8816 scripts.
8817
8818 * category.c (word_boundary_p): Check scripts instead of charset.
8819 Handle nil value in word-separating-categories and
8820 word-combining-categories.
8821 (syms_of_category): Fix docstrings of word-separating-categories
8822 and word-combining-categories.
8823
8824 2008-10-21 Eli Zaretskii <eliz@gnu.org>
8825
8826 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8827 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8828
8829 2008-10-21 Martin Rudalics <rudalics@gmx.at>
8830
8831 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8832 Rename arg "buffer" to "buffer_or_name".
8833 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8834 it optional.
8835 (no_switch_window): Remove since the return value is not used.
8836 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
8837 Consider window as dedicated when Fwindow_dedicated_p returns a
8838 non-nil value.
8839 * lisp.h: Remove prototype for no_switch_window.
8840
8841 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8842
8843 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
8844 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
8845
8846 2008-10-21 Kenichi Handa <handa@m17n.org>
8847
8848 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8849 check Vlatin_extra_code_table.
8850
8851 2008-10-20 Eli Zaretskii <eliz@gnu.org>
8852
8853 * fileio.c (Fset_file_modes): Doc fix.
8854
8855 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
8856
8857 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8858 in arrays.
8859
8860 2008-10-19 Martin Rudalics <rudalics@gmx.at>
8861
8862 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8863 Mention kill-buffer in doc-string.
8864 (Fset_window_buffer): Reinsert tem check removed in last commit.
8865 (Fenlarge_window, Fshrink_window): Have argument names and
8866 doc-string follow Elisp manual more closely.
8867
8868 2008-10-18 Eli Zaretskii <eliz@gnu.org>
8869
8870 * fileio.c (Fset_file_modes): Doc fix.
8871
8872 2008-10-18 Martin Rudalics <rudalics@gmx.at>
8873
8874 * window.c (Fwindow_width, Fset_window_start)
8875 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
8876 (Fdelete_windows_on, Freplace_buffer_in_windows):
8877 Make doc-strings follow code and Elisp manual more closely.
8878 (Fwindow_dedicated_p): Make window argument optional.
8879 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8880 (Fset_window_buffer): Respect any non-nil dedicated value for
8881 window. Rename "buffer" argument to "buffer_or_name".
8882
8883 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
8884
8885 * m/sh3.h: New file, machine description for SuperH.
8886
8887 2008-10-17 Martin Rudalics <rudalics@gmx.at>
8888
8889 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8890
8891 2008-10-17 Kenichi Handa <handa@m17n.org>
8892
8893 * ftfont.c (ftfont_otf_features): Fix indexing
8894 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8895
8896 2008-10-16 Magnus Henoch <mange@freemail.hu>
8897
8898 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8899 (Fdbus_call_method_asynchronously): Ditto.
8900 This change makes C-h f display the argument list.
8901
8902 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
8903
8904 * fileio.c (Fexpand_file_name): Doc fix.
8905
8906 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8907 of :foreground and :background equivalent to unspecified (20.x
8908 compatibility).
8909
8910 2008-10-15 Eli Zaretskii <eliz@gnu.org>
8911
8912 * buffer.c (syms_of_buffer): Doc fix.
8913
8914 2008-10-14 Kenichi Handa <handa@m17n.org>
8915
8916 * font.c (font_clear_prop): When clearing font width, clear the
8917 average width field too.
8918
8919 2008-10-12 Andreas Schwab <schwab@suse.de>
8920
8921 * ftfont.c (ftfont_shape_by_flt): Make static.
8922 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8923
8924 * font.c: Don't include <m17n-flt.h>.
8925
8926 2008-10-10 Eli Zaretskii <eliz@gnu.org>
8927
8928 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8929
8930 2008-10-09 Eli Zaretskii <eliz@gnu.org>
8931
8932 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8933 away code.
8934
8935 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
8936
8937 * dispnew.c (update_text_area): Avoid looping due to large glyph
8938 overhangs (bug#1070).
8939
8940 2008-10-09 Kenichi Handa <handa@m17n.org>
8941
8942 * fontset.c (face_for_char): If face->fontset is negative, just
8943 return ascii_face.
8944
8945 * font.c (font_delete_unmatched): Fix previous change.
8946 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
8947
8948 2008-10-09 Martin Rudalics <rudalics@gmx.at>
8949
8950 * frame.c (Fraise_frame): On text-only terminals select frame in
8951 order to make it visible. (Bug#1061)
8952
8953 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
8954
8955 * fontset.c (fontset_find_font): Check frame validity.
8956
8957 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
8958
8959 * gtkutil.c (xg_display_open): Reset default display if none exists.
8960 (xg_display_close): Allow Emacs to close all displays (bug#985).
8961
8962 2008-10-06 Andreas Schwab <schwab@suse.de>
8963
8964 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
8965
8966 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
8967
8968 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
8969
8970 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
8971
8972 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8973 during initialization.
8974
8975 2008-10-04 Eli Zaretskii <eliz@gnu.org>
8976
8977 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8978 whole thing on MSDOS frames as well as on a TTY.
8979
8980 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8981 well as for TTY.
8982 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8983 well as on a TTY.
8984
8985 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8986 as well as for TTY.
8987
8988 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8989
8990 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8991 MSDOS frames as well.
8992
8993 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8994
8995 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8996 correct arguments.
8997 * menu.c (find_and_return_menu_selection): Add cast.
8998
8999 2008-10-03 Glenn Morris <rgm@gnu.org>
9000
9001 * emacs.c (USAGE1): Add --daemon.
9002
9003 2008-10-02 Eli Zaretskii <eliz@gnu.org>
9004
9005 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9006 100, so it's in percents as advertised.
9007
9008 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9009
9010 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9011 (ns_output.current_cursor, ns_output.desired_cursor)
9012 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9013 (FRAME_NEW_CURSOR_COLOR): Remove.
9014
9015 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
9016 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
9017 enumeration (HOLLOW_BOX_CURSOR, etc.).
9018
9019 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9020 (draw_window_cursor): Simplify code.
9021 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9022 Don't change cursor type. In latter, call rehighlight instead of doing
9023 updates manually.
9024 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9025 Use core Emacs cursor types.
9026
9027 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
9028
9029 2008-10-02 Martin Rudalics <rudalics@gmx.at>
9030
9031 * process.c (Faccept_process_output): Fix doc-string.
9032
9033 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9034
9035 * gmalloc.c (__sbrk): Also define for uClibc.
9036
9037 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9038 for uClibc.
9039
9040 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9041
9042 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9043 styles.
9044 (nsfont_open): Reenable the cache.
9045
9046 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9047
9048 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9049 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9050
9051 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9052
9053 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9054 a suspended terminal.
9055
9056 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
9057
9058 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9059
9060 2008-09-30 Eli Zaretskii <eliz@gnu.org>
9061
9062 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9063
9064 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
9065
9066 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9067 in a continued line coincides with a line beginning.
9068
9069 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9070
9071 * nsfont.m (nsfont_trait_distance): Fix bug.
9072 (nsfont_list): Return a list rather than a vector (syncs with Handa
9073 changes of 2008-05-14).
9074 (nsfont_open): Improve logging.
9075
9076 2008-09-29 Andreas Schwab <schwab@suse.de>
9077
9078 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9079
9080 2008-09-28 Martin Rudalics <rudalics@gmx.at>
9081
9082 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9083 name as char-resolve-modifiers.
9084 Reported by: Markus Triska <markus.triska@gmx.at>
9085
9086 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9087
9088 * dispnew.c (init_display): Return earlier when running as a daemon.
9089
9090 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9091
9092 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9093
9094 2008-09-27 Eli Zaretskii <eliz@gnu.org>
9095
9096 * composite.c (Fcomposition_get_gstring)
9097 (Fcompose_region_internal, Fcompose_string_internal)
9098 (Ffind_composition_internal): Doc fix.
9099 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9100 (syms_of_composite) <auto-composition-function>: Doc fix.
9101 (syms_of_composite) <composition-function-table>: Doc fix.
9102
9103 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
9104
9105 * search.c (wordify): New argument for lax word-ends.
9106 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9107
9108 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9109
9110 * lisp.h (is_daemon): Declare.
9111 * dispnew.c (init_display): Do not try to initialize the terminal
9112 when running as a daemon.
9113
9114 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
9115
9116 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9117 x_display_pixel_height.
9118
9119 2008-09-22 Martin Rudalics <rudalics@gmx.at>
9120
9121 * undo.c (record_point): Don't call Fundo_boundary for first
9122 change. (Bug#731)
9123
9124 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
9125
9126 * emacs.c (Fdaemonp): Doc fix.
9127
9128 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9129
9130 * emacs.c (main): Place #ifdef in the proper place.
9131
9132 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9133
9134 * emacs.c (standard_args): Add --daemon.
9135 (main): Disconnect from the terminal when --daemon is passed.
9136 (is_daemon): New variable.
9137 (Fdaemonp): New function.
9138 (syms_of_emacs): Defsubr it.
9139
9140 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
9141
9142 * xdisp.c (get_next_display_element): Handle string display
9143 correctly when checking for the end of a box run.
9144
9145 2008-09-20 Glenn Morris <rgm@gnu.org>
9146
9147 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9148 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9149 (Frename_file): Avoid copying to trash if a rename involves
9150 a delete. (Bug#964).
9151
9152 2008-09-20 Eli Zaretskii <eliz@gnu.org>
9153
9154 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9155 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9156 frames as well as termcap frames.
9157 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9158 get_named_tty.
9159
9160 2008-09-19 Eli Zaretskii <eliz@gnu.org>
9161
9162 * process.c (procfs_system_process_attributes): Fix cmdline in
9163 case /proc/PID/cmdline is empty.
9164
9165 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9166 x_display_pixel_height.
9167
9168 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
9169
9170 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9171
9172 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9173 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9174
9175 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9176
9177 * dispextern.h (struct it): Move line_wrap away from the middle of
9178 bitfields. Move voffset in struct iterator_stack_entry after the
9179 bitfields. Move tab_width near after another short.
9180
9181 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9182
9183 * frame.h (struct frame): Move alpha from the middle of bitfields.
9184
9185 * window.h (struct window): Move frozen_window_start_p after the
9186 rest of the bitfields to reduce padding.
9187
9188 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
9189
9190 * xterm.h (x_display_info): Remove `height' and `width' members.
9191
9192 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9193
9194 * w32term.h (w32_display_info): Remove `height', `width',
9195 `height_in', and `width_in' members.
9196
9197 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9198 New functions.
9199 (x_calc_absolute_position): Use them.
9200 (x_term_init): Omit removed `height' and `width' members.
9201
9202 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9203 New functions.
9204 (w32_read_socket, x_calc_absolute_position): Use them.
9205 (w32_initialize_display_info, w32_term_init): Omit removed members
9206 of w32_display_info.
9207
9208 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9209 New functions.
9210 (ns_initialize_display_info): Omit removed members of ns_display_info.
9211
9212 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9213 New functions.
9214 (x_calc_absolute_position): Use them.
9215 (x_term_init): Omit removed `height' and `width' members.
9216
9217 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9218 (compute_tip_xy):
9219 * frame.c (x_fullscreen_adjust):
9220 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9221 x_display_pixel_width.
9222
9223 2008-09-18 Kenichi Handa <handa@m17n.org>
9224
9225 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9226 (composition_compute_stop_pos): Fix handling of static composition.
9227 (Fcomposition_get_gstring): Check FROM and TO at first.
9228
9229 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9230
9231 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
9232 mixup (YAILOM).
9233
9234 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
9235
9236 * indent.c (Fvertical_motion): Use position reported by iterator
9237 instead of PT for determining screen motion (bug#943).
9238
9239 2008-09-17 Romain Francoise <romain@orebokech.com>
9240
9241 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9242
9243 2008-09-17 Kenichi Handa <handa@m17n.org>
9244
9245 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9246
9247 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9248 if necessary.
9249
9250 2008-09-16 Kenichi Handa <handa@m17n.org>
9251
9252 * coding.c (make_conversion_work_buffer): Avoid calling
9253 Fget_buffer_create if it is not necessary.
9254
9255 2008-09-15 Martin Rudalics <rudalics@gmx.at>
9256
9257 * window.c (Fselect_window): Don't update window_select_count and
9258 use_time when norecord is not nil.
9259
9260 2008-09-14 Kenichi Handa <handa@m17n.org>
9261
9262 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9263 specpdl_ptr.
9264
9265 2008-09-12 Kenichi Handa <handa@m17n.org>
9266
9267 * indent.c (scan_for_column): Don't handle automatic composition
9268 if the current buffer is not associated with a window.
9269
9270 * composite.c (composition_reseat_it): If the current buffer is
9271 not associated with a window, ignore the automatic composition.
9272 (find_automatic_composition): Likewise.
9273
9274 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9275
9276 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9277 (Fgpm_mouse_stop): Use it.
9278 * termhooks.h (close_gpm): Declare.
9279 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9280 connection if Gpm_GetEvent fails.
9281
9282 * window.c (set_window_buffer): Always preserve current-buffer.
9283
9284 2008-09-12 Glenn Morris <rgm@gnu.org>
9285
9286 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9287
9288 2008-09-11 Glenn Morris <rgm@gnu.org>
9289
9290 * charset.c (charset-map-path): Doc fix.
9291
9292 2008-09-10 Kenichi Handa <handa@m17n.org>
9293
9294 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9295
9296 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9297 compose a grapheme cluster with the preceding base glyph.
9298
9299 * composite.c (composition_compute_stop_pos): Fix previous change.
9300 Reset cmp_it->id to -1 at first.
9301
9302 2008-09-10 Glenn Morris <rgm@gnu.org>
9303
9304 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9305
9306 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
9307
9308 * keyboard.c (read_key_sequence): Reapply translation maps when
9309 switching keyboards.
9310
9311 2008-09-09 Kenichi Handa <handa@m17n.org>
9312
9313 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9314 characters.
9315
9316 * composite.c (FORWARD_CHAR): Fix calculation
9317 of (POSITION).pos_byte.
9318 (composition_compute_stop_pos): Limit the search of composition to
9319 at most 500 characters ahead. If we reach the limit or find a
9320 newline, set cmp_it->ch to -2 and return 0.
9321 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9322
9323 2008-09-08 Kenichi Handa <handa@m17n.org>
9324
9325 * indent.c (Fvertical_motion): Be sure to set
9326 it_overshoot_expected if it.cmp_it.id is non-negative.
9327
9328 2008-09-07 Andreas Schwab <schwab@suse.de>
9329
9330 * callproc.c (Fcall_process): Don't hold references to string data
9331 across garbage collection. Move initialisation of new_argv down
9332 to avoid compiler bug.
9333
9334 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9335
9336 * process.c (Fsystem_process_attributes): Doc fix.
9337
9338 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
9339
9340 * callproc.c (Fcall_process): Canonicalize current directory name.
9341
9342 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9343 iterator advances to the next line if the current line ends in a
9344 continued tab.
9345
9346 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9347
9348 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9349 member to point to cmp_from.
9350
9351 * xdisp.c: Doc fix for references to gidx data member.
9352
9353 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9354
9355 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9356
9357 2008-09-07 Kenichi Handa <handa@m17n.org>
9358
9359 * composite.c (FORWARD_CHAR): Check STOP after
9360 incrementing (POSITION).pos.
9361
9362 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9363
9364 * process.c (Fsystem_process_attributes): Doc fix.
9365
9366 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * keyboard.c (Ftop_level): Doc fix.
9369
9370 2008-09-06 Eli Zaretskii <eliz@gnu.org>
9371
9372 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9373 minibuffer, don't let lower part of menu invade the echo area.
9374
9375 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9376 "char *q" to access menu text and advance through it. Revert the
9377 change that displayed ">" instead of ASCII character 0x10.
9378
9379 2008-09-05 Eli Zaretskii <eliz@gnu.org>
9380
9381 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9382 toggle boxes and radio buttons on MS-DOS as well.
9383
9384 2008-09-05 Kenichi Handa <handa@m17n.org>
9385
9386 * composite.c (autocmp_chars): Check lookback count.
9387 (composition_compute_stop_pos): Set cmp_it->lookback.
9388 (composition_reseat_it): Check lookback count.
9389 (struct position_record): New struct.
9390 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9391 (find_automatic_composition): New function.
9392 (composition_adjust_point): Use find_automatic_composition.
9393
9394 * dispextern.h (struct composition_it): New member lookback.
9395
9396 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
9397
9398 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9399 if moving by a single line.
9400
9401 2008-09-02 Andreas Schwab <schwab@suse.de>
9402
9403 * xterm.c (x_delete_display): Fix merge error.
9404
9405 * fileio.c (Fexpand_file_name): Remove unused variables.
9406
9407 2008-09-02 Eli Zaretskii <eliz@gnu.org>
9408
9409 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9410 storage on all platforms, not just on DOS_NT.
9411
9412 2008-09-02 Jason Rumney <jasonr@gnu.org>
9413
9414 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9415 Ensure mouse is not grabbed after menu is finished.
9416
9417 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
9418
9419 * xfaces.c (Finternal_set_alternative_font_family_alist)
9420 (Finternal_set_alternative_font_registry_alist): Properly copy
9421 entire alist structure.
9422
9423 2008-09-01 Kenichi Handa <handa@m17n.org>
9424
9425 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
9426 representative chars of the script is a vector.
9427 (ftfont_list): Handle the case where the representative chars of
9428 the script is a vector.
9429
9430 * character.c (syms_of_character): Docstring of
9431 script-representative-chars fixed.
9432
9433 2008-08-31 Eli Zaretskii <eliz@gnu.org>
9434
9435 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9436 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9437 the menu. Allocate larger buffer for `text', to account for
9438 possible ^C characters.
9439
9440 2008-08-31 Martin Rudalics <rudalics@gmx.at>
9441
9442 * xdisp.c (prepare_menu_bars): Don't call
9443 Vwindow_size_change_functions with arg Qt.
9444
9445 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9446
9447 * font.h (font_range):
9448 * fileio.c (report_file_error):
9449 * composite.c (composition_update_it): Yet another int/Lisp_Object
9450 mixup (YAILOM).
9451
9452 2008-08-30 Glenn Morris <rgm@gnu.org>
9453
9454 * data.c (Fmake_variable_frame_local): Doc fix.
9455
9456 * frame.c (Fmodify_frame_parameters): Doc fix.
9457
9458 2008-08-30 Eli Zaretskii <eliz@gnu.org>
9459
9460 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9461 needed by GetTokenInformation.
9462 (w32_system_process_attributes): Check return values of all system
9463 APIs.
9464
9465 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9466 only when the state changes.
9467 (IT_update_begin, IT_update_end): Add termscript trace.
9468
9469 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9470 clipboard is unavailable. Set dst to NULL if it doesn't point to
9471 malloc'ed data.
9472 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9473 passing random values to xfree.
9474
9475 * dispnew.c (init_display): Set `tty's association in frame's
9476 parameters alist to the name of the terminal device, if that is known.
9477
9478 2008-08-29 Jason Rumney <jasonr@gnu.org>
9479
9480 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9481
9482 2008-08-29 Eli Zaretskii <eliz@gnu.org>
9483
9484 * composite.c (fill_gstring_body): Avoid compiler warnings.
9485
9486 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9487 LGLYPH_SET_CODE to avoid compiler warnings.
9488
9489 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
9490
9491 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9492
9493 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9494 LGLYPH_SET_CODE.
9495
9496 2008-08-29 Kenichi Handa <handa@m17n.org>
9497
9498 * fileio.c (report_file_error): Don't downcase the first character
9499 of errstring if it is still unibyte.
9500
9501 2008-08-29 Kenichi Handa <handa@m17n.org>
9502
9503 These changes are to re-implement the automatic composition so
9504 that it doesn't use text properties.
9505
9506 * Makefile.in (ftfont.o): Depend on composite.h.
9507 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9508
9509 * character.h (Vunicode_category_table): Extern it.
9510
9511 * character.c (Vunicode_category_table): New variable.
9512 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9513
9514 * chartab.c (optimize_sub_char_table): Perform more greedy
9515 optimization.
9516
9517 * composite.h (enum composition_method):
9518 Delete COMPOSITION_WITH_GLYPH_STRING.
9519 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9520 (Vcomposition_function_table): Extern it.
9521 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9522 (composition_gstring_put_cache, composition_gstring_from_id)
9523 (composition_gstring_p, composition_gstring_width)
9524 (composition_compute_stop_pos, composition_reseat_it)
9525 (composition_update_it, composition_adjust_point): Extern them.
9526 (Fcomposition_get_gstring): EXFUN it.
9527
9528 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
9529 (Vcomposition_function_table)
9530 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
9531 (gstring_hash_table, gstring_work, gstring_work_headers):
9532 New variables.
9533 (gstring_lookup_cache, composition_gstring_put_cache)
9534 (composition_gstring_from_id, composition_gstring_p)
9535 (composition_gstring_width, fill_gstring_header)
9536 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9537 (composition_reseat_it, composition_update_it)
9538 (composition_adjust_point, Fcomposition_get_gstring): New functions.
9539 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9540 and gstring_work_headers. DEFVAR_LISP composition-function-table.
9541 Defsubr composition_get_gstring.
9542
9543 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9544 cmp_id.
9545 (struct glyph_string): Delete the member gidx. New members
9546 cmp_id, cmp_from, and cmp_to.
9547 (enum it_method): Delete GET_FROM_COMPOSITION.
9548 (struct composition_it): New struct.
9549 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9550 Delete c, len, cmp_id, cmp_len in u.comp.
9551
9552 * font.h (enum lgstring_indices): Delete it.
9553 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
9554 (enum lglyph_indices): Likewise.
9555 (font_range): Adjust extern.
9556 (font_fill_lglyph_metrics): Extern it.
9557
9558 * font.c (QCf): New variable.
9559 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9560 (font_prepare_composition): Delete this function.
9561 (font_range): Type and arguments changed.
9562 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9563 (font_fill_lglyph_metrics): New function.
9564 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
9565 (syms_of_font): DEFSYM QCf. Delete defsubr for
9566 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9567 Defsubr Sfont_shape_gstring.
9568
9569 * fontset.h (font_for_char): Extern it.
9570
9571 * fontset.c (font_for_char): New function.
9572
9573 * ftfont.c: Include composite.h.
9574 (ftfont_resolve_generic_family): Add langset "en" to pattern.
9575 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9576
9577 * indent.c: Include composite.h and dispextern.h.
9578 (check_composition): Delete this function.
9579 (scan_for_column): Handle composition by
9580 composition_compute_stop_pos, composition_reseat_it, and
9581 composition_update_it.
9582 (compute_motion): Likewise.
9583 (Fvertical_motion): Fix checking of composition.
9584
9585 * keyboard.c (adjust_point_for_property): Check composition by
9586 composition_adjust_point.
9587
9588 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
9589 struct glyph_string.
9590
9591 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9592 (append_composite_glyph): Adjust for the change of struct it and
9593 struct glyph.
9594 (produce_composite_glyph): Likewise.
9595
9596 * w32term.c (x_draw_composite_glyph_string_foreground):
9597 Adjust for the change of struct glyph_string.
9598 (x_draw_glyph_string): Likewise.
9599
9600 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9601 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9602
9603 * xdisp.c: Include font.h.
9604 (it_props): Delete the entry for Qauto_composed.
9605 (init_iterator): Initialize it->cmp_it.id to -1.
9606 (compute_stop_pos): Call composition_compute_stop_pos.
9607 (face_before_or_after_it_pos): Adjust for the change of struct it.
9608 (handle_auto_composed_prop): Delete it.
9609 (handle_composition_prop): Handle only static composition.
9610 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9611 from xassert. Initialize it->cmp_it.stop_pos.
9612 (push_it): Adjust for the change of struct it.
9613 (pop_it): Likewise.
9614 (get_next_element): Delete next_element_from_composition.
9615 (CHAR_COMPOSED_P): New macro.
9616 (get_next_display_element): For automatic composition, get a face
9617 from the font in the glyph-string.
9618 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
9619 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
9620 (next_element_from_string): Check if the character at the current
9621 position is composed by CHAR_COMPOSED_P.
9622 (next_element_from_buffer): Likewise.
9623 (next_element_from_composition): Adjust for the change of struct it.
9624 Update it->cmp_it.
9625 (dump_glyph): Adjust for the change of struct glyph.
9626 (fill_composite_glyph_string): Adjust for the change of struct
9627 it and struct glyph. Don't handle automatic composition here.
9628 (fill_gstring_glyph_string): New function.
9629 (x_get_glyph_overhangs): Handle automatic composition.
9630 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
9631 (BUILD_GSTRING_GLYPH_STRING): New macro.
9632 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9633 automatic composition.
9634 (append_composite_glyph): Adjust for the change of struct it and
9635 struct glyph.
9636 (x_produce_glyphs): Adjust for the change of struct it.
9637
9638 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9639 the change of struct glyph_string.
9640 (x_draw_glyph_string): Likewise.
9641
9642 2008-08-29 Glenn Morris <rgm@gnu.org>
9643
9644 * buffer.c (word-wrap): Doc fix.
9645 * xdisp.c (truncate-partial-width-windows): Doc fix.
9646 Increase default to 50.
9647
9648 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
9649
9650 * xdisp.c (update_tool_bar_unwind): New function.
9651 (update_tool_bar): Temporarily set selected frame before building
9652 tool-bar items.
9653
9654 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
9655
9656 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9657 snprintf, respectively.
9658 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9659
9660 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
9661
9662 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9663 LDFLAGS to GNUstep CC invocation.
9664
9665 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
9666
9667 * indent.c (Fvertical_motion): Revert last change. Handle the
9668 general case where we are moving forward, and PT spans multiple
9669 screen lines.
9670
9671 * eval.c (find_handler_clause): Temporarily increase
9672 max-lisp-eval-depth while printing the backtrace buffer, to
9673 guarantee that help-mode code can run.
9674
9675 2008-08-27 Eli Zaretskii <eliz@gnu.org>
9676
9677 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9678 colors under -rv.
9679 (IT_set_frame_parameters): Don't swap foreground and background
9680 colors if `(reverse . t)' is present in the frame properties.
9681 (internal_terminal_init): Call init_frame_faces only for the
9682 initial frame.
9683
9684 2008-08-27 Andreas Schwab <schwab@suse.de>
9685
9686 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9687
9688 2008-08-27 Andreas Schwab <schwab@suse.de>
9689
9690 * search.c (search_buffer): Set char_base to zero only at the end.
9691
9692 2008-08-27 Kenichi Handa <handa@m17n.org>
9693
9694 * fileio.c (report_file_error): Fix handling of multibyte error string.
9695
9696 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9697
9698 * xterm.c (x_term_init): Temporarily hide the partially
9699 initialized terminal while calling vendor-specific-keysyms.
9700
9701 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9702
9703 * msdos.c (internal_terminal_init): Most initializations done only
9704 once, especially initial_screen_colors[] and termscript open.
9705
9706 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9707
9708 * eval.c (Fcondition_case): Doc fix.
9709
9710 * widgetprv.h (EmacsFramePart): Change font member to the new font
9711 struct.
9712
9713 * widget.c: Include character.h and font.h for XSETFONT.
9714 (setup_frame_gcs): Compute X font id from font struct, just once.
9715
9716 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9717
9718 * term.c (get_named_tty): Fix last change.
9719
9720 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9721
9722 * indent.c (Fvertical_motion): If moving forward starting from a
9723 multi-line string, move the iterator to the last line of that string.
9724
9725 2008-08-25 Eli Zaretskii <eliz@gnu.org>
9726
9727 * frame.c (do_switch_frame): Mark previously displayed frame as
9728 obscured for FRAME_MSDOS_P frames as well.
9729
9730 2008-08-24 Eli Zaretskii <eliz@gnu.org>
9731
9732 * frame.c (make_terminal_frame): Initialize f->terminal,
9733 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9734 Set the top frame to newly created frame.
9735 (Fmake_terminal_frame): Reuse the_only_display_info.
9736
9737 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9738 estimating available memory.
9739
9740 2008-08-23 David Reitter <david.reitter@gmail.com>
9741
9742 * nsterm.m (ns_draw_window_cursor): Don't call
9743 NSDisableScreenUpdates and NSEnableScreenUpdates on
9744 non-NS_IMPL_COCOA systems.
9745
9746 2008-08-23 Andreas Schwab <schwab@suse.de>
9747
9748 * process.c (procfs_system_process_attributes): Fix use of
9749 uninitialized variables.
9750
9751 2008-08-23 Eli Zaretskii <eliz@gnu.org>
9752
9753 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9754
9755 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9756 calling tty-set-up-initial-frame-faces.
9757
9758 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9759 Allow MSDOS frames along with X frames.
9760
9761 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9762 addition to output_termcap.
9763
9764 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9765
9766 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9767 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9768 highlight.
9769
9770 * process.c [!subprocesses]: Define QCname.
9771 (syms_of_process): Intern and staticpro it.
9772
9773 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
9774 Adjust for changes in encoding/decoding routines.
9775 Use encode_coding_object and decode_coding_object instead of
9776 encode_coding and decode_coding.
9777
9778 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
9779
9780 * dosfns.c: Include frame.h before termhooks.h.
9781 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9782 variable termscript.
9783
9784 * s/msdos.h (USER_FULL_NAME): Define.
9785 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9786
9787 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9788 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9789 pw->pw_gecos.
9790
9791 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9792 SELECTED_FRAME as additional (1st) argument.
9793 (tty_read_avail_input): Handle output_msdos_raw in
9794 addition to output_termcap.
9795
9796 * msdos.c: Include frame.h before termhooks.h.
9797 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9798 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9799 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9800 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9801 (IT_set_terminal_modes, IT_reset_terminal_modes)
9802 (IT_set_frame_parameters): Use tty->termscript instead of a global
9803 variable termscript.
9804 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9805 global variable terminal_coding. Don't refer to
9806 Vnonascii_translation_table.
9807 (internal_terminal_init): Set Vwindow_system in current_kboard.
9808 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9809 Announce date and time of session start, if termscript is open.
9810 Don't zero out the_only_display_info (it is done in
9811 term.c:init_tty). Open termscript only of not already open.
9812 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
9813 here instead of dos_ttraw. Don't initialize display if this is an
9814 initial tty. Don't set FRAME_FONT.
9815 (Vwindow_system_version): Bump to 23.
9816 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9817 is available, set up mouse_position_hook.
9818 (dos_ttraw, IT_set_terminal_modes): If called with initial
9819 terminal, do nothing.
9820 (IT_set_frame_parameters): Handle the Qtty_type frame
9821 parameter by calling internal_terminal_init.
9822 (dos_set_window_size, show_mouse_face)
9823 (clear_mouse_face, IT_note_mode_line_highlight)
9824 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9825 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9826 (initialize_msdos_display): New function.
9827 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9828 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9829 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9830 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
9831 Accept additional argument: a pointer to a frame. Update all callers.
9832 (request_sigio, unrequest_sigio): Don't define, now defined on
9833 sysdep.c.
9834 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9835
9836 * term.c [MSDOS]: Include msdos.h.
9837 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9838 conditional to DOS_NT. Allow only one call to this function in a
9839 session. Don't allocate a new struct tty_display_info; instead,
9840 reuse the_only_display_info. Call get_tty_size to get screen
9841 dimensions. Call init_baud_rate to set bad_rate.
9842 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9843 (Fsuspend_tty) [MSDOS]: Don't close input and output.
9844 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
9845 (get_tty_terminal, get_named_tty, Ftty_type)
9846 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9847 output_termcap.
9848 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9849 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
9850 only when subprocesses are supported.
9851
9852 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9853 f->output_data.x.
9854 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9855 terminal devices.
9856
9857 * msdos.h: Remove definition of struct x_display_info and struct
9858 x_output.
9859 (FRAME_FONT): Use output_data.tty.
9860 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
9861 (struct x_display_info): Rename from display_info. Update all users in
9862 msdos.c.
9863 (struct x_output): Remove background_pixel and foreground_pixel.
9864 (the_only_display_info): Rename from the_only_x_display.
9865 (dos_ttraw): Update prototype.
9866
9867 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9868 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9869
9870 2008-08-23 Jason Rumney <jasonr@gnu.org>
9871
9872 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9873 (fn_TIFFSetDirectory): New library function used.
9874 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9875 (tiff_load): Use :index to select among multiple images. Set count
9876 property when multiple images exist.
9877 (gif_format): Use :index, not :image.
9878
9879 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
9880
9881 * xdisp.c (try_scrolling): Check INT_MAX instead of
9882 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9883 to obtain INT_MAX.
9884
9885 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9886
9887 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9888
9889 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9890
9891 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9892 GNUstep library location.
9893
9894 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
9895
9896 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9897 before using it.
9898
9899 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9900
9901 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9902
9903 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9904 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9905 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9906 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9907 (EmacsApp-cursor_blink_handler): Remove declaration.
9908 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9909 match 01 Feb 2008 changes in xterm.c.
9910 (ns_read_socket): Add cast to avoid warning.
9911 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9912 GNUstep.
9913
9914 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
9915
9916 * xselect.c (x_get_foreign_selection): Return nil if desired
9917 selection could not be obtained, instead of signalling an error.
9918
9919 2008-08-20 David Reitter <david.reitter@gmail.com>
9920
9921 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9922 * nsterm.m: Remove ns-specific code for cursor blinking.
9923 (ns_draw_window_cursor): Clear cursor properly rather than
9924 redrawing the area. Respect width of bar cursors.
9925 These changes enable the use of generic blink-cursor-mode and
9926 generic cursor types in NS and support smooth cursor movements (do
9927 not blink off after command).
9928 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9929 Nextstep, too.
9930
9931 2008-08-19 Kenichi Handa <handa@m17n.org>
9932
9933 * font.c (Vfont_log_deferred): New variable.
9934 (font_add_log): Check Vfont_log_deferred.
9935 (font_deferred_log): New function.
9936
9937 * font.h (font_deferred_log): Extern it.
9938
9939 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9940 for sorting.
9941 (face_for_char): Use deferred log.
9942
9943 2008-08-18 Kenichi Handa <handa@m17n.org>
9944
9945 * fontset.c (face_for_char): Add font log.
9946
9947 * font.c (font_add_log): Add the font properties :script, :lang,
9948 and :otf in the log.
9949
9950 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
9951
9952 * xdisp.c: Remove dead code.
9953 (handle_invisible_prop, next_overlay_string): Defer call to
9954 setup_for_ellipsis.
9955 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9956
9957 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * xfaces.c (lookup_derived_face): Properly handle possible zero
9960 return value of get_lface_attributes.
9961 (merge_faces): Don't tell lookup_derived_face to signal an error
9962 if face is not found.
9963
9964 * dired.c (Fdirectory_files): Doc fix.
9965
9966 * process.c (make_process): Initialize kill_without_query struct
9967 member.
9968
9969 2008-08-15 Eli Zaretskii <eliz@gnu.org>
9970
9971 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9972 Alternative calculation of totphys for Visual Studio 6.
9973
9974 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9975
9976 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9977 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9978 All users changed.
9979 (stat): Only root directory passed to GetDriveType. Allow RAM
9980 disk as well as local fixed disk when w32-get-true-file-attributes
9981 is set to `local'.
9982 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9983 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9984 (w32_cached_id, w32_add_to_cache): New functions.
9985 (get_name_and_id): Look account names in the cache before calling
9986 lookup_account_sid.
9987 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9988 New initialization flags.
9989 (globals_of_w32): Initialize them to zero.
9990 (w32_system_process_attributes): Use w32_cached_id and
9991 w32_add_to_cache.
9992
9993 2008-08-14 Lawrence Mitchell <wence@gmx.li>
9994
9995 * lread.c (Fread_char, Fread_char_exclusive): If no character
9996 event is read before timeout is reached, return nil, rather than
9997 converting to a number.
9998
9999 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
10000
10001 * fns.c (use_dialog_box): Doc fix.
10002
10003 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10004 on OS X.
10005
10006 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
10007
10008 * frame.c (Qns_parse_geometry): New var.
10009 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10010
10011 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
10012
10013 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10014 space character in calculating tabs.
10015
10016 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10017
10018 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10019
10020 2008-08-10 Glenn Morris <rgm@gnu.org>
10021
10022 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10023 silence gcc "limited range of data type" warnings in some
10024 make_fixnum_or_float calls.
10025
10026 2008-08-09 Eli Zaretskii <eliz@gnu.org>
10027
10028 * w32.c (w32_system_process_attributes): If the process does not
10029 exist, return nil.
10030
10031 * w32.c: Include thelp32.h, psapi.h and coding.h.
10032 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10033 declarations.
10034 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10035 (Process32Next_Proc): New typedefs.
10036 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10037 (g_b_init_process32_next, g_b_init_open_thread_token)
10038 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10039 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10040 (g_b_init_get_process_working_set_size)
10041 (g_b_init_global_memory_status_ex): New static variables.
10042 (globals_of_w32): Initialize them.
10043 (create_toolhelp32_snapshot, process32_first, process32_next)
10044 (open_thread_token, impersonate_self, revert_to_self)
10045 (get_process_memory_info, get_process_working_set_size)
10046 (global_memory_status, global_memory_status_ex): New wrapper
10047 functions.
10048 (w32_list_system_processes, w32_system_process_attributes)
10049 (enable_privilege, restore_privilege, ltime, process_times):
10050 New functions.
10051 (convert_time_raw): New function.
10052 (convert_time): Remove conversion of FILETIME into time in 100
10053 nsec units, call convert_time_raw instead.
10054
10055 * process.h (w32_list_system_processes, w32_system_process_attributes):
10056 Add prototypes.
10057 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10058 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10059 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10060 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10061
10062 * process.c (Fsystem_process_attributes): Doc fix.
10063
10064 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
10065
10066 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10067 a continued multi-char glyph; if so, advance to the actual glyph.
10068
10069 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10070
10071 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10072
10073 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10074 (.m.o): Use it.
10075 * config.in: Regenerate.
10076
10077 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
10078
10079 * xdisp.c (redisplay_window): Revert last change.
10080 (try_window): Check bottom scroll margin too.
10081
10082 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10083
10084 * config.in: Regenerate.
10085
10086 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10087 -list-load-path-shadows'.
10088 (nsgui.h): Reduce number of things depending on it.
10089
10090 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
10091
10092 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10093 instead of window-end which does the wrong thing at eob.
10094 (try_cursor_movement): Minor optimization.
10095 (redisplay_window): If scroll margin is defined, don't assume
10096 window doesn't need scrolling.
10097
10098 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10099
10100 * config.in: Regenerate.
10101
10102 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10103 (mostlyclean): Don't delete *.d under NS.
10104
10105 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10106
10107 2008-08-06 Kenichi Handa <handa@m17n.org>
10108
10109 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10110
10111 2008-08-06 Andreas Schwab <schwab@suse.de>
10112
10113 * config.in: Regenerate.
10114
10115 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
10116
10117 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10118 forcing a window start.
10119
10120 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10121 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10122
10123 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10124
10125 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10126 argument.
10127
10128 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
10129
10130 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10131 <scroll-down-aggressively, before-change-functions>:
10132 <after-change-functions>: Reflow docstrings.
10133
10134 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10135 Ken Raeburn <raeburn@gnu.org>
10136
10137 Dock menu customization, based on a patch by Ken Raeburn, plus some
10138 other fixes.
10139 * nsmenu.m (dockMenu): New variable.
10140 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10141
10142 * nsterm.h (dockMenu): Declare.
10143
10144 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10145 (ns_term_init): Initialize dockMenu.
10146 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10147 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10148 left.
10149
10150 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10151
10152 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
10153
10154 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10155
10156 * config.in: Regenerate.
10157
10158 2008-08-04 Seiji Zenitani <zenitani@mac.com>
10159
10160 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10161
10162 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
10163
10164 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10165
10166 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10167
10168 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10169
10170 * keyboard.h: Comment an #endif.
10171
10172 * lisp.h (have_menus_p): Adjust comment.
10173
10174 * menu.c (find_and_return_menu_selection): Fix comparison with
10175 client_data.
10176
10177 * nsmenu.m (popup_activated_flag): New variable.
10178 (popup_activated): New function.
10179 (menu-or-popup-active-p): New exported lisp definition.
10180 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10181 when popup done.
10182 (ns_popup_dialog): Set popup_activated_flag.
10183
10184 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10185 version for GNUstep (handled by conditional typedef in nsterm.m).
10186 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10187 in rgb.txt).
10188
10189 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10190
10191 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10192
10193 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10194
10195 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10196 shortcircuit if popup_activated like GTK and X toolkit.
10197
10198 * m/inter386.h: Change DARWIN to DARWIN_OS.
10199
10200 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10201 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10202 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10203 comment on NO_SOCK_SIGIO.
10204
10205 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
10206
10207 * nsterm.m (windowDidResize): Remove stopModal call.
10208
10209 2008-08-03 Andreas Schwab <schwab@suse.de>
10210
10211 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10212 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10213
10214 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
10215
10216 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10217 Don't use uninitialized pointer variable when using getrlimit.
10218
10219 2008-08-02 Jason Rumney <jasonr@gnu.org>
10220
10221 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10222
10223 2008-08-02 Eli Zaretskii <eliz@gnu.org>
10224
10225 * alloc.c (NSTATICS): Bump to 0x640.
10226
10227 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10228
10229 * lisp.h: Add prototype for directory_files_internal.
10230
10231 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10232 New functions.
10233 (syms_of_process): Defsubr them. Add initializations for various
10234 Q* symbols used in procfs_system_process_attributes.
10235 (procfs_list_system_processes, procfs_system_process_attributes)
10236 [HAVE_PROCFS]: New functions.
10237 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10238 (procfs_get_total_memory): New functions.
10239
10240 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
10241
10242 * xfaces.c (Fx_load_color_file): Fix previous change;
10243 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10244
10245 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
10246
10247 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10248
10249 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10250
10251 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10252
10253 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
10254
10255 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10256
10257 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10258 define NSApplicationDelegateReplySuccess.
10259 (EmacsView -converstationIdentifier): Use long instead of
10260 NSInteger for GNUstep, since it doesn't have NSInteger.
10261
10262 * xmenu.c: Revert last change.
10263
10264 * keyboard.h: Fix last change.
10265
10266 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
10267
10268 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10269 on Windows.
10270
10271 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10272
10273 Warning clearing and clean-up in NS port.
10274 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10275 Add prototypes.
10276 * nsgui.h (FACE_DEFAULT): Remove, unused.
10277 (XGCValues): Change colors to unsigned long.
10278 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10279 nsterm.m.
10280 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10281 (ns_list_fonts): Remove, unused.
10282 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10283 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10284 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10285 (nsfont_draw): Compare face colors to 0, not nil.
10286 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10287 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10288 (-addSubmenuWithTitle:): Use NSMenuItem class.
10289 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10290 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10291 (ns_clip_to_row): Make gc arg a BOOL.
10292 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10293 ns_clip_to_row() call.
10294 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10295 used). Cast FRAME_FONT assignments.
10296 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10297 (ns_string_to_lispmod): Change arg to const char.
10298 (ns_term_init): Use NSMenuItem class.
10299 (EmacsApp -openFile:): Move to different section of file.
10300 (EmacsApp -application:openFiles:): Don't return a value, call
10301 -replyToOpenOrPrint:.
10302 (EmacsView -keyDown:): Fix up cast.
10303 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10304 (EmacsView -menuDown:): Cast tag in call to
10305 find_and_call_menu_selection().
10306 (ns_list_fonts): Remove, unused.
10307 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10308 (ns_fontname_to_xlfd): Make static.
10309 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10310 Remove prototypes (now in keyboard.h).
10311 (next_menubar_widget_id): Remove, unused.
10312 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10313 Remove prototypes (now in keyboard.h).
10314 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10315
10316 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10317
10318 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10319 (floatfns.o): Depend on syssignal.h.
10320 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10321
10322 * systty.h: Fix previous change that removed BSD_TERMIOS.
10323 Add comments to #ifdefs.
10324
10325 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10326
10327 * w32fns.c (w32-load-color-file): Remove.
10328 (x-open-connection): Use renamed Fx_load_color_file.
10329 * xfaces.c (x-load-color-file): Add.
10330 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10331 Emacs.clr.
10332 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10333
10334 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
10335
10336 * dbusbind.c (Fdbus_call_method_asynchronously)
10337 (Fdbus_method_error_internal): New defuns.
10338 (xd_read_message): Handle also reply messages.
10339 (Vdbus_registered_functions_table): Extend docstring.
10340
10341 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
10342
10343 * keyboard.c (gobble_input): Fix previous change.
10344
10345 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10346
10347 * bitmaps/README:
10348 * xfns.c:
10349 * termcap.c:
10350 * term.c:
10351 * syswait.h:
10352 * systty.h:
10353 * systime.h:
10354 * syssignal.h:
10355 * sysdep.c:
10356 * process.h:
10357 * process.c:
10358 * print.c:
10359 * ndir.h:
10360 * lread.c:
10361 * keyboard.c:
10362 * getpagesize.h:
10363 * floatfns.c:
10364 * fileio.c:
10365 * emacs.c:
10366 * doc.c:
10367 * dispnew.c:
10368 * dired.c:
10369 * data.c:
10370 * callproc.c:
10371 * buffer.c:
10372 * README:
10373 * Makefile.in:
10374 * s/template.h:
10375 * s/msdos.h:
10376 * m/vax.h: Remove VMS support.
10377 * s/vms.h:
10378 * vlimit.h:
10379 * uaf.h:
10380 * temacs.opt:
10381 * param.h:
10382 * ioctl.h: Remove file.
10383
10384 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10385
10386 * s/ms-w32.h (MULTI_KBOARD): Remove.
10387 * xterm.c:
10388 * xselect.c:
10389 * xfns.c:
10390 * window.c:
10391 * w32term.c:
10392 * w32fns.c:
10393 * terminal.c:
10394 * termhooks.h:
10395 * term.c:
10396 * sysdep.c:
10397 * keyboard.h:
10398 * keyboard.c:
10399 * frame.h:
10400 * frame.c:
10401 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10402 * config.in: Regenerate.
10403
10404 2008-07-30 Jason Rumney <jasonr@gnu.org>
10405
10406 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10407
10408 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10409 (w32font_open_internal): Get unicode version of textmetrics.
10410 Don't enable or disable glyph indices here.
10411 (w32font_open): Disable use of glyph indices.
10412
10413 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10414
10415 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
10416
10417 * minibuf.c (Vread_buffer_function): Doc fix.
10418
10419 2008-07-30 John Paul Wallington <jpw@pobox.com>
10420
10421 * minibuf.c (read_buffer_completion_ignore_case): New var.
10422 (Fread_buffer): Use it.
10423
10424 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10425
10426 * systty.h (sensemode): Remove empty #if. Remove reference to
10427 BSD_TERMIOS, unused.
10428
10429 * sysdep.c: Remove reference to DGUX.
10430 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10431
10432 * config.in: Regenerate.
10433
10434 2008-07-30 Jason Rumney <jasonr@gnu.org>
10435
10436 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10437
10438 2008-07-29 Jason Rumney <jasonr@gnu.org>
10439
10440 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10441 is populated.
10442 (uniscribe_encode_char): Always use uniscribe.
10443 Avoid using context if cache is populated.
10444
10445 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10446
10447 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10448 open menu.
10449
10450 * gtkutil.c (menu_nav_ended): Remove.
10451 (create_menus): Remove signal connect for menu_nav_ended.
10452
10453 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
10454
10455 * xdisp.c (redisplay_window): Check return value of
10456 compute_window_start_on_continuation_line before forcing a window
10457 start.
10458
10459 2008-07-28 Jason Rumney <jasonr@gnu.org>
10460
10461 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10462
10463 * w32term.c (w32_enable_unicode_output, cleartype_active):
10464 Remove obsolete display options.
10465 (x_draw_glyph_string_background): Don't use old cleartype_active
10466 workaround.
10467 (w32_initialize): Remove cleartype_active initialization.
10468 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10469
10470 2008-07-28 Andreas Schwab <schwab@suse.de>
10471
10472 * lisp.h (init_weak_hash_tables, syms_of_font)
10473 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10474 (remove_hash_entry): Don't declare.
10475 * eval.c (maybe_call_debugger): Make static and move before use.
10476 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10477 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10478 * xterm.h (x_set_frame_alpha): Declare.
10479
10480 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10481
10482 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10483 (create_menus): Connect selection-done to menu_nav_ended.
10484
10485 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10486
10487 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10488 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10489 parameter with read of 'alpha' one.
10490 (Qns_frame_parameter): Remove.
10491 * nsselect.m (selection-coding-system)
10492 (next-selection-coding-system, Vselection_coding_system)
10493 (Vnext_selection_coding_system): Drop.
10494
10495 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10496
10497 * nsfns.m (do-applescript, do_applescript): Rename to
10498 ns-do-applescript, ns_do_applescript, and move within file.
10499
10500 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10501
10502 Remove support for Mac Carbon.
10503 * mactoolbox.c:
10504 * macterm.h:
10505 * macterm.c:
10506 * macselect.c:
10507 * macmenu.c:
10508 * macgui.h:
10509 * macfns.c:
10510 * mac.c: Remove file.
10511 * s/darwin.h:
10512 * m/intel386.h:
10513 * xfaces.c:
10514 * xdisp.c:
10515 * window.c:
10516 * tparam.c:
10517 * termhooks.h:
10518 * termcap.c:
10519 * term.c:
10520 * syssignal.h:
10521 * sysselect.h:
10522 * sysdep.c:
10523 * process.c:
10524 * lread.c:
10525 * lisp.h:
10526 * keyboard.c:
10527 * image.c:
10528 * fringe.c:
10529 * frame.h:
10530 * frame.c:
10531 * fontset.c:
10532 * font.h:
10533 * font.c:
10534 * fns.c:
10535 * fileio.c:
10536 * emacs.c:
10537 * dispnew.c:
10538 * dispextern.h:
10539 * config.in:
10540 * atimer.c:
10541 * Makefile.in: Remove code for Carbon.
10542
10543 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10544
10545 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10546
10547 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10548
10549 * macterm.h (kCGBitmapByteOrder32Host): New define for
10550 non-universal SDKs.
10551
10552 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10553 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10554
10555 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10556 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10557
10558 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10559
10560 * w32inevt.c: Include dispextern.h.
10561
10562 2008-07-26 Andreas Schwab <schwab@suse.de>
10563
10564 * print.c (print_object): Fix off-by-one in last change.
10565
10566 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
10567
10568 * term.c (syms_of_term): Don't initialize default_orig_pair,
10569 default_set_foreground and default_set_background on Windows.
10570
10571 2008-07-25 Jason Rumney <jasonr@gnu.org>
10572
10573 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10574 ScriptItemize. Clean up return value checking. Remove unused
10575 variables.
10576 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10577 shaping engine.
10578
10579 * w32font.c (w32font_has_char): Handle the case where we can't
10580 determine the script for a character.
10581
10582 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10583
10584 * term.c (syms_of_term): Initialize default_orig_pair,
10585 default_set_foreground, and default_set_background.
10586
10587 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10588 clash (bug#86).
10589 (getloadavg): Callers changed.
10590
10591 * image.c (svg_load_image): Fix last change.
10592 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10593 image size is valid. Use g_object_unref instead of deprecated
10594 rsvg_handle_free to free rsvg handle.
10595 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10596
10597 2008-07-25 Jason Rumney <jasonr@gnu.org>
10598
10599 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10600 surrogates before looking up glyph index.
10601 (w32font_text_extents): Encode as surrogates if falling back to
10602 functions that need UTF-16 wide chars.
10603
10604 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10605 BMP as surrogates before looking up glyph index.
10606
10607 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10608
10609 * image.c (svg_load_image): Check for failure in return value of
10610 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10611
10612 2008-07-25 Jason Rumney <jasonr@gnu.org>
10613
10614 * w32font.c (Fx_select_font): Reverse sense of second arg.
10615
10616 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10617
10618 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10619 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10620
10621 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10622 (PURESIZE): Use it.
10623
10624 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10625
10626 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10627 * m/alpha.h (TEXT_END):
10628 * m/ibmrs6000.h (TEXT_END):
10629 * m/macppc.h (TEXT_END):
10630 * s/darwin.h (TEXT_END):
10631 * s/msdos.h (TEXT_END): Remove, unused.
10632 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10633 * s/cygwin.h: Remove comment.
10634
10635 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10636 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10637 * m/intel386.h (DOT_GLOBAL_START):
10638 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10639 (USG): Remove, file not used on USG platforms.
10640
10641 * Makefile.in (HAVE_X11): Remove empty #else.
10642
10643 2008-07-24 Andreas Schwab <schwab@suse.de>
10644
10645 * fileio.c (Finsert_file_contents): Properly adjust undo list
10646 after format conversion.
10647
10648 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10649
10650 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10651 (menu_nav_ended): Remove.
10652 (create_menus): Remove signal connect for menu_nav_ended.
10653 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10654 create_menus.
10655 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10656
10657 2008-07-23 Jason Rumney <jasonr@gnu.org>
10658
10659 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10660 with opened font.
10661 (w32font_open): Set font type to gdi.
10662
10663 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10664
10665 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10666
10667 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10668 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10669 defines it.
10670 * unexec.c (ADDR_CORRECT): Define unconditionally.
10671
10672 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10673
10674 * unexec.c: Remove code depending on !COFF and USG, the file is
10675 not used for such systems.
10676
10677 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10678 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10679 (LD_SWITCH_SYSTEM_1): Remove, update users.
10680
10681 * s/darwin.h (DATA_END):
10682 * m/intel386.h (DATA_END):
10683 * m/ibmrs6000.h (DATA_END):
10684 * m/alpha.h (DATA_END): Remove, unused.
10685
10686 * config.in: Regenerate.
10687 * s/ms-w32.h (subprocesses): Define unconditionally.
10688 * s/template.h (subprocesses): Update comment.
10689 * s/vms.h (subprocesses):
10690 * s/usg5-4.h (subprocesses):
10691 * s/hpux10-20.h (subprocesses):
10692 * s/gnu-linux.h (subprocesses):
10693 * s/cygwin.h (subprocesses):
10694 * s/bsd-common.h (subprocesses):
10695 * s/aix4-2.h (subprocesses):
10696 * s/darwin.h (subprocesses): Do not define, defined by default now.
10697
10698 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10699 Remove all references.
10700 (temacs): Add GNUstep specific ld flags.
10701
10702 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10703 similarly to what X does.
10704
10705 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10706
10707 * nsfns.m (x-list-fonts): Remove.
10708 (syms_of_nsfns): Drop the x-list-fonts declaration.
10709 * nsterm.m: Get rid of remaining "//" comments.
10710
10711 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
10712
10713 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10714
10715 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10716 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10717 (Fns_own_selection_internal, Fx_disown_selection_internal)
10718 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10719
10720 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10721 ... */' style of docstrings. Doc fixes.
10722
10723 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10724
10725 * terminfo.c (UP, BC, PC): Undo previous change.
10726
10727 * nsfns.m: Rename ns prefixed functions/variables to the
10728 corresponding x versions. Update references.
10729
10730 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10731
10732 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10733
10734 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10735
10736 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10737 Remove forwarding functions.
10738 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10739 non-static.
10740 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10741 non-static.
10742 (ns_frame_parm_handlers): Use the new names.
10743 (syms_of_nsfns): Move to the end of file.
10744
10745 * nsterm.m (syms_of_nsterm): Move to the end of file.
10746
10747 * dispnew.c (init_display): Remove code for X10.
10748
10749 2008-07-22 Jason Rumney <jasonr@gnu.org>
10750
10751 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10752 bare drive.
10753
10754 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10755
10756 * nsterm.m (syms_of_nsterm): Remove debugging println.
10757
10758 2008-07-22 David Reitter <david.reitter@gmail.com>
10759
10760 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10761 Carbon implementation of the same functionality: execute arbitrary
10762 AppleScript code.
10763
10764 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10765
10766 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10767 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10768 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10769 (Fx_display_mm_height, Fx_display_mm_width)
10770 (Fx_display_backing_store, Fx_display_visual_class)
10771 (Fx_display_save_under, Fx_open_connection)
10772 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10773 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10774 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10775 (Fx_display_pixel_width, Fx_display_pixel_height)
10776 (Fx_display_usable_bounds, Fx_display_planes)
10777 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10778 ... */' style of docstrings.
10779
10780 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10781
10782 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10783 on this platform.
10784 (mips):
10785 * m/iris4d.h (mips): Do not define.
10786 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10787
10788 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10789
10790 * image.c:
10791 * nsfns.m:
10792 * nsselect.m:
10793 * nsterm.h:
10794 * nsterm.m: Rename ns prefixed functions/variables to the
10795 corresponding x versions. Update references.
10796
10797 * m/ibms390x.h (NO_REMAP): Do not undefine.
10798
10799 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10800
10801 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
10802
10803 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10804 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10805 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10806 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10807 (Fns_display_mm_height, Fns_display_mm_width)
10808 (Fns_display_backing_store, Fns_display_visual_class)
10809 (Fns_display_save_under, Fns_open_connection)
10810 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10811 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10812 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10813 (Fns_display_pixel_width, Fns_display_pixel_height)
10814 (Fns_display_usable_bounds, Fx_display_planes)
10815 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10816
10817 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10818
10819 * print.c (print_object): Check print_depth before searching for
10820 circularities.
10821
10822 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
10823
10824 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10825 only sprintf.
10826
10827 2008-07-21 Kenichi Handa <handa@m17n.org>
10828
10829 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10830
10831 2008-07-20 Andreas Schwab <schwab@suse.de>
10832
10833 * syntax.c (find_start_pos, find_start_value)
10834 (find_start_value_byte, find_start_begv, find_defun_start)
10835 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10836
10837 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10838
10839 * s/sol2-3.h: Insert contents of s/sol2.h.
10840 (LD_SWITCH_SYSTEM): Remove redundant definition.
10841 * s/sol2.h: Remove, unused.
10842
10843 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10844
10845 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10846
10847 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10848
10849 * Makefile.in (ns_appdir): Fix typo in find command.
10850
10851 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10852
10853 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10854
10855 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10856 added not supported anymore.
10857
10858 * s/usg5-4-2.h (LIBS_SYSTEM):
10859 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10860
10861 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10862 * s/lynxos.h (GETPGRP_NO_ARG):
10863 * s/hpux10-20.h (NO_SIOCTL_H):
10864 * s/gnu.h (GETPGRP_NO_ARG):
10865 * s/gnu-linux.h (NO_SIOCTL_H):
10866 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10867 * s/cygwin.h (GETPGRP_NO_ARG):
10868 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10869 (C_DEBUG_SWITCH): Remove duplicate definition.
10870
10871 * m/ibms390.h: Remove boilerplate comments.
10872
10873 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10874
10875 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10876 (wait_reading_process_output): Remove code for SunOS, platform not
10877 supported anymore. Use SOLARIS2 instead of sun.
10878
10879 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10880
10881 * font.c (font_open_by_name): Under NS, default lface height to zero.
10882 (font_open_for_lface): Under NS, set size based on frame fontsize.
10883 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10884 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10885
10886 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10887
10888 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10889 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10890 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10891 YES/NO.
10892 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10893 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10894 * Makefile.in (clean): Clear out build destination dir.
10895
10896 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10897
10898 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10899 xterm, xselect.
10900 * lisp.h: Remove declaration of hash_remove.
10901 * nsgui.h: Remove redefinitions of hash_remove.
10902 * fns.c (hash_remove): Rename to hash_remove_from_table.
10903
10904 2008-07-19 Seiji Zenitani <zenitani@mac.com>
10905
10906 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10907 strdup() the family UTF8String before modifying it.
10908
10909 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10910
10911 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10912 NS_FACE_BACKGROUND with 0 instead of nil.
10913 * nsfont.m (nsfont_draw): Same.
10914
10915 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
10916
10917 * nsfns.m (ns_set_background_color): Fix crash.
10918
10919 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
10920
10921 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10922
10923 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10924
10925 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10926
10927 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10928
10929 * gtkutil.c: Include <config.h> instead of "config.h".
10930
10931 * lisp.h (Foverlay_buffer): Add EXFUN.
10932
10933 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10934 child process to complete child_setup. Undo 2005-09-21 change.
10935
10936 * s/darwin.h: Mention setsid after vfork.
10937
10938 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10939
10940 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10941 Depend on macgui.h.
10942
10943 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10944 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10945
10946 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10947 and f19.
10948 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10949
10950 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10951 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10952 Remove enumerators.
10953
10954 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10955 Check if FACE_FROM_ID returns NULL.
10956
10957 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10958
10959 * w32inevt.c (change_frame_size): Remove extern declaration.
10960 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10961 change_frame_size.
10962
10963 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10964
10965 * getloadavg.c: Revert last change (2008-07-15).
10966
10967 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10968
10969 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
10970 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
10971 from configure.
10972
10973 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10974
10975 * s/sol2.h:
10976 * s/sol2-4.h: Reorganize conditionals.
10977
10978 * ecrt0.c: Remove code depending on m68000, not used anymore.
10979
10980 * fns.c (hash_remove): Make static.
10981 * lisp.h (hash_remove): Don't prototype.
10982
10983 * m/ibmrs6000.h:
10984 * m/ibms390x.h:
10985 * m/macppc.h: Remove boilerplate comments.
10986
10987 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10988 Solaris, which does not need them.
10989
10990 * m/vax.h: Remove comments about unsupported systems.
10991
10992 * s/darwin.h: Reorganize ifdefs.
10993
10994 2008-07-17 Andreas Schwab <schwab@suse.de>
10995
10996 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10997
10998 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10999
11000 Use SDATA. Follow coding convention of placing operators at
11001 beginning of next line rather than end of previous line, and placing
11002 spaces around infix operators.
11003
11004 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11005 in case it was defined already.
11006 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11007 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11008 ns_default.
11009 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11010 Lisp_Objects.
11011 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11012 (ns_defined_color, ns_color_to_lisp): Declare.
11013 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11014 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11015 it's accepted even with USE_LISP_UNION_TYPE.
11016 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11017 (update_frame_tool_bar): Remove apparently obsolete tests for
11018 non-integerness of f->tool_bar_lines.
11019 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11020 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11021 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11022 (nsfont_open): Don't confuse NULL for Qnil.
11023 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11024 * menu.h (find_and_call_menu_selection):
11025 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11026 (find_and_return_menu_selection): Always return something.
11027 * frame.h: Include dispextern.h for Display_Info.
11028 (display_x_get_resource): Declare.
11029
11030 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11031
11032 * syntax.c: Remove stdio.h include accidentally introduced in
11033 Emacs.app commit.
11034 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11035 NS_IMPL_COCOA.
11036 * keyboard.c (handle_async_input, input_available_signal): Remove
11037 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11038
11039 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11040
11041 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11042 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11043 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11044 Use SDATA.
11045
11046 * keymap.c: Remove all NS-specific code.
11047 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11048 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11049 where_is_preferred_modifier, return a different value depending on how
11050 preferred is the binding.
11051 (where_is_internal): Adjust accordingly.
11052 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11053 Adjust to new preferred_sequence_p.
11054 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11055 * keyboard.c (parse_solitary_modifier): Not static any more.
11056 * keyboard.h (parse_solitary_modifier): Declare.
11057
11058 2008-07-16 Andreas Schwab <schwab@suse.de>
11059
11060 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11061 of easymenu.
11062
11063 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
11064
11065 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11066 that we don't move off the line.
11067
11068 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11069
11070 * keyboard.c (Qsuper): Remove.
11071 (parse_menu_item): Don't call where_is_internal specially for NS.
11072
11073 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11074
11075 * s/gnu-linux.h: Remove boilerplate comments.
11076
11077 * m/alpha.h (__ELF__): Consolidate conditions.
11078
11079 * m/m68k.h (linux): Use GNU_LINUX instead.
11080 Remove boilerplate comments.
11081
11082 * m/intel386.h: Undo refactoring from previous change.
11083 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11084 too, remove dead code.
11085 (linux): Use GNU_LINUX instead.
11086
11087 2008-07-16 Jason Rumney <jasonr@gnu.org>
11088
11089 * w32gui.h: Repeat 26 June changes lost by last change.
11090
11091 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11092
11093 * systty.h: Remove code for Aix on 386, unsupported platform.
11094
11095 * s/ms-w32.h: Remove boilerplate comments.
11096 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11097
11098 * s/gnu-linux.h (TERM): Remove support.
11099 (HAVE_SYSVIPC): Remove, unused.
11100 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11101 for this system.
11102
11103 * process.c: Remove support for IRIS, unused.
11104 Remove support for TERM, not relevant anymore.
11105
11106 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11107 used with the definition.
11108
11109 * s/aix4-2.h (static): Do not undef.
11110
11111 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11112 only used on Aix.
11113 (HAVE_SYSVIPC): Remove, unused.
11114
11115 * m/hp800.h (CANNOT_DUMP): Do not undef.
11116
11117 * m/alpha.h: Fix comment.
11118
11119 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11120 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11121 used by this configuration.
11122 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11123 * unexec.c: Remove code depending on HPUX and
11124 USG_SHARED_LIBRARIES, not used with this file. Remove code
11125 depending on IRIS, unused. Remove if 0-ed code.
11126
11127 * s/template.h: Remove comments about static.
11128
11129 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11130 Remove if 0-ed code.
11131 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11132 were the same as the default.
11133 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11134 Remove boilerplate comments.
11135 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11136 (HAVE_SYSVIPC): Remove, unused.
11137 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11138
11139 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11140 Remove boilerplate comments.
11141 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11142 Remove boilerplate comments.
11143 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11144 Remove boilerplate comments.
11145 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11146
11147 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11148 USG systems which do not use DATA_SEG_BITS.
11149 Refactor code. Remove boilerplate comments.
11150
11151 * m/ibms390.h:
11152 * m/m68k.h:
11153 * s/bsd-common.h:
11154 * s/cygwin.h:
11155 * s/darwin.h:
11156 * s/freebsd.h:
11157 * s/gnu.h:
11158 * s/msdos.h: Remove boilerplate comments.
11159
11160 * m/iris4d.h: Remove boilerplate comments and code for systems that
11161 do not use this file.
11162 (IRIS_4D): Remove, unused.
11163
11164 * m/mips.h: Remove boilerplate comments and code for systems that
11165 do not use this file.
11166 (SIGN_EXTEND_CHAR):
11167 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11168 * unexmips.c: Remove file, unused.
11169
11170 * editfns.c (Fuser_full_name): Replace the only use of
11171 USER_FULL_NAME with its value.
11172 * config.in: Regenerate.
11173
11174 2008-07-16 David Reitter <david.reitter@gmail.com>
11175
11176 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11177 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11178
11179 2008-07-16 Glenn Morris <rgm@gnu.org>
11180
11181 * emacs.c (system-type): Doc fix.
11182
11183 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11184
11185 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11186 If the cache doesn't work, let's fix it, rather than work around it.
11187
11188 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11189
11190 * Makefile.in: Correct additions for nsfont.o in last commit.
11191 * nsfont.m: New file (forgot last commit).
11192
11193 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11194
11195 * callproc.c (set_initial_environment): Initialize
11196 Vprocess_environment under CANNOT_DUMP (fixes crash when
11197 batch-compiling for bootstrap).
11198
11199 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11200 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11201
11202 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11203 fix crash due to different init order.
11204
11205 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11206
11207 Changes and additions for NeXTstep windowing system (Cocoa and
11208 GNUstep) support.
11209
11210 * Makefile.in:
11211 * config.in: Support defines and build commands for NS port.
11212 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11213 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11214 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11215 windowing.
11216 (struct face): Add synth_ital field.
11217 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11218 (init_display): Initialize Vinitial_window_system to "ns" when so
11219 compiled.
11220 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11221 (display_arg): Use under NS.
11222 (main): Under NS, allocate autorelease pool and handle command line
11223 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11224 (standard_args): Add NS-specific args.
11225 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11226 * font.c (DEFAULT_ENCODING): New variable.
11227 (font_find_for_lface): Use it.
11228 (syms_of_font): Load syms_of_nsfont under NS.
11229 * font.h: Declare nsfont_driver when compiled under NS.
11230 * fontset.c: When compiling under NS, include nsterm.h.
11231 (fontset_from_font): Autoconstruct fontset under NS.
11232 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11233 symbol, document and use it.
11234 (do_switch_frame): When for_deletion under Cocoa, add
11235 Fraise_frame(Qnil).
11236 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11237 (x_get_arg): Allow "yes" and "no" as boolean values.
11238 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11239 Qright under Cocoa.
11240 (focus-follows-mouse): Default to 0 under NS.
11241 * frame.h (enum output_method): Add output_ns.
11242 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11243 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11244 (FRAME_WINDOW_P): NS-specific definition.
11245 * fringe.c (max_used_fringe_bitmap): Make public.
11246 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11247 (getloadavg): Use NeXT code under descendant OS's.
11248 * image.c (includes and header section, x_create_bitmap_from_data)
11249 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11250 (image_background_transparent, x_clear_image_1)
11251 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11252 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11253 (x_to_xcolors, x_from_xcolors, x_disable_image)
11254 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11255 other GUIs, including XPM support using code originally written for
11256 Carbon GUI.
11257 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11258 using NS API.
11259 (image_ascent): Use font metrics macros instead of direct struct field
11260 access.
11261 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11262 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11263 Also, handle NS as GTK for menu bar purposes.
11264 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11265 toolkit where they differ.
11266 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11267 use cachelist, still needed under NS.
11268 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11269 (struct widget_value): Define it here for menu.c.
11270 * keymap.c (includes): Include modifier internals.
11271 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11272 NS.
11273 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11274 support for preferring sequences using certain modifiers, specified by
11275 the FIRSTONLY argument.
11276 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11277 under NS GNUstep implementation.
11278 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11279 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11280 * menu.c: Include nsterm.h under NS.
11281 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11282 (free_menubar_widget_tree_value, update_submenu_strings)
11283 (find_and_call_menu_selection): Treat NS as X and NT.
11284 (find_and_return_menu_selection): New function, used for popup menus.
11285 * nsgui.h:
11286 * nsterm.h:
11287 * nsfns.m:
11288 * nsimage.m:
11289 * nsmenu.m:
11290 * nsselect.m:
11291 * nsterm.m: New files.
11292 * process.c (wait_reading_process_output): Under NS, call ns_select()
11293 instead of plain select().
11294 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11295 beginning of buffer.
11296 * sysselect.h (init_process): Rename when compiling under Cocoa to
11297 avoid name conflict.
11298 * termhooks.h (display_info): Add ns_display_info to union.
11299 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11300 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11301 COCOA environment.
11302 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11303 unexec() signature. (Note, this will dump, but the resulting file
11304 crashes; unexosx is used instead; keeping around for reference and
11305 possible aid in getting dump working under GNUstep.)
11306 * w32gui.h (button_type, widget_value): Remove definitions (now in
11307 keyboard.h).
11308 * window.c: Include nsterm.h when compiling under NS.
11309 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11310 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11311 other GUI windowing systems.
11312 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11313 GTK.
11314 (x_consider_frame_title): Under NS, set icon type and frame
11315 modified-state indicator; use ns_set_name_as_filename() when using
11316 formatted title.
11317 (update_window_cursor): Make public when compiling under NS.
11318 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11319 (hourglass_atimer, Vhourglass_delay
11320 * xfaces.c (header section, init_frame_faces, clear_font_table)
11321 (defined_color, unload_color, x_face_list_fonts)
11322 (prepare_face_for_display): Add NS support parallel to other GUIs.
11323 Emulate GCs like other non-X GUIs.
11324 (split_font_name): Don't lowercase font name under NS.
11325 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11326 under NS.
11327 * s/darwin.h: Add support for compilation under NS.
11328
11329 2008-07-15 Jason Rumney <jasonr@gnu.org>
11330
11331 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11332 (w32_show_hourglass): Rename from show_hourglass.
11333 (w32_hide_hourglass): Rename from hide_hourglass.
11334 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11335 (Vhourglass_delay): Declare extern.
11336 (hourglass_started): Remove.
11337
11338 * xdisp.c (Vhourglass_delay): Remove static.
11339 (hourglass_started, start_hourglass, cancel_hourglass):
11340 Don't include these versions on WINDOWSNT.
11341
11342 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11343
11344 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11345 variables (formerly in xfns.c).
11346 (show_hourglass, hide_hourglass): New prototypes (same).
11347 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11348 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11349 in xfns.c).
11350 (syms_of_xdisp): Declare/initialize display-hourglass,
11351 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11352 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11353 formerly in xfns.c.
11354 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11355 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11356 (start_hourglass, cancel_hourglass): Remove.
11357 (show_hourglass, hide_hourglass): Remove prototypes and static
11358 modifiers.
11359 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11360 hourglass_atimer, hourglass_shown_p declaration/initialization.
11361 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11362 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11363 (start_hourglass, cancel_hourglass): Remove.
11364 (show_hourglass, hide_hourglass): Remove prototypes and static
11365 modifiers.
11366 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11367 hourglass_atimer, hourglass_shown_p declaration/initialization.
11368 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11369 (DEFAULT_HOURGLASS_DELAY): Remove.
11370 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11371 hourglass_shown_p declaration/initialization.
11372
11373 2008-07-14 Jason Rumney <jasonr@gnu.org>
11374
11375 * w32fns.c (w32_get_arg): Remove wrapper function.
11376 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11377 directly.
11378 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11379
11380 2008-07-14 Kenichi Handa <handa@m17n.org>
11381
11382 * xfont.c (xfont_open): Add workaround for X's bug.
11383
11384 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11385
11386 * fontset.c: Include <stdio.h> unconditionally.
11387
11388 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
11389
11390 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11391 for filtering.
11392
11393 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11394
11395 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11396
11397 * m/macppc.h:
11398 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11399
11400 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11401 (SPECIAL_EMACS_INT):
11402 * m/ia64.h (SPECIAL_EMACS_INT):
11403 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11404 * s/gnu.h (NLIST_STRUCT):
11405 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11406 * s/gnu-linux.h (LINUX):
11407 * s/msdos.h (HAVE_FACES):
11408 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11409
11410 * systty.h:
11411 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11412 anymore.
11413
11414 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11415
11416 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11417 always defined as int.
11418
11419 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11420 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11421 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11422 * s/freebsd.h (HAVE_WAIT_HEADER):
11423 * s/bsd-common.h (HAVE_UNION_WAIT):
11424 * s/aix4-2.h (HAVE_WAIT_HEADER):
11425 * m/mips.h (HAVE_UNION_WAIT):
11426 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11427 (COFF, static): Do not define, they are undefined later in the file.
11428
11429 * process.c (update_status): Don't use a union.
11430 (status_convert):
11431 (sigchld_handler): Use int instead of WAITTYPE.
11432
11433 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
11434
11435 * indent.c (Fvertical_motion): Restore hscroll before moving to
11436 goal column.
11437
11438 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11439
11440 * lisp.h: Remove left over code.
11441
11442 2008-07-11 Andreas Schwab <schwab@suse.de>
11443
11444 * lisp.h: Fix logic in last change.
11445
11446 * menu.h: New file.
11447 * menu.c: Include it.
11448 * xmenu.c: Likewise.
11449 * Makefile.in: Update dependencies.
11450
11451 2008-07-11 Kenichi Handa <handa@m17n.org>
11452
11453 * fontset.c (fontset_from_font): Cancel the previous change.
11454
11455 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11456
11457 * lisp.h:
11458 * w32heap.c:
11459 * emacs.c:
11460 * alloc.c: Replace all references of NO_UNION_TYPE with
11461 USE_LISP_UNION_TYPE.
11462
11463 * m/xtensa.h (NO_UNION_TYPE):
11464 * m/vax.h (NO_UNION_TYPE):
11465 * m/template.h (NO_UNION_TYPE):
11466 * m/sparc.h (NO_UNION_TYPE):
11467 * m/mips.h (NO_UNION_TYPE):
11468 * m/macppc.h (NO_UNION_TYPE):
11469 * m/m68k.h (NO_UNION_TYPE):
11470 * m/iris4d.h (NO_UNION_TYPE):
11471 * m/intel386.h (NO_UNION_TYPE):
11472 * m/ibms390x.h (NO_UNION_TYPE):
11473 * m/ibms390.h (NO_UNION_TYPE):
11474 * m/ibmrs6000.h (NO_UNION_TYPE):
11475 * m/ia64.h (NO_UNION_TYPE):
11476 * m/hp800.h (NO_UNION_TYPE):
11477 * m/arm.h (NO_UNION_TYPE):
11478 * m/amdx86-64.h (NO_UNION_TYPE):
11479 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11480 defining it the same.
11481
11482 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
11483
11484 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11485
11486 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11487
11488 * fileio.c:
11489 * sysdep.c:
11490 * systty.h:
11491 * m/ibmrs6000.h:
11492 * m/iris4d.h:
11493 * s/aix4-2.h:
11494 * s/freebsd.h:
11495 * s/gnu-linux.h:
11496 * s/hpux10-20.h:
11497 * s/hpux11.h:
11498 * s/netbsd.h:
11499 * s/sol2-3.h:
11500 * s/sol2-4.h:
11501 * s/sol2.h:
11502 * s/usg5-4.h:
11503 * s/vms.h: Remove references to unused variables.
11504
11505 2008-07-10 Andreas Schwab <schwab@suse.de>
11506
11507 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11508 pattern before matching the generic family.
11509
11510 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11511
11512 * unexec.c:
11513 * s/vms.h:
11514 * s/usg5-4-2.h:
11515 * s/sol2-5.h:
11516 * s/freebsd.h:
11517 * s/darwin.h: Remove dead code.
11518
11519 * m/template.h:
11520 * m/sparc.h:
11521 * m/mips.h:
11522 * m/m68k.h:
11523 * m/iris4d.h:
11524 * m/intel386.h:
11525 * m/ibms390x.h:
11526 * m/ibms390.h:
11527 * m/ia64.h:
11528 * m/hp800.h:
11529 * m/arm.h:
11530 * m/amdx86-64.h: Remove dead code and references to unused
11531 and compiler defined symbols.
11532
11533 * unexmips.c:
11534 * unexelf.c: Remove references to desupported systems.
11535
11536 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11537
11538 * m/powermac.h: Remove boilerplate comments.
11539 (NO_REMAP): Remove unused definition.
11540
11541 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11542 define them.
11543
11544 2008-07-10 Kenichi Handa <handa@m17n.org>
11545
11546 * xfont.c (xfont_open): Log the reason of failure.
11547
11548 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11549
11550 * fontset.c (fontset_get_font_group):
11551 * font.c (font_check_otf): Specify argument types.
11552
11553 2008-07-09 Kenichi Handa <handa@m17n.org>
11554
11555 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11556 non-ASCII char is found.
11557
11558 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11559 (reorder_font_vector): Change the arg preferred_family to font.
11560 Prefer the spec matching with font.
11561 (fontset_get_font_group): New function.
11562 (fontset_find_font): Change the format of an element of a realized
11563 fontset. Use fontset_get_font_group.
11564 (fontset_font): Try the current fontset, the default fontset, the
11565 fallbacks of the current fontset, and the fallbacks of the default
11566 fontset in this order.
11567 (face_for_char): Delete the shortcut to use the current font.
11568 (fontset_from_font): Don't set fonts for Latin in the fontset.
11569
11570 * font.h (font_make_object, font_match_p): Adjust prototypes.
11571
11572 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11573
11574 * font.c (font_make_object): New arg entity and pixelsize.
11575 (font_check_otf_features, font_check_otf): New functions.
11576 (font_match_p): Check :lang, :script, and :otf properties.
11577
11578 * xfont.c (xfont_open): Adjust it for the change of
11579 font_make_object.
11580 (xfont_text_extents): Fix initial setting of metrics.
11581
11582 * ftfont.c (struct ftfont_info): New member index, delete member
11583 fc_charset_idx. Make the member order compatible with struct
11584 xftfont_info.
11585 (fc_charset_table): Change charset names to registry names.
11586 (ftfont_pattern_entity): Delete the args registry and
11587 fc_charset_idx. Change the value of :font-entity property
11588 to (FONTNAME . INDEX). Always set :registry property to
11589 `iso10646-1'.
11590 (struct ftfont_cache_data): New struct.
11591 (ftfont_lookup_cache): New arg for_face.
11592 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11593 (ftfont_driver): Set the member otf_capability.
11594 (ftfont_get_charset): Adjust it for the change of
11595 fc_charset_table.
11596 (OTF_TAG_SYM): New macro.
11597 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11598 for the change of fc_charset_table.
11599 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11600 ftfont_pattern_entity. Add FC_INDEX to objset.
11601 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11602 and ftfont_pattern_entity.
11603 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11604 font_make_object, struct ftfont_info.
11605 (ftfont_has_char): Use ftfont_get_fc_charset.
11606 (ftfont_otf_features, ftfont_otf_capability): New functions.
11607 (ftfont_shape): Use ftfont_get_otf.
11608 (ftfont_text_extents): Fix initial setting of metrics.
11609
11610 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11611 member order compatible with struct ftfont_info.
11612 (xftfont_open): Add FC_CHARSET to the pattern. Set
11613 xftfont_info->ft_size. Don't unlock the face. Check BDF
11614 properties if appropriate.
11615 (xftfont_close): Unlock the face.
11616 (xftfont_anchor_point, xftfont_shape): Deleted.
11617 (syms_of_xftfont): Don't set members anchor_point and shape of
11618 xftfont_driver.
11619
11620 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11621 font_make_object.
11622
11623 * w32font.c (w32font_open): Adjust it for the change of
11624 font_make_object.
11625 (w32font_open_internal): Don't set properties of font_object here.
11626
11627 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
11628
11629 * macfns.c (x_create_tip_frame):
11630 * w32fns.c (x_create_tip_frame):
11631 * xfns.c (x_create_tip_frame): Pass parameter argument to
11632 face-set-after-frame-default.
11633
11634 * xfaces.c (Finternal_merge_in_global_face): Save merged
11635 attributes for the default face back into the face vector.
11636
11637 2008-07-08 Andreas Schwab <schwab@suse.de>
11638
11639 * fontset.h: Declare fontset_from_font. Don't declare
11640 new_fontset_from_font and fontset_from_font_name.
11641 * xterm.c: Include "fontset.h".
11642 * Makefile.in (xterm.o): Update dependencies.
11643
11644 2008-07-08 Glenn Morris <rgm@gnu.org>
11645
11646 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11647 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11648
11649 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
11650
11651 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11652 (x_set_frame_parameters): Don't bind it.
11653
11654 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
11655
11656 * w32fns.c (map_w32_filename): Declare extern.
11657
11658 2008-07-07 Jason Rumney <jasonr@gnu.org>
11659
11660 * w32term.c (WS_EX_LAYERED): Define if not already.
11661
11662 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
11663
11664 * xfaces.c (set_font_frame_param): Don't try to set the font
11665 parameter if it is still unspecified in the lface.
11666
11667 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11668
11669 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11670 face if it didn't already exist.
11671
11672 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11673
11674 2008-07-05 Andreas Schwab <schwab@suse.de>
11675
11676 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11677
11678 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11679
11680 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11681 word-wrapping.
11682 (IT_DISPLAYING_WHITESPACE): New macro.
11683 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11684 when word-wrapping. Simplify word-wrapping logic. Use correct
11685 pixel positions when saving copies of the iterator.
11686 (display_line): Use proper wrap point if the last character on a
11687 line was preceded by whitespace.
11688
11689 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11690
11691 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11692
11693 2008-07-04 Kenichi Handa <handa@m17n.org>
11694
11695 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11696
11697 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11698
11699 2008-07-02 Jason Rumney <jasonr@gnu.org>
11700
11701 * xfns.c (syms_of_xfns): Only define x-select-font when both
11702 HAVE_FREETYPE and USE_GTK.
11703
11704 * xdisp.c (next_element_from_display_vector): Move assignment out
11705 of if statement.
11706
11707 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11708
11709 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11710
11711 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11712 (syms_of_fileio): Initialize and export them.
11713 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11714
11715 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11716 (Fsystem_move_file_to_trash): New function.
11717 (syms_of_w32fns): Export it to lisp.
11718
11719 2008-07-01 Jason Rumney <jasonr@gnu.org>
11720
11721 * w32font.c (w32font_text_extents): Don't count overhang as part
11722 of width.
11723
11724 2008-06-30 Miles Bader <miles@gnu.org>
11725
11726 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11727 Add `avoid_cursor_p' field.
11728
11729 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11730 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11731 (append_glyph, append_composite_glyph, produce_image_glyph)
11732 (append_stretch_glyph): Initialize avoid_cursor_p.
11733 (get_it_property): Rename from `get_line_height_property'.
11734 (x_produce_glyphs): Use get_it_property.
11735 (handle_line_prefix, push_display_prop): New functions.
11736 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11737 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11738 New variables.
11739 (syms_of_xdisp): Initialize them.
11740
11741 2008-06-30 Kenichi Handa <handa@m17n.org>
11742
11743 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11744 XftDefaultSubstitute (they are called in XftFontMatch).
11745 (xftfont_open): Fix args to ftfont_font_format.
11746
11747 * ftfont.c (fc_charset_table): New member lang.
11748 (ftfont_resolve_generic_family): New arg pattern.
11749 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
11750 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11751 (ftfont_open): Fix args to ftfont_font_format.
11752 (ftfont_font_format): New arg filename.
11753
11754 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
11755
11756 * xfaces.c (Finternal_merge_in_global_face): If default face was
11757 modified, realize it again. Update the font face attribute.
11758
11759 2008-06-29 Jason Rumney <jasonr@gnu.org>
11760
11761 * w32term.c (x_set_frame_alpha): Fix logic.
11762
11763 2008-06-29 Kenichi Handa <handa@m17n.org>
11764
11765 * fontset.c (Finternal_char_font): Return font-object instead of
11766 font-name.
11767
11768 * composite.c (get_composition_id): Fix the width calculation for TAB.
11769
11770 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11771
11772 * indent.c (Fvertical_motion): Properly handle float column arg.
11773
11774 2008-06-28 Jason Rumney <jasonr@gnu.org>
11775
11776 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11777 (pfnSetLayeredWindowAttributes): New function pointer.
11778 (w32_initialize): Initialize it when supported.
11779 (x_set_frame_alpha): New function.
11780
11781 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11782 (w32_frame_parm_handlers): Set alpha handler.
11783
11784 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11785
11786 2008-06-27 Jason Rumney <jasonr@gnu.org>
11787
11788 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11789 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11790 (w32_to_x_charset, x_to_w32_charset)
11791 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11792 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11793 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11794 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11795 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11796 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11797 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11798 (Qw32_charset_unicode): Remove.
11799 (syms_of_w32fns): Update for above changes.
11800
11801 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11802 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11803 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11804 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11805 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11806 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11807 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11808 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11809 (syms_of_w32font): Update for above changes.
11810
11811 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11812
11813 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11814 removed #if.
11815 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11816
11817 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11818 Eli Zaretskii <eliz@gnu.org>
11819
11820 * makefile.w32-in (LOCAL_FLAGS):
11821 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11822
11823 * sysdep.c (_spawnlp, _getpid):
11824 Declare with explicit _cdecl instead of _CRTAPI1.
11825
11826 * editfns.c (Fget_internal_run_time):
11827 Check for WINDOWSNT with #ifdef, not #if.
11828
11829 2008-06-26 Jason Rumney <jasonr@gnu.org>
11830
11831 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11832
11833 * w32term.c (x_draw_glyph_string_foreground)
11834 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11835 Use FONT_HANDLE macro.
11836 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11837
11838 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11839 (uniscribe_encode_char): Use FONT_HANDLE macro.
11840
11841 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11842 (w32font_text_extents): Use precast w32_font.
11843 (w32font_close): Free cached metrics.
11844 (w32font_open_internal): Allocate space for name on stack.
11845
11846 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
11847
11848 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11849
11850 2008-06-26 Jason Rumney <jasonr@gnu.org>
11851
11852 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11853 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11854
11855 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11856
11857 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11858
11859 2008-06-26 Jason Rumney <jasonr@gnu.org>
11860
11861 * w32bdf.c, w32bdf.h: Remove obsolete files.
11862
11863 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11864
11865 * w32gui.h: Don't include w32bdf.h.
11866 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11867 Remove obsolete font support.
11868
11869 * w32font.h (struct w32font_info): Remove compat_w32_font.
11870 Add hfont member.
11871 (FONT_COMPAT): Remove obsolete macro.
11872
11873 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11874 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11875 (w32font_open_internal): Remove compat code. Set new hfont member.
11876 (Fx_select_font): Use new hfont member.
11877
11878 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11879 (uniscribe_encode_char): Use new hfont member.
11880
11881 * w32term.c (x_draw_glyph_string_foreground)
11882 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11883 (x_draw_glyph_string): Use metrics in w32font_info.
11884
11885 2008-06-26 Kenichi Handa <handa@m17n.org>
11886
11887 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11888
11889 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11890
11891 * unexnext.c:
11892 * m/ews4800.h:
11893 * m/hp9000s300.h:
11894 * m/ibm370aix.h:
11895 * m/mips-siemens.h:
11896 * m/ncr386.h:
11897 * m/next.h:
11898 * m/pmax.h:
11899 * m/powerpcle.h:
11900 * m/tandem-s2.h:
11901 * s/386bsd.h:
11902 * s/bsd386.h:
11903 * s/bsd4-1.h:
11904 * s/bsd4-2.h:
11905 * s/bsdos2-1.h:
11906 * s/bsdos2.h:
11907 * s/bsdos3.h:
11908 * s/bsdos4.h:
11909 * s/nextstep.h:
11910 * s/ultrix4-3.h:
11911 * s/usg5-0.h:
11912 * s/usg5-2-2.h:
11913 * s/usg5-2.h:
11914 * s/usg5-4-3.h:
11915 * s/ux4800.h:
11916 * s/uxpds.h:
11917 * s/uxpv.h: Remove support for obsolete systems.
11918 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
11919 Remove, insert contents in s/hpux10-20.h.
11920 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11921 Remove, insert contents in s/aix4-2.h.
11922 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11923 * s/bsd4-3.h: Rename to ...
11924 * s/bsd-common.h: ... this.
11925 * data.c:
11926 * doc.c:
11927 * ecrt0.c:
11928 * emacs.c:
11929 * fileio.c:
11930 * floatfns.c:
11931 * keyboard.c:
11932 * mem-limits.h:
11933 * print.c:
11934 * process.c:
11935 * sysdep.c:
11936 * syssignal.h:
11937 * systty.h:
11938 * syswait.h:
11939 * term.c:
11940 * unexec.c:
11941 * unexelf.c:
11942 * unexhp9k800.c:
11943 * m/hp800.h:
11944 * m/ibmrs6000.h:
11945 * m/mips.h:
11946 * m/vax.h:
11947 * s/darwin.h:
11948 * s/freebsd.h:
11949 * s/gnu.h:
11950 * s/ms-w32.h:
11951 * s/msdos.h:
11952 * s/netbsd.h:
11953 * s/template.h: Remove references to obsolete variables.
11954
11955 * Makefile.in: Add dependencies for all unexec files.
11956 (admindir): Remove unused variable.
11957 (UNEXEC_SRC): Remove references.
11958
11959 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
11960
11961 * xfns.c (x_default_font_parameter): If Xft is available, first
11962 try Monospace-12 for the default font.
11963
11964 2008-06-25 Jason Rumney <jasonr@gnu.org>
11965
11966 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11967
11968 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11969
11970 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11971
11972 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11973
11974 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
11975
11976 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11977 <scroll-conservatively>: Fix typo in docstring.
11978
11979 * xselect.c (Fx_send_client_event): Doc fix.
11980
11981 2008-06-25 Kenichi Handa <handa@m17n.org>
11982
11983 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11984
11985 * font.c (font_parse_fcname): Remove unused variables.
11986 (font_sort_entites): Delete the arg SPEC. Caller changed.
11987 Fix for the case of ! best_only.
11988 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11989
11990 * lisp.h (Fstring_to_unibyte): EXFUN it.
11991
11992 * character.h (str_to_unibyte): Extern it.
11993
11994 * character.c (str_to_unibyte): New function.
11995
11996 * fns.c (Fstring_to_unibyte): New function.
11997 (syms_of_fns): Defsubr it.
11998
11999 2008-06-24 Kenichi Handa <handa@m17n.org>
12000
12001 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12002 DPI too.
12003 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12004
12005 2008-06-24 Andreas Schwab <schwab@suse.de>
12006
12007 * Makefile.in (${lispsource}loaddefs.el): Rename from
12008 ../lisp/loaddefs.el.
12009 (bootstrap-clean): Do what distclean does but don't remove
12010 Makefile.
12011 (distclean): Depend on bootstrap-clean and remove Makefile.
12012
12013 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
12014
12015 * buffer.h (struct buffer): New member word_wrap.
12016
12017 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12018 word-wrap.
12019 (init_buffer_once): Initialize them.
12020
12021 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12022 line_wrap enum possessing three possible values.
12023
12024 * termopts.h: Replace truncate_partial_width_windows with
12025 Vtruncate_partial_width_windows.
12026
12027 * dispnew.c (direct_output_for_insert): Avoid direct output when
12028 inserting a space with word wrap on.
12029
12030 * indent.c (compute_motion): Obey integer values of
12031 truncate-partial-width-windows.
12032
12033 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12034 replacing truncate_partial_width_windows.
12035 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12036 truncate only if the window width is below that integer.
12037 (start_display, resize_mini_window, produce_stretch_glyph)
12038 (display_string, move_it_in_display_line_to): Use line_wrap.
12039 (back_to_previous_visible_line_start, reseat_1): Reset
12040 string_from_display_prop_p.
12041 (display_line): Extend default face to end of line when wrapping.
12042
12043 2008-06-24 Kim F. Storm <storm@cua.dk>
12044
12045 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12046 to wrap continued lines at word boundaries.
12047
12048 2008-06-24 Jason Rumney <jasonr@gnu.org>
12049
12050 * font.c (Ffont_face_attributes): Multiply pixel size before point
12051 conversion to avoid multiplying rounding error.
12052
12053 2008-06-23 Jason Rumney <jasonr@gnu.org>
12054
12055 * w32term.c (x_draw_glyph_string_background)
12056 (x_draw_glyph_string): Remove old bdf font code.
12057
12058 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12059
12060 2008-06-22 Kenichi Handa <handa@m17n.org>
12061
12062 * font.c (font_find_for_lface): Try the adstyle specified in
12063 the property of LFACE_FONT of LFACE (if any).
12064
12065 2008-06-21 Seiji Zenitani <zenitani@mac.com>
12066 Ryo Yoshitake <ryo@shiftmode.net>
12067
12068 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12069
12070 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12071
12072 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12073 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12074 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12075 (witness-emacs): Remove.
12076 (lisp, shortlisp): Move loaddefs.el earlier.
12077 (mostlyclean): Forget about witness-emacs.
12078
12079 2008-06-22 Glenn Morris <rgm@gnu.org>
12080
12081 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12082 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12083
12084 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12085
12086 * Makefile.in (PRECOMP): Remove.
12087 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12088 (witness-emacs): Run `compile-first'.
12089 (.el.elc): Use the new compile-onefile target.
12090
12091 2008-06-21 Kenichi Handa <handa@m17n.org>
12092
12093 * xftfont.c (xftfont_open): Handle QCembolden only when
12094 FC_EMBOLDEN is defined.
12095
12096 2008-06-21 Andreas Schwab <schwab@suse.de>
12097
12098 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12099 (.el.elc): Likewise.
12100
12101 2008-06-21 Miles Bader <miles@gnu.org>
12102
12103 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12104 build dir, not the lisp source dir.
12105
12106 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12107
12108 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12109 (bootstrapclean): Remove.
12110 (.el.elc): New rule.
12111 (PRECOMP): New var.
12112 (../lisp/subdirs.el): Remove.
12113 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12114 (witness-emacs): New target.
12115 (mostlyclean): Remove witness-emacs as well.
12116 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12117 Add witness-emacs dependency.
12118
12119 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
12120
12121 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12122 defined by the font.
12123
12124 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12125
12126 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12127 (bootstrap-clean): New target that keeps TAGS around.
12128 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12129 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12130
12131 2008-06-20 Jason Rumney <jasonr@gnu.org>
12132
12133 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12134 Remove obsolete font code.
12135
12136 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12137 to determine language support.
12138
12139 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12140
12141 * sysdep.c (cfsetspeed): New fun extracted from the code.
12142 (cfmakeraw): Move before first use.
12143
12144 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12145
12146 * sysdep.c (cfmakeraw): Provide fallback implementation.
12147 (serial_configure): Provide fallback implementation of cfsetspeed.
12148
12149 2008-06-20 Kenichi Handa <handa@m17n.org>
12150
12151 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12152 the pattern.
12153
12154 * fontset.c (fontset_from_font): Copy font_spec before changing
12155 the elements.
12156
12157 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12158
12159 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12160
12161 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12162 for explicit `font' parameters.
12163
12164 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12165
12166 2008-06-19 Kenichi Handa <handa@m17n.org>
12167
12168 * frame.c: Include <ctype.h>.
12169 (x_set_font_backend): Allow spacing characters in the X resource
12170 for FontBackend.
12171
12172 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12173
12174 * w32fns.c, xfns.c (Qfont_param): New var.
12175 (syms_of_w32fns): Initialize it.
12176 (x_default_font_parameter): Record explicit `font' into
12177 `font-parameter'.
12178
12179 2008-06-18 Kenichi Handa <handa@m17n.org>
12180
12181 * font.c (font_parse_xlfd): Fix previous change.
12182 (font_parse_fcname): Don't use :fc-unknown-spec.
12183 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12184 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12185 (font_add_log): Prepend the driver name to the resulting fonts.
12186
12187 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12188 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12189 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12190
12191 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12192 (QCembolden): New variables.
12193 (syms_of_xftfont): DEFSYM them.
12194 (xftfont_open): Call XftFontMatch. Don't trust the result of
12195 XftTextExtents8 if the pixel_size is less than 5.
12196
12197 2008-06-18 Andreas Schwab <schwab@suse.de>
12198
12199 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12200 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12201
12202 2008-06-18 Jason Rumney <jasonr@gnu.org>
12203
12204 * w32font.c (w32font_list, w32font_match): Add logging.
12205
12206 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12207
12208 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
12209
12210 * font.c (font_parse_fcname): Store divider characters for
12211 unknown-spec list. For known key symbols, intern using correct
12212 symbol name.
12213
12214 2008-06-17 Kenichi Handa <handa@m17n.org>
12215
12216 * xfaces.c (realize_default_face): If the frame is not on window
12217 system, set the fontset of face to nil.
12218
12219 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12220
12221 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12222
12223 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
12224
12225 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12226 (build_font_name_from_vector): Delete externs.
12227
12228 * xfaces.c (struct font_name): Don't declare.
12229
12230 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12231
12232 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12233
12234 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
12235
12236 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12237
12238 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
12239
12240 * font.c (Ffont_spec): Fix usage in docstring.
12241 (Ffont_face_attributes): Doc fix.
12242
12243 2008-06-16 Andreas Schwab <schwab@suse.de>
12244
12245 * font.c (Ffont_face_attributes): Fix definition.
12246
12247 2008-06-16 Jason Rumney <jasonr@gnu.org>
12248
12249 * font.h (font_style_symbolic_from_value): Remove.
12250
12251 * font.c (font_style_symbolic_from_value): Remove.
12252 (font_style_symbolic): Revert to pre 2008-06-13 version.
12253
12254 * w32font.c (w32_to_fc_weight): New function.
12255 (w32font_full_name, logfont_to_fcname): Use it.
12256
12257 2008-06-16 Kenichi Handa <handa@m17n.org>
12258
12259 * font.c (font_check_object): Delete it.
12260 (font_clear_cache): Check if a font-object is alive.
12261 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12262 font-object to nil.
12263 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12264 (font_at): Don't call font_check_object.
12265 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12266
12267 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12268
12269 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12270
12271 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
12272
12273 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12274
12275 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
12276
12277 * font.c (font_parse_fcname): Only one decimal point.
12278 (font_unparse_fcname): Handle data in family and foundry indices
12279 as symbols, not strings.
12280 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12281
12282 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12283
12284 * font.h (font_unparse_gtkname): Add prototype.
12285
12286 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12287
12288 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12289
12290 2008-06-15 Andreas Schwab <schwab@suse.de>
12291
12292 * font.c (font_update_drivers): Fix crash when no drivers match.
12293
12294 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12295
12296 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12297 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12298
12299 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12300
12301 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12302
12303 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12304
12305 * process.c (Fserial_process_configure, Fprocess_send_eof):
12306 Use EQ to compare Lisp_Objects.
12307
12308 2008-06-13 Jason Rumney <jasonr@gnu.org>
12309
12310 * w32fns.c (Fw32_select_font): Remove old font API function.
12311
12312 * w32font.c (logfont_to_fcname): New function.
12313 (Fx_select_font): New font dialog function compatible with
12314 GTK/fontconfig version.
12315
12316 * font.c (font_style_symbolic_from_value): New function.
12317 (font_style_symbolic): Use it.
12318
12319 * font.h (font_style_symbolic_from_value): Declare new function.
12320
12321 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
12322
12323 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12324 <font-width-table>: Fix typos in docstrings.
12325
12326 2008-06-13 Daniel Engeler <engeler@gmail.com>
12327
12328 These changes add serial port access.
12329 * process.c: Add HAVE_SERIAL.
12330 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12331 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12332 (list_processes_1, select_wrapper, Fstop_process)
12333 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12334 (status_notify): Modify to handle serial processes.
12335 [HAVE_SERIAL] (Fserial_process_configure)
12336 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12337 New functions.
12338 * process.h (struct Lisp_Process): Add `type'.
12339 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12340 New functions.
12341 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12342 serial ports.
12343 (serial_open, serial_configure): New functions.
12344 * w32.h: Add FILE_SERIAL.
12345 (struct _child_process): Add ovl_read, ovl_write.
12346
12347 2008-06-13 Kenichi Handa <handa@m17n.org>
12348
12349 * dispextern.h (enum lface_attribute_index): New member
12350 LFACE_FOUNDRY_INDEX.
12351
12352 * font.c (font_score): Delete arg alternate_families. Check only
12353 weight, slant, width, and size. Ignore the difference of alias
12354 style symbols.
12355 (font_sort_entites): Adjust for the above change. Reflect the
12356 order of font-driver to scores.
12357 (font_list_entities): Don't check alternate_familes here.
12358 (font_clear_prop): Handle foundry.
12359 (font_update_lface): Don't parse "foundry-family" form here.
12360 Handle FONT_FOUNDRY_INDEX.
12361 (font_find_for_lface): Likewise. Handle alternate families here.
12362 If registry is nil, try iso8859-1 and ascii-0.
12363 (font_open_for_lface): Pay attention to size in ENTITY.
12364 (font_open_by_name): Simplify by calling font_load_for_lface.
12365 (free_font_driver_list): Delete it.
12366 (font_update_drivers): Preserve the order of backends.
12367 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12368 of font_score and font_sort_entites.
12369 (font_update_sort_order): Likewise.
12370
12371 * xfaces.c (LFACE_FOUNDRY): New macro.
12372 (check_lface_attrs): Check foundry.
12373 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12374 (merge_face_vectors): Check foundry.
12375 (merge_face_ref): Likewise.
12376 (Finternal_set_lisp_face_attribute): Likewise.
12377 (x_update_menu_appearance): Likewise.
12378 (Finternal_get_lisp_face_attribute): Likewise.
12379 (lface_hash): Likewise.
12380 (lface_same_font_attributes_p): Likewise.
12381 (x_supports_face_attributes_p): Likewise.
12382 (tty_supports_face_attributes_p): Likewise.
12383 (Finternal_set_alternative_font_family_alist): Intern strings.
12384 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12385 (realize_default_face): Set LFACE_FOUNDRY (lface).
12386
12387 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12388 font-driver at first.
12389
12390 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12391
12392 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12393
12394 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12395
12396 2008-06-12 Jim Meyering <meyering@redhat.com>
12397
12398 Make unexec_free handle NULL the same way free does.
12399 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12400
12401 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12402
12403 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12404 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12405 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12406 (WEAK_ALIAS): Simplify.
12407 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12408 when searching a unibyte buffer.
12409
12410 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
12411
12412 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12413
12414 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
12415
12416 * w32font.c: Include ctype.h.
12417
12418 2008-06-11 Jason Rumney <jasonr@gnu.org>
12419
12420 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12421 misreported as space.
12422 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12423 as aliases for registry iso10646-1.
12424
12425 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12426
12427 * buffer.c (clone_per_buffer_values): Skip `name'.
12428
12429 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
12430
12431 * font.c (font_parse_fcname): Fix last change; accept decimal
12432 points in font size.
12433
12434 2008-06-10 Jason Rumney <jasonr@gnu.org>
12435
12436 * w32uniscribe.c (add_opentype_font_name_to_list):
12437 Skip non unicode fonts.
12438
12439 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
12440
12441 * xfns.c (Fx_font_dialog): New function.
12442
12443 * gtkutil.c (xg_dialog_response_cb): Rename from
12444 xg_file_response_callback.
12445 (pop_down_dialog): Rename from pop_down_file_dialog.
12446 (xg_get_file_name): Callers changed.
12447 (xg_get_font_name): New function.
12448
12449 * gtkutil.h (xg_get_font_name): Insert prototype.
12450
12451 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12452
12453 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12454 x_underline_minimum_display_offset.
12455 (syms_of_xdisp): Declare it here rather than in xterm.c.
12456 * dispextern.h (underline_minimum_offset): Declare it.
12457 * w32term.c (x_draw_glyph_string): Use it.
12458 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12459 (syms_of_xterm): Don't declare it any more.
12460 (x_draw_glyph_string): Adjust to the new name.
12461
12462 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
12463
12464 * xterm.c (x_underline_minimum_display_offset): New var.
12465 (x_draw_glyph_string): Use it.
12466 (syms_of_xterm): Declare it.
12467
12468 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
12469
12470 * font.c (font_parse_fcname): Accept GTK-style font names too.
12471
12472 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12473
12474 * dired.c (file_name_completion): Don't return t if the match is exact
12475 but with different capitalization.
12476 * minibuf.c (Ftry_completion): Simplify.
12477
12478 * window.c (Vwindow_point_insertion_type): New var.
12479 (set_window_buffer): Use it.
12480 (syms_of_window): Init and export it to Lisp.
12481
12482 2008-06-10 Kenichi Handa <handa@m17n.org>
12483
12484 * font.h (font_intern_prop): Prototype adjusted.
12485
12486 * font.c (font_intern_prop): New arg force_symbol.
12487 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12488 Adjust for the change of font_intern_prop.
12489
12490 * ftfont.c (ftfont_pattern_entity):
12491 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12492 (w32_registry):
12493 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12494 the change of font_intern_prop.
12495
12496 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
12497
12498 * w32menu.c (digest_single_submenu): Declare extern.
12499
12500 2008-06-09 Jason Rumney <jasonr@gnu.org>
12501
12502 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12503
12504 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12505 (parse_single_submenu): Remove.
12506 (digest_single_submenu): Remove.
12507 (syms_of_w32menu): Don't initialise variables that have moved
12508 to menu.c.
12509 (set_frame_menubar): Sync with version in xmenu.c.
12510 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12511
12512 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12513 Make static again.
12514
12515 2008-06-09 Jason Rumney <jasonr@gnu.org>
12516
12517 Changes to w32 files related to the move of common menu code
12518 to menu.c on 2008-06-08 by Chong Yidong.
12519
12520 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12521 defs to w32gui.h.
12522 (single_keymap_panes, push_menu_item, push_menu_pane):
12523 Make globally visible.
12524
12525 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12526 (local_free, malloc_widget_value, free_widget_value)
12527 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12528 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12529 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12530 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12531 (menu_items, menu_items_allocated, menu_items_used)
12532 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12533 (init_menu_items, finish_menu_items, discard_menu_items)
12534 (grow_menu_items, push_submenu_start, push_submenu_end)
12535 (push_left_right_boundary, push_menu_pane, push_menu_item)
12536 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12537 (free_menubar_widget_tree_value, parse_single_submenu)
12538 (update_submenu_strings): Remove functions.
12539 (xmalloc_widget_value): Remove and declare extern.
12540
12541 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12542 (OBJ1): Build it.
12543
12544 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12545 (local_heap, local_alloc, local_free, malloc_widget_value)
12546 (free_widget_value): Define here.
12547
12548 2008-06-09 Kenichi Handa <handa@m17n.org>
12549
12550 * font.h (Qascii_0): Extern it.
12551
12552 * font.c (Qascii_0): New variable.
12553 (syms_of_font): DEFSYM it.
12554 (font_open_by_name): If the registry "iso8859-1" fails, try also
12555 "ascii-0".
12556
12557 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12558
12559 2008-06-08 Kenichi Handa <handa@m17n.org>
12560
12561 * .gdbinit (xfont): New command.
12562
12563 2008-06-08 Andreas Schwab <schwab@suse.de>
12564
12565 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12566 * Makefile.in (menu.o): Update dependencies.
12567
12568 * Makefile.in (obj): Always add menu.o.
12569 * emacs.c (main): Always call syms_of_menu.
12570 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12571
12572 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
12573
12574 * Makefile.in: Compile menu.c.
12575
12576 * lisp.h: Declare syms_of_menu.
12577
12578 * emacs.c (main): Call syms_of_menu.
12579
12580 * keyboard.h: Relocate platform-independent menu definitions from
12581 xmenu.c.
12582
12583 * menu.c: New file. Relocate platform-independent menu
12584 definitions from xmenu.c. Suggested by Adrian Robert.
12585
12586 * xmenu.c: Remove platform-independent menu definitions.
12587 (menu_items, menu_items_inuse, menu_items_allocated)
12588 (menu_items_used, menu_items_n_panes)
12589 (menu_items_submenu_depth): Move to keyboard.h.
12590 (init_menu_items, finish_menu_items, unuse_menu_items)
12591 (discard_menu_items, restore_menu_items, save_menu_items)
12592 (grow_menu_items, push_submenu_start, push_submenu_end)
12593 (push_left_right_boundary, push_menu_pane, push_menu_item)
12594 (keymap_panes, single_keymap_panes, single_menu_item)
12595 (list_of_panes, list_of_items, find_and_call_menu_selection)
12596 (xmalloc_widget_value, free_menubar_widget_value_tree)
12597 (parse_single_submenu, digest_single_submenu)
12598 (update_submenu_strings): Move to menu.c.
12599
12600 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12601
12602 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12603
12604 2008-06-06 Miles Bader <miles@gnu.org>
12605
12606 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12607 face, not frame default.
12608
12609 2008-06-05 Martin Rudalics <rudalics@gmx.at>
12610
12611 * window.c (pop_up_windows, pop_up_frames)
12612 (display_buffer_reuse_frames, Vpop_up_frame_function)
12613 (Vdisplay_buffer_function, Veven_window_heights)
12614 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12615 (Vspecial_display_function, Vsame_window_buffer_names)
12616 (Vsame_window_regexps, split_height_threshold)
12617 (Vsplit_window_preferred_function): Move those vars to window.el.
12618 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12619 (Fdisplay_buffer): Move those functions to window.el.
12620 (syms_of_window): Remove corresponding declarations.
12621 (display_buffer): New function.
12622 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12623 * dispnew.c (Flast_nonminibuf_frame): New function.
12624 * buffer.c (Fpop_to_buffer): Move to window.el.
12625
12626 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12627
12628 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12629
12630 2008-06-05 Kenichi Handa <handa@m17n.org>
12631
12632 * coding.c (detect_coding): Fix previous change.
12633 (detect_coding_system): Likewise.
12634
12635 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12636
12637 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12638
12639 * keymap.c (Vminibuffer_local_filename_must_match_map):
12640 Rename from Vminibuffer_local_must_match_filename_map.
12641 (syms_of_keymap):
12642 * minibuf.c (Fcompleting_read): Adjust accordingly.
12643 * commands.h: Rename declaration as well.
12644
12645 2008-06-05 Kenichi Handa <handa@m17n.org>
12646
12647 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12648 family name.
12649 (Ffont_put): Likewise.
12650
12651 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12652 current font-spec.
12653
12654 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12655 is unspecified.
12656
12657 * xfaces.c (realize_x_face): If the font-related face attributes
12658 are the same as those of default face, realize a new fontset from
12659 default->fontset.
12660 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12661
12662 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12663
12664 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12665 (move_it_in_display_line): New wrapper.
12666
12667 * window.c (window_scroll_pixel_based_preserve_x)
12668 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12669 (window_scroll_pixel_based, window_scroll_line_based):
12670 Use them to preserve column positions.
12671 (syms_of_window): Initialize them.
12672
12673 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12674 (HPOS . VPOS) pair.
12675
12676 * dispextern.h (move_it_in_display_line): Declare.
12677
12678 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
12679
12680 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12681 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12682 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12683
12684 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
12685
12686 * window.c (Fset_window_parameter): Doc fix.
12687 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12688
12689 2008-06-04 Joakim Verona <joakim@verona.se>
12690
12691 * window.h (struct window): Add new member window_parameters.
12692
12693 * window.c (Fwindow_parameters, Fwindow_parameter)
12694 (Fset_window_parameter): New defuns.
12695 (syms_of_window): Defsubr the new defuns.
12696 (make_window): Initialize window_parameters to nil.
12697
12698 2008-06-04 John Paul Wallington <jpw@pobox.com>
12699
12700 * eval.c (Fdefmacro): Doc fix.
12701
12702 2008-06-04 Kenichi Handa <handa@m17n.org>
12703
12704 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12705 Be sure to call setup_coding_system when we find a proper coding system.
12706 (detect_coding_system): Fix handling of coding->head_ascii.
12707
12708 2008-06-03 Andreas Schwab <schwab@suse.de>
12709
12710 * font.c (font_prop_validate_spacing): Fix last change.
12711
12712 2008-06-03 Kenichi Handa <handa@m17n.org>
12713
12714 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12715 (font_parse_fcname): Fix handling of unknown key.
12716
12717 * xfont.c (xfont_list): Try an alias.
12718
12719 * charset.c (char_charset): Return NULL if the arg charset_list is
12720 specified and C doesn't belong to any of them.
12721
12722 2008-06-02 Chip Coldwell <coldwell@redhat.com>
12723
12724 * font.c (font_pixel_size): Don't take cdr of an integer.
12725
12726 2008-06-02 Jim Meyering <meyering@redhat.com>
12727
12728 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12729 * alloc.c (xfree): Return right away for a NULL arg.
12730 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12731 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12732 * mac.c (create_apple_event_from_event_ref): Likewise.
12733 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12734 Likewise.
12735 * doprnt.c (doprnt1): Likewise.
12736 * frame.c (frame): Likewise.
12737 * keyboard.c (wipe_kboard): Likewise.
12738 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12739 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12740 * term.c (tty_default_color_capabilities, maybe_fatal)
12741 (delete_tty): Likewise.
12742 * w16select.c (string): Likewise.
12743 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12744 * w32bdf.c (w32_free_bdf_font): Likewise.
12745 * w32fns.c (w32_unload_font): Likewise.
12746 * w32font.c (w32font_close): Likewise.
12747 * window.c (size_window): Likewise.
12748 * xselect.c (receive_incremental_selection): Likewise.
12749 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12750 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12751 * w32.c (stat): Likewise.
12752
12753 Remove useless if-before-free tests.
12754 * editfns.c (Fset_time_zone_rule): Likewise.
12755 * lread.c (nosuffix): Likewise.
12756 * ralloc.c (get_bloc): Likewise.
12757 * regex.c (reg_free): Likewise.
12758 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12759 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12760 * xsmfns.c (smc_save_yourself_CB): Likewise.
12761
12762 2008-06-02 Kenichi Handa <handa@m17n.org>
12763
12764 * font.c (font_find_for_lface): Handle float font size.
12765 (font_open_for_lface): Likewise.
12766
12767 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12768 comparing the properties.
12769
12770 2008-06-01 Jason Rumney <jasonr@gnu.org>
12771
12772 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12773 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12774 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12775 Don't add empty script list.
12776 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12777
12778 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12779
12780 * Makefile.in (dot, dotdot): Remove, update users.
12781 ".." has been used elsewhere in the file for a long time.
12782 (LIBXT_STATIC): Remove conditional based on unused variable.
12783
12784 2008-06-01 Miles Bader <miles@gnu.org>
12785
12786 * xfaces.c (Vface_remapping_alist): New variable.
12787 (syms_of_xfaces): Initialize it.
12788 (enum named_merge_point_kind): New type.
12789 (struct named_merge_point): Add `named_merge_point_kind' field.
12790 (push_named_merge_point): Make cycle detection respect different
12791 named-merge-point kinds.
12792 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12793 Remove face-name alias resolution.
12794 (lface_from_face_name): New definition using
12795 `lface_from_face_name_no_resolve'.
12796 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12797 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12798 (get_lface_attributes): New definition that layers face-remapping on
12799 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12800 (lookup_basic_face): New function.
12801 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12802 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12803 `get_lface_attributes'.
12804 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12805 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12806 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12807
12808 * xdisp.c (init_iterator): Pass base_face_id through
12809 `lookup_basic_face' when we actually use it as a face-id.
12810 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12811 DEFAULT_FACE_ID.
12812
12813 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12814 lookup the initial face-id.
12815
12816 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12817
12818 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
12819
12820 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12821 (Fremove_text_properties): Fix typos in docstrings.
12822
12823 2008-05-31 Kenichi Handa <handa@m17n.org>
12824
12825 * font.c (font_list_entities): Fix the car part of data to be
12826 stored in the cache.
12827
12828 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12829
12830 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12831
12832 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12833 Add a `test' argument so another predicate than `equal' can be used.
12834 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12835 (map_char_table): Remove unused vars `c' and `i'.
12836 * lisp.h (Foptimize_char_table): Adjust declaration.
12837 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12838
12839 2008-05-30 Kenichi Handa <handa@m17n.org>
12840
12841 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12842 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12843 defined.
12844
12845 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12846
12847 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12848 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12849 frame-local settings for the same variable.
12850
12851 2008-05-30 Kenichi Handa <handa@m17n.org>
12852
12853 * fontset.c (Ffont_info): Move to font.c.
12854 (syms_of_fontset): Delete defsubr of Sfont_info.
12855
12856 * font.c (font_style_to_value, font_score): Delete casting of the
12857 args to xstcasecmp.
12858 (register_font_driver): Increment num_font_drivers only when
12859 registering the driver globally.
12860 (Ffont_info): Move from fontset.c. Handle a font object too.
12861 (syms_of_font): Defsubr Sfont_info.
12862
12863 2008-05-29 Kenichi Handa <handa@m17n.org>
12864
12865 * coding.h (enum define_coding_utf8_arg_index): New enum.
12866 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12867 coding_attr_utf_bom.
12868 (enum utf_bom_type): Rename from utf_16_bom_type.
12869 (struct utf_16_spec): Adjust for the above change.
12870 (struct coding_system): Add utf_8_bom in `spec' union.
12871
12872 * coding.c (CODING_UTF_8_BOM): New macro.
12873 (enum coding_category): Delete coding_category_utf_8, add
12874 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12875 coding_category_utf_8_sig.
12876 (CATEGORY_MASK_UTF_8): Delete it.
12877 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12878 (CATEGORY_MASK_UTF_8_SIG): New macros.
12879 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12880 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12881 CATEGORY_MASK_UTF_8_SIG.
12882 (CATEGORY_MASK_UTF_8): New macro.
12883 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12884 (detect_coding_utf_8): Check BOM.
12885 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12886 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12887 (encode_coding_utf_16): Likewise.
12888 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12889 (detect_coding, detect_coding_system): Handle utf-8-auto.
12890 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12891 (syms_of_coding): Fix setting up of Vcoding_category_table.
12892
12893 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12894
12895 * process.c (Faccept_process_output): If `millisec' is non-nil,
12896 `seconds' default to 0.
12897 (wait_reading_process_output): Also return non-nil if we read output
12898 from a non-running process.
12899
12900 2008-05-29 Jason Rumney <jasonr@gnu.org>
12901
12902 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12903 `raster' specified.
12904 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12905 in the uniscribe backend, but disallow any font that has no
12906 unicode subrange support.
12907
12908 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
12909
12910 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12911 Fix typos in docstrings.
12912
12913 2008-05-29 Kenichi Handa <handa@m17n.org>
12914
12915 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12916 (Fx_family_fonts): Set frame correctly.
12917
12918 2008-05-28 Jason Rumney <jasonr@gnu.org>
12919
12920 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12921
12922 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12923
12924 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12925 calling build_annotations.
12926
12927 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
12928
12929 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12930 (Fencode_coding_string):
12931 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12932 <latin-extra-code-table>: Fix typos in docstrings.
12933 (syms_of_coding) <coding-system-alist>: Doc fix.
12934 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12935
12936 2008-05-28 Kenichi Handa <handa@m17n.org>
12937
12938 * fontset.c (Ffont_info): Don't call font_close_object.
12939
12940 * font.c (font_parse_family_registry): Use Ffont_put to validate
12941 foundry and family.
12942 (font_delete_unmatched): Don't check spacing.
12943 (font_list_entities): Add spacing to the spec to list fonts.
12944
12945 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12946 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12947
12948 * coding.c (encode_coding_raw_text): Fix previous change.
12949 (encode_coding_object): When the dst_object is a buffer and is
12950 different from src_object, move gap to PT.
12951
12952 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12953
12954 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12955
12956 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12957
12958 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12959 all branches. Compute it differently.
12960
12961 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12962
12963 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
12964
12965 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12966 into "else if () ... else ...".
12967
12968 2008-05-27 Jason Rumney <jasonr@gnu.org>
12969
12970 * w32font.c (w32font_open_internal): Determine if glyph indices
12971 are likely to work here.
12972
12973 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12974
12975 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12976 draw overlap glyphs with appropriate highlighting.
12977
12978 2008-05-27 Kenichi Handa <handa@m17n.org>
12979
12980 * xfont.c (xfont_open): Fix calculation of font->average_width.
12981
12982 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12983
12984 * casefiddle.c (casify_object): Try to guess better whether the
12985 argument is a byte or a char.
12986
12987 2008-05-26 Andreas Schwab <schwab@suse.de>
12988
12989 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12990 Always send multiples of format size.
12991
12992 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12993
12994 2008-05-26 Jason Rumney <jasonr@gnu.org>
12995
12996 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12997 (compute_metrics): Don't set failure if we just cleared the cache.
12998 (w32_weight_table): Remove unused variable.
12999 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13000 backwards compatibility.
13001
13002 2008-05-25 Kenichi Handa <handa@m17n.org>
13003
13004 * w32term.c (x_draw_glyph_string):
13005 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13006
13007 * xfaces.c: Delete unused function prototypes.
13008 (xstrlwr, font_frame): Delete them.
13009 (clear_face_cache): Delete unused variable.
13010
13011 * xftfont.c (xftfont_open): Delete unused variable.
13012 If underline_thickness is not 1, adjust underline_position.
13013
13014 * ftxfont.c (ftxfont_open): Delete unused variable.
13015
13016 * fontset.c (face_for_char): Optimize for the case of no charset
13017 property.
13018
13019 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13020 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13021 (otf_open, font_otf_capability, generate_otf_features)
13022 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13023 Comment out by surrounding "#if 0" and "#endif" for the moment.
13024 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13025 (syms_of_font): Codes for accessing above commented out.
13026
13027 2008-05-24 Eli Zaretskii <eliz@gnu.org>
13028
13029 * w32proc.c: Include dispextern.h.
13030
13031 * w32.c: Include dispextern.h.
13032
13033 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
13034
13035 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13036 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13037 Fix typos in docstrings.
13038
13039 2008-05-23 Jason Rumney <jasonr@gnu.org>
13040
13041 * xsmfns.c: Remove includes that are already included by config.h.
13042
13043 2008-05-23 Kenichi Handa <handa@m17n.org>
13044
13045 * charset.c (Qemacs, charset_emacs): New variables.
13046 (char_charset): Fix for non-Unicode characters.
13047 (syms_of_charset): Define charset_emacs.
13048
13049 * w32term.c (x_draw_glyph_string): Be sure to update
13050 s->underline_thickness and s->underline_position. Be sure to draw
13051 underline within the current line area.
13052
13053 * xterm.c (x_draw_glyph_string): Be sure to update
13054 s->underline_thickness and s->underline_position. Be sure to draw
13055 underline within the current line area.
13056
13057 * fontset.c: Delete unused variables and add casting for char *
13058 throughout the file.
13059 (fontset_font): Try the fallback fonts of the current fontset
13060 before consulting the default fontset.
13061
13062 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13063
13064 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13065
13066 2008-05-22 Jason Rumney <jasonr@gnu.org>
13067
13068 * font.c: Don't include strings.h.
13069
13070 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13071
13072 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13073 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13074 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13075 to call xstrcasecmp.
13076
13077 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13078
13079 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13080
13081 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13082
13083 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13084
13085 2008-05-22 Kenichi Handa <handa@m17n.org>
13086
13087 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13088
13089 * font.c (font_prop_validate_style): Adjust for the format
13090 change of font_style_table.
13091
13092 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13093 two args.
13094
13095 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13096 two args.
13097
13098 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13099
13100 * minibuf.c (keys_of_minibuf): Delete.
13101 * lisp.h (keys_of_minibuf): Delete.
13102 * emacs.c (main): Don't call keys_of_minibuf.
13103
13104 2008-05-22 Kenichi Handa <handa@m17n.org>
13105
13106 * ftfont.c (ftfont_resolve_generic_family): Rename from
13107 ftfont_list_generic_family. Return a single family for each
13108 generic family.
13109 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13110 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13111 Call font_add_log.
13112 (ftfont_match): Call font_add_log.
13113
13114 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13115 (FONT_DEBUG): Define it.
13116 (font_add_log): Extern it.
13117 (font_assert): Rename from xassert.
13118
13119 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13120 (xfont_list_family): Call font_add_log.
13121 (xfont_match): Likewise.
13122 (memq_no_quit): Delete.
13123
13124 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13125 call of Ffont_xlfd_name.
13126
13127 * xfaces.c (struct table_entry, slant_table, weight_table)
13128 (swidth_table): Move to font.c.
13129
13130 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13131 xassert are changed to font_assert. Delete many unused variables.
13132 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13133 New variables.
13134 (struct table_entry): Move from xfaces.c and modified.
13135 (weight_table, slant_table, width_table): Move from xfaces.c and
13136 contents adjusted for the change of struct table_entry.
13137 (font_style_to_value, font_style_symbolic): Adjust for the
13138 format change of font_style_table.
13139 (font_parse_family_registry): Don't overwrite existing foundry and
13140 family of font_spec.
13141 (font_score): Fix calculation of diff for sizes.
13142 (font_sort_entites): Call font_add_log.
13143 (font_delete_unmatched): Return a newly created list.
13144 (font_list_entities): Fix previous change. Call font_add_log.
13145 (font_matching_entity, font_open_entity, font_close_entity):
13146 Call font_add_log.
13147 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13148 (Finternal_set_font_style_table): Delete.
13149 (BUILD_STYLE_TABLE): New macro.
13150 (build_style_table): New function.
13151 (Vfont_log, font_log_env_checked): New variables.
13152 (font_add_log): New function.
13153 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13154 Declare Lisp variables "font-weight-table", "font-slant-table",
13155 "font-width-table", and "font-log". Initialize font_style_table.
13156
13157 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13158
13159 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13160
13161 2008-05-21 Seiji Zenitani <zenitani@mac.com>
13162 Ryo Yoshitake <ryo@shiftmode.net>
13163
13164 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13165 (Vframe_alpha_lower_limit): New variable.
13166 (x_set_alpha): New function.
13167
13168 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13169
13170 * xfns.c (x-create-frame, Qalpha):
13171 Initialize the frame parameter `alpha'.
13172 * xterm.c (OPAQUE, OPACITY): New.
13173 (x_set_frame_alpha): New function.
13174 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13175
13176 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13177 * w32fns.c (w32_frame_parm_handlers): Likewise.
13178
13179 2008-05-20 Jason Rumney <jasonr@gnu.org>
13180
13181 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13182 truetype fonts to opentype list.
13183
13184 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
13185
13186 * fontset.c (Ffontset_info): Doc fix.
13187 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13188 <ignore-relative-composition>: Fix typos in docstrings.
13189
13190 * font.c (syms-of-font) <font-encoding-alist>:
13191 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13192 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13193 (Ffont_otf_alternates): Doc fixes.
13194
13195 2008-05-20 Kenichi Handa <handa@m17n.org>
13196
13197 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13198 font.h through out the file.
13199 (FONT_DRIVERS): Rename from FONTOBJ.
13200 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13201 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13202
13203 * emacs.c (main): Call syms_of_font unconditionally.
13204
13205 * font.h (find_font_encoding): Extern it.
13206
13207 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13208 fontset.c.
13209 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
13210 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13211 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13212 only when HAVE_WINDOW_SYSTEM is defined.
13213 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13214 when HAVE_WINDOW_SYSTEM is defined.
13215
13216 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13217 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13218
13219 * xfaces.c: Include font.h unconditionally.
13220 (merge_face_ref, merge_face_vectors)
13221 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13222
13223 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13224
13225 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13226 indirect_variable.
13227 * eval.c (lisp_indirect_variable): New fun.
13228 (Fuser_variable_p): Use it.
13229
13230 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13231
13232 * lisp.h (indirect_variable):
13233 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13234 Use Lisp_Symbol pointers rather than Lisp_Object.
13235 Adjust callers.
13236 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13237 To this end, change calling-convention.
13238
13239 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13240 if some non-hidden buffers are selected by string&pred.
13241
13242 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
13243
13244 * process.c (wait_reading_process_output): Always check status
13245 when in batch mode.
13246
13247 2008-05-19 Kenichi Handa <handa@m17n.org>
13248
13249 * font.c (font_list_entities): Fix handling of cache.
13250 (font_matching_entity): Likewise.
13251
13252 * ftfont.c (cs_iso8859_1): Delete.
13253 (ft_face_cache): New variable.
13254 (struct ftfont_info): New member fc_charset_idx.
13255 (ftfont_build_basic_charsets): Delete.
13256 (fc_charset_table): New variable.
13257 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13258 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13259 Callers changed.
13260 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13261 (ftfont_spec_pattern): New argument fc_charset_idx.
13262 Check registry more rigidly. Change callers.
13263 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13264 change of :font-entity property of the font.
13265
13266 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13267 property of the font.
13268
13269 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
13270
13271 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13272 (Funencodable_char_position, Fcheck_coding_systems_region)
13273 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13274 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13275 (Ffind_operation_coding_system, Fset_coding_system_priority)
13276 (Fcoding_system_eol_type): Doc fixes.
13277
13278 2008-05-17 Glenn Morris <rgm@gnu.org>
13279
13280 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13281
13282 2008-05-16 Eli Zaretskii <eliz@gnu.org>
13283
13284 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13285 and st_gid.
13286
13287 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13288 HAVE_WINDOW_SYSTEM is not defined.
13289
13290 * xfaces.c (merge_face_ref, merge_face_vectors)
13291 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13292 HAVE_WINDOW_SYSTEM is defined.
13293 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13294
13295 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13296
13297 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13298
13299 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13300
13301 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13302
13303 2008-05-15 Kenichi Handa <handa@m17n.org>
13304
13305 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13306 preference.
13307
13308 2008-05-15 Glenn Morris <rgm@gnu.org>
13309
13310 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13311
13312 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
13313
13314 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13315 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13316
13317 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13318
13319 2008-05-15 Kenichi Handa <handa@m17n.org>
13320
13321 * ftfont.c (ftfont_list): Downcase family name to check generic
13322 families.
13323
13324 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13325 font-spec for QCfont value.
13326
13327 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13328 buffer. Check the return value of it.
13329
13330 2008-05-14 Jason Rumney <jasonr@gnu.org>
13331
13332 * w32term.c (w32_get_glyph_overhangs): Remove.
13333 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13334
13335 2008-05-14 Kenichi Handa <handa@m17n.org>
13336
13337 * font.c (font_prop_validate): Make nil a valid value.
13338 (font_clear_cache): Check if the cached vector of entities is nil
13339 or not.
13340
13341 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13342
13343 * emacs.c (main_thread): Conditionalize on
13344 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13345 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13346
13347 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13348 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13349 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13350
13351 2008-05-14 Kenichi Handa <handa@m17n.org>
13352
13353 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13354 has no corresponding coding system.
13355
13356 2008-05-14 Jason Rumney <jasonr@gnu.org>
13357
13358 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13359
13360 * w32font.h (w32font_open_internal): Update declaration.
13361
13362 * w32font.c (w32font_open_internal): Change last argument from
13363 w32font_info struct to font object. Fill in font object from
13364 font_entity. Get Outline metrics if possible. Use them to
13365 calculate underline position and thickness. Use xlfd name as name
13366 property. Don't set codepage.
13367 (w32font_open): Pass font_object to w32font_open_internal. Don't
13368 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13369 (w32font_draw): Use s->font.
13370 (clear_cached_metrics): Don't clear non-existent blocks.
13371
13372 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13373 font was not found.
13374 (x_draw_glyph_string): Use underline position and thickness from font.
13375
13376 * w32uniscribe.c (uniscribe_open): Pass font_object to
13377 w32font_open_internal.
13378
13379 2008-05-14 Kenichi Handa <handa@m17n.org>
13380
13381 These changes are to delete all legacy font-handling codes, and
13382 make Emacs use only font-backends.
13383
13384 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13385 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13386
13387 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13388
13389 * charset.h (Vcharset_non_preferred_head)
13390 (Vcurrent_iso639_language): Extern them.
13391
13392 * charset.c (Vcharset_non_preferred_head): New variable.
13393 (Vcurrent_iso639_language): New variable.
13394 (syms_of_charset): Declare it as a Lisp variable.
13395 (char_charset): Don't check non preferred charsets. As a last
13396 resort, return charset_unicode.
13397 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13398
13399 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13400 conditionals. Don't check enable_font_backend. Delete all codes
13401 used only when USE_FONT_BACKEND is not defined.
13402
13403 * dispextern.h (struct glyph_string): Change type of `font' to
13404 `struct font *'.
13405 (struct glyph_string): New member underline_position and
13406 underline_thickness.
13407 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13408 (struct face): Change type of `font' to `struct font *'. Remove
13409 members `font_name', `font_info_id'.
13410 (per_char_metric, encode_char): Delete externs.
13411 (calc_pixel_width_or_height): Adjust the prototype.
13412
13413 * emacs.c (enable_font_backend): Delete extern.
13414 (main): Don't set enable_font_backend. Don't check the command
13415 line argument "-disable-font-backend".
13416
13417 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13418 (enum font_property_index): New members FONT_DPI_INDEX,
13419 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13420 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13421 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13422 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13423 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13424 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13425 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13426 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13427 (struct font_spec, struct font_entity): New structs.
13428 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13429 (struct font): Many members from old "struct font_info" moved to
13430 here. Members font and entity deleted.
13431 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13432 the new font-related objects.
13433 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13434 (CHECK_FONT_GET_OBJECT): Likewise.
13435 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13436 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13437 (struct font_driver): New members case_sensitive anc check. Type
13438 of the member list and open changed.
13439 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13440 (font_symbolic_width, font_find_object, font_get_spec)
13441 (font_set_lface_from_name): Delete extern.
13442 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13443
13444 * font.c: Include <strings.h>.
13445 (enable_font_backend): Delete it.
13446 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13447 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13448 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13449 (null_string): Delete it.
13450 (null_vector): Make it static.
13451 (font_family_alist): Delete it.
13452 (Qnormal): Extern it.
13453 (QCextra, QClanguage): Delete it.
13454 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13455 (font_make_spec, font_make_entity, font_make_object)
13456 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13457 the string. Callers changed.
13458 (font_pixel_size): Adjusted for the format change of font-related
13459 objects.
13460 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13461 (font_style_to_value, font_style_symbolic): New function.
13462 (build_font_family_alist): Delete it.
13463 (font_registry_charsets): Use Fassoc_string instead of
13464 assq_no_quit.
13465 (font_prop_validate_symbol): Don't return null_string.
13466 (font_prop_validate_style): Adjusted for the change of
13467 style-related values in a font vector.
13468 (font_property_table): Delete entries for QClanguage and
13469 QCantialias, add entries for QCavgwidth.
13470 (get_font_prop_index): Delete the 2nd argument FROM.
13471 (font_prop_validate): Arguments changed.
13472 (font_put_extra): Adjusted for the change of font-related objects.
13473 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13474 (font_parse_fcname, font_unparse_fcname)
13475 (font_prepare_composition): Likewise.
13476 (font_parse_family_registry): Renamed from font_merge_old_spec.
13477 (otf_open): Delete the 1st arg entity.
13478 (font_otf_capability): Adjusted for the above change.
13479 (font_score): New arg alternate_families. Adjusted for the change
13480 of font-related objects.
13481 (font_sort_entites): New arg best_only.
13482 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13483 Delete them.
13484 (font_match_p): Check alternate families.
13485 (font_find_object): Delete it.
13486 (font_check_object): New function.
13487 (font_clear_cache): Adjusted for the change of font-related objects.
13488 (font_delete_unmatched): New arg.
13489 (font_list_entities): Call font_driver->list with a spec that
13490 doesn't specify style-related properties.
13491 (font_matching_entity): Arguments changed. Caller changed.
13492 (font_open_entity): Adjusted for the change of font-related objects.
13493 (font_close_object, font_has_char, font_encode_char)
13494 (font_get_name, font_get_spec): Likewise.
13495 (font_spec_from_name, font_clear_prop, font_update_lface):
13496 New functions.
13497 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13498 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13499 (font_at): Adjusted for the change of font-related objects.
13500 (font_range): New function.
13501 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13502 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13503 (Fcopy_font_spec, Fmerge_font_spec): New function.
13504 (Ffont_family_list): Renamed from list-families.
13505 (Finternal_set_font_style_table): Arguments changed.
13506 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13507 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13508 change of font-related objects.
13509 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13510
13511 * fontset.h (struct font_info): Delete it. Most members go to
13512 struct font.
13513 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13514 (enum FONT_SPEC_INDEX): Delete it.
13515 (font_info, list_fonts_func, load_font_func, query_font_func)
13516 (set_frame_fontset_func, find_ccl_program_func)
13517 (get_font_repertory_func, new_fontset_from_font_name): Delete
13518 externs.
13519 (fontset_from_font_name): Extern it.
13520 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13521 (FONT_INFO_FROM_FACE): Deleted.
13522 (face_for_font): Adjust prototype.
13523
13524 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13525 conditionals. Don't check enable_font_backend. Delete all codes
13526 used only when USE_FONT_BACKEND is not defined.
13527 (get_font_info_func, list_font_func, load_font_func)
13528 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13529 (get_font_repertory_func): Delete them.
13530 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13531 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13532 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13533 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13534 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13535 (fontset_compare_rfontdef): New function.
13536 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13537 rfont-defs by qsort. Adjusted for the change of font-group vector.
13538 (load_font_get_repertory): Deleted.
13539 (fontset_find_font): Use new macros to ref/set elements of
13540 font-def and rfont-def.
13541 (fontset_font): Fix the timing of remembering that no font for C.
13542 (free_face_fontset): Do nothing if the face has no fontset.
13543 (face_suitable_for_char_p): Use new macros to ref/set elements of
13544 rfont-def.
13545 (face_for_char): Likewise. Call face_for_char with font_object.
13546 (fs_load_font): Delete. Delete #pragma surrounding it.
13547 (fs_query_fontset): Use strcasecmp instead of strcmp.
13548 (generate_ascii_font_name): Adjusted for the format change of
13549 font-spec.
13550 (Fset_fontset_font): Likewise. Use new macros to set elements of
13551 font-def.
13552 (Fnew_fontset): Use font_unparse_xlfd to generate
13553 FONTSET_ASCII (fontset).
13554 (new_fontset_from_font_name): Deleted.
13555 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13556 a fontset is already created for the font. FIx updating of
13557 Vfontset_alias_alist.
13558 (fontset_ascii_font): Deleted.
13559 (Ffont_info): Adjusted for the format change of font-spec.
13560 (Finternal_char_font): Likewise.
13561 (Ffontset_info): Likewise.
13562 (syms_of_fontset): Don't check load_font_func.
13563
13564 * fns.c (internal_equal): Handle PREV_FONT.
13565
13566 * frame.h: Delete USE_FONT_BACKEND conditional.
13567
13568 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13569 conditionals. Don't check enable_font_backend. Delete all codes
13570 used only when USE_FONT_BACKEND is not defined.
13571 (x_set_font): Call x_new_font, not x_new_fontset2.
13572 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13573 already set for the frame.
13574
13575 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13576 a font-entity by font_make_entity. Use font_intern_prop instead
13577 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13578 font property. If a font is scalable, set avgwidth property to 0.
13579 Set font-entity property by font_put_extra.
13580 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13581 (ffont_driver): Adjusted for the change of struct font_driver.
13582 (ftfont_spec_pattern): New function.
13583 (ftfont_list): Return a list, not vector.
13584 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13585 (ftfont_list_family): Don't downcase names.
13586 (ftfont_free_entity): Deleted.
13587 (ftfont_open): Return a font-object. Adjusted for the change of
13588 struct font. Get underline_thickness and underline_position from
13589 font property. Don't update dpyinfo->smallest_font_height and
13590 dpyinfo->smallest_char_width.
13591 (ftfont_close): Don't free `struct font'.
13592 (ftfont_has_char): Adjusted for the format change of font-entity.
13593 (ftfont_encode_char, ftfont_text_extents): Likewise.
13594
13595 * ftxfont.c (ftxfont_list): Return a list, not vector.
13596 (ftxfont_open): Return a font-object. Adjusted for the change of
13597 struct font. Get underline_thickness and underline_position from
13598 font property. Don't update dpyinfo->smallest_font_height and
13599 dpyinfo->smallest_char_width.
13600 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13601 (ftxfont_draw): Adjusted for the change of struct font.
13602
13603 * image.c (image_ascent): Don't include "charset.h". Include
13604 "character.h" and "font.h".
13605
13606 * lisp.h (enum pvec_type): New member PREV_FONT.
13607 (Fassoc_string): EXFUN it.
13608
13609 * print.c: Include font.h.
13610 (print_object): Handle font-related objects.
13611
13612 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13613 conditionals. Don't check enable_font_backend. Delete all codes
13614 used only when USE_FONT_BACKEND is not defined.
13615 (handle_auto_composed_prop): Do nothing if it->f is not on a
13616 window system. Check how many following characters can be
13617 displayed by the same font.
13618 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13619 'struct font *'.
13620 (get_char_face_and_encoding): Assign the whole encoding task to
13621 the `encode-char' method of a font driver.
13622 (fill_composite_glyph_string): Adjusted for the change of `struct
13623 face' and `struct glyph_string'.
13624 (fill_glyph_string): Likewise.
13625 (get_per_char_metric): Arguments changed.
13626 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13627 and `struct glyph_string'.
13628 (produce_stretch_glyph, calc_line_height_property)
13629 (x_produce_glyphs): Likewise.
13630
13631 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13632 conditionals. Don't check enable_font_backend. Delete all codes
13633 used only when USE_FONT_BACKEND is not defined. Use
13634 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13635 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13636 (Qp): Extern them.
13637 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13638 Deleted.
13639 (struct font_name): Deleted.
13640 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13641 (compare_fonts_by_sort_order): New function.
13642 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13643 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13644 Deleted.
13645 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13646 compare_fonts_by_sort_order.
13647 (Fx_font_family_list): Call Ffont_family_list.
13648 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13649 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13650 (face_symbolic_slant, face_symbolic_swidth)
13651 (split_font_name_into_vector, build_font_name_from_vector)
13652 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13653 (font_rescale_ratio, split_font_name, build_font_name)
13654 (free_font_names, sort_fonts, x_face_list_fonts)
13655 (face_font_available_p, sorted_font_list, cmp_font_names)
13656 (font_list_1, concat_font_list, font_list, remove_duplicates):
13657 Deleted.
13658 (Fx_list_fonts): Use Ffont_list.
13659 (LFACE_AVGWIDTH): Deleted.
13660 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13661 by FONTP.
13662 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13663 (set_lface_from_font_name): Delete it.
13664 (set_lface_from_font): Renamed from
13665 set_lface_from_font_and_fontset. Caller changed. Don't set
13666 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13667 for face.
13668 (merge_face_vectors): Copy font-spec if necessary.
13669 Clear properties of the font-spec if necessary.
13670 (merge_face_ref): Clear properties of the font-spec if necessary.
13671 (Finternal_set_lisp_face_attribute): Likewise.
13672 (set_font_frame_param): Use font_load_for_lface to load a
13673 font-object, and call Fmodify_frame_parameters with it.
13674 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13675 font name by Ffont_xlfd_name.
13676 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13677 QCslant, and QCwidth.
13678 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13679 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13680 Compare fonts by EQ.
13681 (lookup_non_ascii_face): Deleted.
13682 (face_for_font): The 2nd argument changed.
13683 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13684 Check atomic font properties by case insensitive.
13685 (realize_non_ascii_face): Set face->overstrike correctly.
13686 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13687 (dump_realized_face): Get font name from
13688 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13689
13690 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13691 conditionals. Don't check enable_font_backend. Delete all codes
13692 used only when USE_FONT_BACKEND is not defined.
13693 (xic_create_xfontset): Original code deleted and renamed from
13694 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13695 (x_make_gc): Don't set GCFont in GCs.
13696 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13697 opened by "fixed".
13698 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13699 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13700 get_font_repertory_func.
13701
13702 * xfont.c: Include <stdlib.h> and "ccl.h".
13703 (struct xfont_info): New structure.
13704 (xfont_query_font): Deleted.
13705 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13706 moved from xterm.c.
13707 (xfont_driver): Adjusted for the change of struct font_driver.
13708 (compare_font_names): New function.
13709 (xfont_list_pattern): Sort font names case insensitively. Make
13710 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13711 (xfont_list): Return a list, not vector.
13712 (xfont_match): If the font doesn't have QCname property, generate
13713 a name from the other font properties.
13714 (xfont_open): Return a font-object. Adjusted for the change of
13715 struct font. Get underline_thickness and underline_position from
13716 font property. Don't update dpyinfo->smallest_font_height and
13717 dpyinfo->smallest_char_width.
13718 (xfont_close): Don't free struct font.
13719 (xfont_prepare_face): Adjusted for the change of struct font.
13720 (xfont_done_face): Deleted.
13721 (xfont_has_char): Adjusted for the change of struct font.
13722 (xfont_encode_char, xfont_draw): Likewise.
13723 (xfont_check): New function.
13724
13725 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13726 callback function.
13727 (xftfont_match): Adjusted for the format change of font-entity.
13728 (xftfont_open): Adjusted for the format change of font-entity and
13729 font-object. Adjusted for the change of struct font. Return a
13730 font-object. Don't update dpyinfo->smallest_font_height and
13731 dpyinfo->smallest_char_width.
13732 (xftfont_close): Block input while calling XftFontClose.
13733 (xftfont_prepare_face): Don't block input while calling
13734 xftfont_get_colors. Adjusted for the change of struct font.
13735 (xftfont_shape): Return value of error case fixed.
13736
13737 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13738
13739 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13740 conditionals.
13741 (FONT_WIDTH): Return (f)->max_width.
13742 (struct x_display_info): Delete member `font'.
13743 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13744 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13745 (struct x_output): Change type of `font' to `struct font *'.
13746
13747 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13748 conditionals. Don't check enable_font_backend. Delete all codes
13749 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13750 (x_per_char_metric, x_encode_char): Deleted.
13751 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13752 (x_compute_glyph_string_overhangs): Adjusted for the change of
13753 `struct face'.
13754 (x_draw_glyph_string_foreground)
13755 (x_draw_composite_glyph_string_foreground): Likewise.
13756 (x_draw_glyph_string): Likewise. Use font->underline_position and
13757 font->underline_thickness.
13758 (x_new_font): Renamed from x_new_fontset2.
13759 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13760 (x_check_font): Call `check' method of a font driver.
13761 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13762 (x_query_font, x_get_font_repertory): Deleted.
13763 (x_find_ccl_program): Renamed and moved to xfont.c.
13764 (x_redisplay_interface): Adjusted for the change of `struct
13765 redisplay_interface'.
13766
13767 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13768 conditionals. Don't check enable_font_backend. Delete all codes
13769 used only when USE_FONT_BACKEND is not defined. Surround non-used
13770 code by "#ifdef OLD_FONT" and "endif".
13771 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13772
13773 * w32font.h (struct w32font_info): New member.
13774 (FONT_COMPAT): New macro.
13775 (w32font_open_internal): Prototype adjusted.
13776
13777 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13778 OLD_FONT" and "endif".
13779
13780 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13781 conditionals. Don't check enable_font_backend. Delete all codes
13782 used only when USE_FONT_BACKEND is not defined.
13783 (w32font_open): Return a font-object. Make a font-object by
13784 font_make_object. Adjusted for the change of struct w32font_info.
13785 (w32font_close): Don't free struct font. Adjusted for the change
13786 of struct w32font_info.
13787 (w32font_encode_char, w32font_text_extents, w32font_draw):
13788 Adjusted for the change of struct w32font_info.
13789 (w32font_draw): Likewise.
13790 (w32font_list_internal): Return a list, not vector.
13791 (w32font_open_internal): Change the 4th arg to font-object.
13792 Adjusted for the change of struct w32font_info and font-object format.
13793 (add_font_name_to_list): Don't downcase names.
13794 (w32_enumfont_pattern_entity): Make a font-entity by
13795 font_make_entity. Adjusted for the format change of font-entity.
13796 Use FONT_SET_STYLE to set a style-related font property. If a
13797 font is scalable, set avgwidth property to 0. Set font-entity
13798 property by font_put_extra.
13799 (font_matches_spec): Adjusted for the format change of font-entity.
13800 (w32_weight_table, w32_decode_weight): New variables.
13801 (w32_encode_weight): New function.
13802 (fill_in_logfont): Adjusted for the format change of font-spec.
13803 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13804 weight value.
13805 (w32font_driver): Adjusted for the change of struct font_driver.
13806
13807 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13808 conditionals. Don't check enable_font_backend. Surround non-used
13809 code by "#ifdef OLD_FONT" and "endif".
13810 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13811 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13812
13813 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13814 conditionals. Don't check enable_font_backend. Delete all codes
13815 used only when USE_FONT_BACKEND is not defined. Surround non-used
13816 code by "#ifdef OLD_FONT" and "endif".
13817
13818 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13819 (uniscribe_open): Return value changed to font-object.
13820 Adjusted for the format change of font-object.
13821 (uniscribe_otf_capability): Adjusted for the change of struct font.
13822 (add_opentype_font_name_to_list): Don't downcase names.
13823 (uniscribe_font_driver): Adjusted for the change of struct
13824 font_driver.
13825
13826 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
13827
13828 * dispnew.c (update_frame_1): Check if tty output is still valid
13829 before flushing it.
13830
13831 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13832
13833 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13834 to Gtk+ menus.
13835
13836 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13837
13838 * dired.c (file_name_completion): Tweak the code so as to always do it
13839 in a single pass. Tighten the scope of some variables.
13840
13841 * dired.c (Qdefault_directory): New var.
13842 (file_name_completion): Use it instead of Fexpand_file_name.
13843 (syms_of_dired): Initialize it.
13844
13845 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13846
13847 * fileio.c (double_dollars): Remove dead code.
13848
13849 2008-05-10 Eli Zaretskii <eliz@gnu.org>
13850
13851 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13852 Mention w32-get-true-file-attributes in doc string.
13853
13854 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13855
13856 2008-05-09 Glenn Morris <rgm@gnu.org>
13857
13858 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13859 2008-04-23.
13860
13861 2008-05-09 Eli Zaretskii <eliz@gnu.org>
13862
13863 Support for reporting owner and group of each file on MS-Windows:
13864 * dired.c (stat_uname, stat_gname): New functions, with special
13865 implementation for w32.
13866 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13867
13868 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13869 (dflt_group_name): New static variable.
13870 (dflt_group): Rename from the_group.
13871 (init_user_info): Init dflt_group fields. Get user's group name
13872 from LookupAccountSid.
13873 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13874 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13875 New initialization states.
13876 (globals_of_w32): Initialize them to zero. Initialize the default
13877 group name to "None".
13878 (GetFileSecurity_Name): New global var, the name of the function
13879 to call for GetFileSecurity.
13880 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13881 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13882 (get_file_security, get_security_descriptor_owner)
13883 (get_security_descriptor_group, is_valid_sid)
13884 (get_file_security_desc, get_rid, get_name_and_id)
13885 (get_file_owner_and_group): New functions.
13886 (stat): Use get_file_security_desc and get_file_owner_and_group to
13887 report the owner and primary group of each file. Don't ignore the
13888 high 32 bits of file's size, now that st_size is 64-bit wide.
13889 Fix test when to get true file attributes.
13890 (init_user_info): Use get_rid instead of equivalent inline code.
13891 (fstat): Don't ignore the high 32 bits of file's size.
13892
13893 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
13894
13895 * image.c (png_load): Use correct bit-depth for setting background
13896 color.
13897
13898 2008-05-08 Eli Zaretskii <eliz@gnu.org>
13899
13900 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13901 epa-hook.elc.
13902
13903 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
13904
13905 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13906
13907 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13908
13909 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13910 because the original parameters are in pure storage now.
13911 (mac_window): Remove unused params. Update callers.
13912
13913 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13914
13915 * lread.c (substitute_object_recurse): Use lower-level primitives.
13916 Don't signal errors when traversing sub-char-tables.
13917 Don't loop over all the possible characters when traversing char-tables.
13918
13919 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13920 just like we do in print.c.
13921
13922 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13923
13924 * minibuf.c (Ftry_completion): Remove code left over from when we used
13925 scmp instead of Fcompare_strings.
13926
13927 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
13928
13929 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13930
13931 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13932
13933 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13934 Create bitmap context in native byte order.
13935
13936 * macterm.c (XDrawLine)
13937 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13938 context in native byte order.
13939
13940 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13941
13942 * config.in: Regenerate.
13943
13944 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13945 New definitions for Image I/O support.
13946 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13947 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13948 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13949 (mac_data_provider_release_data, image_load_image_io)
13950 [USE_MAC_IMAGE_IO]: New functions.
13951 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13952 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13953 (init_image_func_pointer) [MAC_OSX]: Remove function.
13954 (image_load_quartz2d) [MAC_OSX]: Check availability of
13955 CGImageCreateWithPNGDataProvider at compile time.
13956 Use lowercase `false' for boolean constant.
13957 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13958 Use image_load_image_io.
13959 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13960 Don't check MyCGImageCreateWithPNGDataProvider.
13961 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13962 Don't call init_image_func_pointer.
13963
13964 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13965
13966 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13967 Make variable non-static.
13968 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13969 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13970
13971 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13972 (RED_FROM_ULONG): Mask off higher bits.
13973 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13974
13975 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13976 Include AvailabilityMacros.h.
13977 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13978 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13979
13980 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13981
13982 * chartab.c (Fset_char_table_range): If range is t, really set all
13983 chars to that value.
13984
13985 2008-05-03 Eli Zaretskii <eliz@gnu.org>
13986
13987 * dired.c (Ffile_attributes): Don't allow the device number become
13988 negative.
13989
13990 2008-05-02 Daiki Ueno <ueno@unixuser.org>
13991
13992 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13993
13994 2008-05-02 Juri Linkov <juri@jurta.org>
13995
13996 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13997 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13998 DEFAULT argument as a list of default values in docstrings.
13999
14000 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
14001
14002 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14003
14004 2008-05-01 Martin Rudalics <rudalics@gmx.at>
14005
14006 * dispnew.c (change_frame_size_1): Preserve small windows when
14007 shrinking frames by calling set_window_height|width with third
14008 arg 2.
14009
14010 * window.h (struct window): Replace field too_small_ok by field
14011 resize_proportionally.
14012
14013 * window.c (make_window): Initialize resize_proportionally.
14014 (enlarge_window): Temporarily set resize_proportionally to make
14015 sure that shrink_windows does scale the window proportionally.
14016 (shrink_windows): When window has resize_proportionally set try
14017 to shrink it proportionally by stealing from other windows.
14018 (struct saved_window, Fset_window_configuration)
14019 (compare_window_configurations): Handle resize_proportionally.
14020 (WINDOW_TOTAL_SIZE): New macro.
14021 (window_min_size, shrink_windows, size_window): Use it.
14022 (check_min_window_sizes): Remove. Invalid values of
14023 window-min-height|width are handled by window_min_size_2 now.
14024 (size_window, Fsplit_window, enlarge_window)
14025 (adjust_window_trailing_edge, grow_mini_window): Don't call
14026 check_min_window_sizes.
14027 (window_min_size_2, window_min_size_1, window_min_size):
14028 New argument safe_p for retrieving "safe" minimum sizes.
14029 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14030 (adjust_window_trailing_edge, grow_mini_window):
14031 Adjust arguments of window_min_size... functions.
14032 (shrink_windows): Argument min_size removed. New argument
14033 safe_p allows shrinking windows to their safe minimum sizes.
14034 Calculate minimum size and decide whether a window shall be
14035 deleted for each window individually.
14036 (size_window): When nodelete_p equals 2, tell shrink_windows to
14037 delete windows only if their new minimum size is no more safe.
14038 (shrink_window_lowest_first): Call window_min_size_1 to make
14039 sure to preserve modeline of bottom-most window when resizing
14040 the minibuffer.
14041 (Fset_window_configuration, Fcurrent_window_configuration)
14042 (compare_window_configurations): Do not handle
14043 window-min-height|width any more.
14044 (syms_of_window): Clarify window-min-height|width doc-strings.
14045
14046 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14047
14048 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14049 some more. Copy some of the code from Ftry_completions.
14050 Remove special case code that dates back to initial revision when the
14051 slash was only added when necessary and that can't trigger nowadays.
14052
14053 2008-04-27 Kenichi Handa <handa@m17n.org>
14054
14055 * font.c (font_prop_validate): Signal `error' instead of `font'.
14056
14057 2008-04-29 Jason Rumney <jasonr@gnu.org>
14058
14059 * w32fns.c (Fw32_battery_status): New defun.
14060 (syms_of_w32fns): Defsubr it.
14061
14062 2008-04-28 Andreas Schwab <schwab@suse.de>
14063
14064 * dired.c (file_name_completion): Fix another mixing of encoded
14065 and decoded names.
14066
14067 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
14068
14069 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14070
14071 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
14072
14073 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14074
14075 2008-04-27 Andreas Schwab <schwab@suse.de>
14076
14077 * dired.c (file_name_completion): Fix inappropriate mixing of
14078 encoded and decoded names.
14079
14080 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14081
14082 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14083
14084 2008-04-26 Eli Zaretskii <eliz@gnu.org>
14085
14086 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14087 2008-03-31, it's not needed anymore with `struct stat' definition
14088 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14089 for the same reasons.
14090
14091 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14092
14093 * m/sparc.h: Additional redefinitions for GNU/Linux.
14094
14095 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14096
14097 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14098 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14099 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14100 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14101 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14102 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14103 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14104 Likewise.
14105
14106 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14107 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14108 (mac_ax_number_of_characters): Add externs.
14109 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14110 [USE_MAC_TSM]: Likewise.
14111 (mac_handle_text_input_event) [MAC_OSX]:
14112 Handle kEventTextInputOffsetToPos for no active input area case.
14113 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14114 (mac_handle_document_access_event)
14115 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14116 (install_application_handler) [MAC_OSX]: Register handlers for
14117 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14118 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14119 Register mac_handle_document_access_event.
14120
14121 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14122 Make functions non-static.
14123
14124 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14125
14126 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14127 (read_file_name_completion_ignore_case, insert_default_directory)
14128 (Qdefault_directory): Move to minibuffer.el.
14129 (Fread_file_name): Call the new `read-file-name' instead.
14130
14131 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14132
14133 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14134 Make function non-static.
14135 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14136 Remove function.
14137 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14138 Move to mactoolbox.c.
14139 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14140
14141 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14142 (mac_rect_make): New macro.
14143
14144 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14145 instead of float.
14146 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14147 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14148 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14149 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14150 CGRectMake.
14151 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14152 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14153 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14154 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14155 instead of WindowRef in argument type.
14156 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14157 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14158 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14159 instead of DISPLAY. All uses changed.
14160 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14161 (x_calc_absolute_position): Simplify so as not to use
14162 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14163
14164 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14165 instead of WindowRef in argument type.
14166 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14167 [TARGET_API_MAC_CARBON]: Remove externs.
14168 (create_apple_event, mac_event_parameters_to_lisp)
14169 [TARGET_API_MAC_CARBON]: Add externs.
14170
14171 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14172 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14173 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14174 is clicked.
14175 (x_activate_menubar): Remove extern for saved_menu_event_location.
14176 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14177 Move from mac.c.
14178
14179 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14180
14181 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14182 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14183
14184 2008-04-23 Jason Rumney <jasonr@gnu.org>
14185
14186 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14187 attributes only for local files.
14188
14189 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14190 default to Qlocal.
14191
14192 2008-04-22 Juri Linkov <juri@jurta.org>
14193
14194 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14195 read-buffer-to-switch instead of using the letter "B".
14196
14197 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14198
14199 * fileio.c (Qdefault_directory): New variable.
14200 (Fread_file_name): Use it to pass `dir' to the completion functions.
14201
14202 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
14203
14204 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14205
14206 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14207
14208 * keyboard.c (Vpre_help_message): Remove.
14209 (show_help_echo): Remove default C code.
14210
14211 * dired.c (directory_files_internal, file_name_completion):
14212 Only call ENCODE_FILE if the string is indeed decoded.
14213
14214 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14215
14216 * Makefile.in (TOOLKIT_DEFINES): Remove.
14217 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14218
14219 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14220
14221 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14222 (mactoolbox.o): New target.
14223
14224 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14225 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14226
14227 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14228 Use mac_set_frame_window_background instead of XSetWindowBackground.
14229 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14230 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14231 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14232 instead of SetWindowTitleWithCFString.
14233 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14234 Move function to mactoolbox.c.
14235 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14236 Use mac_set_window_modified instead of SetWindowModified.
14237 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14238 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14239 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14240 FrontNonFloatingWindow. Use mac_activate_window instead of
14241 ActivateWindow. Use mac_active_non_floating_window instead of
14242 ActiveNonFloatingWindow.
14243 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14244 Use mac_show_hourglass and mac_hide_hourglass.
14245 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14246 instead of GetGlobalMouse.
14247 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14248 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14249 Use mac_bring_window_to_front instead of BringToFront.
14250 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14251 mactoolbox.c.
14252 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14253 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14254 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14255 mactoolbox.c.
14256
14257 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14258 (XtPointer): Move typedef from macmenu.c.
14259 (enum button_type): Move enum from macmenu.c.
14260 (widget_value): Move typedef from macmenu.c.
14261 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14262 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14263 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14264 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14265 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14266 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14267 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14268 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14269 (Selection): Move typedef from macselect.c.
14270 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14271 macterm.c.
14272 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14273 (mac_is_window_collapsed, mac_bring_window_to_front)
14274 (mac_send_window_behind, mac_hide_window, mac_show_window)
14275 (mac_collapse_window, mac_front_non_floating_window)
14276 (mac_active_non_floating_window, mac_activate_window)
14277 (mac_move_window_structure, mac_move_window, mac_size_window)
14278 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14279
14280 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14281 (enum mac_menu_kind): Move enum to mactoolbox.c.
14282 (min_menu_id): Move variable to mactoolbox.c.
14283 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14284 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14285 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14286 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14287 [TARGET_API_MAC_CARBON]: Likewise.
14288 (XtPointer): Move typedef to macgui.h.
14289 (enum button_type): Move enum to macgui.h.
14290 (widget_value): Move typedef to macgui.h.
14291 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14292 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14293 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14294 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14295 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14296 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14297 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14298 (popup_activated_flag): Make variable non-static.
14299 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14300 (add_menu_item, fill_menu, dispose_menus):
14301 Move functions to mactoolbox.c.
14302 (restore_show_help_function, menu_target_item_handler)
14303 (install_menu_target_item_handler, mac_handle_dialog_event)
14304 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14305 [TARGET_API_MAC_CARBON]: Likewise.
14306 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14307 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14308 (find_and_call_menu_selection, name_is_separator): Make function
14309 non-static.
14310 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14311 to mactoolbox.c.
14312 (set_frame_menubar): Don't call install_menu_quit_handler.
14313 (menu_item_selection): New variable.
14314 (mac_menu_show): Use create_and_show_popup_menu.
14315 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14316 selection but set variable menu_item_selection. All uses changed.
14317 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14318 Call install_menu_quit_handler. Move to mactoolbox.c.
14319
14320 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14321 (Selection): Move typedef to macgui.h.
14322 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14323 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14324 Make variables non-static.
14325 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14326 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14327 Make functions non-static.
14328 (Vmac_service_selection) [MAC_OSX]: Likewise.
14329 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14330 (mac_valid_selection_target_p, mac_clear_selection)
14331 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14332 (mac_put_selection_value, mac_selection_has_target_p)
14333 (mac_get_selection_value, mac_get_selection_target_list)
14334 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14335 Move functions to mactoolbox.c.
14336 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14337 Likewise.
14338 (copy_scrap_flavor_data, mac_handle_service_event)
14339 (install_service_handler) [MAC_OSX]: Likewise.
14340 (syms_of_macselect) <Vmac_dnd_known_types>:
14341 Use mac_dnd_default_known_types.
14342
14343 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14344 Move to mactoolbox.c.
14345 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14346 (Fx_selection_owner_p): Add EXFUN.
14347 (install_window_handler, remove_window_handler, XSetWindowBackground):
14348 Remove externs.
14349 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14350 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14351 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14352 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14353 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14354 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14355 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14356 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14357 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14358 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14359 (mac_valid_selection_target_p, mac_clear_selection)
14360 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14361 (mac_put_selection_value, mac_selection_has_target_p)
14362 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14363 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14364 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14365 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14366 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14367 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14368 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14369 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14370 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14371
14372 * mactoolbox.c: New file.
14373
14374 2008-04-18 Jason Rumney <jasonr@gnu.org>
14375
14376 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14377
14378 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14379
14380 * character.c (Fmultibyte_char_to_unibyte):
14381 Return latin1 chars unchanged.
14382
14383 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14384 relocated if it points to `name'.
14385
14386 2008-04-17 Kenichi Handa <handa@m17n.org>
14387
14388 * data.c (Faset): Allow setting a multibyte character in an
14389 ASCII-only unibyte string.
14390
14391 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14392
14393 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14394
14395 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14396 done in config.h.
14397
14398 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
14399
14400 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14401 (Fchar_direction): Add usage in the docstring.
14402
14403 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
14404
14405 * keyboard.c (read_key_sequence): Remove always-true checks.
14406
14407 2008-04-14 Jason Rumney <jasonr@gnu.org>
14408
14409 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14410 compatibility struct, for better underline positioning.
14411
14412 2008-04-13 David Hansen <david.hansen@gmx.net>
14413
14414 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14415 string.
14416
14417 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14418
14419 * m/hp800.h (XUINT, XSET): Remove.
14420
14421 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
14422
14423 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14424 previous change.
14425
14426 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14427
14428 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14429 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14430
14431 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14432
14433 * keymap.h (map_keymap_canonical): Declare.
14434 * xmenu.c (single_keymap_panes): Use it.
14435
14436 2008-04-11 Glenn Morris <rgm@gnu.org>
14437
14438 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14439 set the target's value to that of the alias.
14440
14441 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14442
14443 * term.c (set_tty_color_mode): Left over typo.
14444
14445 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
14446
14447 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14448 only after check for file name handler functions. Signal, when
14449 native functionality is not supported.
14450 (syms_of_fileio): Declare it unconditionally.
14451
14452 2008-04-10 Jason Rumney <jasonr@gnu.org>
14453
14454 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14455 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14456
14457 * w32.c (logon_network_drive): Also logon to remote drives that
14458 are mapped to drive letters.
14459
14460 2008-04-10 Glenn Morris <rgm@gnu.org>
14461
14462 * xdisp.c (truncate-partial-width-windows): Doc fix.
14463
14464 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14465
14466 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14467 Move functions to minibuffer.el.
14468 (syms_of_fileio): Don't declare them.
14469
14470 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14471
14472 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14473 (syms_of_minibuf): Remove its initialization.
14474
14475 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14476
14477 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
14478
14479 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14480
14481 2008-04-09 Jason Rumney <jasonr@gnu.org>
14482
14483 * makefile.w32-in (distclean): Delete makefile too.
14484 (maintainer-clean): New target.
14485
14486 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14487
14488 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14489 for new font backend and composite cases.
14490
14491 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14492
14493 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14494 Most of the code moved to run_timers.
14495 (do_pending_atimers): Call run_timers.
14496 (run_timers): New function.
14497
14498 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14499 run atimers.
14500
14501 * process.c (wait_reading_process_output): The same as above.
14502
14503 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14504
14505 * minibuf.c (last_exact_completion): Remove variable.
14506 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14507 (complete_and_exit_1, complete_and_exit_2)
14508 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14509 (Fdisplay_completion_list, display_completion_list_1)
14510 (Fminibuffer_completion_help, Fself_insert_and_exit)
14511 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14512 minibuffer.el.
14513 (syms_of_minibuf): Remove corresponding initializations.
14514
14515 * keyboard.c (Qdeactivate_mark): New var.
14516 (command_loop_1): Use it to call `deactivate-mark'.
14517 (syms_of_keyboard): Initialize it.
14518
14519 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14520 to another frame.
14521 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14522 Don't call set_tty_color_mode.
14523 (store_frame_param): Reset previous_frame rather than call
14524 set_tty_color_mode.
14525 * term.c (set_tty_color_mode): Rewrite.
14526 * dispextern.h (set_tty_color_mode): New type.
14527 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14528
14529 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14530
14531 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14532 for generic chars, which do not exist any more in emacs-unicode.
14533
14534 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
14535
14536 * coding.c (detect_coding_emacs_mule)
14537 (Ffind_operation_coding_system): Fix typo.
14538
14539 2008-04-08 Jason Rumney <jasonr@gnu.org>
14540
14541 * w32uniscribe.c (SNAME): Extract only symbol name.
14542
14543 * w32font.h (struct w32_metric_cache): New struct.
14544 (w32font_info): Use it.
14545 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14546 (CACHE_BLOCKSIZE): New constants.
14547
14548 * w32font.c (Qja, Qko, Qzh): New symbols.
14549 (syms_of_w32font): Initialise them.
14550 (font_matches_spec): Use them to filter by language.
14551 (recompute_cached_metrics): Remove function.
14552 (compute_metrics, clear_cached_metrics): New functions.
14553 (w32font_encode_char): Use them to manage metric cache.
14554 (w32font_text_extents): Cache metrics for all glyphs on demand.
14555 Delay converting glyph indices to WORD until needed.
14556 (w32font_open_internal): Initialize metric cache to empty.
14557 (registry_to_w32_charset): Charset should always be a symbol.
14558 (fill_in_logfont, list_all_matching_fonts): Family should
14559 always be a symbol.
14560
14561 2008-04-06 Jason Rumney <jasonr@gnu.org>
14562
14563 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14564 Give up if glyph indices not supported. Use uniscribe obtained
14565 ABC widths for individual metrics. Map glyph clusters back to
14566 characters using fClusterStart flag. Return number of glyphs
14567 produced, not chars processed.
14568 (uniscribe_shape): Map char at FROM to current glyph.
14569
14570 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14571
14572 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14573 Use SetMenuItemHierarchicalMenu.
14574
14575 2008-04-05 Jason Rumney <jasonr@gnu.org>
14576
14577 * image.c (pbm_load): Allow color values up to 65535.
14578 Throw an error if max_color_idx is outside the supported range.
14579 Report an error when image size is invalid.
14580 Read two bytes at a time when raw images have max_color_idx above 255.
14581
14582 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14583
14584 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14585 append "CCL: Quitted" when the CCL program is quitted.
14586 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14587
14588 * ccl.h (struct ccl_program): New member quit_silently.
14589
14590 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
14591
14592 * search.c (compile_pattern_1): Treat non-nil and non-string of
14593 search-spaces-regexp as nil.
14594
14595 * minibuf.c (Fassoc_string): Tweak docstring.
14596
14597 2008-04-05 Eli Zaretskii <eliz@gnu.org>
14598
14599 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14600 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14601 2008-03-14 to force inode be positive.
14602
14603 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14604 _S_* ones, since we now use our own sys/stat.h.
14605 (stat, fstat): Don't mangle the inode number.
14606 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14607
14608 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14609
14610 * frame.h (struct frame): Give one more bit to `visible' since we use
14611 values larger than 1 to indicate obscured frames on ttys.
14612
14613 * keymap.c (Qkeymap_canonicalize): New var.
14614 (Fmap_keymap_internal): New fun.
14615 (describe_map): Use keymap-canonicalize.
14616
14617 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14618 (Fundo_boundary): Set them.
14619 (syms_of_undo): Initialize them.
14620 (record_point): Use them instead of last_point_position*.
14621 (last_undo_buffer): Change type.
14622
14623 2008-04-04 Jason Rumney <jasonr@gnu.org>
14624
14625 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14626 (recompute_cached_metrics): Don't set ascent and descent per char.
14627
14628 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14629 (uniscribe_check_otf): Add GC protection before consing.
14630 Rearrange loop for counting features.
14631
14632 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14633
14634 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14635 buffer with byte-size of source buffer.
14636
14637 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
14638
14639 * callint.c (Fcall_interactively): Handle temporary region even
14640 when shift-select-mode is off.
14641
14642 2008-04-03 Jason Rumney <jasonr@gnu.org>
14643
14644 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14645
14646 2008-04-03 Kenichi Handa <handa@m17n.org>
14647
14648 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14649 (CATEGORY_MASK_UTF_16): Likewise.
14650 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14651 binary file.
14652 (detect_coding): Add null-byte detection for a binary file.
14653 (detect_coding_system): Likewise.
14654
14655 2008-04-03 Jason Rumney <jasonr@gnu.org>
14656
14657 * w32uniscribe.c: New file.
14658
14659 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14660
14661 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14662
14663 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14664 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14665 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14666 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14667 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14668 (Qphonetic): New symbols.
14669 (syms_of_w32font): Initialize them.
14670 (font_supported_scripts): Use them.
14671 (w32font_list_family): List all charsets.
14672 (w32font_text_extents, recompute_cached_metrics): Fix metric
14673 calculations.
14674 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14675 Give opentype fonts their own format.
14676 (font_matches_spec): New arguments backend and logfont.
14677 Handle :otf spec for uniscribe backend.
14678 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14679 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14680
14681 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14682 font backend.
14683 (globals_of_w32fns): Initialize uniscribe font backend.
14684
14685 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14686 dependencies.
14687 (w32uniscribe.$(O)): New file to build.
14688 (FONT_OBJ): Include w32uniscribe.$(O).
14689 (LIBS): Add uniscribe libraries.
14690
14691 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14692
14693 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
14694
14695 * callint.c (Vshift_select_mode): New var.
14696 (Finteractive): Document new ^ spec.
14697 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14698 is present.
14699
14700 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14701 (command_loop_1): Avoid running the direct display versions of
14702 forward-char and backward-char if shift-selection may occur.
14703 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14704 shift-translation takes place.
14705
14706 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14707 avoid clobbering by define-minor-mode.
14708
14709 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14710 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14711
14712 * syntax.c (Fforward_word): Add ^ interactive spec.
14713
14714 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14715 (Fscroll_right): Add ^ interactive spec.
14716
14717 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14718
14719 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14720
14721 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14722
14723 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14724
14725 2008-03-31 Juri Linkov <juri@jurta.org>
14726
14727 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14728
14729 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14730
14731 * gtkutil.c (xg_set_geometry): Fix indentation.
14732 (xg_resize_outer_widget): Remove.
14733 (x_wm_size_hint_off): Fix indentation.
14734 (xg_frame_set_char_size): Call flush_and_sync after
14735 gtk_window_resize.
14736 (x_wm_set_size_hint): Pass NULL as geometry window to
14737 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14738 Add menu bar and tool bar height to base height.
14739 (xg_update_frame_menubar, free_frame_menubar)
14740 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14741 (update_frame_tool_bar, free_frame_tool_bar):
14742 Change xg_resize_outer_widget to xg_frame_set_char_size.
14743
14744 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
14745
14746 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14747 (Fdbus_call_method): New parameter TIMEOUT.
14748 (dbus-send-signal): Optimize UNGCPRO call.
14749
14750 2008-03-29 Juri Linkov <juri@jurta.org>
14751
14752 * window.c (Fdisplay_buffer): Move call to
14753 Vsplit_window_preferred_function out of conditions that check
14754 if window is eligible for vertical splitting.
14755 When Vsplit_window_preferred_function is non-nil, call it and use
14756 its non-nil return value as window. Otherwise, continue doing
14757 vertical splitting using Fsplit_window with arg horflag=nil.
14758 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14759 default value from `split-window' to nil.
14760
14761 2008-03-29 Juri Linkov <juri@jurta.org>
14762
14763 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14764 for interactive code letters 'b' and 'B'.
14765
14766 2008-03-29 Eli Zaretskii <eliz@gnu.org>
14767
14768 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14769 multibyte string.
14770
14771 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14772
14773 * keyboard.c (pending_funcalls): New var.
14774 (timer_check): Run it.
14775 (syms_of_keyboard): Initialize it.
14776 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14777 (Vdelete_terminal_functions): New vars.
14778 (syms_of_terminal): Initialize them.
14779 (Fdelete_terminal): Run delete-terminal-functions.
14780 * xdisp.c (safe_eval): Rewrite.
14781 (safe_call2): New fun.
14782 * frame.c (Qdelete_frame_functions): New var.
14783 (syms_of_frame): Initialize it.
14784 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14785 * lisp.h (safe_call2, pending_funcalls): Declare.
14786
14787 2008-03-28 Andreas Schwab <schwab@suse.de>
14788
14789 * indent.c (Fmove_to_column): Move declaration before statements.
14790
14791 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14792
14793 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14794 (struct frame): Use bit fields for boolean vars.
14795
14796 * process.c (server_accept_connection): Simplify naming.
14797 (emacs_get_tty_pgrp): Use SDATA.
14798
14799 * coding.c (decode_coding_object): Fix last change.
14800
14801 2008-03-27 Jason Rumney <jasonr@gnu.org>
14802
14803 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14804
14805 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14806
14807 * charset.c (Fdefine_charset_internal): Change the way of
14808 registering charsets in Vcharset_order_list.
14809 (syms_of_charset): Make the charset `eight-bit' supplementary.
14810
14811 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14812
14813 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14814 operations, to avoid having the difference between pointers
14815 overflow.
14816
14817 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14818
14819 * indent.c (check_display_width): New fun.
14820 (scan_for_column): Use it.
14821
14822 * data.c (syms_of_data): Mark most-positive-fixnum and
14823 most-negative-fixnum as constants.
14824
14825 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14826
14827 * indent.c (scan_for_column): Extract from current_column_1.
14828 Merge with the same code from Fmove_to_column.
14829 (current_column_1, Fmove_to_column): Use it.
14830
14831 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14832
14833 * keymap.c (map_keymap_internal): New fun.
14834 (map_keymap): Use it.
14835 (Fmap_keymap_internal): New fun.
14836 (Fmap_keymap): Remove left-out test from before make_save_value.
14837
14838 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14839
14840 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14841 Use XCAR/XCDR.
14842
14843 * process.h (struct Lisp_Process): Remove filter_multibyte.
14844 * process.c (QCfilter_multibyte): Remove.
14845 (setup_process_coding_systems): Don't use filter_multibyte.
14846 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14847 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14848 (Fset_process_filter_multibyte): Change the coding-system to
14849 approximate the previous behavior.
14850 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14851 coding-system.
14852
14853 * coding.c (decode_coding_object): When not decoding into a buffer,
14854 obey the coding system's preference of (uni|multi)byte.
14855
14856 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14857
14858 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14859 every char is changed and has a different byte-length.
14860 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14861 Fix int -> EMACS_INT.
14862
14863 2008-03-23 David Hansen <david.hansen@gmx.net>
14864
14865 * dbusbind.c (xd_read_message): Remove extra copying of message
14866 strings. Check for NULL `interface' or `member'.
14867
14868 2008-03-22 Eli Zaretskii <eliz@gnu.org>
14869
14870 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14871 cFileName a file name that includes `?' characters, use the 8+3
14872 alias in cAlternateFileName instead.
14873
14874 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14875
14876 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14877
14878 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14879
14880 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14881 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14882 work on current_buffer only instead (that was already the case
14883 for some of the code anyway).
14884 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14885 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14886 (SET_PT, SET_PT_BOTH): Adjust.
14887 * intervals.h (set_point, temp_set_point, set_point_both)
14888 (temp_set_point_both): Remove redundant declarations.
14889
14890 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14891
14892 * fileio.c (Finsert_file_contents):
14893 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14894 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14895 when buffer != current_buffer anyway.
14896
14897 2008-03-20 Andreas Schwab <schwab@suse.de>
14898
14899 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14900 as default.
14901
14902 2008-03-19 Jason Rumney <jasonr@gnu.org>
14903
14904 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14905 (syms_of_w32fns): Initialize them.
14906 (HOURGLASS_ID): New constant.
14907 (x_window_to_frame): Don't check hourglass_window.
14908 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14909 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14910 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14911 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14912 Only change the cursor if hourglass is not active.
14913 (Fx_create_frame): Initialize frame's current_cursor.
14914 (hourglass_atimer): Remove.
14915 (hourglass_started): New function.
14916 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14917 (show_hourglass): Adapt to w32, changing argument to frame.
14918
14919 * w32term.h (struct w32_output): Remove hourglass_window.
14920 Add current_cursor.
14921
14922 * eval.c (call_debugger, Fsignal):
14923 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14924 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14925 (Fexecute_extended_command, cancel_hourglass_unwind):
14926 * minibuf.c (read_minibuf):
14927 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14928
14929 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14930
14931 * window.c (run_funs): New fun.
14932 (run_window_configuration_change_hook): Use it to run the buffer-local
14933 and the global part of the hook.
14934
14935 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14936 (unwind_format_mode_line): Restore selected window.
14937 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14938
14939 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14940
14941 * editfns.c (Fchar_equal): Check they are valid characters.
14942
14943 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14944
14945 2008-03-17 Andreas Schwab <schwab@suse.de>
14946
14947 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14948 against a charset.
14949
14950 * lisp.h (Fbuffer_list): Declare.
14951
14952 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
14953
14954 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14955 handlebox_widget is != 0.
14956
14957 2008-03-16 Juri Linkov <juri@jurta.org>
14958
14959 * callint.c (Fcall_interactively): For interactive code letters
14960 'b' and 'B' put the buffer list into the list of default "future"
14961 values of the minibuffer.
14962
14963 2008-03-16 Andreas Schwab <schwab@suse.de>
14964
14965 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14966 modifiers.
14967
14968 * regex.c (re_match_2_internal): Correct matching of a charset
14969 against latin-1 characters.
14970
14971 2008-03-16 Kenichi Handa <handa@m17n.org>
14972
14973 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14974 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14975 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14976 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14977 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14978 CHAR_STRING_ADVANCE.
14979 (produce_chars): Fix for the case that the source and the
14980 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14981 instead of CHAR_STRING_ADVANCE.
14982 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14983 STRING_CHAR_ADVANCE.
14984
14985 2008-03-15 Andreas Schwab <schwab@suse.de>
14986
14987 * regex.c (re_match_2_internal): Correct matching of eight bit
14988 characters in unibyte strings.
14989
14990 2008-03-15 Martin Rudalics <rudalics@gmx.at>
14991
14992 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14993 at end of range when it coincides with the end of the buffer.
14994
14995 2008-03-14 Eli Zaretskii <eliz@gnu.org>
14996
14997 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14998
14999 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15000
15001 2008-03-14 Jason Rumney <jasonr@gnu.org>
15002
15003 * editfns.c (initial_tz): New variable.
15004 (syms_of_editfns): Initialize it.
15005 (Fset_time_zone_rule): Set it when first called.
15006 Use it when TZSTRING is nil.
15007
15008 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15009 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15010 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15011 (globals_of_w32fns): Initialize them.
15012 (compute_tip_xy): Use them to position tooltips.
15013
15014 2008-03-14 Glenn Morris <rgm@gnu.org>
15015
15016 * emacs.c (main): Revert previous change.
15017 (standard_args): Revert -internal-script back to -scriptload,
15018 and remove the long-option form.
15019
15020 2008-03-13 Glenn Morris <rgm@gnu.org>
15021
15022 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15023 Remove option -enable-font-backend.
15024
15025 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15026
15027 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15028
15029 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15030
15031 * xterm.c (x_connection_closed): For GTK: If this is the last
15032 terminal just exit without closing the display.
15033
15034 2008-03-11 Jason Rumney <jasonr@gnu.org>
15035
15036 * w32font.c (w32font_full_name): Use floor to round.
15037
15038 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15039
15040 * sound.c (alsa_configure): Declare vol at beginning of block.
15041
15042 * fontset.c (Ffontset_info): Remove extra semicolon.
15043
15044 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15045
15046 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15047 size of resulting string.
15048
15049 2008-03-10 Jason Rumney <jasonr@gnu.org>
15050
15051 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15052
15053 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15054
15055 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15056 Don't pretend as if characters with display property haven't been
15057 consumed for string-replacing-string case.
15058
15059 2008-03-08 Kim F. Storm <storm@cua.dk>
15060
15061 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15062 (get_next_display_element, next_element_from_string)
15063 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15064
15065 2008-03-08 Andreas Schwab <schwab@suse.de>
15066
15067 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15068
15069 2008-03-06 Jason Rumney <jasonr@gnu.org>
15070
15071 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15072 when charset not specified. Only translate ANSI to unicode when
15073 font_type is truetype.
15074 (w32font_coverage_ok): New function.
15075 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15076
15077 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15078
15079 * lread.c (Fread_char): Resolve modifiers.
15080 (Fread_char_exclusive): Likewise.
15081
15082 * character.c (char_resolve_modifier_mask): New function.
15083 (char_string): Use char_resolve_modifier_mask.
15084 (Fchar_resolve_modifiers): New function.
15085 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15086 function.
15087
15088 2008-03-04 Jason Rumney <jasonr@gnu.org>
15089
15090 * makefile.w32-in: Always include w32font.c in the build.
15091 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15092
15093 2008-03-04 Andreas Schwab <schwab@suse.de>
15094
15095 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15096 (versionclean): Likewise.
15097
15098 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
15099
15100 * .cvsignore: Add oo.
15101
15102 2008-03-03 Andreas Schwab <schwab@suse.de>
15103
15104 * coding.c (decode_coding_object): Inhibit gap shrinking while
15105 decoding in place.
15106
15107 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15108
15109 * w32term.c: Remove unused include "gnu.h".
15110 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15111
15112 * gnu.h: Rename to ...
15113 * emacs-icon.h: ... this.
15114 * xterm.c: Use emacs-icon.h instead of gnu.h.
15115 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15116
15117 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
15118
15119 * w32font.c: Include math.h.
15120
15121 2008-03-03 Jason Rumney <jasonr@gnu.org>
15122
15123 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15124 Compute options separately.
15125 (w32font_open_internal): Set glyph_idx before caching metrics.
15126
15127 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15128 Define if system headers don't.
15129 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15130 (w32font_encode_char): Don't declare here.
15131
15132 * w32font.c (Quniscribe, QCformat): New symbols.
15133 (syms_of_w32font): Define them.
15134 (w32font_has_char): Indicate uncertainty.
15135 (w32font_encode_char): Encode as glyph point. Make static.
15136 (recompute_cached_metrics): New function.
15137 (w32font_open_internal): Use it. Set font to use glyph points
15138 initially. Set format based on type of font.
15139 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15140 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15141 on it. Set format based on information available here.
15142 (add_font_entity_to_list): Identify backend based on opentype_only.
15143
15144 2008-03-02 Andreas Schwab <schwab@suse.de>
15145
15146 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15147
15148 * coding.c (decode_coding_big5, produce_chars):
15149 Fix typos in last change.
15150
15151 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15152
15153 * gnu.h: New icon.
15154
15155 2008-03-02 Kenichi Handa <handa@m17n.org>
15156
15157 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15158 `dos', don't decode '\r' if that is the last in the source.
15159 (decode_coding_utf_16, decode_coding_emacs_mule)
15160 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15161 (decode_coding_raw_text, decode_coding_charset): Likewise.
15162 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15163
15164 2008-03-01 Jason Rumney <jasonr@gnu.org>
15165
15166 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15167
15168 2008-03-01 Kim F. Storm <storm@cua.dk>
15169
15170 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15171
15172 2008-03-01 Jason Rumney <jasonr@gnu.org>
15173
15174 * w32font.c (w32font_full_name): New function.
15175 (w32font_open_internal): Use it.
15176
15177 2008-03-01 Kim F. Storm <storm@cua.dk>
15178
15179 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15180
15181 2008-03-01 Jason Rumney <jasonr@gnu.org>
15182
15183 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15184
15185 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15186
15187 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15188 xg_frame_resized when the event is for the edit widget.
15189
15190 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15191
15192 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15193 set_char_size.
15194 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15195 operations on widgets here. Just set frame size if needed.
15196 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15197 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15198 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15199 the whole frame.
15200 (xg_create_tool_bar): Move attachment of the tool bar to
15201 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15202 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15203
15204 2008-03-01 Jason Rumney <jasonr@gnu.org>
15205
15206 * w32fns.c (w32_msg_pump): Disable debug code.
15207
15208 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15209
15210 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15211
15212 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
15213
15214 * xdisp.c (next_overlay_string): Don't set
15215 overlay_strings_at_end_processed_p if we're currently reading from
15216 a display string.
15217
15218 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15219
15220 * xdisp.c (get_overlay_strings_1): Fix typo.
15221
15222 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
15223
15224 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15225
15226 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15227
15228 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15229
15230 * xdisp.c (display_mode_element): Cancel the previous change.
15231 (decode_mode_spec): Likewise.
15232 (handle_auto_composed_prop): Don't make composition if it->string
15233 is a string.
15234
15235 2008-02-27 Kim F. Storm <storm@cua.dk>
15236
15237 * lisp.h (GLYPH): Change type from int to struct with separate char
15238 and face_id members.
15239 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15240 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15241 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15242 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15243 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15244 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15245 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15246 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15247 handle new Lisp glyph code encoding, either an integer or a cons.
15248
15249 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15250 (GLYPH_ALIAS): Delete.
15251 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15252 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15253 (GLYPH_FROM_CHAR): Replace macro by ...
15254 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15255
15256 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15257 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15258 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15259 (GLYPH_INVALID_P): New macro.
15260 (spec_glyph_lookup_face): Update prototype.
15261
15262 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15263 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15264 new glyph code encoding.
15265 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15266 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15267
15268 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15269 Adapt to new glyph type and new glyph code encoding.
15270
15271 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15272
15273 * indent.c (current_column, current_column_1, Fmove_to_column)
15274 (compute_motion): Adapt to new glyph code encoding.
15275
15276 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15277
15278 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
15279
15280 * process.c (wait_reading_process_output): Check for window
15281 changes caused by timers.
15282 Suggested by Johan Bockgård.
15283
15284 2008-02-27 Glenn Morris <rgm@gnu.org>
15285
15286 * emacs.c (USAGE1): Add `--disable-font-backend'.
15287
15288 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15289
15290 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15291 is made to the buffer.
15292
15293 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15294
15295 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15296 (face_at_string_position):
15297 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15298 (face_at_string_position):
15299 * xdisp.c (display_string, next_overlay_change):
15300 * buffer.h (overlays_at):
15301 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15302 Update callers.
15303
15304 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
15305
15306 * editfns.c (Fformat): Doc fix.
15307
15308 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
15309
15310 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15311 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15312 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15313
15314 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15315
15316 * buffer.c (Fbuffer_swap_text): New function.
15317 (syms_of_buffer): Defsubr it.
15318
15319 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
15320
15321 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15322
15323 2008-02-25 Jason Rumney <jasonr@gnu.org>
15324
15325 * w32font.c (w32font_draw): Draw one character at a time when padding.
15326
15327 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15328
15329 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15330 Handle a nil arg. Use run_window_configuration_change_hook.
15331 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15332 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15333 Use run_window_configuration_change_hook.
15334
15335 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15336
15337 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15338 1-pixel width.
15339
15340 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15341
15342 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15343 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15344 if the glyph in the font is zero pixel with.
15345
15346 * dispextern.h (struct glyph_string): New member padding_p.
15347
15348 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15349
15350 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15351
15352 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15353
15354 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15355
15356 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15357
15358 2008-02-25 Jason Rumney <jasonr@gnu.org>
15359
15360 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15361
15362 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15363
15364 Allow fine-grained image-cache flushing.
15365 * dispextern.h (struct image): Add `dependencies' field.
15366 (clear_image_caches): Change arg to Lisp_Object.
15367 * image.c (make_image): Initialize `dependencies' field.
15368 (clear_image_cache): Change arg to allow fine-grained flushing.
15369 Perform the flush even if image-cache-eviction-delay is nil.
15370 (clear_image_caches): Change arg to Lisp_Object.
15371 (Fclear_image_cache): Expand meaning of the argument.
15372 (mark_image): Mark `dependencies' field.
15373 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15374 (lface_hash): Use XHASH rather than XFASTINT.
15375 (face_at_buffer_position): Fix int -> EMACS_INT position.
15376 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15377 (select_frame_for_redisplay): Remove code duplication.
15378 (redisplay_internal): Adapt arg to call to clear_image_caches.
15379
15380 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15381
15382 * s/vms4-0.h:
15383 * s/vms4-2.h:
15384 * s/vms4-4.h:
15385 * s/vms5-5.h: Remove, unused.
15386
15387 * s/irix5-2.h:
15388 * s/irix6-0.h:
15389 * s/riscos5.h:
15390 * s/mach-bsd4-3.h:
15391 * m/mips4.h: Remove files for obsolete systems.
15392
15393 * Makefile.in:
15394 * filelock.c:
15395 * unexmips.c:
15396 * m/hp9000s300.h:
15397 * m/iris4d.h:
15398 * s/aix3-1.h:
15399 * s/hpux.h:
15400 * s/msdos.h:
15401 * s/usg5-0.h:
15402 * s/usg5-2-2.h:
15403 * s/usg5-2.h:
15404 * s/usg5-3.h: Remove references to obsolete variables.
15405
15406 * s/irix5-0.h: Remove, move all the contents ...
15407 * s/irix6-5.h: ... here. Simplify.
15408 * config.in: Regenerate.
15409
15410 2008-02-24 Jason Rumney <jasonr@gnu.org>
15411
15412 * w32term.c (x_draw_glyph_string_background): Clear the background
15413 manually when cleartype is in use.
15414 (x_draw_glyph_string_foreground): Draw text transparently when
15415 cleartype is in use.
15416
15417 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15418 a font into it unless we have to.
15419
15420 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15421
15422 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15423 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
15424
15425 2008-02-18 Jason Rumney <jasonr@gnu.org>
15426
15427 * w32fns.c (Fw32_shell_execute): Encode parameters.
15428
15429 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15430
15431 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15432
15433 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
15434
15435 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15436
15437 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15438
15439 * xterm.c (x_set_offset): Don't change the gravity if
15440 CHANGE_GRAVITY is -1.
15441
15442 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
15443
15444 * fileio.c (auto_save_error_occurred): New var.
15445 (auto_save_error): Set it.
15446 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15447 error occurred.
15448
15449 2008-02-23 Eli Zaretskii <eliz@gnu.org>
15450
15451 * w32.c (globals_of_w32): Add initializations for
15452 g_b_init_get_sid_sub_authority and
15453 g_b_init_get_sid_sub_authority_count.
15454
15455 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15456
15457 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15458 (font_parse_xlfd): Use them for sanity check.
15459 (Finternal_set_font_style_table): Make sure the table is bijective.
15460
15461 Consolidate the image_cache to the terminal struct.
15462 * termhooks.h (P_): Remove redundant def.
15463 (struct terminal): New field `image_cache'.
15464 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15465 of FRAME_X_IMAGE_CACHE.
15466 * xterm.h (struct x_display_info): Remove image_cache field.
15467 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15468 * w32term.h (struct w32_display_info): Remove image_cache field.
15469 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15470 * macterm.h (struct mac_display_info): Remove image_cache field.
15471 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15472 * xterm.c (x_term_init):
15473 * w32term.c (w32_term_init):
15474 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15475 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15476 Remove declarations.
15477 (clear_image_caches, mark_image_cache): New declarations.
15478 * xfaces.c (clear_face_cache):
15479 * xdisp.c (redisplay_internal): Use clear_image_caches.
15480 * image.c (clear_image_cache): Don't check that a frame is on
15481 a window-system before checking if it shares the same cache.
15482 (clear_image_caches): New function.
15483 (Fclear_image_cache): Use it.
15484 (mark_image): Move from allo.c.
15485 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15486 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15487 (mark_object): Don't call mark_image_cache for frames.
15488 (mark_terminals): Call mark_image_cache.
15489
15490 * lisp.h (Fdelete_terminal): Declare.
15491
15492 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15493 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15494 wrong_type_argument.
15495
15496 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15497
15498 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15499 malayalam.el, and tamil.el. Add sinhala.el.
15500
15501 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15502
15503 * xterm.c (x_connection_closed): Consolidate identical tests.
15504 (x_delete_terminal): Don't crash if called via x_connection_closed.
15505
15506 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15507
15508 * xdisp.c (decode_mode_spec): New arg string.
15509 (display_mode_element): Adjust for the above change.
15510
15511 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15512
15513 * callint.c (Fcall_interactively): Use AREF.
15514
15515 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15516
15517 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15518
15519 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15520
15521 * xfns.c (Fx_show_tip): Set string to " " if empty.
15522
15523 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15524
15525 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15526 with Qt.
15527
15528 2008-02-17 Kenichi Handa <handa@m17n.org>
15529
15530 * ftfont.c (ftfont_shape): Return Lispy number.
15531
15532 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15533 for GCs.
15534 (Finternal_set_font_selection_order): Call font_update_sort_order
15535 only when enable_font_backend is set.
15536 (realize_x_face): Set face->font_info to that of default face only
15537 when enable_font_backend is set.
15538
15539 * xdisp.c (handle_composition_prop): Set it->c to the fist
15540 character of the composed region.
15541 (fill_composite_glyph_string): Set base_face->font_info to
15542 s->font_info. Get a face for ascii from base_face->ascii_face.
15543 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15544 with a face already decided.
15545 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15546 non-negative.
15547 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15548 call font_prepare_composition unconditionally.
15549
15550 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15551
15552 * xterm.h (struct x_display_info): New member font.
15553
15554 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15555 (x_set_mouse_face_gc, x_new_font): Likewise.
15556 (x_term_init): Setup display_info->font.
15557 (x_delete_terminal): Free display_info->font.
15558
15559 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15560
15561 * ftxfont.c (ftxfont_default_fid): Delete it.
15562 (ftxfont_open): Set xfont->fid to 0.
15563 (ftxfont_end_for_frame): Clear data specific to the frame and the
15564 font-driver.
15565
15566 * xftfont.c (xftfont_default_fid): Delete it.
15567 (xftfont_open): Set xfont->fid to 0.
15568
15569 * fontset.c (FONTSET_OBJLIST): New macro.
15570 (fontset_find_font): Update font-object list of the fontset.
15571 (free_realized_fontset): New function.
15572 (free_face_fontset): Call free_realized_fontset.
15573 (Ffont_info): Call font_close_object only when enable_font_backend
15574 is set.
15575
15576 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15577 [HAVE_NTGUI]: Include w32term.h.
15578 [MAC_OS]: Include macterm.ch.
15579 (font_otf_ValueRecord): Use make_number.
15580 (font_finish_cache): Fix handling of reference count.
15581 (font_clear_cache): Update num_fonts.
15582 (font_open_entity): Update smallest_char_width and
15583 smallest_font_height of the frame.
15584 (font_close_object): Update num_fonts.
15585 (Fclear_font_cache): Fix finding the target cache data.
15586
15587 2008-02-16 Glenn Morris <rgm@gnu.org>
15588
15589 * fontset.c (Finternal_char_font): Fix compilation warning.
15590
15591 2008-02-16 Eli Zaretskii <eliz@gnu.org>
15592
15593 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15594 instead of char arrays. Enlarge the size of array passed to
15595 get_token_information.
15596
15597 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15598 warnings.
15599
15600 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15601
15602 * .gdbinit: Don't set `args', it breaks gdb --args.
15603
15604 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15605
15606 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15607 within a narrowed buffer.
15608
15609 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15610
15611 * coding.c (decode_coding_object, encode_coding_object):
15612 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15613
15614 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15615
15616 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15617 hardcoding 1.
15618 (detect_coding_system):
15619 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15620 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15621 * insdel.c (insert_from_gap):
15622 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15623 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15624 (string_to_multibyte):
15625 * character.c (chars_in_text, multibyte_chars_in_text):
15626 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15627
15628 * character.h (FETCH_STRING_CHAR_ADVANCE)
15629 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15630 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15631 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15632
15633 * casefiddle.c (casify_region): Only call after-change and composition
15634 functions on the part of the region that was changed.
15635
15636 * keyboard.c (read_avail_input):
15637 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15638
15639 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15640
15641 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15642 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15643
15644 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
15645
15646 * w32menu.c (push_submenu_start, push_submenu_end)
15647 (push_left_right_boundary, push_menu_pane, push_menu_item):
15648 * keyboard.c (read_key_sequence): Don't pass args with side effects
15649 to AREF, it fails when compiling with -DENABLE_CHECKING.
15650
15651 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15652
15653 * Makefile.in (${lispsource}international/charprop.el):
15654 Delete this target.
15655
15656 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15657 emacs-unicode-2.
15658
15659 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15660
15661 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15662
15663 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15664
15665 * frame.c (Qnoelisp): New symbol.
15666 (syms_of_frame): Initialize it.
15667 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15668 harmless Elisp code, from a strong `force' from x_connection_closed.
15669 * frame.h (Qnoelisp): Declare.
15670 * xterm.c (x_connection_closed): Pass `noelisp'.
15671
15672 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15673 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15674 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15675 rather than `int' for the type of `type'.
15676
15677 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15678
15679 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15680
15681 * Makefile.in (GNUC): Remove support for gcc-1.x.
15682
15683 2008-02-10 Richard Stallman <rms@gnu.org>
15684
15685 * lisp.h (ASET): Use AREF, not ASLOT.
15686
15687 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15688
15689 * lisp.h (ASET): Check bounds.
15690
15691 2008-02-10 Glenn Morris <rgm@gnu.org>
15692
15693 * buffer.c (mode-name): Doc fix.
15694
15695 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15696
15697 * Makefile.in:
15698 * emacs.c:
15699 * gmalloc.c:
15700 * keyboard.c:
15701 * lisp.h:
15702 * m/ibm370aix.h:
15703 * process.c:
15704 * regex.c:
15705 * s/hpux.h:
15706 * sysdep.c:
15707 * sysselect.h:
15708 * systty.h:
15709 * unexec.c:
15710 * w32term.c:
15711 * xsmfns.c:
15712 * xterm.c: Remove code that deals with obsolete variables.
15713
15714 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15715
15716 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15717 nothing else needs it anymore.
15718
15719 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15720
15721 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15722 instead of unibyte_char_to_multibyte.
15723
15724 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15725
15726 * s/gnu-linux.h: Remove commented out code.
15727
15728 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15729
15730 * Makefile.in: Update what RMS says about using autoconf.
15731 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15732 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15733 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15734 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15735
15736 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15737
15738 * keymap.c (Fkey_description): Move side effect outside of macro call.
15739
15740 * xfaces.c (Finternal_make_lisp_face):
15741 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15742
15743 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15744 (syms_of_fontset): Use ASET.
15745
15746 * fns.c (concat): Move side effect outside of macro call.
15747 (hash_clear): Use ASET.
15748
15749 2008-02-08 Richard Stallman <rms@gnu.org>
15750
15751 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15752 If FORCE, and frame has a surrogate minibuffer for another frame,
15753 delete the other frame first.
15754
15755 2008-02-07 Timo Savola <timo.savola@iki.fi>
15756
15757 * xterm.c (x_detect_focus_change): Handle embed client message.
15758 (handle_one_xevent): Ditto.
15759 (handle_one_xevent): If embedded and we get a button press/release,
15760 request focus.
15761 (xembed_set_info, xembed_send_message): New functions.
15762 (x_make_frame_visible): Call xembed_set_info if embedded.
15763 (x_make_frame_invisible): Call xembed_set_info if embedded.
15764 (x_term_init): Initialize Xatom_XEMBED.
15765 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15766 (x_iconify_frame): Ditto.
15767
15768 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15769 (enum xembed_info, enum xembed_message, enum xembed_focus)
15770 (enum xembed_modifier, enum xembed_accelerator): New.
15771 (xembed_set_info, xembed_send_message): Declare.
15772 (FRAME_X_EMBEDDED_P): New.
15773
15774 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15775 gtk_plug_new.
15776
15777 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15778 window ID of a frame.
15779 (x_window): Reparent frame if embedded.
15780 (Fx_create_frame): Don't set border width if embedded.
15781
15782 * emacs.c (USAGE3): Add --parent-id.
15783 (standard_args): Ditto.
15784
15785 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15786
15787 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15788
15789 2008-02-07 Jim Meyering <meyering@redhat.com>
15790
15791 Use "do...while (0)", not "if (1)...else" in macro definitions.
15792 The latter provokes a warning from gcc about the empty else, when
15793 followed by ";". Also, without that trailing semicolon, it would
15794 silently swallow up any following statement.
15795 * syntax.h (SETUP_SYNTAX_TABLE)
15796 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15797 * buffer.h (DECODE_POSITION): Likewise.
15798 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15799 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15800 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15801 (FETCH_CHAR_ADVANCE): Likewise.
15802 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15803
15804 2008-02-07 Jim Meyering <meyering@redhat.com>
15805
15806 * lread.c [lint]: Don't include <sys/inode.h>.
15807
15808 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15809
15810 * xselect.c (x_handle_dnd_message):
15811 * xmenu.c (digest_single_submenu, xmenu_show):
15812 * xdisp.c (with_echo_area_buffer_unwind_data)
15813 (format_mode_line_unwind_data, unwind_format_mode_line)
15814 (display_menu_bar):
15815 * eval.c (Ffetch_bytecode):
15816 * doc.c (store_function_docstring):
15817 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15818 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15819 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15820
15821 2008-02-07 Kenichi Handa <handa@m17n.org>
15822
15823 * ftxfont.c (ftxfont_open): Don't set
15824 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15825
15826 * ftfont.c (ftfont_open): Fix previous change.
15827
15828 2008-02-06 Jason Rumney <jasonr@gnu.org>
15829
15830 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15831 Use cached metrics for ASCII characters.
15832 (w32font_open_internal): Don't set font's owning_frame.
15833 Cache metrics for ASCII characters.
15834
15835 * w32font.h (struct w32font_info): Add ascii_metrics.
15836 Remove owning_frame.
15837
15838 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15839
15840 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15841 to negative value.
15842
15843 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15844
15845 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15846
15847 * charset.c (syms_of_charset): Set QCtest and Qeq.
15848
15849 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15850
15851 * process.c (Fstart_process):
15852 * callproc.c (Fcall_process): Handle the case where
15853 Funhandled_file_name_directory returns nil.
15854
15855 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15856 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15857 * font.c (check_gstring): Use them and AREF to access the vector before
15858 we know it's really a gstring.
15859 (Ffont_shape_text): Fix typo.
15860 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
15861
15862 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15863 Declare.
15864
15865 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15866
15867 2008-02-05 Jason Rumney <jasonr@gnu.org>
15868
15869 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15870 Set smallest_font_height and smallest_char_width in display info.
15871
15872 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15873
15874 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15875
15876 2008-02-05 Miles Bader <miles@gnu.org>
15877
15878 * xfaces.c (get_lface_attributes, merge_named_face)
15879 (lookup_named_face, lookup_derived_face, realize_named_face):
15880 Revert 2008-02-01 change by cyd@stupidchicken.com.
15881
15882 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15883
15884 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15885 fallback fonts.
15886 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15887
15888 2008-02-04 Jason Rumney <jasonr@gnu.org>
15889
15890 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15891 set full_name.
15892 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15893
15894 2008-02-03 Jason Rumney <jasonr@gnu.org>
15895
15896 * makefile.w32-in (OBJ1): Include font.o here.
15897 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15898
15899 2008-02-02 Jason Rumney <jasonr@gnu.org>
15900
15901 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15902
15903 2008-02-01 Jason Rumney <jasonr@gnu.org>
15904
15905 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15906
15907 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15908
15909 2008-02-01 Andreas Schwab <schwab@suse.de>
15910
15911 * Makefile.in (shortlisp, lisp): Update for rename of
15912 ../lisp/language/myanmar.el.
15913
15914 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
15915
15916 * xfaces.c (get_lface_attributes): Delete function.
15917 (merge_named_face, lookup_named_face, lookup_derived_face)
15918 (realize_named_face): Call lface_from_face_name directly, and use
15919 the fact that merge_face_vectors does not alter its FROM argument.
15920
15921 2008-02-01 Jason Rumney <jasonr@gnu.org>
15922
15923 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15924 input in the default locale. Handle non-Unicode multibyte input.
15925
15926 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15927
15928 * fontset.c (reorder_font_vector): Exclude nil elements from the
15929 font group. Don't try multiple fonts.
15930 (fontset_font): Adjust for the above change.
15931 (Finternal_char_font): Return nil if the found font doesn't
15932 contain the character ch.
15933
15934 * Makefile.in (lisp, shortlisp): Add cham.el.
15935
15936 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15937
15938 * font.h (FONTP): Make it return 1 also for a font-object.
15939
15940 * .gdbinit (xfontset): New function.
15941
15942 * font.c (font_find_for_lface): Check if the character C is
15943 supported or not only for the first font.
15944
15945 * fontset.c (reorder_font_vector): Fix typo.
15946 (fontset_find_font): Don't add a font-spec specifying a script.
15947 Use 0 (not Qt) for the indication of empty font-group. Change the
15948 format of RFONT-DEF. Return Qt if no font in the font-group
15949 support the character.
15950 (fontset_font): Adjust for the above change. If no font was
15951 found the character, remember that.
15952 (face_for_char): Adjust for the change of RFONT-DEF.
15953 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15954 no font for the target.
15955 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15956
15957 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15958
15959 * font.c (font_load_for_face): Handle the case that the font in
15960 face->lface is a string.
15961
15962 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15963
15964 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15965
15966 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15967
15968 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15969 Fix previous change. If the frame is not on a window system,
15970 signal an error.
15971
15972 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15973
15974 * coding.c (decode_coding_object, encode_coding_object): Adjust
15975 marker positions after conversion.
15976
15977 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15978
15979 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15980
15981 * font.c (font_find_for_lface): Fix the handling of the return
15982 value of font_has_char.
15983 (Ffont_shape_text): Fix previous change.
15984
15985 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15986 (fontset_ref_and_range): Delete it.
15987 (fontset_find_font): Call char_table_ref_and_range instead of
15988 FONTSET_REF_AND_RANGE.
15989 (make_fontset): Don't setup font groups of Latin here.
15990 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15991 (new_fontset_from_font): Make the specified font the default for
15992 all Latin characters.
15993
15994 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15995
15996 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15997 is on a window system before accessing the fontset of the frame.
15998
15999 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16000
16001 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16002
16003 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16004 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16005
16006 * font.c (Ffont_shape_text): If the font driver doesn't have a
16007 shaper function, make zero-width glyphs to have at least one-pixel
16008 width. Fix setting of `to' field of glyphs.
16009
16010 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16011
16012 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16013 glyphs.
16014
16015 * font.h (struct font_driver): Improve docstring of member `shape'.
16016
16017 2008-02-01 Kenichi Handa <handa@m17n.org>
16018
16019 * composite.c (syms_of_composite): Fix docstring of
16020 auto-composition-function.
16021
16022 * font.h (LGLYPH_SIZE): New macro.
16023
16024 * font.c (Ffont_fill_gstring): Stop filling when a character not
16025 supported by the font is found.
16026 (Ffont_shape_text): When a shape callback function returns nil,
16027 try at most two more times with larger gstring.
16028 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16029
16030 * xdisp.c (handle_auto_composed_prop): Change the argument to
16031 auto-composition-function.
16032
16033 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16034 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16035 Lispy glyph and store it in the lgstring.
16036
16037 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16038
16039 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16040
16041 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16042
16043 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16044
16045 * fontset.c (Vfont_encoding_charset_alist): New variable.
16046 (syms_of_fontset): DEFVAR it.
16047 (reorder_font_vector, fontset_find_font): Optimize for the case of
16048 no need of reordering.
16049 (face_for_char): Map the charset property by
16050 Vfont_encoding_charset_alist.
16051
16052 2008-02-01 Jason Rumney <jasonr@gnu.org>
16053
16054 * w32font.c (logfonts_match): Don't check adstyle here.
16055 (font_matches_spec): Check here against physical font instead.
16056 (add_font_entity_to_list): Avoid some substitutions.
16057
16058 * font.c (font_parse_fcname): Default weight and slant to normal.
16059 (font_score): Prefer normal fonts if weight or slant unspecified.
16060 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16061 match freetype scores.
16062
16063 2008-02-01 Jason Rumney <jasonr@gnu.org>
16064
16065 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16066 font, as it may have been deleted.
16067 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16068 most common hyphenless variation.
16069 (logfonts_match): Check generic family.
16070 (font_matches_spec): Don't check generic family here.
16071 (fill_in_logfont): Set generic family based on adstyle.
16072
16073 * w32font.h (w32font_get_cache): Update declaration.
16074
16075 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16076
16077 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16078
16079 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16080 If none of the new drivers are available, call font_update_drivers
16081 with the old drivers.
16082
16083 * w32font.c (w32font_get_cache): Adjust the argument type.
16084
16085 * xfont.c (xfont_get_cache): Adjust the argument type.
16086
16087 * font.h (struct font_driver): Change argument type of get_cache.
16088
16089 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16090
16091 * font.c (Ffont_get): Fix arguments to Fassoc.
16092 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16093 (font_clear_cache): New function.
16094 (font_list_entities, font_matching_entity): Use font_get_cache.
16095 (font_update_drivers): Call font_clear_cache when finishing a driver.
16096
16097 * fontset.c (fontset_find_font): Fix previous change.
16098
16099 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16100
16101 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16102 dpyinfo->font_table.
16103 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16104 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16105
16106 * font.c (font_at): Handle the case that the arg C is negative.
16107 Handle the unibyte case.
16108 (Ffont_at): Call font_at with the arg C -1.
16109
16110 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16111 the position here, and call font_at with the arg C -1.
16112 Don't check the range of the existing composition at the point.
16113
16114 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16115
16116 * fontset.c (fontset_add): New args charset_id and family.
16117 Change caller.
16118 (load_font_get_repertory, fontset_find_font): Assume that
16119 font_spec is always a font-spec object.
16120 (Fset_fontset_font): Always store a font-spec object in a fontset.
16121
16122 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16123 instead of get_property_and_range.
16124
16125 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16126
16127 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16128 (xftfont_open): Don't keep locking face.
16129 (xftfont_close): Don't unlock face.
16130 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16131
16132 * fontset.c (fontset_find_font): Don't prefer a font of
16133 supplementary charset.
16134
16135 2008-02-01 Kenichi Handa <handa@m17n.org>
16136
16137 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16138 script, langsys_tag to langsys, new member script.
16139 (OTF_TAG_STR): Terminate by '\0'.
16140 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
16141 listing to the script specified in that property. Fix arg to
16142 OTF_check_features.
16143
16144 2008-02-01 Jason Rumney <jasonr@gnu.org>
16145
16146 * w32font.h: New file.
16147
16148 * w32font.c: Include it.
16149 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16150 (w32font_open): Set owning_frame.
16151 (w32font_text_extents): Use owning_frame.
16152 (struct font_callback_data): Add opentype_only field.
16153 (add_font_entity_to_list): Use it to filter fonts.
16154 Don't check against full name.
16155 (w32font_list_internal): New function.
16156 (w32font_list): Use it.
16157 (w32font_match_internal): New function.
16158 (w32font_match): Use it.
16159 (w32font_open_internal): New function.
16160 (w32font_open): Use it.
16161 (w32font_get_cache, w32font_close, w32font_has_char)
16162 (w32font_encode_char, w32font_text_extents, w32font_draw):
16163 Make non-static.
16164
16165 * makefile.w32-in (w32font.o): Depend on w32font.h.
16166
16167 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16168
16169 * charset.c (Fdefine_charset_internal): Record a supplementary
16170 charset at the tail of Vcharset_order_list.
16171
16172 * font.c (Ffont_shape_text): Fix the return value.
16173
16174 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16175
16176 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16177
16178 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16179
16180 * ftfont.c (struct OpenTypeSpec): New struct.
16181 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16182 (ftfont_get_open_type_spec): New function.
16183 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16184
16185 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16186
16187 2008-02-01 Jason Rumney <jasonr@gnu.org>
16188
16189 * w32font.c (add_font_entity_to_list): Compare only the beginning
16190 of full name.
16191
16192 2008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16195 Never return HANDLED_RECOMPUTE_PROPS.
16196
16197 2008-02-01 Kenichi Handa <handa@m17n.org>
16198
16199 * font.c (font_gstring_produce): Delete it.
16200
16201 * composite.h (COMPOSITION_METHOD):
16202 Handle COMPOSITION_WITH_GLYPH_STRING.
16203
16204 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16205
16206 * xfont.c (Qx): Delete.
16207 (syms_of_xfont): Don't initialize Qx.
16208
16209 * composite.h (enum composition_method):
16210 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16211
16212 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16213
16214 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16215 (choose_face_font): Accept new form of font-spec.
16216
16217 * frame.h (font_driver_list): Declare it unconditionally.
16218 (struct frame): Define members font_driver_list and font_data_list
16219 unconditionally.
16220
16221 * fontset.c: Include "font.h" unconditionally.
16222 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16223 (Fset_fontset_font): Accept a font-spec object.
16224
16225 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16226 PIXEL_SIZE part a wild card.
16227
16228 * dispextern.h (struct glyph_string): Define members clip and
16229 num_clips unconditionally.
16230 (struct face): Define members font_info and extra unconditionally.
16231
16232 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16233 ftfont_info only when HAVE_LIBOTF is defined.
16234
16235 2008-02-01 Andreas Schwab <schwab@suse.de>
16236
16237 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16238 and end.
16239
16240 2008-02-01 Jason Rumney <jasonr@gnu.org>
16241
16242 * w32font.c (w32font_driver): Add new fields.
16243
16244 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16245
16246 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16247 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16248 (LIBES): Add @M17N_FLT_CFLAGS@.
16249
16250 * composite.c (compose_text): Don't treat the new style
16251 composition specially.
16252
16253 * emacs.c (main): Call syms_of_font unconditionally.
16254
16255 * font.h (FONT_ENTITY_NOT_LOADABLE)
16256 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16257 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16258 (struct font_driver): New member shape.
16259 (font_registry_charsets): Extern it.
16260 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16261 (font_otf_capability, font_drive_otf): Delete their externs.
16262
16263 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16264 (font_charset_alist, font_registry_charsets): Move from xfont.c
16265 and rename.
16266 (font_prop_validate_otf): New function.
16267 (font_property_table): Register it for QCotf.
16268 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16269 (font_drive_otf): Delete.
16270 (font_prepare_composition): New arg F. Adjust for the change of
16271 lispy gstring.
16272 (font_find_for_lface): New arg C.
16273 (font_load_for_face): Adjust for the change of font_find_for_lface.
16274 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16275 lispy gstring.
16276 (Ffont_shape_text): New function.
16277 (Fopen_font): If the font size is not given, use 12-pixel.
16278 (Ffont_at): New arg STRING.
16279 (syms_of_font): Initalize font_charset_alist.
16280 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16281 conditionally.
16282
16283 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16284 fonts of the same font-spec. Change the format of RFONT-DEF.
16285 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16286 Adjust for the change of RFONT-DEF.
16287 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16288
16289 * ftfont.h: New file.
16290
16291 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16292 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16293 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16294 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16295 font_otf_capability and font_drive_otf, set ftfont_shape.
16296 (ftfont_list): Adjust for the change of :otf property value.
16297 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16298 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16299 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16300 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16301 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16302 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16303
16304 * w32term.c (x_draw_composite_glyph_string_foreground):
16305 Adjust for the change of lispy gstring.
16306
16307 * xdisp.c (handle_composition_prop): Adjust for the change of
16308 lispy gstring. Call a function for auto-composition with the
16309 third arg it->window.
16310 (fill_composite_glyph_string): Adjust for the change of lispy string.
16311 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16312
16313 * xfaces.c (set_font_frame_param): Adjust for the change of
16314 font_find_for_lface.
16315
16316 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16317 (xfont_registry_charsets): Likewise. Change caller.
16318 (syms_of_xfont): Don't handle x_font_charset_alist.
16319
16320 * xftfont.c: Include "ftfont.h".
16321 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16322 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16323 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16324 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16325 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16326 Set xftfont_driver.shape to xftfont_shape.
16327
16328 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16329 the change of lispy gstring.
16330
16331 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16332
16333 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16334
16335 2008-02-01 Jason Rumney <jasonr@gnu.org>
16336
16337 * w32font.c (w32font_draw): Fill background manually.
16338
16339 2008-02-01 Jason Rumney <jasonr@gnu.org>
16340
16341 * font.c (Qfontp): Remove unused symbol.
16342 (QCantialias): New symbol.
16343 (syms_of_font): Define it.
16344 (font_property_table): Set a validator for QCantialias.
16345
16346 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16347 Define if not already.
16348 (QCfamily): Share with xfaces.c.
16349 (Qstandard, Qsubpixel, Qnatural): New symbols.
16350 (syms_of_w32font): Define them. Don't define QCfamily here.
16351 (w32_antialias_type, lispy_antialias_type): New functions.
16352 (w32_enumfont_pattern_entity): New arg requested_font.
16353 Set antialias parameter if non-default was requested.
16354 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16355
16356 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16357
16358 * lread.c (read1): Undo the previous change.
16359
16360 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16361
16362 * frame.c (Fdelete_frame): Call font_update_drivers only when
16363 USE_FONT_BACKEND is defined.
16364
16365 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16366
16367 * font.h (struct font_bitmap): New member bits_per_pixel.
16368 (struct font_driver): New members start_for_frame and end_for_frame.
16369 (struct font_data_list): New struct.
16370 (font_put_frame_data, font_get_frame_data): Extern them.
16371
16372 * frame.h (struct frame): New member font_data_list.
16373
16374 * font.c (font_update_drivers): Call driver->start_for_frame and
16375 driver->end_for_frame at proper timings.
16376 (font_put_frame_data, font_get_frame_data): New functions.
16377 (Ffont_spec): Add usage in the docstring.
16378
16379 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16380 (Fdelete_frame): Call font_update_drivers.
16381
16382 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16383 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16384 (xftfont_get_xft_draw): New function.
16385 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16386 (xftfont_end_for_frame): New function.
16387 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16388
16389 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16390 Change argument. Cache GCs in the per-frame data.
16391 (struct ftxfont_frame_data): New struct.
16392 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16393 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16394 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16395 (ftxfont_end_for_frame): New function.
16396 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16397
16398 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16399
16400 2008-02-01 Kenichi Handa <handa@m17n.org>
16401
16402 * xselect.c (Vselection_coding_system)
16403 (Vnext_selection_coding_system): Delete them.
16404 (syms_of_xselect): Don't declare selection-coding-system and
16405 next-selection-coding-system. They are declared in select.el.
16406
16407 2008-02-01 Jason Rumney <jasonr@gnu.org>
16408
16409 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16410
16411 * w32fns.c: Include imm.h.
16412 (get_composition_string_fn, get_ime_context_fn): New optional
16413 system functions.
16414 (globals_of_w32fns): Load them from imm32.dll.
16415 (ignore_ime_char): New flag.
16416 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16417 WM_IME_ENDCOMPOSITION messages.
16418
16419 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16420 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16421
16422 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16423
16424 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16425 (READCHAR_REPORT_MULTIBYTE): New macro.
16426 (readchar): New 2nd arg MULTIBYTE.
16427 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16428 Make symbol's name multibyte according to the multibyteness of the
16429 source.
16430
16431 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16432
16433 * xfaces.c (face_for_overlay_string): Call lookup_face with
16434 correct arguments (fix of synching with the trunk).
16435
16436 2008-02-01 Kenichi Handa <handa@m17n.org>
16437
16438 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16439 (font_prop_validate_non_neg, font_prop_validate_spacing):
16440 Delete argument prop_index.
16441 (font_property_table): Change arguments to validater. Change Callers.
16442 (font_lispy_object): Delete.
16443 (font_at): Use font_find_object instead fo font_lispy_object.
16444
16445 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16446
16447 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16448 and file names.
16449
16450 2008-02-01 Jason Rumney <jasonr@gnu.org>
16451
16452 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16453 (font_matches_spec): Remove debug output.
16454 (add_font_entity_to_list): Avoid using substituted fonts.
16455
16456 2008-02-01 Jason Rumney <jasonr@gnu.org>
16457
16458 * doc.c (Fsnarf_documentation):
16459 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16460
16461 2008-02-01 Miles Bader <miles@gnu.org>
16462
16463 * dispextern.h (struct glyph_row): Only define "clip" field if
16464 HAVE_WINDOW_SYSTEM is defined.
16465
16466 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16467
16468 Fix up multi-tty merge.
16469
16470 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16471 and indentation.
16472
16473 * xfaces.c (free_realized_face, clear_face_gcs):
16474 Include font_done_for_face in the input_blocked section, just in case.
16475
16476 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16477 (get_char_face_and_encoding): Undo last change and remove the *other*
16478 duplicate definition (i.e. keep the one that's better scoped and that
16479 includes code for the font-backend).
16480
16481 * terminal.c (create_terminal): Default keyboard_coding to
16482 `no-conversion' and terminal_coding to `undecided'.
16483
16484 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16485
16486 * fontset.c (free_realized_fontsets): Check that the table entry does
16487 contain a fontset before trying to compare it to `base'.
16488
16489 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16490 syms_of_charset, and syms_of_coding earlier because init_window_once
16491 now needs Vcoding_system_hash_table to be setup.
16492
16493 * coding.h (default_buffer_file_coding): Remove.
16494
16495 * coding.c (default_buffer_file_coding): Remove.
16496 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16497 than ->symbol, and use the terminal-local coding system.
16498 (syms_of_coding): Don't setup the coding-systems that are not
16499 terminal-local.
16500 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16501
16502 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16503 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16504
16505 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16506 in chartab.c and were re-added here by mistake.
16507 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16508
16509 * doc.c (Fsnarf_documentation):
16510 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16511 src to etc.
16512
16513 * ChangeLog.10: Add mistakenly removed entry.
16514
16515 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16516
16517 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16518
16519 2008-02-01 Miles Bader <miles@gnu.org>
16520
16521 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16522 Add extra args to FACE_FOR_CHAR.
16523
16524 2008-02-01 Kenichi Handa <handa@m17n.org>
16525
16526 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16527 in sequence.
16528
16529 * chartab.c (map_sub_char_table, map_char_table): If the range
16530 contains just one character, call the function with that character
16531 even if the depth is not 3.
16532
16533 2008-02-01 Jason Rumney <jasonr@gnu.org>
16534
16535 * w32font.c (w32font_text_extents): Calculate metrics for the
16536 whole string.
16537
16538 2008-02-01 Jason Rumney <jasonr@gnu.org>
16539
16540 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16541
16542 2008-02-01 Jason Rumney <jasonr@gnu.org>
16543
16544 * w32term.c (x_set_glyph_string_clipping): Use
16545 get_glyph_string_clip_rects.
16546 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16547 Adjust for the change of struct glyph_string.
16548
16549 * w32font.c (w32font_draw): Do clipping here.
16550
16551 2008-02-01 Kenichi Handa <handa@m17n.org>
16552
16553 * xftfont.c (xftfont_draw): Adjust for the change of struct
16554 glyph_string.
16555
16556 * xterm.c (x_set_glyph_string_clipping): Use
16557 get_glyph_string_clip_rects.
16558 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16559 Adjust for the change of struct glyph_string.
16560
16561 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16562 the resulting clip(s}.
16563 (expose_overlaps): Add arg r. Change callers. Set it to
16564 row->clip temporarily.
16565 (expose_window): Redraw rows overlapping the exposed area.
16566
16567 * dispextern.h (struct glyph_row): New member clip.
16568 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16569 clip_height, new member clip, and num_clips.
16570
16571 2008-02-01 Kenichi Handa <handa@m17n.org>
16572
16573 * data.c (Fchar_or_string_p): Fix docstring.
16574
16575 2008-02-01 Kenichi Handa <handa@m17n.org>
16576
16577 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16578 create a temporary XftDraw object.
16579
16580 2008-02-01 Kenichi Handa <handa@m17n.org>
16581
16582 * font.c (Ffontp): Fix docstring.
16583
16584 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16585 strong evidence of ISO-2022.
16586
16587 2008-02-01 Kenichi Handa <handa@m17n.org>
16588
16589 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16590 SYNTAX_ENTRY_FOLLOW_PARENT.
16591
16592 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16593
16594 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16595 its type.
16596 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16597 Update to the new type of weak_hash_tables and next_weak.
16598
16599 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16600 a plain C pointer to Lisp_Hash_Table.
16601
16602 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16603 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16604 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16605 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16606 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16607 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16608 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16609 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16610 (GC_EQ): Remove since they've been identical to their non-GC_
16611 alter-egos ever since the markbit was eradicated.
16612
16613 * alloc.c:
16614 * buffer.c:
16615 * buffer.h:
16616 * data.c:
16617 * fileio.c:
16618 * filelock.c:
16619 * fns.c:
16620 * frame.h:
16621 * lisp.h:
16622 * macterm.c:
16623 * print.c:
16624 * process.c:
16625 * w32fns.c:
16626 * w32menu.c:
16627 * w32term.c:
16628 * xfns.c:
16629 * xmenu.c:
16630 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16631
16632 2008-02-01 Kenichi Handa <handa@m17n.org>
16633
16634 * chartab.c (map_sub_char_table): Make it work for the top-level
16635 char-table. Fix handling of parent char-table.
16636 (map_char_table): Adjust for the above change.
16637
16638 2008-02-01 Jason Rumney <jasonr@gnu.org>
16639
16640 * w32font.c (Qgdi): Rename from Qw32.
16641
16642 2008-02-01 Jason Rumney <jasonr@gnu.org>
16643
16644 * w32bdf.c (get_quoted_string): Make function static.
16645
16646 2008-02-01 Kenichi Handa <handa@m17n.org>
16647
16648 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16649 bigger ascent and descent than those of the font, use them as
16650 font's ascent and descent.
16651
16652 2008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * Makefile.in (${lispsource}international/charprop.el): Move this
16655 target within "#ifdef HAVE_UNIDATA" and "#endif".
16656
16657 2008-02-01 Kenichi Handa <handa@m17n.org>
16658
16659 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16660 (shortlisp): Add ../lisp/language/tai-viet.el.
16661
16662 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
16663
16664 * Makefile.in (${lispsource}international/charprop.el): Depend on
16665 temacs${EXEEXT}.
16666
16667 2008-02-01 Jason Rumney <jasonr@gnu.org>
16668
16669 * w32font.c (w32font_close): Delete the GDI font object.
16670
16671 * w32menu.c: Include character.h.
16672
16673 * w32proc.c: Likewise.
16674
16675 * w32select.c: Likewise.
16676
16677 * makefile.w32-in (w32proc.o): Depend on character.h.
16678
16679 2008-02-01 Jason Rumney <jasonr@gnu.org>
16680
16681 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16682
16683 * w32menu.c (syms_of_w32menu): Likewise.
16684
16685 * w32proc.c (syms_of_ntproc): Likewise.
16686
16687 * w32select.c (syms_of_w32select): Likewise.
16688
16689 * w32term.c (syms_of_w32term): Likewise.
16690
16691 2008-02-01 Jason Rumney <jasonr@gnu.org>
16692
16693 * w32font.c (w32font_draw): Delete brush after using it.
16694
16695 2008-02-01 Jason Rumney <jasonr@gnu.org>
16696
16697 * w32font.c (w32font_open): Don't set font_idx.
16698 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16699 to font settings.
16700 (w32font_draw): Fill background explicitly.
16701
16702 2008-02-01 Jason Rumney <jasonr@gnu.org>
16703
16704 * w32term.c (w32_initialize): Don't call w32font_initialize.
16705
16706 * w32font.c (w32font_info): Remove subranges.
16707 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16708 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16709 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16710 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16711 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16712 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16713 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16714 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16715 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16716 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16717 New symbols.
16718 (font_callback_data): New struct.
16719 (w32font_list, w32font_match): Use it.
16720 (w32font_open): Don't populate subranges.
16721 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16722 (w32font_encode_char): Always return unicode code-point as-is.
16723 (w32font_text_extents): Supply a transformation matrix to
16724 GetGlyphOutline. Never look up by glyph index. Avoid looping
16725 twice. Use unicode version of GetTexExtentPoint32 instead of
16726 glyph index version.
16727 (set_fonts_frame): Remove.
16728 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16729 set frame parameter. Use backward compatible fake foundries.
16730 Save generic family in extra slot under QCfamily. Make width slot
16731 constant. Save QCspacing value. Save list of scripts instead of
16732 binary subranges.
16733 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16734 (add_font_entity_to_list): Use font_callback_data struct. Filter
16735 unwanted fonts.
16736 (add_one_font_entity_to_list): Use font_callback_data struct.
16737 (w32_registry): Default to iso10646_1.
16738 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16739 string font registries. Don't fill in font name if it is a generic
16740 family name, fill family instead. Use spacing, family and script
16741 extra info to fill pitch, family and charset fields.
16742 (list_all_matching_fonts): Use font_callback_data struct.
16743 (unicode_range_for_char): Remove.
16744 (font_supported_scripts): New function.
16745 (w32font_initialize): Remove.
16746 (syms_of_w32font): Update which symbols are defined.
16747
16748 2008-02-01 Jason Rumney <jasonr@gnu.org>
16749
16750 * font.c (font_pixel_size): Reverse assq_no_quit args.
16751
16752 * w32term.h (FONT_WIDTH): Report max width, not average.
16753 (FONT_MAX_WIDTH): Remove.
16754 (FONT_AVG_WIDTH): New macro.
16755
16756 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16757 redefinition of FONT_WIDTH.
16758
16759 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16760 (w32_cache_char_metrics): Use FONT_WIDTH.
16761
16762 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16763
16764 2008-02-01 Jason Rumney <jasonr@gnu.org>
16765
16766 * w32font.c (w32font_open): Make lfHeight negative.
16767
16768 * w32fns.c (x_default_font_parameter): Use new style font name.
16769 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16770
16771 2008-02-01 Jason Rumney <jasonr@gnu.org>
16772
16773 * w32font.c (QCsubranges): New symbol.
16774 (w32font_open, w32font_has_char): Get subranges from subproperty
16775 of extra.
16776 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16777 (syms_of_w32font): Define :subranges symbol.
16778
16779 * font.c (font_put_extra): Expose externally.
16780
16781 * font.h (font_put_extra): Move declaration from font.c.
16782
16783 * font.c (Ffont_get): Use font driver to determine otf capability.
16784 (adjust_anchor): Check if driver defines anchor_point before using.
16785
16786 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16787 (w32font_draw): Use options.
16788 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16789 Fix detection of truetype fonts.
16790 (registry_to_w32_charset): Handle charsets other than iso8859-1
16791 expressed as lisp symbols.
16792 (w32_registry): Express charset as lisp symbol.
16793 (fill_in_logfont): Reverse pixel and point height logic.
16794 Don't set width here. Set quality to default.
16795
16796 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16797 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16798
16799 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16800 Remove redundant loop and allocation.
16801
16802 * makefile.w32-in (font.o, w32font.o): New objects.
16803 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16804 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16805
16806 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16807 STORE_XCHARB a valid l-value.
16808
16809 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16810 calculations for non-Truetype fonts.
16811 (x_draw_glyph_string): Sync with xterm.c.
16812 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16813 Remove redundant code.
16814 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16815
16816 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16817 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16818
16819 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16820 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16821
16822 * w32font.c: New file for w32 font backend.
16823
16824 2008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * term.c: Don't include "buffer.h" twice.
16827
16828 2008-02-01 Kenichi Handa <handa@m17n.org>
16829
16830 * character.c (Funibyte_string): New function.
16831 (syms_of_character): Defsubr it.
16832
16833 2008-02-01 Jason Rumney <jasonr@gnu.org>
16834
16835 * w32term.c [USE_FONT_BACKEND]:
16836 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16837 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16838 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16839 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16840 (x_free_frame_resources): Sync with xterm.c.
16841
16842 2008-02-01 Andreas Schwab <schwab@suse.de>
16843
16844 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16845 char-table size.
16846
16847 2008-02-01 Kenichi Handa <handa@m17n.org>
16848
16849 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16850
16851 2008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16854 font_otf_gpos, add font_drive_otf.
16855
16856 * fontset.c (fontset_find_font): Pay attention to font size
16857 specified for a font.
16858 (reorder_font_vector): Check contents of font_def.
16859
16860 * font.c (struct otf_list): Delete it.
16861 (otf_list): Make it a lisp variable.
16862 (otf_open): Use lispy otf_list.
16863 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16864 (check_otf_features): New function.
16865 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16866 New functions.
16867 (font_drive_otf): New function merging font_otf_gsub and
16868 font_otf_gpos.
16869 (font_open_for_lface): New arg spec. Change argument order.
16870 (font_load_for_face): Adjust for the change of font_open_for_lface.
16871 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16872 Ffont_otf_gpos.
16873 (syms_of_font): Staticpro otf_list. Delete defsubr of
16874 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16875
16876 * xfaces.c (set_font_frame_param): Adjust for the change of
16877 font_open_for_lface.
16878
16879 * font.h (font_open_for_lface): Adjust prototype.
16880 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16881 member otf_drive.
16882 (font_otf_gsub, font_otf_gpos): Delete externs.
16883 (font_drive_otf): Extern it.
16884
16885 2008-02-01 Kenichi Handa <handa@m17n.org>
16886
16887 * font.c (font_at): If the window W is not on a window system,
16888 return Qnil.
16889
16890 * coding.c (produce_chars, encode_coding): Don't call
16891 insert_from_gap if no characters to produce.
16892
16893 2008-02-01 Kenichi Handa <handa@m17n.org>
16894
16895 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16896 Fclear_face_cache.
16897
16898 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16899
16900 2008-02-01 Miles Bader <miles@gnu.org>
16901
16902 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16903 Parse "--disable-font-backend" option.
16904 (standard_args): Add "--disable-font-backend" option.
16905
16906 2008-02-01 Kenichi Handa <handa@m17n.org>
16907
16908 * fontset.c (fontset_find_font): New function.
16909 (fontset_font): Use fontset_find_font.
16910 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16911 Register the specified font for all Latin characters.
16912 (new_fontset_from_font): Register the specified font for all Latin
16913 characters.
16914 (dump_fontset): For a realized fontset, include the base fontset
16915 name in the returned vector.
16916
16917 2008-02-01 Kenichi Handa <handa@m17n.org>
16918
16919 * character.h (CHAR_STRING): Cast C to unsigned on calling
16920 char_string.
16921
16922 * character.c (char_string): Type of arg C changed to unsigned.
16923 Signal an error if C is an invalid character code.
16924
16925 * editfns.c (general_insert_function, Fchar_to_string):
16926 Use CHARACTERP, not INTEGERP.
16927
16928 2008-02-01 Kenichi Handa <handa@m17n.org>
16929
16930 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16931 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16932
16933 * regex.c (analyse_first): Fix for multibyte characters in "case
16934 charset:" and "case categoryspec:".
16935
16936 2008-02-01 Andreas Schwab <schwab@suse.de>
16937
16938 * Makefile.in (LIBES): Move standard libraries to the end.
16939
16940 2008-02-01 Kenichi Handa <handa@m17n.org>
16941
16942 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16943 nonzero, don't shrink the buffer nextb.
16944
16945 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16946
16947 * coding.c (coding_alloc_by_making_gap): New arg offset.
16948 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16949 offset.
16950 (decode_coding_iso_2022): Update coding->safe_charsets.
16951 (decode_coding_gap): Temporarily set
16952 current_buffer->text->inhibit_shrinking to 1.
16953
16954 2008-02-01 Kenichi Handa <handa@m17n.org>
16955
16956 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16957 indexing into elements of s->cmp and s->char2b.
16958
16959 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
16960
16961 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16962
16963 2008-02-01 Kenichi Handa <handa@m17n.org>
16964
16965 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16966 target_multibyte instead of multibyte.
16967 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16968 (bcmp_translate): Change the argument name from multibyte to
16969 target_multibyte.
16970
16971 2008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 These changes are to compile a regexp into a pattern that can be
16974 used both for multibyte and unibyte targets.
16975
16976 * Makefile.in (search.o): Depend on charset.h.
16977
16978 * character.c (multibyte_char_to_unibyte_safe): New function.
16979
16980 * search.c: Include "charset.h".
16981 (compile_pattern_1): Delete argument multibyte. Don't set
16982 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16983 (compile_pattern): Don't compare cp->buf.target_multibyte.
16984 Compare cp->buf.charset_unibyte.
16985 (compile_pattern): Set cp->buf.target_multibyte.
16986
16987 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16988
16989 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16990
16991 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16992 multibyte. Change callers.
16993 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16994 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16995 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16996 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16997 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16998 (regex_compile): Make the compiled pattern usable both for
16999 multibyte and unibyte targets.
17000 (analyse_first): Make the fastmap usable both for multibyte and
17001 unibyte targets.
17002 (TRANSLATE_VIA_MULTIBYTE): Delete.
17003 (re_match_2_internal): Pay attention to the case that the
17004 multibyteness of bufp and target may be different.
17005
17006 2008-02-01 Kenichi Handa <handa@m17n.org>
17007
17008 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17009 empty box occupy at least one column width.
17010
17011 2008-02-01 Miles Bader <miles@gnu.org>
17012
17013 * Makefile.in: Remove redundant HAVE_XFT clause.
17014
17015 2008-02-01 Kenichi Handa <handa@m17n.org>
17016
17017 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17018
17019 2008-02-01 Kenichi Handa <handa@m17n.org>
17020
17021 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17022 being nil.
17023
17024 2008-02-01 Kenichi Handa <handa@m17n.org>
17025
17026 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17027
17028 2008-02-01 Kenichi Handa <handa@m17n.org>
17029
17030 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17031
17032 2008-02-01 Kenichi Handa <handa@m17n.org>
17033
17034 * search.c (simple_search): Fix previous change.
17035
17036 2008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * xftfont.c (ftfont_font_format): Extern declaration.
17039
17040 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17041
17042 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17043 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17044
17045 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17046 (ftfont_font_format): Fix previous change.
17047
17048 * font.h (Ffont_xlfd_name): EXFUN it.
17049
17050 * font.c (font_parse_xlfd): Fix the array size of `f'.
17051 (register_font_driver): Use EQ to compare driver->type.
17052
17053 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17054 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17055 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17056
17057 2008-02-01 Kenichi Handa <handa@m17n.org>
17058
17059 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17060 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17061
17062 2008-02-01 Kenichi Handa <handa@m17n.org>
17063
17064 * xfont.c (xfont_open): Set font->format.
17065
17066 * xftfont.c (xftfont_open): Set font->format.
17067
17068 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17069 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17070 (ftfont_open): Set font->format.
17071 (ftfont_font_format): New function.
17072
17073 * font.h (struct font): New member format.
17074
17075 * font.c (Qopentype): New variable.
17076 (syms_of_font): Defsym it.
17077 (Fquery_font): Change the format of the last element of the return
17078 value.
17079
17080 2008-02-01 Kenichi Handa <handa@m17n.org>
17081
17082 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17083 last resort.
17084
17085 2008-02-01 Kenichi Handa <handa@m17n.org>
17086
17087 * coding.c (detect_coding_charset): Fix detection of multi-byte
17088 charset.
17089
17090 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17091
17092 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17093
17094 2008-02-01 Kenichi Handa <handa@m17n.org>
17095
17096 * xdisp.c (get_next_display_element): Set it->face_id for the
17097 first component of a composition.
17098 (x_produce_glyphs): Check if the font is changed or not for composition.
17099
17100 2008-02-01 Kenichi Handa <handa@m17n.org>
17101
17102 * fontset.c (Qlatin): New variable.
17103 (syms_of_fontset): Define it as a lisp symbol.
17104 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17105
17106 2008-02-01 Kenichi Handa <handa@m17n.org>
17107
17108 * font.c (font_unparse_fcname): Pay attention to the case that
17109 some of font property is a null string.
17110
17111 2008-02-01 Kenichi Handa <handa@m17n.org>
17112
17113 * term.c: Include "composite.h".
17114 (encode_terminal_code): Output all components of composition.
17115 Check the size of encode_terminal_src.
17116 (produce_glyphs): For composition, call produce_composite_glyph.
17117 (append_composite_glyph, produce_composite_glyph): New functions.
17118
17119 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17120 is not found, get font_info from the current ascii face.
17121
17122 2008-02-01 Kenichi Handa <handa@m17n.org>
17123
17124 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17125 buffer-file-name to Qnil before calling insert_from_buffer.
17126
17127 * font.c (font_unparse_fcname): Pay attention to the case that
17128 foundry is a null string.
17129
17130 2008-02-01 Kenichi Handa <handa@m17n.org>
17131
17132 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17133
17134 * font.c (Qunicode_sip): New variable.
17135 (syms_of_font): Declare it as a Lisp symbol.
17136
17137 * font.h (Qunicode_sip): Extern it.
17138
17139 2008-02-01 Kenichi Handa <handa@m17n.org>
17140
17141 * composite.c (get_composition_id): Pay attention to TAB component.
17142
17143 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17144 TAB. Adjust for the change of s->char2b which always points to
17145 the first element of allocated memory.
17146
17147 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17148
17149 * xdisp.c (handle_composition_prop): Set it->c to the first
17150 non-TAB component.
17151 (fill_composite_glyph_string): Change argument.
17152 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17153 (x_produce_glyphs): Fix handling of left/right padding.
17154
17155 2008-02-01 Kenichi Handa <handa@m17n.org>
17156
17157 * coding.c (detect_coding_system): Fix for handling off
17158 inhibit_iso_escape_detection. Fix for the case that no coding
17159 system is defined for a specific coding category.
17160
17161 2008-02-01 Kenichi Handa <handa@m17n.org>
17162
17163 * font.c (font_matching_entity): Delete unused local var.
17164
17165 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17166 opening a font.
17167
17168 * fileio.c (Finsert_file_contents): On recovering a file, assume
17169 Unix-like eol.
17170 (choose_write_coding_system): On auto-saving a file, force
17171 Unix-like eol.
17172
17173 * coding.c (setup_coding_system): Fix setting of
17174 coding->common_flags based on eol_type.
17175 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17176 inherit from it.
17177
17178 2008-02-01 Kenichi Handa <handa@m17n.org>
17179
17180 * alloc.c (NSTATICS): Increas to 0x600.
17181
17182 2008-02-01 Kenichi Handa <handa@m17n.org>
17183
17184 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17185 (ftfont_list): Don't check :name property.
17186 (ftfont_match): New function.
17187 (ftfont_pattern_entity): If the pattern doesn't contain
17188 FC_SPACING, don't assume FC_MONO.
17189
17190 * font.h (struct font_driver): New member `match'.
17191 (font_update_drivers): Adjust prototype.
17192
17193 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17194 property of FONT.
17195 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17196 them unconditionally.
17197 (font_matching_entity): New function.
17198 (font_open_by_name): Try font_matching_entity if exact match is
17199 not found.
17200 (font_update_drivers): Delete the arg FONT. Return a list of
17201 actually used backends. Don't free faces, font caches here.
17202 Don't store data in frame parameters. Don't call x_set_font.
17203 (Ffont_spec): Store :name property as is.
17204 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17205 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17206 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17207 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17208 Call font->driver->otf_gsub instead of font_otf_gsub.
17209
17210 * frame.c (x_set_font_backend): Do more works that were done in
17211 font_update_drivers before.
17212
17213 * xfont.c (xfont_match): New function.
17214 (xfont_driver): Set xfont_driver.match to xfont_match.
17215 (xfont_draw): Set font in GC if necessary.
17216
17217 * ftxfont.c (ftxfont_match): New function.
17218 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17219
17220 * xftfont.c (xftfont_match): New function.
17221 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17222
17223 2008-02-01 Kenichi Handa <handa@m17n.org>
17224
17225 * font.h (struct font): New member scalable.
17226 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17227 (font_otf_gsub): Adjust prototype.
17228
17229 * font.c (font_otf_capability): Fix handling of the default langsys.
17230 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17231 Check the contents of SPEC.
17232 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17233 (check_gstring): New function.
17234 (REPLACEMENT_CHARACTER): New macro.
17235 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17236 glyph codes of GSTRING.
17237 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17238 (font_prepare_composition): Set cmp->glyph_len.
17239 (font_open_entity): Set font->scalable.
17240 (Ffont_get): Handle :otf property.
17241 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17242 functions.
17243 (Fquery_font): Use font->font.full_name.
17244 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17245 Sfont_otf_alternates.
17246
17247 * ftfont.c (ftfont_open): Set font->font.full_name and
17248 font->font.name properly. Fix calculation of font->font.height
17249 and font->min_width.
17250
17251 * ftxfont.c (ftxfont_create_gcs): New function.
17252 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17253 (ftxfont_draw_backgrond): Fix filling region.
17254 (ftxfont_default_fid): New function.
17255 (ftxfont_open): Set xfont->fid to the return value of
17256 ftxfont_default_fid.
17257 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17258 (ftxfont_done_face): Free only GCs that are created by
17259 ftxfont_create_gcs.
17260 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17261
17262 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17263 Clip to src->width, etc (not src->clip_XXX).
17264
17265 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17266 FontBackend frame parameter.
17267
17268 2008-02-01 Kenichi Handa <handa@m17n.org>
17269
17270 * font.h (struct font_driver_list): New member `on'.
17271 (Fclear_font_cache): EXFUN it.
17272 (font_update_drivers): Extern it.
17273
17274 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17275 (font_list_entities): Check driver_list->on.
17276 (register_font_driver): Initalize `on' member to 0.
17277 (font_update_drivers): New function.
17278 (Fclear_font_cache): Check driver_list->on.
17279
17280 * frame.h (Qfont_backend): Extern it.
17281 (x_set_font_backend): Extern it.
17282
17283 * frame.c (Qfont_backend): New variable.
17284 (frame_parms): New element for font-backend.
17285 (x_set_font_backend): New function.
17286
17287 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17288 FontBackend frame parameter.
17289 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17290 x_set_font_backend.
17291
17292 * xfont.c (xfont_list): Don't try listing by :name property if the
17293 name is not for XLFD.
17294
17295 2008-02-01 Kenichi Handa <handa@m17n.org>
17296
17297 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17298 (LGLYPH_SET_TO): New macros.
17299 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17300 element of G is vector or not.
17301 (font_at): Extern it.
17302
17303 * font.c: Include window.h.
17304 (font_lispy_object): New function.
17305 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17306 end of valid glyph.
17307 (font_close_object): Fix getting (struct font *).
17308 (font_at): New function.
17309 (Ffont_get): If FONT is a font-object, get entity from it.
17310 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17311 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17312 range check.
17313 (Ffont_at): New function.
17314 (syms_of_font): Defsubr Sfont_at.
17315
17316 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17317 before the entry for Qcomposition.
17318 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17319 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17320 the font in gstring.
17321 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17322 LGLYPH_FORM (g) to detect the end of valid glyph.
17323 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17324 we are composing with gstring.
17325
17326 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17327 Check if adjustment is vector or not.
17328
17329 * Makefile.in (font.o): Make it depends on window.h.
17330
17331 2008-02-01 Kenichi Handa <handa@m17n.org>
17332
17333 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17334 adjustment is vector or not.
17335
17336 2008-02-01 Miles Bader <miles@gnu.org>
17337
17338 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17339
17340 2008-02-01 Kenichi Handa <handa@m17n.org>
17341
17342 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17343 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17344 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17345
17346 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17347 (DEVICE_DELTA): Fix typo.
17348 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17349 LGLYPH format.
17350
17351 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17352 the change of LGLYPH format.
17353
17354 2008-02-01 Kenichi Handa <handa@m17n.org>
17355
17356 * ftfont.c (ftfont_list): Fix typo.
17357 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17358
17359 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17360
17361 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17362
17363 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17364 xftface_info is non-NULL.
17365
17366 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17367
17368 * ftfont.c (ftfont_list): Move misplaced #endif.
17369
17370 2008-02-01 Kenichi Handa <handa@m17n.org>
17371
17372 * ftfont.c (ftfont_list): Pay attention to the case that
17373 FC_CAPABILITY is not defined.
17374
17375 2008-02-01 Kenichi Handa <handa@m17n.org>
17376
17377 * xftfont.c (xftfont_open): Set charset related members to -1.
17378
17379 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17380 QCname.
17381 (ftfont_open): Set charset related members to -1.
17382
17383 * fontset.c (Votf_script_alist): New variable.
17384 (syms_of_fontset): Initialize it.
17385 (fontset_font): Delete unused variable.
17386
17387 * fontset.h (Votf_script_alist): Extern it.
17388
17389 * font.c (font_find_for_lface): Optimize code.
17390
17391 * font.h (font_close_object, font_merge_old_spec): Extern them.
17392
17393 2008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17396 (syms_of_font): Initialize them.
17397 (font_pixel_size): Allow float value in dpi.
17398 (font_prop_validate_type): Delete.
17399 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17400 Change caller.
17401 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17402 (font_prop_validate_extra): Delete.
17403 (font_prop_validate_spacing): New function.
17404 (font_property_table): Add elements for all known properties.
17405 (get_font_prop_index): Rename from check_font_prop_name. New
17406 argument FROM. Change caller.
17407 (font_prop_validate): Validate all known properties.
17408 (font_put_extra): Delete argument force. Change caller.
17409 (font_expand_wildcards): Make it static. Fix the way of shrinking
17410 the possible range.
17411 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17412 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17413 Change caller.
17414 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17415 (font_parse_fcname): Delete argument merge. Fix parsing of point
17416 size. Don't validate properties values here. Change caller.
17417 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17418 (font_open_by_name): Delete unused variable.
17419 (Ffont_spec): Likewise. Validate property values.
17420 (Ffont_match_p): New function.
17421
17422 * font.h (QCscalable): Extern it.
17423 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17424
17425 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17426
17427 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17428 (xfont_list_pattern): New function.
17429 (xfont_list): Use xfont_list_pattern.
17430
17431 2008-02-01 Kenichi Handa <handa@m17n.org>
17432
17433 * font.h (Flist_fonts): EXFUN it.
17434
17435 2008-02-01 Jason Rumney <jasonr@gnu.org>
17436
17437 * w32term.c (w32_initialize): Add back smoothing_type and
17438 smoothing_enabled definitions.
17439
17440 2008-02-01 Kenichi Handa <handa@m17n.org>
17441
17442 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17443 s->face->font on determining underline position.
17444
17445 2008-02-01 Kenichi Handa <handa@m17n.org>
17446
17447 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17448 (font_has_char): Accept font-object too.
17449 (font_find_for_lface): Try at first with a size specified in face.
17450
17451 2008-02-01 Kenichi Handa <handa@m17n.org>
17452
17453 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17454 font_open_by_name.
17455
17456 2008-02-01 Kenichi Handa <handa@m17n.org>
17457
17458 * font.h (QCspacing, QCdpi): Extern them.
17459 (enum font_spacing): New enum.
17460 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17461
17462 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17463 (QCspacing, QCdpi): New variables.
17464 (syms_of_font): Initialize them.
17465 (font_pixel_size): New function.
17466 (font_put_extra): New function.
17467 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17468 in FONT_EXTRA.
17469 (font_parse_fcname): Handle enumerated values (e.g. bold).
17470 Fix handling font size. Add QCname property that contains only
17471 unknown properties.
17472 (font_score): Change argument. Change caller. Pay attention to
17473 FONT_PIXEL_SIZE_QUANTUM.
17474 (font_sort_entites, font_list_entities, font_find_for_lface)
17475 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17476 (Ffont_spec): Add QCname property that contains only unknown properties.
17477
17478 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17479 include weight in listing pattern, instead check weight of each
17480 listed font. Don't include scalable in pattern. Pay attention to
17481 FONT_PIXEL_SIZE_QUANTUM.
17482
17483 2008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * font.c (font_parse_fcname): Fix parsing of point-size.
17486 (font_unparse_fcname): Produce symbolic names for style properties.
17487 (font_list_entities): Handle float size correctly.
17488 (font_open_by_name): Prefer `normal' property values if the name
17489 doesn't specify them.
17490
17491 * fontset.c (Finternal_char_font): Use font_get_name, not
17492 Ffont_xlfd_name.
17493
17494 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17495 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17496 pattern. Don't force scalable.
17497
17498 * xftfont.c (xftfont_open): For generating a name, start from
17499 96-byte buffer.
17500
17501 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17502
17503 * frame.h (x_new_fontset2): Fix prototype.
17504
17505 2008-02-01 Kenichi Handa <handa@m17n.org>
17506
17507 * font.h (struct font_driver): Delete member parse_name.
17508 (font_match_p, font_get_spec, font_parse_fcname)
17509 (font_unparse_fcname): Extern them.
17510 (font_get_name): Adjust prototype.
17511
17512 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17513 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17514 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17515 unnecessary checks for weight, slant, and swidth.
17516 (font_parse_fcname): New function.
17517 (font_unparse_fcname): New function.
17518 (font_parse_name): New function.
17519 (font_match_p): New function.
17520 (font_get_name): Change return value to Lisp string.
17521 (font_get_spec): New function.
17522 (Qunspecified, Qignore_defface): Don't extern them.
17523 (font_find_for_lface): Assume that LFACE is fully specified.
17524 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17525 object, use it for FACE.
17526 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17527 driver->parse_name.
17528 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17529
17530 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17531 prototype.
17532
17533 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17534 argument F. Don't call Fnew_fontset. Instead, directly call
17535 make_fontset.
17536
17537 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17538
17539 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17540 of x_new_fontset2.
17541
17542 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17543 (Qsans__serif): New variables.
17544 (ftfont_generic_family_list): New variable.
17545 (syms_of_ftfont): Initialize the above variables.
17546 (ftfont_pattern_entity): Delete argument NAME.
17547 (ftfont_list_generic_family): New function.
17548 (ftfont_parse_name): Delete this function.
17549 (ftfont_list): Try generic family only when FcFontList found no font.
17550 (ftfont_list_family): Fix args to FcObjectSetBuild.
17551
17552 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17553 object in attrs[LFACE_FONT_INDEX].
17554 (set_lface_from_font_name): Cancel all changes for font-backend.
17555 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17556 function.
17557 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17558 font object in QCfont attribute.
17559 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17560 (realize_default_face) [USE_FONT_BACKEND]: Call
17561 set_lface_from_font_and_fontset.
17562
17563 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17564 "fixed", and signal error here if no suitable font was found.
17565
17566 * xfont.c (xfont_parse_name): Delete this function.
17567
17568 * xftfont.c (xftfont_open): Change coding style of error
17569 handling. Generate fontconfig's fontname pattern.
17570
17571 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17572 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17573
17574 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17575 Both args FONTSET and FONT_OBJECT must be existing ones.
17576
17577 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17578
17579 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17580
17581 2008-02-01 Kenichi Handa <handa@m17n.org>
17582
17583 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17584
17585 * font.h (struct font): Fix typo.
17586
17587 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17588 XLFD_XXX_INDEX.
17589 (enum xlfd_field_mask): New enum.
17590 (intern_font_field): Changed argument. Change caller. If digits
17591 are followed by non-digits, return a symbol.
17592 (font_expand_wildcards): New function.
17593 (font_parse_xlfd): Fix wildcard handling.
17594 (Ffont_spec): If :name is specified, reflect the info in the other
17595 properties.
17596
17597 * ftfont.c (ftfont_pattern_entity): Fix typo.
17598 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17599 locale.
17600
17601 2008-02-01 Kenichi Handa <handa@m17n.org>
17602
17603 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17604
17605 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17606 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17607 registry doesn't specify encoding part.
17608 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17609 (font_open_by_name): At first try parsing the name.
17610 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17611 as Lisp symbols.
17612
17613 * fontset.c (reorder_font_vector): Pay attention to the case that
17614 the 3rd element of font_def is nil.
17615 (fontset_font): For the default fontset, append one more fontset
17616 elements for a script-based font specification. Don't add script
17617 attribute on finding a font.
17618 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17619 font name.
17620 (fontset_ascii_font): If a font can't be opened, return nil.
17621
17622 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17623 (ftfont_pattern_entity): New function.
17624 (ftfont_get_cache): Assume that freetype_font_cache is already
17625 initialized.
17626 (ftfont_list): Handle the case that a file is specified in font
17627 name. Use ftfont_pattern_entity to generate entities.
17628 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17629 (syms_of_ftfont): Initialize freetype_font_cache.
17630
17631 * xftfont.c (xftfont_open): Make the font name fontconfig's
17632 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17633 (xftfont_close): Free font->font.name if not NULL.
17634
17635 * xfont.c (xfont_list): If script is specified for a font, return
17636 null_vector.
17637 (xfont_list_family): Declare argument type.
17638
17639 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17640 name, set LFACE_FONT (lface) to nil.
17641
17642 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17643 return Qnil.
17644
17645 2008-02-01 Kenichi Handa <handa@m17n.org>
17646
17647 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17648 (standard_args): Add "-enable-font-backend".
17649
17650 2008-02-01 Kenichi Handa <handa@m17n.org>
17651
17652 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17653 (struct xftdraw_list, xftdraw_list): Delete them.
17654 (register_xftdraw, check_xftdraw): Delete them.
17655 (xftfont_prepare_face): Don't call register_xftdraw.
17656 (xftfont_done_face): Don't call check_xftdraw.
17657 (xftfont_draw): Get background color only when with_background is
17658 nonzero.
17659
17660 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17661
17662 2008-02-01 Kenichi Handa <handa@m17n.org>
17663
17664 These changes are for the new font handling codes.
17665
17666 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17667 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17668 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17669 (FONTSRC, FONTOBJ): New variables.
17670 (obj): Add $(FONTOBJ).
17671 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17672 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17673 @LIBOTF_LIBS@.
17674 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17675 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17676
17677 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17678
17679 * character.h (Vscript_representative_chars): Extern it.
17680
17681 * character.c (Vscript_representative_chars): New variable.
17682 (syms_of_character): Declare it as a Lisp variable.
17683
17684 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17685 enable_font_backend is nonzero, accept the composition method
17686 COMPOSITION_WITH_GLYPH_STRING.
17687
17688 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17689 enumeration COMPOSITION_WITH_GLYPH_STRING.
17690
17691 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17692 members clip_x, clip_y, clip_width, and clip_height.
17693 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17694
17695 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17696 --enable-font-backend. Call syms_of_font.
17697
17698 * fns.c (assoc_no_quit): New function.
17699
17700 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17701 (face_for_font, new_fontset_from_font)
17702 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17703
17704 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17705 (fontset_font, fontset_ascii, face_for_char)
17706 (make_fontset_for_ascii_face, Ffont_info)
17707 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17708 is nonzero, use font-backend mechanism.
17709 (find_font_encoding): Make it non-static.
17710 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17711 New functions.
17712
17713 * frame.h (struct frame): New members resx and resy.
17714 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17715 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17716
17717 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17718 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17719
17720 * lisp.h (assoc_no_quit): Extern it.
17721
17722 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17723 Through out the file, use FONT_INFO_FROM_FACE instead of
17724 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17725 rif->per_char_metric.
17726 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17727 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17728 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17729 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17730 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17731 nonzero, use font-backend mechanism.
17732 (get_per_char_metric): New function.
17733
17734 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17735 (set_lface_from_font_name)
17736 (set_font_frame_param, free_realized_face)
17737 (prepare_face_for_display, clear_face_gcs)
17738 (Finternal_set_font_selection_order, realize_x_face)
17739 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17740 font-backend mechanism.
17741 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17742 (load_face_font) [USE_FONT_BACKEND]: Abort.
17743 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17744 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17745
17746 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17747 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17748 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17749 nonzero, register all available font drivers. Call
17750 x_default_font_parameter for deciding a font.
17751 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17752
17753 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17754 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17755 (x_set_glyph_string_clipping_exactly)
17756 (x_compute_glyph_string_overhangs)
17757 (x_draw_glyph_string_foreground)
17758 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17759 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17760 enable_font_backend is nonzero, use font-backend mechanism.
17761 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17762
17763 2008-02-01 Kenichi Handa <handa@m17n.org>
17764
17765 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17766 system_eol_type.
17767 (syms_of_coding): Initialize system_eol_type.
17768
17769 * process.c (Fset_process_coding_system): Inherit system's eol
17770 format if necessary.
17771
17772 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17773
17774 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17775
17776 2008-02-01 Kenichi Handa <handa@m17n.org>
17777
17778 * coding.c (decode_eol): Pay attention to buffer relocation in
17779 del_range_2.
17780 (decode_coding): Call decode_eol before restoring undo_list.
17781
17782 2008-02-01 Kenichi Handa <handa@m17n.org>
17783
17784 * charset.c (Fdefine_charset_internal): Fix setting of
17785 emacs_mule_bytes.
17786
17787 2008-02-01 Kenichi Handa <handa@m17n.org>
17788
17789 * keyboard.c (read_char): Check if C is a character or not before
17790 looking up Vkeyboard_translate_table.
17791
17792 2008-02-01 Kenichi Handa <handa@m17n.org>
17793
17794 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17795 condition to terminate the loop.
17796
17797 2008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * coding.c (produce_composition): Compare charbuf[i] instead of
17800 args[i] against 0.
17801 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17802
17803 2008-02-01 Kenichi Handa <handa@m17n.org>
17804
17805 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17806 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17807 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17808 detect_coding.
17809 (emacs_mule_char): Handle old style (Emacs 20) component character
17810 of a composition.
17811 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17812 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17813 composition rule.
17814 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17815
17816 2008-02-01 Kenichi Handa <handa@m17n.org>
17817
17818 * coding.c (encode_coding_ccl): Allocate destination dynamically
17819 when necessary.
17820
17821 2008-02-01 Kenichi Handa <handa@m17n.org>
17822
17823 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17824 the loop. When quitted, show a proper error message.
17825
17826 2008-02-01 Kenichi Handa <handa@m17n.org>
17827
17828 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17829 src->clip_head and src->clip_tail temporarily instead of src->hl.
17830
17831 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17832 character sequence.
17833 (Fccl_execute_on_string): Use ASET, not XSET.
17834
17835 2008-02-01 Kenichi Handa <handa@m17n.org>
17836
17837 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17838
17839 2008-02-01 Kenichi Handa <handa@m17n.org>
17840
17841 * coding.c (decode_coding): Fix the condition of terminating the
17842 decoding loop.
17843
17844 2008-02-01 Kenichi Handa <handa@m17n.org>
17845
17846 * data.c (Faset): On setting a character bigger than 255 in a
17847 unibyte string, signal an error instead of make the string multibyte.
17848
17849 2008-02-01 Kenichi Handa <handa@m17n.org>
17850
17851 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17852 made by a mapping table.
17853
17854 2008-02-01 Kenichi Handa <handa@m17n.org>
17855
17856 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17857 not.
17858 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17859 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17860
17861 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17862 s->face is NULL or not.
17863
17864 2008-02-01 Kenichi Handa <handa@m17n.org>
17865
17866 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17867 (x_draw_glyph_string): Fix drawing of right_overhang and
17868 left_overhang around/on cursor.
17869
17870 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17871
17872 2008-02-01 Kenichi Handa <handa@m17n.org>
17873
17874 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17875
17876 2008-02-01 Kenichi Handa <handa@m17n.org>
17877
17878 * coding.c (Fdefine_coding_system_internal)
17879 (Fdefine_coding_system_alias): Avoid a duplicated element in
17880 Vcoding_system_alist.
17881
17882 2008-02-01 Kenichi Handa <handa@m17n.org>
17883
17884 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17885
17886 * coding.c (Qcoding_system_define_form): New variable.
17887 (syms_of_coding): Intern and staticpro it.
17888 (Fcoding_system_p): Check Qcoding_system_define_form.
17889 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17890
17891 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17892 Fcoding_system_p.
17893 (CHECK_CODING_SYSTEM): If ID is not available, call
17894 Fcheck_coding_system.
17895 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17896 Try also Fcheck_coding_system.
17897
17898 2008-02-01 Kenichi Handa <handa@m17n.org>
17899
17900 * coding.c (code_conversion_restore): GCPRO arg.
17901
17902 2008-02-01 Kenichi Handa <handa@m17n.org>
17903
17904 * character.c (lisp_string_width): Check multibyteness of STRING.
17905
17906 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17907
17908 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17909 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17910 (decode_mac_font_name): Use decode_coding_c_string instead of
17911 decode_coding.
17912 (x_load_font): Initialize fontp->fontset to -1. Set
17913 fontp->encoding_type.
17914
17915 2008-02-01 Kenichi Handa <handa@m17n.org>
17916
17917 * search.c (search_buffer): Give up BM search on case-fold-search
17918 if one of a target character has a case-equivalence of different
17919 byte length even if that target charcter is an ASCII.
17920 (simple_search): Fix calculation of byte length of matched text.
17921 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17922
17923 2008-02-01 Kenichi Handa <handa@m17n.org>
17924
17925 * coding.c (decode_coding): Fix handling of invalid bytes.
17926
17927 2008-02-01 Kenichi Handa <handa@m17n.org>
17928
17929 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17930 Unicode characters.
17931
17932 2008-02-01 Kenichi Handa <handa@m17n.org>
17933
17934 * coding.c (encode_coding_object): If a pre-write-conversion
17935 function makes a new buffer, kill it.
17936
17937 2008-02-01 Kenichi Handa <handa@m17n.org>
17938
17939 * coding.c (QCascii_compatible_p): New variable.
17940 (syms_of_coding): Initialize it.
17941 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17942 calling string_char.
17943 (record_conversion_result): Add `default:' case.
17944 (coding_charset_list): Delete unused variable `coding_type'.
17945 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17946 property in the plist of the coding system.
17947 (Fcoding_system_put): Check QCascii_compatible_p.
17948
17949 2008-02-01 Miles Bader <miles@gnu.org>
17950
17951 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17952 removed calculation of frame `f', as it's now used.
17953
17954 2008-02-01 Kenichi Handa <handa@m17n.org>
17955
17956 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17957 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17958 (UNIDATA): New variable.
17959 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17960 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17961 $(RUN_TEMACS) unconditionally.
17962
17963 2008-02-01 Kenichi Handa <handa@m17n.org>
17964
17965 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17966 (admindir): New variable.
17967 ($(lispsource)international/charprop.el): New target.
17968
17969 2008-02-01 Miles Bader <miles@gnu.org>
17970
17971 * character.c (chars-in-region): Remove obsolete function.
17972 (syms_of_character): Remove its initialization.
17973
17974 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17975
17976 * w32select.c (validate_coding_system)
17977 (setup_windows_coding_system): New functions.
17978 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17979 setup_windows_coding_system.
17980 (setup_config, Fw32_get_clipboard_data): Use
17981 validate_coding_system.
17982 (Fx_selection_exists): Move call to setup_config to a place
17983 where signals are allowed.
17984
17985 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17986 (Fcheck_coding_system): Add declarations.
17987
17988 2008-02-01 Kenichi Handa <handa@m17n.org>
17989
17990 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17991
17992 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17993
17994 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17995 string as the second argument for x_new_fontset.
17996
17997 2008-02-01 Kenichi Handa <handa@m17n.org>
17998
17999 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18000 (encode_coding_object): Use safe_call instead of call2.
18001
18002 2008-02-01 Kenichi Handa <handa@m17n.org>
18003
18004 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18005
18006 * Makefile.in (lisp): Include charprop.el.
18007
18008 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18009
18010 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18011 Not sure if it's unnecessary.
18012
18013 2008-02-01 Steven Tamm <steventamm@mac.com>
18014
18015 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18016 some possibly unnecessary fontset checking code that crashed
18017 when creating a new frame.
18018
18019 2008-02-01 Kenichi Handa <handa@m17n.org>
18020
18021 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18022 lookup_face.
18023
18024 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18025
18026 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18027
18028 2008-02-01 Kenichi Handa <handa@m17n.org>
18029
18030 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18031 (coding_charset_list): New function.
18032
18033 * coding.h (coding_charset_list): Extern it.
18034
18035 2008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18038 concatenation of family and registry.
18039
18040 2008-02-01 Kenichi Handa <handa@m17n.org>
18041
18042 * character.h (BYTE8_STRING): Fix typo.
18043
18044 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18045 string to multibyte (sync to HEAD).
18046
18047 * casefiddle.c (casify_region): Handle changes in byte-length
18048 using replace_range_2 (sync to HEAD).
18049
18050 2008-02-01 Andreas Schwab <schwab@suse.de>
18051
18052 * chartab.c (map_char_table): GCPRO table and arg.
18053
18054 2008-02-01 Kenichi Handa <handa@m17n.org>
18055
18056 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18057 already at limit.
18058
18059 2008-02-01 Kenichi Handa <handa@m17n.org>
18060
18061 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18062 instead of fast_c_string_match_ignore_case.
18063 (find_font_encoding): Change argument to Lisp_Object. Use
18064 fast_string_match_ignore_case instead of
18065 fast_c_string_match_ignore_case. Change caller.
18066
18067 2008-02-01 Kenichi Handa <handa@m17n.org>
18068
18069 * xdisp.c (get_next_display_element): In unibyte case, decide to
18070 display in octal form by checking a character by
18071 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18072
18073 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18074
18075 * character.c (unibyte_has_multibyte_table): New variable.
18076
18077 * character.h (unibyte_has_multibyte_table): Extern it.
18078 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18079
18080 2008-02-01 Kenichi Handa <handa@m17n.org>
18081
18082 * coding.c (encode_coding_iso_2022): Fix handling of charset
18083 annotation.
18084
18085 2008-02-01 Kenichi Handa <handa@m17n.org>
18086
18087 * coding.c (setup_coding_system): If coding_system is nil, use
18088 Qundecided.
18089 (Fterminal_coding_system): Return nil if terminal coding system is
18090 `undecided'.
18091 (syms_of_coding): Define coding-system `undecided' here. Setup
18092 terminal_coding as `undecided'.
18093
18094 2008-02-01 Kenichi Handa <handa@m17n.org>
18095
18096 * xdisp.c (message_dolog, set_message_1): Call
18097 unibyte_char_to_multibyte with arg type int.
18098
18099 * lread.c (read1): Fix reading of a char-table.
18100
18101 * print.c (print_object): Include sub char-table in circularities
18102 detection.
18103
18104 2008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18107 Append the found sequences in car of ARGS instead of prepending.
18108
18109 2008-02-01 Kenichi Handa <handa@m17n.org>
18110
18111 * fileio.c (report_file_error): Make a unibyte string from
18112 strerror (errorno).
18113 (Fsubstitute_in_file_name): Fix the arg to
18114 unibyte_char_to_multibyte. It is evaluated twice.
18115
18116 2008-02-01 Kenichi Handa <handa@m17n.org>
18117
18118 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18119
18120 2008-02-01 Kenichi Handa <handa@m17n.org>
18121
18122 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18123 BOM is not found.
18124 (detect_coding, detect_coding_system): Optimization for ISO-2022
18125 when no 8-bit data is found.
18126
18127 2008-02-01 Jason Rumney <jasonr@gnu.org>
18128
18129 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18130
18131 2008-02-01 Kenichi Handa <handa@m17n.org>
18132
18133 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18134 CHARS.
18135
18136 2008-02-01 Steven Tamm <steventamm@mac.com>
18137
18138 * macterm.c (mac_encode_char): Add charset argument and update
18139 to use encoding_type.
18140 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18141 switch to pure fontset.
18142 (decode_mac_font_name): Temporarily remove decoding.
18143 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18144 (x_load_font): Temporarily remove encoding.
18145
18146 2008-02-01 Kenichi Handa <handa@m17n.org>
18147
18148 * xfaces.c (Fface_font): If frame is not on a window system,
18149 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18150 refer to face->font.
18151 (split_font_name_into_vector, build_font_name_from_vector)
18152 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18153 when HAVE_WINDOW_SYSTEM is defined.
18154
18155 2008-02-01 Kenichi Handa <handa@m17n.org>
18156
18157 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18158 (x_produce_glyphs): Fix setting of members of cmp in case
18159 cmp->glyph_len is zero.
18160
18161 * fontset.c (Fset_fontset_font): Fix docstring.
18162 (Ffontset_info): Make it backward compatible. New arg ALL.
18163
18164 2008-02-01 Kim F. Storm <storm@cua.dk>
18165
18166 * process.c (read_process_output): Grow decoding_buf when needed;
18167 this could cause a crash in allocate_string and compact_small_strings.
18168
18169 2008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18172
18173 2008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * coding.c (setup_coding_system): Set coding->common_flags
18176 correctly for raw-text.
18177 (consume_chars): On encoding unibyte text by raw-text, don't check
18178 multibyte form.
18179 (encode_coding): On encoding by raw-text, never use translation tables.
18180
18181 * fileio.c (e_write): Short cut for the case of no encoding.
18182
18183 2008-02-01 Kenichi Handa <handa@m17n.org>
18184
18185 * coding.c (detect_coding, detect_coding_system): Delete unused
18186 variables.
18187
18188 2008-02-01 Kenichi Handa <handa@m17n.org>
18189
18190 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18191 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18192
18193 2008-02-01 Kenichi Handa <handa@m17n.org>
18194
18195 * coding.c (Ffind_coding_systems_region_internal): Include
18196 raw-text and no-conversion in the result.
18197
18198 2008-02-01 Kenichi Handa <handa@m17n.org>
18199
18200 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18201 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18202 FONT_DEF.
18203 (font_def_arg, add_arg, from_arg, to_arg): New args.
18204 (set_fontset_font): Change argument.
18205 (Fset_fontset_font): Fix for the case that TARGET is a script
18206 name and charset name.
18207 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18208
18209 2008-02-01 Kenichi Handa <handa@m17n.org>
18210
18211 * fontset.c (fontset_font): Rename from fontset_face. Change return
18212 value.
18213 (face_suitable_for_char_p, face_for_char): Adjust for the change
18214 of fontset_font.
18215 (make_fontset_for_ascii_face): Fix setting of the fontset element
18216 for ASCII.
18217 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18218 to get a font name.
18219 (Ffontset_info): Adjust for the change of fontset_font.
18220
18221 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18222
18223 * character.h (LEADING_CODE_LATIN_1_MIN)
18224 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18225
18226 2008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * editfns.c (check_translation): New function.
18229 (Ftranslate_region_internal): Handle M:N mapping.
18230
18231 2008-02-01 Kenichi Handa <handa@m17n.org>
18232
18233 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18234
18235 2008-02-01 Kenichi Handa <handa@m17n.org>
18236
18237 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18238 goto invalid_code.
18239 (decode_coding_iso_2022): Fix handling of invalid designation.
18240
18241 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18242 after calling code_conversion_save.
18243
18244 2008-02-01 Kenichi Handa <handa@m17n.org>
18245
18246 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18247
18248 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18249
18250 * fontset.c: Include "intervals.h".
18251 (fontset_face): Fix comparing of Lisp_Objects.
18252 (free_face_fontset, new_fontset_from_font_name): Fix
18253 Lisp_Object/int mixup.
18254
18255 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18256
18257 * coding.c: Add many prototypes for static functions.
18258 (get_translation_table): Allow max_lookup to be NULL.
18259 (decode_coding, Ffind_coding_systems_region_internal)
18260 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18261 get_translation_table with max_lookup NULL.
18262
18263 2008-02-01 Kenichi Handa <handa@m17n.org>
18264
18265 * coding.c (get_translation_table): Declare it as Lisp_Object.
18266 (LOOKUP_TRANSLATION_TABLE): New macro.
18267 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18268 instead of CHAR_TABLE_REF.
18269
18270 2008-02-01 Kenichi Handa <handa@m17n.org>
18271
18272 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18273 annotation data format.
18274 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18275 Change arguments FROM and TO to single argument NCHARS. Change caller.
18276 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18277 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18278 (decode_coding_ccl, decode_coding_charset): Pay attention to
18279 coding->charbuf_used.
18280 (get_translation): New function.
18281 (produce_chars): New arguments translation_table and last_block.
18282 Translate characters here. Return number of carryover chars.
18283 Change caller.
18284 (produce_composition): New argument pos. Change caller.
18285 Adjust for the change of annotation data format.
18286 (produce_charset, produce_annotation): Likewise.
18287 (decode_coding, encode_coding): Don't call translate_chars.
18288 (consume_chars): New arg translation_table. Change caller.
18289 (translate_chars): Delete.
18290 (syms_of_coding): Make translation-table's number of extra slots 2.
18291
18292 2008-02-01 Kenichi Handa <handa@m17n.org>
18293
18294 * search.c (simple_search): Fix setting this_pos_byte in backward
18295 search.
18296
18297 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18298 byte sequence.
18299 (detect_coding_ccl): Fix setting of the variable valids.
18300
18301 2008-02-01 Kenichi Handa <handa@m17n.org>
18302
18303 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18304
18305 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18306
18307 * editfns.c (Ftranslate_region_internal): Rename from
18308 Ftranslate_region. Accept a char-table in TABLE.
18309 (syms_of_editfns): Defsubr Stranslate_region_internal.
18310
18311 * xfaces.c (set_lface_from_font_name): If a font is specified for
18312 a frame, generate a fontset from the font.
18313 (build_scalable_font_name): If the scalable font is requested for
18314 a specific size, don't change that size.
18315 (try_font_list): Try a scalable font also in the case that a
18316 pattern string is specified.
18317
18318 2008-02-01 Kenichi Handa <handa@m17n.org>
18319
18320 * xfaces.c (Fface_font): New optional arg CHARACTER.
18321
18322 2008-02-01 Kenichi Handa <handa@m17n.org>
18323
18324 * charset.h (CHARSET_OFFSET): New macro.
18325
18326 2008-02-01 Kenichi Handa <handa@m17n.org>
18327
18328 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18329
18330 * fontset.c (fontset_face): Handle the case that repertory is a
18331 char-table.
18332 (find_font_encoding): Return nil for unknown encoding.
18333 (Fset_fontset_font): Ignore a font of unknown encoding.
18334
18335 2008-02-01 Kenichi Handa <handa@m17n.org>
18336
18337 * keymap.c (describe_vector): Handle default value of a char table.
18338
18339 * fontset.c (fontset_face): Handle fallback fonts correctly.
18340 (Ffontset_info): Return infomation about fallback fonts.
18341
18342 2008-02-01 Kenichi Handa <handa@m17n.org>
18343
18344 * fontset.c (FONTSET_DEFAULT): New macro.
18345 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18346 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18347 the case that it is nil.
18348 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18349 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18350
18351 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18352 subset or superset.
18353
18354 2008-02-01 Kenichi Handa <handa@m17n.org>
18355
18356 * emacs.c (main): Call init_charset after syms_of_XXX.
18357
18358 * charset.c (Vcharset_map_directory): Delete.
18359 (Vcharset_map_path): New variable.
18360 (load_charset_map_from_file): Use Vcharset_map_path instead.
18361 (init_charset): Initialize Vcharset_map_path.
18362 (syms_of_charset): Delete declaration of "charset-map-directory",
18363 add declaration of "charset-map-path".
18364
18365 2008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18368 ASCII only string.
18369
18370 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18371
18372 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18373 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18374
18375 2008-02-01 Kenichi Handa <handa@m17n.org>
18376
18377 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18378
18379 * coding.c (QCmnemonic, QCdefalut_char)
18380 (QCdecode_translation_table, QCencode_translation_table)
18381 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18382 (get_translation_table): Return a list of translation tables if
18383 necessary.
18384 (decode_coding): Call get_translation_table with ENCODEP 0.
18385 (char_encodable_p): If translation_table is non-nil, always call
18386 translate_char.
18387 (Fdefine_coding_system_internal): Accept list of translation
18388 tables as :encode-translation-table and :decode-translation-table.
18389 (Fcoding_system_put): New function.
18390 (syms_of_coding): Declare new symbols. Defsubr
18391 Scoding_system_put.
18392 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18393 typically JISX0212.
18394
18395 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18396 when the charset is superset type.
18397
18398 * character.c (translate_char): Accept list of translation tables.
18399
18400 2008-02-01 Kenichi Handa <handa@m17n.org>
18401
18402 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18403 (CODING_ATTR_TRANS_TBL): New macro.
18404
18405 * coding.c (get_translation_table): New function.
18406 (translate_chars): Fix the bug of skipping annotation data.
18407 (decode_coding, encode_coding): Utilize get_translation_table.
18408 (char_encodable_p, Funencodable_char_position): Translate char if
18409 necessary.
18410 (Ffind_coding_systems_region_internal)
18411 (Fcheck_coding_systems_region): Setup translation table for encode
18412 in a coding system attribute vector in advance.
18413 (Fdefine_coding_system_internal): Allow a symbol as translation
18414 table. For shift-jis type coding system, allow 4th charset.
18415
18416 2008-02-01 Kenichi Handa <handa@m17n.org>
18417
18418 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18419
18420 * xdisp.c (get_next_display_element): Pass -1 as POS to
18421 FACE_FOR_CHAR if displaying a C-string.
18422
18423 2008-02-01 Kenichi Handa <handa@m17n.org>
18424
18425 * composite.c (get_composition_id): Handle xoff and yoff in a
18426 composition rule.
18427
18428 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18429 (struct composition): New member lbearing and rbearing.
18430
18431 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18432 (x_get_glyph_overhangs): Handle a composition glyph.
18433 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18434
18435 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18436 composition glyph.
18437
18438 2008-02-01 Kenichi Handa <handa@m17n.org>
18439
18440 * print.c: Include charset.h.
18441 (Vprint_charset_text_property): New variable.
18442 (Qdefault): Extern it.
18443 (PRINT_STRING_NON_CHARSET_FOUND)
18444 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18445 (print_check_string_result): New variable.
18446 (print_check_string_charset_prop): New function.
18447 (print_prune_charset_plist): New variable.
18448 (print_prune_string_charset): New function.
18449 (print_object): Call print_prune_string_charset if
18450 Vprint_charset_text_property is not t.
18451 (print_interval): Print nothing if interval->plist is nil.
18452 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18453 variable. Init and staticpro print_prune_charset_plist.
18454
18455 2008-02-01 Kenichi Handa <handa@m17n.org>
18456
18457 * fontset.c (new_fontset_from_font_name): Use the specified font
18458 for all characters in the new fontset.
18459
18460 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18461 OBJECT args.
18462
18463 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18464 OBJECT args for composition too.
18465
18466 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18467 OBJECT args.
18468
18469 2008-02-01 Kenichi Handa <handa@m17n.org>
18470
18471 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18472
18473 * fontset.c (reorder_font_vector): Adjust for the change of
18474 FONT_DEF format.
18475 (fontset_face): New arg id. Change caller.
18476 (face_for_char): New args pos and object.
18477 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18478 (fs_query_fontset): Check NAME by Fassoc too.
18479 (Fset_fontset_font): Allow non-XLFD font name.
18480 (Ffontset_info): Adjust for the change of FONT_DEF format.
18481
18482 * fontset.h (face_for_char): Adjust prototype.
18483
18484 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18485 (append_space, extend_face_to_end_of_line)
18486 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18487 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18488
18489 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18490 POS and OBJECT args.
18491
18492 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18493 POS and OBJECT args.
18494
18495 2008-02-01 Jason Rumney <jasonr@gnu.org>
18496
18497 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18498 of GlobalAlloc'ed memory.
18499
18500 2008-02-01 Kenichi Handa <handa@m17n.org>
18501
18502 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18503
18504 * charset.h (charset_table_used): Delete extern.
18505
18506 * charset.c (charset_table_used): Make it static.
18507 (map_charset_chars): Fix args to c_function with.
18508
18509 * chartab.c (map_sub_char_table_for_charset): Fix args to
18510 c_function with.
18511
18512 * coding.h (enum coding_result_code): Delete
18513 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18514
18515 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18516 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18517 (Vlast_code_conversion_error): New variables.
18518 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18519 (ONE_MORE_BYTE): Record error if any instead of signaling an
18520 error. If non-ASCII multibyte char is found, return the negative
18521 value of the code. All callers changed to check it.
18522 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18523 (record_conversion_result): New function. Change all codes setting
18524 coding->result to call this function.
18525 (detect_coding_utf_8, decode_coding_utf_8)
18526 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18527 Don't use the local variable incomplete.
18528 (emacs_mule_char): Change the second arg to `const'.
18529 (decode_coding): Fix of flushing out unprocessed data.
18530 (make_conversion_work_buffer): Fix making of a work buffer.
18531 (decode_coding_object): Return coding->dst_object.
18532
18533 * fontset.c (set_fontset_font): Fix args.
18534
18535 * lisp.h (CHARACTERBITS): Define as 22.
18536
18537 * process.c (send_process): Be sure to set coding->src_multibyte.
18538
18539 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18540
18541 2008-02-01 Kenichi Handa <handa@m17n.org>
18542
18543 * xdisp.c (handle_auto_composed_prop): Give limit to
18544 Fnext_single_char_property_change.
18545
18546 2008-02-01 Kenichi Handa <handa@m17n.org>
18547
18548 * composite.c (syms_of_composite): Don't make the composition hash
18549 table weak.
18550
18551 * fontset.c (Fset_fontset_font): Fix docstring.
18552
18553 * lisp.h (detect_coding_system): Adjust prototype.
18554
18555 * fileio.c (kill_workbuf_unwind): Delete this function.
18556 (Finsert_file_contents): Adjust the call of detect_coding_system.
18557 Get conversion_buffer by code_conversion_save. Use the macro
18558 CODING_MAY_REQUIRE_DECODING. After decoding, update
18559 coding_system.
18560
18561 * coding.h (make_conversion_work_buffer): Delete extern.
18562 (code_conversion_save): Extern it.
18563
18564 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18565 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18566 (decode_coding_utf_8): Don't do eol converion.
18567 (detect_coding_utf_16): Check coding->src_chars, not
18568 coding->src_bytes. Add heuristics for those that have no signature.
18569 (decode_coding_emacs_mule, decode_coding_iso_2022)
18570 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18571 Don't do eol converion.
18572 (adjust_coding_eol_type): Return a new coding system.
18573 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18574 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18575 each change.
18576 (decode_coding): Pay attention to undo_list. Do eol conversion for
18577 all types of coding-systems (if necessary).
18578 (Vcode_conversion_work_buf_list): Delete it.
18579 (Vcode_conversion_reused_workbuf): Rename from
18580 Vcode_conversion_reused_work_buf.
18581 (Vcode_conversion_workbuf_name): New variable.
18582 (reused_workbuf_in_use): New variable.
18583 (make_conversion_work_buffer): Delete the arg DEPTH.
18584 (code_conversion_restore): Change argument to cons.
18585 (code_conversion_save): Delete the argument BUFFER. Change callers.
18586 (detect_coding_system): New argument src_chars. Change callers.
18587 Fix for utf-16 detection.
18588 (init_coding_once): Don't use ISO_carriage_return.
18589 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18590 reused_workbuf_in_use.
18591
18592 2008-02-01 Kenichi Handa <handa@m17n.org>
18593
18594 * keymap.c (store_in_keymap): Pay attention to the case that idx
18595 is a cons specifying a character range.
18596
18597 2008-02-01 Kenichi Handa <handa@m17n.org>
18598
18599 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18600 HANDLED_RECOMPUTE_PROPS.
18601
18602 * coding.c (Fdefine_coding_system_internal): Fix checking of
18603 ascii compatibility.
18604
18605 2008-02-01 Kenichi Handa <handa@m17n.org>
18606
18607 * charset.c (find_charsets_in_text): Delete unused locale variable.
18608 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18609
18610 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18611 Resync charset_list to Vemacs_mule_charset_list.
18612
18613 * keymap.c (store_in_keymap): Pay attention to the case that idx
18614 is a cons specifying a character range.
18615
18616 2008-02-01 Kenichi Handa <handa@m17n.org>
18617
18618 * composite.c (update_compositions): Bind inhibit-read-only, etc
18619 to t before calling remove-list-of-text-properties.
18620
18621 * print.c (print_object): Always print ASCII chars as is.
18622
18623 2008-02-01 Kenichi Handa <handa@m17n.org>
18624
18625 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18626
18627 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18628 is a char table.
18629
18630 2008-02-01 Kenichi Handa <handa@m17n.org>
18631
18632 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18633
18634 2008-02-01 Kenichi Handa <handa@m17n.org>
18635
18636 * xfaces.c (set_lface_from_font_name): Fix for the case that
18637 FONTNAME is not fontset name.
18638
18639 2008-02-01 Kenichi Handa <handa@m17n.org>
18640
18641 * fns.c (base64_encode_1): Fix previous change.
18642
18643 2008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * fontset.c (set_fontset_font): New function.
18646 (Fset_fontset_font): If a font is specified for a charset, use
18647 map_charset_chars to store the font spec in a fontset.
18648
18649 2008-02-01 Kenichi Handa <handa@m17n.org>
18650
18651 * fontset.c (fontset_face): Create a fallback fontset on demand.
18652 (make_fontset): Don't create a fallback fontset here.
18653 (free_face_fontset): Free a fallback fontset (if any) too.
18654 (n_auto_fontsets): Delete this variable.
18655 (auto_fontset_alist): New variable.
18656 (new_fontset_from_font_name): Check auto_fontset_alist.
18657 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18658 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18659 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18660 Defsubr Sfontset_list_all.
18661
18662 2008-02-01 Kenichi Handa <handa@m17n.org>
18663
18664 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18665
18666 2008-02-01 Kenichi Handa <handa@m17n.org>
18667
18668 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18669
18670 2008-02-01 Kenichi Handa <handa@m17n.org>
18671
18672 * editfns.c (Fgoto_char): Fix docstring.
18673
18674 2008-02-01 Kenichi Handa <handa@m17n.org>
18675
18676 * insdel.c (insert_from_gap): Adjust intervals correctly.
18677
18678 2008-02-01 Jason Rumney <jasonr@gnu.org>
18679
18680 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18681 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18682 (w32_initialize): Try to load it.
18683 (x_get_font_repertory): Use it if available.
18684 (w32_encode_char): Add shortcut for unicode output.
18685
18686 * w32fns.c (w32_load_system_font): Default charset to -1.
18687 (x_to_w32_charset): Match all fonts for unicode.
18688 (w32_to_x_charset): New parameter matching. Don't return partial
18689 or wildcard charsets.
18690 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18691 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18692 (w32_to_x_font): Match charset to real charset.
18693 (enum_font_cb2): Always list unicode versions.
18694
18695 * makefile.w32-in (temacs): Increase EMHEAP.
18696
18697 2008-02-01 Jason Rumney <jasonr@gnu.org>
18698
18699 * w32term.c (w32_encode_char): New charset parameter.
18700 font_info.encoding becomes encoding_type.
18701 (x_get_font_repertory): New function. Warning: stub only!
18702 (x_new_font): Return quickly if font already set.
18703 (x_new_fontset): fontsetname parameter is Lisp_Object.
18704 Use new fs_query_fontset. Try new_fontset_from_font_name.
18705 Use fontset_name for return value.
18706
18707 * w32term.h: Declare x_get_font_repertory.
18708
18709 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18710 place of find_charset_in_text. Use encode_coding_object in place
18711 of encode_coding.
18712 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18713 decode_coding.
18714
18715 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18716 of x_new_fontset.
18717 (w32_load_system_font): Initialize charset as unicode.
18718 font_info.encoding becomes encoding_type.
18719 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18720 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18721 (syms_of_w32fns): Set get_font_repertory_func.
18722
18723 * w32console.c: Include character.h. Use terminal_encode_buffer
18724 from term.c.
18725 (write_glyphs): Use new version of encode_terminal_code. Use
18726 encode_coding_object in place of encode_coding.
18727
18728 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18729 encoding becomes encoding_type.
18730
18731 * term.c (terminal_encode_buffer): Make externally visible.
18732
18733 * makefile.w32-in: Add character.h dependancies.
18734 (character.o, chartab.o): New targets.
18735
18736 2008-02-01 Kenichi Handa <handa@m17n.org>
18737
18738 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18739 CODING_ID_EOL_TYPE.
18740
18741 2008-02-01 Andreas Schwab <schwab@suse.de>
18742
18743 * coding.c (produce_chars): Revert last change.
18744
18745 2008-02-01 Kenichi Handa <handa@m17n.org>
18746
18747 * charset.h (charset_unicode): Extern it.
18748
18749 * charset.c (string_xstring_p): Check by (C >= 0x100).
18750 (find_charsets_in_text): Change format of the arc CHARSETS. New
18751 arg MULTIBYTE.
18752 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18753 change of find_charsets_in_text.
18754 (Fsplit_char): Fix doc. Never return unknown.
18755
18756 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18757
18758 * coding.c (Fdefine_coding_system_alias): Update
18759 Vcoding_system_list.
18760
18761 * fontset.c (load_font_get_repertory): Pay attention to the case
18762 that ENCODING of a font is specified by a char-table.
18763
18764 * xterm.c (x_get_font_repertory): Handle the case that the
18765 encoding of font is other than Unicode.
18766
18767 2008-02-01 Kenichi Handa <handa@m17n.org>
18768
18769 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18770 if a character is encodable by the terminal coding system. If
18771 not, produces proper number of `?'s. Update
18772 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18773 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18774
18775 2008-02-01 Kenichi Handa <handa@m17n.org>
18776
18777 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18778 variables.
18779 (encode_terminal_code): Change argument. Encode multiple
18780 characters at once. Store the result of encoding in
18781 terminal_encode_buffer.
18782 (write_glyphs, insert_glyphs): Adjust for the change of
18783 encode_terminal_code.
18784 (term_init): Initialize terminal_encode_buffer and
18785 terminal_encode_buf_size.
18786
18787 * coding.c (consume_chars): If coding->src_object is nil, don't
18788 check annotation.
18789
18790 2008-02-01 Kenichi Handa <handa@m17n.org>
18791
18792 * character.c (char_string): Use ASCII_CHAR_P instead of
18793 SINGLE_BYTE_CHAR_P.
18794
18795 2008-02-01 Kenichi Handa <handa@m17n.org>
18796
18797 * xdisp.c (handle_auto_composed_prop): Check if the last
18798 characters of auto-composed region is newly composed with the
18799 following characters.
18800 (handle_composition_prop): Fix checking of point being inside
18801 composition.
18802
18803 2008-02-01 Kenichi Handa <handa@m17n.org>
18804
18805 * fns.c (concat): Don't change multibyteness of the result by
18806 concatenating an 8-bit character.
18807
18808 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18809 multibyteness of the result when newelt is an 8-bit character.
18810
18811 2008-02-01 Dave Love <fx@gnu.org>
18812
18813 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18814 EMACS_INT.
18815
18816 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18817
18818 * xfaces.c (face_numeric_value): Declare dim size_t.
18819 (Finternal_lisp_face_equal_p): Remove unused f.
18820
18821 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18822 (MATRIX_ROW): Remove unused vars.
18823 (draw_glyphs, x_insert_glyphs, fast_find_position)
18824 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18825 byte/char counts.
18826
18827 * regex.c (regex_compile): Remove unused var.
18828
18829 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18830
18831 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18832 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18833
18834 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18835
18836 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18837
18838 * fileio.c (Fwrite_region): Remove unused var.
18839
18840 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18841 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18842
18843 * composite.c (Fremove_list_of_text_properties): Declare.
18844
18845 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18846 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18847 (coding_inherit_eol_type): Remove unused attrs.
18848 (detect_coding): Cast arg of detect_eol.
18849
18850 * charset.c (syms_of_charset): Remove unused var p.
18851 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18852 byte/char counts.
18853
18854 * casetab.c (set_case_table): Remove unused var.
18855
18856 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18857 unused vars.
18858
18859 2008-02-01 Dave Love <fx@gnu.org>
18860
18861 * xterm.c (x_bitmap_mask): Declare.
18862
18863 2008-02-01 Dave Love <fx@gnu.org>
18864
18865 * xterm.c (x_term_init): Fix type error.
18866
18867 * lisp.h: Add Funibyte_char_to_multibyte.
18868
18869 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18870 (Fset_coding_system_priority): Doc fix.
18871
18872 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18873
18874 * indent.c (check_composition): Make start and end EMACS_INT.
18875
18876 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18877
18878 * xdisp.c (handle_composition_prop, check_point_in_composition):
18879 Make buffer positions EMACS_INT.
18880
18881 * composite.c (find_composition, run_composition_function)
18882 (update_compositions, Ffind_composition_internal): Make buffer
18883 positions EMACS_INT.
18884
18885 * composite.h (find_composition, update_compositions): Make
18886 position args EMACS_INT.
18887
18888 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18889
18890 * intervals.c (get_property_and_range):
18891 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18892
18893 * unexalpha.c: Don't include varargs.h.
18894
18895 2008-02-01 Dave Love <fx@gnu.org>
18896
18897 * coding.h (ENCODE_UTF_8): New.
18898
18899 * Makefile.in (gtkutil.o): Depend on coding.h.
18900
18901 * coding.c (Fset_coding_system_priority): Doc fix.
18902
18903 2008-02-01 Kenichi Handa <handa@m17n.org>
18904
18905 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18906 the case of auto saving.
18907
18908 2008-02-01 Andreas Schwab <schwab@suse.de>
18909
18910 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18911 `range' from GC.
18912
18913 2008-02-01 Kenichi Handa <handa@m17n.org>
18914
18915 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18916
18917 2008-02-01 Kenichi Handa <handa@m17n.org>
18918
18919 * fileio.c (choose_write_coding_system): Return a decided coding system.
18920 (Fwrite_region): Set Vlast_coding_system_used to the return value
18921 of choose_write_coding_system.
18922
18923 2008-02-01 Kenichi Handa <handa@m17n.org>
18924
18925 * charset.c (Fset_charset_priority): Pay attention to duplicated
18926 arguments.
18927
18928 * coding.c (QCcategory): New variable.
18929 (syms_of_coding): Defsym it. Set all elements of
18930 Vcoding_category_table and their symbol values.
18931 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18932 coding-category-XXX, and coding-category-list.
18933 (Fdefine_coding_system_internal): Add category in the plist.
18934
18935 2008-02-01 Kenichi Handa <handa@m17n.org>
18936
18937 * callproc.c (Fcall_process): Handle carryover correctly.
18938
18939 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18940 (raw_text_coding_system): Check NILP (coding_system).
18941 (coding_inherit_eol_type): Check NILP (coding_system) and
18942 NILP (parent).
18943 (consume_chars): Fix for the case of raw-text.
18944
18945 * process.c (read_process_output): Handle carryover correctly.
18946
18947 2008-02-01 Dave Love <fx@gnu.org>
18948
18949 * regex.c (re_search_2): Fix last change.
18950
18951 2008-02-01 Kenichi Handa <handa@m17n.org>
18952
18953 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18954 target_multibyte. Even in a unibyte case, return a converted
18955 multibyte char.
18956 (GET_CHAR_AFTER): New macro.
18957 (PATFETCH): Translate via multibyte char.
18958 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18959 (SETUP_MULTIBYTE_RANGE): New macro.
18960 (regex_compile): Setup compiled code so that its multibyteness
18961 matches that of a target. Fix the handling of "[X-YZ]" using
18962 SETUP_MULTIBYTE_RANGE.
18963 (analyse_first) <charset>: For filling fastmap for all multibyte
18964 characters, don't check by BASE_LEADING_CODE_P.
18965 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18966 the same as RE_MULTIBYTE_P (bufp) now.
18967 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18968 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18969 (TRANSLATE_VIA_MULTIBYTE): New macro.
18970 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18971 It is the same as RE_MULTIBYTE_P (bufp) now.
18972 <exactn>: Translate via multibyte.
18973 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18974 translate it.
18975 <charset, charset_not>: Fetch a character by
18976 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18977 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18978 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18979 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18980 by GET_CHAR_AFTER.
18981 (bcmp_translate): Likewise.
18982
18983 * search.c (compile_pattern): Check the member target_multibyte,
18984 not the member multibyte of buf.
18985
18986 * lread.c (read1): While reading a string, set force_singlebyte
18987 and force_multibyte correctly.
18988
18989 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18990 up of unibyte_to_multibyte_table.
18991
18992 2008-02-01 Kenichi Handa <handa@m17n.org>
18993
18994 * coding.c (setup_coding_system): If coding has
18995 post-read-conversion or pre-write-conversion, set
18996 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18997 respectively.
18998 (decode_coding_gap): Run post-read-conversion if any.
18999
19000 * fileio.c (Finsert_file_contents): Even if we read into a
19001 unibyte buffer, check if we must decode the result or not.
19002
19003 2008-02-01 Kenichi Handa <handa@m17n.org>
19004
19005 * coding.c (make_conversion_work_buffer): Change the work buffer
19006 name to the same one as that of Emacs 21.
19007
19008 2008-02-01 Kenichi Handa <handa@m17n.org>
19009
19010 * coding.h (make_conversion_work_buffer): Adjust prototype.
19011 (code_conversion_restore): Don't extern it.
19012
19013 * coding.c (detected_mask): Delete unused variable.
19014 (decode_coding_iso_2022): Pay attention to the byte sequence of
19015 CTEXT extended segment, and retain those bytes as is.
19016 (decode_coding_ccl): Delete unused variable `valids'.
19017 (setup_coding_system): Delete unused variable `category'.
19018 (consume_chars): Delete unused variable `category'. Make it work
19019 for non-multibyte case.
19020 (make_conversion_work_buffer): Change argument.
19021 (saved_coding): Delete unused variable.
19022 (code_conversion_restore): Don't check saved_coding->destination.
19023 (code_conversion_save): New function.
19024 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19025 instead of record_unwind_protect.
19026 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19027 (detect_coding_system): Delete unused variable `mask'.
19028 (Fdefine_coding_system_internal): Delete unused variable id.
19029
19030 * fileio.c (kill_workbuf_unwind): New function.
19031 (Finsert_file_contents): On replacing, call
19032 make_conversion_work_buffer with correct args, and call
19033 record_unwind_protect with the first arg kill_workbuf_unwind.
19034
19035 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19036
19037 2008-02-01 Kenichi Handa <handa@m17n.org>
19038
19039 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19040 (fontset_add): Fix for the case that TO is less than TO1.
19041 (Ffontset_info): Don't use fallback fontset on checking the
19042 default fontset.
19043 (dump_fontset): New function for debugging.
19044
19045 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19046 coding_type is Qcharset.
19047
19048 2008-02-01 Kenichi Handa <handa@m17n.org>
19049
19050 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19051 (map_char_table): Don't inherit the value from the parent on
19052 initializing VAL. Adjust for the above change.
19053
19054 2008-02-01 Kenichi Handa <handa@m17n.org>
19055
19056 * coding.c (Qsignature, Qendian): Delete these variables.
19057 (syms_of_coding): Don't initialize them.
19058 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19059 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19060 detect_info->found.
19061 (decode_coding_utf_16): Don't detect BOM here.
19062 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19063 is NOT utf_16_without_bom.
19064 (setup_coding_system): For a coding system of type utf-16, check
19065 if the attribute :endian is Qbig or not (not nil or not), and set
19066 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19067 (detect_coding): If coding type is utf-16 and BOM detection is
19068 required, detect it.
19069 (Fdefine_coding_system_internal): For a coding system of type
19070 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19071
19072 2008-02-01 Kenichi Handa <handa@m17n.org>
19073
19074 * coding.c (coding_set_source): Fix for the case that the current
19075 buffer is different from coding->src_object.
19076 (decode_coding_object): Don't use the conversion work buffer if
19077 DST_OBJECT is a buffer.
19078
19079 2008-02-01 Dave Love <fx@gnu.org>
19080
19081 * lread.c (read_emacs_mule_char) [len==2]: Index
19082 emacs_mule_charset correctly.
19083
19084 2008-02-01 Dave Love <fx@gnu.org>
19085
19086 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19087 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19088 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19089 treated specially.)
19090 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19091 (detected_mask): Remove Big5 bits.
19092
19093 2008-02-01 Kenichi Handa <handa@m17n.org>
19094
19095 The following changes are to make the font rescaling facility
19096 compatible with Emacs 21.
19097
19098 * xfaces.c (Vface_font_rescale_alist): Rename from
19099 Vface_resizing_fonts.
19100 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19101 (font_rescale_ratio): Rename from font_resizing_ratio.
19102 (split_font_name): Set font->rescale_ratio.
19103 (better_font_p): Pay attention to font->rescale_ratio.
19104 (build_scalable_font_name): Likewise. Change RESX, and RESY
19105 fields.
19106 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19107
19108 2008-02-01 Kenichi Handa <handa@m17n.org>
19109
19110 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19111 (Qutf_16_le): Remove these variables.
19112 (syms_of_coding): Don't DEFSYM them.
19113 (decode_coding_utf_16): Fix handling of BOM.
19114 (encode_coding_utf_16): Fix handling of BOM.
19115
19116 2008-02-01 Kenichi Handa <handa@m17n.org>
19117
19118 * fileio.c (Finsert_file_contents): On replacing, before decoding
19119 the file into the work buffer, set point of the work buffer to the end.
19120
19121 2008-02-01 Dave Love <fx@gnu.org>
19122
19123 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19124
19125 2008-02-01 Dave Love <fx@gnu.org>
19126
19127 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19128 and fix C types.
19129
19130 2008-02-01 Kenichi Handa <handa@m17n.org>
19131
19132 * xdisp.c (SKIP_GLYPHS): New macro.
19133 (set_cursor_from_row): Pay attention to string display properties.
19134
19135 * category.c (copy_category_entry): Fix for the case that RANGE
19136 is an integer.
19137
19138 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19139
19140 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19141
19142 2008-02-01 Kenichi Handa <handa@m17n.org>
19143
19144 * charset.c (Fcharset_id_internal): New function.
19145 (syms_of_charset): Defsubr it.
19146
19147 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19148 with the last arg charset_list acquired from coding.
19149 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19150 the attribute coding_attr_ccl_valids.
19151
19152 * coding.h (enum define_coding_ccl_arg_index): Set the first
19153 member coding_arg_ccl_decoder to coding_arg_max.
19154
19155 * ccl.h (ccl_driver): Adjust prototype.
19156
19157 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19158 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
19159 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
19160 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19161 last arg Qnil.
19162
19163 2008-02-01 Kenichi Handa <handa@m17n.org>
19164
19165 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19166 call encode_char.
19167
19168 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19169
19170 2008-02-01 Dave Love <fx@gnu.org>
19171
19172 * composite.c (syms_of_composite): Make composition_hash_table weak.
19173
19174 2008-02-01 Kenichi Handa <handa@m17n.org>
19175
19176 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19177 (font_name_registry): Don't extern them.
19178 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19179
19180 * fontset.h (Qfontset): Don't extern it.
19181 (new_fontset_from_font_name): Extern it.
19182
19183 * fontset.c: Give 8 extra slots to fontset objects.
19184 (Qfontset_info): New variable.
19185 (syms_of_fontset): Defsym it.
19186 (FONTSET_FALLBACK): New macro.
19187 (fontset_face): Try also the default fontset.
19188 (make_fontset): Realize a fallback fontset from the default fontset.
19189 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19190 using split_font_name_into_vector and build_font_name_from_vector.
19191 (Fset_fontset_font): Access the elements of font_spec by enum
19192 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19193 name by using split_font_name_into_vector.
19194 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19195 generate a proper font name from the fontset name. Update
19196 Vfontset_alias_alist.
19197 (n_auto_fontsets): New variable.
19198 (new_fontset_from_font_name): New function.
19199 (Ffont_info): Store the information about fonts generated from the
19200 default fontset in the first extra slot of the returned char-table.
19201
19202 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19203 (font_name_registry): Delete function.
19204 (split_font_name_into_vector): New function.
19205 (build_font_name_from_vector): New function.
19206 (font_list): The argument REGISTRY is now a list of registry names.
19207 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19208 specifies an explicit font name, return the name as is. Make a
19209 list of registy names.
19210
19211 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19212 of x_new_fontset.
19213 (Fx_create_frame): Don't call x_new_fontset here. Just use
19214 x_list_fonts to check the existence of fonts.
19215
19216 * xterm.h (x_new_fontset): Adjust prototype.
19217
19218 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19219 string. Use new_fontset_from_font_name to create a fontset from a
19220 font name.
19221
19222 2008-02-01 Kenichi Handa <handa@m17n.org>
19223
19224 * syntax.c (Vfind_word_boundary_function_table): New name for
19225 Vnext_word_boundary_function_table.
19226 (find-word-boundary-function-table): New name for
19227 next-word-boundary-function-table.
19228
19229 2008-02-01 Dave Love <fx@gnu.org>
19230
19231 * Makefile.in: Fix some dependencies.
19232
19233 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19234 set it to nil before returning.
19235
19236 * composite.c (update_compositions): Fix type error.
19237
19238 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19239
19240 2008-02-01 Kenichi Handa <handa@m17n.org>
19241
19242 * xterm.c (x_new_font): Optimize for the case that the font is
19243 already set for the frame.
19244
19245 2008-02-01 Kenichi Handa <handa@m17n.org>
19246
19247 * chartab.c (char_table_ascii): Check if the char table contents
19248 is sub-char-table or not.
19249 (char_table_set, char_table_set_range): Fix argument to
19250 char_table_ascii.
19251
19252 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19253 (detect_coding_utf_8, detect_coding_utf_16)
19254 (detect_coding_emacs_mule, detect_coding_iso_2022)
19255 (detect_coding_sjis, detect_coding_big5)
19256 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19257 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19258 sequence is valid in this coding system. Change callers.
19259 (MAX_ANNOTATION_LENGTH): New macro.
19260 (ADD_ANNOTATION_DATA): New macro.
19261 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19262 ADD_ANNOTATION_DATA. Change the format of annotation data.
19263 (ADD_CHARSET_DATA): New macro.
19264 (emacs_mule_char): New argument ID. Change callers.
19265 (decode_coding_emacs_mule, decode_coding_iso_2022)
19266 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19267 Produce charset annotation data in coding->charbuf.
19268 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19269 to charset annotation data in coding->charbuf.
19270 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19271 coding->common_flags if the coding system is iso-2022 based and
19272 uses designation.
19273 (produce_composition): Adjust for the new annotation data format.
19274 (produce_charset): New function.
19275 (produce_annotation): Handle charset annotation.
19276 (handle_composition_annotation, handle_charset_annotation): New
19277 functions.
19278 (consume_chars): Handle charset annotation. Utilize the above two
19279 functions.
19280 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19281 buffer, get the deleted text as a string and set
19282 coding->src_object to that string.
19283 (detect_coding, detect_coding_system): Use the new struct
19284 coding_detection_info.
19285
19286 * coding.h (struct coding_detection_info): New structure.
19287 (struct coding_system): Adjust prototype of the member `detector'.
19288 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19289
19290 2008-02-01 Kenichi Handa <handa@m17n.org>
19291
19292 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19293
19294 2008-02-01 Dave Love <fx@gnu.org>
19295
19296 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19297 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19298 to new local and nullify apropos_accumulate before returning.
19299 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19300
19301 2008-02-01 Kenichi Handa <handa@m17n.org>
19302
19303 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19304 correctly.
19305
19306 2008-02-01 Dave Love <fx@gnu.org>
19307
19308 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19309
19310 2008-02-01 Kenichi Handa <handa@m17n.org>
19311
19312 The following changes are to make character composition happen
19313 automatically on displaying.
19314
19315 * Makefile.in (lisp, shortlisp): Add composite.elc.
19316
19317 * composite.h (Qauto_composed, Vauto_composition_function)
19318 (Qauto_composition_function): Extern them.
19319
19320 * composite.c (Vcomposition_function_table)
19321 (Qcomposition_function_table): Delete variables.
19322 (Qauto_composed, Vauto_composition_function)
19323 (Qauto_composition_function): New variables.
19324 (run_composition_function): Don't call
19325 compose-chars-after-function.
19326 (update_compositions): Clear `auto-composed' text property.
19327 (compose_chars_in_text): Delete this function.
19328 (syms_of_composite): Staticpro Qauto_composed and
19329 Qauto_composition_function. Declare Vauto_composition_function as
19330 a Lisp variable.
19331
19332 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19333
19334 * xdisp.c (it_props): Add an entry for Qauto_composed.
19335 (handle_auto_composed_prop): New function.
19336
19337 * xselect.c (selection_data_to_lisp_data): Don't call
19338 compose_chars_in_text.
19339
19340 2008-02-01 Dave Love <fx@gnu.org>
19341
19342 * keyboard.c (read_char): Modify checking around use of
19343 Vkeyboard_translate_table.
19344
19345 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19346 and fix C types.
19347
19348 2008-02-01 Kenichi Handa <handa@m17n.org>
19349
19350 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19351 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19352 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19353 the case that the last byte is '\r' correctly.
19354 (decode_coding): Flush out the unprocessed data correctly.
19355 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19356
19357 2008-02-01 Dave Love <fx@gnu.org>
19358
19359 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19360 Add XK_ISO... case.
19361 (xaw_scroll_callback): Revert last change.
19362
19363 2008-02-01 Kenichi Handa <handa@m17n.org>
19364
19365 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19366
19367 2008-02-01 Kenichi Handa <handa@m17n.org>
19368
19369 * xfaces.c (Vface_resizing_fonts): New variable.
19370 (struct font_name): New member `resizing_ratio'.
19371 (font_resizing_ratio): New function.
19372 (split_font_name): Set font->resizing_ratio.
19373 (better_font_p): Pay attention to font->resizing_ratio.
19374 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19375 RESX, and RESY fields.
19376 (try_alternative_families): Try scalable fonts if
19377 Vscalable_fonts_allowed is not Qt.
19378 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19379
19380 2008-02-01 Dave Love <fx@gnu.org>
19381
19382 * xterm.c (xaw_scroll_callback): Cast correctly.
19383
19384 2008-02-01 Dave Love <fx@gnu.org>
19385
19386 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19387 (lispy_kana_keys): Comment out.
19388 (make_lispy_event) [XK_kana_A]: Comment out.
19389
19390 * xterm.c (xaw_scroll_callback): Cast call_data.
19391 (XTread_socket): Deal with ASCII keysyms.
19392 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19393
19394 2008-02-01 Dave Love <fx@gnu.org>
19395
19396 * xterm.c (Vx_keysym_table): New.
19397 (syms_of_xterm): Initialize it.
19398 (XTread_socket): Use it.
19399 From head: Eliminate incorrect optimization that tried to avoid
19400 decoding the output of X*LookupString.
19401 (x_get_font_repertory): Delete charset declaration.
19402
19403 2008-02-01 Kenichi Handa <handa@m17n.org>
19404
19405 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19406 return 0.
19407 (Fdefine_coding_system_internal): Setup
19408 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19409
19410 2008-02-01 Dave Love <fx@gnu.org>
19411
19412 * coding.c (Fcheck_coding_system): Doc fix.
19413
19414 * editfns.c (Finsert_byte): Return a proper value.
19415
19416 2008-02-01 Kenichi Handa <handa@m17n.org>
19417
19418 * coding.c (decode_coding): Fix args to translate_chars. Pay
19419 attention to Vstandard_translation_table_for_decode.
19420 (encode_coding): Fix args to translate_chars. Pay attention to
19421 Vstandard_translation_table_for_encode.
19422
19423 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19424 SINGLE_BYTE_CHAR_P.
19425
19426 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19427 not by SINGLE_BYTE_CHAR_P.
19428
19429 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19430 SINGLE_BYTE_CHAR_P.
19431
19432 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19433 SINGLE_BYTE_CHAR_P.
19434
19435 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19436 by SINGLE_BYTE_CHAR_P.
19437
19438 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19439 SINGLE_BYTE_CHAR_P.
19440
19441 2008-02-01 Dave Love <fx@gnu.org>
19442
19443 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19444
19445 2008-02-01 Dave Love <fx@gnu.org>
19446
19447 * fns.c (Flanginfo): Fix typo.
19448
19449 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19450
19451 2008-02-01 Kenichi Handa <handa@m17n.org>
19452
19453 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19454 (detect_coding_emacs_mule, detect_coding_iso_2022)
19455 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19456 incomplete byte sequence. Don't update *mask when correctly detected.
19457 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19458 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19459 (detect_coding, detect_coding_system): Adjust for the changes above.
19460
19461 2008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * character.c (char_string): Rename from
19464 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19465 (string_char): Rename from string_char.
19466
19467 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19468 if C is greater than MAX_3_BYTE_CHAR.
19469 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19470 string_char instead of string_char_with_unification.
19471
19472 2008-02-01 Dave Love <fx@gnu.org>
19473
19474 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19475
19476 2008-02-01 Kenichi Handa <handa@m17n.org>
19477
19478 * keymap.c (push_key_description): Pay attention to force_multibyte.
19479
19480 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19481
19482 2008-02-01 Dave Love <fx@gnu.org>
19483
19484 * charset.c (define_charset_internal): Rename `supprementary'.
19485
19486 * Makefile.in (lisp, shortlisp): Remove latin-N.
19487
19488 2008-02-01 Dave Love <fx@gnu.org>
19489
19490 * xfns.c (x_window, x_window): Use use_xim.
19491
19492 * xterm.c (use_xim): Initialize.
19493 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19494 (x_term_init): Maybe set use_xim.
19495
19496 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19497
19498 2008-02-01 Kenichi Handa <handa@m17n.org>
19499
19500 * search.c (search_buffer): Fix case-fold-search of multibyte
19501 characters.
19502 (boyer_moore): Rename the last argument to char_high_bits.
19503
19504 2008-02-01 Kenichi Handa <handa@m17n.org>
19505
19506 * xdisp.c (display_string): Fix for the case of zero width glyph.
19507
19508 * xfns.c (x_set_font): Change the error message of the case that
19509 x_new_fontset returns Qt.
19510
19511 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19512 (Finternal_set_lisp_face_attribute): Use signal_error for the
19513 error of invalid fontset.
19514
19515 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19516 fontset, return Qt.
19517
19518 2008-02-01 Dave Love <fx@gnu.org>
19519
19520 * unexelf.c (unexec): Make .got handling not SGI-specific.
19521
19522 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19523
19524 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19525
19526 * keyboard.c (read_key_sequence): Fix type error.
19527
19528 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19529 type error.
19530
19531 * fontset.c (fontset_add): Return Lisp_Object.
19532
19533 2008-02-01 Dave Love <fx@gnu.org>
19534
19535 * charset.h (charset_ordered_list_tick): Declare extern.
19536
19537 2008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 The following changes (and some of 2008-02-01 changes of mine) are
19540 for handling syntax, category, and case conversion for unibyte
19541 characters by converting them to multibyte on the fly. With these
19542 changes, we don't have to setup syntax and case tables for unibyte
19543 characters in each language environment.
19544
19545 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19546 multibyte if necessary.
19547
19548 * bytecode.c (Fbyte_code): Likewise.
19549
19550 * character.h (LEADING_CODE_LATIN_1_MIN)
19551 (LEADING_CODE_LATIN_1_MAX): New macros.
19552 (unibyte_to_multibyte_table): Extern it.
19553 (unibyte_char_to_multibyte): New macro.
19554 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19555 (CHAR_LEADING_CODE): New macro.
19556 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19557
19558 * character.c (unibyte_to_multibyte_table): New variable.
19559 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19560 (multibyte_char_to_unibyte): If C is an eight-bit character,
19561 convert it to the corresponding byte value.
19562
19563 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19564 not 1, signals an error. Update the elements of
19565 unibyte_to_multibyte_table.
19566 (init_charset_once): Initialize unibyte_to_multibyte_table.
19567 (syms_of_charset): Define the charset `iso-8859-1'.
19568
19569 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19570 as is without converting it to unibyte. In a unibyte buffer,
19571 convert C to multibyte before checking the syntax.
19572
19573 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19574
19575 * minibuf.c (Fminibuffer_complete_word): Use the macro
19576 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19577
19578 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19579
19580 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19581 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19582 that is zero, convert an eight-bit char to multibyte.
19583 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19584 non-emacs case.
19585 (PATFETCH): Convert an eight-bit char to multibyte.
19586 (HANDLE_UNIBYTE_RANGE): New macro.
19587 (regex_compile): Setup the compiled pattern for multibyte chars
19588 even if the given regex string is unibyte. Use PATFETCH_RAW
19589 instead of PATFETCH in many places. To handle `charset'
19590 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19591 only for ASCII chars.
19592 (analyse_first) <exactn>: Simplify because the compiled pattern
19593 is multibyte.
19594 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19595 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19596 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19597 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19598 multibyte always 1.
19599 (re_search_2): In emacs, set the locale variable multibyte to 1,
19600 otherwise to 0. New local variable target_multibyte. Check it
19601 to decide the multibyteness of STR1 and STR2. If
19602 target_multibyte is zero, convert unibyte chars to multibyte
19603 before translating and checking fastmap.
19604 (TARGET_CHAR_AND_LENGTH): New macro.
19605 (re_match_2_internal): In emacs, set the locale variable multibyte
19606 to 1, otherwise to 0. New local variable target_multibyte. Check
19607 it to decide the multibyteness of STR1 and STR2. Use
19608 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19609 <charset, charset_not>: If multibyte is nonzero, check fastmap
19610 only for ASCII chars. Call bcmp_translate with
19611 target_multibyte, not with multibyte.
19612 <begline>: Declare the local variable C as `unsigned'.
19613 (bcmp_translate): Change the last arg name to target_multibyte.
19614
19615 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19616 the regexp pattern and the matching target. Set cp->buf.multibyte
19617 to the multibyteness of the regexp pattern. Set
19618 cp->but.target_multibyte to the multibyteness of the matching target.
19619 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19620 FETCH_STRING_CHAR_ADVANCE.
19621 (Freplace_match): Convert unibyte chars to multibyte.
19622
19623 * syntax.c (char_quoted, back_comment, scan_words)
19624 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19625 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19626 unibyte chars to multibyte.
19627 (skip_chars): Delete the arg syntaxp, and move the code for
19628 handling syntaxes to skip_syntaxes. Change callers.
19629 Fix the case that the multibyteness of STRING and the current
19630 buffer doesn't match.
19631 (skip_syntaxes): New function.
19632 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19633 SINGLE_BYTE_CHAR_P.
19634
19635 2008-02-01 Kenichi Handa <handa@m17n.org>
19636
19637 * xfaces.c (QCfontset): New variable.
19638 (LFACE_FONTSET): New macro.
19639 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19640 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19641 (Finternal_set_lisp_face_attribute)
19642 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19643 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19644 check also LFACE_FONTSET_INDEX.
19645 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19646 attrs[LFACE_FONT_INDEX].
19647 (syms_of_xfaces): Intern and staticpro QCfontset.
19648
19649 * dispextern.h (enum lface_attribute_index): New member
19650 LFACE_FONTSET_INDEX.
19651
19652 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19653
19654 2008-02-01 Kenichi Handa <handa@m17n.org>
19655
19656 * coding.c (coding_set_destination): Fix coding->destination for
19657 the case converting a region.
19658 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19659 (encode_coding_object): Fix coding->dst_pos and
19660 coding->dst_pos_byte for the case converting a region.
19661
19662 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19663
19664 * character.h (BYTE8_STRING): New macro.
19665
19666 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19667
19668 2008-02-01 Kenichi Handa <handa@m17n.org>
19669
19670 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19671 characters by octal form.
19672
19673 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19674
19675 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19676 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19677 _fetch_multibyte_char_len.
19678 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19679
19680 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19681
19682 * casefiddle.c (casify_object): Simplify. Handle the case that
19683 the case conversion change the byte length.
19684 (casify_region): Likewise.
19685
19686 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19687
19688 * character.c (_fetch_multibyte_char_len): Delete this variable.
19689 (syms_of_character): Setup Vprintable_chars.
19690
19691 * editfns.c (Fchar_equal): Fix for the unibyte case.
19692 (Finsert_byte): New function.
19693 (syms_of_editfns): Defsubr it.
19694
19695 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19696 of direct code 0x3ffff.
19697
19698 * search.c (Freplace_match): Fix for the unibyte case.
19699
19700 2008-02-01 Kenichi Handa <handa@m17n.org>
19701
19702 * lread.c (safe_to_load_p): Fix the logic.
19703
19704 * syntax.c (scan_words): Don't treat characters belonging to
19705 different scripts as constituting a word.
19706
19707 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19708
19709 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19710
19711 * emacs.c (main): In the case of --unibyte, instead of aborting on
19712 finding non-empty buffer, make it unibyte.
19713
19714 2008-02-01 Kenichi Handa <handa@m17n.org>
19715
19716 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19717 to create a fontset.
19718
19719 2008-02-01 Dave Love <fx@gnu.org>
19720
19721 * character.c (Funibyte_char_to_multibyte): Doc fix.
19722
19723 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19724
19725 2008-02-01 Kenichi Handa <handa@m17n.org>
19726
19727 * fontset.c (fontset_add): Make the type `int'.
19728 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19729
19730 * character.c (unibyte_char_to_multibyte)
19731 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19732 charset_unibyte, not charset_primary.
19733
19734 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19735
19736 * charset.c (charset_unibyte): Rename from charset_primary.
19737 (Funibyte_charset): Rename from Fprimary_charset.
19738 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19739 (syms_of_charset): Adjust for the above changes.
19740
19741 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19742 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19743 it->multibyte_p is zero.
19744
19745 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19746 Delete extern.
19747
19748 2008-02-01 Kenichi Handa <handa@m17n.org>
19749
19750 * coding.c (Fdefine_coding_system_internal): Fix category setting
19751 for a coding system of type iso-2022.
19752
19753 2008-02-01 Kenichi Handa <handa@m17n.org>
19754
19755 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19756
19757 2008-02-01 Kenichi Handa <handa@m17n.org>
19758
19759 * syntax.c (Vnext_word_boundary_function_table): New variable.
19760 (next-word-boundary-function-table): Declare it as a Lisp variable
19761 in syms_of_syntax.
19762 (scan_words): Call functions in Vnext_word_boundary_function_table
19763 if any.
19764
19765 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19766
19767 * fontset.c (fs_load_font): If fontp->charset is not negative,
19768 return fontp without setting its members.
19769
19770 2008-02-01 Dave Love <fx@gnu.org>
19771
19772 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19773
19774 * m/sparc.h (HAVE_ALLOCA): Delete.
19775
19776 * s/irix6-5.h: Don't include strings.h.
19777 (bcopy, bzero, bcmp): Don't undef.
19778
19779 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19780
19781 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19782 (TIOCSIGSEND): Don't test IRIX6.
19783 (bcopy, bzero, bcmp): Define conditionally.
19784
19785 2008-02-01 Kenichi Handa <handa@m17n.org>
19786
19787 * buffer.c (Qas, Qmake, Qto): New variables.
19788 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19789 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19790
19791 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19792 we are inserting a process output into a multibyte buffer.
19793
19794 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19795 multibyte_char_to_unibyte.
19796
19797 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19798 by the primary charset, make it eight-bit char.
19799 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19800
19801 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19802 (charset_8_bit__control, charset_8_bit_graphic)
19803 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19804 (define_charset_internal): New function.
19805 (syms_of_charset): Call define_charset_internal for pre-defined
19806 charsets.
19807
19808 * charset.h (charset_8_bit): Extern it.
19809
19810 * coding.c (make_conversion_work_buffer): Adjust for the change
19811 of Fset_buffer_multibyte.
19812 (encode_coding_raw_text): Increment p0 in the loop.
19813
19814 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19815
19816 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19817 for the change of Fset_buffer_multibyte.
19818
19819 * fns.c (Fstring_to_multibyte): New function.
19820 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19821
19822 2008-02-01 Dave Love <fx@gnu.org>
19823
19824 * xfns.c (x_put_x_image): Declare args.
19825
19826 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19827 (try_font_list): Declare an arg.
19828
19829 * xdisp.c (message2_nolog, set_message): Declare an arg.
19830
19831 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19832
19833 * syntax.c (scan_sexps_forward): Declare an arg.
19834
19835 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19836 Declare an arg.
19837
19838 * lisp.h (Fnew_fontset): Declare.
19839
19840 * keymap.c (push_key_description): Call CHARACTERP correctly.
19841
19842 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19843 (face_for_char): Delete unused vars.
19844 (Fset_fontset_font): Doc fix. Delete unused vars.
19845
19846 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19847
19848 * composite.c (update_compositions): Declare arg.
19849
19850 * cm.c (calccost, cmgoto): Declare args.
19851
19852 * charset.c: Remove `emacs' conditional. Doc fixes.
19853 (map_char_table_for_charset): Declare.
19854
19855 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19856
19857 * ccl.c: Remove `emacs' conditional.
19858
19859 2008-02-01 Kenichi Handa <handa@m17n.org>
19860
19861 The following changes are to allow specifying multiple font
19862 patterns for a character range (specified by script or charset).
19863
19864 * Makefile.in (abbrev.o): Depend on syntax.h.
19865 (xfaces.o): Depend on charset.h.
19866
19867 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19868 SINGLE_BYTE_CHAR_P.
19869
19870 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19871
19872 * character.h (Vchar_script_table): Extern it.
19873
19874 * character.c (Vscript_alist): Delete.
19875 (Vchar_script_table, Qchar_script_table): New variable.
19876 (syms_of_character): Declare Vchar_script_table as a lisp variable
19877 and initialize it.
19878
19879 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19880 have property char-table-extra-slots, make no extra slot.
19881
19882 * dispextern.h (struct face): Delete member `charset'.
19883 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19884 SINGLE_BYTE_CHAR_P.
19885 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19886 Add prototypes.
19887 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19888 (generate_ascii_font_name): Rename from generate_ascii_font.
19889
19890 * fontset.h (get_font_repertory_func): New prototype.
19891 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19892 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19893
19894 * fontset.c (Qprepend, Qappend): New variables.
19895 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19896 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19897 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19898 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19899 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19900 (load_font_get_repertory): New functions.
19901 (fontset_set): Delete.
19902 (fontset_face): New arg FACE. Return face ID, not face.
19903 Complete re-write to handle new fontset structure. Change caller.
19904 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19905 (face_for_char): Don't call lookup_face.
19906 (make_fontset_for_ascii_face): New arg FACE.
19907 (fs_load_font): New arg CHARSET_ID. Don't check
19908 Vfont_encoding_alist here.
19909 (find_font_encoding): New function.
19910 (list_fontsets): Use STRINGP, not ! NILP.
19911 (accumulate_script_ranges): New function.
19912 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19913 re-written to handle new fontset structure.
19914 (Ffontset_font): Return a copy of element.
19915 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19916 docstring of font-encoding-alist.
19917
19918 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19919 (Fset_fotset_font): Fix arguments to 5.
19920
19921 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19922
19923 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19924 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19925 (highlight_trailing_whitespace): Adjust for the change of
19926 lookup_named_face.
19927
19928 * xfaces.c: Include charset.h.
19929 (load_face_font): Delete argument C. Change caller.
19930 (generate_ascii_font_name): Rename from generate_ascii_font.
19931 (font_name_registry): New function.
19932 (cache_face): Store ascii faces before non-ascii faces in buckets.
19933 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19934 Lookup only ascii faces.
19935 (lookup_non_ascii_face): New function.
19936 (lookup_named_face): Delete argument C. Change caller.
19937 (lookup_derived_face): Delete argument C. Change caller.
19938 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19939 a string, just call font_list with it.
19940 (choose_face_font): Delete arguments FACE and C. New arg
19941 FONT_SPEC. Change caller.
19942 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19943 Change caller.
19944 (realize_non_ascii_face): New function.
19945 (realize_x_face): Call load_face_font here.
19946 (realize_tty_face): Delete argument C. Change caller.
19947 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19948 get a face ID.
19949 (dump_realized_face): Don't print charset of FACE.
19950
19951 * xfns.c (x_set_font): Always call x_new_fontset and
19952 store_frame_parameter.
19953 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19954 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19955
19956 * xterm.h (x_get_font_repertory): Extern it.
19957
19958 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19959 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19960 it->multibyte_p is zero.
19961 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19962 (x_new_fontset): If FONTSETNAME doesn't match any existing
19963 fontsets, create a new one.
19964 (x_get_font_repertory): New function.
19965
19966 2008-02-01 Kenichi Handa <handa@m17n.org>
19967
19968 * coding.c (Ffind_coding_systems_region_internal): Detect an
19969 ASCII only string correctly.
19970
19971 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19972 version is 0.
19973
19974 2008-02-01 Kenichi Handa <handa@m17n.org>
19975
19976 * lread.c: Include "coding.h".
19977 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19978 (load_each_byte, unread_char): New variables.
19979 (readchar_backlog): Delete.
19980 (readchar): Return a character unless load_each_byte is nonzero.
19981 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19982 cons. If unread_char is not -1, simply return it.
19983 (unreadchar): Handle the case that readcharfun is
19984 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19985 (read_multibyte): Delete.
19986 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19987 (read_emacs_mule_char): New functions.
19988 (Fload): Even if the file doesn't have the extension ".elc", if
19989 safe_to_load_p returns a positive version number, assume that the
19990 file contains bytecompiled code. If the version is less than 22,
19991 load the file while decoding multibyte sequences by emacs-mule.
19992 (readevalloop): Don't use readchar_backlog.
19993 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19994 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19995 (read_escape): Delete the arg BYTEREP.
19996 (read1): Set load_each_byte to 1 temporarily while handling
19997 #@NUMBER. Don't call read_multibyte.
19998 (read_vector): Call Fread with a cons. If readcharfun is
19999 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20000 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20001 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20002 and Qload_force_doc_strings.
20003
20004 2008-02-01 Kenichi Handa <handa@m17n.org>
20005
20006 * xdisp.c (face_before_or_after_it_pos): Call
20007 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20008
20009 2008-02-01 Kenichi Handa <handa@m17n.org>
20010
20011 * character.h (TRAILING_CODE_P): New macro.
20012 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20013 (string_char_with_unification): Fix prototype.
20014 (Vscript_alist): Extern it.
20015
20016 * character.c (Vscript_alist): New variable.
20017 (string_char_with_unification, str_as_unibyte)
20018 (string_escape_byte8): Add `const' to local variables.
20019 (syms_of_character): Declare script-alist as a Lisp variable.
20020
20021 * charset.h (Vcharset_ordered_list): Extern it.
20022 (charset_ordered_list_tick): Extern it.
20023 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20024 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20025 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20026 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20027 (Funify_charset): Adjust for the change of Funify_charset.
20028
20029 * charset.c (charset_ordered_list_tick): New variable.
20030 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20031 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20032 deunify intead of unify a charset.
20033 (string_xstring_p): Add `const' to local variables.
20034 (find_charsets_in_text): Add `const' to arguments and local variables.
20035 (encode_char): Adjust for the change of Funify_charset. Fix
20036 detecting of invalid code.
20037 (Fset_charset_priority): Increment charset_ordered_list_tick.
20038 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20039 and TO_CODE.
20040
20041 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20042 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20043 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20044 (decode_coding_ccl, consume_chars)
20045 (Ffind_coding_systems_region_internal)
20046 (Fcheck_coding_systems_region): Add `const' to local variables.
20047
20048 * print.c (print_object): Use octal form for printing the
20049 contents of a bool vector.
20050
20051 2008-02-01 Dave Love <fx@gnu.org>
20052
20053 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20054 <version == 20>: Refuse to load.
20055
20056 2008-02-01 Dave Love <fx@gnu.org>
20057
20058 * fns.c: Move coding.h.
20059 (Qcodeset, Qdays, Qmonths): New.
20060 (concat): Use CHARACTERP instead of INTEGERP.
20061 (Flocale_codeset): Delete.
20062 (Flanginfo): New function.
20063 (syms_of_fns): Change accordingly.
20064
20065 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20066
20067 2008-02-01 Dave Love <fx@gnu.org>
20068
20069 * casetab.c (init_casetab_once, init_casetab_once): Fix
20070 CHAR_TABLE_SET call.
20071
20072 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20073
20074 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20075
20076 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20077 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20078 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20079
20080 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20081
20082 * coding.c (ENCODE_DESIGNATION, decode_eol)
20083 (make_conversion_work_buffer, code_conversion_restore)
20084 (Fdefine_coding_system_internal): Convert Lisp types.
20085 (code_conversion_restore): Use EQ, not ==.
20086 (Fencode_coding_string): Fix code_convert_string call.
20087
20088 * coding.h (code_convert_region): Fix prototype.
20089
20090 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20091
20092 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20093 (Ffontset_info): Convert Lisp types.
20094
20095 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20096
20097 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20098
20099 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20100
20101 * chartab.c: Include "...h", not <...h> in some cases.
20102
20103 * callproc.c (Fcall_process): Remove unused variables.
20104
20105 2008-02-01 Dave Love <fx@gnu.org>
20106
20107 * coding.c (Fset_coding_system_priority): Allow null arg list.
20108
20109 2008-02-01 Dave Love <fx@gnu.org>
20110
20111 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20112 (Fself_insert_and_exit): Use CHARACTERP.
20113
20114 * callproc.c (Fcall_process): Remove unused vars.
20115
20116 * xterm.c (XTread_socket): Add extra dead keysyms.
20117
20118 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20119
20120 * dispextern.h: Remove prototypes for redraw_frame,
20121 redraw_garbaged_frames.
20122
20123 * cmds.c (Fself_insert_command): Use CHARACTERP.
20124
20125 * chartab.c (make_sub_char_table): Remove unused var.
20126 (Fset_char_table_default, Fmap_char_table): Doc fix.
20127
20128 * keymap.c (access_keymap): Remove generic char code.
20129 (push_key_description): Use CHARACTERP.
20130
20131 2008-02-01 Dave Love <fx@gnu.org>
20132
20133 * charset.c: Doc fixes.
20134 (Funify_charset): Extra checking.
20135
20136 2008-02-01 Dave Love <fx@gnu.org>
20137
20138 * lread.c: Remove some unused variables.
20139 (safe_to_load_p): If safe, return the magic number version byte.
20140 (Fload): Maybe use load-with-code-conversion.
20141
20142 2008-02-01 Kenichi Handa <handa@m17n.org>
20143
20144 * category.c (Fmodify_category_entry): Don't modify the contents
20145 of category_set for characters out of the range. Avoid
20146 unnecessary modification.
20147
20148 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20149 Vchar_unify_table. The default value of the table is now nil.
20150
20151 * character.c (syms_of_character): Setup Vchar_width_table for
20152 eight-bit-control and raw-byte chars.
20153
20154 * charset.h (enum define_charset_arg_index): Delete
20155 charset_arg_parents and add charset_arg_subset and
20156 charset_arg_superset.
20157 (enum charset_attr_index): Delete charset_parents and add
20158 charset_subset and charset_superset.
20159 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20160 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20161 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20162 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20163 (CHARSET_SUPERSET): New macros.
20164 (charset_work): Extern it.
20165 (ENCODE_CHAR): Use charset_work.
20166 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20167 (map_charset_chars): Extern it.
20168
20169 * charset.c (load_charset_map): Set the default value of encoder
20170 and deunifier char-tables to nil.
20171 (map_charset_chars): Change argument. Change callers. Use
20172 map_char_table_for_charset instead of map_char_table.
20173 (Fmap_charset_chars): New optional args from_code and to_code.
20174 (Fdefine_charset_internal): Adjust for the change of
20175 `define-charset' (:parents -> :subset or :superset).
20176 (charset_work): New variable.
20177 (encode_char, syms_of_charset): Adjust for the change of
20178 Fdefine_charset_internal.
20179 (Ffind_charset_string): Setup the vector `charsets' correctly.
20180
20181 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20182 the previous change.
20183 (char_table_ref_and_range): Adjust for the above change.
20184 (map_sub_char_table_for_charset): New function.
20185 (map_char_table_for_charset): New function.
20186
20187 * keymap.c (describe_vector): Handle a char-table directly here.
20188 (describe_char_table): Delete.
20189
20190 * lisp.h (map_charset_chars): Delete.
20191
20192 2008-02-01 Dave Love <fx@gnu.org>
20193
20194 * fns.c (count_combining): Comment out (unused).
20195 (Flocale_codeset): New.
20196 (syms_of_fns): Defsubr it.
20197
20198 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20199 (size_t): Remove.
20200
20201 2008-02-01 Dave Love <fx@gnu.org>
20202
20203 * Makefile.in (chartab.o): Depend on charset.h.
20204
20205 2008-02-01 Kenichi Handa <handa@m17n.org>
20206
20207 * character.c (syms_of_character): Set the default value of
20208 Vprintable_chars to Qnil.
20209
20210 2008-02-01 Dave Love <fx@gnu.org>
20211
20212 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20213
20214 2008-02-01 Kenichi Handa <handa@m17n.org>
20215
20216 * charset.c (load_charset_map): Handle the case that from < to
20217 correctly.
20218
20219 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20220 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20221 Pay attention to raw-8-bit chars.
20222
20223 2008-02-01 Kenichi Handa <handa@m17n.org>
20224
20225 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20226 It is not bytecompiled now.
20227
20228 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20229 (charset_jisx0208): New variables.
20230 (Fdefine_charset_internal): Setup them if appropriate.
20231 (init_charset_once): Initialize them to -1.
20232
20233 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20234 (charset_jisx0208): Extern them.
20235
20236 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20237 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20238 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20239 (setup_iso_safe_charsets): Fix arguments to Fassq.
20240 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20241 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20242 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20243 (encode_coding_iso_2022): Change the 1st arg to
20244 ENCODE_ISO_CHARACTER to a variable.
20245
20246 2008-02-01 Kenichi Handa <handa@m17n.org>
20247
20248 * charset.h (enum define_charset_arg_index): New enums
20249 charset_arg_min_code and charset_arg_max_code.
20250 (struct charset): New member char_index_offset.
20251
20252 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20253 Take charset->char_index_offset into account.
20254 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20255 args[charset_arg_max_code]. Setup charset.char_index_offset.
20256 (syms_of_charset): Fix args to Fdefine_charset_internal.
20257
20258 2008-02-01 Dave Love <fx@gnu.org>
20259
20260 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20261
20262 2008-02-01 Dave Love <fx@gnu.org>
20263
20264 * coding.c: Doc fixes.
20265 (Fcoding_system_aliases): Fix return value.
20266 (Qmac): Remove (duplicated) definition.
20267
20268 2008-02-01 Dave Love <fx@gnu.org>
20269
20270 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20271 New functions.
20272
20273 * character.c (Fstring): Doc fix.
20274
20275 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20276
20277 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
20278 (font-encoding-alist): Doc fix.
20279
20280 2008-02-01 Dave Love <fx@gnu.org>
20281
20282 * term.c (costs_set): Declare static, non-initialized for pcc.
20283 (encode_terminal_code): Remove unused var.
20284
20285 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20286 for K&R.
20287
20288 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20289
20290 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20291 (suffixes): Move out of make_subsidiaries for K&R.
20292
20293 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20294
20295 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20296
20297 2008-02-01 Dave Love <fx@gnu.org>
20298
20299 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20300
20301 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20302
20303 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
20304
20305 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20306
20307 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20308
20309 2008-02-01 Kenichi Handa <handa@m17n.org>
20310
20311 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20312 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20313
20314 2008-02-01 Kenichi Handa <handa@m17n.org>
20315
20316 * coding.c (decode_coding_charset): Adjust for the change of
20317 Fdefine_coding_system_internal.
20318 (Fdefine_coding_system_internal): For a coding system of
20319 `charset' type, store a list of charset IDs in
20320 `charset_attr_charset_valids' element of coding attributes.
20321
20322 2008-02-01 Kenichi Handa <handa@m17n.org>
20323
20324 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20325 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20326 caller. Handle 2-byte and 3-byte charsets correctly.
20327 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20328 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20329 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20330 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20331 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20332 sequence.
20333 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20334 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20335 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20336 and alt&rule composition.
20337 (decode_coding_iso_2022): Handle composition correctly.
20338 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20339
20340 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20341 re-defining a charset. If the charset has :emacs-mule-id, setup
20342 emacs_mule_bytes.
20343 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20344
20345 2008-02-01 Kenichi Handa <handa@m17n.org>
20346
20347 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20348 (encode_coding_big5, encode_coding_charset): If coding requires safe
20349 encoding, produce a character specified by
20350 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20351
20352 2008-02-01 Dave Love <fx@gnu.org>
20353
20354 * xterm.c (XSetIMValues): Declare.
20355
20356 * process.c: Conditionally include sys/wait.h, pty.h.
20357
20358 * print.c (print_object): Fix print format for 64-bit systems.
20359
20360 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20361
20362 * buffer.c (emacs_strerror): Declare.
20363
20364 * fontset.c (Fclear_face_cache): Declare.
20365 (accumulate_font_info): Comment-out (unused).
20366 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20367 variables.
20368
20369 * character.h (string_escape_byte8): Declare.
20370
20371 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20372 unused vars.
20373 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20374 (Fmap_charset_chars): Doc fix.
20375
20376 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20377 (Fset_coding_system_priority, Fset_coding_system_priority)
20378 (Fdefine_coding_system_internal): Doc fix.
20379
20380 2008-02-01 Dave Love <fx@gnu.org>
20381
20382 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20383
20384 2008-02-01 Kenichi Handa <handa@m17n.org>
20385
20386 * character.c (string_escape_byte8): Make multibyte string with
20387 correct size.
20388
20389 * charset.c (Fmake_char): Delete unnecessary code.
20390
20391 2008-02-01 Kenichi Handa <handa@m17n.org>
20392
20393 * xfns.c (x_encode_text): Allocate coding.destination here, and
20394 call encode_coding_object with dst_object Qnil.
20395
20396 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20397 multibyte form correctly.
20398
20399 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20400 against Vfont_encoding_alist.
20401
20402 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20403 handling of charset list.
20404 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20405 (decode_coding_object): Move point to coding->dst_pos before
20406 calling post-read-conversion function.
20407 (encode_coding_object): Give correct arguments to
20408 pre-write-conversion. Ignore the return value of
20409 pre-write-conversion function. Pay attention to the case that
20410 pre-write-conversion changes the current buffer. If dst_object is
20411 Qt, even if coding->src_bytes is zero, allocate at least one byte
20412 to coding->destination.
20413
20414 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20415
20416 * charset.c (Fmake_char): Make it more backward compatible.
20417 (Fmap_charset_chars): Fix docstring.
20418
20419 2008-02-01 Dave Love <fx@gnu.org>
20420
20421 * coding.c: Doc fixes.
20422 (Fdefine_coding_system_alias): Use names, not symbols, in
20423 coding-system-alist.
20424
20425 2008-02-01 Kenichi Handa <handa@m17n.org>
20426
20427 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20428 of calling free_realized_face.
20429
20430 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
20431
20432 * charset.c (read_hex): Don't treat SPC as a comment starter.
20433 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20434 (Fdecode_char): Fix typo.
20435
20436 2008-02-01 Kenichi Handa <handa@m17n.org>
20437
20438 * charset.h (struct charset): New member `code_space_mask'.
20439
20440 * coding.c (coding_set_source): Delete the local variable beg_byte.
20441 (encode_coding_charset, Fdefine_coding_system_internal):
20442 Delete the local variable charset.
20443 (Fdefine_coding_system_internal): Setup
20444 attrs[coding_attr_charset_valids] correctly.
20445
20446 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20447 member to check if CODE is valid or not.
20448 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20449 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20450 is within the range of charset->min_code and carset->max_code.
20451
20452 2008-02-01 Dave Love <fx@gnu.org>
20453
20454 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20455
20456 * dispextern.h (generate_ascii_font): Fix return type.
20457
20458 * xfaces.c (generate_ascii_font): Fix arg declaration.
20459
20460 * coding.c (coding_inherit_eol_type)
20461 (Fset_terminal_coding_system_internal)
20462 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20463
20464 2008-02-01 Kenichi Handa <handa@m17n.org>
20465
20466 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20467 multiple charsets correctly.
20468
20469 2008-02-01 Kenichi Handa <handa@m17n.org>
20470
20471 * search.c (boyer_moore): Fix handling of multibyte character
20472 translation.
20473
20474 * xdisp.c (display_mode_element): When the variable `elt' is
20475 changed, update `this' and `lisp_string'.
20476
20477 2008-02-01 Kenichi Handa <handa@m17n.org>
20478
20479 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20480
20481 * callproc.c (Fcall_process): Be sure to give the current buffer
20482 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20483
20484 * charset.c (struct charset_map_entries): New struct.
20485 (load_charset_map): Rename from parse_charset_map. New args
20486 entries and n_entries. Change caller.
20487 (load_charset_map_from_file): Rename from load_charset_map.
20488 Change caller. New arg control_flag. Call load_charset_map at
20489 the tail.
20490 (load_charset_map_from_vector): New function.
20491 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20492 (encode_char): If the charset is compact, change a character index
20493 to a code point.
20494
20495 * coding.c (coding_alloc_by_making_gap): Check the case that the
20496 source and destination are the same correctly.
20497 (decode_coding_raw_text): Set coding->consumed_char and
20498 coding->consumed to 0.
20499 (produce_chars): If coding->chars_at_source is nonzero, update
20500 coding->consumed_char and coding->consumed before calling
20501 alloc_destination.
20502 (Fdefine_coding_system_alias): Register ALIAS in
20503 Vcoding_system_alist.
20504 (syms_of_coding): Define `no-conversion' coding system at the tail.
20505
20506 * fileio.c (Finsert_file_contents): Set coding_system instead of
20507 val. If the current buffer is multibyte, always call
20508 decode_coding_gap.
20509
20510 * xfaces.c (try_font_list): Give higher priority to fontset's
20511 family than face's family.
20512
20513 2008-02-01 Kenichi Handa <handa@m17n.org>
20514
20515 * callproc.c (Fcall_process): Be sure to give the current buffer
20516 to decode_coding_c_string.
20517
20518 * xfaces.c (try_font_list): Give a family specified in a fontset
20519 higher priority than a family specified in a face.
20520
20521 2008-02-01 Kenichi Handa <handa@m17n.org>
20522
20523 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20524 Fix arguments to insert_from_buffer.
20525
20526 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20527
20528 2008-02-01 Kenichi Handa <handa@m17n.org>
20529
20530 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20531 (decode_coding_gap): Set coding->dst_multibyte correctly.
20532
20533 2008-02-01 Kenichi Handa <handa@m17n.org>
20534
20535 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20536 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20537 (encode_coding_utf_16): Substitute coding->default_char for
20538 non-Unicode characters.
20539 (decode_coding): Don't call record_insert here.
20540 (setup_coding_system): Initialize `surrogate' of
20541 coding->spec.utf_16 to 0.
20542 (EMIT_ONE_BYTE): Fix for multibyte case.
20543
20544 * insdel.c (insert_from_gap): Call record_insert.
20545
20546 2008-02-01 Kenichi Handa <handa@m17n.org>
20547
20548 * casefiddle.c (casify_region): Fix multibyte case.
20549
20550 * character.c (c_string_width): Add return type `int'.
20551 (char_string_with_unification): Delete arg ADVANCED.
20552
20553 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20554 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20555 (CHAR_STRING_ADVANCE): Make it do-while statement.
20556
20557 * chartab.c (sub_char_table_set_range): Optimize for the case
20558 DEPTH == 3. Add workaround code for a GCC optimization bug.
20559
20560 * charset.c (parse_charset_map): Remove an unused variable.
20561
20562 * coding.c: Delete unused variables.
20563
20564 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20565 earlier. If inserted is zero and the coding system doesn't
20566 require flushing, don't call decode_coding_gap.
20567
20568 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20569
20570 2008-02-01 Kenichi Handa <handa@m17n.org>
20571
20572 The following changes are for using Unicode as an internal
20573 character model, and use UTF-8 format for buffer/string
20574 representation.
20575
20576 * .gdbinit (xchartable): Adjust for the change of char table structure.
20577 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20578
20579 * Makefile.in (obj): Add character.o and chartab.o.
20580 (lisp, shortlisp): Remove utf-8.elc.
20581 (*.o): For many files, change dependency on charset.h to
20582 character.h, and add dependency on character.h.
20583 (character.o, chartab.o): New targets.
20584
20585 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20586 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20587 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20588 of "charset.h".
20589
20590 * dired.c, filelock.c: Include "character.h".
20591
20592 * alloc.c: Include "character.h" instead of "charset.h".
20593 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20594 (syms_of_alloc): Remove defsubr for Smake_char_table.
20595
20596 * buffer.c: Include "character.h" instead of "charset.h", don't
20597 include "coding.h".
20598 (Fset_buffer_multibyte): Adjust for UTF-8.
20599
20600 * buffer.h: EXFUN Fbuffer_live_p.
20601
20602 * callproc.c: Include "character.h" instead of "charset.h".
20603 (Fcall_process): Big change for the new code-conversion APIs.
20604
20605 * casetab.c: Include "character.h" instead of "charset.h".
20606 (set_canon, set_identity, shuffle): Adjust for the new
20607 map_char_table spec.
20608 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20609 accessing the char table structure.
20610
20611 * chartab.c: New file that implements char table.
20612
20613 * category.c: Include "character.h".
20614 (copy_category_entry): New function.
20615 (copy_category_table): Call map_char_table and copy_category_entry.
20616 (Fmake_category_table): Initialize all top-level slots.
20617 (char_category_set): New function.
20618 (modify_lower_category_set): Delete.
20619 (Fmodify_category_entry): Call char_table_ref_and_range.
20620
20621 * category.h (CATEGORY_SET): Just call char_category_set.
20622
20623 * ccl.c: Include "character.h".
20624 (Qccl, Qcclp): New variables.
20625 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20626 it's less than 256.
20627 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20628 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20629 and DST type.
20630 (ccl_driver): Change types of argument, adjust code accordingly.
20631 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20632 ccl_driver.
20633 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20634
20635 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20636 New members src_multibyte, dst_multibyte, consumed, and produced.
20637 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20638 (CODING_SPEC_CCL_PROGRAM): New macro.
20639 (ccl_driver): Update prototype.
20640 (Qccl, Qcclp, Fccl_program_p): Extern them.
20641 (CHECK_CCL_PROGRAM): New macro.
20642
20643 * character.c, character.h, chartab.c: New files.
20644
20645 * charset.c: Mostly re-written. Move character and multibyte sequence
20646 handling codes to character.c.
20647
20648 * charset.h: Mostly re-written. Move character and multibyte sequence
20649 handling codes to character.h.
20650
20651 * coding.c, coding.h: Mostly re-written.
20652
20653 * composite.c: Include "character.h" instead of "charset.h".
20654 (CHAR_WIDTH): Move to character.h.
20655 (HASH_KEY, HASH_VALUE): Delete.
20656
20657 * composite.h (enum composition_method): Change order of enumeration
20658 symbols.
20659
20660 * data.c: Include "character.h" instead of "charset.h".
20661 (Faref): Call CHAR_TABLE_REF for a char table.
20662 (Faset): Call CHAR_TABLE_SET for a char table.
20663
20664 * dispextern.h (free_realized_face, check_face_attribytes)
20665 (generate_ascii_font): Extern them.
20666 (free_realized_multibyte_face): Delete extern.
20667
20668 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20669 table structure.
20670
20671 * editfns.c: Include "character.h" instead of "charset.h".
20672 (Fchar_to_string): Always call CHAR_STRING.
20673
20674 * emacs.c (main): Call init_charset_once, init_charset,
20675 syms_of_chartab, and syms_of_character.
20676
20677 * fileio.c: Include "character.h" instead of "charset.h".
20678 (Finsert_file_contents): Big change for the new code-conversion API.
20679 (choose_write_coding_system, Fwrite_region): Likewise.
20680 (build_annotations_2): Delete.
20681 (e_write): Big change for the new code-conversion API.
20682
20683 * fns.c: Include "character.h" instead of "charset.h".
20684 (copy_sub_char_table): Move to chartab.c.
20685 (Fcopy_sequence): Call copy_char_table for a char table.
20686 (concat): Delete codes calling count_multibyte.
20687 (string_char_to_byte, string_byte_to_char): Adjust for the new
20688 multibyte form.
20689 (internal_equal): Adjust for the change of char table structure.
20690 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20691 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20692 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20693 (char_table_translate, optimize_sub_char_table)
20694 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20695 chartab.c.
20696 (char_table_ref_and_index): Delete.
20697 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20698 (Fmd5): Call preferred_coding_system instead of accessing
20699 Vcoding_category_list. Adjust for the new code-conversion API.
20700 (syms_of_fns): Move defsubr for char table related functions to
20701 chartab.c.
20702
20703 * fontset.c: Mostly re-written.
20704
20705 * fontset.h (struct font_info): Change type of the member encoding_type.
20706 (enum FONT_SPEC_INDEX): New enum.
20707 (fontset_font_pattern, fs_load_font): Update prototype.
20708 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20709
20710 * indent.c: Include "character.h" instead of "charset.h".
20711 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20712
20713 * insdel.c: Include "character.h" instead of "charset.h".
20714 (copy_text): Don't refer to Vnonascii_translation_table.
20715 (insert_from_gap): New function.
20716
20717 * keyboard.c: Include "character.h" instead of "charset.h".
20718 (command_loop_1): Never call direct_output_forward_char before
20719 a non-ASCII character.
20720 (read_char): If Vkeyboard_translate_table is a char table, always
20721 translate a character.
20722
20723 * keymap.c: Include "character.h".
20724 (store_in_keymap): Handle the case that IDX is a cons.
20725 (Fdefine_key): Handle the case that KEY is a cons and the car part
20726 is also a cons (range).
20727 (push_key_description): Adjust for the new character code.
20728 (describe_vector): Call describe_char_table for a char table.
20729 (describe_char_table): New function.
20730
20731 * keymap.h (describe_char_table): Extern it.
20732
20733 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20734 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20735 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20736 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20737 Delete.
20738 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20739 structure.
20740 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20741 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20742 (CHARTAB_SIZE_BITS_3): New macros.
20743 (chartab_size): Extern it.
20744 (struct Lisp_Char_Table): Re-design.
20745 (struct Lisp_Sub_Char_Table): New structure.
20746 (HASH_KEY, HASH_VALUE): Move from fns.c.
20747 (CHARACTERBITS): Define as 22.
20748 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20749 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20750 (GC_SUB_CHAR_TABLE_P): New macro.
20751 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20752 (code_convert_string_norecord): Deleted extern.
20753 (init_character_once, syms_of_character, init_charset)
20754 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20755
20756 * lread.c: Include "character.h".
20757 (read_multibyte): New arg NBYTES.
20758 (read_escape): Change the meaning of returned *BYTEREP.
20759 (to_multibyte): Delete.
20760 (read1): Adjust the handling of char table and string.
20761
20762 * print.c: Include "character.h" instead of "charset.h".
20763 (print_string): Convert 8-bit raw bytes to octal form by
20764 string_escape_byte8.
20765 (print_object): Adjust for the new multibyte form. Print 8-bit
20766 raw bytes always in octal form. Handle sub char table correctly.
20767
20768 * process.c: Include "character.h" instead of "charset.h".
20769 (read_process_output, send_process): Adjust for the new
20770 code-conversion API.
20771
20772 * puresize.h (BASE_PURESIZE): Increase.
20773
20774 * regex.c: Include "character.h" instead of "charset.h".
20775 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20776 (regex_compile): Accept a range whose starting and ending
20777 character have different leading bytes.
20778 (analyse_first): Adjust for the above change.
20779
20780 * search.c: Include "character.h" instead of "charset.h".
20781 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20782 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20783
20784 * syntax.c: Include "character.h" instead of "charset.h".
20785 (syntax_parent_lookup): Delete.
20786 (Fmodify_syntax_entry): Accept a cons as CHAR.
20787 (skip_chars): Adjust for the new multibyte form.
20788 (init_syntax_once): Call char_table_set_range instead of directly
20789 accessing the structure of a char table.
20790
20791 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20792 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20793 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20794 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20795
20796 * term.c: Include "buffer.h" and "character.h".
20797 (encode_terminal_code, write_glyphs): Adjust for the new
20798 code-conversion API.
20799 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20800
20801 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20802
20803 * xdisp.c: Include "character.h".
20804 (get_next_display_element): Adjust for the new multibyte form.
20805 (disp_char_vector): Adjust for the new char table structure.
20806 (decode_mode_spec_coding): Adjust for the new structure of
20807 coding system.
20808 (decode_mode_spec): Adjust for the new code-conversion API.
20809
20810 * xfaces.c: Include "character.h" instead of "charset.h".
20811 (load_face_font): Adjust for the change of choose_face_font and
20812 FS_LOAD_FONT.
20813 (generate_ascii_font): New function.
20814 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20815 (set_font_frame_param): Adjust for the change of choose_face_font.
20816 (free_realized_face): Make it public.
20817 (free_realized_faces_for_fontset): Rename from
20818 free_realized_multibyte_face. Free also faces realized for ASCII.
20819 (choose_face_font): Change arguments. Adjust for the change of
20820 fontset_font_pattern and FS_LOAD_FONT.
20821
20822 * xfns.c: Include "character.h".
20823 (x_encode_text): Adjust for the new code-conversion API.
20824
20825 * xselect.c: Don't include "charset.h".
20826 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20827
20828 * xterm.c: Include "character.h".
20829 (x_encode_char): New argument CHARSET. Change caller.
20830 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20831 Call ENCODE_CHAR instead of SPLIT_CHAR.
20832 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20833 CHAR_WIDTH instead of CHARSET_WIDTH.
20834 (XTread_socket): Adjust for the new code-conversion API.
20835 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20836 (x_load_font): Adjust for the change of struct font.
20837
20838 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20839
20840 * xfaces.c (face_at_buffer_position): Remove unused vars.
20841
20842 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20843
20844 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20845 Fix overflow checking.
20846
20847 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20848
20849 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20850 Cancel previous change.
20851
20852 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20853
20854 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20855 ccl->eight_bit_control. Fix check for buffer overflow.
20856 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20857 (ccl_driver): Initialize extra_bytes to 0.
20858
20859 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20860
20861 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20862 return it ORed with ctrl_modifier.
20863
20864 2008-01-29 Miles Bader <miles@gnu.org>
20865
20866 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20867
20868 2008-01-28 Jason Rumney <jasonr@gnu.org>
20869
20870 * w32.c (stat): Don't double check for networked drive.
20871
20872 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20873
20874 * window.c (run_window_configuration_change_hook): New function.
20875 Code extracted from set_window_buffer. Set the selected frame.
20876 (set_window_buffer): Use it.
20877 * window.h (run_window_configuration_change_hook): Declare.
20878 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20879
20880 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20881
20882 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20883
20884 * Makefile.in: Remove references to unused macros.
20885
20886 2008-01-26 Eli Zaretskii <eliz@gnu.org>
20887
20888 * w32.c (g_b_init_get_sid_sub_authority)
20889 (g_b_init_get_sid_sub_authority_count): New static variables.
20890 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20891 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20892 (init_user_info): Use them to retrieve uid and gid.
20893 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20894 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20895 st_uid and st_gid of the file.
20896
20897 2008-01-26 Jason Rumney <jasonr@gnu.org>
20898
20899 * w32.c (logon_network_drive): New function.
20900 (stat): Use it.
20901
20902 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
20903
20904 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20905 invisible text covered with an ellipsis.
20906
20907 2008-01-25 Richard Stallman <rms@gnu.org>
20908
20909 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20910 jump back to beginning. Move some other initializations after that.
20911 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20912 New variables.
20913 (syms_of_xdisp): Init them.
20914
20915 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20916
20917 * buffer.c (reset_buffer_local_variables):
20918 Implement `permanent-local-hook'.
20919 (Qpermanent_local_hook): New variable.
20920 (syms_of_buffer): Init and staticpro it.
20921
20922 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
20923
20924 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20925
20926 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20927
20928 * fns.c (Fclrhash): Return TABLE.
20929
20930 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20931
20932 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20933 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20934 is set even without positional changes.
20935 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20936
20937 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20938
20939 2008-01-23 Jason Rumney <jasonr@gnu.org>
20940
20941 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20942
20943 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20944 the unicode range available in MULE by locale-coding-system.
20945 Improve dbcs lead byte detection. Set event timestamp and modifiers
20946 earlier.
20947
20948 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20949
20950 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20951 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20952 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20953 when used on child processes.
20954
20955 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
20956
20957 * dbusbind.c (Fdbus_method_return_internal): Rename from
20958 Fdbus_method_return.
20959 (Fdbus_unregister_object): Move to dbus.el.
20960 (Fdbus_call_method, Fdbus_method_return_internal)
20961 (Fdbus_send_signal): Improve debug messages.
20962
20963 2008-01-20 Martin Rudalics <rudalics@gmx.at>
20964
20965 * undo.c (undo_inhibit_record_point): New variable.
20966 (syms_of_undo): Initialize it.
20967 (record_point): Don't record point when undo_inhibit_record_point
20968 is set.
20969
20970 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20971
20972 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20973
20974 * xdisp.c (Qauto_hscroll_mode): New var.
20975 (syms_of_xdisp): Initialize it.
20976 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20977 window's buffer.
20978 (hscroll_windows): Don't check automatic_hscrolling_p here.
20979
20980 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20981 vscroll if we're setting window-buffer to the value it already has.
20982
20983 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20984
20985 * m/intel386.h: Remove references to XENIX.
20986
20987 2008-01-17 Andreas Schwab <schwab@suse.de>
20988
20989 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20990 instead of HAVE_X86_64_LIB64_DIR.
20991 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20992
20993 2008-01-17 Glenn Morris <rgm@gnu.org>
20994
20995 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20996 to HAVE_X86_64_LIB64_DIR.
20997
20998 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20999
21000 * s/irix3-3.h:
21001 * s/irix4-0.h:
21002 * s/386-ix.h:
21003 * s/domain.h:
21004 * s/hpux9-x11r4.h:
21005 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21006
21007 * sysdep.c: Remove code containing references to symbols defined
21008 by unsupported systems.
21009
21010 2008-01-16 Glenn Morris <rgm@gnu.org>
21011
21012 * coding.c (select-safe-coding-system-function): Doc fix.
21013
21014 2008-01-15 Glenn Morris <rgm@gnu.org>
21015
21016 * config.in: Revert 2008-01-13 change: this is a generated file.
21017
21018 2008-01-13 Tom Tromey <tromey@redhat.com>
21019
21020 * lisp.h: Fix typo.
21021
21022 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21023
21024 * m/sequent-ptx.h:
21025 * m/sequent.h:
21026 * s/ptx.h:
21027 * s/ptx4-2.h:
21028 * s/ptx4.h: Remove files for systems no longer supported.
21029
21030 * callproc.c (Fcall_process): Fix previous change.
21031
21032 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21033
21034 * unexsunos4.c: Remove file, system not supported anymore.
21035
21036 * m/mips.h:
21037 * m/intel386.h:
21038 * callproc.c:
21039 * config.in:
21040 * ecrt0.c:
21041 * emacs.c:
21042 * fileio.c:
21043 * frame.c:
21044 * getpagesize.h:
21045 * keyboard.c:
21046 * lread.c:
21047 * process.c:
21048 * puresize.h:
21049 * sysdep.c:
21050 * systty.h:
21051 * syswait.h:
21052 * unexec.c:
21053 * xdisp.c:
21054 * alloc.c: Remove code containing references to symbols defined by
21055 unsupported systems.
21056
21057 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21058
21059 * coding.c (detect_coding_mask): Fix previous change.
21060
21061 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21062
21063 * coding.c (detect_coding_iso2022): New arg
21064 latin_extra_code_state. Allow Latin extra codes only
21065 when *latin_extra_code_state is nonzero.
21066 (detect_coding_mask): If there is a NULL byte, detect the encoding
21067 as UTF-16 or binary. If Latin extra codes exist, detect the
21068 encoding as ISO-2022 only when there's no other proper encoding is
21069 found.
21070
21071 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21072
21073 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21074 #ifdef MAC_OS.
21075
21076 2008-01-08 Richard Stallman <rms@gnu.org>
21077
21078 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21079
21080 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
21081
21082 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21083 menu bar in parentheses.
21084
21085 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21086
21087 * m/7300.h:
21088 * m/acorn.h:
21089 * m/alliant-2800.h:
21090 * m/alliant.h:
21091 * m/alliant1.h:
21092 * m/alliant4.h:
21093 * m/altos.h:
21094 * m/amdahl.h:
21095 * m/apollo.h:
21096 * m/att3b.h:
21097 * m/aviion-intel.h:
21098 * m/aviion.h:
21099 * m/celerity.h:
21100 * m/clipper.h:
21101 * m/cnvrgnt.h:
21102 * m/convex.h:
21103 * m/cydra5.h:
21104 * m/delta88k.h:
21105 * m/dpx2.h:
21106 * m/dual.h:
21107 * m/elxsi.h:
21108 * m/f301.h:
21109 * m/gould-np1.h:
21110 * m/gould.h:
21111 * m/i860.h:
21112 * m/ibmps2-aix.h:
21113 * m/ibmrt-aix.h:
21114 * m/ibmrt.h:
21115 * m/irist.h:
21116 * m/is386.h:
21117 * m/isi-ov.h:
21118 * m/mega68.h:
21119 * m/mg1.h:
21120 * m/news-r6.h:
21121 * m/news-risc.h:
21122 * m/news.h:
21123 * m/nh3000.h:
21124 * m/nh4000.h:
21125 * m/ns16000.h:
21126 * m/ns32000.h:
21127 * m/nu.h:
21128 * m/orion.h:
21129 * m/orion105.h:
21130 * m/paragon.h:
21131 * m/pfa50.h:
21132 * m/plexus.h:
21133 * m/pyramid.h:
21134 * m/pyrmips.h:
21135 * m/sh3el.h:
21136 * m/sps7.h:
21137 * m/sr2k.h:
21138 * m/stride.h:
21139 * m/sun1.h:
21140 * m/sun2.h:
21141 * m/sun3-68881.h:
21142 * m/sun3-fpa.h:
21143 * m/sun3-soft.h:
21144 * m/sun3.h:
21145 * m/sun386.h:
21146 * m/symmetry.h:
21147 * m/tad68k.h:
21148 * m/tahoe.h:
21149 * m/targon31.h:
21150 * m/tek4300.h:
21151 * m/tekxd88.h:
21152 * m/tower32.h:
21153 * m/tower32v3.h:
21154 * m/ustation.h:
21155 * m/wicat.h:
21156 * m/xps100.h:
21157 * s/cxux.h:
21158 * s/cxux7.h:
21159 * s/dgux.h:
21160 * s/dgux4.h:
21161 * s/dgux5-4-3.h:
21162 * s/dgux5-4r2.h:
21163 * s/esix.h:
21164 * s/esix5r4.h:
21165 * s/hiuxmpp.h:
21166 * s/hiuxwe2.h:
21167 * s/iris3-5.h:
21168 * s/iris3-6.h:
21169 * s/isc2-2.h:
21170 * s/isc3-0.h:
21171 * s/isc4-0.h:
21172 * s/isc4-1.h:
21173 * s/newsos5.h:
21174 * s/newsos6.h:
21175 * s/osf1.h:
21176 * s/osf5-0.h:
21177 * s/riscix1-1.h:
21178 * s/riscix12.h:
21179 * s/sco4.h:
21180 * s/sco5.h:
21181 * s/sunos4-0.h:
21182 * s/sunos4-1.h:
21183 * s/sunos413.h:
21184 * s/sunos4shr.h:
21185 * s/umax.h:
21186 * s/unipl5-2.h:
21187 * s/xenix.h:
21188 * cxux-crt0.s:
21189 * unexapollo.c:
21190 * unexconvex.c:
21191 * unexenix.c:
21192 * unexsni.c: Remove files for systems no longer supported.
21193
21194 * m/intel386.h: Remove references to unsupported systems.
21195
21196 * w32.c (get_emacs_configuration): Remove reference to i860.
21197
21198 * sysdep.c: Remove dead code.
21199
21200 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21201
21202 * s/rtu.h:
21203 * m/masscomp.h: Remove files. Platform is obsolete.
21204
21205 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
21206
21207 * dbusbind.c (Fdbus_method_return): New function.
21208 (xd_read_message): Add the serial number to the event.
21209 (Fdbus_register_method): Activate the function.
21210
21211 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21212
21213 * keyboard.c (read_key_sequence): Fix typo.
21214
21215 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
21216
21217 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21218 (xd_signature, xd_append_arg): Handle element type detection for
21219 empty arrays.
21220 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21221 SDATA () calls; this must be solved more general.
21222 (Fdbus_register_signal): Use SBYTES instead of strlen.
21223
21224 2008-01-03 Magnus Henoch <magnus@zemdatav>
21225
21226 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21227 unsigned int for byte values (necessary for big-endian platform).
21228 (Fdbus_call_method): Handle the case of no returned arguments.
21229
21230 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21231
21232 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21233
21234 2007-12-31 Magnus Henoch <mange@freemail.hu>
21235
21236 * dbusbind.c (xd_signature): Signature of variant is just "v".
21237
21238 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
21239
21240 * dbusbind.c: Fix several errors and compiler warnings.
21241 Reported by Tom Tromey <tromey@redhat.com>.
21242 (XD_ERROR, XD_DEBUG_MESSAGE)
21243 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21244 (xd_append_arg): Part for basic D-Bus types rewritten.
21245 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21246 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21247 appropriate.
21248 (xd_read_message): Return Qnil. Don't signal an error; it is not
21249 useful during event reading.
21250 (Fdbus_register_signal): Signal an error if the check for
21251 FUNCTIONP fails.
21252 (Fdbus_register_method): New function. The implementation is not
21253 complete, the call of the function signals an error therefore.
21254 (Fdbus_unregister_object): New function, renamed from
21255 Fdbus_unregister_signal. The initial check signals an error, if
21256 the object is not well formed.
21257
21258 2007-12-30 Richard Stallman <rms@gnu.org>
21259
21260 * textprop.c (get_char_property_and_overlay):
21261 Signal error if POSITION is out of range in a buffer.
21262
21263 2007-12-29 Martin Rudalics <rudalics@gmx.at>
21264
21265 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21266 because the original parameters are in pure storage now.
21267
21268 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21269
21270 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21271
21272 2007-12-22 Eli Zaretskii <eliz@gnu.org>
21273
21274 * callint.c (syms_of_callint) <command-history>: Add reference to
21275 history-length in the doc string.
21276
21277 2007-12-17 Jason Rumney <jasonr@gnu.org>
21278
21279 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21280 before passing as wParam.
21281
21282 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
21283
21284 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21285 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21286 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21287 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21288 as number.
21289 (Fdbus_call_method): Fix docstring.
21290
21291 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
21292
21293 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21294 New macros.
21295 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21296 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21297 Simplify.
21298 (xd_signature): New function.
21299 (xd_append_arg): Compute also signatures. Major rewrite.
21300 (xd_retrieve_arg): Make debug messages friendly.
21301 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21302 Check for signatures of arguments.
21303
21304 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
21305
21306 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21307 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21308 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21309 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21310 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21311 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21312 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21313 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21314 (xd_retrieve_value): Remove. Functionality included in ...
21315 (xd_append_arg): New function.
21316 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21317
21318 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
21319
21320 * dbusbind.c (top): Include <stdio.h>.
21321 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21322 dbus_message_new_method_call and dbus_message_new_signal.
21323 (Fdbus_register_signal): Rename unique_name to uname.
21324 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21325 non-existing unique name. Fix typos in matching rule. Return an
21326 object which is useful in Fdbus_unregister_signal.
21327 (Fdbus_unregister_signal): Reimplementation, in order to remove
21328 only the corresponding entry.
21329 (Vdbus_registered_functions_table): Change the order of entries.
21330 Apply these changes in xd_read_message and Fdbus_register_signal.
21331
21332 2007-12-16 Andreas Schwab <schwab@suse.de>
21333
21334 * fileio.c (Finsert_file_contents): Fix overflow check to not
21335 depend on undefined integer overflow.
21336
21337 2007-12-14 Jason Rumney <jasonr@gnu.org>
21338
21339 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21340 for characters above 127.
21341
21342 2007-12-13 Jason Rumney <jasonr@gnu.org>
21343
21344 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21345 before dereferencing array.
21346 (lookup_vk_code): Remove zero comparison.
21347
21348 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
21349
21350 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21351 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21352 Use `unsigned int' instead of `uint'.
21353 (xd_read_message, Fdbus_register_signal): Split expressions into
21354 multiple lines before operators "&&" and "||", according to the
21355 GNU Coding Standards.
21356
21357 2007-12-14 Eli Zaretskii <eliz@gnu.org>
21358
21359 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21360
21361 2007-12-12 Juri Linkov <juri@jurta.org>
21362
21363 * buffer.c (Frename_buffer): In interactive spec replace
21364 `read-buffer' with `read-string' that uses `buffer-name-history'
21365 as history, and the current buffer's name as default.
21366
21367 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21368
21369 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21370 manipulating the backtrace manually.
21371 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21372 (struct backtrace, backtrace_list): Remove.
21373 (command_loop_1): Remove dead var `no_direct'.
21374
21375 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21376 preserve non-built-in buffer-local variables.
21377 (Fkill_all_local_variables): Don't re-create&re-set permanent
21378 buffer-local variables.
21379
21380 2007-12-09 Juri Linkov <juri@jurta.org>
21381
21382 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21383 Lisp code that uses `read-buffer' with current buffer as default.
21384
21385 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
21386
21387 * dbusbind.c (xd_read_message): Generate an event for every
21388 registered handler. There might be several handlers registered
21389 for the same signal.
21390 (Fdbus_register_signal): Don't overwrite a registration for the
21391 same signal. Add a new registration if handlers are different.
21392 (Vdbus_registered_functions_table): Rework doc string.
21393
21394 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
21395
21396 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21397 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21398 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21399 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21400 Unify argument lists.
21401 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21402 arguments and hash table keys. Use unique name for service.
21403 (Fdbus_unregister_signal): Remove checks.
21404 (Vdbus_registered_functions_table): Fix doc string.
21405
21406 2007-12-05 Magnus Henoch <mange@freemail.hu>
21407
21408 * process.c (make_process): Initialize pty_flag to 0.
21409
21410 2007-12-05 Jason Rumney <jasonr@gnu.org>
21411
21412 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21413 specified XBMs.
21414
21415 2007-12-05 Richard Stallman <rms@gnu.org>
21416
21417 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21418
21419 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21420
21421 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21422 New variable.
21423 (mac_try_close_socket) [MAC_OSX]: New function.
21424 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21425 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21426
21427 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21428 Use mac_try_close_socket.
21429
21430 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21431
21432 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21433 reloc_base.
21434 (copy_dysymtab): Compute relocation base here.
21435 (rebase_reloc_address) [__ppc64__]: New function.
21436 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21437 changed.
21438
21439 2007-12-05 Jason Rumney <jasonr@gnu.org>
21440
21441 * w32proc.c (sys_spawnve): Quote args with wildcards.
21442
21443 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21444
21445 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21446 __objc_* sections.
21447 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21448
21449 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
21450
21451 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21452 Move check for Vdbus_registered_functions_table to
21453 xd_read_queued_messages.
21454 (xd_read_queued_messages): Protect xd_read_message calls by
21455 internal_condition_case_1.
21456
21457 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
21458
21459 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21460 Qdbus_system_bus and Qdbus_session_bus, respectively.
21461 (Vdbus_intern_symbols): Remove.
21462 (Vdbus_registered_functions_table): New hash table.
21463 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21464 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21465 Rewrite in order to manage registered functions by hash table
21466 Vdbus_registered_functions_table.
21467
21468 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21469
21470 * xterm.c: Update URL to Window Manager Specification in comment.
21471
21472 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
21473
21474 * config.in (HAVE_DBUS): Add.
21475
21476 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21477 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21478 (obj): Add $(DBUS_OBJ).
21479 (LIBES): Add $(DBUS_LIBS).
21480 (dbusbind.o): New target.
21481
21482 * dbusbind.c: New file.
21483
21484 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21485
21486 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21487 (Qdbus_event): New Lisp symbol.
21488 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21489 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
21490 (keys_of_keyboard): Define dbus-event.
21491
21492 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21493
21494 2007-12-01 Richard Stallman <rms@gnu.org>
21495
21496 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21497
21498 2007-11-30 Jason Rumney <jasonr@gnu.org>
21499
21500 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21501 (w32con_reset_terminal_modes): Clear screen buffer.
21502 (w32_face_attributes): Don't use color indexes that are out of range.
21503 Only reverse the default colors.
21504
21505 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21506 WINDOWSNT.
21507
21508 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21509
21510 2007-11-29 Jason Rumney <jasonr@gnu.org>
21511
21512 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21513 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21514 if the terminal colors are initialized.
21515 (unspecified_fg, unspecified_bg): Remove unused declarations.
21516
21517 2007-11-29 Andreas Schwab <schwab@suse.de>
21518
21519 * keyboard.c (apply_modifiers): Fix typo.
21520
21521 2007-11-29 Richard Stallman <rms@gnu.org>
21522
21523 * keymap.c (Fcurrent_local_map): Doc fix.
21524
21525 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21526
21527 * s/gnu-kfreebsd.h: New file.
21528
21529 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21530
21531 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21532 Don't cast redundantly.
21533
21534 * keyboard.c (KEY_TO_CHAR): New macro.
21535 (parse_modifiers, apply_modifiers): Accept integer arguments.
21536 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21537 for chars and symbol keys.
21538 After doing such remapping, apply function-key-map again.
21539
21540 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21541
21542 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21543 compiled anymore.
21544
21545 2007-11-26 Andreas Schwab <schwab@suse.de>
21546
21547 * process.c (list_processes_1): Fix indentation level of the
21548 command column.
21549
21550 2007-11-23 Andreas Schwab <schwab@suse.de>
21551
21552 * editfns.c (Fformat): Handle %c specially since it requires the
21553 argument to be of type int.
21554
21555 2007-11-23 Markus Triska <markus.triska@gmx.at>
21556
21557 * emacs.c (main): Call init_editfns before init_process, since
21558 init_process sets Vprocess_connection_type depending on OS release.
21559
21560 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21561
21562 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21563 (find_symbol_value): Use do_symval_forwarding.
21564
21565 * data.c (set_internal): Set the value in the `cons-cell' (for
21566 Buffer_Local_values) not only for frame-local variables.
21567
21568 2007-11-22 Andreas Schwab <schwab@suse.de>
21569
21570 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21571 values to sprintf.
21572 * keymap.c (Fsingle_key_description): Likewise.
21573 * print.c (print_object): Likewise.
21574
21575 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21576
21577 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21578 file for image is nil.
21579
21580 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21581
21582 * term.c: Include stdarg.h.
21583 (fatal): Implement using varargs.
21584 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21585
21586 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21587
21588 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21589 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21590 Update call to buffer_slot_type_mismatch.
21591 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21592 (buffer_slot_type_mismatch): Update.
21593 * buffer.c (buffer_local_types): Remove.
21594 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21595 (defvar_per_buffer): Set the type in the buffer_objfwd.
21596
21597 2007-11-21 Jason Rumney <jasonr@gnu.org>
21598
21599 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21600 CreateFileMapping returns NULL on failure.
21601
21602 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21603
21604 * search.c (Fset_match_data): Remove the `evaporate' feature.
21605 (unwind_set_match_data): Don't use the `evaporate' feature.
21606
21607 2007-11-21 Jason Rumney <jasonr@gnu.org>
21608
21609 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21610
21611 * w32console.c (w32con_write_glyphs): Remove unused variables.
21612
21613 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21614
21615 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21616
21617 * s/darwin.h (MULTI_KBOARD): Remove.
21618
21619 * macfns.c (x_create_tip_frame, Fx_create_frame)
21620 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21621
21622 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21623
21624 * buffer.c (Fbuffer_local_value): Remove redundant test.
21625 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21626 than in `current-buffer' to match the comment.
21627 Do the swap using swap_in_global_binding.
21628
21629 * data.c (store_symval_forwarding, set_internal):
21630 * eval.c (specbind): Remove dead code.
21631
21632 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21633 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21634 Since we do not want to see internal Lisp_*fwd objects here.
21635
21636 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21637
21638 * sysdep.c (init_system_name): Use getaddrinfo if available.
21639
21640 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21641 (x_scroll_bar_note_movement): start, end, with, height in struct
21642 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21643
21644 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21645
21646 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21647
21648 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21649
21650 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21651 This undoes Richard's change of 14-Oct-2002.
21652
21653 * alloc.c (allocate_other_vector):
21654 * lisp.h (allocate_other_vector): Remove.
21655
21656 * window.c (struct save_window_data): Move non-lisp data to the end
21657 and make it `int' rather than Lisp_Object.
21658 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21659 Done wrap/unwrap integer values.
21660 (Fset_window_configuration, compare_window_configurations):
21661 Update use of fields to their new types.
21662
21663 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21664 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21665 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21666 (SET_SCROLL_BAR_X_WINDOW): Remove.
21667 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21668 Access the new x_window field directly.
21669 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21670 Don't wrap/unwrap integers into Lisp_Objects.
21671 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21672 (x_scroll_bar_report_motion):
21673 Don't wrap/unwrap integers into Lisp_Objects.
21674 (x_term_init): Use SDATA.
21675 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21676 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21677 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21678 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21679 * xfns.c (x_set_background_color):
21680 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21681 Access the new x_window field directly.
21682
21683 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21684 (allocate_pseudovector): Make non-static.
21685
21686 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21687 (allocate_pseudovector): Declare.
21688 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21689
21690 2007-11-15 Andreas Schwab <schwab@suse.de>
21691
21692 * editfns.c (Fformat): Correctly format EMACS_INT values.
21693 Also take precision into account when formatting an integer.
21694
21695 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21696
21697 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21698
21699 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21700 (syms_of_keyboard): Defsubr it.
21701
21702 * data.c (swap_in_global_binding): Fix longstanding bug where
21703 store_symval_forwarding was not called with the right second argument,
21704 thus causing objfwd-ing from being dropped.
21705
21706 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21707
21708 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21709 (Fx_display_pixel_height, Fx_display_planes)
21710 (Fx_display_color_cells, Fx_server_max_request_size)
21711 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21712 (Fx_display_visual_class, Fx_display_save_under):
21713 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21714 (Fx_display_pixel_height, Fx_display_planes)
21715 (Fx_display_color_cells, Fx_server_max_request_size)
21716 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21717 (Fx_display_mm_height, Fx_display_mm_width)
21718 (Fx_display_backing_store, Fx_display_visual_class)
21719 (Fw32_select_font, Fx_display_save_under):
21720 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21721 (Fx_display_pixel_height, Fx_display_planes)
21722 (Fx_display_color_cells, Fx_server_max_request_size)
21723 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21724 (Fx_display_save_under): Fix typos in docstrings.
21725
21726 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21727
21728 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21729 corresponding to deleted entries; they are an implementation detail.
21730 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21731 Remove variables.
21732 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21733 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21734 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21735 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21736 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21737 (Fw32_define_rgb_color, Fw32_load_color_file)
21738 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21739 Fix typos in docstrings.
21740 (Fx_server_version): Reflow docstring.
21741 (Fw32_shell_execute): Doc fixes.
21742
21743 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
21744
21745 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21746 if w32_parse_hot_key returned nil.
21747
21748 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21749
21750 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21751
21752 2007-11-09 Jason Rumney <jasonr@gnu.org>
21753
21754 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21755
21756 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21757
21758 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21759 Remove W32_SCROLL_BAR_CLICK_EVENT.
21760
21761 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21762 Add MULTIMEDIA_KEY_EVENT.
21763
21764 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21765 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21766 (make_lispy_event) [WINDOWSNT]: Use it to translate
21767 MULTIMEDIA_KEY_EVENT.
21768
21769 * w32term.h (WM_APPCOMMAND): Define if not already.
21770 (GET_APPCOMMAND_LPARAM): Likewise.
21771
21772 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21773 WM_APPCOMMAND.
21774
21775 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21776 (syms_of_w32fns): Export and initialize it.
21777 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21778
21779 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
21780
21781 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21782 twice.
21783
21784 * xdisp.c (handle_face_prop): Fix last change.
21785
21786 2007-11-09 Richard Stallman <rms@gnu.org>
21787
21788 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21789 not just for after-strings and before-strings.
21790 Call face_for_overlay_string and pass the overlay to it.
21791 (handle_display_prop): Determine whether property came from an overlay.
21792 Pass OVERLAY arg to handle_single_display_spec.
21793 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21794 (load_overlay_strings): Fill in it->string_overlays.
21795 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21796
21797 * xfaces.c (face_for_overlay_string): Function renamed from
21798 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21799
21800 * dispextern.h (struct it): New elt string_overlays.
21801 New elt from_overlay, also in stack.
21802 Rearrange a few elements.
21803 (face_for_overlay_string): Decl renamed from
21804 face_at_buffer_position_no_overlays, and add argument.
21805
21806 2007-11-09 Richard Stallman <rms@gnu.org>
21807
21808 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21809 to get the base face for an overlay string.
21810
21811 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21812
21813 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21814
21815 * xdisp.c (handle_stop): Move some code out of loop.
21816
21817 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21818
21819 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21820 Fix conversion from Lisp object to ATSUFontID.
21821
21822 2007-11-09 Jason Rumney <jasonr@gnu.org>
21823
21824 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21825
21826 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21827
21828 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21829 Don't assume regions are aligned to page boundary.
21830 (print_load_command_name): Add LC_UUID if defined.
21831
21832 2007-11-09 Richard Stallman <rms@gnu.org>
21833
21834 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21835
21836 2007-11-07 Jason Rumney <jasonr@gnu.org>
21837
21838 * s/windows95.h: Remove.
21839
21840 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21841
21842 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21843 abort with a message on unhandled store_type values.
21844
21845 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21846
21847 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21848 Remove HAVE_X11R5 and HAVE_X11R4.
21849
21850 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21851
21852 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21853
21854 2007-11-01 Johan Bockgård <bojohan@gnu.org>
21855
21856 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21857 Don't set s->stippled_p here, since it has already been set by
21858 x_set_glyph_string_gc from x_draw_glyph_string.
21859
21860 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21861
21862 * sunfns.c: Remove file.
21863
21864 * m/sun386.h:
21865 * m/sun2.h:
21866 * m/sparc.h: Remove Sun windows code.
21867
21868 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21869
21870 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21871 (init_keyboard): Set current_kboard's window-system to nil.
21872 (tty_read_avail_input): Typo.
21873 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21874
21875 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21876
21877 * s/usg5-4.h:
21878 * s/usg5-3.h:
21879 * s/ptx.h:
21880 * m/is386.h:
21881 * m/ibmps2-aix.h:
21882 * Makefile.in: Remove all mentions of X10.
21883
21884 * dispnew.c (syms_of_display): Don't mention version 10.
21885
21886 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
21887
21888 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21889 ($(BLD)/abbrev.$(O)): Remove.
21890
21891 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21892
21893 Rewrite abbrev.c in Elisp.
21894 * image.c (Qcount): Don't declare as extern.
21895 (syms_of_image): Initialize and staticpro `Qcount'.
21896 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21897 * emacs.c (main): Don't call syms_of_abbrev.
21898 * Makefile.in (obj): Remove abbrev.o.
21899 (abbrev.o): Remove.
21900 * abbrev.c: Remove.
21901
21902 2007-10-26 Martin Rudalics <rudalics@gmx.at>
21903
21904 * window.c (window_min_size_2): Don't count header-line.
21905
21906 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21907
21908 * frame.h (struct frame): Move all bit fields after the first bit
21909 field to take advantage of the available space. Group all the
21910 chars together to reduce wasted space due to padding.
21911
21912 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
21913
21914 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21915
21916 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21917 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21918 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21919 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21920 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21921 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21922 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21923 (last_marked, mark_object_loop_halt): Make static.
21924
21925 * frame.c (syms_of_frame) <delete-frame-functions>:
21926 Fix typo in docstring.
21927
21928 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
21929
21930 * w32.c (init_environment): Fix tiny memory leak.
21931 (w32_get_resource): Remove unused variable `ok'.
21932
21933 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21934
21935 Make `window-system' into a keyboard-local variable (rather than
21936 frame-local as done originally by multi-tty).
21937
21938 * keyboard.h (struct kboard): Add Vwindow_system.
21939 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21940 (mark_kboards): Mark Vwindow_system.
21941
21942 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21943 (init_display): Don't set the obsolete `window-system' frame-param.
21944
21945 * xterm.c (x_term_init):
21946 * w32term.c (w32_create_terminal):
21947 * term.c (init_tty): Set Vwindow_system.
21948 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21949 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21950
21951 * xfns.c (Fx_create_frame, x_create_tip_frame):
21952 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21953 * macfns.c (Fx_create_frame):
21954 Don't set the obsolete `window-system' frame-param.
21955
21956 * frame.h (Qwindow_system): Remove.
21957 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21958 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21959
21960 2007-10-24 Richard Stallman <rms@gnu.org>
21961
21962 * frame.c (x_figure_window_size): For fullscreen case,
21963 set USPosition | PPosition without clobbering rest of window_prompting.
21964
21965 * keyboard.c (Fcurrent_idle_time): Doc fix.
21966
21967 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21968
21969 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21970
21971 * process.c (unwind_request_sigio): Only define if __ultrix__.
21972
21973 * callproc.c (child_setup): Remove spurious *.
21974
21975 * lisp.h (Fget_text_property): Declare.
21976 (have_menus_p): Declare it here rather than in sys-dep header files.
21977 * macterm.h (have_menus_p):
21978 * msdos.h (have_menus_p):
21979 * xterm.h (have_menus_p): Remove.
21980
21981 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21982 (Fmake_variable_frame_local): Just check the variable's const-ness
21983 rather than checking nil or t.
21984
21985 2007-10-22 Jason Rumney <jasonr@gnu.org>
21986
21987 * w32fns.c: Include math.h.
21988 (w32_abort): Declaration moved to nt/config.nt.
21989
21990 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21991 (abort): Redefinition moved to nt/config.nt.
21992
21993 * m/windowsnt.h: Remove.
21994
21995 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
21996
21997 * emacs.c (Fdump_emacs): Fix typo in message.
21998 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21999 <installation-directory>: Reflow docstring.
22000
22001 2007-10-22 Juri Linkov <juri@jurta.org>
22002
22003 * minibuf.c: Allow minibuffer default to be a list of default values.
22004 With empty input use the first element of this list as returned default.
22005 (string_to_object)
22006 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22007 (read_minibuf): If defalt is cons, set histstring to its car.
22008 (Fread_string): If default_value is cons, set val to its car.
22009 (Fread_buffer): If def is cons, use its car.
22010 (Fcompleting_read): If defalt is cons, set val to its car.
22011
22012 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
22013
22014 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22015
22016 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
22017
22018 * doc.c (Fdocumentation): Check for advice in all cases.
22019
22020 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
22021
22022 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22023
22024 2007-10-19 Richard Stallman <rms@gnu.org>
22025
22026 * doc.c (Fdocumentation): Check for and handle an advised function.
22027
22028 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
22029
22030 * process.c (Fset_process_filter): Doc fix.
22031
22032 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22033
22034 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22035 which caused key-translation-map to applied repeatedly (thus breaking
22036 double-mode).
22037
22038 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22039
22040 * xselect.c (x_own_selection, x_handle_selection_clear)
22041 (x_clear_frame_selections):
22042 * w32menu.c (list_of_panes, list_of_items):
22043 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22044 * textprop.c (validate_plist, interval_has_all_properties)
22045 (interval_has_some_properties, interval_has_some_properties_list)
22046 (add_properties, text_property_list):
22047 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22048 * minibuf.c (Fassoc_string):
22049 * macselect.c (x_own_selection, x_clear_frame_selections)
22050 (Fx_disown_selection_internal):
22051 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22052 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22053
22054 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
22055
22056 * process.c: Link to libs for calling res_init() if available.
22057 (Fmake_network_process): Call res_init() before getaddrinfo or
22058 gethostbyname, if possible.
22059
22060 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22061
22062 * lread.c (read1): Set pvectype for char_tables.
22063
22064 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22065 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22066 Add type checks.
22067 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22068
22069 * alloc.c (free_misc): Use XMISCTYPE.
22070 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22071
22072 2007-10-17 Glenn Morris <rgm@gnu.org>
22073
22074 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22075 (syms_of_minibuf): Add Qcompletion_ignore_case.
22076 * dired.c (Qcompletion_ignore_case): Change to external.
22077 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22078 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22079 (Fread_file_name): Use it rather than intern'ing.
22080
22081 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22082 (Fread_coding_system): Ignore case of user input.
22083
22084 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22085
22086 * xdisp.c (handle_display_prop): Ignore display specs after
22087 replacing one when string text is being replaced.
22088 (handle_single_display_spec): Pretend as if characters with display
22089 property haven't been consumed only when buffer text is being replaced.
22090
22091 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22092
22093 * xfns.c (Fx_create_frame, Fx_display_list):
22094 * window.c (window_fixed_size_p, enlarge_window)
22095 (shrink_window_lowest_first):
22096 * macterm.c (init_font_name_table):
22097 * macfns.c (Fx_create_frame, Fx_display_list):
22098 * lread.c (close_load_descs):
22099 * keyboard.c (read_char_x_menu_prompt):
22100 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22101 * coding.c (code_convert_region_unwind): Test the type of an object
22102 rather than just !NILP before extracting data from it.
22103
22104 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22105
22106 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22107 (XMISCANY): New macro.
22108 (XMISCTYPE): Use it.
22109 (struct Lisp_Misc_Any): New type.
22110 (union Lisp_Misc): Use it.
22111 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22112 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22113 (find_symbol_value, set_internal, default_value, Fset_default)
22114 (Fmake_variable_buffer_local, Fmake_local_variable)
22115 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22116 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22117 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22118 * alloc.c (allocate_buffer): Set the size and tag.
22119 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22120 Use XMISCANY.
22121 (die): Follow the GNU convention for error messages.
22122 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22123 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22124 tag any more.
22125 (set_buffer_internal_1):
22126 * frame.c (store_frame_param):
22127 * eval.c (specbind):
22128 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22129
22130 * doc.c (Fsnarf_documentation): Simplify.
22131
22132 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
22133
22134 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22135 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22136
22137 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22138
22139 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22140
22141 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
22142
22143 * eval.c (do_autoload): Don't save autoloads.
22144
22145 * data.c (Ffset): Save autoload of the function being set.
22146
22147 2007-10-07 John Paul Wallington <jpw@pobox.com>
22148
22149 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22150 parameter before setting up faces.
22151
22152 2007-10-13 Eli Zaretskii <eliz@gnu.org>
22153
22154 * ccl.c (Fregister_code_conversion_map):
22155 * keyboard.c (append_tool_bar_item): Reformat last change.
22156
22157 * lisp.h (eabs): Rename from `abs'. All callers changed.
22158
22159 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22160
22161 * buffer.c (add_overlay_mod_hooklist):
22162 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22163 * fontset.c (make_fontset):
22164 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22165 (append_tool_bar_item):
22166 * macmenu.c (grow_menu_items):
22167 * w32menu.c (grow_menu_items):
22168 * xmenu.c (grow_menu_items): Use larger_vector.
22169
22170 2007-10-13 Eli Zaretskii <eliz@gnu.org>
22171
22172 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22173 selected frame'' on MSDOS).
22174
22175 2007-10-12 Martin Rudalics <rudalics@gmx.at>
22176
22177 * frame.c (Qexplicit_name): New variable.
22178 (x_report_frame_params): Report it in parameter alist.
22179 (syms_of_frame): Intern and staticpro it.
22180
22181 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22182
22183 * macfns.c (x_create_tip_frame): Set terminal for frame.
22184
22185 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22186
22187 * frame.c (Qenvironment): Remove.
22188 (syms_of_frame) <Qenvironment>: Don't initialize.
22189 (Fdelete_frame): Don't treat the `environment' param specially.
22190 * frame.h (Qenvironment): Don't declare.
22191 * callproc.c (set_initial_environment): Don't set unused frame param.
22192
22193 * frame.c (Fframe_with_environment): Remove.
22194 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22195
22196 * lisp.h (Fframe_with_environment): Don't declare.
22197
22198 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
22199
22200 * indent.c (indent_tabs_mode, last_known_column)
22201 (last_known_column_modified): Make static.
22202 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22203
22204 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22205
22206 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22207
22208 2007-10-09 Jason Rumney <jasonr@gnu.org>
22209
22210 * w32term.c (x_set_window_size): Disable code that attempts to tell
22211 Lisp code about a size change before it actually happens.
22212
22213 2007-10-09 Richard Stallman <rms@gnu.org>
22214
22215 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22216 return HANDLED_RETURN.
22217
22218 2007-10-08 Martin Rudalics <rudalics@gmx.at>
22219
22220 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22221 when there's an unread command event.
22222
22223 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22224 window autoselection act appropriately when leaving selected frame.
22225 (syms_of_frame): Initialize focus_follows_mouse.
22226 * frame.h (focus_follows_mouse): Extern it.
22227 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22228 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22229 * msdos.c (dos_rawgetc): Likewise.
22230 * w32term.c (w32_read_socket): Likewise.
22231 * xterm.c (handle_one_xevent): Likewise.
22232 * xdisp.c (syms_of_xdisp): In doc-string of
22233 mouse-autoselect-window mention focus-follows-mouse.
22234
22235 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22236
22237 * macterm.c (mac_load_query_font): Fix missing return value.
22238 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22239 Add BLOCK_INPUT.
22240
22241 2007-10-08 Richard Stallman <rms@gnu.org>
22242
22243 * xdisp.c (get_window_cursor_type): Implement documented behavior
22244 for cursor-in-non-selected-windows = t.
22245
22246 2007-10-08 Jason Rumney <jasonr@gnu.org>
22247
22248 * w32.c (w32_get_resource): Always close registry keys.
22249
22250 2007-10-08 Jason Rumney <jasonr@gnu.org>
22251
22252 * makefile.w32-in (LIBS): Add COMCTL32.
22253
22254 * w32fns.c (globals_of_w32fns): Init common controls.
22255
22256 2007-10-08 Richard Stallman <rms@gnu.org>
22257
22258 * image.c (our_memory_buffer): Rename from omfib_buffer.
22259
22260 2007-10-08 Richard Stallman <rms@gnu.org>
22261
22262 * buffer.c (Foverlays_at): Doc fix.
22263
22264 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22265
22266 * fns.c (Fplist_put): Preserve uneven tail data.
22267
22268 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22269
22270 * termhooks.h (enum event_kind): Remove trailing comma.
22271
22272 * frame.h (enum): Remove trailing comma.
22273
22274 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22275
22276 * w32proc.c (delete_child): Don't terminate threads of zombies.
22277
22278 2007-10-08 Martin Rudalics <rudalics@gmx.at>
22279
22280 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22281
22282 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22283 last-repeatable-command.
22284 (init_kboard): Initialize Vlast_repeatable_command.
22285 (command_loop_1): Set it to real_this_command unless that was
22286 bound to an input event.
22287 (mark_kboards): Mark it.
22288
22289 2007-10-08 Richard Stallman <rms@gnu.org>
22290
22291 * eval.c (condition-case): Doc fix.
22292
22293 2007-10-08 Masatake YAMATO <jet@gyve.org>
22294
22295 * xfaces.c (tty_supports_face_attributes_p): Fix code
22296 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22297 was copied and not edited.
22298
22299 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22300
22301 Add new `input-decode-map' keymap and use it for terminal
22302 escape sequences.
22303 * keyboard.h (struct kboard): Add Vinput_decode_map.
22304 Remove Vlocal_key_translation_map.
22305 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22306 (init_kboard): Init input-decode-map.
22307 Replace local-key-translation-map back with key-translation-map.
22308 (syms_of_keyboard): Declare input-decode-map.
22309 Remove local-key-translation-map. Update docstrings.
22310 (mark_kboards): Mark Vinput_decode_map.
22311 Don't mark Vlocal_key_translation_map.
22312 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22313 Replace local-key-translation-map back with key-translation-map.
22314 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22315 Bind in input-decode-map rather than function-key-map.
22316
22317 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22318 This was made redundant by the previous introduction of XSETPVECTYPE.
22319
22320 2007-10-09 Richard Stallman <rms@gnu.org>
22321
22322 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22323
22324 2007-09-29 Richard Stallman <rms@gnu.org>
22325
22326 * eval.c (internal_condition_case_2, internal_condition_case_1)
22327 (internal_condition_case): Reenable abort if x_catching_errors ()
22328 to see if that really happens and why.
22329
22330 2007-10-06 Andreas Schwab <schwab@suse.de>
22331
22332 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22333
22334 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
22335
22336 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22337
22338 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22339
22340 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22341
22342 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22343
22344 * window.h (struct window):
22345 * window.c (struct save_window_data, struct saved_window):
22346 * termhooks.h (struct terminal):
22347 * process.h (struct Lisp_Process):
22348 * frame.h (struct frame):
22349 * buffer.h (struct buffer):
22350 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22351 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22352 The size field of (pseudo)vectors is now unsigned.
22353 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22354
22355 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22356 Turn `count' into an integer.
22357
22358 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22359 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22360 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22361 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22362 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22363
22364 * alloc.c (allocate_pseudovector): New fun.
22365 (ALLOCATE_PSEUDOVECTOR): New macro.
22366 (allocate_window, allocate_terminal, allocate_frame)
22367 (allocate_process): Use it.
22368 (mark_vectorlike): New function.
22369 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22370 (mark_terminals): Use it.
22371 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22372 (Fmake_byte_code): Use XSETPVECTYPE.
22373
22374 * frame.c (Fframe_parameters): Minor simplification.
22375
22376 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22377
22378 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22379
22380 * buffer.c (Fget_buffer_create, init_buffer_once):
22381 * lread.c (defsubr):
22382 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22383
22384 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22385 defined differently in the m/*.h files.
22386 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22387 (XSETPVECTYPE): New macro.
22388 (XSETPSEUDOVECTOR): Use it.
22389
22390 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22391 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22392
22393 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22394 * lread.c (defvar_per_buffer):
22395 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22396
22397 * window.c (candidate_window_p): Only consider as visible frames that
22398 are on the same terminal.
22399
22400 * m/ibms390x.h (MARKBIT): Remove unused macro.
22401
22402 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
22403
22404 * lread.c (Fload): Fix typo in docstring.
22405
22406 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22407
22408 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22409 of a non-zero value can't yield zero.
22410
22411 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22412
22413 * term.c (term_clear_mouse_face, term_mouse_highlight)
22414 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22415
22416 * print.c (safe_debug_print): Use XHASH.
22417
22418 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22419 Lisp elements such as tags.
22420 (XHASH): New macro.
22421 (EQ): Use it.
22422 (SREF, SSET, STRING_COPYIN): Use SDATA.
22423 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22424
22425 * alloc.c (mark_terminal): Remove left-over declaration.
22426 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22427 (allocate_vectorlike): Remove type argument. Adjust callers.
22428 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22429 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22430
22431 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22432 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22433 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22434 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22435 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22436 Use them.
22437
22438 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22439 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22440 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22441
22442 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22443
22444 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22445 loaded by default.
22446
22447 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22448
22449 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22450 on this tty.
22451 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22452
22453 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22454 Update all users.
22455 (handle_one_term_event): Use Gpm_DrawPointer.
22456 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22457 Signal errors instead of returning nil. Always return nil.
22458 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22459 Make it a noop if gpm-mouse was not activated.
22460 (syms_of_term): Update names.
22461
22462 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22463
22464 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22465 (init_sys_modes): Check that gpm_tty is the current tty.
22466
22467 * alloc.c (allocate_terminal): Set the vector size to only count the
22468 lisp fields. Initialize those to nil.
22469 (mark_object): Don't treat terminals specially.
22470 (mark_terminal): Remove.
22471 (mark_terminals): Use mark_object instead.
22472
22473 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22474 the GC to the beginning.
22475
22476 * indent.h:
22477 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22478
22479 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22480
22481 2007-09-25 Jason Rumney <jasonr@gnu.org>
22482
22483 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22484
22485 * w32console.c (create_w32cons_output): Remove.
22486
22487 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22488
22489 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22490 (reset_sys_modes): Use reset_terminal_modes_hook.
22491
22492 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22493
22494 * eval.c (do_autoload): Don't output any message.
22495
22496 2007-09-24 Juri Linkov <juri@jurta.org>
22497
22498 * emacs.c (standard_args): Change priority of "--no-splash"
22499 from 40 to 3. Add "--no-desktop" with the same priority.
22500
22501 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22502
22503 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22504 and optimize the case where they are all 1.
22505
22506 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
22507
22508 * lisp.h (abs): Define if not defined.
22509 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22510 Don't define `abs', since it's defined in lisp.h.
22511
22512 2007-09-22 Eli Zaretskii <eliz@gnu.org>
22513
22514 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22515 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22516 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22517 (init_tty): Use DEV_TTY instead of "/dev/tty".
22518 [WINDOWSNT]: No need to protect from NAME arg being null.
22519
22520 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22521
22522 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22523 up the tty state.
22524
22525 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22526
22527 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22528 (gpm_tty): Change its type.
22529 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22530 (gpm_tty): Change its type and initialize it.
22531 (Fterm_open_connection): Check the frame is indeed a tty.
22532 Use the new gpm_tty.
22533 (Fterm_close_connection): Use the new gpm_tty.
22534 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22535 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22536
22537 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
22538
22539 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22540 underline_color, to draw strike-through.
22541
22542 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22543
22544 * lisp.h (allocate_terminal): Declare.
22545
22546 * window.c (candidate_window_p): Consider frames that are being placed
22547 by the user as somewhere between visible and iconified.
22548 (window_loop): Prefer windows on the current frame.
22549 (Fselect_window): Move the use of select-frame to the beginning so we
22550 can just delegate all the work (it'll call us back anyway).
22551
22552 * frame.c (Qdisplay_environment_variable):
22553 * frame.h (Qdisplay_environment_variable): Delete.
22554
22555 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22556 of the first arg, since that value may be a union.
22557
22558 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22559 parameter rather than Qdisplay_environment_variable. If all else
22560 fails, look for DISPLAY in initial-environment.
22561
22562 2007-09-21 Glenn Morris <rgm@gnu.org>
22563
22564 * Makefile.in (emacstool): Remove target.
22565 (lisp, shortlisp): Remove termdev.elc.
22566
22567 2007-09-21 Markus Triska <markus.triska@gmx.at>
22568
22569 * xterm.c (x_delete_display): Compile session management conditionally.
22570
22571 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22572
22573 * callproc.c (getenv_internal_1): New function.
22574 (getenv_internal): Use it.
22575 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22576
22577 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22578 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22579 (Fset_terminal_parameter): Work with dead terminals as well.
22580 (Fmodify_terminal_parameters): Remove.
22581
22582 * terminal.c (get_terminal): Handle terminals.
22583 Make sure the terminal returned is live.
22584 (create_terminal): Use allocate_terminal.
22585 (mark_terminals): Move to alloc.c.
22586 (delete_terminal): Use terminal->name as liveness status.
22587 NULL out fields after freeing their contents.
22588 Don't deallocate the object.
22589 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22590 rather than an int.
22591 (Fterminal_live_p): Accept non-integer arguments.
22592 (Fterminal_list): Return terminal objects rather than an ints.
22593
22594 * alloc.c (enum mem_type): New member for `terminal' objects.
22595 (allocate_terminal): New function.
22596 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22597 Handle terminals.
22598 (mark_terminal): New fun.
22599 (mark_terminals): Move from terminal.c.
22600
22601 * term.c (get_tty_terminal): Don't treat output_initial specially.
22602 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22603 (delete_tty): Use terminal->name as liveness status.
22604
22605 * termhooks.h (struct terminal): Make it into a pseudovector.
22606 Remove `deleted' replaced by checking `name's nullness.
22607
22608 * print.c (print_object): Handle terminals.
22609
22610 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22611 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22612
22613 * frame.c (make_terminal_frame):
22614 * keyboard.c (tty_read_avail_input):
22615 * w32term.c (x_delete_terminal):
22616 * xfns.c (Fx_create_frame, x_create_tip_frame):
22617 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22618
22619 2007-09-20 Glenn Morris <rgm@gnu.org>
22620
22621 * process.c (Fmake_network_process): Doc fix.
22622
22623 2007-09-19 Jason Rumney <jasonr@gnu.org>
22624
22625 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22626
22627 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22628
22629 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22630 Fix a C warning regarding variable constness.
22631
22632 * xterm.c (handle_one_xevent): Fix a C warning.
22633
22634 2007-09-18 Jason Rumney <jasonr@gnu.org>
22635
22636 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22637
22638 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22639
22640 * gtkutil.c (gdpy_def): New variable.
22641 (xg_initialize): Initialize gdpy_def.
22642 (xg_display_close): If no other display exists, set gdpy_def to a
22643 new connection.
22644
22645 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22646
22647 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22648 when we have no file name for the icon.
22649 (xg_tool_bar_expose_callback): Remove.
22650 (xg_create_tool_bar): Don't connect expose signal to
22651 xg_tool_bar_expose_callback.
22652 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22653
22654 2007-09-16 Andreas Schwab <schwab@suse.de>
22655
22656 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22657 values instead of zapping them.
22658
22659 2007-09-14 Glenn Morris <rgm@gnu.org>
22660
22661 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22662 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22663 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22664 scope and rename to omfib_buffer for clarity.
22665 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22666
22667 2007-09-14 Kenichi Handa <handa@m17n.org>
22668
22669 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22670
22671 2007-09-13 Jason Rumney <jasonr@gnu.org>
22672
22673 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22674
22675 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22676
22677 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22678 (mac_term_init): Call here instead, passing rif.
22679
22680 2007-09-13 Glenn Morris <rgm@gnu.org>
22681
22682 * s/hpux.h: No longer define `static' as nothing.
22683
22684 2007-09-13 Johan Bockgård <bojohan@gnu.org>
22685
22686 * callint.c (Fcall_interactively): Remove unused var `fun'.
22687
22688 2007-09-12 Romain Francoise <romain@orebokech.com>
22689
22690 * window.c (prefer_window_split_horizontally, display_buffer):
22691 Revert 2007-09-08 change.
22692
22693 2007-09-12 Glenn Morris <rgm@gnu.org>
22694
22695 * alloca.c: Remove file.
22696 * Makefile.in (alloca): Do not undef.
22697 (allocaobj, alloca.o): Remove.
22698 (otherobj): Remove allocaobj.
22699 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22700 * regex.c (C_ALLOCA): Remove all references and code that was only
22701 used when this was defined.
22702 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22703 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22704 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22705
22706 * Makefile.in (SOURCES, unlock, relock): Delete.
22707
22708 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22709 (menu_grab_callback): All uses changed.
22710
22711 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22712 (x_reply_selection_request): All uses changed.
22713
22714 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22715
22716 * lread.c (load_warn_old_style_backquotes): Change message to look
22717 better when it appears in the middle of byte-compiler messages.
22718
22719 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22720
22721 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22722
22723 * xterm.c (x_create_terminal): Add comment.
22724
22725 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22726
22727 2007-09-10 Richard Stallman <rms@gnu.org>
22728
22729 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22730
22731 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22732
22733 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22734 (DEFUN): Document `intspec', use it instead of `prompt'.
22735
22736 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22737
22738 * data.c (Finteractive_form): If the interactive specification starts
22739 with a `(', use it as a Lisp form.
22740
22741 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22742 name and file modes.
22743
22744 * callint.c (Fcall_interactively): Comment fixes.
22745
22746 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22747
22748 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22749 and compiled functions.
22750
22751 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22752
22753 * window.c (prefer_window_split_horizontally): New variable.
22754 (display_buffer): Consider splitting window horizontally depending
22755 on prefer_window_split_horizontally.
22756
22757 2007-09-08 Eli Zaretskii <eliz@gnu.org>
22758
22759 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22760
22761 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22762
22763 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22764
22765 * frame.c (x_set_frame_parameters): Check number is positive before
22766 using XFASTINT.
22767
22768 * window.c (freeze_window_start): Don't presume selected_window holds
22769 a window object.
22770 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22771
22772 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22773
22774 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22775
22776 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22777
22778 * window.c (Vsplit_window_preferred_function): New var.
22779 (Fdisplay_buffer): Use it.
22780 (syms_of_window): Export, and initialize it.
22781
22782 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22783
22784 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22785
22786 2007-09-06 Glenn Morris <rgm@gnu.org>
22787
22788 * gtkutil.c (menu_grab_callback) <cnt>:
22789 * xselect.c (x_reply_selection_request) <cnt>: Move static
22790 variable to file scope.
22791
22792 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22793
22794 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22795 consistent values of selected_frame and selected_window.
22796
22797 2007-09-04 Jason Rumney <jasonr@gnu.org>
22798
22799 * w32console.c (initialize_w32_display): Zero unused hooks.
22800
22801 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22802
22803 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22804 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22805
22806 2007-09-04 Jason Rumney <jasonr@gnu.org>
22807
22808 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22809 in w32console.c. Set up input. Remove XXX comments that have been
22810 confirmed as correct.
22811
22812 * s/ms-w32.h (MULTI_KBOARD): Define.
22813
22814 * w32console.c (one_and_only_w32cons): Remove.
22815 (initialize_w32_display): Take terminal argument.
22816
22817 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22818 initialize_w32_display.
22819 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22820
22821 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22822
22823 * keyboard.c (discard_mouse_events): Discard it.
22824 (make_lispy_event): Translate it to a lisp event.
22825 (lispy_wheel_names): Add wheel-left and right events.
22826 (syms_of_keyboard): Enlarge wheel_syms.
22827
22828 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22829 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22830
22831 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22832
22833 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22834 from WM_MOUSEHWHEEL.
22835 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22836
22837 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22838 terminal.
22839
22840 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22841 keyboard for the terminal.
22842
22843 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22844
22845 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22846 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22847 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22848 and resume-tty-function to resume-tty-hook.
22849 (Fsuspend_tty, Fresume_tty): Use new names.
22850
22851 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22852
22853 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22854 if it starts with "n:".
22855
22856 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22857
22858 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22859
22860 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22861
22862 * frame.h:
22863 * frame.c (Qterm_environment_variable): Remove.
22864 (syms_of_frame): Don't init and staticpro it.
22865
22866 * callproc.c (getenv_internal): Remove special case for $TERM.
22867
22868 * callproc.c (Vinitial_environment): New variable.
22869 (set_initial_environment): Initialize it.
22870 (syms_of_callproc): Declare it.
22871 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22872 TERM under which a process runs is never related to the TERM in which
22873 Emacs is running.
22874
22875 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22876
22877 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22878 * s/darwin.h: ... do it here.
22879
22880 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22881
22882 * lisp.h (set_initial_environment): Rename from set_global_environment.
22883
22884 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22885 removed by mistake on the multi-tty branch.
22886
22887 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22888 (Fmodify_frame_parameters): Return a value.
22889
22890 * image.c (png_load): Comment-out var only used in commented-out code.
22891
22892 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22893 before passing it to mark_object.
22894
22895 * xfaces.c (internal_resolve_face_name): Return a value.
22896 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22897
22898 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22899 (x_icon): Comment-out var only used in commented-out code.
22900
22901 2007-08-29 Romain Francoise <romain@orebokech.com>
22902
22903 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22904 QUIT hasn't been provided.
22905
22906 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22907
22908 * callproc.c (child_setup, getenv_internal): Use the
22909 display-environment-variable and term-environment-variable frame params.
22910 (set_initial_environment): Initialise Vprocess_environment.
22911
22912 * config.in: Disable multi-keyboard support on a mac.
22913
22914 * frame.c (Qterm_environment_variable)
22915 (Qdisplay_environment_variable): New variables.
22916 (syms_of_frame): Intern and staticpro them.
22917 (Fmake_terminal_frame): Disable output method test.
22918
22919 * frame.h: Declare them here.
22920
22921 * macfns.c (x_set_mouse_color): Get rif from the frame.
22922 (x_set_tool_bar_lines): Don't use updating_frame.
22923 (mac_window): Add 2 new parameters for consistency with other systems.
22924 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22925 frame parameters following what is done in X11 and w32. Don't use
22926 FRAME_MAC_DISPLAY_INFO.
22927 (Fx_open_connection, start_hourglass): Remove window-system check.
22928 (x_create_tip_frame): Get the keyboard from the terminal.
22929
22930 * macmenu.c: Reorder includes.
22931 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22932
22933 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22934 terminal parameter.
22935 (x_clear_frame): Add a frame parameter.
22936 (note_mouse_movement): Get rif from the frame.
22937 (mac_term_init): Initialize the terminal.
22938 (mac_initialize): Make static and move terminal initialization ...
22939 (mac_create_terminal): ... to this new function.
22940
22941 * macterm.h (struct mac_display_info): Add terminal.
22942 (mac_initialize): Delete declaration.
22943
22944 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22945
22946 * sysdep.c: Comment out text after #endif.
22947
22948 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22949 is defined. Better initialize ttys in windows. Use terminal
22950 specific mouse_position_hook.
22951
22952 * termhooks.h (union display_info): Add mac_display_info.
22953
22954 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22955 Set the default minibuffer frame, window_system and the rest of the
22956 frame parameters following what is done in X11.
22957
22958 * w32term.c (w32_initialize): Make static.
22959
22960 * xselect.c (x_handle_selection_clear): Only access
22961 terminal->kboard when MULTI_KBOARD is defined.
22962
22963 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22964 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22965
22966 2007-08-29 Jason Rumney <jasonr@gnu.org>
22967
22968 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22969 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22970
22971 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22972 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22973
22974 * keyboard.c (restore_kboard_configuration): Only define when
22975 MULTI_KBOARD defined.
22976
22977 * makefile.w32-in: Update dependancies from Makefile.in.
22978 (OBJ1): Add terminal.$(O)
22979
22980 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22981 Don't define function body.
22982 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22983
22984 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22985
22986 * w32.c (request_sigio, unrequest_sigio): Remove.
22987
22988 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22989 (w32con_clear_frame, w32con_clear_end_of_line)
22990 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22991 (w32con_delete_glyphs, w32con_set_terminal_window)
22992 (scroll_line, w32_sys_ring_bell): Add frame arg.
22993 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22994 Add terminal arg.
22995 (PICK_FRAME): Remove.
22996 (w32con_write_glyphs): Use frame specific terminal coding.
22997 (one_and_only_w32cons): New global variable.
22998 (initialize_w32_display): Use it for storing hooks.
22999 (create_w32cons_output): New function.
23000
23001 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23002 arg a frame.
23003
23004 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23005 Set window_system.
23006 (x_set_tool_bar_lines): Don't use updating_frame.
23007 (Fx_create_frame): Set terminal and ref count.
23008 (Fx_open_connection): Remove window-system check.
23009
23010 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23011
23012 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23013 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23014 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23015 Add frame arg.
23016 (x_delete_terminal, w32_create_terminal): New functions.
23017 (w32_term_init): Create a terminal.
23018 (w32_initialize): Move terminal specific initialization to
23019 w32_create_terminal.
23020
23021 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23022 (w32_clear_rect, w32_clear_area): Use background from frame.
23023 (w32_display_info): Add terminal.
23024 (w32_sys_ring_bell, x_delete_display): Declare here.
23025
23026 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23027
23028 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23029
23030 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23031
23032 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23033 Fix get_named_tty calls for the controlling tty.
23034
23035 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23036
23037 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
23038
23039 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23040
23041 * term.c (tty_insert_glyphs): Add missing first parameter.
23042
23043 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23044
23045 * buffer.c (Fbuffer_list, Fbury_buffer):
23046 Take frame->buried_buffer_list into account.
23047
23048 * cm.c (current_tty): New variable, for cmputc().
23049 (cmputc): Use it.
23050 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23051 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23052 (cmgoto): Add tty parameter. Pass it on to calccost().
23053 Use emacs_tputs() instead of tputs().
23054
23055 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23056 tputs().
23057 (current_tty): New variable, for cmputc().
23058 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23059
23060 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23061 (internal_condition_case, internal_condition_case_1)
23062 (internal_condition_case_2): Don't abort when x_catching_errors.
23063
23064 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23065 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23066 prevent crashes caused by bogus longjmps in read_char.
23067
23068 * keymap.h (Fset_keymap_parent): Add EXFUN.
23069
23070 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23071 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23072 Remove redundant definition.
23073
23074 * macfns.c (x_set_mouse_color, x_make_gc):
23075 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23076
23077 * w32term.c (x_free_frame_resources):
23078 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23079 (w32_initialize): Use the accessor macros for terminal characteristics.
23080
23081 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23082 Use the accessor macros for terminal characteristics.
23083 * msdos.c (internal_terminal_init): Use the accessor macros for
23084 terminal characteristics.
23085 (ScreenVisualBell, internal_terminal_init):
23086 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23087
23088 * termopts.h (no_redraw_on_reenter): Declare.
23089
23090 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23091 (mark_terminals, mark_ttys): Declare.
23092 (Fgarbage_collect): Call them.
23093 (mark_object): Mark buried_buffer_list.
23094
23095 * prefix-args.c: Include stdlib.h for exit.
23096
23097 * syssignal.h: Add comment.
23098
23099 * indent.c: Include stdio.h.
23100
23101 * window.h (Vinitial_window_system): Declare.
23102 (Vwindow_system): Delete declaration.
23103
23104 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23105
23106 * image.c (lookup_image): Don't initialize `c' until the xasserts
23107 have been run.
23108
23109 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23110 FRAME_FOREGROUND_PIXEL.
23111
23112 * print.c (print_preprocess): Don't lose print_depth levels while
23113 iterating.
23114
23115 * widget.c (update_from_various_frame_slots):
23116 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23117
23118 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23119 frames.
23120 (window_internal_height): Remove bogus make_number call.
23121 (init_window_once): Call make_terminal_frame with two zero parameters.
23122
23123 * fileio.c (Fread_file_name): Update comment.
23124
23125 * callint.c (Fcall_interactively):
23126 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23127 Make sure it is correctly unwound.
23128
23129 * xsmfns.c (x_session_close): New function.
23130
23131 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23132 Delete declarations.
23133
23134 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23135 (x_output): Remove background_pixel and foreground_pixel fields.
23136 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23137 (x_delete_device, x_session_close): Declare.
23138
23139 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23140 (read_filtered_event): Call `read_char' with a local
23141 `wrong_kboard_jmpbuf'.
23142
23143 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23144 Don't call single_kboard_state. Use FRAME_RIF.
23145
23146 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23147 systems.
23148
23149 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23150 (Fframe_with_environment, Fset_input_meta_mode)
23151 (Fset_quit_char): EXFUN.
23152 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23153 (init_sys_modes, reset_sys_modes): Update prototypes.
23154 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23155
23156 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23157 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23158 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23159 Delete declarations.
23160 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23161 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23162 New declarations.
23163
23164 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23165 already does that during init_display(). Call syms_of_keymap
23166 before syms_of_keyboard. Call `syms_of_terminal'.
23167 Call set_initial_environment, not set_process_environment.
23168 (shut_down_emacs): Call reset_all_sys_modes() instead of
23169 reset_sys_modes().
23170
23171 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23172 (internal_resolve_face_name, resolve_face_name_error): New functions.
23173 (resolve_face_name): Protect against loops and errors thrown by Fget.
23174 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23175 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23176
23177 * scroll.c: Replace CURTTY() with local variables throughout the
23178 file (where applicable).
23179 (calculate_scrolling, calculate_direct_scrolling)
23180 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23181 characteristics.
23182
23183 * keymap.c (Vfunction_key_map): Remove.
23184 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23185 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23186 (Vkey_translation_map): Remove.
23187 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23188 (Fdescribe_buffer_bindings)
23189 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23190 Update for terminal-local key-translation-map.
23191
23192 * Makefile.in (callproc.o): Update dependencies.
23193 (lisp, shortlisp): Add termdev.elc.
23194 (obj): Add terminal.o.
23195 (terminal.o): Add dependencies.
23196 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23197 (data.o, fns.o): Add termhooks.h dependency.
23198 (SOME_MACHINE_LISP): Add dnd.elc.
23199 (minibuf.o): Fix typo.
23200 Update dependencies.
23201
23202 * data.c (do_symval_forwarding, store_symval_forwarding)
23203 (find_symbol_value): Use the selected frame's keyboard, not
23204 current_kboard.
23205
23206 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23207 Vwindow_system.
23208
23209 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23210 Fmenu_bar_open.
23211 (syms_of_xmenu): Update defsubr.
23212 (mouse_position_for_popup, Fx_popup_menu)
23213 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23214 (set_frame_menubar, free_frame_menubar)
23215 (create_and_show_popup_menu, xmenu_show)
23216 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23217 an X frame.
23218
23219 * xselect.c (x_own_selection): Abort if not an X frame.
23220 (some_frame_on_display): Check if it is an X frame.
23221 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23222
23223 * coding.c: Include frame.h and termhooks.h.
23224 (terminal_coding, keyboard_coding): Delete.
23225 (Fset_terminal_coding_system_internal)
23226 (Fset_keyboard_coding_system_internal)
23227 (Fkeyboard_coding_system)
23228 (Fterminal_coding_system): Add a terminal parameter.
23229 Get terminal_coding from the terminal.
23230 (init_coding_once): Don't call setup_coding_system here.
23231
23232 * dispextern.h (set_scroll_region, turn_off_insert)
23233 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23234 (tty_clear_end_of_line, tty_setup_colors)
23235 (delete_tty, updating_frame)
23236 (produce_special_glyphs, produce_glyphs, write_glyphs)
23237 (insert_glyphs): Remove.
23238 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23239 (tty_turn_off_highlight, get_tty_size): Add declaration.
23240 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23241
23242 * frame.h (enum output_method): Add output_initial.
23243 (struct x_output): Delete.
23244 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23245 Access foreground_pixel and background_pixel directly from the frame.
23246 (tty_display): Delete.
23247 (struct frame): Add buried_buffer_list, foreground_pixel,
23248 background_pixel and terminal. Delete kboard.
23249 (union output_data): Add tty.
23250 (FRAME_KBOARD): Get the kboard from the terminal.
23251 (FRAME_INITIAL_P): New macro.
23252 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23253 (Qterm_environment_variable, Qdisplay_environment_variable)
23254 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23255 New declarations.
23256
23257 * termchar.h (tty_output, tty_display_info): New structures.
23258 (tty_list): Declare.
23259 (FRAME_TTY, CURTTY): New macros.
23260 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23261 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23262 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23263 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23264
23265 * callproc.c: Include frame.h and termhooks.h, for terminal
23266 parameters.
23267 (add_env): New function.
23268 (child_setup): Use it.
23269 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23270 (getenv_internal): Fix get_terminal_param call.
23271 (Fgetenv_internal, egetenv): Update doc.
23272 (syms_of_callproc): Initialize Vprocess_environment to nil.
23273 Register and initialize them. Remove obsolete defvars. Update doc
23274 strings.
23275 (child_setup): Handle Vlocal_environment_variables.
23276 (getenv_internal): Add terminal parameter.
23277 Handle Vlocal_environment_variables.
23278 (Fgetenv_internal): Add terminal parameter.
23279 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23280 environment in a frame (not terminal) parameter. Update doc strings.
23281 (set_initial_environment): Rename from set_global_environment.
23282 Store Emacs environment in initial frame parameter.
23283
23284 * xdisp.c (redisplay_internal): Update references to
23285 `previous_terminal_frame'.
23286 (display_mode_line, Fformat_mode_line): Replace calls to
23287 `push_frame_kboard' with `push_kboard'.
23288 (get_glyph_string_clip_rects): Add extra parentheses and
23289 braces to prevent compiler warnings.
23290 (calc_pixel_width_or_height): Add xassert to check that the
23291 frame is alive. Don't call `lookup_image' on a termcap frame.
23292 (message2_nolog, message3_nolog, redisplay_internal)
23293 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23294 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23295 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23296 (Fx_display_pixel_width, Fx_display_pixel_height)
23297 (Fx_display_planes, Fx_display_color_cells)
23298 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23299 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23300 (Fx_display_backing_store, Fx_display_visual_class)
23301 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23302 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23303
23304 * xfns.c (x_set_foreground_color x_set_background_color)
23305 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23306 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23307 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23308 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23309 terminal that is being deleted.
23310 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23311 frame parameter, and make sure it overrides any user-supplied setting.
23312 (Fx_close_connection, Fx_synchronize): Unify argument names with
23313 the rest of the DEFUNs.
23314
23315 * dispnew.c (Fsend_string_to_terminal): Update call to
23316 `get_tty_terminal'.
23317 (Fredraw_frame, Fsend_string_to_terminal)
23318 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23319 FRAME_TERMCAP_P and FRAME_TTY.
23320 (window_change_signal): Don't believe width/height values that are
23321 impossibly small.
23322 (Vinitial_window_system): Rename from Vwindow_system.
23323 (termscript, Wcm, rif): Delete.
23324
23325 * termhooks.h (struct terminal): New struct containing the
23326 previously global text display hooks and new members NAME,
23327 DELETED and PARAM_ALIST.
23328 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23329 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23330 (FRAME_RIF): New macros.
23331 (get_terminal_param, get_device): New declarations.
23332 (termscript): Delete declaration.
23333
23334 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23335 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23336 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23337 FRAME_FOREGROUND_PIXEL.
23338 (x_fully_uncatch_errors): Disable definition.
23339 (x_scroll_bar_expose): Fix reference to foreground pixel.
23340 (XTread_socket): Disable loop on all X displays.
23341 (x_delete_terminal): Don't set terminal->deleted and let
23342 delete_terminal delete the frames on the terminal.
23343 (x_delete_display): Doc update to reflect changes in
23344 delete_terminal.
23345 (x_display_info) <terminal>: Move member earlier in the struct.
23346 (deleting_tty): Remove old variable.
23347 (Fsuspend_tty): Call clear_tty_hooks.
23348 (Fresume_tty, init_tty): Call set_tty_hooks.
23349 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23350 errors on X frames.
23351 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23352 (handle_one_xevent): Initialize `f' to NULL.
23353 (x_delete_terminal, x_create_terminal): New functions.
23354 (XTset_terminal_modes, XTreset_terminal_modes)
23355 (XTread_socket, x_connection_closed, x_term_init)
23356 (x_term_init, x_delete_display): Add terminal parameter.
23357 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23358 X connections.
23359
23360 * frame.c: Include termchar.h.
23361 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23362 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23363 (Qdisplay_environment_variable): New vars.
23364 (Fframep): Deal with output_initial.
23365 (Fframe-live-p): Doc fix.
23366 (Fwindow-system): New function.
23367 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23368 (make_terminal_frame): Don't create frames on a terminal that is
23369 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23370 (store_frame_param): Check for found_for_frame before calling XFRAME.
23371 (Fmake_terminal_frame): Handle NULL tty names correctly.
23372 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23373 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23374 frames to refer to a deleted frame in their 'environment parameter.
23375 (Fframe_with_environment): New function.
23376 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23377 (get_future_frame_param): New function.
23378 (Fmake_terminal_frame): Use it.
23379 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23380
23381 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23382 * sysdep.c (reset_sys_modes): Update for renames.
23383
23384 * keyboard.c (tty_read_avail_input): New function.
23385 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23386 (syms_of_keyboard): Defsubr them.
23387 (Fset_input_meta_mode, Fset_quit_char): New functions.
23388 (Fset_input_mode): Split to above functions.
23389 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23390 parameter. Use it in call to `read_char'.
23391 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23392 Set wrong_kboard_jmpbuf correctly in recursive calls.
23393 Use current_kboard to access Vkeyboard_translate_table.
23394 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23395 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23396 Update longjmp invocations. Remember the original current_kboard,
23397 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23398 changes it. Comment out unnecessary calls to
23399 `record_single_kboard_state' and `any_kboard_state'.
23400 Update recursive calls.
23401 (wrong_kboard_jmpbuf): Remove global variable.
23402 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23403 Handle deleted interrupted_kboards correctly; that is a legal
23404 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23405 and read_char calls. Abort if interrupted_kboard died in read_char.
23406 (any_kboard_state, single_kboard_state)
23407 (push_frame_kboard): Remove function.
23408 (pop_kboard): Switch out of single_kboard mode if the kboard has
23409 been deleted. Remove unused variable. Help debugging by not
23410 changing current_kboard unnecessarily. Set current_kboard to the
23411 kboard of the selected frame when the stored kboard object has
23412 been deleted before pop_kboard.
23413 (temporarily_switch_to_single_kboard): Change first parameter to a
23414 frame pointer. Throw an error when caller wants to change kboards
23415 while in single_kboard mode. Don't push_kboard if we weren't in
23416 single kboard state. Don't pop_kboard if we popped into any
23417 kboard state.
23418 (restore_kboard_configuration): Abort if pop_kboard changed the
23419 kboard in single_kboard mode. Call pop_kboard only after setting
23420 up single_kboard mode.
23421 (Frecursive_edit): Switch to single_kboard mode only in nested
23422 command loops.
23423 (cmd_error, command_loop, command_loop_1, timer_check):
23424 Comment out unnecessary call to `any_kboard_state' and
23425 `record_single_kboard_state'.
23426 (delete_kboard): Exit single_kboard mode if we have just deleted
23427 that kboard. Use FRAME_KBOARD.
23428 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23429 `fatal_error_signal'.
23430 (record_single_kboard_state): Don't push_kboard if we weren't in
23431 single kboard state. Don't pop_kboard if we popped into any
23432 kboard state.
23433 (push_frame_kboard): Rename to push_kboard.
23434 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23435 (read_avail_input): Read input from all terminals.
23436 (mark_kboards): Also mark Vkeyboard_translate_table.
23437 (kbd_buffer_store_event_hold): Simplify condition.
23438 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23439 (Vkeyboard_translate_table): Move to struct kboard.
23440 (init_kboard): Initialize Vkeyboard_translate_table.
23441 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23442 Vkeyboard_translate_table. Update doc strings. Update docs of
23443 local-function-key-map and function-key-map.
23444
23445 * terminal.c: New file.
23446
23447 * term.c: Include errno.h.
23448 (Vring_bell_function, device_list, initial_device)
23449 (next_device_id, ring_bell, update_begin, update_end)
23450 (set_terminal_window, cursor_to, raw_cursor_to)
23451 (clear_to_end, clear_frame, clear_end_of_line)
23452 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23453 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23454 (syms_of_term): Move their initialization to terminal.c.
23455 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23456 (Ftty_display_color_cells)
23457 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23458 (clear_tty_hooks, set_tty_hooks)
23459 (init_tty, maybe_fatal): New functions.
23460 (Ftty_type): Return nil if terminal is not on a tty instead of
23461 throwing an error. Doc update.
23462 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23463 Doc update. Initialize new subrs and variables.
23464 (delete_tty): Use terminal->deleted.
23465 (tty_set_terminal_modes): Rename from set_terminal_modes.
23466 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23467 (set_scroll_region): Rename to `tty_set_scroll_region'.
23468 (turn_on_insert): Rename to `tty_turn_on_insert'.
23469 (turn_off_insert): Rename to `tty_turn_off_insert'.
23470 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23471 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23472 (toggle_highligh): Rename to `tty_toggle_highlight'.
23473 (background_highlight): Rename to `tty_background_highlight'.
23474 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23475 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23476 (tty_set_scroll_region, tty_background_highlight)
23477 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23478 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23479 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23480 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23481 Add static modifier.
23482 (tty_reset_terminal_modes, tty_set_terminal_window)
23483 (tty_set_scroll_region, tty_background_highlight)
23484 (tty_highlight_if_desired, tty_cursor_to)
23485 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23486 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23487 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23488 renames.
23489
23490 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23491
23492 * keyboard.c: Qrtl is new.
23493 (parse_tool_bar_item): Handle :rtl keyword.
23494 (syms_of_keyboard): Intern :rtl keyword.
23495
23496 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23497
23498 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23499 so no Lisp code is executed.
23500 (file_for_image, find_rtl_image): New functions.
23501 (xg_get_image_for_pixmap): Use file_for_image.
23502 (update_frame_tool_bar): If direction is RTL, use RTL image if
23503 defined. Use Gtk stock images if defined.
23504
23505 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23506
23507 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23508 for nonexistent or zero-width glyph in composition glyph.
23509
23510 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23511
23512 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23513
23514 * xdisp.c (Finvisible_p): New function.
23515 (syms_of_xdisp): defsubr it.
23516
23517 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
23518
23519 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23520 Doc fixes.
23521
23522 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23523
23524 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23525
23526 2007-08-24 Martin Rudalics <rudalics@gmx.at>
23527
23528 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23529 whether decoding has modified buffer contents.
23530
23531 2007-08-24 Jason Rumney <jasonr@gnu.org>
23532
23533 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23534 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23535 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23536 (init_svg_functions) [HAVE_NTGUI]: New function.
23537 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23538 (svg_load_image): Use them.
23539 (svg_load_image) [HAVE_NTGUI]: Implement background.
23540
23541 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23542
23543 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23544 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23545 (LIBX): Remove @RSVG_LIBS@.
23546 (LIBES): Add $(RSVG_LIBS).
23547
23548 * image.c (svg_load_image): Blend with specified background if exists.
23549 Use IMAGE_BACKGROUND. Add Mac OS Support.
23550
23551 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23552 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23553 Remove macros.
23554 [MAC_OSX] (socket_callback): Do nothing.
23555 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23556 ReceiveNextEvent.
23557 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23558 socket_callback.
23559 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23560
23561 2007-08-22 Glenn Morris <rgm@gnu.org>
23562
23563 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23564
23565 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23566
23567 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23568
23569 * image.c: Add support for SVG images. Some additional comments
23570 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23571 (svg_image_p): New function to test for SVG image.
23572 (svg_load): New function to load SVG image.
23573 (svg_load_image): New function, helper for svg_load.
23574 (Qsvg): New Lisp_object.
23575 (svg_keyword_index): New enum.
23576 (svg_format): New static `image_keyword' struct.
23577 (svg_type): New static `image_type' struct.
23578 (librsvg/rsvg.h): Include it.
23579
23580 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23581
23582 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23583
23584 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23585
23586 * lread.c (Qold_style_backquotes): New var.
23587 (syms_of_lread): Init and staticpro it.
23588 (load_warn_old_style_backquotes): New fun.
23589 (Fload): Use them to warn about old style backquotes.
23590 (end_of_file_error, Fload): Remove unused vars.
23591
23592 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23593
23594 * lread.c (Vold_style_backquotes): New var.
23595 (syms_of_lread): Init and export it to Elisp.
23596 (read1): Set it when we find an old-style (back)quote.
23597
23598 2007-08-22 Jason Rumney <jasonr@gnu.org>
23599
23600 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23601
23602 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23603
23604 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23605
23606 2007-08-19 Richard Stallman <rms@gnu.org>
23607
23608 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23609
23610 2007-08-19 Andreas Schwab <schwab@suse.de>
23611
23612 * alloc.c (pure): Round PURESIZE up.
23613
23614 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23615
23616 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23617 active frame.
23618
23619 2007-08-16 Richard Stallman <rms@gnu.org>
23620
23621 * eval.c (Fcommandp): Add parens to clarify.
23622
23623 * minibuf.c (Fall_completions): Use enum for type of table.
23624
23625 * emacs.c (USAGE2): Improve text.
23626
23627 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23628
23629 * term.c (tty_default_color_capabilities): Declare static
23630 variables in file scope, to avoid HPUX compiler problem.
23631
23632 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23633
23634 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23635 to gtk_toolbar_insert.
23636
23637 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23638
23639 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23640
23641 * insdel.c (reset_var_on_error): New fun.
23642 (signal_before_change, signal_after_change):
23643 Use it to reset (after|before)-change-functions to nil in case of error.
23644 Bind inhibit-modification-hooks to t.
23645 Don't bind (after|before)-change-functions to nil while they run.
23646
23647 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23648
23649 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23650 filling pixmap with stippled background.
23651
23652 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23653
23654 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23655 Don't use invisible frame as parent window for repositioning.
23656
23657 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23658
23659 * print.c (new_backquote_output): Rename from old_backquote_output.
23660 (print): Inverse its logic (according to its name) so as to match the
23661 behavior of new_backquote_flag in lread.c.
23662
23663 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23664
23665 * gmalloc.c (posix_memalign): New function.
23666
23667 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23668 ActivateControl/DeactivateControl here.
23669 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23670 frame-notice-user-settings is non-nil.
23671 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23672 for kEventParamFMFontStyle.
23673 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23674 mac_pass_command_to_system and mac_pass_control_to_system here.
23675 (XTread_socket): Call ActivateControl/DeactivateControl here.
23676 (XTread_socket) [TARGET_API_MAC_CARBON]:
23677 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23678 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23679 for window repositioning.
23680
23681 2007-08-08 Glenn Morris <rgm@gnu.org>
23682
23683 * Replace `iff' in doc-strings and comments.
23684
23685 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
23686
23687 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23688
23689 2007-08-07 Martin Rudalics <rudalics@gmx.at>
23690
23691 * fileio.c (Finsert_file_contents): Run format-decode and
23692 after_insert_file_functions on entire buffer when REPLACE is
23693 non-nil and inhibit modification_hooks and point_motion_hooks.
23694 For consistency, run after_insert_file_functions iff something
23695 got inserted. Move signal_after_change and update_compositions
23696 after code running after_insert_file_functions. Make sure that
23697 undo_list doesn't record intermediate steps of the decoding process.
23698
23699 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23700
23701 * emacs.c (main)
23702 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23703 Call malloc_enable_thread on interactive startup.
23704
23705 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23706 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23707 [USE_PTHREAD]: Conditionalize with it.
23708 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23709 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23710 New functions.
23711
23712 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
23713
23714 * xdisp.c (redisplay_window): When restoring original buffer
23715 position, make sure it is still valid.
23716
23717 * image.c (png_load): Ignore png-supplied background color.
23718
23719 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23720
23721 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23722 Use kCFAbsoluteTimeIntervalSince1970.
23723
23724 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23725 New variable.
23726 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23727 event loop should be quit.
23728 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23729 Quit dialog event loop if quit_dialog_event_loop is set.
23730
23731 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23732 (Selection): New typedef. Use instead of ScrapRef.
23733 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23734 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23735 (mac_clear_selection): Rename from clear_scrap.
23736 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23737 scrap_has_target_type. All uses changed.
23738 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23739 (mac_selection_has_target_p): New functions.
23740 (mac_put_selection_value): Rename from put_scrap_string.
23741 (mac_get_selection_value): Rename from get_scrap_string.
23742 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23743 (put_scrap_private_timestamp, scrap_has_target_type)
23744 (get_scrap_private_timestamp): Remove functions.
23745 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23746 (x_own_selection, x_get_local_selection):
23747 Use mac_valid_selection_value_p.
23748 (x_own_selection): Don't use put_scrap_private_timestamp.
23749 Record OWNERSHIP-INFO into Vselection_alist instead.
23750 (x_get_local_selection): Don't check type if request is local.
23751 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23752 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23753
23754 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23755
23756 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23757 add comment explaining why.
23758
23759 2007-08-03 Richard Stallman <rms@gnu.org>
23760
23761 * fileio.c (Fvisited_file_modtime): Use make_time.
23762
23763 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23764
23765 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23766 build.
23767
23768 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23769
23770 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23771
23772 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23773
23774 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23775
23776 2007-07-30 Richard Stallman <rms@gnu.org>
23777
23778 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23779
23780 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23781
23782 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23783
23784 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
23785
23786 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23787 remote default-directory.
23788
23789 * buffer.c (mode-line-format): Update doc string.
23790
23791 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23792
23793 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23794 scroll bar gap.
23795 (x_scroll_bar_create): Set bar->fringe_extended_p.
23796 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23797 on frame edge. Check fringe background extension. Don't clear
23798 extended fringe background area.
23799
23800 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23801 (w32_fill_area): Enclose multiple statements with do ... while (0).
23802
23803 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23804 Extend fringe background to scroll bar gap.
23805 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23806 Set bar->fringe_extended_p.
23807 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23808 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23809 background extension. Don't clear extended fringe background area.
23810
23811 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23812 New member fringe_extended_p.
23813
23814 2007-07-25 Glenn Morris <rgm@gnu.org>
23815
23816 * Relicense all FSF files to GPLv3 or later.
23817
23818 * COPYING: Switch to GPLv3.
23819
23820 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23821
23822 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23823
23824 * data.c (Finteractive_form): Check for the presence of an
23825 `interactive-form' symbol property more thoroughly.
23826
23827 * data.c (Finteractive_form): Use an `interactive-form' property if
23828 present, analogous to the function-documentation property.
23829
23830 2007-07-24 Jason Rumney <jasonr@gnu.org>
23831
23832 * w32fns.c (x_real_positions): Get real position from OS instead of
23833 calculating it.
23834
23835 2007-07-23 Jason Rumney <jasonr@gnu.org>
23836
23837 * filelock.c (current_lock_owner): Allow for @ sign in username.
23838
23839 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
23840
23841 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23842 remote default-directory.
23843
23844 * buffer.c (mode-line-format): Describe above case in doc string.
23845
23846 2007-07-20 Eli Zaretskii <eliz@gnu.org>
23847
23848 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23849 Define if not defined.
23850
23851 2007-07-18 Jason Rumney <jasonr@gnu.org>
23852
23853 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23854
23855 2007-07-18 Richard Stallman <rms@gnu.org>
23856
23857 * data.c (Fsetq_default): Doc fix.
23858
23859 * eval.c (Fsetq): Doc fix.
23860
23861 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
23862
23863 * coding.c (Ffind_operation_coding_system):
23864 * eval.c (For, Fand): Doc fixes.
23865 Reported by Johan Bockgård.
23866
23867 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23868
23869 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23870
23871 * xterm.h: Declare x_ewmh_activate_frame.
23872
23873 * xterm.c (x_ewmh_activate_frame): New function.
23874 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23875
23876 2007-07-17 Martin Rudalics <rudalics@gmx.at>
23877
23878 * window.c (Fdisplay_buffer): If largest or LRU window is the
23879 only window, split it even if it is not eligible for splitting.
23880 This restores the original behavior broken by the 2007-07-15
23881 change.
23882
23883 2007-07-17 Glenn Morris <rgm@gnu.org>
23884
23885 * abbrev.c (abbrev_check_chars): New function.
23886 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23887 Call abbrev_check_chars to check abbrev characters are word
23888 constituents. Doc fix.
23889
23890 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23891
23892 * process.c (Fstart_process, Fmake_network_process)
23893 (read_process_output): Fix up last changes.
23894
23895 2007-07-16 Eli Zaretskii <eliz@gnu.org>
23896
23897 * makefile.w32-in (clean): Don't delete *~.
23898
23899 2007-07-16 Andreas Schwab <schwab@suse.de>
23900
23901 * window.c (Fdisplay_buffer): Use NILP.
23902 (Fset_window_scroll_bars): Likewise.
23903
23904 2007-07-15 Martin Rudalics <rudalics@gmx.at>
23905
23906 * window.c (window_min_size_2): New function.
23907 (window_min_size_1, size_window, Fdisplay_buffer)
23908 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23909 windows without mode- or header-lines when window-min-height is
23910 too small.
23911 (size_window): Reset nodelete_p after testing it, following an
23912 earlier note by Kim F. Storm.
23913 (display_buffer): Do not set split_height_threshold to twice the
23914 value of window_min_height to avoid changing the value of a
23915 customizable variable. Rather explicitly check whether the
23916 height of the window that shall be splitted is at least as large
23917 as split_height_threshold.
23918 (Fwindow_full_width_p): New defun.
23919 (syms_of_window): Defsubr it.
23920
23921 * window.h: Add EXFUN for Fwindow_full_width_p.
23922
23923 2007-07-14 Jason Rumney <jasonr@gnu.org>
23924
23925 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23926
23927 2007-07-14 Richard Stallman <rms@gnu.org>
23928
23929 * eval.c (maybe_call_debugger): New function.
23930 (find_handler_clause): Use maybe_call_debugger.
23931 Call it when the handler says `debug'.
23932 Eliminate DEBUGGER_VALUE_PTR.
23933 (Fsignal): Eliminate debugger_value.
23934 (Qdebug): New variable.
23935 (syms_of_eval): Initialize it.
23936
23937 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
23938
23939 * eval.c (Fprogn):
23940 * keyboard.c (Ftrack_mouse):
23941 * print.c (Fwith_output_to_temp_buffer):
23942 * window.c (Fsave_window_excursion): Doc fix.
23943
23944 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23945
23946 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23947
23948 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23949
23950 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23951 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23952 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23953 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23954 Remove unused encoding_carryover.
23955 * process.c: Adjust all functions accordingly.
23956
23957 2007-07-12 Richard Stallman <rms@gnu.org>
23958
23959 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23960
23961 2007-07-11 Jason Rumney <jasonr@gnu.org>
23962
23963 * makefile.w32-in (LIBS): Include OLE32.
23964
23965 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23966 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23967
23968 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23969
23970 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23971 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23972 from a Lisp_Object into a bare pointer.
23973 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23974 Adjust the code correspondingly.
23975
23976 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23977
23978 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23979 (term_show_mouse_face): Remove unused var `j'.
23980 (handle_one_term_event): Remove unused vars `i' and `j'.
23981 Don't cast return value of ttyname since it's not necessary.
23982
23983 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23984
23985 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23986 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23987
23988 * fns.c (map_char_table): Use an array of int for `indices' rather than
23989 an array of Lisp_Objects (which are only ever integers anyway).
23990 (Fmap_char_table): Update caller.
23991 * lisp.h: Update prototype.
23992 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23993 * fontset.c (Ffontset_info):
23994 * casetab.c (set_case_table): Update callers.
23995
23996 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23997
23998 * keymap.c (struct accessible_keymaps_data)
23999 (struct where_is_internal_data): New structures.
24000 (accessible_keymaps_1, where_is_internal_1): Use them to change
24001 interface to adhere to the one used by map_keymap.
24002 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24003 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24004
24005 * keymap.h (map_keymap_function_t): More informative prototype.
24006
24007 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24008
24009 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24010 (looking_at_1): Don't change search_regs and last_thing_searched
24011 if `inhibit-changing-match-data' is non-nil.
24012 (string_match_1, search_buffer, set_search_regs): Likewise.
24013 (syms_of_search): Add Lisp level definition for
24014 `inhibit-changing-match-data' and set it to nil.
24015 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24016 start and end of the match, instead of using values in search_regs.
24017
24018 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24019
24020 * minibuf.c (Fcompleting_read): New value `confirm-only'
24021 for `require-match'.
24022
24023 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24024
24025 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24026 part of the 2007-06-27 change to syms_of_fileio.
24027
24028 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24029
24030 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24031 Check WINDOWP before using XWINDOW. Consolidate return statements.
24032
24033 2007-06-27 Richard Stallman <rms@gnu.org>
24034
24035 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24036
24037 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
24038
24039 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24040
24041 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24042
24043 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24044 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24045 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24046 (_free_internal, memalign): Use them.
24047 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24048 Initialize to PTHREAD_MUTEX_INITIALIZER.
24049 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24050 (morecore_nolock): Rename from morecore. All uses changed.
24051 Use only nolock versions of internal allocation functions.
24052 (_malloc_internal_nolock, _realloc_internal_nolock)
24053 (_free_internal_nolock): New functions created from
24054 _malloc_internal, _realloc_internal, and _free_internal.
24055 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24056 Copy hook value to automatic variable before its use.
24057 (memalign): Copy hook value to automatic variable before its use.
24058
24059 2007-06-26 Kenichi Handa <handa@m17n.org>
24060
24061 * coding.c (Ffind_operation_coding_system): Docstring improved.
24062 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24063
24064 2007-06-25 David Kastrup <dak@gnu.org>
24065
24066 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24067 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24068 cater for additional parameter.
24069
24070 * keymap.h: Adjust number of parameters to `current-active-maps'.
24071
24072 * doc.c (Fsubstitute_command_keys): Adjust call of
24073 `current-active-maps'.
24074
24075 2007-06-25 David Kastrup <dak@gnu.org>
24076
24077 * callint.c (Fcall_interactively): Make the parsing of interactive
24078 specs somewhat more readable.
24079
24080 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24081
24082 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24083 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24084 if extended background has already been filled.
24085
24086 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24087
24088 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24089 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24090
24091 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24092 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24093 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24094 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24095 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24096 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24097 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24098 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24099 Run timers during dialog popup.
24100 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24101
24102 2007-06-21 Jason Rumney <jasonr@gnu.org>
24103
24104 * image.c (convert_mono_to_color_image): Swap fore and background.
24105
24106 2007-06-20 Jason Rumney <jasonr@gnu.org>
24107
24108 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24109 (w32_free_bdf_font): Unmap memory not handle.
24110
24111 2007-06-20 Sam Steingold <sds@gnu.org>
24112
24113 * gmalloc.c (__morecore): Fix the declaration to comply with the
24114 definition.
24115
24116 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
24117
24118 * w32term.c (w32_delete_display): Remove leftover declaration.
24119 (w32_define_cursor, w32_initialize): Make static.
24120
24121 * w32.c (_wsa_errlist): Fix typo in error message.
24122 (init_environment): Ignore any environment variable from the
24123 registry having a null value.
24124
24125 2007-06-20 Glenn Morris <rgm@gnu.org>
24126
24127 * Makefile.in (LIBGIF): Default to -lgif.
24128
24129 2007-06-17 Jason Rumney <jasonr@gnu.org>
24130
24131 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24132 unicode strings.
24133
24134 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
24135
24136 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24137 Fix typo in docstring.
24138
24139 2007-06-16 Eli Zaretskii <eliz@gnu.org>
24140
24141 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24142 and their keybindings.
24143
24144 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
24145
24146 * composite.c (update_compositions): Fix last fix.
24147
24148 2007-06-14 Jason Rumney <jasonr@gnu.org>
24149
24150 * w32.c (get_process_times_fn): New function pointer.
24151 (globals_of_w32): Intialize it if present in kernel32.dll.
24152 (w32_get_internal_run_time): New function.
24153
24154 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24155
24156 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24157
24158 * composite.c (update_compositions): Check the validness of
24159 compositions.
24160
24161 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24162
24163 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24164 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24165
24166 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24167 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24168
24169 * macgui.h (USE_MAC_TOOLBAR): New define.
24170
24171 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24172 Return immediately unless popup is activated.
24173
24174 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24175 background to scroll bar gap.
24176 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24177 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24178 scroll bars on frame edge. Check fringe background extension.
24179 Don't clear extended fringe background area.
24180 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24181 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24182 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24183 [USE_MAC_TOOLBAR]: New macros.
24184 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24185 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24186 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24187 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24188 [USE_MAC_TOOLBAR]: New functions.
24189 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24190 manually if previous repositioning has failed.
24191 (mac_handle_keyboard_event): Use precomputed event kind.
24192 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24193 as tool bar item click. Handle mouse movement over tool bar items.
24194
24195 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24196 toolbar_win_gravity.
24197 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24198 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24199 Add externs.
24200
24201 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24202 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24203
24204 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
24205
24206 * image.c (search_image_cache): Remove unused variable.
24207
24208 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
24209
24210 * xfns.c, xmenu.c: Link to xaw3d if available.
24211
24212 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24213
24214 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24215 frame_foreground and frame_background.
24216
24217 * image.c (lookup_image): Save frame foreground and background colors.
24218 (search_image_cache): Check if saved and current frame colors match.
24219
24220 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24221
24222 * regex.c (regex_compile): Remove the `regnum' counter.
24223 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24224
24225 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24226
24227 * term.c: Include intervals.h to declare Fget_text_property.
24228
24229 2007-06-10 Jason Rumney <jasonr@gnu.org>
24230
24231 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24232
24233 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
24234
24235 * callint.c (Fcall_interactively):
24236 * editfns.c (Fdelete_and_extract_region):
24237 * fileio.c (Fread_file_name):
24238 * fns.c (Fmapconcat):
24239 * keyboard.c (cmd_error_internal):
24240 * keymap.c (Fkey_description):
24241 * lread.c (openp):
24242 * minibuf.c (read_minibuf):
24243 * search.c (wordify):
24244 * sunfns.c (sel_read):
24245 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24246 * xfns.c (x_default_scroll_bar_color_parameter):
24247 * xmenu.c (menu_help_callback):
24248 * xselect.c (Fx_get_atom_name):
24249 * xterm.c (x_term_init): Use empty_unibyte_string.
24250
24251 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24252
24253 * alloc.c (init_strings): Initialize canonical empty strings.
24254 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24255 canonical empty string when the requested size is 0.
24256
24257 * emacs.c (empty_unibyte_string): Rename from empty_string.
24258 (empty_multibyte_string): New canonical empty string.
24259 (syms_of_emacs): Don't initialize empty_string.
24260
24261 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24262 string, if appropriate.
24263 (empty_unibyte_string, empty_multibyte_string): New externs.
24264 (empty_string): Remove extern.
24265
24266 * lread.c (syms_of_lread): Use empty_unibyte_string.
24267
24268 2007-06-07 Jason Rumney <jasonr@gnu.org>
24269
24270 * s/ms-w32.h: Don't define HAVE_TZNAME.
24271
24272 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24273
24274 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24275
24276 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24277
24278 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24279 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24280
24281 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24282 Don't call next handler.
24283 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24284 Remove argument. Install handler to application.
24285 (set_frame_menubar): Don't change deep_p.
24286 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24287 FRAME_OUTER_TO_INNER_DIFF_Y.
24288 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24289 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24290 [HAVE_DIALOGS]: New macros.
24291 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24292 Use them.
24293 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24294
24295 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24296 init_service_handler. All callers changed. Return OSStatus value.
24297
24298 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24299 All callers changed so as not to call SetPortWindowPort.
24300 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24301 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24302 mac_draw_string_common.
24303 (mac_draw_image_string_qd): Likewise.
24304 (mac_draw_string_common): Use them. Add INLINE.
24305 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24306 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24307 GetGlobalMouse.
24308 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24309 and FRAME_OUTER_TO_INNER_DIFF_Y.
24310 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24311 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24312 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24313 repositioning window to mac_handle_window_event.
24314 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24315 saving window location to mac_handle_window_event
24316 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24317 (install_menu_target_item_handler): Remove argument in extern.
24318 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24319 Also accept command events.
24320 (do_keystroke): New function created from XTread_socket.
24321 (init_command_handler): Remove functions.
24322 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24323 and save window location by kEventWindowShowing and kEventWindowHiding
24324 handlers here. Don't call next handler for window state change and
24325 focus events.
24326 (mac_handle_application_event, mac_handle_keyboard_event)
24327 [TARGET_API_MAC_CARBON]: New functions.
24328 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24329 kEventWindowShowing and kEventWindowHiding events. Move installation
24330 of mouse, font, text input and menu target item handlers to
24331 install_application_handler.
24332 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24333 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24334 New function.
24335 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24336 Register it.
24337 (XTread_socket) [TARGET_API_MAC_CARBON]:
24338 Consolidate SendEventToEventTarget calls.
24339 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24340 Move application activation handler to mac_handle_application_event.
24341 Move keyboard handler to mac_handle_keyboard_event.
24342 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24343 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24344 init_command_handler. Call install_application_handler.
24345
24346 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24347 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24348
24349 2007-06-07 Glenn Morris <rgm@gnu.org>
24350
24351 * emacs.c (main): Use `emacs-copyright' in --version output.
24352
24353 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
24354
24355 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24356
24357 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24358
24359 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24360
24361 * macgui.h: Replace WindowPtr with WindowRef.
24362
24363 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24364 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24365 Replace ControlHandle with ControlRef.
24366 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24367
24368 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24369 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24370 Replace ControlHandle with ControlRef.
24371 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24372 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24373
24374 * macterm.h (struct scroll_bar): Rename member control_handle_low
24375 and control_handle_high to control_ref_low and control_ref_high.
24376 All uses changed.
24377 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24378 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24379 respectively. All uses changed.
24380 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24381 (install_window_handler, remove_window_handler): Replace WindowPtr
24382 with WindowRef in externs.
24383
24384 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
24385
24386 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24387
24388 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
24389
24390 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24391
24392 * frame.c (Fmouse_position, Fmouse_pixel_position):
24393 Condition on HAVE_GPM too.
24394
24395 * term.c (term_mouse_highlight): Remove unused variables.
24396 (Fterm_open_connection): Set gpm_zerobased to 1.
24397 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24398 Use zero based co-ordinates.
24399 (handle_one_term_event): Report a drag as mouse movement too.
24400
24401 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24402
24403 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
24404
24405 * image.c (search_image_cache): New function. Require background
24406 color match if background color is unspecified in the image spec.
24407 (uncache_image, lookup_image): Use it.
24408
24409 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
24410
24411 * window.c (Fshrink_window): Reflow docstring.
24412
24413 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
24414
24415 * Version 22.1 released.
24416
24417 2007-06-01 Richard Stallman <rms@gnu.org>
24418
24419 * xfns.c (x_encode_text): Add GCPRO.
24420
24421 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24422
24423 * xfns.c (x_set_name_internal): Save encoded name before
24424 x_encode_text in case string data is relocated.
24425
24426 2007-05-31 Richard Stallman <rms@gnu.org>
24427
24428 * buffer.c (syms_of_buffer): Doc fix.
24429
24430 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
24431
24432 * sysdep.c (init_sys_modes): Add rather than replace with
24433 O_NONBLOCK.
24434
24435 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24436 term_mouse_moveto.
24437
24438 * termhooks.h (term_mouse_moveto): New extern.
24439
24440 * term.c (mouse_face_window): Rename...
24441 (Qmouse_face_window): ...to this.
24442 (term_show_mouse_face, term_clear_mouse_face)
24443 (term_mouse_highlight): Use Qmouse_face_window.
24444 (term_mouse_moveto): New function.
24445 (term_mouse_position): Make it work.
24446 (syms_of_term): Uncomment assignment to mouse_position_hook.
24447 Staticpro Qmouse_face_window.
24448
24449 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24450
24451 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24452 around current_column call.
24453
24454 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24455
24456 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24457 * xdisp.c (next_element_from_buffer):
24458 * window.c (delete_window):
24459 * term.c (term_mouse_highlight):
24460 * msdos.c (getdefdir):
24461 * macterm.c (mac_create_bitmap_from_bitmap_data)
24462 (init_font_name_table):
24463 * fns.c (Fsxhash):
24464 * data.c (Fmake_local_variable):
24465 * ccl.c (ccl_driver): Likewise.
24466
24467 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24468
24469 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24470 Call mac_wakeup_from_rne on window size change.
24471
24472 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
24473
24474 * image.c (uncache_image): Fix typo.
24475
24476 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24477
24478 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24479
24480 2007-05-22 Richard Stallman <rms@gnu.org>
24481
24482 * xterm.c (x_connection_closed): Remove NO_RETURN.
24483
24484 2007-05-22 Martin Rudalics <rudalics@gmx.at>
24485
24486 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24487
24488 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
24489
24490 * image.c (uncache_image): New function.
24491 (Fimage_refresh): New function.
24492
24493 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24494
24495 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24496
24497 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24498
24499 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24500 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24501
24502 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24503
24504 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24505 conditional on [HAVE_GPM_H].
24506
24507 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24508
24509 * syntax.c (skip_chars): Update syntax-table only after we checked that
24510 the new location is valid.
24511
24512 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24513
24514 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24515 mac_get_window_bounds.
24516
24517 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24518
24519 * Makefile.in (LIBGPM): Allow it to be set from configure.
24520 If set then link Emacs with it.
24521
24522 * config.in: Regenerate.
24523
24524 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24525 New externs.
24526
24527 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24528 Include gpm.h.
24529 (handle_one_term_event, term_gpm): New externs.
24530
24531 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24532 and allow it to be interrupted by SIGIO.
24533
24534 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24535 (wait_reading_process_output): Wait on gpm_fd too.
24536 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24537 (add_gpm_wait_descriptor_called_flag): New variable.
24538 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24539
24540 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24541 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24542 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24543 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24544 (make_lispy_event): Add case GPM_CLICK_EVENT.
24545 (read_avail_input): Handle mouse input.
24546
24547 * term.c (write_glyphs_with_face): New function.
24548 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24549 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24550 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24551 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24552 (last_mouse_x, last_mouse_y): New variables.
24553 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24554 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24555 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24556 (Fterm_close_connection): New functions.
24557 (term_init): Initialise mouse_face_window.
24558
24559 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
24560
24561 * xdisp.c (redisplay_window): If first window line is a
24562 continuation line, recompute the new window start instead of
24563 recentering.
24564
24565 2007-05-18 Glenn Morris <rgm@gnu.org>
24566
24567 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24568 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24569
24570 2007-05-17 Glenn Morris <rgm@gnu.org>
24571
24572 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24573
24574 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24575
24576 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24577 dead key repeat and up events.
24578
24579 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
24580
24581 * image.c (pbm_load): Check image size for monochrome pbm.
24582
24583 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
24584
24585 * xterm.c (XTread_socket): Revert last change.
24586
24587 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
24588
24589 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24590
24591 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24592
24593 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24594
24595 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24596 mixup (YAILOM).
24597
24598 2007-05-07 Andreas Schwab <schwab@suse.de>
24599
24600 * keymap.c (Flookup_key): Fix typo in last change.
24601
24602 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24603
24604 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24605 mapping for unibyte strings.
24606
24607 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24608
24609 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24610 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24611
24612 2007-04-29 Richard Stallman <rms@gnu.org>
24613
24614 * insdel.c (replace_range): For undo, record insertion first.
24615
24616 2007-04-29 Andreas Schwab <schwab@suse.de>
24617
24618 * lisp.h (VECSIZE): Use OFFSETOF.
24619
24620 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24621
24622 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24623 disabled lines.
24624
24625 2007-04-28 Richard Stallman <rms@gnu.org>
24626
24627 * lread.c (read_escape): In a string, \s is always space.
24628
24629 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24630
24631 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24632
24633 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24634 submenu for menu bar items.
24635
24636 See ChangeLog.10 for earlier changes.
24637
24638 ;; Local Variables:
24639 ;; coding: utf-8
24640 ;; add-log-time-zone-rule: t
24641 ;; End:
24642
24643 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
24644
24645 This file is part of GNU Emacs.
24646
24647 GNU Emacs is free software: you can redistribute it and/or modify
24648 it under the terms of the GNU General Public License as published by
24649 the Free Software Foundation, either version 3 of the License, or
24650 (at your option) any later version.
24651
24652 GNU Emacs is distributed in the hope that it will be useful,
24653 but WITHOUT ANY WARRANTY; without even the implied warranty of
24654 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24655 GNU General Public License for more details.
24656
24657 You should have received a copy of the GNU General Public License
24658 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24659
24660 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40