* configure.in (getenv): Remove K&R declaration.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c0f2f16b
DN
12010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Make the function member of Lisp_Subr use standard C prototypes.
4 * lisp.h (struct Lisp_Subr): Use a union for the function member.
5 (DECL_ALIGN): Add a cast for the function.
6 * eval.c (Feval, Ffuncall): Use the proper type for each type
7 function call.
8
67aecef9
CY
92010-07-06 Chong Yidong <cyd@stupidchicken.com>
10
11 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
12 fringe face id, so face-remapping-alist works (Bug#6091).
13
b56ceb92
JB
142010-07-06 Juanma Barranquero <lekktu@gmail.com>
15
16 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
17 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
18 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
19
7af07b96
AS
202010-07-06 Andreas Schwab <schwab@linux-m68k.org>
21
22 * xterm.c (x_get_keysym_name): Change type of parameter to int.
23 * lisp.h: Declare x_get_keysym_name.
24 * keyboard.c (modify_event_symbol): Don't declare
25 x_get_keysym_name here.
26
69e24e34
DN
272010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
28
29 * ecrt0.c: Revert conversion to standard C.
30
d3da34e0 312010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
32
33 * vm-limit.c (memory_warnings):
34 * keyboard.c (modify_event_symbol):
35 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
36 (round2, emacs_rint):
37 * process.c (send_process, old_sigpipe): Convert function
38 definitions and declarations to standard C.
39
402010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
41
42 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
43 * xdisp.c: Convert function definitions to standard C.
44
45 * cm.c (cmputc): Arg C is now int, not char.
46 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
47
00be444c
J
482010-07-05 James Cloos <cloos@jhcloos.com>
49
50 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
51
52 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
53 _NET_WM_ICON_NAME atoms.
54
55 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
56 and _NET_WM_ICON_NAME properties, too, matching what is
57 done in the Gtk+ case.
58
e4c8d29a
J
592010-07-05 Jan Djärv <jan.h.d@swipnet.se>
60
ff919460
J
61 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
62
e4c8d29a
J
63 * xsmfns.c (SSDATA): New macro.
64 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
65 passed to strlen/strcpy/strcat.
66 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
67 7:th arg to XChangeProperty to (unsigned char *)
68
69 * xsettings.c (something_changedCB, parse_settings)
70 (apply_xft_settings): Reformat prototype.
71 (something_changedCB, init_gconf): Remove unused variable i.
72 (read_settings): Remove unused variable long_len.
73
74 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
75 (xg_get_image_for_pixmap, create_dialog)
76 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
77 (menuitem_highlight_callback, make_menu_item)
78 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
79 (xg_create_scroll_bar, xg_update_scrollbar_pos)
80 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
81 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
82 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
83 (xg_tool_bar_item_expose_callback): Reformat prototype.
84 (xg_update_menubar): GList *group => GSList *group.
85 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
86 before use.
87 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
88 to GTK_IMAGE (wimage).
89
dd4c5104
DN
902010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
91
898b4c5c
DN
92 * atimer.c: Use "" instead of <> for local includes for
93 consistency with the rest of the code.
94
dd4c5104
DN
95 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
96 * xrdb.c (get_system_name):
97 * window.c (shrink_windows):
98 * syntax.c (forw_comment):
99 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
100 (ins_del_costs):
101 * mem-limits.h (start_of_data):
102 * lread.c (readevalloop):
103 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
104 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
105 * frame.c (x_get_focus_frame):
106 * floatfns.c (fmod_float):
107 * fileio.c (choose_write_coding_system):
108 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
109 (malloc_initialize_hook, sort_args, synchronize_locale):
110 * doprnt.c (doprnt):
111 * dired.c (compile_pattern):
112 * data.c (fmod_float):
113 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
114 (map_char_table_for_charset):
115 * charset.c (define_charset_internal):
116 * alloc.c (Fgarbage_collect): Convert declarations or definitions
117 to standard C.
118
9a39b306 1192010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 120 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
121
122 * lread.c (read1): Fix up last change to not mess up `c'.
123
e6cb2cbb
JB
1242010-07-04 Juanma Barranquero <lekktu@gmail.com>
125
126 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
127
438105ed
JB
1282010-07-04 Juanma Barranquero <lekktu@gmail.com>
129
130 Fix prototypes.
131
e5447b22 132 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 133 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
134 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
135 arg, as required by internal_condition_case_1.
dcc7404b 136 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
137 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
138 (analyse_first): Fix "const const".
e5447b22 139 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 140 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 141 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 142
971de7fb
DN
1432010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
144
145 * alloc.c: Convert function definitions to standard C.
146 * atimer.c:
147 * bidi.c:
148 * bytecode.c:
149 * callint.c:
150 * callproc.c:
151 * casefiddle.c:
152 * casetab.c:
153 * category.c:
154 * ccl.c:
155 * character.c:
156 * charset.c:
157 * chartab.c:
158 * cmds.c:
159 * coding.c:
160 * composite.c:
161 * data.c:
162 * dbusbind.c:
163 * dired.c:
164 * dispnew.c:
165 * doc.c:
166 * doprnt.c:
167 * ecrt0.c:
168 * editfns.c:
169 * fileio.c:
170 * filelock.c:
171 * filemode.c:
172 * fns.c:
173 * font.c:
174 * fontset.c:
175 * frame.c:
176 * fringe.c:
177 * ftfont.c:
178 * ftxfont.c:
179 * gtkutil.c:
180 * indent.c:
181 * insdel.c:
182 * intervals.c:
183 * keymap.c:
184 * lread.c:
185 * macros.c:
186 * marker.c:
187 * md5.c:
188 * menu.c:
189 * minibuf.c:
190 * prefix-args.c:
191 * print.c:
192 * ralloc.c:
193 * regex.c:
194 * region-cache.c:
195 * scroll.c:
196 * search.c:
197 * sound.c:
198 * strftime.c:
199 * syntax.c:
200 * sysdep.c:
201 * termcap.c:
202 * terminal.c:
203 * terminfo.c:
204 * textprop.c:
205 * tparam.c:
206 * undo.c:
207 * unexelf.c:
208 * window.c:
209 * xfaces.c:
210 * xfns.c:
211 * xfont.c:
212 * xftfont.c:
213 * xgselect.c:
214 * xmenu.c:
215 * xrdb.c:
216 * xselect.c:
217 * xsettings.c:
218 * xsmfns.c:
219 * xterm.c: Likewise.
220
ae492bec
EZ
2212010-07-03 Eli Zaretskii <eliz@gnu.org>
222
76ea4cc9
EZ
223 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
224 frames other than the initial one. Fix reversal of colors when
225 `reverse' is specified in the frame parameters. Call
226 update_face_from_frame_parameter instead of
227 internal-set-lisp-face-attribute. Initialize screen colors from
228 initial_screen_colors[] when f->default_face_done_p is zero,
229 instead of depending on being called with default-frame-alist as
230 the alist argument.
231
232 * xfaces.c (update_face_from_frame_parameter): Move out of
233 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
234 with HAVE_WINDOW_SYSTEM.
235
1e6255ae
EZ
236 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
237 to menu-bar-mode, if not set in the frame parameters or in
238 default-frame-alist.
239
ae492bec
EZ
240 * w32console.c (sys_tputs): Adjust argument list to prototype in
241 term.c.
242
3a35a84c
JB
2432010-07-03 Juanma Barranquero <lekktu@gmail.com>
244
245 * lisp.h (memory_warnings): Fix prototype.
246
247 * cm.h (evalcost): Fix prototype.
248
249 * cm.c (evalcost): Fix arg type.
250
c532d349
DN
2512010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
252
253 * term.c (term_clear_mouse_face, Fidentity):
254 * syssignal.h (signal_handler_t):
255 * lisp.h (memory_warnings):
256 * coding.h (preferred_coding_system):
257 * cm.h (evalcost):
258 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
259
c0b36d46
EZ
2602010-07-02 Eli Zaretskii <eliz@gnu.org>
261
262 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
263 from prototypes.
264
265 * msdos.h (load_pixmap): Don't define away.
266
383e0970
J
2672010-07-02 Jan Djärv <jan.h.d@swipnet.se>
268
f57e2426
J
269 * lisp.h:
270 * atimer.h: Remove define for P_.
271
272 * alloc.c: Remove __P and P_ from .c and .m files.
273 * atimer.c:
274 * buffer.c:
275 * callint.c:
276 * category.c:
277 * charset.c:
278 * chartab.c:
279 * cm.c:
280 * coding.c:
281 * composite.c:
282 * data.c:
283 * dired.c:
284 * dispnew.c:
285 * doc.c:
286 * editfns.c:
287 * emacs.c:
288 * eval.c:
289 * fileio.c:
290 * filelock.c:
291 * fns.c:
292 * font.c:
293 * fontset.c:
294 * frame.c:
295 * ftfont.c:
296 * ftxfont.c:
297 * gmalloc.c:
298 * gtkutil.c:
299 * image.c:
300 * indent.c:
301 * intervals.c:
302 * keyboard.c:
303 * keymap.c:
304 * lread.c:
305 * marker.c:
306 * menu.c:
307 * minibuf.c:
308 * print.c:
309 * process.c:
310 * scroll.c:
311 * search.c:
312 * sound.c:
313 * strftime.c:
314 * syntax.c:
315 * sysdep.c:
316 * term.c:
317 * terminal.c:
318 * textprop.c:
319 * unexalpha.c:
320 * w32console.c:
321 * w32fns.c:
322 * w32font.c:
323 * w32menu.c:
324 * w32term.c:
325 * w32uniscribe.c:
326 * window.c:
327 * xdisp.c:
328 * xfaces.c:
329 * xfns.c:
330 * xfont.c:
331 * xftfont.c:
332 * xmenu.c:
333 * xselect.c:
334 * xterm.c: Likewise.
335
383e0970 336 Remove P_ and __P macros.
f57e2426
J
337 * atimer.h: Remove P_ and __P macros.
338 * buffer.h:
383e0970
J
339 * category.h:
340 * ccl.h:
341 * character.h:
342 * charset.h:
343 * cm.h:
344 * coding.h:
345 * composite.h:
346 * dispextern.h:
347 * disptab.h:
9e892c8d 348 * dosfns.h:
383e0970
J
349 * font.h:
350 * fontset.h:
351 * frame.h:
352 * gtkutil.h:
353 * indent.h:
354 * intervals.h:
355 * keyboard.h:
356 * keymap.h:
357 * lisp.h:
358 * macros.h:
359 * md5.h:
360 * menu.h:
361 * msdos.h:
362 * nsterm.h:
363 * puresize.h:
364 * region-cache.h:
365 * syntax.h:
366 * syssignal.h:
367 * systime.h:
368 * termhooks.h:
9e892c8d 369 * w32font.h:
383e0970
J
370 * w32term.h:
371 * widget.h:
372 * window.h:
373 * xgselect.h:
374 * xsettings.h:
375 * xterm.h: Likewise.
376
98601119
DN
3772010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
378
d9170db5
DN
379 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
380
98601119
DN
381 Cleanup old code.
382 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
383 * syssignal.h: Remove code for Lynx, not supported anymore.
384 * vm-limit.c: Remove unused code the depends on emacs not being
385 defined and NO_LIM_DATA being defined.
386 * mem-limits.h: Remove dead code.
387
1f984e12
J
3882010-07-01 Jan Djärv <jan.h.d@swipnet.se>
389
c49d071a
J
390 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
391
9d5405ec
J
392 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
393 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
394
7a18115b
J
395 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
396 parameters, they are already absolute.
397
581a8100
J
398 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
399 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
400
401 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
402
403 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
404 FRAME_TOOLBAR_HEIGHT.
405
1f984e12
J
406 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
407 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
408
c1ef4455
CY
4092010-06-30 Chong Yidong <cyd@stupidchicken.com>
410
411 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
412 check default-frame-alist.
413
ce8f5a9a
AS
4142010-06-30 Andreas Schwab <schwab@linux-m68k.org>
415
416 * process.c (create_process): Avoid using invalid file descriptors.
417
418 * callproc.c (child_setup): Avoid closing a file descriptor twice.
419
bf935339
J
4202010-06-30 Jan Djärv <jan.h.d@swipnet.se>
421
422 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
423 Improve documentation. Return font regardless of use_system_font.
424 (syms_of_xsettings): Improve documentation for font-use-system-font.
425
769e9d47
KH
4262009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
427
428 * xftfont.c (xftfont_open): Check font width one by one also when
429 spacing is dual.
430
431 * ftfont.c (ftfont_open): Ditto.
432
6259c2ec
GM
4332010-06-30 Glenn Morris <rgm@gnu.org>
434
a46007e9
GM
435 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
436
6259c2ec
GM
437 * Makefile.in (CANNOT_DUMP): Update for configure name change.
438
439 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
440 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
441 * s/darwin.h (SYSTEM_MALLOC):
442 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
443
5d1d3d04
J
4442010-06-29 Jan Djärv <jan.h.d@swipnet.se>
445
446 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
447 (ns_get_screen): Don't assign integer to f.
448 (Fx_display_color_cells): Declarations before statements.
449
e547b051
J
4502010-06-28 Jan Djärv <jan.h.d@swipnet.se>
451
5fc8e5bc
J
452 * xfns.c (x_default_font_parameter): Remove got_from_system
453 (Bug#6526).
454
e547b051
J
455 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
456 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
457 defines based on what configure finds.
458
459 * xterm.c (XTflash): Use gtk_widget_get_window.
460 (xg_scroll_callback): Use gtk_adjustment_get_upper and
461 gtk_adjustment_get_page_size.
462 (handle_one_xevent): Use gtk_widget_get_mapped.
463 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
464 messages.
465
466 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
467
468 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
469 HAVE_GTK_FILE_SELECTION_NEW.
470
471 * gtkutil.c (xg_display_open, xg_display_close): Remove
472 HAVE_GTK_MULTIDISPLAY, it is always defined.
473 (xg_display_open): Return type is void.
474 (gtk_widget_set_has_window)
475 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
476 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
477 (gtk_adjustment_set_page_increment)
478 (gtk_adjustment_get_step_increment): #define these if not found
479 by configure.
480 (remove_submenu): New define based on Gtk+ version.
481 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
482 gtk_widget_get_window.
483 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
484 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
485 (create_dialog): Use gtk_dialog_get_action_area and
486 gtk_dialog_get_content_area.
487 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
488 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
489 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
490 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
491 g_object_ref and g_object_unref.
492 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
493 gtk_widget_get_sensitive.
494 (xg_update_submenu): Use remove_submenu.
495 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
496 properties instead to get old x and y position.
497 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
498 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 499 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
500 (xg_get_tool_bar_widgets): New function.
501 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
502 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
503 (toolbar_set_orientation): New #define based on if configure
504 finds gtk_orientable_set_orientation.
505 (xg_create_tool_bar): Call toolbar_set_orientation.
506 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
507 instead of gtk_box_pack_start_defaults.
508
b9229673
CY
5092010-06-28 Chong Yidong <cyd@stupidchicken.com>
510
511 * cmds.c (Fdelete_backward_char): Move into Lisp.
512
bbc803b0
DN
5132010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
514
515 * s/freebsd.h (BSD4_2): Remove redundant definition.
516 bsd-common.h defines it already.
517
6431f2e6
CY
5182010-06-27 Chong Yidong <cyd@stupidchicken.com>
519
520 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
521 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
522 tool-bar-mode, which are now set using these X resources at
523 startup, to determine the defaults (Bug#2249).
524
525 * w32fns.c (Fx_create_frame):
526 * nsfns.m (Fx_create_frame): Likewise.
527
528 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
529
8c079ebb
JB
5302010-06-24 Juanma Barranquero <lekktu@gmail.com>
531
532 * gtkutil.c (xg_update_scrollbar_pos):
533 Avoid C99 mid-block variable declaration.
534
e9b7ab96
JD
5352010-06-22 Jan Djärv <jan.h.d@swipnet.se>
536
bc869eca
JD
537 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
538
2b7e356a 539 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
540
541 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
542 if height is less than scroll bar min size.
543 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
544
e9b7ab96
JD
545 * xfns.c (x_default_font_parameter): Try to open font from system
546 before using it (bug#6478). Rename got_from_gconf to got_from_system.
547
32a679fd
JD
5482010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
549
550 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
551
70c4cfbb
EZ
5522010-06-20 Eli Zaretskii <eliz@gnu.org>
553
554 * xdisp.c (try_scrolling): When scroll-conservatively is set to
555 most-positive-fixnum, be extra accurate when scrolling window
556 start, to avoid missing the cursor line.
557
ad5a12b5
EZ
5582010-06-19 Eli Zaretskii <eliz@gnu.org>
559
560 * xdisp.c (try_scrolling): Compute the limit for searching point
561 in forward scroll from scroll_max, instead of an arbitrary limit
562 of 10 screen lines. See
563 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
564 and
565 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
566 for details.
567
2a64315a 5682010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
569
570 * editfns.c (Fbyte_to_string): Pacify compiler.
571
288cf4e9
SM
5722010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
573
574 * lread.c (read1): Phase out old-style backquotes a bit more.
575
6e6e5760
EZ
5762010-06-12 Eli Zaretskii <eliz@gnu.org>
577
cbc4fd20
EZ
578 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
579 bidimirror.h.
580
581 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
582
317fbf33
EZ
583 * bidi.c (bidi_initialize): Remove explicit initialization of
584 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 585 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 586 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
587
588 * biditype.h: New file.
589
cbc4fd20
EZ
590 * bidimirror.h: New file.
591
6e6e5760
EZ
592 * window.c (syms_of_window): Doc fix (bug#6409).
593
4176cba2
RF
5942010-06-12 Romain Francoise <romain@orebokech.com>
595
596 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
597 ediff-hook.
598
cb4bfcb5
GM
5992010-06-10 Glenn Morris <rgm@gnu.org>
600
64c60c2f
GM
601 * editfns.c (Fbyte_to_string): Pacify compiler.
602
cb4bfcb5
GM
603 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
604
e454a4a3
SM
6052010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
606
607 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
608 Check `object's type before accessing its guts.
609
c1b1acc2
DN
6102010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
611
612 * s/usg5-4.h: Fix previous change.
613 Suggested by Lawrence Mitchell <wence@gmx.li>
614
657d4c0b
AS
6152010-06-08 Andreas Schwab <schwab@linux-m68k.org>
616
617 * minibuf.c (Fall_completions): Add more checks.
618
9b27fd9f
JB
6192010-06-08 Juanma Barranquero <lekktu@gmail.com>
620
621 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
622
a99ebb40
DN
6232010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
624
d7c5d87d
DN
625 * lread.c (X_OK): Remove, unused.
626
0263a941
DN
627 * dispnew.c: Remove obsolete comment.
628
a99ebb40
DN
629 Remove INCLUDED_FCNTL.
630 * xterm.c (INCLUDED_FCNTL):
631 * callproc.c (INCLUDED_FCNTL):
632 * alloc.c (INCLUDED_FCNTL):
633 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
634 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
635
13b5221f
MR
6362010-06-07 Martin Rudalics <rudalics@gmx.at>
637
638 * window.c (Fselect_window): Move `record_buffer' up to the
639 beginning of this function, so the buffer gets recorded
640 even if the selected window does not change.
641 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
642
5220357f
JB
6432010-06-07 Juanma Barranquero <lekktu@gmail.com>
644
645 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
646 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
647
3085237c
DN
6482010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
649
650 Remove BSTRING related code, all platforms define it.
651 * s/usg5-4.h (BSTRING): Remove definition.
652 * s/template.h (BSTRING):
653 * s/msdos.h (BSTRING):
654 * s/ms-w32.h (BSTRING):
655 * s/hpux10-20.h (BSTRING):
656 * s/gnu-linux.h (BSTRING):
657 * s/darwin.h (BSTRING):
658 * s/cygwin.h (BSTRING):
659 * s/bsd-common.h (BSTRING):
660 * s/aix4-2.h (BSTRING): Likewise.
661 * sysdep.c: Remove code depending on BSTRING not being defined.
662
409f2919
JB
6632010-06-05 Juanma Barranquero <lekktu@gmail.com>
664
665 Remove obsolete macro BASE_LEADING_CODE_P.
666 * character.h (BASE_LEADING_CODE_P): Remove.
667 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
668 * buffer.c (Fset_buffer_multibyte):
669 * indent.c (scan_for_column, compute_motion):
670 * insdel.c (count_combining_before, count_combining_after):
671 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
672
087fc47a
JB
6732010-06-04 Juanma Barranquero <lekktu@gmail.com>
674
675 Turn `directory-sep-char' into a noop.
676
677 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
678 (DIRECTORY_SEP): Define unconditionally.
679
680 * s/ms-w32.h (DIRECTORY_SEP): Remove.
681
682 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
683 call dostounix_filename directly.
684
685 * fileio.c (CORRECT_DIR_SEPS): Remove.
686 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
687 (Fsubstitute_in_file_name): Use dostounix_filename instead.
688 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
689 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
690
691 * w32proc.c (CORRECT_DIR_SEPS): Remove.
692 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
693
0eb7675e
AS
6942010-06-03 Andreas Schwab <schwab@linux-m68k.org>
695
696 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 697 address. (Bug#6346)
0eb7675e 698
78edd3b7
JB
6992010-06-03 Juanma Barranquero <lekktu@gmail.com>
700
701 * ccl.c (Fccl_program_p): Fix typo in docstring.
702
eb697db5
DN
7032010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
704
705 Move UNEXEC definition to autoconf.
706 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
707 * s/sol2-10.h (UNEXEC):
708 * s/irix6-5.h (UNEXEC):
709 * s/hpux10-20.h (UNEXEC):
710 * s/gnu-linux.h (UNEXEC):
711 * s/darwin.h (UNEXEC):
712 * s/cygwin.h (UNEXEC):
713 * s/bsd-common.h (UNEXEC):
714 * s/aix4-2.h (UNEXEC):
715 * m/alpha.h (UNEXEC): Likewise.
716 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
717
aa3830c4
JB
7182010-06-03 Juanma Barranquero <lekktu@gmail.com>
719
720 Remove obsolete pre-unicode2 macros.
721 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
722 * composite.c (composition_reseat_it):
723 * data.c (Faset):
724 * fns.c (Ffillarray):
725 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
726 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
727
d234d13e
JL
7282010-06-03 Juri Linkov <juri@jurta.org>
729
730 * buffer.c (Fother_buffer): Add CHECK_FRAME.
731 (Fswitch_to_buffer): Remove unused variable `err'.
732
0d4bcf4d
GM
7332010-06-03 Glenn Morris <rgm@gnu.org>
734
e23dc1e2
GM
735 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
736
05b09564
GM
737 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
738 now that AH_BOTTOM does it.
739
824e2978
GM
740 * m/hp800.h (HAVE_ALLOCA):
741 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
742
0d4bcf4d
GM
743 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
744 Remove NOT_C_CODE tests, it is always true now.
745
c55d2abf
DN
7462010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
747
08a494a3
DN
748 Fix config.h includes.
749 * xsettings.c:
750 * xgselect.c:
751 * nsterm.m:
752 * nsselect.m:
753 * nsimage.m:
754 * nsfont.m:
755 * nsfns.m:
756 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
757 other files do.
758
75934b1d
DN
759 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
760
9f32a766
DN
761 * s/sol2-6.h: Remove obsolete comments.
762
c55d2abf
DN
763 Remove unnecessary alloca.h includes.
764 * keymap.c: Do not include alloca.h, config.h does that.
765 * sysdep.c: Likewise. Do not define fwrite, not used.
766
06ac62b4
SM
7672010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
768
769 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
770 the HAVE_TERMIO where it belongs (bug#6149).
771
1ab8293c
SM
7722010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
773
774 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
775 of bug#6305).
776
6dcfd253
EZ
7772010-05-30 Eli Zaretskii <eliz@gnu.org>
778
779 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
780 state is always cached (bug#6306).
781
6d26bbb2
EZ
7822010-05-29 Eli Zaretskii <eliz@gnu.org>
783
06fa4a23
EZ
784 Fix cursor motion in bidi-reordered continued lines.
785 * xdisp.c (try_cursor_movement): Backup to non-continuation line
786 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
787 over continuation lines in bidi-reordered buffers. Return
788 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
789 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
790
f5783df3
MA
7912010-05-28 Michael Albinus <michael.albinus@gmx.de>
792
793 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
794
7d56b2dd
KH
7952010-05-28 Kenichi Handa <handa@m17n.org>
796
797 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
798 Don't sheck SPEC if it is nil.
799 (font_list_entities): Call font_delete_unmatched if
b925d231 800 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 801
e58d4ff7
GM
8022010-05-28 Glenn Morris <rgm@gnu.org>
803
804 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
805
f1a5d776
CY
8062010-05-27 Chong Yidong <cyd@stupidchicken.com>
807
808 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
809 whether to trash.
810 (internal_delete_file, Frename_file): Callers changed.
811 (delete_by_moving_to_trash): Doc fix.
812 (Fdelete_directory_internal): Don't move to trash.
813
814 * callproc.c (delete_temp_file):
815 * buffer.c (Fkill_buffer): Callers changed.
816
817 * lisp.h: Update prototype.
818
f44a59e6
CY
8192010-05-27 Chong Yidong <cyd@stupidchicken.com>
820
821 * xdisp.c (redisplay_window): After redisplay, check if point is
822 still valid before setting it (Bug#6177).
823
81ac4f35
GM
8242010-05-27 Glenn Morris <rgm@gnu.org>
825
826 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
827 Convert comments to Makefile format.
828
829 * Makefile.in (bootstrap-clean): No more Makefile.c.
830
ccd89fb3
GM
8312010-05-26 Glenn Morris <rgm@gnu.org>
832
90278cb6
GM
833 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
834 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
835
ccd89fb3
GM
836 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
837 Remove.
838 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
839
b7050583
KH
8402010-05-26 Kenichi Handa <handa@m17n.org>
841
842 * composite.c (composition_compute_stop_pos): Fix condition for
843 backward scanning.
844
e5458003
GM
8452010-05-25 Glenn Morris <rgm@gnu.org>
846
c345fe90
GM
847 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
848 Move before TEMACS_LDFLAGS.
849 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
850 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
851
2e0689ab
GM
852 * Makefile.in (NOT_C_CODE): No longer define.
853 (config.h): No longer include.
854
8009a5e8
GM
855 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
856 variables it may reference.
857
e5458003
GM
858 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
859 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
860
10f72a37
KH
8612010-05-25 Kenichi Handa <handa@m17n.org>
862
863 * dispextern.h (struct composition_it): New members rule_idx and
864 charpos.
865
866 * xdisp.c (set_iterator_to_next): While scanning backward, assume
867 that the character positions of IT point the last character of the
868 current grapheme cluster.
869 (next_element_from_composition): Don't change character positions
870 of IT.
871 (append_composite_glyph): Set glyph->charpos to
872 it->cmp_it.charpos.
873
874 * composite.c (autocmp_chars): Change the first argument to RULE,
875 and try composition with RULE only.
876 (composition_compute_stop_pos): Record the index number of the
877 composition rule in CMP_IT->rule_idx.
878 (composition_reseat_it): Call autocmp_chars repeatedly until the
879 correct rule of the composition is found.
880 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
881 is at the last character of the current grapheme cluster when
882 CMP_IT->reversed_p is nonzero.
883
171eda53 8842010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 885
171eda53
SM
886 * editfns.c (Fbyte_to_string): New function.
887
66a9f7f4
SM
8882010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
889
890 * process.c (Fmake_network_process): Set :host to nil if it's not used.
891 Suggested by Masatake YAMATO <yamato@redhat.com>.
892
d8c315d1
EZ
8932010-05-23 Eli Zaretskii <eliz@gnu.org>
894
171eda53 895 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 896
f5b416d2 8972010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
898
899 * s/netbsd.h: If terminfo is found, use it in preference to
900 termcap. (Bug#6190) [Backport from trunk]
901
0416466c
EZ
9022010-05-19 Eli Zaretskii <eliz@gnu.org>
903
11117830 904 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
905
906 * dispextern.h (struct glyph_row): New members minpos and maxpos.
907 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
908 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
909 and maxpos members instead of start.pos and end.pos, respectively.
910
911 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
912 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
913 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
914 (try_window_reusing_current_matrix, try_window_id):
915 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
916 (init_from_display_pos, init_iterator): Use EMACS_INT for
917 character and byte positions.
66a9f7f4 918 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
919 arguments for minimum and maximum buffer positions seen by
920 display_line for this row. Don't use iterator to find the
921 position following the maximum one; instead, increment the
11117830
EZ
922 position found by display_line directly. Fix logic; eol_pos
923 should be tested before the rest. Handle the case of characters
924 delivered from display vector (bug#6036). Fix tests related to
925 it->method. Handle the truncated_on_right_p rows.
926 (RECORD_MAX_MIN_POS): New macro.
927 (display_line): Use it to record the minimum and maximum buffer
928 positions for glyphs in the row being assembled. Record the
929 position of the newline that terminates the line. If word wrap is
930 in effect, restore minimum and maximum positions seen up to the
931 wrap point, when iterator returns to it.
932 (try_window_reusing_current_matrix): Give up if in bidi-reordered
933 row and cursor not already at point. Restore original pre-bidi
934 code for unidirectional buffers.
d36fe237
EZ
935
936 * dispnew.c (increment_row_positions, check_matrix_invariants):
937 Increment and check row->start.pos and row->end.pos, in addition
938 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
939
11117830
EZ
940 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
941 Display truncated_on_left_p and truncated_on_right_p flags.
942 Formatting fixes.
943 (pmtxrows): Display the ordinal number of each row. Don't display
944 rows beyond the last one.
945
946 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
947 it is not copied by bidi_copy_it.
948
6e83d800
EZ
9492010-05-22 Eli Zaretskii <eliz@gnu.org>
950
951 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
952 (Bug#6237)
953
110683ad
CY
9542010-05-22 Chong Yidong <cyd@stupidchicken.com>
955
956 * image.c (Fimage_flush): Rename from image-refresh.
957
98fe5161
CY
9582010-05-21 Chong Yidong <cyd@stupidchicken.com>
959
960 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
961 just one window.
962
963 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
964 (clear_image_cache): If the number of cached images is unusually
965 large, decrease the cache eviction delay (Bug#6230).
966
e8752c66
GM
9672010-05-21 Glenn Morris <rgm@gnu.org>
968
66dbf213
GM
969 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
970 Move these rules to ns.mk.
971 * ns.mk: New file.
972
04384b2d
GM
973 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
974
e8752c66
GM
975 * Makefile.in (CANNOT_DUMP): New, set by configure.
976 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
977
2e2bbddb
JL
9782010-05-20 Juri Linkov <juri@jurta.org>
979
980 * fileio.c (Fdelete_file): Change interative spec to use
981 `read-file-name' like in `find-file-read-args' where the default
982 value is `default-directory' instead of `buffer-file-name'.
983 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
984
31c4aaf6
KR
9852010-05-20 Kevin Ryde <user42@zip.com.au>
986
987 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
988 (Voverriding_terminal_local_map, Vsystem_key_alist)
989 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
990
9d5cf9b6
GM
9912010-05-20 Glenn Morris <rgm@gnu.org>
992
993 * Makefile.in (DEPDIR): New constant.
994 (DEPFLAGS): Set with configure, not cpp.
995 (MKDEPDIR): New, set by configure.
996 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
997 (clean): Use $DEPDIR.
998 (deps_frag): Include from configure.
999 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1000 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1001
ead6f8f5
EZ
1002 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1003 reallocation of the cache. (Bug#6210)
1004
7f34aec3
GM
10052010-05-19 Glenn Morris <rgm@gnu.org>
1006
d494e8f2
GM
1007 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1008
c1d0dcfd
GM
1009 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1010 (GNULIB_VAR): Remove.
1011 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1012
1013 * m/ibms390x.h (LINKER):
1014 * m/macppc.h (LINKER) [GNU_LINUX]:
1015 * s/aix4-2.h (ORDINARY_LINK):
1016 * s/cygwin.h (LINKER):
1017 * s/darwin.h (ORDINARY_LINK):
1018 * s/gnu.h (ORDINARY_LINK):
1019 * s/netbsd.h (LINKER):
1020 * s/usg5-4.h (ORDINARY_LINK):
1021 Move to configure.
1022
7f34aec3
GM
1023 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1024
754790b6
CY
10252010-05-18 Chong Yidong <cyd@stupidchicken.com>
1026
1027 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1028 prevent stack overflow if number of arguments is too large
1029 (Bug#6214).
1030
161e44d1
JB
10312010-05-18 Juanma Barranquero <lekktu@gmail.com>
1032
1033 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1034
be4ff9da
GM
10352010-05-18 Glenn Morris <rgm@gnu.org>
1036
9539dc5d
GM
1037 * s/gnu-linux.h: Combine two conditionals.
1038
1039 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1040 $(POST_ALLOC_OBJ).
1041
40dc6bf4
GM
1042 * Makefile.in (RALLOC_OBJ): New, set by configure.
1043 (rallocobj): Replace with the previous variable.
1044 (otherobj): Use $RALLOC_OBJ.
1045
1046 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1047 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1048
be4ff9da
GM
1049 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1050 (gmallocobj, vmlimitobj): Replace with previous two variables.
1051 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1052
16455a85
GM
10532010-05-17 Glenn Morris <rgm@gnu.org>
1054
1055 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1056 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1057
5fdb7468
GM
10582010-05-16 Glenn Morris <rgm@gnu.org>
1059
7ca1f3f9
GM
1060 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1061
7541dad5
GM
1062 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1063
da53fab9
GM
1064 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1065 trailing "/".
1066
b02a6645
GM
1067 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1068 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1069
8877ca0f
GM
1070 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1071 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1072 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1073 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1074 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1075
5fdb7468
GM
1076 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1077 Remove ${STARTFLAGS}, nothing ever sets it.
1078
95adb4b1
DN
10792010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1080
1081 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1082
676b6304
GM
10832010-05-16 Glenn Morris <rgm@gnu.org>
1084
9beab9ce
GM
1085 * Makefile.in (LIBX_BASE): Always define.
1086
8a95f0e7
GM
1087 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1088
676b6304
GM
1089 * Makefile.in (LIBXT): Always define.
1090
6e546d18
GM
10912010-05-15 Glenn Morris <rgm@gnu.org>
1092
4235ca47 1093 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1094
6e546d18
GM
1095 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1096 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1097
8c5ff6dd
KR
10982010-05-15 Ken Raeburn <raeburn@raeburn.org>
1099
560bb7ae 1100 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1101 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1102
8b4eb796
KR
1103 * emacs.c (main): Initialize initial-environment and
1104 process-environment before generating from env, not after.
1105
8c5ff6dd
KR
1106 Handle --version reasonably in CANNOT_DUMP configuration.
1107 * emacs.c (emacs_version, emacs_copyright): New string variables.
1108 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1109 (syms_of_emacs): Defvar them, and initialize them from the C
1110 string variables.
1111 (main): If initialization hasn't been done, print initial version
1112 info from the C strings, instead of starting an interactive session.
1113
dbd3f723
EZ
11142010-05-15 Eli Zaretskii <eliz@gnu.org>
1115
d20e1419
EZ
1116 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1117 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1118 (bidi_paragraph_init): Remove redundant assertion that we are at
1119 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1120
1121 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1122 (syms_of_xdisp): Defsubr it.
1123
d36fe237
EZ
1124 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1125
dbd3f723
EZ
1126 * Makefile.in: Fix MSDOS-related comments.
1127
02be533b
GM
11282010-05-15 Glenn Morris <rgm@gnu.org>
1129
1a82cca9
GM
1130 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1131 (really-lwlib, really-oldXMenu): Always define.
1132 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1133
3df7b338
GM
1134 * Makefile.in: Simplify cpp conditional.
1135
2b5f541b
GM
1136 * Makefile.in (${ns_appdir}): Simplify using umask.
1137
02be533b
GM
1138 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1139
4e2db1fe
SM
11402010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1141
1142 * eval.c (specbind): Remove left-over duplicate test.
1143 Disallow let-binding frame-local vars. Add comment.
1144
4b292a22
EZ
11452010-05-14 Eli Zaretskii <eliz@gnu.org>
1146
2fe72643 1147 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1148 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1149 (bidi_init_it): Call it.
1150 (bidi_cache_iterator_state): Enlarge the cache if needed.
1151
4e2db1fe 1152 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1153 bidi_get_next_char_visually. All callers changed.
1154
82ebc97b
KH
11552010-05-14 Kenichi Handa <handa@m17n.org>
1156
1157 * dispextern.h (struct composition_it): New member reversed_p.
1158
1159 * composite.c (composition_compute_stop_pos): Search backward if
1160 ENDPOS < CHARPOS.
1161 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1162 Set CMP_IT->reversed_p.
b4b6e17e 1163 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1164
4e2db1fe
SM
1165 * xdisp.c (set_iterator_to_next):
1166 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1167 scanning backward. Call composition_compute_stop_pos if scan
1168 direction is changed.
1169 (next_element_from_buffer): Call composition_compute_stop_pos with
1170 negative ENDPOS if we are scanning backward.
1171 (next_element_from_composition): Pay attention to
1172 IT->cmp_it.reversed_p.
1173
0e5d7800
KH
11742010-05-14 Kenichi Handa <handa@m17n.org>
1175
560bb7ae 1176 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1177
cb027b32
GM
11782010-05-14 Glenn Morris <rgm@gnu.org>
1179
177b0288
GM
1180 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1181
fbc00890
GM
1182 * Makefile.in (mktime, X11, register): Move undefs to configure.
1183
f14d1dfd
GM
1184 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1185 (MSDOS_X_OBJ): New variable.
1186 (MSDOS_SUPPORT_REAL): New constant.
1187 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1188 (obj): Use MSDOS_X_OBJ.
1189 (lisp): Use MSDOS_SUPPORT as a variable.
1190
11842bd8
GM
1191 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1192 (GPM_MOUSE_SUPPORT): Now it's a constant.
1193 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1194 not cpp.
1195
489d31a4 1196 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1197 (ns_appresdir): Remove, unused.
e20f1f07 1198
489d31a4
GM
1199 * Makefile.in (SHELL): Move outside cpp section.
1200
cb027b32
GM
1201 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1202
5a903aa9
GM
12032010-05-13 Glenn Morris <rgm@gnu.org>
1204
3369c79f
GM
1205 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1206 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1207
d5e982a6
GM
1208 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1209 HAVE_WINDOW_SYSTEM must be too.
1210
6192e163
GM
1211 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1212 (lisp): Remove WINNT_SUPPORT.
1213
472c5d6b
GM
1214 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1215 Let configure set these variables (to empty) in this case as well.
1216
0116466b
GM
1217 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1218 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1219
5a903aa9
GM
1220 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1221 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1222 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1223 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1224 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1225 the values output by configure.
5a903aa9
GM
1226 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1227
1a0d7c06
GM
12282010-05-12 Glenn Morris <rgm@gnu.org>
1229
b5457f14
GM
1230 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1231 (LINKER_WAS_SPECIFIED): Remove.
1232
1a0d7c06
GM
1233 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1234 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1235 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1236 * s/cygwin.h (LIB_GCC):
1237 * s/freebsd.h (LIB_GCC):
1238 * s/gnu-linux.h (LIB_GCC):
1239 * s/msdos.h (LIB_GCC):
1240 * s/netbsd.h (LIB_GCC):
1241 Move to configure.
1242
3ffd4615 12432010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1244
1245 * ftfont.c: Fix incorrect parentheses of #if condition for
1246 definining M17N_FLT_USE_NEW_FEATURE.
1247
acddf8ae
GM
12482010-05-11 Glenn Morris <rgm@gnu.org>
1249
1250 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1251 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1252
ae5e04fa
EZ
12532010-05-10 Eli Zaretskii <eliz@gnu.org>
1254
1255 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1256 unibyte buffers. See
1257 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1258
7490175b
GM
12592010-05-10 Glenn Morris <rgm@gnu.org>
1260
97efb629
GM
1261 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1262 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1263 (LIBES): Use LIBS_SYSTEM as a variable.
1264 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1265 * s/aix4-2.h (LIBS_SYSTEM):
1266 * s/freebsd.h (LIBS_SYSTEM):
1267 * s/hpux10-20.h (LIBS_SYSTEM):
1268 * s/sol2-6.h (LIBS_SYSTEM):
1269 * s/unixware.h (LIBS_SYSTEM):
1270 Move to configure.
1271
7490175b
GM
1272 * s/aix4-2.h (MAIL_USE_LOCKF):
1273 * s/bsd-common.h (MAIL_USE_FLOCK):
1274 * s/darwin.h (MAIL_USE_FLOCK):
1275 * s/gnu-linux.h (MAIL_USE_FLOCK):
1276 * s/irix6-5.h (MAIL_USE_FLOCK):
1277 * s/template.h (MAIL_USE_FLOCK):
1278 Move to configure.
1279
0235128c 12802010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1281
1282 * Version 23.2 released.
1283
0235128c 12842010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1285
1286 * composite.c (autocmp_chars): Save point as marker before calling
1287 auto-composition-function (Bug#5984).
1288
1289 * lisp.h (restore_point_unwind): Add prototype.
1290
1291 * fileio.c (restore_point_unwind): Remove static attribute.
1292
0235128c 12932010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1294
1295 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1296 new feature of libotf and m17n-flt.
0235128c
SM
1297 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1298 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1299 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1300 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1301 that OUT is NULL. Use OTF_drive_gsub_with_log and
1302 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1303 OTF_drive_gpos.
1304 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1305 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1306 Setup mflt_enable_new_feature and mflt_try_otf.
1307
4721152c
J
13082010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1309
1310 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1311
1312 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1313 box and toolbar (Bug #6139).
1314 (xg_create_tool_bar): Remove comment (Bug #6139).
1315 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1316 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1317
ee0a16cf
JB
13182010-05-08 Juanma Barranquero <lekktu@gmail.com>
1319
1320 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1321 Update dependencies.
1322
96d79611
EZ
13232010-05-08 Eli Zaretskii <eliz@gnu.org>
1324
1325 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1326 R2L lines.
1327
40c17879
GM
13282010-05-08 Glenn Morris <rgm@gnu.org>
1329
7b42b29f
GM
1330 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1331
40c17879
GM
1332 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1333 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1334 (termcapobj): Replace with TERMCAP_OBJ.
1335 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1336 (LIBES): Use LIBS_TERMCAP as a variable.
1337
1338 * s/freebsd.h (osreldate.h): No longer include, since this file
1339 does not use __FreeBSD_version any more.
1340
1341 * s/aix4-2.h (TERMINFO):
1342 * s/cygwin.h (TERMINFO):
1343 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1344 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1345 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1346 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1347 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1348 * s/irix6-5.h (TERMINFO):
1349 * s/netbsd.h (LIBS_TERMCAP):
1350 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1351 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1352 * s/usg5-4.h (TERMINFO):
1353 Move to configure.
1354
94b612ad
SM
13552010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1356
1357 * eval.c (unbind_to): Don't unbind a local binding into the global
1358 binding when the local binding disappeared. Inversely, don't unbind
1359 a global binding into a newly created local binding.
1360 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1361 can specify the frame to use, when applicable. Adjust callers.
1362
15e12598 13632010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1364 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1365
1366 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1367
f724825e
EZ
13682010-05-07 Eli Zaretskii <eliz@gnu.org>
1369
5cba3209
EZ
1370 * w32fns.c: Include w32.h.
1371 (Fw32_shell_execute): Decode the error message before passing it
1372 to `error'. (Bug#6126)
1373
d16bdfc3
EZ
1374 * msdos.c (dos_set_window_size):
1375 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1376 instead of `XSYMBOL (foo)->value'.
1377
59d93e87
EZ
13782010-05-07 Eli Zaretskii <eliz@gnu.org>
1379
9fdec8bc
EZ
1380 Fix the MS-DOS build, broken by autoconfiscation.
1381
1382 * Makefile.in: Don't use Make-style comments past the "start of
1383 cpp stuff" line.
1384 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1385
1386 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1387 edited directly by msdos/sed1v2.inp).
f724825e 1388
2f86b22b
GM
13892010-05-07 Glenn Morris <rgm@gnu.org>
1390
1391 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1392 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1393 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1394 move out of cpp section.
1395 * s/freebsd.h (LD_SWITCH_SYSTEM):
1396 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1397 * s/netbsd.h (LD_SWITCH_SYSTEM):
1398 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1399
49ebbd65
DN
14002010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1401
1402 Define LIB_STANDARD and START_FILES using autoconf.
1403 * s/usg5-4.h (LIB_STANDARD):
1404 * s/netbsd.h (START_FILES):
1405 * s/irix6-5.h (LIB_STANDARD):
1406 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1407 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1408 * s/freebsd.h (START_FILES):
1409 * s/darwin.h (START_FILES):
1410 * s/cygwin.h (START_FILES):
1411 * s/aix4-2.h (LIB_STANDARD):
1412 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1413 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1414 autoconf, not cpp.
1415
d43c06d6
DN
14162010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1417
28823648
DN
1418 Remove NEED_BSDTTY and NEED_UNISTD_H.
1419 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1420 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1421 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1422 <sys/ptyio.h> and <unistd.h>.
1423
aca00430
DN
1424 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1425
d43c06d6
DN
1426 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1427 * s/gnu.h (START_FILES): Remove empty definition.
1428
3e56b11d
JD
14292010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1430
1431 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1432
e3cf0cde
GM
14332010-05-06 Glenn Morris <rgm@gnu.org>
1434
1435 * Makefile.in (CPP, LN_S): Remove unused variables.
1436
774b9a60
SM
14372010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1438
1439 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1440
4ab92842
LM
14412010-05-05 Lawrence Mitchell <wence@gmx.li>
1442
1443 * m/sparc.h: Fix typo in earlier change.
1444
178f2507
SM
14452010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1446
1447 Misc tweaks.
1448 * eval.c (Fdefvaralias): Remove unintended nested if.
1449 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1450
80f00217 14512010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1452
1453 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1454
ef03a4e6
DN
14552010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1456
58eb6cf0
DN
1457 Remove BSD_PGRPS.
1458 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1459 * s/gnu-linux.h (BSD_PGRPS): Remove.
1460 * term.c (dissociate_if_controlling_tty):
1461 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1462 (init_sys_modes, reset_sys_modes):
1463 * emacs.c (main):
1464 * callproc.c (Fcall_process, child_setup): Remove code depending
1465 on BSD_PGRPS.
1466
ef03a4e6
DN
1467 Remove POSIX_SIGNALS.
1468 * s/usg5-4.h (POSIX_SIGNALS):
1469 * s/netbsd.h (POSIX_SIGNALS):
1470 * s/msdos.h (POSIX_SIGNALS):
1471 * s/ms-w32.h (POSIX_SIGNALS):
1472 * s/hpux11.h (POSIX_SIGNALS):
1473 * s/gnu.h (POSIX_SIGNALS):
1474 * s/gnu-linux.h (POSIX_SIGNALS):
1475 * s/freebsd.h (POSIX_SIGNALS):
1476 * s/darwin.h (POSIX_SIGNALS):
1477 * s/cygwin.h (POSIX_SIGNALS):
1478 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1479 * s/unixware.h:
1480 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1481 * process.c (create_process):
1482 * syssignal.h:
1483 * sysdep.c (wait_for_termination, init_signals):
1484 * process.c (create_process):
1485 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1486 remove all code that assumes the contrary.
1487
49628785
GM
14882010-05-04 Glenn Morris <rgm@gnu.org>
1489
27a2cdfc
GM
1490 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1491 variable.
1492 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1493 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1494 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1495 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1496 LD_SWITCH_SYSTEM_tmp.
1497 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1498 New variables, set by configure.
1499
eb21eab5
GM
1500 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1501 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1502 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1503 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1504 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1505
49628785
GM
1506 * s/aix4-2.h (C_SWITCH_SYSTEM):
1507 * m/alpha.h (C_SWITCH_MACHINE):
1508 Move to configure.in.
1509 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1510 New variables, set by configure.
1511 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1512 $c_switch_machine and $c_switch_system.
1513
7dff330b
DN
15142010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1515
1516 * s/hpux10-20.h (LIB_STANDARD): New definition.
1517 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1518 on it, not used anymore.
1519
53967e09
CY
15202010-05-03 Chong Yidong <cyd@stupidchicken.com>
1521
1522 * eval.c (internal_condition_case_n): Rename from
1523 internal_condition_case_2.
1524 (internal_condition_case_2): New function.
1525
1526 * xdisp.c (safe_call): Use internal_condition_case_n.
1527
1528 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1529 (internal_delete_file, Frename_file): Callers changed.
1530
1531 * buffer.c (Fkill_buffer):
1532 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1533
1534 * lisp.h: Update prototypes.
1535
3dee6fdb
GM
15362010-05-03 Glenn Morris <rgm@gnu.org>
1537
1538 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1539 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1540 (LIBXT): Set with configure, not cpp.
1541 (LIBX): Remove.
1542 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1543
a101e0fb
DN
15442010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1545
1546 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1547 The FreeBSD is not needed, the default works, Solaris version is
1548 not needed, and the remaining case is not supported by configure.
1549
f63d0028
JD
15502010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1551
1552 * xsmfns.c (CHDIR_OPT): New define.
1553 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1554 restarting emacs.
1555
1556 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1557 shut_down_emacs.
1558
1559 * emacs.c (USAGE1): Mention --chdir.
1560 (main): Handle --chdir.
1561 (standard_args): Add --chdir.
1562 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1563 #5552).
1564
e4814a9f
DN
15652010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1566
cd03c74a
DN
1567 Remove LD_SWITCH_MACHINE.
1568 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1569 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1570
c3a398a1
DN
1571 Clean up IRIX code.
1572 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1573 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1574
87e7285c
DN
1575 Clean up AIX code.
1576 * m/ibmrs6000.inp: Remove file, unused.
1577 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1578 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1579 definition ...
1580 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1581
80f00217
JB
1582 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1583 unused.
e4814a9f 1584
59ca28de
EZ
15852010-05-01 Eli Zaretskii <eliz@gnu.org>
1586
197daef4
EZ
1587 Emulate POSIX_SIGNALS on MS-Windows.
1588
1589 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1590 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1591
1592 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1593 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1594 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1595
80f00217
JB
1596 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1597 New stubs.
197daef4 1598
af7c7572
EZ
1599 Miscellaneous fixes of bidi display.
1600
59ca28de
EZ
1601 * xdisp.c (find_row_end): New function, refactored from display_line.
1602 (display_line): Use it.
017ea819
EZ
1603 (extend_face_to_end_of_line): In almost-filled rows, extend only
1604 if the row is R2L and not continued.
166e930d 1605 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1606 Preserve overlay and string info in row->end.
166e930d
EZ
1607 (insert_left_trunc_glyphs): Support addition of left truncation
1608 glyphs to R2L rows.
b47e0dcf 1609 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1610 glyph between adjacent windows. Fix a crash when a display string
1611 is continued to the next line. Don't return zero if cursor was
1612 found by `cursor' property of a display string.
b47e0dcf
EZ
1613 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1614 test for that explicitly.
59ca28de 1615
7acac9f4
GM
16162010-05-01 Glenn Morris <rgm@gnu.org>
1617
1618 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1619 for clarity.
1620 (OTHER_OBJ): Remove.
1621 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1622 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1623
45841e65
KK
16242010-05-01 Karel Klíč <kklic@redhat.com>
1625
1626 * fileio.c (Ffile_selinux_context): Context functions may return null.
1627
afc61943
DN
16282010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1629
80f00217 1630 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1631
5a1bb006
GM
16322010-04-30 Glenn Morris <rgm@gnu.org>
1633
1634 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1635 (OTHER_OBJ): Define as a separate variable, for clarity.
1636
210af043
J
16372010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1638
1639 * xsettings.c: include limits.h and update file comment.
1640
0a7df391
GM
16412010-04-30 Glenn Morris <rgm@gnu.org>
1642
d5096f16
GM
1643 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1644 Set with configure, not cpp.
1645 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1646
7eb1ac33
GM
1647 * Makefile.in (mallocobj): Remove.
1648 (otherobj): Simplify using @OTHER_OBJ@.
1649
517d086b
GM
1650 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1651 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1652 Don't bother making nsgui.h dependency platform-specific.
1653
0a7df391
GM
1654 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1655
d6d23852
SM
16562010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1657
d2630aef
SM
1658 * process.c (read_process_output, exec_sentinel): Don't burp if the
1659 sentinel/filter kills the current buffer (bug#6060).
1660
f9dddf52 1661 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1662 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1663 Remove unused var `args'.
1664 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1665 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1666 * doc.c (store_function_docstring): Use XSETCAR.
1667
f1e3642a
GM
16682010-04-28 Glenn Morris <rgm@gnu.org>
1669
faf535f8
GM
1670 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1671 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1672
c40f9449
GM
1673 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1674
658f86ca
GM
1675 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1676 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1677
bc0b5f61
GM
1678 * Makefile.in (FONT_OBJ): New, set by configure.
1679 (FONT_DRIVERS): Use $FONT_OBJ.
1680
294c50a0
GM
1681 * Makefile.in (LIBXMU): Set with configure, not cpp.
1682 * s/aix4-2.h (LIBXMU):
1683 * s/hpux10-20.h (LIBXMU):
1684 Remove definition, now set in configure.
1685
e6ec4e99
GM
1686 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1687
f1e3642a
GM
1688 * m/amdx86-64.h [i386]: Move this test to configure.in.
1689
c6ea2936
GM
16902010-04-27 Glenn Morris <rgm@gnu.org>
1691
8fdac2c3
GM
1692 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1693 * s/unixware.h (NEED_LIBW): Remove definition.
1694
986fb647
GM
1695 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1696 (TOOLKIT_LIBW): New, set by configure.
1697 (@X_TOOLKIT_TYPE@): No longer define it.
1698
c6ea2936
GM
1699 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1700 (MOTIF_LIBW): Set with configure, not cpp.
1701 * s/aix4-2.h (LIB_MOTIF):
1702 * s/gnu-linux.h (LIB_MOTIF):
1703 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1704
aaa36002
DN
17052010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1706
1707 Reduce CPP usage.
1708 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1709 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1710 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1711 definitions and undefs. Inline definitions in the only user.
1712 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1713
b678dd8b
GM
17142010-04-27 Glenn Morris <rgm@gnu.org>
1715
76cda504
GM
1716 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1717 since the defaults (set by the system file) are fine in most cases.
1718 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1719 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1720 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1721 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1722 Remove definitions, since they are set correctly in s/gnu-linux.h.
1723 * s/freebsd.h (START_FILES, LIB_STANDARD):
1724 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1725 * s/hpux10-20.h (START_FILES):
1726 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1727 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1728
b678dd8b
GM
1729 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1730 (MOTIF_LIBW): Use $LIBXP.
1731 (otherobj): Use $WIDGET_OBJ.
1732
9452ded1
DN
17332010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1734
7e10844c
DN
1735 * Makefile.in (LIBS_MACHINE): Remove, unused.
1736
9452ded1
DN
1737 Use autoconf instead of cpp for LIB_MATH.
1738 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1739 * s/cygwin.h (LIB_MATH): Likewise.
1740 * Makefile.in (LIB_MATH): Do not define with cpp.
1741 (LIBES): Use autoconf for LIB_MATH.
1742
fcebfc6a
KH
17432010-04-26 Kenichi Handa <handa@m17n.org>
1744
1745 * composite.c (Ffind_composition_internal): Fix the return value
1746 for an automatic composition.
1747
39e2ad1b
DN
17482010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1749
1750 Remove all NO_ARG_ARRAY uses.
1751 * fns.c (concat2, concat3, nconc2):
1752 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1753 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1754 * m/xtensa.h (NO_ARG_ARRAY):
1755 * m/template.h (NO_ARG_ARRAY):
1756 * m/sparc.h (NO_ARG_ARRAY):
1757 * m/sh3.h (NO_ARG_ARRAY):
1758 * m/mips.h (NO_ARG_ARRAY):
1759 * m/macppc.h (NO_ARG_ARRAY):
1760 * m/iris4d.h (NO_ARG_ARRAY):
1761 * m/intel386.h (NO_ARG_ARRAY):
1762 * m/ibms390x.h (NO_ARG_ARRAY):
1763 * m/ibms390.h (NO_ARG_ARRAY):
1764 * m/ibmrs6000.h (NO_ARG_ARRAY):
1765 * m/ia64.h (NO_ARG_ARRAY):
1766 * m/hp800.h (NO_ARG_ARRAY):
1767 * m/arm.h (NO_ARG_ARRAY):
1768 * m/amdx86-64.h (NO_ARG_ARRAY):
1769 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1770
adf4f59c
EZ
17712010-04-25 Eli Zaretskii <eliz@gnu.org>
1772
6bdf5d65
EZ
1773 * xdisp.c (display_line): Don't assume 2nd call to
1774 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1775 (iterate_out_of_display_property): New function, body from pop_it.
1776 (pop_it): Use it.
adf4f59c 1777
dfbbda83
GM
17782010-04-24 Glenn Morris <rgm@gnu.org>
1779
1780 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1781 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1782 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1783 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1784
2d4018aa
EZ
17852010-04-24 Eli Zaretskii <eliz@gnu.org>
1786
a49884a6
EZ
1787 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1788 use `get_next_display_element' and `set_iterator_to_next' to
1789 advance to the next character, when looking for the character that
1790 begins the next row.
1791
76db6fcc 1792 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1793 definition of "struct Lisp_Symbol".
1794
70eab5c1
GM
17952010-04-24 Glenn Morris <rgm@gnu.org>
1796
1797 * Makefile.in (CRT_DIR): New variable, set by configure.
1798 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1799 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1800
1ad4cc3d
DN
18012010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1802
e769f484
DN
1803 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1804
4196ff33
DN
1805 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1806
879b0ee4
DN
1807 Remove redundant flags.
1808 * s/freebsd.h (C_SWITCH_SYSTEM):
1809 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1810 * s/netbsd.h (C_SWITCH_SYSTEM):
1811 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1812 of these.
1813
03cbbcb8
DN
1814 Simplify m/intel386.h.
1815 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1816 user: ecrt0.c.
1817 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1818 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1819 the only user: s/unixware.h.
1820 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1821 from m/intel386.h.
1822 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1823 moved here from m/intel386.h.
1824
1ad4cc3d
DN
1825 * m/mips.h: Remove #if 0 code.
1826
8785b888
EZ
18272010-04-23 Eli Zaretskii <eliz@gnu.org>
1828
728588cc
EZ
1829 Fix display of composed characters from L2R scripts in bidi buffers.
1830 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1831 After advancing IT past the composition, resync the bidi iterator
1832 with IT's position. (Bug#5977)
1833
a63f80b4
DN
18342010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1835
1836 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1837 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1838
ff5dec5c
SM
18392010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1840
1841 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1842
8785b888
EZ
18432010-04-23 Eli Zaretskii <eliz@gnu.org>
1844
58ccf243 1845 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1846 * xdisp.c (pop_it): When the stack is popped after displaying
1847 from a string, bidi-iterate to exit from the text portion covered
1848 by the `display' property or overlay. (Bug#5988, bug#5920)
1849
feeb1604
DN
18502010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1851
8e324eb6
DN
1852 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1853 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1854
809fcaba
DN
1855 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1856 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1857
ed710380
DN
1858 Simplify STARTFILES definition.
1859 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1860 relying on Makefile.in to define it.
1861 * s/cygwin.h (START_FILES): Likewise.
1862 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1863
feeb1604
DN
1864 Clean up Solaris code.
1865 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1866 (LIB_MOTIF): Remove, configure takes care of this.
1867 (NOT_USING_MOTIF): Remove, unused.
1868 * xrdb.c: Remove #if 0-ed #include.
1869 (SYSV): Remove conditional for old SysV.
1870 * sysdep.c (closedir): Remove conditional code for Solaris,
1871 Solaris has closedir.
1872
a0d0b563
JD
18732010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1874
1875 * xsettings.c (read_and_apply_settings): Check if current_font is
1876 NULL before strcmp (Bug#6001).
1877
56bae7c7
DN
18782010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1879
1880 Clean up HP-UX files.
1881 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1882 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1883 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1884 * s/hpux10-20.h: ... to the only user, here.
1885
372b7a95
EZ
18862010-04-21 Eli Zaretskii <eliz@gnu.org>
1887
1888 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1889 use buffer-local values of paragraph-start and paragraph-separate.
1890 <paragraph_start_re, paragraph_separate_re>: Rename from
1891 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1892 (Bug#5992)
1893
f904c0f9
JD
18942010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1895
1896 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1897 current_tool_bar_style are new.
1898 (store_config_changed_event): Rename from store_font_changed_event.
1899 (XSETTINGS_TOOL_BAR_STYLE): New define.
1900 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1901 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1902 HAVE_XFT.
1903 (something_changedCB): store_font_changed_event is now
1904 store_config_changed_event
1905 (parse_settings): Rename from parse_xft_settings. Read
1906 non-xft xsettings outside #ifdef HAVE_XFT.
1907 (read_settings): Renamed from read_xft_settings.
1908 (apply_xft_settings): Take current settings as parameter. Do not
1909 call read_(xft)_settings.
1910 (read_and_apply_settings): New function.
1911 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1912 read_and_apply_settings if there are settings to be read.
1913 (init_xsettings): Renamed from init_xfd_settings.
1914 Call read_and_apply_settings unconditionally.
1915 (xsettings_initialize): Call init_xsettings.
1916 (Ftool_bar_get_system_style): New function.
1917 (syms_of_xsettings): Define Qmonospace_font_name and
1918 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1919 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1920 dynamic-setting.
31a01b90 1921 Move misplaced HAVE_GCONF
f904c0f9
JD
1922
1923 * xsettings.h (Ftool_bar_get_system_style): Declare.
1924
1925 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1926 Qtext, Qboth, Qboth_horiz are new.
1927 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1928 Vtool_bar_style, tool_bar_max_label_size.
1929
1930 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1931
1932 * keyboard.c: QClabel is new.
1933 (parse_tool_bar_item): Take out QClabel from tool bar items.
1934 Try to construct a label if ther is no QClabel.
1935 (syms_of_keyboard): Intern :label as QClabel.
1936
1937 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1938 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1939 New.
1940
1941 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1942 dynamic-setting.el.
1943
1944 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1945 (xg_make_tool_item, xg_show_toolbar_item): New function.
1946 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1947 Call xg_make_tool_item to make a tool bar item.
1948 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1949
1950 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1951 into account for toolbars.
1952
c632dfda
JD
19532010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1954
1955 * data.c (make_blv): Declarations before code (Bug#5993).
1956
10efe302
GM
19572010-04-21 Glenn Morris <rgm@gnu.org>
1958
1959 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1960 Define using autoconf, not cpp.
1961 (LIBXSM): New variable, set by autoconf.
1962 (LIBXT): Use $LIBXSM.
1963
4285ac5a
DN
19642010-04-21 Dan Nicolaescu <local_user@dannlt>
1965
3ec759e7
DN
1966 Remove NOMULTIPLEJOBS, unused.
1967 * s/template.h (NOMULTIPLEJOBS):
1968 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1969
4285ac5a
DN
1970 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1971 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1972 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1973 detects -znocombreloc and passes it to the linker
1974 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1975
2807228d
GM
19762010-04-21 Glenn Morris <rgm@gnu.org>
1977
1978 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1979
574c05e2
KK
19802010-04-21 Karel Klíč <kklic@redhat.com>
1981
1982 * Makefile.in (LIBSELINUX_LIBS): New.
1983 (LIBES): Add $LIBSELINUX_LIBS.
1984 * eval.c, lisp.h (call7): New function.
1985 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1986 (Ffile_selinux_context, Fset_file_selinux_context):
1987 New functions.
1988 (Fcopy_file): New parameter preserve-selinux-context.
1989 (Frename_file): Preserve selinux context when renaming by copy-file.
1990
91eac4bb 19912010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 1992 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1993
50426a04
JB
1994 Don't depend on cm.c or termcap.c on Windows, use stubs.
1995 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1996 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1997 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1998 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1999 (sys_tputs, sys_tgetstr): New stubs.
2000 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2001 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2002
938efb77
JB
20032010-04-20 Juanma Barranquero <lekktu@gmail.com>
2004
2005 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2006
b4bf28b7
SM
20072010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2008
8b1e1112
SM
2009 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2010 Just signal a warning rather than an error when inside a let.
2011 (Fmake_variable_frame_local): Add the same test.
2012
933ac235
SM
2013 * font.c (syms_of_font): Make the style table vars read-only.
2014
b4bf28b7
SM
2015 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2016 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2017
2018 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2019
93d68d0c
EZ
20202010-04-20 Eli Zaretskii <eliz@gnu.org>
2021
2022 Fix R2L paragraph display on TTY.
2023
2024 * xdisp.c (unproduce_glyphs): New function.
2025 (display_line): Use it when produced glyphs are discarded from R2L
2026 glyph rows.
2027 (append_composite_glyph): In R2L rows, prepend the glyph rather
2028 than appending it.
2029
2030 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2031 rather than append it. Set up the resolved_level and bidi_type
2032 attributes of the appended glyph.
283ccc18
EZ
2033 (produce_special_glyphs): Mirror the backslash continuation
2034 character in R2L lines.
93d68d0c 2035
283ccc18 2036 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2037
283ccc18
EZ
2038 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2039 append_stretch_glyph.
2040 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2041 off-by-one error in computing x at end of text in the row.
2042 (append_stretch_glyph): In reversed row, prepend the glyph rather
2043 than append it. Set resolved_level and bidi_type of the glyph.
2044 (extend_face_to_end_of_line): If the row is reversed, prepend a
2045 stretch glyph whose width is such that the rightmost glyph will be
2046 drawn at the right margin of the window. Fix off-by-one error on
2047 TTY frames in testing whether a line needs face extension. Fix
2048 face extension at ZV. If this is the last glyph row, use
2049 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2050 region face.
2051 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2052 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2053 row->continuation_lines_width.
283ccc18
EZ
2054 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2055 are at ZV. Fixes a crash when reseated to ZV by
2056 try_window_reusing_current_matrix.
45903529
EZ
2057 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2058 which happens with R2L glyph rows. Fixes a crash when inserting a
2059 character at end of an R2L line.
283ccc18
EZ
2060 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2061 treat them as having zero-width characters. Improve comments.
2062 Don't reverse pos_before and pos_after for reversed glyph rows.
2063 Set cursor.x to negative value when the cursor might be on the
2064 left fringe.
2065 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2066 left fringe, not the right one.
f951a506
EZ
2067 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2068 (erase_phys_cursor): For reversed cursor_row, support cursor on
2069 the left fringe.
2070
283ccc18
EZ
2071 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2072 of continuation indicators on the fringes.
2073 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2074 left fringe.
2075
f951a506
EZ
2076 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2077 draw cursor on the left fringe.
2078
2079 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2080 cursor on the left fringe.
2081
f951a506
EZ
2082 * dispnew.c (update_text_area): Handle reversed desired rows when
2083 the cursor is on the left fringe.
2084 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2085 below, not by 0, for when the cursor is on the left fringe.
2086
3bb49aaf
JD
20872010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2088
2089 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2090 widget is a scrollbar.
2091
c0be27fd
KH
20922010-04-20 Kenichi Handa <handa@m17n.org>
2093
2094 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2095 only when the arg CHARSET_LIST is nil.
2096
ce5b453a
SM
20972010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2098
2099 Make variable forwarding explicit rather the using special values.
2100 Basically, this makes the structure of buffer-local values and object
2101 forwarding explicit in the type of Lisp_Symbols rather than use
2102 special Lisp_Objects for that. This tends to lead to slightly more
2103 verbose code, but is more C-like, simpler, and makes it easier to make
2104 sure we handled all cases, among other things by letting the compiler
2105 help us check it.
2106 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2107 Removing forwarding objects.
2108 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2109 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2110 explicit rather than hiding them inside Lisp_Object "values".
2111 (XFWDTYPE): New macro.
2112 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2113 (XBUFFER_LOCAL_VALUE): Remove.
2114 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2115 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2116 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2117 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2118 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2119 Remove the Lisp_Misc_* header.
2120 (struct Lisp_Buffer_Local_Value): Redefine.
2121 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2122 (struct Lisp_Misc_Any): Add filler to get the right size.
2123 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2124 Lisp_Intfwd.
2125 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2126 (DEFVAR_KBOARD): Allocate a forwarding object.
2127 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2128 (let_shadows_global_binding_p): New function.
2129 (union Lisp_Val_Fwd): New type.
2130 (make_blv): New function.
2131 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2132 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2133 (swap_in_symval_forwarding, find_symbol_value, Fset)
2134 (let_shadows_buffer_binding_p, set_internal, default_value)
2135 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2136 (Fkill_local_variable, Fmake_variable_frame_local)
2137 (Flocal_variable_p, Flocal_variable_if_set_p)
2138 (Fvariable_binding_locus):
2139 * xdisp.c (select_frame_for_redisplay):
2140 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2141 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2142 * frame.c (store_frame_param):
2143 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2144 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2145 value structure.
2146 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2147 (clone_per_buffer_values): Only adjust markers into the current buffer.
2148 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2149 (Fbuffer_local_value, set_buffer_internal_1)
2150 (swap_out_buffer_local_variables):
2151 Adapt to the new symbol value structure.
2152 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2153 (defvar_per_buffer): Take a new arg for the fwd object.
2154 (buffer_lisp_local_variables): Return a proper alist (different fix
2155 for bug#4138).
2156 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2157 (Fgarbage_collect): Don't handle buffer_defaults specially.
2158 (mark_object): Handle new symbol value structure rather than the old
2159 special Lisp_Misc_* objects.
2160 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2161 * term.c (set_tty_color_mode):
2162 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2163 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2164 a buffer_local_flags.
2165 * print.c (print_object): Get rid of impossible forwarding objects.
2166
fd3998ff
EZ
21672010-04-19 Eli Zaretskii <eliz@gnu.org>
2168
2169 * bidi.c (bidi_get_type, bidi_get_category)
2170 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2171 (bidi_type_of_next_char, bidi_level_of_next_char):
2172 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2173
e42cd1a7
JB
21742010-04-19 Juanma Barranquero <lekktu@gmail.com>
2175
2176 * dired.c (Ffile_attributes): Fix typo in docstring.
2177
6e104790 21782010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2179
2180 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2181 NSInteger (Bug#5811).
2182
6e104790 21832010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2184
2185 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2186 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2187
6e104790 21882010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2189
2190 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2191
6e104790
SM
21922010-04-19 Chong Yidong <cyd@stupidchicken.com>
2193
2194 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2195 terminal frames (Bug#5837).
2196
37dcfea0
EZ
21972010-04-19 Eli Zaretskii <eliz@gnu.org>
2198
d1da276f
EZ
2199 * .gdbinit (xsubchartable): New command.
2200
37dcfea0
EZ
22012010-04-19 Eli Zaretskii <eliz@gnu.org>
2202
2203 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2204 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2205 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2206 and
2207 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2208
e9515805
SM
22092010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2210
2211 * alloc.c (Fpurecopy): Hash-cons if requested.
2212 (syms_of_alloc): Update purify-flag docstring.
2213
22aa44a8
JD
22142010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2215
2216 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2217 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2218
ebb5722e
EZ
22192010-04-17 Eli Zaretskii <eliz@gnu.org>
2220
2221 Fix a crash when an NSM character is inserted at BEGV.
2222
2223 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2224 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2225 NEUTRAL_B or UNKNOWN_BT.
2226
0f4442ef
EZ
22272010-04-16 Eli Zaretskii <eliz@gnu.org>
2228
2229 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2230 other rows with cursor unless they are different from this row and
2231 this row is part of a continued line. (Bug#5943)
2232
7d4e45f8
DN
22332010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2234
2235 * s/freebsd.h: Restore osreldate.h include.
2236 Suggested by Naohiro Aota.
2237
5ba5ec85
J
22382010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2239
2240 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2241
20af301d
CY
22422010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2243
2244 * s/cygwin.h: Avoid linking against static libgcc.
2245
a4b000fb
JL
22462010-04-15 Juri Linkov <juri@jurta.org>
2247
2248 * window.c: Add Qscroll_command.
2249 Remove Vscroll_preserve_screen_position_commands.
2250 (window_scroll_pixel_based, window_scroll_line_based): Check the
2251 `scroll-command' property on the last command instead of searching
2252 the last command in Vscroll_preserve_screen_position_commands.
2253 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2254 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2255 (scroll-preserve-screen-position): Doc fix.
2256 (Vscroll_preserve_screen_position_commands): Remove variable.
2257
bc319ba4
DN
22582010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2259
6bb24457
DN
2260 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2261
19d4c244
DN
22622010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2263
2264 Reduce cpp use in Makefile.in.
2265 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2266 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2267 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2268 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2269 (CRT0_COMPILE): Remove, inline it in the only user.
2270
32129746
JL
22712010-04-14 Juri Linkov <juri@jurta.org>
2272
2273 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2274 `scroll-up-command' and `M-v' from `scroll-down' to
2275 `scroll-down-command'.
2276
9013a7f8
JL
22772010-04-14 Juri Linkov <juri@jurta.org>
2278
2279 * window.c (Vscroll_preserve_screen_position_commands): New variable
2280 with the default value as the list of Qscroll_down and Qscroll_up.
2281 (window_scroll_pixel_based, window_scroll_line_based): Search the
2282 last command in the list Vscroll_preserve_screen_position_commands
2283 instead of comparing with Qscroll_up and Qscroll_down.
2284
4bef8d26
JD
22852010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2286
92848133
JD
2287 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2288 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2289 does that.
2290
4bef8d26
JD
2291 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2292 to zero.
2293
58b963f7
SM
22942010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2295
84164a0d
SM
2296 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2297
2b0a91e7
SM
2298 Try to solve the problem of spurious EOF chars in long lines of text
2299 sent to interactive subprocesses.
2300 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2301 (system_process_attributes): Remove unused var `ttotal'.
2302 * process.c (send_process): Don't bother breaking long line with EOF
2303 chars when talking to ttys any more.
2304 (wait_reading_process_output): Output a warning when called in such
2305 a way that it could block without being interruptible.
2306
58b963f7
SM
2307 Try to detect file modification within the same second.
2308 * buffer.h (struct buffer): New field modtime_size.
2309 * buffer.c (reset_buffer): Initialize it.
2310 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2311 (Fverify_visited_file_modtime): Check it.
2312 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2313 (Fset_visited_file_modtime): Set (or clear) it.
2314
01f5787b
SM
23152010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2316
2317 * process.c (status_notify): Remove unused var `ro'.
2318
83725342
JD
23192010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2320
2321 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2322 more than one visual (Bug#5938).
2323
b9465836
DN
23242010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2325
50426a04
JB
2326 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2327 Undefine.
b9465836 2328
8d9c8ece
DN
23292010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2330
b1f52161
DN
2331 Remove C_SWITCH_SYSTEM_TEMACS.
2332 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2333 (malloc, realloc, free): Use emacs, not temacs for conditional
2334 definition.
2335
2336 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2337 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2338
8d9c8ece
DN
2339 Use autoconf, not cpp for some variables.
2340 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2341 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2342 (ALL_CFLAGS): Use them as make variables.
2343 (really-lwlib, really-oldXMenu): Do not pass them.
2344
1ecb2d3f
JD
23452010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2346
2347 * xmenu.c (apply_systemfont_to_dialog): New.
2348 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2349
3a4fa2f2
SM
23502010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2351
97e53006
SM
2352 * process.c (exec_sentinel): Preserve current-buffer.
2353
3a4fa2f2
SM
2354 * process.c (read_process_output): Move the save-current-buffer to
2355 apply to both the filter and the non-filter branches.
2356
88df7221
DN
23572010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2358
2359 * s/msdos.h (UNEXEC): New definition.
2360
5634ff85
YM
23612010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2362
6eff5c3d
YM
2363 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2364 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2365
2366 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2367 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2368 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2369 TRY_WINDOW_CHECK_MARGINS.
2370
2371 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2372 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2373 width only when it is for padding.
5634ff85 2374
b13aef54
J
23752010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2376
2377 * xfns.c (Fx_show_tip): Call try_window in a loop until
2378 fonts_changed_p is zero (Bug#2423).
2379
21d28484
EZ
23802010-04-08 Eli Zaretskii <eliz@gnu.org>
2381
2382 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2383 the end of TEXT_AREA. (Bug#5856)
2384
0269ef77
JD
23852010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2386
2387 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2388 HAVE_GCONF.
2389
5930fe97
EZ
23902010-04-08 Eli Zaretskii <eliz@gnu.org>
2391
2392 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2393 prev.orig_type, for resolving type of NSM. (Bug#5858)
2394
99852628
JD
23952010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2396
2397 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2398 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2399 in current_font.
2400 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2401 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2402 New functions.
2403 (syms_of_xsettings): Initialize current_font.
2404 defsubr Sfont_get_system_normal_font.
99852628
JD
2405
2406 * xsettings.h (Ffont_get_system_normal_font,
2407 xsettings_get_system_normal_font): Declare.
2408
2409 * xfns.c (extern xlwmenu_default_font): Remove.
2410 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2411 to xlwmenu.c.
2412
2413 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2414 menu items in UTF-8.
2415
2416 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2417 (apply_systemfont_to_menu): New function.
2418 (set_frame_menubar, create_and_show_popup_menu): Call
2419 apply_systemfont_to_menu.
2420
7fc874c4
J
24212010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2422
2423 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2424 FRAME_LINE_TO_PIXEL_Y.
2425
2426 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2427 pixelwidth/height.
2428
863bf481
DN
24292010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2430
5e5a3b92
DN
2431 Simplify code for HP machines.
2432 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2433 for GNU_LINUX, not needed.
2434 (UNEXEC, NEED_BSDTTY): Move definitions...
2435 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2436
863bf481
DN
2437 * m/iris4d.h (UNEXEC): Move definition ...
2438 * s/irix6-5.h (UNEXEC): ... here.
2439
3e6bec3b
JD
24402010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2441
2442 * xfns.c (set_machine_and_pid_properties): New function.
2443 (Fx_create_frame): Call set_machine_and_pid_properties.
2444
2912322b
SM
24452010-04-03 Eli Zaretskii <eliz@gnu.org>
2446
1502b819
EZ
2447 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2448 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2449 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2450
2912322b
SM
2451 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2452 in this function. (Bug#5703)
2453
24542010-04-03 Chong Yidong <cyd@stupidchicken.com>
2455
2456 * nsterm.h: Fix last change.
2457
c435b432
DN
24582010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2459
a568f507
DN
2460 * m/intel386.h (NO_REMAP): Move definition ...
2461 * s/msdos.h (NO_REMAP): ... here.
2462
4cd9f6c2
DN
2463 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2464
c435b432
DN
2465 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2466 used on those platforms.
2467
42a2c622
DN
24682010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2469
2470 Remove extern errno declarations.
2471 * xterm.c:
2472 * xrdb.c:
2473 * w32term.c:
2474 * unexec.c:
2475 * unexaix.c:
2476 * sysdep.c:
2477 * process.c:
2478 * lread.c:
2479 * keyboard.c:
2480 * floatfns.c:
2481 * filelock.c:
2482 * fileio.c:
2483 * emacs.c (main):
2484 * ecrt0.c:
2485 * dispnew.c:
2486 * callproc.c:
2487 * buffer.c: Remove errno extern declarations.
2488 * s/netbsd.h (NEED_ERRNO): Remove.
2489
8224f93d
DN
24902010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2491
2492 Remove all uses of LIBX11_SYSTEM.
2493 * Makefile.in (LIBX11_SYSTEM): Remove.
2494 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2495 instead.
2496
814062c7
EZ
24972010-04-01 Eli Zaretskii <eliz@gnu.org>
2498
ed68db4d
EZ
2499 Remove support for DJGPP v1.x (bug#5813).
2500
2501 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2502 * s/msdos.h:
2503 * unexec.c (make_hdr, copy_text_and_data):
2504 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2505 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2506 (IT_set_terminal_modes, __write, _rename, gethostname)
2507 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2508 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2509 the value of __DJGPP__.
ed68db4d
EZ
2510 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2511 compatibility code.
8224f93d
DN
2512 * lread.c:
2513 * gmalloc.c (memalign):
2514 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2515 * emacs.c (main):
2516 * dosfns.c (init_dosfns):
ed68db4d
EZ
2517 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2518
52f4d8d5
EZ
25192010-04-01 Eli Zaretskii <eliz@gnu.org>
2520
814062c7
EZ
2521 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2522 string with `cursor' property comes from an `after-string'
2523 overlay. (Bug#5816)
2524
0dc2e11d
GM
25252010-04-01 Glenn Morris <rgm@gnu.org>
2526
2527 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2528 Define as Makefile variables.
2529 (LIBX): Use above variables rather than directly using autoconf.
2530
1d29df59
DN
25312010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2532
2533 Clean up BSD_SYSTEM use.
2534 * xterm.c:
2535 * process.c:
2536 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2537 for including <sys/ioctl.h>.
2538 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2539 code is only used for MSDOS.
2540
1546c559
JL
25412010-03-31 Juri Linkov <juri@jurta.org>
2542
2543 * image.c: Add `Qextension_data'.
2544 (syms_of_image): Initialize and staticpro `Qextension_data'.
2545 (Fimage_metadata): Rename from `Fimage_extension_data'.
2546 (gif_load): Put GIF extension data to the property
2547 `Qextension_data'.
2548
6521c534
CY
25492010-03-31 Chong Yidong <cyd@stupidchicken.com>
2550
2551 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2552 * nsterm.h: Fix prototype.
2553
52c30783
EZ
25542010-03-31 Eli Zaretskii <eliz@gnu.org>
2555
2556 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2557 trailing whitespace in right-to-left rows.
2558
855a0da7
SM
25592010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2560
2561 Get rid of the direct_output optimizations.
2562 * keyboard.c (nonundocount): Remove extern declaration.
2563 (command_loop_1): Remove brittle optimisation for cheap and
2564 common operations.
2565 * xdisp.c (redisplay_internal): Don't bother checking
2566 redisplay_performed_directly_p any more.
2567 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2568 any more.
2569 * dispnew.c (redisplay_performed_directly_p)
2570 (direct_output_for_insert, direct_output_forward_char):
2571 * dispextern.h (redisplay_performed_directly_p)
2572 (direct_output_for_insert, direct_output_forward_char): Remove.
2573 * cmds.c (nonundocount): Make it static.
2574
85738751 25752010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2576
2577 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2578
85738751 25792010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2580
2581 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2582 invisible (Bug#5766).
2583
85738751 25842010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2585
855a0da7
SM
2586 * xdisp.c (x_consider_frame_title, update_window_cursor):
2587 Remove HAVE_NS conditionals.
194d44e7 2588 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2589
2590 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2591 filename for the title.
2592 (ns_set_doc_edited): Do nothing if the selected window is a
2593 minibuffer window.
2594
2595 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2596 ns_set_doc_edited.
2597
2598 * nsterm.m: Remove unneeded prototype.
2599
85738751 26002010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2601
2602 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2603 in the DOC file. (Bug#5336)
2604
85738751 26052010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2606
2607 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2608
75d1428c
SM
26092010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2610
2611 * window.c (keys_of_window): Remove redundant/overridden bindings.
2612
82043cfb
EZ
26132010-03-30 Eli Zaretskii <eliz@gnu.org>
2614
2615 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2616 Restore original behavior when the iterator is not bidi_p.
2617
b5dd0ae7
DN
26182010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2619
2620 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2621
bd924a5d
EZ
26222010-03-30 Eli Zaretskii <eliz@gnu.org>
2623
2624 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2625 are outside the range of cached character positions.
2626
3580374b
JB
26272010-03-30 Juanma Barranquero <lekktu@gmail.com>
2628
2629 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2630
a7b02820
EZ
26312010-03-30 Eli Zaretskii <eliz@gnu.org>
2632
2633 Initial support for bidirectional editing.
2634
2635 * Makefile.in (obj): Include bidi.o.
2636 (bidi.o): New target.
2637
2638 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2639 ($(BLD)/bidi.$(O)): New target.
2640
2641 * bidi.c: New file.
2642
2643 * buffer.h (struct buffer): New members bidi_display_reordering
2644 and bidi_paragraph_direction.
2645
2646 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2647 and bidi_paragraph_direction.
2648 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2649 and bidi-paragraph-direction.
2650 (Fbuffer_swap_text): Swap the values of
2651 bidi_display_reordering and bidi_paragraph_direction.
2652
2653 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2654 (bidi_type_t, bidi_dir_t): New types.
2655 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2656 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2657 prev_stop, base_level_stop, and eol_pos.
2658 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2659 (IT_STACK_SIZE): Enlarge to 5.
2660 (struct glyph_row): New member reversed_p.
2661 <string_buffer_position>: Update prototype.
2662 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2663 glyph_row if bidi_it.paragraph_dir == R2L.
2664 (struct glyph): New members resolved_level and bidi_type.
2665
2666 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2667 processing or buffer's direction is right-to-left.
2668 (prepare_desired_row): Preserve the reversed_p flag.
2669 (row_equal_p): Compare the reversed_p attributes as well.
2670
2671 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2672 bidi_init_it and set it->paragraph_embedding from the current
2673 buffer's value of bidi_paragraph_direction.
2674 (reseat_1): Initialize bidi_it.first_elt.
2675 (set_iterator_to_next, next_element_from_buffer): Use the value of
2676 paragraph_embedding to determine the paragraph direction.
2677 (set_iterator_to_next): Under bidi reordering, call
2678 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2679 new_paragraph flag is set in the bidi iterator.
2680 (next_element_from_buffer): If bidi_it.first_elt is set,
2681 initialize paragraph direction and find the first character to
2682 display in the visual order. If reseated to a middle of a line,
2683 prime the bidi iterator starting at the line's beginning. Handle
2684 the situation where we overstepped stop_charpos due to
2685 non-linearity of the bidi iteration. Likewise for when we back up
2686 beyond the previous stop_charpos. When moving across stop_charpos,
2687 record it in prev_stop.
2688 (display_line): Set row->end and it->start for the next row to the
2689 next character in logical order. Always extend reversed_p rows to
2690 the end of line, even if they end at ZV. Copy the reversed_p flag
2691 to the next glyph row. Keep calling set_cursor_from_row for
2692 bidi-reordered rows even if we already have a possible candidate
2693 for cursor position. Set row_end after all the row's glyphs have
2694 been produced, by looping over the glyphs. Record the position
2695 after EOL in it->eol_pos, and use it to set end_pos of the last
2696 row produced for a continued line.
2697 <Qright_to_left, Qleft_to_right>: New variables.
2698 (syms_of_xdisp): Initialize and staticpro them.
2699 (string_buffer_position_lim): New function.
2700 (string_buffer_position): Most of code moved to
2701 string_buffer_position_lim. Last argument and return value are
2702 now EMACS_INT; all callers changed.
2703 (set_cursor_from_row): Rewritten to support bidirectional text and
2704 reversed glyph rows.
2705 (text_outside_line_unchanged_p, try_window_id): Disable
2706 optimizations if we are reordering bidirectional text and the
2707 paragraph direction can be affected by the change.
2708 (append_glyph, append_composite_glyph)
2709 (produce_image_glyph, append_stretch_glyph): Set the
2710 resolved_level and bidi_type members of each glyph.
2711 (append_glyph): If the glyph row is reversed, prepend the glyph
2712 rather than appending it.
2713 (handle_stop_backwards): New function.
2714 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2715 (reseat): call handle_stop_backwards to recompute prev_stop and
2716 base_level_stop for the new position.
2717 (handle_invisible_prop): Under bidi iteration, skip invisible text
2718 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2719 paragraph direction. Update IT->prev_stop after skipping
2720 invisible text.
2721 (move_it_in_display_line_to): New variables prev_method
2722 and prev_pos. Compare for strict equality in
2723 BUFFER_POS_REACHED_P.
2724 (try_cursor_movement): Examine all the candidate rows that occlude
2725 point, to return the best match. If rows are bidi-reordered
2726 and point moved backwards, back up to the row that is not a
2727 continuation line, and start looking for a suitable row from
2728 there.
2729
2730 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2731 rather than appending, if the glyph_row's reversed_p flag is set.
2732 Set the resolved_level and bidi_type members of each glyph.
2733
2734 * .gdbinit (pbiditype): New command.
2735 (pgx): Use it to display bidi level and type of the glyph.
2736 (pitx): Display some bidi information about the iterator.
2737 (prowlims, pmtxrows): New commands.
2738
32a8894e
DN
27392010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2740
2741 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2742 * s/usg5-4.h (LIBS_DEBUG):
2743 * s/irix6-5.h (C_DEBUG_SWITCH):
2744 * s/gnu-linux.h (LIBS_DEBUG):
2745 * s/darwin.h (LIBS_DEBUG):
2746 * s/bsd-common.h (LIBS_DEBUG):
2747 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2748 * m/iris4d.h (LIBS_DEBUG):
2749 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2750
2751 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2752 (LIBS_DEBUG): Remove definition.
2753
649dbf36
CY
27542010-03-27 Chong Yidong <cyd@stupidchicken.com>
2755
2756 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2757 Windows.
2758
cad4261f
YM
27592010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2760
2761 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2762 `connect' (Bug#5723).
2763
cd591dbc
HE
27642010-03-25 Helmut Eller <eller.helmut@gmail.com>
2765
2766 * process.c (Fmake_network_process): Call `select' for interrupted
2767 `connect' rather than creating new socket (Bug#5173).
2768
e867cb5d 27692010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2770
2771 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2772
2773 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2774
2775 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2776
e867cb5d 27772010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2778
2779 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2780 XLoadQueryFont.
2781
e867cb5d 27822010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2783
2784 * coding.c (decode_coding_ccl): Fix previous change for the
2785 multibyte case.
fb608df3
KH
2786 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2787 case that the output buffer is fullfilled.
2788 (encode_coding): Setup ccl program here.
fbdc1721 2789
5845f0ed
DN
27902010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2791
814fb708
DN
2792 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2793
5845f0ed
DN
2794 Simplify LIBS_MACHINE definitions.
2795 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2796 * m/iris4d.h (LIBS_MACHINE): Likewise.
2797 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2798 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2799 * s/netbsd.h: Remove commented out code.
5845f0ed 2800
b7064064
DN
28012010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2802
df7734b2
DN
2803 Remove dead code dealing with POSIX_SIGNALS.
2804 * atimer.c (set_alarm): Remove dead code, all USG systems define
2805 POSIX_SIGNALS.
2806 * data.c (arith_error): Likewise.
2807 * keyboard.c (input_available_signal, handle_user_signal)
2808 (interrupt_signal): Likewise.
2809 * process.c (sigchld_handler): Likewise.
2810 (create_process): Remove if 0 code. Remove HPUX conditional when
2811 !defined (POSIX_SIGNALS), it cannot be true.
2812 * syssignal.h: Remove USG5_4 and USG conditionals when
2813 !POSIX_SIGNALS, they cannot be true.
2814
b7064064
DN
2815 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2816 NO_SOCK_SIGIO, not used anymore.
2817
55da5ee3
DN
28182010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2819
0be96e3a
DN
2820 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2821 support vax on BSDs.
2822
55da5ee3
DN
2823 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2824 * s/aix4-2.h (ORDINARY_LINK): ... here.
2825
c0282183
AS
28262010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2827
82c3d67a
AS
2828 * Makefile.in (abs_builddir): Define.
2829 (bootstrap_exe): Use it.
2830 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2831
3613edce
SM
28322010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2833
2834 * Makefile.in (bootstrap_exe): Use an absolute name.
2835
7f110ddc
DN
28362010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2837
22e87574
DN
2838 Remove support for old GNU/Linux using libc version 5.
2839 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2840 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2841
05a670e6
DN
2842 Consolidate redundant definitions in s/bsd-common.h.
2843 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2844 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2845 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2846 doing it in all files that include this one.
2847 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2848 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2849 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2850 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2851 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2852 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2853 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2854 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2855 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2856
2968f561
DN
2857 Consolidate redundant definitions.
2858 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2859 it's undefined in all files that include this one.
2860 (POSIX_SIGNALS): Define here instead of doing it in all files that
2861 include this one.
2862 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2863 (POSIX_SIGNALS): Do not define.
2864 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2865 (POSIX_SIGNALS): Do not define.
2866 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2867 (POSIX_SIGNALS): Do not define.
2868
15d25dc0
DN
2869 Remove support for old UNIX System V systems.
2870 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2871 * s/usg-5-4-2.h: Remove.
2872
07e339e4
DN
2873 Remove support for Solaris on PPC and for old versions.
2874 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2875 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2876 that cancel each other.
2877 * s/sol2-3.h:
2878 * s/sol2-4.h:
2879 * s/sol2-5.h: Remove.
2880 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2881 (NO_REMAP): Remove, unused.
2882 (UNEXEC): Move definition ...
2883 * s/aix4-2.h (UNEXEC): ... here.
2884
7f110ddc
DN
2885 * s/openbsd.h: Remove support for non-ELF and for systems that do
2886 not support shared libraries.
2887 * s/netbsd.h:
2888 * s/freebsd.h: Likewise.
2889
605f35cd
DN
28902010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2891
2892 Remove non-working support for lynxos 3.0.
2893 * s/lynxos.h: Remove file.
2894
2895 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2896 COFF_BSD_SYMBOLS, nothing defines it anymore.
2897
aed71cf4
DN
28982010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2899
2900 Remove obsolete uses of HAVE_SHM.
2901 * emacs.c (standard_args):
2902 (Fdump_emacs):
2903 (syms_of_emacs): Remove code depending on HAVE_SHM.
2904
2905 * alloc.c: Remove HAVE_SHM dependent definition.
2906
2907 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2908
aded53ff
GM
29092010-03-18 Glenn Morris <rgm@gnu.org>
2910
17284745
GM
2911 * emacs.c (USAGE4): Hard-code bug address.
2912 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2913 (bug_reporting_address): Remove.
2914 (main): Don't call bug_reporting_address.
2915
aded53ff
GM
2916 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2917 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2918
303500aa
CY
29192010-03-15 Chong Yidong <cyd@stupidchicken.com>
2920
2921 * xfns.c (Fx_create_frame):
2922 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2923 on left.
2924
cef3058f
CY
29252010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2926
2927 * editfns.c (Fformat): Account for string precision when computing
2928 field width (Bug#5710).
2929
a647d59d
CY
29302010-03-12 Chong Yidong <cyd@stupidchicken.com>
2931
4fa42018
CY
2932 * xfns.c (Fx_create_frame): Set default to Qright.
2933
a647d59d
CY
2934 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2935 all window systems.
2936
6da23aaa
EZ
29372010-03-12 Eli Zaretskii <eliz@gnu.org>
2938
a96f6398 2939 These changes remove termcap.c from the build on Posix platforms.
83d02def 2940 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2941 (MSDOS_OBJ): ...to here.
2942 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2943 now identical to when LIBS_TERMCAP is defined.
2944
2945 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2946
2947 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2948
a96f6398 2949 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2950
288f9fc0
CY
29512010-03-10 Chong Yidong <cyd@stupidchicken.com>
2952
2953 * Branch for 23.2.
2954
d48cd3f4
SM
29552010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2956
2957 Cleanup setup of gl_state in various parts of the code.
2958 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2959 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2960 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2961 (skip_chars):
2962 * regex.c (regex_compile): Use it.
2963 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2964 it's now set in regex_compile when/if we need it.
2965
618db430
SM
29662010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2967
c0335e02
SM
2968 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2969 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2970 (QUIT): Use it to consolidate code and remove redundancy.
2971 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2972
254c06a8
SM
2973 * regex.c (regex_compile): Setup gl_state as well.
2974
618db430
SM
2975 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2976 (in_classes): Use CONSP before XCAR/XCDR.
2977
233f0c9f
CY
29782010-03-03 Chong Yidong <cyd@stupidchicken.com>
2979
2980 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2981 definitions, so that keyboard macros are correctly handled
2982 (Bug#5481).
2983
75f80e63
EZ
29842010-03-02 Eli Zaretskii <eliz@gnu.org>
2985
2986 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2987 text that could be relocated inside the call to emacs_mule_char.
2988 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2989 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2990
dcfb9bc4
KH
29912010-03-02 Kenichi Handa <handa@m17n.org>
2992
fc9a17bc
KH
2993 * character.c (parse_str_as_multibyte): Fix handling of the
2994 multibyte form of raw-bytes.
2995 (str_as_multibyte): Likewise.
2996
dcfb9bc4
KH
2997 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2998 form of raw-bytes.
2999
412c01b6
CY
30002010-02-28 Chong Yidong <cyd@stupidchicken.com>
3001
3002 * charset.c (load_charset_map_from_file)
3003 (load_charset_map_from_vector): Zero out allocated
3004 charset_map_entries before using them.
3005
df7e1ea0
AS
30062010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3007
3008 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3009
fe69a722
CY
30102010-02-27 Chong Yidong <cyd@stupidchicken.com>
3011
4ed28cf4
CY
3012 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3013 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3014
7379cfce
KH
30152010-02-26 Kenichi Handa <handa@m17n.org>
3016
f88cc4d6
KH
3017 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3018
7379cfce
KH
3019 * xdisp.c (reseat_to_string): Fix previous change.
3020
cf2fdcfb
CY
30212010-02-26 David Reitter <david.reitter@gmail.com>
3022
3023 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3024 Lisp_Object (Bug#4736).
3025
cc6c7c75
KH
30262010-02-25 Kenichi Handa <handa@m17n.org>
3027
3028 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3029
32e737d7
JD
30302010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3031
3032 * xterm.c (XTflash): Move declarations before statements.
3033
3034 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3035 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3036 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3037 (xg_create_tool_bar): Remove unused variables.
3038 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3039 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3040
676cae9f
CY
30412010-02-21 Chong Yidong <cyd@stupidchicken.com>
3042
3043 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3044
886cc2b8
SM
30452010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3046
3047 * term.c (fatal): Add a final \n if needed (bug#5596).
3048
ddb2d8e2
CY
30492010-02-18 Chong Yidong <cyd@stupidchicken.com>
3050
3051 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3052
2a4f8d3d
GM
30532010-02-18 Glenn Morris <rgm@gnu.org>
3054
3055 * callint.c (Finteractive): Doc fix.
3056
ebaf11b6
KH
30572010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3058
886cc2b8
SM
3059 * coding.c (record_conversion_result):
3060 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3061 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3062 memory allocation error.
3063
d0396581
KH
30642010-02-17 Kenichi Handa <handa@m17n.org>
3065
886cc2b8
SM
3066 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3067 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3068 (decode_coding): Setup ccl program here. Keep looping when the
3069 decoder stopped because the output buffer is
3070 fullfilled (bug#5534).
3071
3072 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3073
98599f74
JD
30742010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3075
471e4f04 3076 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3077 bug #5571.
886cc2b8 3078 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3079 overdrawn.
98599f74 3080
182659ae
JD
30812010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3082
3083 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3084 doing_interact here.
3085 (ice_connection_closed): New function.
3086 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3087 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3088 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3089 returns I/O error.
3090 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3091 bug #5512.
3092
9be32c4e 30932010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3094
3095 * nsfont.m (nsfont_open): The system's value for the font descent
3096 is negative, so round it down to avoid clipping.
3097
a2f3eb19
CY
30982010-02-06 Chong Yidong <cyd@stupidchicken.com>
3099
3100 * charset.c (load_charset_map_from_file)
3101 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3102 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3103
3088147c
CY
31042010-02-05 Chong Yidong <cyd@stupidchicken.com>
3105
3106 * charset.c (load_charset_map_from_file): Allocate large
3107 charset_map_entries structure on the heap rather than the stack.
3108 (Bug#5526).
3109
b57d9029
KH
31102010-01-31 Kenichi Handa <handa@m17n.org>
3111
3112 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3113 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3114
c67d885b
CY
31152010-01-31 Chong Yidong <cyd@stupidchicken.com>
3116
3117 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3118 <deactivated@gmail.com> (Bug#3605).
3119
8fab2362
CY
31202010-01-31 David De La Harpe Golden <david@harpegolden.net>
3121
3122 * fileio.c (Frename_file): Correctly rename symlinks to
3123 directories (Bug#5496).
3124
cb2a62f2
CY
31252010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3126
3127 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3128
944c7a26
AS
31292010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3130
3131 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3132
c024ac08
CY
31332010-01-29 Chong Yidong <cyd@stupidchicken.com>
3134
3135 * frame.c (DEFAULT_ROWS): Change default to 35.
3136
3137 * xfns.c (x_default_font_parameter): Change default XFT font to
3138 monospace-10 (Bug#3643).
3139
af93af83
EZ
31402010-01-29 Eli Zaretskii <eliz@gnu.org>
3141
3142 * w32inevt.c (key_event): Remove unnecessary comparison of
3143 event->uChar.AsciiChar with 128.
3144
ca0eb708
CY
31452010-01-28 Chong Yidong <cyd@stupidchicken.com>
3146
b242dbfc
CY
3147 * fileio.c (Frename_file): Fix last change (Bug#5487).
3148
ca0eb708
CY
3149 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3150
3151 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3152
45d45af5
JD
31532010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3154
3155 * xfns.c (Fx_create_frame): Remove window size matching code from
3156 2010-01-15.
a73f9c9d 3157 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3158
7e233730
JR
31592010-01-27 Jason Rumney <jasonr@gnu.org>
3160
3161 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3162 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3163
86e893e3
KH
31642010-01-27 Kenichi Handa <handa@m17n.org>
3165
3166 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3167 pattern string (Bug#4209).
86e893e3 3168
8719abec
CY
31692010-01-27 David De La Harpe Golden <david@harpegolden.net>
3170
3171 * fileio.c (Frename_file): Call copy-directory and
3172 delete-directory for directories, in order to handle cross-device
3173 renaming (Bug#3353).
3174
844794c8
JD
31752010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3176
aa3e13b5 3177 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3178 sizes 24 and 10. Bug #3643.
844794c8 3179
bd4b5750
SM
31802010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3181
8dc1adf6 3182 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3183 * keymap.c (shadow_lookup): Add `remap' arg.
3184 (describe_map, describe_vector): Update calls to shadow_lookup.
3185 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3186 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3187 perform remapping during shadow_lookup check of remapped_sequences.
3188
285d07e2
CY
31892010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3190
3191 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3192 png_check_sig, which has been removed in libpng 1.4.
3193
c6d09b8d
CY
31942010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3195
3196 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3197 lacks this header file).
3198
3d782998
YM
31992010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3200
3201 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3202 as in Emacs 22.
3203
2aff7c53
YM
32042010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3205
3206 * lisp.h (make_pure_string): String pointer arg now points to const.
3207
3208 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3209 args now point to const.
3210
74327f7a
EZ
32112010-01-22 Eli Zaretskii <eliz@gnu.org>
3212
3213 * lread.c (Fload): Don't treat files without .elc extension as
3214 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3215 them. (bug#5303)
3216
4d1e6632
KH
32172010-01-20 Kenichi Handa <handa@m17n.org>
3218
3219 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3220 treat the source as actual byte sequence.
3221
1fdede8f
AM
32222010-01-19 Alan Mackenzie <acm@muc.de>
3223
3224 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3225 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3226 `signal_after_change_p' to `coherent_change_p', and make the
3227 invocation of `modify_region' conditional on it.
3228
67477f30
JD
32292010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3230
3231 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3232 for debug purpose.
3233 (syms_of_xsettings): Declare xft-settings.
3234
244b023e
CY
32352010-01-18 Chong Yidong <cyd@stupidchicken.com>
3236
3237 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3238
617364fe
CY
32392010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3240
3241 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3242
4fe22cdf
CY
32432010-01-16 Chong Yidong <cyd@stupidchicken.com>
3244
3245 * emacs.c (standard_args): Adjust arg priorities to reflect how
3246 they are processed in startup.el.
3247
e118d2be
AS
32482010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3249
3250 * Makefile.in (lisp, shortlisp): Update.
3251
523ae620
SM
32522010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3253
3254 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3255 code, link the new kboard into all_kboard before running Lisp code,
3256 and protect the new terminal with GCPRO (Bug#5365).
3257 (x_term_init): Remove unused var `atom'.
3258 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3259
f0d13888
JD
32602010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3261
3262 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3263 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3264 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3265 this. Bug #3643.
f0d13888 3266
cc320f07
KH
32672010-01-15 Kenichi Handa <handa@m17n.org>
3268
3269 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3270
7ffdf101
CY
32712010-01-15 Chong Yidong <cyd@stupidchicken.com>
3272
3273 * nsterm.m (Qnone): Define.
3274
3275 * nsfns.m (Qnone): Move definition to nsterm.m.
3276
d12bd917
KH
32772010-01-14 Kenichi Handa <handa@m17n.org>
3278
3279 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3280 systems.
3281
d9a7c140
KH
32822010-01-14 Kenichi Handa <handa@m17n.org>
3283
3284 Make auto-composition work on all buffers even if they are
3285 fundamental mode.
3286
3287 * composite.c (Vauto_composition_mode): New variable.
3288 (composition_compute_stop_pos): Check Vauto_composition_mode
3289 instead of Vauto_composition_function.
3290 (composition_adjust_point, Ffind_composition_internal): Likewise.
3291 (syms_of_composite): Declare Lisp variable
3292 "auto-composition-mode" here.
3293
63286bb2
CY
32942010-01-13 Chong Yidong <cyd@stupidchicken.com>
3295
3296 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3297 during call to vendor-specific-keysyms (Bug#5365).
3298
c2623ee7
YM
32992010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3300
3301 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3302 Call SIGNAL_THREAD_CHECK (Bug#5333).
3303
3304 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3305 Call SIGNAL_THREAD_CHECK.
3306
0b5397c2
SM
33072010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3308
3309 Try to fix bug#5314. This is probably not the final word, tho.
3310 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3311 recent-auto-save-p as a side-effect.
3312 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3313 * buffer.c (Fkill_buffer, reset_buffer):
3314 * editfns.c (Fsubst_char_in_region):
3315 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3316 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3317
dc954cb2
KH
33182010-01-13 Kenichi Handa <handa@m17n.org>
3319
3320 Display buffer name, etc. in mode line by composing correctly.
3321
3322 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3323 STRING is not nil.
0b5397c2 3324 (display_mode_element): Adjust for the change of
dc954cb2
KH
3325 decode_mode_spec and display_line.
3326 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3327 (display_string): Handle the case that STRING is non-null and
3328 LISP_STRING is not nil.
3329
0b5397c2
SM
3330 * xterm.c (x_draw_composite_glyph_string_foreground):
3331 Pay attention to s->face->overstrike.
dc954cb2
KH
3332
3333 * composite.c (composition_reseat_it): Don't check PT if STRING is
3334 non nil.
3335
4a00eaca
YM
33362010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3337
3338 * keyboard.c (read_char): Don't apply previous change when current
3339 buffer is unchanged by command execution.
3340
60abb287
JD
33412010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3342
3343 * keyboard.c (read_char): Return after executing from special map.
3344
893db5bc
GM
33452010-01-12 Glenn Morris <rgm@gnu.org>
3346
3347 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3348 bug-gnu-emacs rather than emacs-pretest-bug.
3349
4d03ece0
CY
33502010-01-11 Chong Yidong <cyd@stupidchicken.com>
3351
3352 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3353 initializing the Lisp variables that depend on them.
3354
1df47e38
YM
33552010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3356
3357 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3358 Clear areas that will not be updated after change of menu bar lines.
3359 Clear the menu bar window's current matrix when the window gets empty.
3360
2f1c6384
CY
33612010-01-09 Chong Yidong <cyd@stupidchicken.com>
3362
e398c61c
CY
3363 * intervals.h, textprop.c (extend_property_ranges): Return value
3364 and args changed. Discard properties that begin at or after the
3365 new end (Bug#5306).
3366
3367 * editfns.c (Fformat): Caller changed.
3368
e5a29a10
CY
3369 * nsterm.m (ns_set_default_prefs): Delete function.
3370 (syms_of_nsterm): Initialize ns_command_modifier,
3371 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3372 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3373
2f1c6384
CY
3374 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3375 position (Bug#4040).
3376
d427a9fa
EZ
33772010-01-09 Eli Zaretskii <eliz@gnu.org>
3378
3379 * editfns.c (Ffloat_time): Doc fix.
3380
21b9df2f
JD
33812010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3382
3383 * xfns.c (Fx_create_frame): Don't create frame larger than display
3384 by default bug#3643.
3385
4b00d3b1
YM
33862010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3387
3388 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3389 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3390 windows above internal border.
3391
3392 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3393 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3394 windows above internal border.
3395
3396 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3397 tool bar windows specially.
3398
3399 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3400
3401 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3402 specially.
3403 (XTflash): Take account of menu bar height.
3404
3405 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3406 specially.
3407
5075d853
JD
34082010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3409
ac146f82 3410 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3411 also be true before we can return early (bug #5339).
3412
474217c8
CY
34132010-01-06 David Reitter <david.reitter@gmail.com>
3414
3415 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3416 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3417 (Bug#3233).
3418
c0e6d47d
JD
34192010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3420
d0cf45b7
JD
3421 * font.c (font_open_entity): Enable chache and call cached_font_ok
3422 for the driver if defined.
3423 (QCuser_spec): New symbol.
3424 (font_spec_from_name): Save name as user-spec.
3425 (font_load_for_lface): Keep user-spec instead of name.
3426 (font_open_by_name): Save name as user-spec.
3427 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3428 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3429
3430 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3431 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3432 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3433
3434 * font.h (struct font_driver): Add cached_font_ok.
3435
c0e6d47d
JD
3436 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3437
7c583cd8
JD
34382010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3439
3440 * xterm.c (x_new_font): Move code for setting rows/cols before
3441 resizing ...
ac146f82 3442 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3443
3444 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3445 (xg_frame_resized, xg_frame_set_char_size):
3446 Call xg_clear_under_internal_border.
7c583cd8 3447 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3448
03f77f0a
CY
34492010-01-05 Chong Yidong <cyd@stupidchicken.com>
3450
3451 * keyboard.c (read_key_sequence): Catch keyboard switch after
3452 making a new tty frame (Bug#5095).
3453
2a1ef5be
KH
34542010-01-05 Kenichi Handa <handa@m17n.org>
3455
3456 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3457
e3eb1dae
SM
34582010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3459
3460 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3461 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3462 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3463
777013f2
MA
34642010-01-03 Michael Albinus <michael.albinus@gmx.de>
3465
3466 * dbusbind.c (xd_add_watch): Improve debug message.
3467 (xd_remove_watch): Improve debug message. If DATA is the session
3468 bus, unset D-Bus session environment.
3469 (Fdbus_init_bus): Pass the bus as argument to
3470 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3471
8932b1c2
CY
34722010-01-01 Chong Yidong <cyd@stupidchicken.com>
3473
87231e2c
CY
3474 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3475
4801c5fa
CY
3476 * lread.c (syms_of_lread): Make it clearer that these are the
3477 names of loaded files (Bug#5068).
3478
8932b1c2
CY
3479 * eval.c (run_hook_with_args): Handle the case where the global
3480 value has the obsolete single-function form (Bug#5026).
3481
11e3c684
CY
34822009-12-27 Chong Yidong <cyd@stupidchicken.com>
3483
3484 * minibuf.c (Fall_completions): Minor optimization.
3485
5b28ce35
EZ
34862009-12-26 Eli Zaretskii <eliz@gnu.org>
3487
5ce6e4f4
JB
3488 * .gdbinit (pgx): Fix display of composite glyphs.
3489 Display cmp.from and cmp.to as well.
3490 (pitx): Fix last change.
5b28ce35 3491
bcffff46
KH
34922009-12-25 Kenichi Handa <handa@m17n.org>
3493
3494 * composite.h (composition_adjust_point): Update prototype.
3495
3496 * composite.c (composition_reseat_it): Don't make a composition
3497 spanning over point.
3498 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3499 composable characters.
3500 (composition_adjust_point): New arg NEW_PT. Callers changed.
3501
3502 * keyboard.c (command_loop_1): Force redisplay if the last point
3503 was within a composition.
3504 (adjust_point_for_property): Don't adjust point for automatic
3505 composition when called after buffer modification.
3506
3f670e9a
EZ
35072009-12-19 Eli Zaretskii <eliz@gnu.org>
3508
5ce6e4f4
JB
3509 * .gdbinit (pitx): Don't use enum names, use their values.
3510 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3511 (pgx): Don't use enum names, use their values.
3512 (pitmethod): New helper command.
3513 (pitx): Use it to display iteration method.
3514 (pgrowit): New command.
3515
ad903955
EZ
3516 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3517
3f670e9a
EZ
3518 Update dependencies in Makefile.in.
3519
3520 * Makefile.in (alloc.o): Depend on termhooks.h.
3521 (atimer.o): Depend on blockinput.h.
3522 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3523 and frame.h.
3524 (callint.o): Depend on systime.h, coding.h, and composite.h.
3525 (callproc.o): Depend on buffer.h.
3526 (casefiddle.o): Don't depend on charset.h.
3527 (casetab.o): Depend on character.h.
3528 (ccl.o): Depend on composite.h.
3529 (chartab.o): Depend on ccl.h.
3530 (cm.o): Depend on dispextern.h.
3531 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3532 (coding.o): Don't depend on $(INTERVALS_H).
3533 (composite.o): Don't depend on dispextern.h explicitly (it's in
3534 $(INTERVALS_H)). Depend on ccl.h.
3535 (data.o): Depend on systime.h, coding.h, composite.h,
3536 dispextern.h, font.h, and ccl.h.
3537 (dired.o): Depend on composite.h.
3538 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3539 composite.h (it's in $(INTERVALS_H)).
3540 (doc.o): Depend on systime.h, coding.h, and composite.h.
3541 (editfns.o): Don't depend explicitly on dispextern.h.
3542 (emacs.o): Depend on frame.h and coding.h.
3543 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3544 (fileio.o): Depend on frame.h and commands.h. Don't depend
3545 explicitly on dispextern.h.
3546 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3547 composite.h.
3548 (fns.o): Don't depend on termhooks.h.
3549 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3550 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3551 coding.h, $(INTERVALS_H), window.h, xterm.h.
3552 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3553 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3554 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3555 fontset.h, ccl.h, and ftfont.h.
3556 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3557 (gtkutil.o): Depend on dispextern.h and composite.h.
3558 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3559 termhooks.h, and ccl.h.
3560 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3561 (intervals.o): Depend on systime.h and coding.h.
3562 (keyboard.o): Depend on composite.h and coding.h.
3563 (keymap.o): Depend on coding.h and frame.h.
3564 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3565 (macros.o): Depend on systime.h, coding.h, and composite.h.
3566 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3567 and atimer.h.
3568 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3569 dispextern.h explicitly.
0b5397c2
SM
3570 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3571 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3572 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3573 (regex.o): Don't depend on charset.h.
3574 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3575 (search.o): Don't depend explicitly on composite.h.
3576 (sound.o): Depend on atimer.h and systime.h.
3577 (syntax.o): Don't depend explicitly on composite.h.
3578 (sysdep.o): Depend on coding.h and composite.h.
3579 (term.o): Depend on xterm.h and buffer.h.
3580 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3581 (textprop.o): Don't depend on dispextern.h explicitly.
3582 (undo.o): Depend on dispextern.h.
3583 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3584 dispextern.h and composite.h explicitly.
3585 (xdisp.o): Depend on ccl.h.
3586 (xfaces.o): Depend on coding.h and ccl.h.
3587 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3588 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3589 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3590 ftfont.h.
3591 (xgselect.o): New dependency.
3592 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3593 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3594 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3595 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3596 (xsmfns.o): Depend on frame.h and dispextern.h.
3597 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3598 sysselect.h.
3599
7a6f7fea
AS
36002009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3601
3602 * font.c (Fclear_font_cache): Pass correct cache argument to
3603 font_clear_cache.
3604
f4c21026
AS
36052009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3606
3607 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3608 twice.
3609
f7ab0997
CY
36102009-12-15 Chong Yidong <cyd@stupidchicken.com>
3611
3612 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3613 calling file-remote-p. Reported by Jim Meyering.
3614
fa8e045a
MA
36152009-12-15 Michael Albinus <michael.albinus@gmx.de>
3616
3617 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3618 avoid compiler warnings. (Bug #5217)
fa8e045a 3619
a63dba42
KH
36202009-12-14 Kenichi Handa <handa@m17n.org>
3621
3622 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3623 in 8-bit encoding.
3624
5ce6e4f4 36252009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3626
3627 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3628 tooltip windows.
3629
223e5fc6
JD
36302009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3631
36acb2a7
JD
3632 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3633 Xatom_net_window_type.
3634
3635 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3636 Xatom_net_window_type.
3637
b8f00677
JD
3638 * xterm.c (my_log_handler): New function.
3639 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3640 so we can filter out buggy messages. (Bug #5120).
b8f00677 3641
e5f0bc9a
JD
3642 * xterm.c (xg_scroll_callback): Parameter list changed,
3643 use parameter GtkScrollType to determine scroll/line/page.
3644 Only allow dragging if a button < 4 is grabbed (bug #5177).
3645 (xg_end_scroll_callback): New function.
3646 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3647 xg_create_scroll_bar.
3648
3649 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3650 (scroll_end_callback): Remove.
3651 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3652 button-release-event. Replace value-changed event with change-value,
3653 bug #5177,
3654 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3655 bug #5177.
3656
3657 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3658 (xg_create_scroll_bar): Add GCallback end_callback.
3659
223e5fc6
JD
3660 * xftfont.c (QClcdfilter): New variable.
3661 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3662 (syms_of_xftfont): Initialize QClcdfilter.
3663
3c055b77
JD
36642009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3665
3666 * xsettings.c (struct xsettings): Add member seen.
3667 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3668 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3669 (apply_xft_settings): Only update Xft settings with what member seen
3670 indicates as new.
3671
05fe33ff
EZ
36722009-12-12 Eli Zaretskii <eliz@gnu.org>
3673
3674 * dispextern.h (struct text_pos): Use EMACS_INT;
3675 (struct glyph): Use EMACS_INT for charpos.
3676 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3677 region_beg_charpos, region_end_charpos,
3678 redisplay_end_trigger_charpos, and also for
3679 iterator_stack_entry.end_charpos and
3680 iterator_stack_entry.stop_charpos.
3681
e8d7886a
JD
36822009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3683
5ce6e4f4 3684 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3685 (xg_create_scroll_bar): Call scroll_end_callback on button release
3686 event (bug #5177).
3687 (xg_event_is_for_scrollbar): != replaced with ==.
3688
d0db2ec8
KH
36892009-12-12 Kenichi Handa <handa@m17n.org>
3690
3691 * ftfont.c (struct ftfont_info): New member matrix.
3692 (ftfont_open): Setup xftfont_info->matrix.
3693 (MFLTFontFT): New member matrix.
3694 (FLOOR, CEIL, ROUND): New macros.
3695 (ftfont_get_metrics): Handle matrix transformation.
3696 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3697
3698 * xftfont.c (struct xftfont_info): New member matrix.
3699 (xftfont_open): Setup xftfont_info->matrix.
3700
37012009-12-10 Kenichi Handa <handa@m17n.org>
3702
3703 * xdisp.c (append_space_for_newline): Consider face-remapping.
3704
2cc7b62f
AS
37052009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3706
b87dd913
AS
3707 * xsettings.c: Include "keyboard.h".
3708
eba5eb94
AS
3709 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3710
2cc7b62f
AS
3711 Fix implicit function declarations.
3712 * cmds.c: Include "frame.h".
3713 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3714 * frame.h: Move declaration of delete_frame outside of
3715 HAVE_WINDOW_SYSTEM.
3716
a4ef73c8
CY
37172009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3718
3719 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3720
3721 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3722 GTK builds.
3723
944a300c
AS
37242009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3725
3726 * unexelf.c (unexec): Don't search for .data twice.
3727
022eef62
CY
37282009-12-05 Chong Yidong <cyd@stupidchicken.com>
3729
426ac949
CY
3730 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3731 if push failed.
3732 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3733 of push_display_prop (Bug#5000).
3734
022eef62
CY
3735 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3736 value of font_list_entities (Bug#5085).
3737
be95bee9
JB
37382009-12-04 Juanma Barranquero <lekktu@gmail.com>
3739
3740 Fix `string-to-number' to deal consistently with integers and floats.
3741 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3742 trailing characters, not just whitespace.
3743 (read1): Pass new arg 0 to keep old behavior.
3744 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3745 trailing chars, as it is already done for integers. Doc fixes.
3746 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3747
24c2d7ce
EZ
37482009-12-04 Eli Zaretskii <eliz@gnu.org>
3749
0b5397c2
SM
3750 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3751 Delete unused enumeration value.
24c2d7ce 3752
7e694795
EZ
37532009-12-03 Eli Zaretskii <eliz@gnu.org>
3754
3755 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3756
84b31826
SM
37572009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3758
3759 * process.c (Fmake_network_process): Fix up the tests for
3760 "connectionless socket", so they DTRT for seqpacket sockets as well.
3761
f00c449b
SM
37622009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3763
3764 * process.c (Qseqpacket): New symbol.
3765 (HAVE_SEQPACKET): New macro.
3766 (Fmake_network_process): Accept new :type `seqpacket'.
3767 (init_process): Add `seqpacket' feature when applicable.
3768 (syms_of_process): Initialize Qseqpacket.
3769
8096a0ff
YM
37702009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3771
3772 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3773 if entity is Qnil.
3774
3e0de07f
SM
37752009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3776
3777 * print.c (print_preprocess): Preprocess the key_and_value table of
3778 hashtables, even tho they're "hidden" (bug#5082).
3779
abeafb2a
JD
37802009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3781
3782 * frame.c (frame_make_pointer_invisible)
3783 (frame_make_pointer_visible): Declare f before statements.
3784
4bf47195
EZ
37852009-11-28 Eli Zaretskii <eliz@gnu.org>
3786
3787 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3788 omitted dependencies on lisp.h.
3789
c525b3f2
JD
37902009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3791
ece2d4ed
JD
3792 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3793 is NULL.
3794
3795 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3796
3797 * frame.c (frame_make_pointer_invisible)
3e0de07f 3798 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3799 frame.
3800
c525b3f2
JD
3801 * search.c (simple_search): Remove warning by making *p const.
3802
2f00e299
DN
38032009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3804
3805 * xdisp.c (power_letter): Remove duplicate const.
3806
084b049b
JD
38072009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3808
a1fadc6f
JD
3809 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3810
5ce6e4f4 3811 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3812 defaults (bug #5025).
3813
28259cac
SM
38142009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3815
3816 * insdel.c (adjust_markers_for_delete): Move it in the
3817 right direction! (bug#4803)
3818
e8e14166
YM
38192009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3820
3821 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3822
3823 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3824
86677b58
GM
38252009-11-24 Glenn Morris <rgm@gnu.org>
3826
3827 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3828
581e51e8
JD
38292009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3830
cfc86c7a
JD
3831 * Makefile.in: Must create deps for ecrt0.o in its rule.
3832
581e51e8
JD
3833 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3834 because that is what Gtk+ font dialog understands.
3835
3836 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3837 of Fcopy_sequence.
3838 (font_open_by_name): Put name given into QCname for font-object returned.
3839
3840 * frame.c (x_set_font): Save original font name as frame parameter
3841 font-parameter.
3842
3843 * xsettings.c (set_default_xft_settings): New function.
3844 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3845 is found.
3846
8b264ecb
AS
38472009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3848
3849 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3850 searching backwards through multibyte buffer.
3851
872870b2
JD
38522009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3853
3854 * xterm.c: #include xgselect.h.
3855 (x_initialize): Call xgselect_initialize.
3856
3857 * xsettings.c (something_changedCB): C++ comments => C comments.
3858 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3859 does that now.
3860
3861 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3862 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3863 (scroll_bar_button_cb): Remove.
5ce6e4f4 3864 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3865 event.
3866 (xg_create_scroll_bar): Don't bind button-press-event and
3867 button-release-event.
3868
3869 * process.c: Include xgselect.h if defined (USE_GTK) ||
3870 defined (HAVE_GCONF).
3871 (wait_reading_process_output): Call xg_select for the same condition.
3872
3873 * xgselect.c (xg_select): New function to better integrate with
3874 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3875
3876 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3877
3878 * Makefile.in (XOBJ): Add xgselect.o.
3879
62a6e103
AS
38802009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3881
0b5397c2
SM
3882 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3883 Remove ignored second argument. All callers changed.
62a6e103
AS
3884 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3885 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3886 * xdisp.c (string_char_and_length): Likewise.
3887
b0ca0f33
DN
38882009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3889
3890 * xterm.c (x_new_font):
3891 * print.c (print_object):
3892 * cmds.c (Fself_insert_command): Move declarations before statements.
3893
dd5a6279
CY
38942009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3895
3896 * s/cygwin.h: Remove unneeded linker flags.
3897
4a8e097d
JD
38982009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3899
0d1d0d26
JD
3900 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3901
3902 * xsettings.h: Declare xsettings_get_system_font.
3903
3904 * xsettings.c (xsettings_get_system_font): New function.
3905 (init_gconf): No use initiating gconf unless we have Xft also.
3906 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3907 HAVE_GCONF.
3908
4a8e097d
JD
3909 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3910 add a blank entry so it doesn't collapse into nothing.
3911
8ab1650e
SM
39122009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3913
3914 * lread.c (Funintern): Comment out last change.
3915
82c602f0
RS
39162009-11-19 Richard Stallman <rms@gnu.org>
3917
3918 * lread.c (Funintern): Error if symbol is t or nil.
3919
87e32266
SM
39202009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3921
3922 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3923 representation of Lisp integers.
3924 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3925
1b9ac145
AS
39262009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3927
3928 * lisp.h: Remove declaration of Ffont_get_system_font.
3929 * xfns.c: Move include of "xsettings.h".
3930 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3931
dfb3c4c6
JD
39322009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3933
87e32266
SM
3934 * xsettings.c (something_changedCB, Ffont_get_system_font):
3935 Check use_system_font.
dfb3c4c6
JD
3936 (syms_of_xsettings): DEFVAR font-use-system-font.
3937
9370c1d8
AS
39382009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3939
25fe851a
AS
3940 * xfns.c (x_default_font_parameter): Remove dead assignment.
3941
9370c1d8
AS
3942 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3943
637fa988
JD
39442009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3945
87e32266 3946 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3947 not have FC_LCD_*. #define them if not there.
a6eb20d8 3948
87e32266 3949 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3950
637fa988
JD
3951 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3952
3953 * xterm.c (handle_one_xevent): Call xft_settings_event for
3954 ClientMessage, PropertyNotify and DestroyNotify.
3955 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3956 Call xsettings_initialize.
3957
3958 * xftfont.c (xftfont_fix_match): New function.
3959 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3960 Call xftfont_fix_match after XftFontMatch.
3961
3962 * xfont.c (xfont_driver): Initialize all members.
3963
87e32266
SM
3964 * xfns.c (x_default_font_parameter):
3965 Try font from Ffont_get_system_font.
637fa988
JD
3966 Do not get font from x_default_parameter if we got one from
3967 Ffont_get_system_font.
87e32266 3968 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3969
3970 * w32font.c (w32font_driver): Initialize all members.
3971
3972 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3973
3974 * lisp.h: Declare syms_of_xsettings.
3975
87e32266
SM
3976 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3977 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3978
3979 * ftfont.c (ftfont_filter_properties): New function.
3980
3981 * frame.c (x_set_font): Remove unused variable lval.
3982
87e32266 3983 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3984
3985 * font.c (font_put_extra): Don't return if val is nil, it means
3986 boolean option is off.
3987 (font_parse_fcname): Collect all extra properties in extra_props
3988 and call filter_properties for all drivers with extra_props and
3989 font as parameter.
87e32266
SM
3990 (font_open_entity): Do not use cache, it does not pick up new
3991 fontconfig settings like hinting.
637fa988
JD
3992 (font_load_for_lface): If spec had a name in it, store it in entity.
3993
a73f9c9d 3994 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3995
3996 * config.in: HAVE_GCONF is new.
3997
3998 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3999 xsettings.o is new.
4000
5a942932
KH
40012009-11-17 Kenichi Handa <handa@m17n.org>
4002
4003 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4004 back to the default font in case that no suitable font is found.
4005
b7c7a4d1
SM
40062009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4007
4008 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4009 Suggested by Chad Brown <yandros@mit.edu>.
4010 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4011
072f1e39
JD
40122009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4013
4014 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4015
5d1e70a2
AS
40162009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4017
87e32266 4018 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4019
a53cfbe5
JD
40202009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4021
473a99b7
JD
4022 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4023 has a parent.
4024
a53cfbe5 4025 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4026 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4027
4028 * config.in: Generated (AUTO_DEPEND).
4029
f04bb9b2
MA
40302009-11-13 Michael Albinus <michael.albinus@gmx.de>
4031
b7c7a4d1 4032 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4033 Vdbus_registered_functions_table, because it contains also
4034 properties. Fix docstring.
b7c7a4d1 4035 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4036
8f11f7ec
SM
40372009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4038
4039 * alloc.c (mark_object): Don't reprocess marked strings.
4040 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4041 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4042
8a605fe8
KH
40432009-11-13 Kenichi Handa <handa@m17n.org>
4044
8f11f7ec 4045 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4046 semantics of Vword_combining_categories.
4047 (Vword_combining_categories): Describe the slight change of the
4048 semantics.
4049
241c4680
EZ
40502009-11-13 Eli Zaretskii <eliz@gnu.org>
4051
4052 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4053
4054 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4055
5d58e44c
SM
40562009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4057
4058 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4059
5e13f9d3
JB
40602009-11-12 Juanma Barranquero <lekktu@gmail.com>
4061
4062 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4063
cf54c754
DR
40642009-11-11 David Reitter <david.reitter@gmail.com>
4065
4066 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4067 variables to fix 2009-11-09 change.
4068
a4ada374
DN
40692009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4070
91433552
DN
4071 * process.c (ifflag_def): Make flag_sym constant.
4072 (Fnetwork_interface_info): Use a constant pointer.
4073 (ifflag_table):
4074 * xfns.c (cursor_bits):
4075 * xdisp.c (power_letter):
4076 * termcap.c (speeds, esctab):
4077 * sysdep.c (baud_convert):
4078 * keyboard.c (lispy_accent_codes, modifier_names):
4079 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4080 (jpeg_format, tiff_format, gif_format, svg_format)
4081 (interlace_start, interlace_increment, gs_format):
4082 * gtkutil.c (separator_names):
4083 * fringe.c (swap_nibble):
4084 * fns.c (base64_value_to_char, base64_char_to_value):
4085 * fileio.c (make_temp_name_tbl):
4086 * coding.c (suffixes): Make constant.
4087
f4265f6c
DN
4088 * frame.c (make_initial_frame):
4089 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4090 build_string.
4091 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4092
04420943
DN
4093 * s/freebsd.h:
4094 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4095
0a5d24ae
DN
4096 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4097 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4098
a4ada374
DN
4099 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4100 * xterm.c (syms_of_xterm):
4101 * xfaces.c (syms_of_xfaces):
4102 * xdisp.c (syms_of_xdisp):
4103 * lread.c (syms_of_lread):
4104 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4105 build_string.
91433552 4106
a4ada374
DN
4107 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4108
af98fc7f
SM
41092009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4110
8ab1650e 4111 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4112
e90292a9
JD
41132009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4114
4115 * keyboard.h: Declare timer_check.
4116
4117 * keyboard.c (timer_check_2): New function that does what the old
4118 timer_check did.
4119 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4120 returned, i.e. don't return -1 with timers pending.
4121
4122 * process.c: Remove extern declaration of timer_check.
4123
4124 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4125 even if timer_check returned -1.
4126
af98fc7f
SM
4127 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4128 xg_dialog_data.
e90292a9
JD
4129 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4130 the event loop.
4131 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4132 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4133 Destroy the dialog after xg_dialog_run.
4134
045b83c0
SM
41352009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4136
4137 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4138
1fb99a3a
JD
41392009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4140
4141 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4142
04e452cb
JB
41432009-11-09 Juanma Barranquero <lekktu@gmail.com>
4144
4145 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4146
ef7417fd
SM
41472009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4148
4149 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4150 w32menu.c, and nsmenu.m.
4151 Simplify the obsolete case where position is nil.
4152 (cleanup_popup_menu): New function, moved from nsmenu.m.
4153 (struct skp): Remove slot `notreal'.
4154 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4155 adjust callers.
4156 (single_menu_item): Adjust call to parse_menu_item.
4157 (syms_of_menu): Defsubr x-popup-menu.
4158 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4159 (keymap_panes): Don't export any more.
4160 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4161 (xmenu_show): Declare.
4162 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4163 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4164 * keyboard.h (parse_menu_item): Update declaration.
4165 * xmenu.c (Fx_popup_menu): Remove.
4166 (syms_of_xmenu): Don't defsubr x-popup-menu.
4167 * w32menu.c (Fx_popup_menu): Remove.
4168 (syms_of_w32menu): Don't defsubr x-popup-menu.
4169 * nsmenu.m (cleanup_popup_menu): Remove.
4170 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4171 moved to menu.c's Fx_popup_menu.
4172 (Fx_popup_menu): Remove.
4173 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4174 menu_items (it's done in menu.c already).
4175
424d6179
SM
41762009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4177
4178 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4179 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4180
c0df13a6 41812009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4182
4183 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4184 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4185 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4186 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4187
2de9f71c
SM
41882009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4189
4190 Let integers use up 2 tags to give them one extra bit and thus double
4191 their range.
4192 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4193 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4194 New macros.
4195 (enum Lisp_Type): Use them. Give explicit values.
4196 (Lisp_Type_Limit): Remove.
4197 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4198 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4199 Pay attention to USE_2_TAGS_FOR_INTS.
4200 (INTEGERP): Use LISP_INT_TAG_P.
4201 * fns.c (internal_equal): Simplify the default case.
4202 (sxhash): Use case_Lisp_Int.
4203 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4204 any more.
4205 (Ftype_of): Use case_Lisp_Int.
4206 (store_symval_forwarding): Take into account the fact that Ints can
4207 now have more than one tag.
4208 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4209 buffer_slot_type_mismatch):
4210 * xfaces.c (face_attr_equal_p):
4211 * print.c (print_object):
4212 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4213 Use case_Lisp_Int.
4214
323637a2
EZ
42152009-11-06 Eli Zaretskii <eliz@gnu.org>
4216
7ac65b38
EZ
4217 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4218
323637a2
EZ
4219 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4220 warning.
4221
e511451f
JD
42222009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4223
4224 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4225
4226 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4227
4228 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4229 ButtonPressRelease and MotionNotify (bug#4870).
4230
5e2327cf
DN
42312009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4232
5adc433e
DN
4233 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4234
d67b4f80
DN
4235 * xterm.c (syms_of_xterm):
4236 * xselect.c (syms_of_xselect):
4237 * xmenu.c (syms_of_xmenu):
4238 * xfns.c (syms_of_xfns):
4239 * xfaces.c (syms_of_xfaces):
4240 * xdisp.c (syms_of_xdisp):
4241 * window.c (syms_of_window):
4242 * w32fns.c (syms_of_w32fns):
4243 * undo.c (syms_of_undo):
4244 * textprop.c (syms_of_textprop):
4245 * terminal.c (syms_of_terminal):
4246 * syntax.c (syms_of_syntax):
4247 * sound.c (syms_of_sound):
4248 * search.c (syms_of_search):
4249 * print.c (syms_of_print):
4250 * minibuf.c (syms_of_minibuf):
4251 * macros.c (syms_of_macros):
4252 * keymap.c (syms_of_keymap, initial_define_key)
4253 (initial_define_lispy_key):
4254 * keyboard.c (syms_of_keyboard):
4255 * insdel.c (syms_of_insdel):
4256 * image.c (syms_of_image):
4257 * fringe.c (syms_of_fringe):
4258 * frame.c (syms_of_frame):
4259 * fontset.c (syms_of_fontset):
4260 * fns.c (syms_of_fns):
4261 * fns.c (syms_of_fns):
4262 * fileio.c (syms_of_fileio):
4263 * fileio.c (syms_of_fileio):
4264 * eval.c (syms_of_eval):
4265 * doc.c (syms_of_doc):
4266 * dispnew.c (syms_of_display):
4267 * dired.c (syms_of_dired):
4268 * dbusbind.c (syms_of_dbusbind):
4269 * data.c (syms_of_data):
4270 * composite.c (syms_of_composite):
4271 * coding.c (syms_of_coding):
4272 * cmds.c (syms_of_cmds):
4273 * charset.c (define_charset_internal, syms_of_character):
4274 * ccl.c (syms_of_ccl):
4275 * category.c (syms_of_category, init_category_once):
4276 * casetab.c (syms_of_casetab):
4277 * casefiddle.c (syms_of_casefiddle):
4278 * callint.c (syms_of_callint):
4279 * bytecode.c (syms_of_bytecode):
4280 * buffer.c (keys_of_buffer, syms_of_buffer):
4281 * alloc.c (syms_of_alloc):
4282 * process.c (syms_of_process, init_process):
4283 * lread.c (syms_of_lread, init_obarray):
4284 * font.c (build_style_table):
4285 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4286 intern_c_string, calls to make_pure_string with
4287 make_pure_c_string. Use pure_cons instead of Fcons.
4288
5e2327cf
DN
4289 * process.c (socket_options): Make it const.
4290 (set_socket_option, init_process): Use a const pointer.
4291
4292 * lread.c (intern_c_string): New function.
4293 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4294 (defvar_int): Uset it. Make the name const char*.
4295
4296 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4297 (defvar_int): Update prototypes.
4298 (DEFUN, EXFUN): Support for prototypes is now required.
4299 (intern_c_string): New prototype.
4300 (struct Lisp_Subr): Make symbol_name constant.
4301
4302 * font.c (struct table_entry): Remove unused member. Make NAMES
4303 constant.
4304 (weight_table, slant_table, width_table): Make constant.
4305
4306 * emacs.c (struct standard_args): Make name and longname constant.
4307
4308 * character.h (DEFSYM): Use intern_c_string.
4309
a56eaaef
DN
43102009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4311
4312 * alloc.c (make_pure_c_string): New function.
4313
4314 * eval.c (Fautoload): Purecopy all arguments.
4315
f6a07420
KH
43162009-11-05 Kenichi Handa <handa@m17n.org>
4317
4318 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4319 the buffer in case of replace.
4320
5d28d4b1
DN
43212009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4322
4323 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4324
b349d111
SM
43252009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4326
d528b1ce
SM
4327 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4328 when applicable (bug#4851).
4329
b349d111
SM
4330 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4331 (P_): Support for prototypes is now required.
4332
c38eb027
CY
43332009-10-31 Chong Yidong <cyd@stupidchicken.com>
4334
4335 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4336 (Bug#4827).
4337
0405f8d9
EZ
43382009-10-30 Eli Zaretskii <eliz@gnu.org>
4339
d528b1ce 4340 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4341
ca0a881a
DN
43422009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4343
4344 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4345
d528b1ce
SM
4346 * lread.c (Fload): Purecopy the file name when building
4347 Vpreloaded_file_list.
ca0a881a 4348
47e0e0e4
JR
43492009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4350
4351 * w32fns.c (syms_of_w32fns): Change default value of
4352 w32-scroll-lock-modifier to nil. (Bug#2827)
4353
057bce6f
JB
43542009-10-26 Juanma Barranquero <lekktu@gmail.com>
4355
782a943e 4356 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4357
242bc74c
AS
43582009-10-26 Andreas Schwab <schwab@redhat.com>
4359
4360 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4361
522d013a
JB
43622009-10-26 Juanma Barranquero <lekktu@gmail.com>
4363
4364 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4365 For delta < 0, skip check that only makes sense when the mini-window
4366 is going to be enlarged. (Bug#4534)
4367
18060980
CY
43682009-10-25 Chong Yidong <cyd@stupidchicken.com>
4369
4370 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4371 string in menu maps (Bug#4471).
4372
fec8f0fe
CY
43732009-10-24 Chong Yidong <cyd@stupidchicken.com>
4374
4375 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4376 FRAME_NS_VIEW on terminal frames (Bug#4765).
4377
10d66ec0
AS
43782009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4379
1cae01f7
AS
4380 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4381 DBUS_TYPE_UINTnn separately to get proper sign extension.
4382
58a12889
AS
4383 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4384 can properly handle unsigned types.
d528b1ce 4385 (make_uid, make_gid): Remove.
58a12889 4386
987c9327
AS
4387 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4388 types again.
4389
522d013a 4390 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4391 (system_process_attributes): Likewise.
4392
905a9ed3
DN
43932009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4394
4395 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4396
4397 * eval.c (Fautoload): Purecopy the filename. Simplify.
4398
4399 * category.c (Fdefine_category): Purecopy docstring.
4400
a599b3e8
AS
44012009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4402
7b792fc9
AS
4403 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4404
a599b3e8
AS
4405 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4406
b35ac83e
CY
44072009-10-23 Chong Yidong <cyd@stupidchicken.com>
4408
4409 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4410 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4411 (Bug#4775).
4412
e8903e00
SM
44132009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4414
4415 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4416 (init_fileio_once):
4417 * lisp.h (init_fileio_once): Remove.
4418 * emacs.c (main): Don't call init_fileio_once.
4419
8f43cbf3
DN
44202009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4421
4422 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4423
26898943
AS
44242009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4425
4426 * doprnt.c (doprnt): Fix overflow check.
4427
5c646d5a
JD
44282009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4429
3132a7ea
JD
4430 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4431
5c646d5a
JD
4432 * xterm.h (x_wait_for_event): Declare it.
4433
4434 * xterm.c (pending_event_wait): New variable.
4435 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4436 see pending_event_wait.eventtype.
4437 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4438 (x_new_font): Call change_frame_size with new rows/columns before we
4439 try to resize the frame.
5c646d5a 4440 (x_wait_for_event): New function.
d528b1ce
SM
4441 (x_set_window_size_1): Don't change gravity unless change_gravity
4442 is set.
5c646d5a
JD
4443 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4444 don't change frame size, instead wait for the ConfigureNotify.
4445 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4446 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4447 (x_initialize): Initialize pending_event_wait.
4448
4449 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4450 size.
4451
4452 * widget.c (EmacsFrameSetValues): Add comment.
4453 (EmacsFrameSetCharSize): Just call x_set_window_size.
4454
4455 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4456 x_wait_for_event.
d528b1ce 4457 (flush_and_sync): Remove again.
5c646d5a
JD
4458 (xg_get_font_name): Suggest monospace if no previous font is known.
4459
e9c1637d
SM
44602009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4461
4462 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4463 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4464
5a72cccb
YM
44652009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4466
4467 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4468 processing pending events when event is filtered for input method.
ab04798f 4469 (Bug#3681)
5a72cccb 4470
2629aa37
JB
44712009-10-20 Juanma Barranquero <lekktu@gmail.com>
4472
4473 * fns.c: Add #endif accidentally removed in previous change.
4474
c3417a74
DN
44752009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4476
4477 * fns.c: Remove code for unsupported system: MAC_OS.
4478 * image.c: Likewise. Include setjmp.h.
4479
9685cef2
JD
44802009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4481
4482 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4483 pixel -1 (bug #4742).
4484
d7306fe6
DN
44852009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4486
019d2c4c
DN
4487 * process.c (create_pty): Remove conditionals for no longer
4488 supported systems: UNIPLUS and RTU.
4489
ee6bacd4
DN
4490 * xterm.c:
4491 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4492
d7306fe6
DN
4493 * alloc.c: Do not define struct catchtag.
4494 * eval.c: Move struct catchtag definition ...
4495 * lisp.h: ... here.
4496
4497 * image.c: Move png.h #include earlier to avoid warnings.
4498
4499 * xterm.c:
4500 * xsmfns.c:
4501 * xselect.c:
4502 * xrdb.c:
4503 * xmenu.c:
4504 * xftfont.c:
4505 * xfont.c:
4506 * xfns.c:
4507 * xfaces.c:
4508 * xdisp.c:
4509 * window.c:
4510 * widget.c:
4511 * w32xfns.c:
4512 * w32uniscribe.c:
4513 * w32term.c:
4514 * w32select.c:
4515 * w32reg.c:
4516 * w32proc.c:
4517 * w32menu.c:
4518 * w32inevt.c:
4519 * w32heap.c:
4520 * w32font.c:
4521 * w32fns.c:
4522 * w32console.c:
4523 * w32.c:
4524 * w16select.c:
4525 * vm-limit.c:
4526 * unexsol.c:
4527 * unexec.c:
4528 * unexcw.c:
4529 * unexaix.c:
4530 * undo.c:
4531 * tparam.c:
4532 * textprop.c:
4533 * terminfo.c:
4534 * terminal.c:
4535 * termcap.c:
4536 * term.c:
4537 * syntax.c:
4538 * sound.c:
4539 * sheap.c:
4540 * search.c:
4541 * scroll.c:
4542 * region-cache.c:
4543 * regex.c:
4544 * ralloc.c:
4545 * process.c:
4546 * print.c:
b024548b
DN
4547 * nsterm.m:
4548 * nsselect.m:
4549 * nsmenu.m:
4550 * nsimage.m:
4551 * nsfont.m:
4552 * nsfns.m:
d7306fe6
DN
4553 * msdos.c:
4554 * minibuf.c:
4555 * menu.c:
4556 * marker.c:
4557 * macros.c:
4558 * keymap.c:
4559 * keyboard.c:
4560 * intervals.c:
4561 * insdel.c:
4562 * indent.c:
4563 * gtkutil.c:
4564 * ftxfont.c:
4565 * ftfont.c:
4566 * fringe.c:
4567 * frame.c:
4568 * fontset.c:
4569 * font.c:
4570 * fns.c:
4571 * floatfns.c:
4572 * filelock.c:
4573 * fileio.c:
4574 * emacs.c:
4575 * editfns.c:
4576 * dosfns.c:
4577 * doprnt.c:
4578 * doc.c:
4579 * dispnew.c:
4580 * dired.c:
4581 * dbusbind.c:
4582 * data.c:
4583 * composite.c:
4584 * coding.c:
4585 * cmds.c:
4586 * cm.c:
4587 * chartab.c:
4588 * charset.c:
4589 * character.c:
4590 * ccl.c:
4591 * category.c:
4592 * casetab.c:
4593 * casefiddle.c:
4594 * callproc.c:
4595 * callint.c:
4596 * bytecode.c:
4597 * buffer.c:
4598 * atimer.c: Include setjmp.h. (Bug#4643)
4599
fd5f21e6
SM
46002009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4601
4c0354d7
SM
4602 Remove leftover table unibyte_to_multibyte_table.
4603 * character.c (unibyte_to_multibyte_table): Remove.
4604 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4605 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4606 * character.h (UNIBYTE_TO_CHAR): New macro.
4607 (MAKE_CHAR_MULTIBYTE): Use it.
4608 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4609 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4610 (message_dolog, set_message_1):
4611 * search.c (Freplace_match):
4612 * editfns.c (Fcompare_buffer_substrings):
4613 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4614 (concat):
4615 * insdel.c (copy_text, count_size_as_multibyte):
4616 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4617 * term.c (produce_glyphs):
4618 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4619 * regex.c (RE_CHAR_TO_MULTIBYTE):
4620 * cmds.c (internal_self_insert):
4621 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4622
fd5f21e6
SM
4623 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4624
4418646e
DN
46252009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4626
4627 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4628
35f5c1d2
JB
46292009-10-16 Juanma Barranquero <lekktu@gmail.com>
4630
4631 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4632
a0cd8f6b
AR
46332009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4634
4635 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4636 still needed under Tiger.
4637
4638 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4639
4640 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4641 __Apple__.
4642
4643 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4644
01a8d3fa
KH
46452009-10-15 Kenichi Handa <handa@m17n.org>
4646
4647 * print.c (print_object): Escape a symbol like "2E10" too.
4648
bf6c75c9 46492009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4650
4651 Cleanups and changes for 64-bit compile under Snow Leopard.
4652 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4653
4654 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4655
c5959062 4656 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4657 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4658 cast argument.
4659 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4660 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4661
4662 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4663
4664 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4665 where appropriate.
4666
4667 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4668 where appropriate.
6e4780c5
JB
4669 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4670 Use stringWithUTF8String.
bf6c75c9
AR
4671 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4672
6e4780c5
JB
4673 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4674 Add formal protocol mention to inheritance.
bf6c75c9
AR
4675 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4676
6e4780c5
JB
4677 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4678 Fix printf format.
bf6c75c9
AR
4679 (ns_query_color): Use CGFloat where appropriate.
4680 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4681 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4682 argument.
4683
3d87f118
AR
4684 * config.in (NS_HAVE_NSINTEGER): Drop.
4685
a95c8102
AR
4686 * dbusbind.c (dbus-method-return-internal)
4687 (dbus-method-error-internal): Use long format in printf, and cast
4688 argument.
4689
4690 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4691 in printf, and cast argument.
4692
6873acca 4693 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4694 cast argument.
4695
9ec6f100
GM
46962009-10-11 Glenn Morris <rgm@gnu.org>
4697
4698 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4699
5be883cd
JD
47002009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4701
4702 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4703 menu bar with a small width so it doesn't enlarge the frame.
4704
d7a39b51
JB
47052009-10-08 Juanma Barranquero <lekktu@gmail.com>
4706
4707 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4708
0c2b6f8e
GM
47092009-10-06 Glenn Morris <rgm@gnu.org>
4710
4711 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4712 SOME_MACHINE_LISP (this enters indirectly via DOC).
4713
e02131a2
EZ
47142009-10-05 Eli Zaretskii <eliz@gnu.org>
4715
4716 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4717
b4744254
EZ
47182009-10-04 Eli Zaretskii <eliz@gnu.org>
4719
4720 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4721 Doc fix.
4722
dbf64827
JB
47232009-10-03 Martin Rudalics <rudalics@gmx.at>
4724
4725 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4726
e9a0aef8
MA
47272009-10-02 Michael Albinus <michael.albinus@gmx.de>
4728
d528b1ce 4729 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4730 used anymore outside fileio.c.
4731
4732 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4733
64eb2b56
JB
47342009-10-01 Juanma Barranquero <lekktu@gmail.com>
4735
4736 * lisp.h (Qdelete_directory_internal):
4737 Declare, instead of Qdelete_directory.
4738
4739 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4740
9d28c33e
SM
47412009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4742
4743 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4744
9d8f3bd9
MA
47452009-10-01 Michael Albinus <michael.albinus@gmx.de>
4746
9d28c33e 4747 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4748 Fdelete_directory. It is not a command anymore. It has no file
4749 name handler.
4750
9694740b
SM
47512009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4752
4753 * xdisp.c (get_next_display_element): Use an enum in last change.
4754
748e162f
KH
47552009-09-28 Kenichi Handa <handa@m17n.org>
4756
9694740b 4757 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4758 unibyte_display_via_language_environment in handling
4759 Vnobreak_char_display.
4760
17efd58d
AR
47612009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4762
4763 * nsterm.h (ns_app_name): New extern variable.
4764
4765 * nsterm.m (ns_app_name): New variable.
4766 (ns_term_init): Set and use it.
4767 (ns_term_shutdown): Use it.
4768
4769 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4770 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4771
4772 * nsfns.m (ns_set_name_iconic, ns_set_name)
4773 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4774 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4775
9694740b
SM
4776 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4777 Remove double-casting in client_data comparison.
31c2d412 4778
3208cb35
YM
47792009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4780
4781 * keyboard.c (make_lispy_event): Remember last wheel direction.
4782 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4783
b7d552d6
GM
47842009-09-26 Glenn Morris <rgm@gnu.org>
4785
4786 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4787 internal.elc. Add term/pc-win.elc.
4788 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4789 term/x-win.elc.
4790 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4791 term/w32-win.elc.
4792 (NS_SUPPORT): New.
4793 (lisp): Add NS_SUPPORT.
4794 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4795
4ff670a8
DR
47962009-09-25 David Reitter <david.reitter@gmail.com>
4797
4798 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4799 on Mac OS X 10.6+ (bug#4513).
4800
feabfb6c
JB
48012009-09-24 Juanma Barranquero <lekktu@gmail.com>
4802
4803 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4804 some parts of Emacs code (like font selection) don't grok them.
4805 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4806
de59072a
AS
48072009-09-24 Andreas Schwab <schwab@redhat.com>
4808
4809 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4810
a489517b
JB
48112009-09-24 Juanma Barranquero <lekktu@gmail.com>
4812
4813 * dired.c (Fdirectory_files): Fix typo in docstring.
4814
0592970c
AR
48152009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4816
4817 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4818 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4819 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4820 under GNUstep.
4821 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4822
4823 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4824 glyph advancement.
4825
48e8a88b
AR
48262009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4827
4828 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4829 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4830
4831 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4832 deleted (bug #4492).
4833
e14f0a78
AR
4834 * nsfont.m (Vns_reg_to_script): New lisp variable.
4835 (syms_of_nsfont): Declare it.
4836 (ns_registry_to_script): New function.
4837 (ns_get_req_script): Call it.
4838 (ns_findfonts): Don't give up on non-unicode registry.
4839
4840 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4841
5b650faa
SM
48422009-09-20 Tom Tromey <tromey@redhat.com>
4843
4844 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4845 batch mode (bug#4228).
4846
a489517b 48472009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4848
4849 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4850 carefully. (Bug #4339)
0bae4e09 4851
fcfe06f3
CY
48522009-09-18 Chong Yidong <cyd@stupidchicken.com>
4853
d798ba87 4854 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4855
31642728
AR
48562009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4857
4858 * emacs.c (inhibit_x_resources): Update doc string for NS.
4859 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4860 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4861
4862 * nsterm.h (ns_no_defaults): Remove.
4863
4864 * nsterm.m (ns_no_defaults): Remove.
4865 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4866 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4867 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4868 don't update the NSWindow itself.
4869 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4870 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4871
4872 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4873 ns_use_qd_smoothing.
4874
4875 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4876 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4877 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4878 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4879
8686ac71
JB
48802009-09-17 Juanma Barranquero <lekktu@gmail.com>
4881
4882 * emacs.c (inhibit_x_resources): New variable.
4883 (main) [HAVE_NS]: Don't process --quick command line option.
4884 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4885
4886 * lisp.h (inhibit_x_resources): Declare it extern.
4887
4888 * w32reg.c (x_get_string_resource):
4889 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4890
e227ba05
EZ
48912009-09-17 Eli Zaretskii <eliz@gnu.org>
4892
362654a6
JB
4893 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4894 Add lisp/term/internal.elc.
e227ba05 4895
742d40e8
SM
48962009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4897
4898 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4899 (bug#4461).
4900
005bd5a2
DN
49012009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4902
4903 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4904
4905 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4906 (OBJECTS_MACHINE): Remove, unused.
4907
f9af9719
SM
49082009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4909
4910 * frame.c (x_get_resource_string): Remove unused.
4911
0307c7d2
JD
49122009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4913
4914 * xterm.c (x_new_font): Call change_frame_size before calling
4915 x_set_window_size, in case frame size won't change.
4916
4917 * frame.c (x_set_font): Remove dead code.
4918
428b13d6
SM
49192009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4920
4921 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4922
5766c380
SM
49232009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4924
4925 * lread.c (Fload): Don't output a message after loading an obsolete
4926 package any more (done in Lisp now).
4927
2fd0161b
CY
49282009-09-12 Chong Yidong <cyd@stupidchicken.com>
4929
4930 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4931
bc5e75b6
SM
49322009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4933
4934 * keymap.c (Fwhere_is_internal): Use nconc2.
4935
c31c985e
AM
49362009-09-11 Alan Mackenzie <acm@muc.de>
4937
4938 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4939 batch mode.
4940
78012bd2
AS
49412009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4942
4943 * xdisp.c (display_mode_element): Detect cycles.
4944
9d889332
SM
49452009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4946
4947 * keymap.c (where_is_internal): Don't erroneously return nil right after
4948 filling the cache.
4949 (where_is_internal_1): Fix up typo.
4950
7ab5d780
GM
49512009-09-11 Glenn Morris <rgm@gnu.org>
4952
4953 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4954 share a common doc-string.
4955
5238a749
SM
49562009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4957
66d77eda
SM
4958 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4959 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4960
5238a749
SM
4961 * keymap.c (QCadvertised_binding): New constant.
4962 (syms_of_keymap): Initialize it.
4963 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4964 if applicable.
4965
19f48442
SM
49662009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4967
50d4ba39
SM
4968 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4969 (parse_menu_item): Streamline since bindings are recomputed all the
4970 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4971 more and don't support lmenu's menu-alias any more either.
4972
a88a5372
SM
4973 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4974 (where_is_internal): Strip it down to only traverse the keymaps.
4975 Move the cache handling from Fwhere_is_internal to here.
4976 (Fwhere_is_internal): Move the handling of remapping and the choice of
4977 the best binding from where_is_internal to here.
4978 Unify the cached/noncached paths, so remapping is also handled
4979 correctly when the cache is used, and so the cache can be used to
4980 speed up remap-handling when applicable.
4981 Give preference to non-remapped bindings.
4982 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4983 non-remapped bindings.
4984 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4985 command remapping.
4986
19f48442
SM
4987 * xdisp.c (display_mode_element): Move list length limit from 50 to
4988 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4989
599498c3 49902009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4991
4992 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4993
f9b7b5ac
SM
49942009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4995
a53af587
JB
4996 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4997 (Bug#4334)
4998
f9b7b5ac
SM
4999 * keymap.c (where_is_internal): Filter out shadowed remappings.
5000 Assume that where_is_internal returns unshadowed bindings to simplify
5001 the code and get rid of the gotos. Use ASIZE.
5002
04f4b72d
JD
50032009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5004
4da146f2
JD
5005 * xterm.c (x_focus_changed): If we get a focusout and pointer
5006 is invisible, make it visible.
5007
04f4b72d
JD
5008 * xterm.h: Remove condition for declaration of
5009 x_*_window_to_frame.
5010
7cef7ce3
SM
50112009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5012
5013 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5014 initial terminal as well.
5015
a54fa5b7
JD
50162009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5017
5018 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5019 x_menubar_window_to_frame.
a54fa5b7 5020
50426a04 5021 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5022 (XTmouse_position): Do not return valid positions
5023 for clicks in the menubar and the toolbar for Gtk+.
5024
5025 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5026 if the widget for the event has the same top level as a frame,
5027 return the frame.
5028 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5029 internal windows, bug #4122.
5030 (x_non_menubar_window_to_frame): Remove.
5031
5a021dd0
GM
50322009-09-02 Glenn Morris <rgm@gnu.org>
5033
5034 * buffer.c (default-major-mode): Move most of the doc from here...
5035 (major-mode): ... to here.
5036
548fe2f3
NR
50372009-08-30 Nick Roberts <nickrob@snap.net.nz>
5038
5039 * process.c (wait_reading_process_output): Keep the descriptor
5040 when pty is used by a non-child process, e.g., in I/O buffer of
5041 GDB this allows inferior to be restarted.
5042
e0840eef
EZ
50432009-08-29 Eli Zaretskii <eliz@gnu.org>
5044
5045 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5046 both branches into one.
5047
82e98df4
SM
50482009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5049
5050 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5051 (main): Use enable-multibyte-characters rather than
5052 default-enable-multibyte-characters. Output a warning message when
5053 running a unibyte session.
5054
890617cb
YM
50552009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5056
5057 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5058 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5059 (copy_data_segment): Also copy __program_vars section.
5060 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5061 (dump_it) [LC_DYLD_INFO]: Use it.
5062
5063 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5064
e7adeadc
EZ
50652009-08-28 Eli Zaretskii <eliz@gnu.org>
5066
5067 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5068 $(SRC)/buildobj.h.
5069 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5070 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5071 $(SRC)/buildobj.h.
5072 (clean): Add buildobj.h.
5073
3ed8bbdc
TZ
50742009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5075
5076 * print.c (print_object): Set escapeflag to 1 when printing
5077 hashtable keys and values.
5078
155a6764
SM
50792009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5080
5081 * lread.c (read_integer): Use doubles (and potentially return a float
5082 number) as we do in string-to-number.
5083 (read1): Use strtol to read integers, signal errors on strtol's
5084 overflow and use floats if strtol's output is too large for
5085 Elisp integers.
5086
877610de
EZ
50872009-08-27 Eli Zaretskii <eliz@gnu.org>
5088
5089 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5090 (make-buildobj-SH): Fix last change.
5091 (SRC): Move to before where it's first used.
5092
ef73e7be
KH
50932009-08-27 Kenichi Handa <handa@m17n.org>
5094
550c8289
KH
5095 * process.c (send_process): Use encode_coding_object instead of
5096 encode_coding_string to perform eol-conversion even if the string
5097 is unibyte.
5098
60afa08d
KH
5099 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5100 character.
5101
ef73e7be 5102 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5103 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5104
7b3a82d7
DN
51052009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5106
5654bf63
DN
5107 * callproc.c (Fcall_process): Remove always true #if.
5108
7b3a82d7
DN
5109 * lisp.h: Replace #if 0 code for checking with text pointing to
5110 the --enable-checking configure flag.
5111
5112 * emacs.c (main): Mention the --enable-profiling configure flag
5113 instead of using CFLAGS.
5114
878bde49
KR
51152009-08-26 Ken Raeburn <raeburn@raeburn.org>
5116
5117 * Makefile.in (buildobj.h): New target.
5118 (doc.o): Depend on it.
5119 (temacs${EXEEXT}): Don't generate buildobj.lst.
5120 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5121 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5122 ($(BLD)/doc.$(O)): Depend on it.
5123 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5124 provided by Eli Zaretskii.)
5125 ($(TEMACS)): Don't generate buildobj.lst.
5126 * doc.c: Include buildobj.h.
5127 (buildobj): New static variable.
5128 (Fsnarf_documentation): Use it, instead of opening and reading
5129 buildobj.lst.
5130
1574224c
MA
51312009-08-25 Michael Albinus <michael.albinus@gmx.de>
5132
5133 * dbusbind.c (Fdbus_call_method)
5134 (Fdbus_call_method_asynchronously): Use English numeric format for
5135 timeout values in doc string.
5136
d9da2f45
KH
51372009-08-25 Kenichi Handa <handa@m17n.org>
5138
ef73e7be
KH
5139 * alloc.c (mark_char_table): New function.
5140 (mark_object): Use mark_char_table for a char-table.
5141
d9da2f45
KH
5142 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5143 (CHAR_TABLE_REF): Use it.
5144
c8edcc01
KR
51452009-08-23 Ken Raeburn <raeburn@raeburn.org>
5146
5147 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5148 before invoking the newly build emacs to check for load-path
5149 shadowing.
5150
7763401b
GM
51512009-08-22 Glenn Morris <rgm@gnu.org>
5152
5153 * Makefile.in (bootstrap_exe): New variable.
5154 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5155 Use ${bootstrap_exe}.
5156
729eadda
EZ
51572009-08-22 Eli Zaretskii <eliz@gnu.org>
5158
5159 * coding.h (encode_coding_string): Don't encode unibyte strings.
5160 (Bug#4047)
5161
eb4c6ace
MA
51622009-08-22 Michael Albinus <michael.albinus@gmx.de>
5163
5164 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5165
5166 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5167 intended as hotfix only.
5168 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5169
36e34d1b
AR
51702009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5171
5172 * nsterm.m (ns_get_color): Update documentation properly for last
5173 change, and clean up loose ends in the code left by it. Fix
5174 longstanding bug with 16-bit hex parsing, and add support for
5175 yet another X11 format (rgb:r/g/b) for compatibility.
5176 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5177 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5178
f983eb8a
SM
51792009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5180
5181 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5182
3f56d3c6
MA
51832009-08-20 Michael Albinus <michael.albinus@gmx.de>
5184
5185 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5186 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5187 (xd_initialize, xd_pending_messages): Check, whether
5188 $DBUS_SESSION_BUS_ADDRESS is set.
5189
fb641d68
YM
51902009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5191
5192 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5193
5194 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5195
cf59a374
GM
51962009-08-20 Glenn Morris <rgm@gnu.org>
5197
5198 * emacs.c (system-type): Doc fix.
5199
1373f3be
SM
52002009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5201
5202 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5203 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5204
058ed861
MA
52052009-08-18 Michael Albinus <michael.albinus@gmx.de>
5206
1373f3be
SM
5207 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5208 New functions.
058ed861
MA
5209 (xd_initialize): Revert change from 2009-08-16.
5210
563a866e 52112009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5212
5213 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5214 font-group vector, return nil.
5fc05db0 5215
e42bdf01
CY
52162009-08-17 Chong Yidong <cyd@stupidchicken.com>
5217
5218 * process.c (status_notify): Don't perform redisplay.
5219 (Fdelete_process, list_processes_1, process_send_signal):
5220 Expliticly perform redisplay.
5221 (wait_reading_process_output): Always check process status, but
5222 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5223
4230ab74
KR
52242009-08-17 Ken Raeburn <raeburn@raeburn.org>
5225
1373f3be 5226 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5227 (XFLOAT_INIT): New macro for storing a float value.
5228 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5229 * fns.c (sxhash): Copy out the value of a float in order to
5230 examine its bytes.
5231 * dbusbind.c (xd_append_arg): Likewise.
5232
4230ab74
KR
5233 * emacs.c (main): Don't call syms_of_data twice.
5234
a0645cdd
MA
52352009-08-16 Michael Albinus <michael.albinus@gmx.de>
5236
5237 * dbusbind.c (xd_initialize): Add connection file descriptor to
5238 input_wait_mask, in order to let select() detect, whether a new
5239 message has been arrived.
ca4f31ea 5240 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5241
485db0ba
MA
52422009-08-15 Michael Albinus <michael.albinus@gmx.de>
5243
1373f3be
SM
5244 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5245 New functions.
485db0ba
MA
5246
5247 * lisp.h (xd_pending_messages): Declare.
5248
5249 * keyboard.c (readable_events): Call xd_pending_messages.
5250
b5b98ff4
CY
52512009-08-15 Chong Yidong <cyd@stupidchicken.com>
5252
1373f3be 5253 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5254
f8354c6e
CY
5255 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5256
b5b98ff4
CY
5257 * buffer.c (set_buffer_internal_1)
5258 (swap_out_buffer_local_variables): Check for unbound local
5259 variables (Bug#4138).
5260
8b9fc636
EZ
52612009-08-14 Eli Zaretskii <eliz@gnu.org>
5262
5263 * process.c (create_pty): Fix last change.
5264
ce959360
CY
52652009-08-13 Chong Yidong <cyd@stupidchicken.com>
5266
5267 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5268 (xbm_load_image): Caller changed.
64b807c9 5269 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5270
c7baf7e9
NR
52712009-08-13 Nick Roberts <nickrob@snap.net.nz>
5272
5273 * process.c (create_pty): New function.
5274 (Fstart_process): Use it to allow Emacs to just associate a pty
5275 with the buffer. See associated change in gdb-mi.el.
5276 (list_processes_1): Deal with no program name.
5277 (start_process_unwind): Use pid == -2 to mean no process.
5278
1ac9108a
SM
52792009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5280
5281 * cmds.c (nonundocount): New global variable.
5282 (keys_of_cmds): Initialize it.
5283 (Fself_insert_command): Use it to combine upto 20 sequential chars
5284 into a single undo entry, just like the Qself_insert_command code in
5285 keyboard.c does.
5286 Call frame_make_pointer_invisible, also like the Qself_insert_command
5287 code in keyboard.c does.
5288 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5289 than its own local replacement for it.
5290
e267324c
KR
52912009-08-10 Ken Raeburn <raeburn@raeburn.org>
5292
1ac9108a 5293 * fns.c (concat): Don't re-set string length to its current value.
77437343 5294
1ac9108a
SM
5295 * coding.h (decode_coding_string, encode_coding_string):
5296 Use SBYTES macro.
f0bed503 5297
1ac9108a 5298 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5299 (doprnt): Merge with doprnt1, discarding lispstrings code.
5300 * lisp.h (doprnt_lisp): Don't declare.
5301
416e006d
JL
53022009-08-07 Juri Linkov <juri@jurta.org>
5303
5304 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5305
6f7d5780
DN
53062009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5307
5308 * print.c (syms_of_print): Undo previous change.
5309
f19a0f5b
TZ
53102009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5311
5312 * lread.c (read1, syms_of_lread): Read hashtables back from the
5313 readable format.
5314
5315 * print.c (print_preprocess, print_object): Print hashtables fully
5316 and readably.
5317 (syms_of_print): Provide 'hashtable-print-readable.
5318
b9173dc2
AR
53192009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5320
5321 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5322 no family set.
5323 (nsfont_open): Handle case when entity has no family.
5324
1586503c
AR
53252009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5326
5327 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5328 element, not a list, for match case.
5329
087048cd
KH
53302009-07-28 Kenichi Handa <handa@m17n.org>
5331
5332 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5333 rigidly.
5334
5335 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5336 font_parse_xlfd. Check font properties more rigidly.
5337
780c2506
DN
53382009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5339
31fd7c5c
JB
5340 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5341 bsd-common.h.
780c2506 5342
a8c0cc18
KH
53432009-07-27 Kenichi Handa <handa@m17n.org>
5344
5345 * xfaces.c (face_with_height): Call font_clear_prop.
5346
4fbe2306
CY
53472009-07-26 Chong Yidong <cyd@stupidchicken.com>
5348
111d9af3
CY
5349 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5350
5351 * xterm.c (x_term_init): Use Qx.
5352
4fbe2306
CY
5353 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5354
1ac9108a 5355 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5356 (ns_get_color): Revert 2009-07-16 change.
5357
beb0b7f9
EZ
53582009-07-25 Eli Zaretskii <eliz@gnu.org>
5359
5360 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5361 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5362
2baf5e76
KR
53632009-07-25 Ken Raeburn <raeburn@raeburn.org>
5364
1ac9108a
SM
5365 * coding.h (decode_coding_string, encode_coding_string):
5366 Use SCHARS macro.
8890e5f5 5367
2baf5e76 5368 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5369 (load_depth): Delete.
2baf5e76
KR
5370 (Qload_in_progress): New variable.
5371 (load_unwind): Don't reference load_depth or load_in_progress.
5372 (Fload): Likewise; specbind Qload_in_progress instead.
5373 (init_lread): Don't initialize load_depth.
5374 (syms_of_lread): Initialize and protect Qload_in_progress.
5375
1395c6f5
AR
53762009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5377
5378 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5379
4e2f36cf
AR
53802009-07-23 Yavor Doganov <yavor@gnu.org>
5381
5382 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5383
5dd9a6f7
AR
53842009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5385
5386 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5387 Bugs 3792, 3720, 2402.
5388 (ns_lookup_indexed_color): Check for bad index.
5389 (ns_index_color): Init unused slot to 0.
5390 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5391 Bug 3714, possibly 3082.
5dd9a6f7 5392
c902b920
JR
53932009-07-22 Jason Rumney <jasonr@gnu.org>
5394
1ac9108a
SM
5395 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5396 Position IME window at cursor (Bug#2570).
c902b920
JR
5397 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5398 (globals_of_w32fns): Dynamically load functions required above.
5399
5400 * w32term.c (w32_draw_window_cursor): Send message to reposition
5401 any IME window.
5402
090101cf
CY
54032009-07-21 Chong Yidong <cyd@stupidchicken.com>
5404
5405 * fileio.c: Revert 2009-07-16 changes.
5406 (Vauto_save_include_big_deletions): New variable.
5407 (Fdo_auto_save): Disable auto-save only if
5408 auto-save-include-big-deletions is nil.
5409
e6583e3d
CY
54102009-07-21 Chong Yidong <cyd@stupidchicken.com>
5411
5412 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5413 the overflowed pixels into account (Bug#3879).
5414
ece435a5
KR
54152009-07-21 Ken Raeburn <raeburn@raeburn.org>
5416
5417 * lread.c (load_depth): New variable.
5418 (Fload, load_unwind, init_lread): Set it to the load recursion
5419 depth; set load_in_progress as a simple boolean based on the
5420 current load_depth. (Bug#3892)
5421
40b2d973
AR
54222009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5423
5424 * nsfont.m (ns_has_attribute): Remove.
5425 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5426
10be7e0d
JL
54272009-07-18 Juri Linkov <juri@jurta.org>
5428
5429 * process.c (Fset_process_query_on_exit_flag): Mention killing
5430 a buffer in docstring.
5431
fa055055
KH
54322009-07-17 Kenichi Handa <handa@m17n.org>
5433
5434 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5435
042f7b69
YM
54362009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5437
5438 * nsfns.m (Fns_set_alpha): Remove function.
5439 (syms_of_nsfns): Don't defsubr it.
5440
5441 * nsterm.m (ns_get_color): Remove incompatible color formats.
5442 (ns_color_to_lisp): Generate #rrggbb color format string.
5443
4be941e3
RS
54442009-07-16 Richard Stallman <rms@gnu.org>
5445
5446 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5447 (Fset_buffer_auto_saved): Handle save_length = -2.
5448
4e6b227d
CY
54492009-07-16 Chong Yidong <cyd@stupidchicken.com>
5450
5451 * xterm.c (Qx_gtk_map_stock): New var.
5452
5453 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5454 of calling intern each time.
5455
a1856973
YM
54562009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5457
5458 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5459 does tiling.
5460
5461 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5462
497e54d8
KH
54632009-07-14 Kenichi Handa <handa@m17n.org>
5464
72d36834
KH
5465 * font.c (font_vconcat_entity_vectors): New function.
5466 (struct font_sort_data): New member font_driver_preference.
5467 (font_compare): Check font_driver_preference.
5468 (font_sort_entities): The format of the first argument changed.
5469 (font_delete_unmatched): Likewise.
5470 (font_list_entities): The return type changed.
5471 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5472 (font_find_for_lface): Adjuste for the above changes.
5473 Don't suppress the checking of C even if the repertory supports it.
5474 (Flist_fonts): Adjust for the above changes.
72d36834 5475
1ac9108a
SM
5476 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5477 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5478 Reject a font who has adstyle property that is different from a
5479 langname derived from registry property.
1ac9108a 5480 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5481
b6046155
EZ
54822009-07-13 Eli Zaretskii <eliz@gnu.org>
5483
5484 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5485 local copy of dirfilename.
5486
fb6b6049
KH
54872009-07-13 Kenichi Handa <handa@m17n.org>
5488
e2402a5e
KH
5489 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5490 against max_char.
5491
fb6b6049
KH
5492 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5493 calling XSYMBOL (sym).
5494
65156807
EZ
54952009-07-11 Eli Zaretskii <eliz@gnu.org>
5496
1ac9108a
SM
5497 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5498 New function.
5499 (directory_files_internal) [WINDOWSNT]:
5500 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5501 the filesystem of the directory is fast or slow.
5502
5503 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5504 file name.
5505 (is_slow_fs): New function.
5506 (stat): Use it to determine whether to issue more system calls to
5507 get accurate file attributes, when w32-get-true-file-attributes is
5508 `local'.
5509
e0ab5fcf
JD
55102009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5511
5512 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5513 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5514 parameter font-parameter as default to the font dialog.
5515
784ceded
KH
55162009-07-10 Kenichi Handa <handa@m17n.org>
5517
5518 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5519
fb8edc0b
EZ
55202009-07-09 Eli Zaretskii <eliz@gnu.org>
5521
1ac9108a 5522 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5523
fb8edc0b
EZ
5524 * w32.c (stat): Treat UNC file names as residing on remote
5525 drives. (Bug#3542)
5526
635c75b1
KH
55272009-07-09 Kenichi Handa <handa@m17n.org>
5528
5529 * fontset.c (fontset_find_font): Fix previous change.
5530
c1d5ce94
MA
55312009-07-08 Michael Albinus <michael.albinus@gmx.de>
5532
5533 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5534 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5535 error flag.
5536
edb61b39
KH
55372009-07-08 Kenichi Handa <handa@m17n.org>
5538
374bf7e4
KH
5539 * fontset.c (fontset_find_font): Fix the logic of handling
5540 charset_matched.
5541 (font_for_char): Delete unused var.
5542 (generate_ascii_font_name): Delete it.
5543
edb61b39
KH
5544 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5545
5546 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5547 (encode_coding_sjis): Fix the code range check.
5548
0f3f018c
CY
55492009-07-07 Chong Yidong <cyd@stupidchicken.com>
5550
5551 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5552 (Fexpand_file_name): Copy string data properly (Bug#3772).
5553
fcaf6f3a
JD
55542009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5555
5556 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5557 first MapNotify.
5558
6809ca75
KH
55592009-07-07 Kenichi Handa <handa@m17n.org>
5560
5561 * character.h (unibyte_has_multibyte_table): Delete extern.
5562 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5563
5564 * charset.c (Fset_charset_priority): Update charset_unibyte.
5565 (syms_of_charset): Initialize charset_unibyte.
5566
5567 * character.c (unibyte_has_multibyte_table): Delete it.
5568 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5569 charset_unibyte.
5570 (multibyte_char_to_unibyte_safe): Likewise.
5571 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5572
1ac9108a 5573 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5574 (x_produce_glyphs): Likewise.
5575
5576 * .gdbinit (xcharset): Fix the treating $arg0.
5577
ad9e2d54
EZ
55782009-07-04 Eli Zaretskii <eliz@gnu.org>
5579
5580 Emulation of `getloadavg' on MS-Windows.
50426a04 5581 * w32.c: Include float.h.
ad9e2d54
EZ
5582 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5583 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5584 (get_native_system_info, get_system_times): New functions.
5585 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5586 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5587 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5588 g_b_init_get_system_times, and num_of_processors.
5589
0a3472c7
JR
55902009-07-03 Jason Rumney <jasonr@gnu.org>
5591
5592 * w32term.c (w32_initialize): Use standard types.
5593
80904120
EZ
55942009-07-03 Eli Zaretskii <eliz@gnu.org>
5595
5596 * dired.c (Ffile_attributes): Decode user and group names by the
5597 locale's encoding. (Bug#3443)
5598
6978862d
DN
55992009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5600
f8d23104
DN
5601 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5602 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5603
5604 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5605
5606 * term.c (init_tty): Remove spurious #ifdef.
5607
6978862d
DN
5608 * m/mips.h: Mention this file is also used for netbsd.
5609 * m/pmax.h: Remove file.
5610
e044e4fc
JD
56112009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5612
5613 * xterm.h (struct x_display_info): Add invisible_cursor.
5614 (struct x_output): Add current_cursor.
5615
5616 * xterm.c (XTtoggle_invisible_pointer): New function.
5617 (x_define_frame_cursor): Don't define cursor if invisible or the
5618 same as before. Set current_cursor.
5619 (x_create_terminal): Set toggle_invisible_pointer_hook.
5620
5621 * xfns.c (make_invisible_cursor): New function.
5622 (x_set_mouse_color): Call make_invisible_cursor.
5623 Set current_cursor.
5624 (x_window): Set current_cursor.
5625
5626 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5627
5628 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5629 inserting a character.
5630 (read_avail_input): Call frame_make_pointer_visible.
5631
5632 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5633 (frame_make_pointer_invisible, frame_make_pointer_visible):
5634 New functions.
e044e4fc
JD
5635 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5636
5637 * frame.h: Declare frame_make_pointer_invisible and
5638 frame_make_pointer_visible.
5639 (struct frame): Add pointer_invisible.
5640
574c8efa
JD
56412009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5642
7b507248
JD
5643 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5644 frame isn't visible.
5645 (xg_frame_resized): If width/height is -1, get size of window
5646 from X server.
5647
5648 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5649 for MapNotify.
5650
835bdaa7 5651 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5652 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5653 (flush_and_sync): Reintroduce.
574c8efa 5654
3f1c6666 56552009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5656
31fd7c5c 5657 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5658
5659 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5660 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5661
5662 * frame.h: Declare Qsticky.
5663
cad9ef74
JD
5664 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5665
5666 * nsfns.m (ns_frame_parm_handlers): Ditto.
5667
5668 * frame.c: Declare Qsticky.
5669 (frame_parms): Add sticky.
5670
5671 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5672
5673 * xterm.h: Declare x_set_sticky.
5674
5675 * xterm.c (x_set_sticky): New function.
5676
69b16610
JD
5677 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5678 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5679 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5680
5681 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5682
5683 * frame.c: Qmaximized is new.
5684 (x_set_frame_parameters): Do not handle fullscreen specially.
5685 Only set width and height if explicitly set.
5686 (x_set_fullscreen): Handle Qmaximized.
5687 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5688 (syms_of_frame): Initialize Qmaximized.
5689
1ac9108a
SM
5690 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5691 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5692
5693 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5694 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5695 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5696 set gravity to NorthWestGravity when USE_GTK.
5697 (set_wm_state): New function.
31fd7c5c 5698 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5699 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5700 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5701 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5702 to x_real_positions and x_fullscreen_adjust.
5703
5704 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5705 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5706 flush_and_sync.
5707 (xg_height_changed): New function.
5708 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5709 and gtk_window_set_policy. Set frame gravity after parsing the
5710 geometry string.
3f1c6666
JD
5711 (xg_update_frame_menubar, free_frame_menubar)
5712 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5713 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5714 Remove calls to xg_frame_set_char_size.
5715
fd503d99
KH
57162009-07-01 Kenichi Handa <handa@m17n.org>
5717
5718 * keyboard.c (decode_keyboard_code): New function.
5719 (tty_read_avail_input): Decode the input bytes if necessary.
5720
1ac9108a
SM
5721 * coding.c (setup_coding_system):
5722 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5723 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5724 use Qno_conversion.
5725
24ed93fb
YM
57262009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5727
5728 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5729
99061dfc
CY
57302009-06-30 Chong Yidong <cyd@stupidchicken.com>
5731
1ac9108a 5732 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5733
ff90fbde
JR
57342009-06-30 Jason Rumney <jasonr@gnu.org>
5735
5736 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5737 is already loaded.
5738 Set user model ID if supported (bug#1849).
5739
5f445726
JM
57402009-06-29 Jim Meyering <meyering@redhat.com>
5741
5742 Remove useless if-before-xfree test.
5743 * nsfont.m (nsfont_close): Remove useless test.
5744 * term.c (delete_tty): Likewise.
5745 * w32.c (system_process_attributes): Likewise.
5746 * w32font.c (w32font_close): Likewise.
5747 * xfaces.c (x_free_gc): Likewise.
5748 * xselect.c (buffer): Likewise.
5749
b9607587
AS
57502009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5751
5752 * process.c (send_process): Keep decoded string in a local
5753 variable and protect it from GC. (Bug#3521)
5754
89ba96f4
EZ
57552009-06-28 Eli Zaretskii <eliz@gnu.org>
5756
5757 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5758 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5759
098a1589
CY
57602009-06-28 Chong Yidong <cyd@stupidchicken.com>
5761
485422be
CY
5762 * xdisp.c (start_display, handle_face_prop)
5763 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5764 (redisplay_window, try_window_id, produce_image_glyph):
5765 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5766
098a1589
CY
5767 * xterm.c (x_update_window_begin, x_new_focus_frame)
5768 (x_scroll_bar_handle_click, handle_one_xevent)
5769 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5770 (x_make_frame_visible, x_make_frame_invisible)
5771 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5772 code chunks that are now obsolete.
5773
78c38319
MA
57742009-06-28 Michael Albinus <michael.albinus@gmx.de>
5775
5776 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5777 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5778 for hours, when optimzation is enabled.
5779 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5780 (xd_read_message): Make them static.
5781
4189ed40
CY
57822009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5783
5784 * term.c (turn_on_face): Allow simultaneously bold and dim
5785 terminal faces (Bug#3530).
5786
cd9b5e16
CY
57872009-06-27 Chong Yidong <cyd@stupidchicken.com>
5788
4e23bedb
CY
5789 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5790
cd9b5e16
CY
5791 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5792 truncation glyphs (Bug#3686).
5793
07cc3c35
GM
57942009-06-27 Glenn Morris <rgm@gnu.org>
5795
5796 * m/pmax.h: Restore file, with only netbsd portions.
5797
31fd7c5c 57982009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5799
cd9b5e16 5800 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5801
42d4a64f
KH
58022009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5803
5804 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5805 the arg FORCE_SYMBOL.
5806
930fe55b 58072009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5808
5809 * fontset.c (fontset_find_font): When a usable rfont_def is found
5810 in a fallback font-group, make it the first element of the group.
5811
57ebc3fd
CY
58122009-06-24 Chong Yidong <cyd@stupidchicken.com>
5813
5814 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5815
f084f942
KH
58162009-06-24 Kenichi Handa <handa@m17n.org>
5817
5818 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5819 set for C.
5820 (fontset_font): Record the availability of a font for C both in
5821 the realized fontsets of the current one and the default one.
5822
2f686c87
DN
58232009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5824
5825 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5826 conditional, it is always defined on AIX.
5827
666e158e
MB
58282009-06-23 Miles Bader <miles@gnu.org>
5829
5830 * window.c (Vrecenter_redisplay): New variable.
5831 (syms_of_window): Initialize it.
5832 (Qtty): New extern declaration.
5833 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5834
c6da7cd2
JM
58352009-06-23 Jim Meyering <meyering@redhat.com>
5836
1ac9108a
SM
5837 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5838 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5839 pointer dereferences are guaranteed to be valid.
c6da7cd2 5840
678dca3d
KH
58412009-06-23 Kenichi Handa <handa@m17n.org>
5842
74d75424
KH
5843 * emacs.c (main): Call init_font ().
5844
5845 * font.h (Vfont_log): Extern it.
5846 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5847
5848 * font.c (font_sort_entities, font_list_entities)
5849 (font_matching_entity, font_open_entity)
5850 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5851 (Vfont_log): Delete static.
5852 (font_log_env_checked): Delete this variable.
5853 (font_add_log): Don't check font_log_env_checked.
5854 (font_deferred_log): Check Vfont_log.
5855 (init_font): New function.
5856
678dca3d
KH
5857 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5858
5859 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5860
5861 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5862
5863 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5864
5865 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5866 (face_for_char): Don't call font_deferred_log here.
5867 (font_for_char): Likewise.
5868
8a668709
CY
58692009-06-22 Chong Yidong <cyd@stupidchicken.com>
5870
9a01ee33
CY
5871 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5872 rather than its background_width for drawing the overline and
5873 underline (Bug#489).
5874
5875 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5876 rather than its background_width for drawing the overline and
5877 underline (Bug#489).
ec7c9926
CY
5878 (xg_default_icon_file): New variable.
5879 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5880 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5881
8a668709
CY
5882 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5883 (load_overlay_strings): Remove externs.
5884 (fast_find_position): Function deleted.
5885 (mouse_face_from_buffer_pos): New function, based on
5886 fast_find_position. Correctly handle before-strings,
5887 display-strings, and after-strings (Bug#1220).
5888 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5889
4d4c02d8
CY
58902009-06-21 Chong Yidong <cyd@stupidchicken.com>
5891
1ac9108a 5892 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5893 (move_it_in_display_line_to, move_it_in_display_line_to)
5894 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5895
70243478
CY
58962009-06-21 Chong Yidong <cyd@stupidchicken.com>
5897
5898 * Branch for 23.1.
5899
13087e59
JR
59002009-06-21 Jason Rumney <jasonr@gnu.org>
5901
5902 * w32term.c (keyboard_codepage): New static variable.
5903 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5904 (w32_read_socket) [WM_CHAR]: Use it to decode character
5905 input (bug#3237).
5906 (w32_initialize): Initialize it.
5907 (codepage_for_locale): New function.
5908
4735b74e
KR
59092009-06-20 Ken Raeburn <raeburn@raeburn.org>
5910
5911 * process.c (status_message): Pass Faset index argument as a lisp
5912 object, so as to work with USE_LISP_UNION_TYPE.
5913
0e727afa
YM
59142009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5915
5916 * coding.c (Ffind_coding_systems_region_internal):
5917 Cache checked characters.
5918
cf299835
KH
59192009-06-18 Kenichi Handa <handa@m17n.org>
5920
1ac9108a 5921 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5922
90f20d94
AS
59232009-06-18 Andreas Schwab <aschwab@redhat.com>
5924
5925 * xdisp.c (redisplay_internal): Check that the frame is still
5926 live after redisplay of its windows.
5927 (redisplay_windows): Check that the window is still live.
5928
7f1faf1c
KH
59292009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5930
5931 * coding.c (detect_coding_utf_16): Fix previous change.
5932
cc13543e
KH
59332009-06-16 Kenichi Handa <handa@m17n.org>
5934
5935 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5936 UTF-16 by checking the dispersion of Eth and Oth bytes.
5937
977b85f4
AS
59382009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5939
5940 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5941
66bd43d1
KH
59422009-06-15 Kenichi Handa <handa@m17n.org>
5943
5944 * process.c (status_message): Fix previous change. Be sure to
5945 decode a localized string.
5946
cb5ca9c5
YM
59472009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5948
5949 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5950 add comment explaining why.
5951
ec7709ba 59522009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5953
ec7709ba 5954 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5955
4b7f335c
AR
59562009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5957
5958 * nsfont.m (ns_attribute_value): Remove.
5959 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5960 (ns_has_attribute): Shrink the normal range.
5961 (ns_findfonts): Don't worry about requested spec in determining
5962 need for synthItal.
e41820ee 5963 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5964
73b26103
SZ
59652009-06-14 Seiji Zenitani <zenitani@mac.com>
5966
5967 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5968
5753e4da
KH
59692009-06-11 Kenichi Handa <handa@m17n.org>
5970
5971 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5972 overhang for the static composition case.
5973
3561b671
KH
59742009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5975
5753e4da
KH
5976 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5977 overhang for the automatic composition case.
5978
3561b671
KH
5979 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5980 composition case.
5981
852bbd41
CY
59822009-06-10 Chong Yidong <cyd@stupidchicken.com>
5983
5984 * xdisp.c (get_next_display_element): When handling wrap-prefix
5985 and line-prefix, treat \n as a control character (bug#3502).
5986
9903d1e6
KH
59872009-06-10 Kenichi Handa <handa@m17n.org>
5988
5989 * font.c (font_parse_family_registry): Fix for one-char foundry.
5990 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5991
0bcbaaaa
CY
59922009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5993
5994 * process.c (status_message): Fix handling of multibyte signal
5995 string (Bug#3499).
5996
40aa3f13
JM
59972009-06-09 Jim Meyering <meyering@redhat.com>
5998
1f80c7e2
CY
5999 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6000 color name is missing.
40aa3f13 6001
72d51285
KH
60022009-06-09 Kenichi Handa <handa@m17n.org>
6003
6004 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6005 FROM-CODE and TO-CODE are codepoints of CHARSET.
6006
c1d04d84
AR
60072009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6008
6009 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6010
60112009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6012
6013 Changes to support :script/:lang/:otf in NS font driver.
6014 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6015 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6016 indicate not part of font driver interface, and change callers.
6017 (ns_get_family): Remove pointless null check.
6018 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6019 ns_spec_to_descriptor, ns_descriptor_to_entity.
6020 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6021 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6022 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6023 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6024 (ns_get_req_script, ns_accumulate_script_ranges)
6025 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6026 New functions.
6027 (nsfont_list, nsfont_match): Use ns_findfonts.
6028 (nsfont_open): Use font descriptor instead of traits.
6029 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6030 (dump_glyphstring): Rename to ns_dump_glyphstring.
6031
c7eb9816
AR
6032 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6033
c1d04d84
AR
6034 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6035
6036 * fontset.c (fontset_from_font): Remove NS-specific code.
6037
ec7709ba 60382009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6039
6040 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6041 nonactive windows.
6042
31fd7c5c 60432009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6044
1ac9108a 6045 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6046
68852c13 60472009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6048
6049 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6050
6756cd1d
CY
60512009-06-07 Chong Yidong <cyd@stupidchicken.com>
6052
6053 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6054 account for the overflowing of newlines into the last glyph on the
6055 display line (Bug#3482).
6056
28bf482a
DR
60572009-06-05 David Reitter <david.reitter@gmail.com>
6058
ec7709ba
JB
6059 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6060 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6061 Fns_selection_exists_p, Fns_selection_owner_p.
6062
fdb55376
JR
60632009-06-03 Jason Rumney <jasonr@gnu.org>
6064
6065 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6066 available. (Bug#3379)
6067
05129fbe
KH
60682009-05-29 Kenichi Handa <handa@m17n.org>
6069
1ac9108a
SM
6070 * coding.c (get_translation_table):
6071 Check Venable_character_translation.
05129fbe 6072
ec7709ba 60732009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6074
ec7709ba
JB
6075 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6076 (x_make_frame_visible): Move frame to front rather than calling
15891144 6077 ns_raise_frame().
ec7709ba 6078 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6079 isn't key window.
ec7709ba 6080 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6081 drawRect may be called by NSView even if the frame is hidden.
6082
ec7709ba
JB
6083 * nsfns.m (Fx_create_frame): Follow other ports in
6084 determining visibility; default to t. Ensure async_visible is set.
15891144 6085
21f73755
EZ
60862009-05-23 Eli Zaretskii <eliz@gnu.org>
6087
6088 * dired.c (Ffile_attributes): Doc fix.
6089
34001e41
CY
60902009-05-22 Chong Yidong <cyd@stupidchicken.com>
6091
6092 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6093
46306a17
SM
60942009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6095
6096 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6097 and xfont_scratch_props.
6098 (syms_of_xfont): Do it here instead.
6099 (xfont_find_ccl_program): Delete, unused.
6100 (xfont_open): Delete unused var `i'.
6101
ef6e0694
KH
61022009-05-21 Kenichi Handa <handa@m17n.org>
6103
6104 * fontset.c (Qlatin): Don't make it static.
6105
46306a17
SM
6106 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6107 New functions.
ef6e0694
KH
6108 (xfont_scripts_cache, xfont_scratch_props): New variables.
6109 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6110 (xfont_list_pattern): Argument changed. Callers changed.
6111 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6112 (xfont_list): Don't reject a font spec with :script property.
6113 (xfont_has_char): Fix setting of encoding.
6114 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6115 xfont_scratch_props.
6116
61172009-05-19 Kenichi Handa <handa@m17n.org>
6118
46306a17 6119 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6120 Callers changed.
6121
61222009-05-18 Kenichi Handa <handa@m17n.org>
6123
6124 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6125
ac71ced7
SM
61262009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6127
6128 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6129 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6130
1c6d1051
YM
61312009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6132
6133 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6134 (x_delete_terminal): Dissociate resource database from display and
6135 then call XrmDestroyDatabase before closing display.
6136
9b9b779c
AR
61372009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6138
6139 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6140 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6141 whether selected frame is viable before raising it (based on patch
6142 by David Reitter), and improve commentary.
6143 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6144
cccd42d5
KH
61452009-05-15 Kenichi Handa <handa@m17n.org>
6146
6147 * font.c (Ffont_spec): Check arguments.
6148
337fbd17
CY
61492009-05-14 Chong Yidong <cyd@stupidchicken.com>
6150
6151 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6152 weight when testing attributes (Bug#3282).
6153
47a6002f
JD
61542009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6155
6156 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6157 what we expect to get in the next ConfigureNotify event.
6158
9cb363db
YM
6159 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6160 before Xft one (Bug#1696).
6161
b9126609
CY
61622009-05-07 David Reitter <david.reitter@gmail.com>
6163
6164 * nsfns.m (Fx_display_planes): Compute bitplanes using
6165 NSBitsPerPixelFromDepth (Bug#3207).
6166
27a69fd9
CY
61672009-05-10 Chong Yidong <cyd@stupidchicken.com>
6168
6169 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6170
00f37552
TTN
61712009-05-10 Ulrich Mueller <ulm@gentoo.org>
6172
6173 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6174
2d82a920
DR
61752009-05-07 David Reitter <david.reitter@gmail.com>
6176
ec7709ba
JB
6177 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6178 Respect mouse face background.
2d82a920 6179
46b0d52d
DR
61802009-05-07 David Reitter <david.reitter@gmail.com>
6181
ec7709ba
JB
6182 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6183 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6184 in ns_update_begin and ns_update_end.
6185
ce1b23bb
SM
61862009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6187
5996e1b7
SM
6188 * nsfns.m (ns_get_screen): Rewrite.
6189 Don't presume selected-frame is of type `ns'.
6190
ba98e3a0
SM
6191 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6192 all drivers.
6193
ce1b23bb
SM
6194 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6195
bcda200f
YM
61962009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6197
6198 * keyboard.h (add_user_signal): Fix typo in extern.
6199
6200 * lisp.h (add_user_signal): Remove extern.
6201
6202 * unexelf.c (unexec): Consider a section to precede the .bss section
6203 if its addresses overlap that of .bss.
6204 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6205 instead of dumping process.
6206
864660a2
SM
62072009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6208
6209 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6210
50da4e56
SM
62112009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6212
6213 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6214
51520a1a
DN
62152009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6216
6217 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6218 any statements.
6219
409ea3a1
AS
62202009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6221
59c4c60f
AS
6222 * process.c (read_process_output): Make sure the current buffer is
6223 always restored.
6224
409ea3a1
AS
6225 * coding.c (record_conversion_result): Don't modify
6226 Vlast_code_conversion_error for successful result.
6227 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6228
56f00ed2
KH
62292009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6230
6231 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6232 (load_charset_map): Remove unnecessary code.
56f00ed2 6233
4491c9d2
DR
62342009-04-30 David Reitter <david.reitter@gmail.com>
6235
35f5b128 6236 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6237 through f24.
6238
6970f632
CY
62392009-04-30 Chong Yidong <cyd@stupidchicken.com>
6240
6241 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6242
6243 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6244 face_at_buffer_position.
6245 (face_before_or_after_it_pos, get_next_display_element)
6246 (note_mouse_highlight): Update face_at_buffer_position call.
6247
6248 * term.c (term_mouse_highlight):
6249 * msdos.c (IT_note_mouse_highlight):
6250 * fontset.c (Finternal_char_font):
35f5b128 6251 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6252
6253 * dispextern.h (face_at_buffer_position): Update prototype.
6254
0c616f63
KH
62552009-04-30 Kenichi Handa <handa@m17n.org>
6256
35f5b128 6257 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6258
ad3aaf33
AS
62592009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6260
6261 * callproc.c (Fcall_process): Fix GC protection. Make sure
6262 current buffer is always restored.
6263
c3c963a0
YM
62642009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6265
6266 * atimer.c (init_atimer): Also clear stopped_atimers.
6267
6268 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6269
7e3386cb
YM
6270 * process.c (create_process): Clean up merger residues of
6271 2008-07-17 change.
6272
91f68422
CY
62732009-04-29 Ulrich Mueller <ulm@gentoo.org>
6274
6275 * lread.c (Vread_circle): New variable.
6276 (read1): Disable recursive read if Vread_circle is nil.
6277
24b34550
KH
62782009-04-29 Kenichi Handa <handa@m17n.org>
6279
6280 * fontset.h (set_default_ascii_font): Delete extern.
6281
6282 * fontset.c (set_default_ascii_font): Delete this unused function.
6283
6284 * frame.c (x_set_font): When ARG is a font-object, check if the
6285 font-object matches with the ASCII font-spec of the frame's
9c358bda 6286 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6287
77bf07e1
AS
62882009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6289
6290 * fns.c (Flocale_info): Protect vector from GC during decoding.
6291
6292 * process.c (Fstart_process): Protect argv strings from GC during
6293 encoding.
6294
2c55aacf
AS
62952009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6296
6297 * sysdep.c: Include <ctype.h>.
6298
b892d3c9
DR
62992009-04-27 David Reitter <david.reitter@gmail.com>
6300
35f5b128 6301 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6302 Remove commented-out code.
6303
9d0644c4
JB
63042009-04-26 Johan Bockgård <bojohan@gnu.org>
6305
6306 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6307
b7053016
JR
63082009-04-25 Jason Rumney <jasonr@gnu.org>
6309
6310 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6311
4e8231f3
YM
63122009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6313
6314 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6315 Swap bytes in short integer if fringe bitmap width > 8.
6316
493dcf2c
KH
63172009-04-23 Kenichi Handa <handa@m17n.org>
6318
6319 * xfaces.c (Fx_list_fonts): If a font size is specified in
6320 PATTERN, set it in returned scalable fonts.
6321
401e9e57
CY
63222009-04-22 Chong Yidong <cyd@stupidchicken.com>
6323
708e05dc
CY
6324 * keyboard.c (Fset_input_meta_mode): Doc fix.
6325
6326 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6327
1ac9108a 6328 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6329
6330 * coding.c (Fterminal_coding_system): Doc fix.
6331
6332 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6333 (Fx_display_pixel_height, Fx_display_planes)
6334 (Fx_display_color_cells, Fx_server_max_request_size)
6335 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6336 (Fx_display_mm_height, Fx_display_mm_width)
6337 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6338 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6339 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6340 (check_x_display_info): Handle terminal objects instead of
6341 terminal ids.
6342
401e9e57
CY
6343 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6344 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6345 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6346 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6347
df80c7f0
KH
63482009-04-21 Kenichi Handa <handa@m17n.org>
6349
5a8f12af 6350 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6351 (font_score): Check AVGWIDTH too.
908567ef 6352
df80c7f0
KH
6353 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6354 worst case.
1ac9108a
SM
6355 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6356 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6357
705af33f
JR
63582009-04-19 Jason Rumney <jasonr@gnu.org>
6359
6360 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6361 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6362
6363 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6364 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6365 get_phys_cursor_geometry.
6366
b71ac3dd 6367 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6368 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6369 using get_phys_cursor_geometry.
6370
6371 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6372 correctly calculated.
6373
dc2933eb
JD
63742009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6375
1ac9108a
SM
6376 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6377 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6378 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6379 is deprecated.
6380
973e7849
AS
63812009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6382
6383 * font.c (font_put_frame_data): Use xfree instead of free.
6384
314d66f4
JB
63852009-04-17 Juanma Barranquero <lekktu@gmail.com>
6386
6387 * w32font.c (Qja, Qko): Remove declarations.
6388 (syms_of_w32font): Don't DEFSYM them.
6389
cf702558
CY
63902009-04-17 Chong Yidong <cyd@stupidchicken.com>
6391
6392 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6393
6394 * font.h (Qja, Qko): Extern them.
6395
6396 * ftfont.c (Qja, Qko): Remove declarations.
6397
6398 * xfont.c (Qja, Qko): Remove declarations.
6399
b50504f5
KH
64002009-04-17 Kenichi Handa <handa@m17n.org>
6401
bde25748
KH
6402 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6403 string from a vector to handle Latin-1 characters correctly.
6404
b50504f5
KH
6405 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6406 entity even if the cache hits.
6407
f4646fff
AS
64082009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6409
6410 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6411 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6412
e7deaab0
AS
6413 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6414 * lisp.h: Adjust prototypes.
6415
0a0e7d49
CY
64162009-04-16 Chong Yidong <cyd@stupidchicken.com>
6417
6418 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6419 change (Bug#3003).
6420
3c908a57
KH
64212009-04-16 Kenichi Handa <handa@m17n.org>
6422
1ac9108a 6423 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6424
6425 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6426 adstyle.
6427
6428 * ftfont.c (Qja, Qko): Don't make them static.
6429 (enum ftfont_cache_for): New enum.
6430 (fc_charset_table): Undo the previous change.
6431 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6432 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6433 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6434 non-scarable font, try to get AVERAGE_WIDTH.
6435 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6436 Change ft_face_cache from a list of a hash-table. Don't check
6437 `ja' and `ko' adstyle here.
6438 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6439 FTFONT_CACHE_FOR_CHARET.
6440 (ftfont_get_charset): Undo the previous change.
1ac9108a 6441 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6442 (ftfont_close): Likewise.
6443 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6444
6445 * font.c (font_sort_entites): Change the meaning of the arg
6446 BEST-ONLY. Don't optimize for VEC of lenght 1.
6447 (font_select_entity): Just return the value of font_sort_entites.
6448
6449 * xfaces.c (merge_face_vectors): Reflect font properties in
6450 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6451 font_clear_prop if a face attribute doesn't change.
6452
3c908a57
KH
6453 * charset.h (charset_ksc5601): Extern it.
6454
6455 * charset.c (charset_ksc5601): New variable.
6456 (Fdefine_charset_internal): Set charset_ksc5601.
6457 (init_charset_once): Initialize charset_ksc5601 to -1.
6458
d65859c3
DN
64592009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6460
6461 * fileio.c (history_delete_duplicates): Remove unused declaration.
6462
6463 * callint.c (history_delete_duplicates): New declaration.
6464 (Fcall_interactively): Remove command history duplicates when
6465 history_delete_duplicates is true.
6466
3ba010e5
EZ
64672009-04-14 Eli Zaretskii <eliz@gnu.org>
6468
6469 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6470
06f19b91
KH
64712009-04-14 Kenichi Handa <handa@m17n.org>
6472
6473 * font.c (Ffont_info): Fix docstring. Fix the second element of
6474 the returned value (bug#2949).
6475
2cce8bfc
CY
64762009-04-14 Chong Yidong <cyd@stupidchicken.com>
6477
6478 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6479
d156542d
KH
64802009-04-14 Kenichi Handa <handa@m17n.org>
6481
6482 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6483 encoding charset is ascii_compatible.
6484
6485 * charset.c (Fdefine_charset_internal): Make charset
6486 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6487 code_offset is 0, and covers all ASCII characters.
6488
86fa089e
SM
64892009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6490
6491 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6492 (ns_string_to_pasteboard_internal):
6493 * nsmenu.m (process_dialog):
6494 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6495 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6496 * lisp.h (Fx_load_color_file): Declare.
6497
a8a3728b
KH
64982009-04-13 Kenichi Handa <handa@m17n.org>
6499
1ac9108a 6500 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6501 (font_select_entity): Suppress the code to optimize for the same
6502 kind of fonts.
6503 (font_load_for_lface): Get a font that supports at least ASCII
6504 characters.
6505
6506 * ftfont.c (Qja, Qko): New variables.
6507 (fc_charset_table): Delete uniquifier data for iso8859-1.
6508 (ftfont_get_latin1_charset): New function.
6509 (get_adstyle_property): New function.
6510 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6511 bitmap fonts.
6512 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6513 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6514 `ko' or `ja'.
6515 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6516 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6517 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6518 property.
6519 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6520 (syms_of_ftfont): DEFSYM Qja and Qko.
6521
483670b5
KH
65222009-04-09 Kenichi Handa <handa@m17n.org>
6523
12b55765
KH
6524 * charset.c (map_charset_chars): For a charset of `superset'
6525 method, fix calculation of code range.
6526
483670b5
KH
6527 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6528 from the list of extra properties.
6529 (font_clear_prop): Be sure to delete `:name' font property.
6530
57d3b93b
KH
65312009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6532
b4b2c2ca
YM
6533 * dispnew.c (redraw_overlapping_rows): Fix detection of
6534 overlapping for topmost and bottommost rows.
6535
1ac9108a 6536 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6537
472c3609
JR
65382009-04-06 Jason Rumney <jasonr@gnu.org>
6539
6540 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6541
ab193662
KH
65422009-04-06 Kenichi Handa <handa@m17n.org>
6543
6544 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6545
6546 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6547
0c26f026
KH
65482009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6549
6550 * ftfont.c (ftfont_open): Fix checking of the return value of
6551 FT_Load_Char. Fix setting font->underline_thickness.
6552
e173bbce
CY
65532009-04-04 Chong Yidong <cyd@stupidchicken.com>
6554
6555 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6556 (Fterminal_parameters, Fterminal_parameter)
6557 (Fset_terminal_parameter): In doc string, refer to terminal
6558 objects rather than terminal ids.
6559
693a2698
EZ
65602009-04-04 Eli Zaretskii <eliz@gnu.org>
6561
6562 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6563 ret_lim_data. (Bug#2867)
6564
d5221487
CY
65652009-04-03 Chong Yidong <cyd@stupidchicken.com>
6566
6567 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6568 so they don't get wider than the window, matching 2006-01-23
6569 change to the partner function in xdisp.c (Bug#2800).
6570
223509a3
KH
65712009-04-03 Kenichi Handa <handa@m17n.org>
6572
6573 * print.c (print_object): Make each lowest sub_char_table start a
6574 new line (Bug#2866).
6575
74fcd0b1
KH
65762009-04-02 Kenichi Handa <handa@m17n.org>
6577
6578 * fontset.c (fontset_font): Record no-font when a fontset
6579 explicitly tells not to try another font-specs.
6580
c542407d
SM
65812009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6582
6583 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6584
e3869731
KH
65852009-03-30 Kenichi Handa <handa@m17n.org>
6586
d8d2f142
KH
6587 * fontset.c (fontset_from_font): Specify only registry in a
6588 font-spec for all characters supported by that registry.
6589
e3869731
KH
6590 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6591 even if HAVE_M17N_FLT is not defined.
6592
5da5f805
CY
65932009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6594
6595 * ftfont.c: Conditionalize prototyping and use of
6596 ftfont_variation_glyphs.
6597
ab226c50
SM
65982009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6599
9628fed7
SM
6600 * frame.c (delete_frame): Work around compiler bug.
6601
6602 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6603 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6604 Some more EMACS_INT.
6605 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6606
6607 * xdisp.c (dump_glyph): Fix typo.
6608
ae19ba7c
SM
6609 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6610 (adjust_markers_gap_motion, adjust_markers_for_delete)
6611 (adjust_markers_for_insert, adjust_point)
6612 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6613 (make_gap, copy_text, count_size_as_multibyte, insert)
6614 (insert_and_inherit, insert_before_markers)
6615 (insert_before_markers_and_inherit, insert_1)
6616 (count_combining_before, count_combining_after, insert_1_both)
6617 (insert_from_string, insert_from_string_before_markers)
6618 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6619 (insert_from_buffer_1, adjust_after_replace)
6620 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6621 (replace_range_2, del_range, del_range_1, del_range_byte)
6622 (del_range_both, del_range_2, modify_region)
6623 (prepare_to_modify_buffer, signal_before_change)
6624 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6625 for buffer positions and sizes.
6626 * lisp.h: Adjust prototypes accordingly.
6627
6628 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6629 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6630 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6631
ab226c50
SM
6632 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6633
46dfb8fb
JD
66342009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6635
6636 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6637 lines and columns so we keep the same pixel height and width.
6638
6639 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6640 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6641 (x_handle_net_wm_state): New function to update frame parameter
6642 fullscreen.
6643 (x_term_init): Initialize atoms for _NET_WM_STATE.
6644
6645 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6646
d347e494
SM
66472009-03-27 Kevin Ryde <user42@zip.com.au>
6648
6649 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6650 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6651 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6652 (Fgpm_mouse_stop): Pass that new parameter.
6653 * termhooks.h (close_gpm): Adjust prototype.
6654
84db11d6
SM
66552009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6656
c95a5008
SM
6657 * lisp.h (Fx_focus_frame): Declare.
6658
84db11d6
SM
6659 * callint.c (Fcall_interactively): For '^' just delegate the work to
6660 handle-shift-selection.
6661 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6662
0a1958d6
CY
66632009-03-24 Chong Yidong <cyd@stupidchicken.com>
6664
0bfdff23
CY
6665 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6666
0a1958d6
CY
6667 * data.c (Qinteractive_form): New variable.
6668 (Finteractive_form): Use it.
6669
6670 * eval.c (Fcommandp): Use Qinteractive_form.
6671
58aec0d6
JR
66722009-03-24 Jason Rumney <jasonr@gnu.org>
6673
6674 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6675 Calculate total size precisely. Decode environment variables
6676 before substituting. (Bug#38)
6677
553dd618
KH
66782009-03-24 Kenichi Handa <handa@m17n.org>
6679
6680 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6681 encoding (Bug#2722).
553dd618 6682
c39ea606
JD
66832009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6684
6685 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6686 that gdpy is set.
6687
bc9b2b5e
AM
66882009-03-22 Alan Mackenzie <acm@muc.de>
6689
6690 * callint.c (Finteractive): Clarify the doc string - even
6691 promptless elements need \n separators.
6692
9f995a76
JR
66932009-03-22 Jason Rumney <jasonr@gnu.org>
6694
6695 * w32term.c (syms_of_w32term): Doc fix for
6696 x-use-underline-position-properties.
6697
22749e9a
EZ
66982009-03-21 Eli Zaretskii <eliz@gnu.org>
6699
6700 * w32.c (getpwuid): Change argument type to unsigned.
6701 (struct w32_id): Change type of `rid' member to unsigned.
6702 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6703 argument ID to unsigned. All callers changed.
6704 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6705
e00553bf
EZ
67062009-03-20 Eli Zaretskii <eliz@gnu.org>
6707
6708 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6709 negative, produce a float value.
6710
6711 * dired.c (make_uid, make_gid): New functions.
6712 (Ffile_attributes): Use them to avoid negative UID and GID.
6713
f761d6b6
JB
67142009-03-20 Juanma Barranquero <lekktu@gmail.com>
6715
6716 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6717 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6718 Fix typos in docstrings.
6719
d507f8d7
KH
67202009-03-19 Kenichi Handa <handa@m17n.org>
6721
6722 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6723 changed, use font_load_for_lface to get a new font object.
6724 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6725
6726 * frame.c (x_set_font): Handle the case that ARG is a cons.
6727
c68845e0
GM
67282009-03-19 Glenn Morris <rgm@gnu.org>
6729
6730 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6731
bfa49dd1
CY
67322009-03-19 Chong Yidong <cyd@stupidchicken.com>
6733
6734 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6735
8458d4c1
KH
67362009-03-19 Kenichi Handa <handa@m17n.org>
6737
6738 * charset.c (load_charset_map_from_file): When a mapfile can't be
6739 loaded, signal an error.
6740
78e7d1fe
EZ
67412009-03-18 Eli Zaretskii <eliz@gnu.org>
6742
6743 * dired.c (Ffile_attributes): Make sure UID and GID are always
6744 positive, even if the value is too large for a positive EMACS_INT.
6745 Doc fix.
6746
6747 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6748
5da9fdfa
YM
67492009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6750
6751 * xmenu.c (xdialog_show): Move Fredisplay call ...
6752 (Fx_popup_dialog): ... here.
6753
7519c40d
SM
67542009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6755
6756 * dired.c (file_name_completion): Disable the first optimization just
6757 installed, since it is not implemented correctly.
6758
2cd298e2
SM
67592009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6760
6761 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6762 only if the entry can affect bestmatch.
2cd298e2
SM
6763 Stop the search early, as Ftry_completion already does.
6764
48d37adf
CY
67652009-03-17 Chong Yidong <cyd@stupidchicken.com>
6766
e10c9c93 6767 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6768
9286b16a
CY
67692009-03-15 Chong Yidong <cyd@stupidchicken.com>
6770
6771 * keyboard.c (parse_menu_item): Don't display remappings as menu
6772 equivalent bindings (Bug#788).
6773
f7b146dc
JR
67742009-03-15 Jason Rumney <jasonr@gnu.org>
6775
6776 * w32term.h (WM_EMACS_PAINT): New message.
6777 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6778 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6779 before passing to lisp thread. (Bug#950)
6780
f761d6b6 67812009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6782
d93f9575
CY
6783 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6784 variable as it was never reset.
6785 (ns_term_init): Remove initialization of Lisp-settable defaults
6786 and ns_expand_space.
6787 (-setPanelFromDefaultValues): Remove ns_expand_space.
6788 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6789 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6790 i.e. no additional spacing, similar to Carbon port.
6791
d93f9575
CY
6792 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6793 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6794
305018ec
JD
67952009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6796
6797 * sound.c (alsa_configure): Remove call to deprecated
6798 snd_pcm_sw_params_set_xfer_align.
6799
f761d6b6 68002009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6801
6802 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6803 after clicking in a detached tool bar.
6804 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6805
46e722a9
SM
68062009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6807
348db3dd
SM
6808 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6809 int/Lisp_Object mixup).
46e722a9 6810
a3d16f39
KH
68112009-03-13 Kenichi Handa <handa@m17n.org>
6812
6813 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6814 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6815 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6816 (set_fontset_font): Change ARG to a vector. Handle range_list in
6817 ARG correctly.
6818 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6819 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6820 the above change.
6821 (fontset_from_font): Fix previous change.
fe24f56a 6822 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6823 entry. If FONTSET is the default fontset, don't set the extra
6824 slot of the returning char-table.
6825
b066e6b6
JB
68262009-03-12 Juanma Barranquero <lekktu@gmail.com>
6827
6828 * nsfns.m (Fx_close_connection): Doc fix.
6829 (Fns_do_applescript): Reflow docstring.
6830 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6831 (Fx_display_pixel_width, Fx_display_pixel_height)
6832 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6833 Fix typos in docstrings.
6834 (Fns_set_alpha): Fix typos in error messages.
6835
d472514e 68362009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6837
d472514e 6838 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6839 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6840 were used for such events.
6841
d472514e
JB
6842 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6843 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6844
d472514e 6845 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6846 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6847
fb930676
KH
68482009-03-11 Kenichi Handa <handa@m17n.org>
6849
ff85581a
KH
6850 * font.h (font_open_by_spec): Extern it.
6851
c50b7e98
KH
6852 * font.c (font_open_by_spec): New function.
6853 (font_open_by_name): Use font_open_by_spec.
6854
fb930676
KH
6855 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6856 fontset of the frame.
6857
6858 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6859 modify the default font of frames that use this fontset.
6860 (num_auto_fontsets): New variable.
6861 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6862 name. Be sure to set FONTSET_ASCII to the correct font name.
6863 (update_auto_fontset_alist): New function.
6864
df4e8455
JB
68652009-03-11 Juanma Barranquero <lekktu@gmail.com>
6866
6867 * makefile.w32-in: Update dependencies.
6868
0a375797
AR
68692009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6870
6871 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6872
61313fa3
SM
68732009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6874
6875 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6876
b55103fb
CY
68772009-03-10 Chong Yidong <cyd@stupidchicken.com>
6878
6879 * lread.c (Feval_buffer): Doc fix.
6880
dde2559c
KH
68812009-03-09 Kenichi Handa <handa@m17n.org>
6882
6883 * charset.c (Qfile_name_handler_alist): Extern it.
6884 (load_charset_map_from_file): Temporarily bind
6885 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6886
df4e8455 68872009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6888
47f588bb
GM
6889 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6890 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6891
4ddf94bd
AR
68922009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6893
4c9bdfc2
AR
6894 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6895 (x_set_window_size): Change back to calculated method of setting
6896 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6897 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6898 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6899
fe41ae9e
AR
6900 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6901
4c9bdfc2
AR
6902 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6903 accelerator in parens under GNUstep.
6904
825d0875
KH
69052009-03-06 Kenichi Handa <handa@m17n.org>
6906
6907 These changes are to detect incorrect composition sequence without
f3b3be74 6908 looking ahead the source. (Bug#2370)
825d0875
KH
6909
6910 * coding.h: Include "composite.h".
6911 (enum compisition_state): New enum.
6912 (struct compisition_status): New struct.
6913 (struct iso_2022_spec): New member cmp_status.
6914 (struct emacs_mule_spec): New struct.
6915 (struct coding_system): New members ctext_extended_segment_len and
6916 embedded_utf_8. Change the union member
6917 spec.emacs_mule_full_support to spec.emacs_mule.
6918
6919 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6920 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6921 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6922 (ADD_COMPOSITION_DATA): New arg nbytes.
6923 (emacs_mule_char): New arg cmp_status.
6924 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6925 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6926 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6927 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6928 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6929 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6930 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6931 (EMACS_MULE_COMPOSITION_END): New macro.
6932 (emacs_mule_finish_composition): New function.
6933 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6934 (decode_coding_emacs_mule): Avoid long looking ahead while
6935 handling composition.
6936 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6937 (ENCODE_COMPOSITION_RULE): New macro.
6938 (finish_composition): New function.
6939 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6940 (DECODE_COMPOSITION_START): New implementation.
6941 (DECODE_COMPOSITION_END): Likewise.
6942 (STORE_COMPOSITION_RULE): New macro.
6943 (decode_coding_iso_2022): Avoid long looking ahead while handling
6944 composition, CTEXT extended segment, and embedded UTF-8.
6945 (setup_coding_system): For a coding of type iso-2022, reset
6946 CODING_ISO_EXTSEGMENT_LEN (coding) and
6947 CODING_ISO_EMBEDDED_UTF_8 (coding).
6948 (get_translation): Delete arguments last_block, from_nchars,
6949 to_nchars. Callers changed.
6950 (produce_chars): Don't modify charbuf. Adjusted for the change of
6951 get_translation.
98a326f7 6952 (produce_composition): Adjust for the new annotation sequence.
825d0875 6953 (handle_composition_annotation): Likewise.
98a326f7 6954 (consume_chars): Adjust for the change of get_translation.
825d0875 6955
ccbc4452
AR
69562009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6957
4ddf94bd 6958 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6959
988a7ddb
KH
69602009-03-05 Kenichi Handa <handa@m17n.org>
6961
6962 * font.c (font_select_entity): New function.
6963 (font_find_for_lface): Use font_select_entity to select a font.
6964
6965 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6966 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6967 font with C restriction.
6968
98a326f7 69692009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6970
be1bce46 6971 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6972
10ea2b82
JR
69732009-03-04 Jason Rumney <jasonr@gnu.org>
6974
2c93b248 6975 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6976 characters that have already been read. (Bug#2569)
2c93b248 6977
10ea2b82
JR
6978 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6979 Log an error message if check_image_size failed.
6980 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6981 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6982
71a0c011
EZ
69832009-03-02 Eli Zaretskii <eliz@gnu.org>
6984
6985 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6986 when decoding process output.
6987
2f63bba8
RS
69882009-03-01 Richard M Stallman <rms@gnu.org>
6989
6990 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6991
6992 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6993
0a9564cb
EZ
69942009-02-28 Eli Zaretskii <eliz@gnu.org>
6995
6996 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6997 (decode_coding_emacs_mule, decode_coding_iso_2022)
6998 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6999 (decode_coding_raw_text, decode_coding_charset)
7000 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7001 Honor inhibit-eol-conversion. (Bug #2186)
7002
449148b3
JR
70032009-02-28 Jason Rumney <jasonr@gnu.org>
7004
7005 * coding.c (detect_coding_charset): If not checking latin extra,
7006 fail on characters between 0x80 and 0xA0. (Bug#2354)
7007
a4aee864
EZ
70082009-02-28 Eli Zaretskii <eliz@gnu.org>
7009
7010 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7011 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7012
d88bee5a
GM
70132009-02-27 Glenn Morris <rgm@gnu.org>
7014
7015 * callint.c (Finteractive): Doc fix.
7016
a808f22d
KH
70172009-02-27 Kenichi Handa <handa@m17n.org>
7018
7019 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7020
caf8d60c
CY
70212009-02-27 Chong Yidong <cyd@stupidchicken.com>
7022
7023 * font.c (font_style_to_value): Set value for unknown symbols to
7024 100 instead of 255.
b61137ea
CY
7025 (weight_table, slant_table, width_table): Treat "unspecified" as
7026 the default value.
caf8d60c 7027
1a0de25c
JB
70282009-02-26 Juanma Barranquero <lekktu@gmail.com>
7029
7030 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7031
8fc45744
JB
70322009-02-25 Juanma Barranquero <lekktu@gmail.com>
7033
107bd7d1
JB
7034 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7035 error as soon as a recursive load is detected.
8fc45744 7036
f097e223
AR
70372009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7038
7039 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7040 before caching.
7041
8810a12f
KH
70422009-02-24 Kenichi Handa <handa@m17n.org>
7043
7044 * fontset.c (fontset_find_font): Fix the condition for checking
7045 unavailable font.
7046
2c7d1565
GM
70472009-02-24 Glenn Morris <rgm@gnu.org>
7048
7049 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7050 whitespace that confuses documentation.
7051
a20878b6
MB
70522009-02-23 Miles Bader <miles@gnu.org>
7053
7054 * process.c (Flist_system_processes, Fprocess_attributes)
7055 (syms_of_process): Rename `system-process-attributes' to
7056 `process-attributes'.
7057
b3b58c01
AS
70582009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7059
1b3b981b
AS
7060 * coding.h (struct coding_system): Make safe_charsets a pointer to
7061 unsigned char.
7062 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7063 being 255.
7064 (SAFE_CHARSET_P): Likewise.
7065 (setup_iso_safe_charsets): Properly setup safe_charsets.
7066 (Fdefine_coding_system_internal): Likewise.
7067 (setup_coding_system): Likewise. Remove unneeded casts.
7068 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7069 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7070 unneeded casts.
7071
b3b58c01
AS
7072 * insdel.c (del_range_2): Don't modify gap contents when called
7073 from decode_coding_object. (Bug#1809)
7074
0b6f228c
CY
70752009-02-21 Chong Yidong <cyd@stupidchicken.com>
7076
7077 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7078 Qfont_object.
7079 (Ftype_of): Recognize font objects.
7080
7081 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7082
7083 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7084 moved to data.c.
7085
52f8870b
AR
70862009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7087
7088 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7089 async_iconified. Based on a patch by Christian Lynbech
7090 <christian.lynbech@tieto.com>.
7091 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7092
7087d5e9
GM
70932009-02-20 Glenn Morris <rgm@gnu.org>
7094
7095 * syntax.c (Fskip_chars_forward): Fix doc typo.
7096
41d2ceef
CY
70972009-02-20 Chong Yidong <cyd@stupidchicken.com>
7098
7099 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7100
1a3b7ca6
CY
71012009-02-19 Chong Yidong <cyd@stupidchicken.com>
7102
7103 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7104
73cce38d
KH
71052009-02-19 Kenichi Handa <handa@m17n.org>
7106
7107 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7108 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7109
a51092ee
DN
71102009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7111
7112 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7113
c423ecca
KH
71142009-02-18 Kenichi Handa <handa@m17n.org>
7115
7116 * font.c (font_check_otf_features): Fix handling of `nil' element.
7117 (Ffont_spec): Describe :lang and :otf in the docstring.
7118
4c1958f4
AS
71192009-02-16 Andreas Schwab <schwab@suse.de>
7120
7121 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7122 string.
7123
5704f39a
KH
71242009-02-16 Kenichi Handa <handa@m17n.org>
7125
7126 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7127 (Bug#1723)
5704f39a 7128
8f0085aa
CY
71292009-02-14 Chong Yidong <cyd@stupidchicken.com>
7130
a057d86a 7131 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7132
7133 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7134 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7135
aff01dd9
EZ
71362009-02-14 Eli Zaretskii <eliz@gnu.org>
7137
7138 * msdos.c (MAX_SCREEN_BUF): New macro.
7139 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7140 Encode the entire run of glyphs sharing the same face, instead of
7141 doing that one glyph at a time (fixes a bug with displaying
7142 double-size characters).
7143
ba301db3
AR
71442009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7145
7146 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7147
7148 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7149 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7150 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7151
7152 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7153 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7154
51d861de
SM
71552009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7156
ac146f82 7157 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7158 invisible areas.
7159
7fed8996
JR
71602009-02-12 Jason Rumney <jasonr@gnu.org>
7161
631ea4fb
JR
7162 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7163 (add_font_entity_to_list): Call check_face_name even when family
7164 is unspecified.
7165
cb4a3e42
JR
7166 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7167 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7168 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7169
7fed8996 7170 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7171 raster fonts. (Bug#2219)
7fed8996 7172
895416e3
KH
71732009-02-12 Kenichi Handa <handa@m17n.org>
7174
7175 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7176 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7177 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7178 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7179 (find_automatic_composition): While looking forward and backward,
7180 check static composition. Fix where to stop looking forward.
7181 (composition_adjust_point): Fix checking of static composition.
7182 (Fcomposition_get_gstring): Pay attention to
1dacf998 7183 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7184
7185 * lisp.h (fast_looking_at): Extern it.
7186
7187 * search.c (fast_looking_at): New function.
7188
51d861de 7189 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7190 <struct glyph>.u.cmp.to.
7191 (append_composite_glyph): Likewise.
7192
51d861de 7193 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7194 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7195 composition.
51d861de 7196 (append_composite_glyph): Adjust for the change of
895416e3
KH
7197 <strcut glyph>.u.cmp.to.
7198
8510724d
JB
71992009-02-11 Juanma Barranquero <lekktu@gmail.com>
7200
7201 * casetab.c (init_casetab_once):
7202 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7203 * font.c (font_update_lface):
7204 * fontset.c (Fnew_fontset):
7205 * ftfont.c (ftfont_drive_otf):
7206 * xfont.c (xfont_open):
7207 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7208
294fa707
SM
72092009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7210
7211 * fileio.c (Fwrite_region): !NILP -> CONSP.
7212
b5bfebec
AS
72132009-02-10 Andreas Schwab <schwab@suse.de>
7214
7215 * process.c (send_process): Properly relocate pointer into data
adab88bd 7216 when using encoded data. (Bug#2272)
b5bfebec 7217
cb84a2be
KH
72182009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7219
7220 * coding.c (detect_coding_charset): Fix previous change.
7221
89e09428
JR
72222009-02-08 Jason Rumney <jasonr@gnu.org>
7223
7224 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7225 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7226
4470a277
AS
72272009-02-07 Andreas Schwab <schwab@suse.de>
7228
7229 * unexelf.c (unexec): Fix error message.
7230
3175b12a
AR
72312009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7232
7233 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7234 when modal window is active. (Bug #2152)
3175b12a
AR
7235 (applicationShouldTerminate:): Remove now-unneeded while loop
7236 around NSRunAlertPanel.
7237
7238 * nsmenu.m (popupSession): New file-global variable.
7239 (pop_down_menu): End the popupSession before closing dialog.
7240 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7241 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7242 don't query NSApp for events (just sleep instead).
7243
8434d0b8
EZ
72442009-02-07 Eli Zaretskii <eliz@gnu.org>
7245
51d861de
SM
7246 * coding.c (syms_of_coding) <translation-table-for-input>:
7247 Modify doc string to discourage use for character code unification.
8434d0b8 7248
aa82edfd
CY
72492009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7250
7251 * atimer.c (run_timers): Update pending_atimers.
7252
2d283c7c
CY
72532009-02-06 Chong Yidong <cyd@stupidchicken.com>
7254
eb306cab
CY
7255 * image.c (svg_load_image): Fix last change.
7256
2d283c7c
CY
7257 * xfns.c (Fx_create_frame): Signal an error if no font is
7258 found (Bug#2147).
7259
4d8e170e
JB
72602009-02-05 Juanma Barranquero <lekktu@gmail.com>
7261
7262 * character.c (syms_of_character) <script-representative-chars>:
7263 Fix typo in docstring.
7264
c96169a0
AR
72652009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7266
7267 * nsmenu.m (pop_down_menu): New function.
7268 (ns_popup_dialog): Call it on unwind.
7269 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7270 call timer_check() (Bug#2154).
7271 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7272 handling_signal is set.
7273 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7274
31fd7c5c 7275 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7276
7277 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7278
7279 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7280
51d861de
SM
7281 * keyboard.c (poll_for_input_1, handle_async_input):
7282 Set handling_signal under HAVE_NS.
c96169a0 7283
aacd8ba1
GM
72842009-02-04 Glenn Morris <rgm@gnu.org>
7285
7286 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7287
4cb75c4b
KH
72882009-02-04 Kenichi Handa <handa@m17n.org>
7289
7290 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7291
7292 * charset.c (Fchar_charset): New optional arg restriction.
7293
7294 * coding.h (coding_system_charset_list): Extern it.
7295
7296 * coding.c (coding_system_charset_list): New function.
7297
7298 * composite.c: Include coding.h and termhooks.h.
7299 (composition_gstring_p): Fix for the terminal case.
7300 (composition_gstring_width): Likewise.
7301 (fill_gstring_body): Likewise.
7302 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7303 the frame.
7304 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7305 is within a composition.
867d4bb3 7306 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7307
7308 * term.c (encode_terminal_code): Fix handling of composition.
7309 (produce_composite_glyph): For static composition, get pixel_width
7310 from struct composition.
7311
826ba17e
AS
73122009-02-02 Andreas Schwab <schwab@suse.de>
7313
7314 * unexelf.c (unexec): Handle unaligned bss offset.
7315
8ad093db
AR
73162009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7317
7318 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7319 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7320
8ad093db
AR
7321 * keyboard.c (handle_interrupt): Don't call
7322 quit_throw_to_read_char() under NS.
d0a76a6e 7323
8ad093db
AR
7324 * blockinput.h: Remove NS-specific code.
7325
4d18a7a2
DN
73262009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7327
db878925
DN
7328 * dispnew.c (window_change_signal): Don't try to get the size of a
7329 suspended tty frame.
7330 * term.c (Fresume_tty): Resize if the size has changed while the
7331 tty was suspended.
7332
4d18a7a2
DN
7333 * alloc.c (mark_stack): Properly conditionalize previous change.
7334
8984df7c
JB
73352009-01-30 Juanma Barranquero <lekktu@gmail.com>
7336
7337 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7338 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7339 Remove; this code is not used on Windows.
7340
75f4f1ac
EZ
73412009-01-30 Eli Zaretskii <eliz@gnu.org>
7342
7343 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7344 EOLs that also has stray ^M characters.
7345
07a1e794
JB
73462009-01-30 Juanma Barranquero <lekktu@gmail.com>
7347
7348 * atimer.c (run_timers, alarm_signal_handler):
7349 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7350 * w32inevt.c (w32_console_read_socket):
7351 * w32term.c (w32_read_socket):
7352 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7353
a8b11cc9
CY
73542009-01-30 Chong Yidong <cyd@stupidchicken.com>
7355
7356 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7357 Initialize it as a relative filename pattern.
7358 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7359 (Fcall_process_region): Simplify temp file creation using
7360 temporary-file-directory.
7361
c279587b
EZ
73622009-01-29 Eli Zaretskii <eliz@gnu.org>
7363
7364 * msdos.c: Rename pending_signals to msdos_pending_signals.
7365 (sig_suspender, sigprocmask): Adjust.
7366
a8fe3242
CY
73672009-01-29 Chong Yidong <cyd@stupidchicken.com>
7368
7369 * keyboard.c (pending_signals): New var.
7370 (poll_for_input, input_available_signal, init_keyboard): Set it.
7371 (process_pending_signals): New function.
7372
7373 * lisp.h (QUIT): Check pending_signals instead of
7374 interrupt_input_pending. Use process_pending_signals.
7375
51d861de 7376 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7377
51d861de 7378 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7379
7380 * sysdep.c (emacs_write): Use process_pending_signals.
7381
7382 * xterm.c (XTread_socket): Update pending_signals.
7383
7384 * w32term.c (w32_read_socket): Update pending_signals.
7385
7386 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7387
6570a1c4
KH
73882009-01-29 Kenichi Handa <handa@m17n.org>
7389
7390 * xftfont.c (xftfont_has_char): New function.
7391 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7392
d72a4afa
AR
73932009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7394
7395 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7396 under GNUstep.
7397 (ns_query_color): New declaration.
7398
7399 * nsterm.m (ns_confirm_quit): New variable.
7400 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7401 (EmacsApp-applicationShouldTerminate:): Use it.
7402 (EmacsPrefsController): Let user set it.
7403 (ns_query_color): New function.
7404 (ns_defined_color): Use it.
7405 (ns_initialize): Drop.
7406 (ns_term_init): Add two lines from ns_initialize(), and set
7407 input_interrupt_mode to nil.
7408
7409 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7410 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7411
9fe78804
KH
74122009-01-28 Kenichi Handa <handa@m17n.org>
7413
7414 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7415 (fontset_get_font_group): Remember that no font-group is specified
7416 for C.
9fe78804 7417
fa57de36
CY
74182009-01-27 Chong Yidong <cyd@stupidchicken.com>
7419
930600e9
CY
7420 * fns.c (concat): Check for string overflow (bug#1787).
7421
fa57de36
CY
7422 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7423 Quadruple undo limits (bug#1501).
7424
7179ce7b
KH
74252009-01-27 Kenichi Handa <handa@m17n.org>
7426
7427 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7428 directly use GT_Get_Char_index.
7429
7430 * xftfont.c (struct xftfont_info): New member `index'.
7431
7432 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7433 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7434
5be8fcc0
CY
74352009-01-26 Kenichi Handa <handa@m17n.org>
7436
7437 * fontset.c (fontset_find_font): Fix handling of non-cons return
7438 value of fontset_get_font_group.
7439 (fontset_font): Revert last change.
7440
19ae3e61
JR
74412009-01-26 Jason Rumney <jasonr@gnu.org>
7442
7443 * w32font.c (w32font_list_internal): Return quickly if registry is
7444 unknown. Simplify final return.
7445 (add_font_entity_to_list): Break complex logic down into more
7446 manageable chunks. Move unknown registry check to
7447 w32font_list_internal.
7448
8612b71a
AR
74492009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7450
7451 Changes to remove Feval calls from GUI under NS.
7452
d8038940
JB
7453 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7454 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7455 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7456
7457 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7458 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7459 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7460 instead of NON_ASCII_KEYSTROKE_EVENT.
7461 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7462 (EmacsApp-applicationShouldTerminate:): Query user.
7463 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7464 instead of Feval.
7465
7466 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7467
7468 * keyboard.c (kbd_buffer_get_event): Check for it.
7469 (keys_of_keyboard): Define lispy keys for
7470 ns-put/unput-working-text.
7471
7472 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7473 versions.
7474 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7475
6288ae55
CY
74762009-01-25 Chong Yidong <cyd@stupidchicken.com>
7477
7478 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7479 setting current_buffer directly. (Bug#2044)
6288ae55 7480
289e7f8f
CY
74812009-01-24 Chong Yidong <cyd@stupidchicken.com>
7482
5ce87308 7483 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7484 any work. (Bug#1952, bug#1990).
5ce87308 7485
64cc3cf6 7486 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7487
b3243e6f
AR
74882009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7489
7490 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7491 (ns_no_defaults): New declaration.
7492 (main): Use it.
e0d2e69a 7493
d900b2af 7494 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7495
d900b2af 7496 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7497
d900b2af
AR
7498 * nsterm.m (ns_no_defaults): New variable.
7499 (ns_initialize): Don't read defaults when ns_no_defaults.
7500 (EmacsView-readSelectionFromPasteboard:)
7501 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7502 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7503 (ns_dumpglyphs_stretch): New function.
7504 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7505 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7506
e0d2e69a
AR
7507 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7508
3ac71f5d
CY
75092009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7510
7511 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7512 call for Sparc64.
7513
3fe53a83
AR
75142009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7515
7516 * nsfns.m:
7517 * nsgui.h:
7518 * nsmenu.m:
7519 * nsselect.m:
7520 * nsterm.h:
7521 * nsterm.m: Remove '23' comments that indicated code added during
7522 update from emacs-20 -> emacs-23.
7523
10f87c6f 75242009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7525
7526 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7527 ns_alternate_modifier. (Bug#1217)
a3b53a85 7528
c7cef62d
AR
7529 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7530 Display all shortcuts, including those w/o super modifier.
7531
575fb8bd
AR
7532 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7533
918b848b
CY
75342009-01-22 Chong Yidong <cyd@stupidchicken.com>
7535
7536 * fileio.c (Vwrite_region_post_annotation_function)
7537 (Vwrite_region_annotation_buffers): New vars.
7538 (build_annotations_unwind): Just reset
7539 Vwrite_region_annotation_buffers.
7540 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7541 Call write-region-post-annotation-function.
7542 (build_annotations): Add to Vwrite_region_annotation_buffers if
7543 buffer changes.
7544
a39e2539
AR
75452009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7546
7547 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7548 Tiger.
51d861de
SM
7549 * nsfns.m (ns_do_applescript):
7550 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7551
35ed44db
AR
75522009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7553
7554 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7555
cbe0b5bf
AR
75562009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7557
7558 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7559
6049d3a0
AR
7560 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7561
7562 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7563 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7564 handle Ctrl-tab. (Bug#1841)
7565 (ns_get_color): Use unsigned long long for scanned hex string value.
7566 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7567 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7568 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7569 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7570 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7571 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7572 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7573
d3810c21 7574 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7575 DPI. (Bug#1316)
d3810c21
AR
7576 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7577 values in onTiger section.
4c7077c3 7578
e301e634
CY
75792009-01-19 Chong Yidong <cyd@stupidchicken.com>
7580
7f82490b
CY
7581 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7582 Check return value of font_spec_from_name.
64cc3cf6 7583 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7584
7585 * font.c (font_spec_from_name): Return Qnil if font name could not
7586 be parsed.
7587 (font_parse_name): Treat a `?' character as part of an XLFD.
7588
e301e634
CY
7589 * fns.c (Fsubstring): Doc fix.
7590
1c0db158
KH
75912009-01-19 Kenichi Handa <handa@m17n.org>
7592
51d861de 7593 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7594 (ftfont_list): Likewise.
7595
acf20901
JB
75962009-01-18 Juanma Barranquero <lekktu@gmail.com>
7597
fff4e459
JB
7598 * dbusbind.c (Fdbus_register_signal):
7599 * process.c (conv_sockaddr_to_lisp):
7600 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7601
acf20901
JB
7602 * callproc.c (Fgetenv_internal): Doc fix.
7603
e7abcdfb
CY
76042009-01-16 Chong Yidong <cyd@stupidchicken.com>
7605
7606 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7607 it is not even used.
7608
b60861e6
GM
76092009-01-16 Glenn Morris <rgm@gnu.org>
7610
7611 * font.c (Ffont_variation_glyphs): Silence compiler.
7612
8db52afe
JB
76132009-01-15 Juanma Barranquero <lekktu@gmail.com>
7614
7615 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7616 Reported by David Robinow <drobinow@gmail.com>.
7617
4cddb209
KH
76182009-01-15 Kenichi Handa <handa@m17n.org>
7619
51d861de 7620 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7621
f247f67b
JR
76222009-01-14 Jason Rumney <jasonr@gnu.org>
7623
7624 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7625 never a fontset. (Bug#1562)
f247f67b 7626
f56a4450
KH
76272009-01-14 Kenichi Handa <handa@m17n.org>
7628
7629 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7630 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7631
4e99855e
CY
76322009-01-13 Chong Yidong <cyd@stupidchicken.com>
7633
7634 * font.c (font_clear_prop): If clearing the family, clear the font
7635 width index too.
7636
fff4e459 7637 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7638
24f01470
JB
76392009-01-12 Juanma Barranquero <lekktu@gmail.com>
7640
7641 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7642 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7643 functions, use sizeof.
7644
a41240a3
MR
76452009-01-12 Martin Rudalics <rudalics@gmx.at>
7646
7647 * keyboard.c (read_char): Fix case where last_nonmenu_event
7648 returned a bad value with submenus. (Bug#447)
7649
944636b8
CY
76502009-01-12 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7653 family, clear the font width index too.
7654
0dad7c6f
JR
76552009-01-11 Jason Rumney <jasonr@gnu.org>
7656
7657 * keyboard.c (cmd_error_internal): Exit when errors occur before
7658 frame creation and not in daemon mode. (Bug#1836)
7659
7c2363af
CY
76602009-01-10 Chong Yidong <cyd@stupidchicken.com>
7661
7662 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7663 of a display vector, backtrack.
7664 (try_window_reusing_current_matrix): Check glyph type before
7665 referencing charpos member.
7666
97b1b294
EZ
76672009-01-10 Eli Zaretskii <eliz@gnu.org>
7668
7669 Fix Bug #876:
7670
7671 * coding.c (inhibit_null_byte_detection): New variable.
7672 (detect_coding, detect_coding_system): Don't pay attention to null
7673 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7674 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7675 <inhibit-iso-escape-detection>: Doc fix.
7676
4624b6e3
JR
76772009-01-09 Jason Rumney <jasonr@gnu.org>
7678
7679 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7680 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7681 Only report Unicode Plane 2 fonts as unicode-sip.
7682
323b840c
CY
76832009-01-09 Chong Yidong <cyd@stupidchicken.com>
7684
51d861de
SM
7685 * xfaces.c (Fx_font_family_list): Delete function.
7686 Move compatibility version to faces.el.
323b840c 7687
51d861de 7688 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7689
eba7400d
MR
76902009-01-09 Martin Rudalics <rudalics@gmx.at>
7691
7692 * frame.c (x_set_frame_parameters): Remember requested value for
7693 fullscreen before it's reset by the parameter handler.
7694
4b09796d
GM
76952009-01-09 Glenn Morris <rgm@gnu.org>
7696
7697 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7698 (last_command_event): ... and update all users.
4b09796d
GM
7699 (last_input_char): For clarity, rename to...
7700 (last_input_event): ... and update all users.
7701 (last-command-char, last-input-char): Move to subr.el as aliases.
7702 * cmds.c, commands.h: Update for last_command_char rename.
7703
14ccea62
CY
77042009-01-08 Chong Yidong <cyd@stupidchicken.com>
7705
51d861de 7706 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7707
5f004711
JR
77082009-01-08 Jason Rumney <jasonr@gnu.org>
7709
7710 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7711 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7712 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7713 Don't declare.
fff4e459 7714 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7715 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7716
b71f6f73
KH
77172009-01-07 Kenichi Handa <handa@m17n.org>
7718
50b06221 7719 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7720 remember the coding system used for decoding in
50b06221
KH
7721 coding_system (Bug#1039).
7722
b71f6f73 7723 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7724 breaking the loop. (Bug#870)
b71f6f73
KH
7725 (decode_coding_utf_16, decode_coding_emacs_mule)
7726 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7727 (decode_coding_charset): Likewise.
7728
56f668f7
MR
77292009-01-05 Martin Rudalics <rudalics@gmx.at>
7730
7731 * frame.c (x_set_frame_parameters): Make sure height (width) get
7732 applied when fullwidth (fullheight) is set. (Bug#1522)
7733
5da9424d
JB
77342009-01-04 Juanma Barranquero <lekktu@gmail.com>
7735
7736 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7737 (utc_base): Declare as ULONGLONG, not long double.
7738 (convert_time_raw): Delete.
7739 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7740 (initialize_utc_base): New function.
7741 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7742 (convert_from_time_t): Use initialize_utc_base; compute result with
7743 64-bit arithmetic.
7744 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7745
c4605e09
EZ
77462009-01-03 Eli Zaretskii <eliz@gnu.org>
7747
9acef61c 7748 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7749 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7750 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7751 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7752 [!subprocesses]: Define.
7753 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7754 (Flist_system_processes, Fsystem_process_attributes)
7755 [!subprocesses]: Call list_system_processes and
7756 system_process_attributes instead of returning Qnil.
7757
9acef61c
JB
7758 * dosfns.c (system_process_attributes, list_system_processes):
7759 New functions.
c4605e09
EZ
7760
7761 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7762
7763 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7764 Don't use the default (no-op) implementation.
7765
8b7d0a16
JR
77662009-01-03 Jason Rumney <jasonr@gnu.org>
7767
a6d46bc1
JR
7768 * keyboard.c (parse_modifiers_uncached): Wheel events are
7769 clicks (bug#687).
7770
8b7d0a16
JR
7771 * w32term.c (x_query_colors, x_query_color): New functions.
7772
7773 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7774 (svg_load_image): Cast returned pointers from dynamically loaded
7775 functions. Eliminate W32 specific code.
7776
bfe11752
DN
77772009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7778
89e2438a
DN
7779 * nsfns.m (x_set_foreground_color, x_set_background_color)
7780 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7781 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7782 x_ prefix instead of ns_. Update references.
7783 (syms_of_nsfns): Add a FIXME comment.
7784
7785 * nsterm.m (x_set_cursor_type): New prototype.
7786 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7787
bfe11752
DN
7788 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7789 for Solaris instead of incorrectly providing Qutime and Qcutime.
7790
031da700
EZ
77912009-01-02 Eli Zaretskii <eliz@gnu.org>
7792
7793 * w32.c (process_times): Compute sum of utime and stime.
7794 (system_process_attributes): Add Qtime to the alist.
7795
7796 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7797 and add them to the alist.
7798
7799 * process.c (top level) <Qtime, Qctime>: New variables.
7800 (syms_of_process): staticpro them.
7801 (Fsystem_process_attributes): Add their documentation to the doc
7802 string.
7803
7804 * process.h: Declare Qtime and Qctime.
7805
df23bf08
JR
78062009-01-02 Jason Rumney <jasonr@gnu.org>
7807
9acef61c 7808 * image.c (Qgobject): New symbol.
df23bf08
JR
7809 (syms_of_image): Initialize it.
7810 (init_svg_functions): Load some functions from gobject library.
7811
5bbdf7aa
DN
78122009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7813
7814 * frame.c (make_terminal_frame): Remove redundant code and useless
7815 block.
7816
63136da6
AS
78172009-01-01 Andreas Schwab <schwab@suse.de>
7818
7819 * process.c (conv_sockaddr_to_lisp): Add workaround for
7820 getsockname bug on BSD.
7821
9ef69046
CY
78222009-01-01 Chong Yidong <cyd@stupidchicken.com>
7823
d6fafbe0
CY
7824 * xfns.c (x_create_tip_frame): Set border width of the X window.
7825
51d861de 7826 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7827
f9c34147
JR
78282009-01-01 Jason Rumney <jasonr@gnu.org>
7829
9acef61c 7830 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7831 Don't block input, as per earlier xterm.c changes.
7832
f5497e45
AR
78332008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7834
7835 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7836 (ns_appkit_version_int): New function.
7837 (x-server-version): Use ns_appkit_version_int and follow 21+
7838 convention of returning 3 integers.
7839
c19cab20
KH
78402008-12-30 Kenichi Handa <handa@m17n.org>
7841
7842 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7843 (CHAR_SURROGATE_PAIR_P): New macro.
7844
7845 * font.h (struct font_driver): New member get_variation_glyphs.
7846
9acef61c 7847 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7848 (Ffont_variation_glyphs): New function.
7849 (syms_of_font): Defsubr it.
7850
7851 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7852 ftfont_variation_glyphs.
7853 (setup_otf_gstring): New function.
7854 (ftfont_drive_otf): Use it.
7855 (ftfont_shape_by_flt): Handle variation selector.
7856 (ftfont_variation_glyphs): New function.
7857
28cd591f
MR
78582008-12-30 Martin Rudalics <rudalics@gmx.at>
7859
7860 * frame.c (Vemacs_iconified): Remove.
7861
7f714baf
JR
78622008-12-30 Jason Rumney <jasonr@gnu.org>
7863
7864 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7865 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7866
9d2d22ab
CY
78672008-12-30 Chong Yidong <cyd@stupidchicken.com>
7868
7869 * indent.c (Fvertical_motion): Don't advance iterator if we have
7870 reseated to the desired position.
7871
7872 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7873 checking for pos match.
7874
545312c2
KH
78752008-12-30 Kenichi Handa <handa@m17n.org>
7876
1ede3eb6
KH
7877 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7878 just get the low 8-bit of the code.
7879
545312c2
KH
7880 * font.c (font_intern_prop): Validate str as multibyte.
7881
bd7bbf29
DN
78822008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7883
31e0750e
DN
7884 * dispextern.h (struct face): Move lface and hash from the middle
7885 of bitfields.
7886
bd7bbf29
DN
7887 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7888
b5672e7c
DN
78892008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7890
7891 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7892 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7893 instead of intervals.h.
7894
d704470f
AS
78952008-12-26 Andreas Schwab <schwab@suse.de>
7896
7897 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7898 cons.
7899
54b33868
MR
79002008-12-26 Martin Rudalics <rudalics@gmx.at>
7901
7902 * textprop.c (Qminibuffer_prompt): New variable.
7903 (syms_of_textprop): Initialize it.
7904 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7905 in minibuffer-prompt face. (Bug#1662)
7906
40b615d6
JR
79072008-12-25 Jason Rumney <jasonr@gnu.org>
7908
7909 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7910
baae5c2d
JR
79112008-12-24 Jason Rumney <jasonr@gnu.org>
7912
7913 * ralloc.c (r_alloc_reset_variable): New function.
7914
7915 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7916 record of what points where. (Bug#716)
baae5c2d 7917
a9051c88
DN
79182008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7919
7920 * minibuf.c (read_minibuf): Follow the non-interactive case when
7921 running as a daemon, before detaching.
7922
8b146312
AS
79232008-12-22 Andreas Schwab <schwab@suse.de>
7924
7925 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7926 * gtkutil.c (free_widget_value): Use xfree instead of free.
7927
56f2de10
MR
79282008-12-22 Martin Rudalics <rudalics@gmx.at>
7929
7930 * frame.c (delete_frame): New function derived from
7931 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7932 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7933 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7934 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7935 * frame.h: Extern delete_frame.
7936 * window.c (window_loop):
7937 * terminal.c (delete_terminal):
7938 * xterm.c (x_connection_closed):
7939 * xfns.c (Fx_hide_tip):
9acef61c 7940 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7941
1fc200d6
JR
79422008-12-21 Jason Rumney <jasonr@gnu.org>
7943
7944 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7945 when character maps to .notdef character.
7946
5e252df2
SM
79472008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7948
7949 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7950
99b72cc4
JR
79512008-12-20 Jason Rumney <jasonr@gnu.org>
7952
7953 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7954 a graphical frame on Windows. (Bug#1325)
99b72cc4 7955
acc49a52
JD
79562008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7957
7958 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7959
6ea15123
CY
79602008-12-20 Chong Yidong <cyd@stupidchicken.com>
7961
7962 * minibuf.c (Fread_buffer): Doc fix.
7963
b2dab6c8
JR
79642008-12-20 Jason Rumney <jasonr@gnu.org>
7965
54ea0c87 7966 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7967 server name in UNC paths. (Bug#719)
54ea0c87 7968
b2dab6c8 7969 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7970 charbuf. (Bug#1035)
b2dab6c8 7971
6d1921be
DN
79722008-12-19 Daniel Engeler <engeler@gmail.com>
7973
7974 * sysdep.c (serial_configure): Fix typo.
7975
53934c98
DN
79762008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7977
7978 * sysdep.c: Include alloca.h.
f4f634e8
DN
7979 (system_process_attributes): Add implementation for Solaris.
7980
7981 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7982
06e111a6
DN
79832008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7984
7985 Reorganize implementation of Flist_system_processes and
7986 Fsystem_process_attributes. No functional changes.
7987 * process.c: Don't #include pwd.h, grp.h and limits.h.
7988 (Flist_system_processes): Just call list_system_processes.
7989 (Fsystem_process_attributes): Just call system_process_attributes.
7990 (procfs_list_system_processes, time_from_jiffies)
7991 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7992 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7993
7994 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7995 (list_system_processes): Rename from
7996 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7997 Provide a do nothing implementation.
7998 (system_process_attributes): Rename from
7999 procfs_list_system_processes.
8000 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8001 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8002
8003 * w32.c (list_system_processes): Rename from
8004 w32_list_system_processes.
8005 (system_process_attributes): Rename from
8006 w32_system_process_attributes.
8007
8008 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8009
8010 * process.h (w32_list_system_processes)
8011 (w32_system_process_attributes): Remove.
362654a6
JB
8012 (list_system_processes, system_process_attributes):
8013 New prototypes.
06e111a6 8014
6a705b23
KH
80152008-12-19 Kenichi Handa <handa@m17n.org>
8016
8017 * xfont.c (xfont_decode_coding_xlfd): New function.
8018 (xfont_encode_coding_xlfd): New function.
8019 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8020 (xfont_list): Decode and encode XLFD by iso-8859-1.
8021 (xfont_match): Likewise.
8022 (xfont_list_family): Likewise.
8023 (xfont_open): Likewise.
8024
d66c0241 8025 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8026 names are utf-8.
8027
d66c0241 8028 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8029 names are utf-8.
8030
5a130941
JD
80312008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8032
8033 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8034 changed.
bfd20325
JD
8035 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8036 clicked on a detached tool bar button.
5a130941 8037
fd95644b
DN
80382008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8039
8040 * emacs.c (main): Print and error and exit when no data is read
8041 from the pipe.
8042
e6eee6ae
JR
80432008-12-17 Jason Rumney <jasonr@gnu.org>
8044
8045 * w32font.c (w32font_has_char): Always return -1.
8046
a35dd56b
KH
80472008-12-16 Kenichi Handa <handa@m17n.org>
8048
8049 * font.c (font_open_entity): Fix previous change.
8050
0e3635c2
DN
80512008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8052
8053 * process.c: Include <limits.h>.
8054
d4835507 80552008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8056
8057 * font.c (font_update_drivers): Fix mistake in reconstructing the
8058 driver list.
8059
80602008-12-16 Chong Yidong <cyd@stupidchicken.com>
8061
8062 * font.c (font_clear_cache): Fix format of font cache data.
8063
e2cbc401
CY
80642008-12-15 Chong Yidong <cyd@stupidchicken.com>
8065
8066 * xftfont.c (xftfont_open): Free Xft font pattern if
8067 XftFontOpenPattern fails.
8068
8069 * xterm.c (x_free_frame_resources): Remove extraneous call to
8070 free_frame_faces.
8071
b131d535
CY
80722008-12-13 Chong Yidong <cyd@stupidchicken.com>
8073
8074 * xterm.c (x_delete_display): Move xim_close_dpy call to
8075 x_delete_terminal.
8076 (x_delete_terminal): Call xim_close_dpy.
8077
e6df5336
JR
80782008-12-13 Jason Rumney <jasonr@gnu.org>
8079
8080 * w32font.c (intern_font_name): New function.
8081 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8082 (w32font_open_internal, Fx_select_font): Decode font name.
8083 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8084
8085 * w32font.h (intern_font_name): Declare new function.
8086
8087 * w32uniscribe.c (add_opentype_font_name_to_list):
8088 Use intern_font_name.
8089
20d68145
CY
80902008-12-13 Chong Yidong <cyd@stupidchicken.com>
8091
9f2554de
CY
8092 * frame.c (Fdelete_frame): Call free_font_driver_list.
8093
3d9bec9a
CY
8094 * font.c (free_font_driver_list): Implement missing function.
8095
20d68145
CY
8096 * w32term.c (w32_term_init): Don't initialize the image cache
8097 here; it will be done in init_frame_faces.
8098
8099 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8100 (struct x_display_info): Remove unused member null_pixel. New
8101 member xim_callback_data.
8102
8103 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8104 (xim_initialize): Save pointer to callback function data.
8105 (xim_close_dpy): Free callback function data. Call XCloseIM,
8106 reverting 2008-11-04 change by David Smith.
8107 (x_term_init): Don't initialize the image cache here; it will be
8108 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8109 (x_delete_display): Free x_dnd_atoms member.
8110
96f9306b
KH
81112008-12-13 Kenichi Handa <handa@m17n.org>
8112
6dec9044
JB
8113 * font.c (font_rescale_ratio): Moved from xfaces.c.
8114 Argument type changed. Handle a font-spec too.
96f9306b 8115 (font_score): Check Vface_font_rescale_alist.
6dec9044 8116 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8117
8118 * xfaces.c (font_rescale_ratio): Moved to font.c.
8119
8d5b4964
CY
81202008-12-13 Chong Yidong <cyd@stupidchicken.com>
8121
8122 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8123
e6df5336
JR
81242008-12-12 Jason Rumney <jasonr@gnu.org>
8125
8126 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8127 Vwindow_system_version to the real w32 major version.
8128
97c6058a
DN
81292008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8130
8131 * term.c (init_tty): Move setting the terminal name before the
8132 potential user: maybe_fatal.
8133
ec4e88d7
CY
81342008-12-11 Chong Yidong <cyd@stupidchicken.com>
8135
d4835507
JB
8136 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8137 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8138
b4233ec9
JR
81392008-12-11 Jason Rumney <jasonr@gnu.org>
8140
8ec71e23 8141 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8142 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8143
b4233ec9 8144 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8145 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8146
011a0143
JB
81472008-12-11 Juanma Barranquero <lekktu@gmail.com>
8148
8149 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8150
3c309f34
JB
81512008-12-11 Juanma Barranquero <lekktu@gmail.com>
8152
8153 * process.c (Fsystem_process_attributes, syms_of_process):
8154 Fix typo in name of Ssystem_process_attributes.
8155 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8156
fedc6ab5
JB
81572008-12-11 Juanma Barranquero <lekktu@gmail.com>
8158
8159 * syntax.c (Fmodify_syntax_entry): Doc fix.
8160
ba3de0e8
JB
81612008-12-10 Juanma Barranquero <lekktu@gmail.com>
8162
8163 * font.c (Ffont_spec): Move usage to end of docstring.
8164
174f1c74
JR
81652008-12-10 Jason Rumney <jasonr@gnu.org>
8166
8167 * w32font.c (Qcham): New symbol.
8168 (font_supported_scripts): Add cham, and comments for other new
8169 scripts in bitfield from OpenType spec.
9d32f818
JR
8170 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8171 contain characters beyond the bmp.
174f1c74 8172
7b649478
KH
81732008-12-10 Kenichi Handa <handa@m17n.org>
8174
8175 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8176 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8177 Qunicode_sip.
8178
2133e2d1
JB
81792008-12-10 Juanma Barranquero <lekktu@gmail.com>
8180
8181 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8182 (Fcoding_system_put): Use QCdefault_char.
8183 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8184
9af886ee
CY
81852008-12-09 Chong Yidong <cyd@stupidchicken.com>
8186
74d819eb
CY
8187 * xftfont.c (syms_of_xftfont): Fix typo.
8188
4ccfa1c0 8189 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8190
7c19d3ae
DN
81912008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8192
8193 * emacs.c (main): Close daemon_pipe on exec.
8194
567826bb
CY
81952008-12-08 Chong Yidong <cyd@stupidchicken.com>
8196
8197 * termchar.h (struct tty): New members termcap_term_buffer and
8198 termcap_strings_buffer.
8199
8200 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8201 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8202 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8203 All callers changed.
8204 (init_tty): Store termcap data and string buffers in new struct
8205 tty members termcap_term_buffer and termcap_strings_buffer.
8206 (delete_tty): Free them.
4ccfa1c0 8207 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8208
aa96c42b
SZ
82092008-12-07 Seiji Zenitani <zenitani@mac.com>
8210
8211 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8212 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8213
b7e1d896
CY
82142008-12-06 Chong Yidong <cyd@stupidchicken.com>
8215
8216 * coding.c (make_conversion_work_buffer): Disable buffer
8217 modification hooks in the work buffer.
8218
b5ec91a5
EZ
82192008-12-05 Eli Zaretskii <eliz@gnu.org>
8220
8221 * process.c (procfs_system_process_attributes): If `nread' has a
8222 negative value, assign zero to it.
8223
a5d2a52b
CY
82242008-12-05 Chong Yidong <cyd@stupidchicken.com>
8225
68c5540b 8226 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8227
7bf1bb21
KH
82282008-12-05 Kenichi Handa <handa@m17n.org>
8229
8230 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8231 second character is a combining character.
8232
2fdc7d00
EZ
82332008-12-05 Eli Zaretskii <eliz@gnu.org>
8234
8235 * process.c (procfs_system_process_attributes): Don't use cmd,
8236 cmdsize, and q without initializing them first.
8237
bf6bfba8
JR
82382008-12-04 Jason Rumney <jasonr@gnu.org>
8239
8240 * w32font.c (w32font_draw): Initialize orig_clip before getting
8241 it, and delete it when finished.
8242
a3b1a468
DN
82432008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8244
8245 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8246 case when running as a daemon before detaching.
8247
8b8be8eb
JB
82482008-12-03 Juanma Barranquero <lekktu@gmail.com>
8249
805f2638 8250 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8251
b1bde622
KH
82522008-12-03 Kenichi Handa <handa@m17n.org>
8253
e500c47d
KH
8254 * font.c (font_at): Set `multibyte' at first.
8255
ca516334
KH
8256 * coding.c (decode_coding_charset): Check type of an element of
8257 vector VALIDS.
7bf1bb21 8258 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8259
4ccfa1c0 8260 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8261 (font_for_char): Likewise.
8262
1e5ecd37
CY
82632008-12-03 Chong Yidong <cyd@stupidchicken.com>
8264
d5b01609 8265 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8266 (font_update_lface): Handle fonts with corrupted size specs,
8267 i.e. non-int and non-float.
d5b01609 8268
11e3a6e4 8269 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8270 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8271 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8272
ab06788b
CY
8273 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8274
1e5ecd37 8275 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8276 underline_minimum_offset for underline position.
1e5ecd37 8277
63c125ab
DN
82782008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8279
8280 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8281
8282 * character.c (c_string_width): Specify the type for LEN.
8283
3a8406e1
KH
82842008-12-03 Kenichi Handa <handa@m17n.org>
8285
4ccfa1c0 8286 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8287 (decode_coding_utf_8): Likewise.
4ccfa1c0 8288 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8289 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8290
651df7d9
CY
82912008-12-02 Chong Yidong <cyd@stupidchicken.com>
8292
8293 * keyboard.c (make_lispy_position): Only use PT if the selected
8294 window is current.
8295
1f625c6c
AS
82962008-12-02 Andreas Schwab <schwab@suse.de>
8297
f7741ce9
AS
8298 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8299
1f625c6c
AS
8300 * doprnt.c (doprnt1): Fix size of charbuf.
8301
92bc2678
CY
83022008-12-02 Chong Yidong <cyd@stupidchicken.com>
8303
8304 * keyboard.c (timer_check): Revert last change.
8305
93b9e8cc
JB
83062008-12-02 Juanma Barranquero <lekktu@gmail.com>
8307
8308 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8309
fd7a37d5
JB
83102008-12-01 Juanma Barranquero <lekktu@gmail.com>
8311
8312 * makefile.w32-in: Update dependencies.
8313 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8314
c115043b
AS
83152008-12-01 Andreas Schwab <schwab@suse.de>
8316
8317 * font.c (register_font_driver): Use xmalloc.
8318 (font_put_frame_data): Likewise.
8319
f5668d2a
CY
83202008-12-01 Chong Yidong <cyd@stupidchicken.com>
8321
860d96be
CY
8322 * xfaces.c (realize_x_face): Make abort condition clearer.
8323
f5668d2a
CY
8324 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8325
379c17e7
CY
83262008-11-30 Chong Yidong <cyd@stupidchicken.com>
8327
8328 * keyboard.c (timer_check): After a timer runs, ensure that the
8329 selected window's buffer is current.
8330
35f36d65
JB
83312008-11-30 Juanma Barranquero <lekktu@gmail.com>
8332
f952c61c
JB
8333 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8334 It was accidentally restored by the Unicode merge.
8335
35f36d65
JB
8336 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8337
b23077df
JB
83382008-11-29 Juanma Barranquero <lekktu@gmail.com>
8339
8340 * w32proc.c: Include "coding.h".
8341 (Fw32_short_file_name): Encode filename passed to Windows API.
8342 (Fw32_long_file_name): Encode filename passed to Windows API and
8343 decode back the result. (Bug#1433)
8344
b8ebe9dd
KH
83452008-11-29 Kenichi Handa <handa@m17n.org>
8346
8cc53f96
KH
8347 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8348 not before accessing it.
8349
b8ebe9dd
KH
8350 * charset.c (Fdefine_charset_internal): After calculating
8351 min_char, max_char, and fastmap, copy the charset structure again.
8352 (encode_char): Fix the previous change.
8353
59bc82c0
SZ
83542008-11-28 Seiji Zenitani <zenitani@mac.com>
8355
8356 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8357
8358 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8359
8360 * nsterm.m (x_set_frame_alpha): New function.
8361
32247e3d
EZ
83622008-11-27 Eli Zaretskii <eliz@gnu.org>
8363
8364 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8365
b003e5ff
JB
83662008-11-27 Juanma Barranquero <lekktu@gmail.com>
8367
8368 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8369 pointer to check_face_name.
8370
708550f5
KH
83712008-11-27 Kenichi Handa <handa@m17n.org>
8372
8373 * category.h (SET_CATEGORY_SET): Call set_category_set.
8374 (set_category_set): Extern it.
8375
8376 * category.c (hash_get_category_set): New function.
8377 (Fmodify_category_entry): Adjusted for the change of
8378 char_table_ref_and_range. Call hash_get_category_set to get a
8379 category set to store in the table.
8380
8381 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8382 Funify_charset.
8383
2ae37cf0 8384 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8385 (DECODE_CHAR): Check if the decoder vector is ready.
8386 (ENCODE_CHAR): Check if the encoder char-table is ready.
8387 (maybe_unify_char): Extern it.
8388
8389 * charset.c (Vchar_unified_charset_table): Delete it.
8390 (inhibit_load_charset_map): New variable.
8391 (temp_charset_work): New variable.
8392 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8393 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8394 New macros.
8395 (load_charset_map): Meaning of control_flag changed. If
8396 inhibit_load_charset_map is nonzero, setup a table in
8397 temp_charset_work.
8398 (load_charset): New argument control_flag.
8399 (map_charset_for_dump): New function.
8400 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8401 map_charset_for_dump.
8402 (Fdefine_charset_internal): If the charset method is MAP, load
8403 mapping tables by calling load_charset.
8404 (Funify_charset): Don't load a mapping table but directly set
8405 Vchar_unify_table.
8406 (maybe_unify_char): New function.
8407 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8408 Handle the case of inhibit_load_charset_map being nonzero.
8409 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8410 Handle the case of inhibit_load_charset_map being nonzero.
8411 (Fclear_charset_maps): Just free temp_charset_work.
8412 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8413 variable.
8414
8415 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8416 change of char_table_ref_and_range.
8417 (char_table_ref_and_range): Change the meaning of argument FROM
8418 and TO. Now the caller must provide initial values for *FROM
8419 and *TO.
8420
8421 * fontset.c (fontset_add): Adjusted for the change of
8422 char_table_ref_and_range.
8423 (fontset_get_font_group): Likewise.
8424 (Ffontset_info): Likewise.
8425
8426 * keymap.c (describe_vector): Adjusted for the change of
8427 char_table_ref_and_range. For char-table, put boundary between
8428 non-ASCII and 8-bit characters.
8429
8430 * print.c (print_object): For bool-vector, delete unnecessary
8431 check of ASCII_BYTE_P.
8432
9196133b
JR
84332008-11-26 Jason Rumney <jasonr@gnu.org>
8434
8435 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8436 leading in font height. (Bug#879)
9196133b 8437
9f688acf
GM
84382008-11-26 Glenn Morris <rgm@gnu.org>
8439
8440 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8441 redefinition with ifdef. (Bug#1383)
8442
90d19aff
AR
84432008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8444
8445 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8446
4ccfa1c0 84472008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8448
8449 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8450 New EmacsView methods.
8451 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8452 Fixes bug #1048,1357,1414.
8453
84542008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8455
8456 Fix bug #1362.
8457 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8458 is not an indexed color.
8459 * nsterm.m (free_indexed_color): Add argument checking.
8460 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8461
e7d5ecb3
CY
84622008-11-24 Chong Yidong <cyd@stupidchicken.com>
8463
8464 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8465 Document confirm-after-completion value for
8466 minibuffer-completion-confirm.
8467
c285743c
JR
84682008-11-24 Jason Rumney <jasonr@gnu.org>
8469
8470 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8471 warning.
8472
b0857706
JR
84732008-11-23 Jason Rumney <jasonr@gnu.org>
8474
8475 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8476 restored before returning.
8477
8478 * w32font.c (check_face_name): New function.
8479 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8480 fonts. (Bug#642)
b0857706 8481
ee50ff07
MR
84822008-11-22 Martin Rudalics <rudalics@gmx.at>
8483
8484 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8485 confirm-nonexistent-file-or-buffer in doc-string.
8486
b8ff72fa
SM
84872008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8488
8489 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8490 Fix copy/paste typo. Add checks.
8491
cee53ed4
KH
84922008-11-21 Kenichi Handa <handa@m17n.org>
8493
8494 * coding.c (detect_coding_iso_2022): Reject invalid composition
8495 sequence.
8496 (DECODE_COMPOSITION_START): If the current source is the last
8497 block, and the current composition doesn't end, regard this
8498 sequence as invalid.
8499 (decode_coding_iso_2022): Handle invalid composition sequence.
8500
f6ef1e65
MR
85012008-11-20 Martin Rudalics <rudalics@gmx.at>
8502
8503 * window.c (coordinates_in_window): Don't return
8504 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8505 line when the window is not the rightmost one. (Bug#1372)
8506
e08b1705
MR
85072008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8508
8509 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8510
ad98e89f
EZ
85112008-11-15 Eli Zaretskii <eliz@gnu.org>
8512
8513 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8514 and bright_bg if noninteractive is non-zero.
8515
fb098a4b
CY
85162008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8517
8518 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8519 x_draw_glyph_string_background.
8520
8521 * w32term.c (x_draw_glyph_string): Likewise.
8522
ce952b6e
CY
85232008-11-15 Chong Yidong <cyd@stupidchicken.com>
8524
8525 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8526 the next glyph string once past the overhang width.
8527
8528 * nsterm.m (ns_draw_glyph_string): Likewise.
8529
8530 * w32term.c (x_draw_glyph_string): Likewise.
8531
26ea7079
CY
85322008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8533
8534 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8535 double file close.
8536
1c33c906
MR
85372008-11-14 Martin Rudalics <rudalics@gmx.at>
8538
8539 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8540 dedicated status of window before attempting to display another
8541 buffer in it.
8542
8fc29035
JB
85432008-11-14 Juanma Barranquero <lekktu@gmail.com>
8544
8545 * msdos.c (Fmsdos_long_file_names):
8546 (syms_of_msdos) <dos-unsupported-char-glyph>:
8547 * dosfns.c (Fint86): Fix typos in docstrings.
8548
55fb4286
EZ
85492008-11-14 Eli Zaretskii <eliz@gnu.org>
8550
8551 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8552
3fda0315
KY
85532008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8554
8555 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8556
7e849c17
CY
85572008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8558
8559 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8560
8561 * frame.h: Negative alpha means "don't touch".
8562
8563 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8564
8565 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8566
b9fd67bd
DN
85672008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8568
8569 * hftctl.c:
8570 * chpdef.h:
8571 * acldef.h: Remove files used only for systems no longer supported.
8572
8573 * Makefile.in: Fix .o alphabetical ordering.
8574 (hftctl.o): Remove dependency, file removed.
8575 (keymap.o, print.o): Depend on charset.h.
8576
d5998e03
KH
85772008-11-10 Kenichi Handa <handa@m17n.org>
8578
2ae37cf0 8579 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8580
be70e183
CY
85812008-11-08 Chong Yidong <cyd@stupidchicken.com>
8582
8583 * dired.c (file_name_completion): If completion_ignore_case is
8584 enabled, ignore case when checking completion-regexp-list.
8585
7cf94eac
EZ
85862008-11-08 Eli Zaretskii <eliz@gnu.org>
8587
8588 * vm-limit.c (get_lim_data): Fix last change.
8589
ee107a89
KH
85902008-11-08 Kenichi Handa <handa@m17n.org>
8591
8592 * character.c (Fget_byte): New function.
8593 (syms_of_character): Defsubr Fget_byte.
8594
5fd15622
CY
85952008-11-07 Chong Yidong <cyd@stupidchicken.com>
8596
8597 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8598 cursor position is valid after scrolling.
8599
13d62fad
JB
86002008-11-06 Juanma Barranquero <lekktu@gmail.com>
8601
8602 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8603
a1dd2936
GM
86042008-11-06 Glenn Morris <rgm@gnu.org>
8605
8606 * xterm.c (handle_one_xevent): Don't let popup menus cause
8607 mouse-autoselect-window related window switching. (Bug#1261)
8608
860cd236
CY
86092008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8610
8611 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8612
653a3150
AS
86132008-11-04 Andreas Schwab <schwab@suse.de>
8614
8615 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8616
870f5cac
CY
86172008-11-03 Chong Yidong <cyd@stupidchicken.com>
8618
8619 * xfns.c (Fx_wm_set_size_hint): New function.
8620
1e02f3cb
MR
86212008-11-03 Martin Rudalics <rudalics@gmx.at>
8622
8623 * textprop.c (Fprevious_single_char_property_change): Return 0
8624 when there's no change in a string. (Bug#1301)
8625
e630dfc6
MR
86262008-11-02 Martin Rudalics <rudalics@gmx.at>
8627
8628 * frame.c (do_switch_frame): New argument NORECORD passed to
8629 Fselect_window.
8630 (Fselect_frame): New argument NORECORD passed to
8631 do_switch_frame.
8632 (Fset_frame_selected_window): New argument NORECORD passed to
8633 Fselect_frame.
8634 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8635 in call of do_switch_frame.
8636 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8637 Handle NORECORD argument in call of Fselect_frame.
8638 * lisp.h (do_switch_frame, Fselect_frame)
8639 (Fset_frame_selected_window): Adjust declarations.
8640 * window.c (select_frame_norecord): New function.
8641 (run_window_configuration_change_hook): Use it and call
8642 Fselect_frame with NORECORD set.
8643 (Fselect_window): Pass NORECORD to Fselect_frame.
8644 (Fset_window_configuration): Handle NORECORD argument in call of
8645 do_switch_frame.
8646 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8647 Fset_frame_selected_window.
8648 * keyboard.c (command_loop_1): Handle NORECORD in call of
8649 Fselect_frame (currently ifdefd).
8650
9020b223
GM
86512008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8652
8653 * emacs.c (USAGE2): Untabify.
8654
793ffee8
SM
86552008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8656
8657 * composite.c (fill_gstring_header): Fix copy/paste typo.
8658
ab6d1131
MR
86592008-10-31 Martin Rudalics <rudalics@gmx.at>
8660
8661 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8662 (Fother_window): Rename argument and rewrite doc-string.
8663 (select_window_norecord): Fix return value. (Bug#1276)
8664
601a9cf1
JB
86652008-10-30 Juanma Barranquero <lekktu@gmail.com>
8666
8667 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8668 new frames overriding foreground for tooltips. Based on similar patch
8669 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8670
813b0652
CY
86712008-10-29 Chong Yidong <cyd@stupidchicken.com>
8672
8673 * emacs.c (Fdaemon_initialized): Initialize nfd.
8674
4414f58f
MR
86752008-10-29 Martin Rudalics <rudalics@gmx.at>
8676
8677 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8678 (Fwindow_text_height): Clarify doc-strings.
8679 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8680 doc-string of window-scroll-functions.
8681
ecdcaa09
RS
86822008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8683
8684 * category.c (syms_of_category): Fix typo in docstring.
8685
23fe745a
JB
86862008-10-28 Juanma Barranquero <lekktu@gmail.com>
8687
8688 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8689 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8690 Fix typos in docstrings.
8691
ff808935
DN
86922008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8693
8694 * emacs.c (daemon_pipe): Make non-static.
8695 (IS_DAEMON): Move definition ...
8696 * lisp.h (IS_DAEMON): ... here.
8697 (daemon_pipe): Declare.
8698 (is_daemon): Remove.
8699 * dispnew.c (init_display): Use IS_DAEMON.
8700
fc012771
SM
87012008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8702
8703 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8704 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8705
8706 * emacs.c (is_daemon): Remove.
8707 (main): Don't set is_daemon.
8708 (IS_DAEMON): New macro.
8709 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8710 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8711 parent exits.
8712 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8713
d8bdbe6f
CY
87142008-10-27 Chong Yidong <cyd@stupidchicken.com>
8715
d1a072bf
CY
8716 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8717 over-sized glyph, draw it with the default glyph width.
8718
e2e325aa
CY
8719 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8720 glyph, draw it with the default glyph width.
8721
8722 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8723 glyph, draw it with the default glyph width.
8724
d8bdbe6f
CY
8725 * xdisp.c (try_scrolling): When computing the distance from the
8726 scroll margin to PT, try moving some distance past the window
8727 bottom before giving up.
8728
7bfac547
MR
87292008-10-27 Martin Rudalics <rudalics@gmx.at>
8730
8731 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8732 (Fset_window_buffer): Explain in doc-string that a window can be
8733 "strongly" dedicated to its buffer.
8734
4ff029f6
DN
87352008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8736
8737 * emacs.c (daemon_name): New variable.
8738 (main): Deal with --daemon=SERVER_NAME.
8739 (Fdaemonp): Return a name if one was passed to --daemon.
8740
5790ef40
DN
87412008-10-26 Romain Francoise <romain@orebokech.com>
8742
f9bd0df9 8743 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8744 (main): Create a pipe before forking, make the parent exit only after
8745 the child has closed its end of the pipe. Move closing the
8746 descriptors ...
8747 (Fdaemon_initialized): ... here. New function.
8748
f5385255
SM
87492008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8750
4d632321
SM
8751 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8752 the previous unoptimized table.
8753
f5385255
SM
8754 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8755 the distinction between non-nil and non-t value of `dedicated'.
8756
6c56a0f3
CY
87572008-10-25 Chong Yidong <cyd@stupidchicken.com>
8758
8759 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8760 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8761
fec89261
MR
87622008-10-25 Martin Rudalics <rudalics@gmx.at>
8763
8764 * window.c (Fget_buffer_window, Fdelete_windows_on)
8765 (Freplace_buffer_in_windows): Make buffer argument optional and
8766 rename to buffer_or_name.
8767
34fcddd0
CY
87682008-10-24 Chong Yidong <cyd@stupidchicken.com>
8769
f5385255
SM
8770 * xdisp.c (handle_single_display_spec, handle_display_prop):
8771 Undo 2005-05-16 change.
34fcddd0
CY
8772 (handle_stop): Pop iterator if it's loaded with an empty string.
8773 (get_overlay_strings_1): Don't save iterator if it's loaded with
8774 an empty string (bug#1201).
8775
064766f2
KH
87762008-10-24 Kenichi Handa <handa@m17n.org>
8777
8778 * ftfont.c (ftfont_otf_features): Fix previous change.
8779 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8780 calling ftfont_otf_features.
8781
f9bd0df9 87822008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8783
8784 * font.c (font_match_p): Fix for the case that a vector of
8785 characters is in script-representative-chars.
8786
1dae9197
MA
87872008-10-24 Michael Albinus <michael.albinus@gmx.de>
8788
8789 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8790 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8791 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8792 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8793 macro. (Bug#1186)
1dae9197 8794
f9bd0df9 87952008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8796
8797 * s/sol2-10.h: New file.
8798
878a4584
JB
87992008-10-23 Juanma Barranquero <lekktu@gmail.com>
8800
8801 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8802 poor beast has survived 9+ years and the jump from xterm.c!).
8803
cd265ca6
MR
88042008-10-23 Martin Rudalics <rudalics@gmx.at>
8805
8806 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8807 Reword doc-string.
f5385255 8808 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8809
472a4dc9
JB
88102008-10-23 Juanma Barranquero <lekktu@gmail.com>
8811
8812 * character.c (syms_of_character) <script-representative-chars>:
8813 <unicode-category-table>: Doc fixes.
8814
159bd5a2
NF
88152008-10-23 Noah Friedman <friedman@splode.com>
8816
8817 * coding.c (make_conversion_work_buffer): Check that
8818 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8819 Fget_buffer_create.
8820
49f9c344
KH
88212008-10-23 Kenichi Handa <handa@m17n.org>
8822
8823 * font.c (font_add_log): Check the values of extra properties.
8824
12bb3111
MR
88252008-10-22 Martin Rudalics <rudalics@gmx.at>
8826
8827 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8828 Reword doc-string.
8829 (Fset_window_parameter): Use NILP.
8830 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8831 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8832
bbeb4e99
JB
88332008-10-22 Juanma Barranquero <lekktu@gmail.com>
8834
8835 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8836
88372008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8838
8839 * nsfns.m (ns_appkit_version): New function.
8840 (x-server-version): Use it.
8841 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8842 (x-server-vendor): Don't check_ns().
8843
8844 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8845
a9b555d3
JB
88462008-10-22 Juanma Barranquero <lekktu@gmail.com>
8847
8848 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8849 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8850
4626499f
KH
88512008-10-22 Kenichi Handa <handa@m17n.org>
8852
e3681952
KH
8853 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8854 scripts.
8855
4626499f
KH
8856 * category.c (word_boundary_p): Check scripts instead of charset.
8857 Handle nil value in word-separating-categories and
8858 word-combining-categories.
8859 (syms_of_category): Fix docstrings of word-separating-categories
8860 and word-combining-categories.
8861
1560f91a
EZ
88622008-10-21 Eli Zaretskii <eliz@gnu.org>
8863
8864 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8865 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8866
f4668441
MR
88672008-10-21 Martin Rudalics <rudalics@gmx.at>
8868
8869 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8870 Rename arg "buffer" to "buffer_or_name".
8871 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8872 it optional.
8873 (no_switch_window): Remove since the return value is not used.
a9b555d3 8874 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8875 Consider window as dedicated when Fwindow_dedicated_p returns a
8876 non-nil value.
8877 * lisp.h: Remove prototype for no_switch_window.
8878
fd75ddb2
JD
88792008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8880
8881 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8882 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8883
07295713
KH
88842008-10-21 Kenichi Handa <handa@m17n.org>
8885
8886 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8887 check Vlatin_extra_code_table.
8888
712adc82
EZ
88892008-10-20 Eli Zaretskii <eliz@gnu.org>
8890
8891 * fileio.c (Fset_file_modes): Doc fix.
8892
f549eb0b
MA
88932008-10-19 Michael Albinus <michael.albinus@gmx.de>
8894
8895 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8896 in arrays.
8897
aac0c6e3
MR
88982008-10-19 Martin Rudalics <rudalics@gmx.at>
8899
8900 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8901 Mention kill-buffer in doc-string.
8902 (Fset_window_buffer): Reinsert tem check removed in last commit.
8903 (Fenlarge_window, Fshrink_window): Have argument names and
8904 doc-string follow Elisp manual more closely.
8905
89062008-10-18 Eli Zaretskii <eliz@gnu.org>
8907
8908 * fileio.c (Fset_file_modes): Doc fix.
8909
89102008-10-18 Martin Rudalics <rudalics@gmx.at>
8911
8912 * window.c (Fwindow_width, Fset_window_start)
8913 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8914 (Fdelete_windows_on, Freplace_buffer_in_windows):
8915 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8916 (Fwindow_dedicated_p): Make window argument optional.
8917 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8918 (Fset_window_buffer): Respect any non-nil dedicated value for
8919 window. Rename "buffer" argument to "buffer_or_name".
8920
89212008-10-18 Ulrich Mueller <ulm@gentoo.org>
8922
8923 * m/sh3.h: New file, machine description for SuperH.
8924
89252008-10-17 Martin Rudalics <rudalics@gmx.at>
8926
8927 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8928
89292008-10-17 Kenichi Handa <handa@m17n.org>
8930
8931 * ftfont.c (ftfont_otf_features): Fix indexing
8932 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8933
89342008-10-16 Magnus Henoch <mange@freemail.hu>
8935
8936 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8937 (Fdbus_call_method_asynchronously): Ditto.
8938 This change makes C-h f display the argument list.
8939
89402008-10-16 Chong Yidong <cyd@stupidchicken.com>
8941
8942 * fileio.c (Fexpand_file_name): Doc fix.
8943
8944 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8945 of :foreground and :background equivalent to unspecified (20.x
8946 compatibility).
8947
89482008-10-15 Eli Zaretskii <eliz@gnu.org>
8949
8950 * buffer.c (syms_of_buffer): Doc fix.
8951
89522008-10-14 Kenichi Handa <handa@m17n.org>
8953
8954 * font.c (font_clear_prop): When clearing font width, clear the
8955 average width field too.
8956
89572008-10-12 Andreas Schwab <schwab@suse.de>
8958
8959 * ftfont.c (ftfont_shape_by_flt): Make static.
8960 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8961
8962 * font.c: Don't include <m17n-flt.h>.
8963
89642008-10-10 Eli Zaretskii <eliz@gnu.org>
8965
8966 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8967
89682008-10-09 Eli Zaretskii <eliz@gnu.org>
8969
8970 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8971 away code.
8972
89732008-10-09 Chong Yidong <cyd@stupidchicken.com>
8974
8975 * dispnew.c (update_text_area): Avoid looping due to large glyph
8976 overhangs (bug#1070).
8977
89782008-10-09 Kenichi Handa <handa@m17n.org>
8979
8980 * fontset.c (face_for_char): If face->fontset is negative, just
8981 return ascii_face.
8982
f5385255
SM
8983 * font.c (font_delete_unmatched): Fix previous change.
8984 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8985
89862008-10-09 Martin Rudalics <rudalics@gmx.at>
8987
8988 * frame.c (Fraise_frame): On text-only terminals select frame in
8989 order to make it visible. (Bug#1061)
8990
89912008-10-08 Chong Yidong <cyd@stupidchicken.com>
8992
8993 * fontset.c (fontset_find_font): Check frame validity.
8994
89952008-10-07 Chong Yidong <cyd@stupidchicken.com>
8996
a9b555d3 8997 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8998 (xg_display_close): Allow Emacs to close all displays (bug#985).
8999
90002008-10-06 Andreas Schwab <schwab@suse.de>
9001
f5385255 9002 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9003
90042008-10-06 Chong Yidong <cyd@stupidchicken.com>
9005
f5385255 9006 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9007
a9b555d3 9008 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9009
9010 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9011 during initialization.
9012
90132008-10-04 Eli Zaretskii <eliz@gnu.org>
9014
9015 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9016 whole thing on MSDOS frames as well as on a TTY.
9017
9018 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9019 well as for TTY.
9020 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9021 well as on a TTY.
9022
9023 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9024 as well as for TTY.
9025
9026 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9027
9028 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9029 MSDOS frames as well.
9030
90312008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9032
9033 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9034 correct arguments.
b71ac3dd 9035 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9036
90372008-10-03 Glenn Morris <rgm@gnu.org>
9038
9039 * emacs.c (USAGE1): Add --daemon.
9040
90412008-10-02 Eli Zaretskii <eliz@gnu.org>
9042
9043 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9044 100, so it's in percents as advertised.
9045
90462008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9047
9048 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9049 (ns_output.current_cursor, ns_output.desired_cursor)
9050 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9051 (FRAME_NEW_CURSOR_COLOR): Remove.
9052
9053 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9054 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9055 enumeration (HOLLOW_BOX_CURSOR, etc.).
9056
9057 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9058 (draw_window_cursor): Simplify code.
f5385255
SM
9059 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9060 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9061 updates manually.
a9b555d3
JB
9062 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9063 Use core Emacs cursor types.
aac0c6e3 9064
b8ff72fa 9065 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9066
90672008-10-02 Martin Rudalics <rudalics@gmx.at>
9068
9069 * process.c (Faccept_process_output): Fix doc-string.
9070
90712008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9072
9073 * gmalloc.c (__sbrk): Also define for uClibc.
9074
9075 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9076 for uClibc.
9077
90782008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9079
9080 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9081 styles.
9082 (nsfont_open): Reenable the cache.
9083
90842008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9085
9086 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9087 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9088
90892008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9090
9091 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9092 a suspended terminal.
9093
90942008-09-30 Michael Albinus <michael.albinus@gmx.de>
9095
9096 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9097
90982008-09-30 Eli Zaretskii <eliz@gnu.org>
9099
9100 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9101
91022008-09-30 Chong Yidong <cyd@stupidchicken.com>
9103
9104 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9105 in a continued line coincides with a line beginning.
9106
91072008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9108
9109 * nsfont.m (nsfont_trait_distance): Fix bug.
9110 (nsfont_list): Return a list rather than a vector (syncs with Handa
9111 changes of 2008-05-14).
9112 (nsfont_open): Improve logging.
9113
91142008-09-29 Andreas Schwab <schwab@suse.de>
9115
9116 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9117
91182008-09-28 Martin Rudalics <rudalics@gmx.at>
9119
9120 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9121 name as char-resolve-modifiers.
9122 Reported by: Markus Triska <markus.triska@gmx.at>
9123
91242008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9125
9126 * dispnew.c (init_display): Return earlier when running as a daemon.
9127
91282008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9129
9130 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9131
91322008-09-27 Eli Zaretskii <eliz@gnu.org>
9133
9134 * composite.c (Fcomposition_get_gstring)
9135 (Fcompose_region_internal, Fcompose_string_internal)
9136 (Ffind_composition_internal): Doc fix.
9137 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9138 (syms_of_composite) <auto-composition-function>: Doc fix.
9139 (syms_of_composite) <composition-function-table>: Doc fix.
9140
91412008-09-25 Chong Yidong <cyd@stupidchicken.com>
9142
9143 * search.c (wordify): New argument for lax word-ends.
9144 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9145
91462008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9147
9148 * lisp.h (is_daemon): Declare.
9149 * dispnew.c (init_display): Do not try to initialize the terminal
9150 when running as a daemon.
9151
91522008-09-22 Chong Yidong <cyd@stupidchicken.com>
9153
9154 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9155 x_display_pixel_height.
9156
91572008-09-22 Martin Rudalics <rudalics@gmx.at>
9158
9159 * undo.c (record_point): Don't call Fundo_boundary for first
9160 change. (Bug#731)
9161
91622008-09-22 Juanma Barranquero <lekktu@gmail.com>
9163
9164 * emacs.c (Fdaemonp): Doc fix.
9165
91662008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9167
9168 * emacs.c (main): Place #ifdef in the proper place.
9169
91702008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9171
9172 * emacs.c (standard_args): Add --daemon.
9173 (main): Disconnect from the terminal when --daemon is passed.
9174 (is_daemon): New variable.
9175 (Fdaemonp): New function.
9176 (syms_of_emacs): Defsubr it.
9177
91782008-09-20 Chong Yidong <cyd@stupidchicken.com>
9179
9180 * xdisp.c (get_next_display_element): Handle string display
9181 correctly when checking for the end of a box run.
9182
91832008-09-20 Glenn Morris <rgm@gnu.org>
9184
9185 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9186 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9187 (Frename_file): Avoid copying to trash if a rename involves
9188 a delete. (Bug#964).
9189
91902008-09-20 Eli Zaretskii <eliz@gnu.org>
9191
9192 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9193 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9194 frames as well as termcap frames.
9195 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9196 get_named_tty.
9197
91982008-09-19 Eli Zaretskii <eliz@gnu.org>
9199
9200 * process.c (procfs_system_process_attributes): Fix cmdline in
9201 case /proc/PID/cmdline is empty.
9202
9203 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9204 x_display_pixel_height.
9205
92062008-09-19 Juanma Barranquero <lekktu@gmail.com>
9207
9208 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9209
9210 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9211 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9212
92132008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9214
9215 * dispextern.h (struct it): Move line_wrap away from the middle of
9216 bitfields. Move voffset in struct iterator_stack_entry after the
9217 bitfields. Move tab_width near after another short.
9218
92192008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9220
9221 * frame.h (struct frame): Move alpha from the middle of bitfields.
9222
9223 * window.h (struct window): Move frozen_window_start_p after the
9224 rest of the bitfields to reduce padding.
9225
92262008-09-18 Chong Yidong <cyd@stupidchicken.com>
9227
9228 * xterm.h (x_display_info): Remove `height' and `width' members.
9229
9230 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9231
9232 * w32term.h (w32_display_info): Remove `height', `width',
9233 `height_in', and `width_in' members.
9234
b8ff72fa
SM
9235 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9236 New functions.
aac0c6e3
MR
9237 (x_calc_absolute_position): Use them.
9238 (x_term_init): Omit removed `height' and `width' members.
9239
b8ff72fa
SM
9240 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9241 New functions.
aac0c6e3
MR
9242 (w32_read_socket, x_calc_absolute_position): Use them.
9243 (w32_initialize_display_info, w32_term_init): Omit removed members
9244 of w32_display_info.
9245
b8ff72fa
SM
9246 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9247 New functions.
9248 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9249
b8ff72fa
SM
9250 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9251 New functions.
aac0c6e3
MR
9252 (x_calc_absolute_position): Use them.
9253 (x_term_init): Omit removed `height' and `width' members.
9254
9255 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9256 (compute_tip_xy):
9257 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9258 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9259 x_display_pixel_width.
9260
92612008-09-18 Kenichi Handa <handa@m17n.org>
9262
9263 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9264 (composition_compute_stop_pos): Fix handling of static composition.
9265 (Fcomposition_get_gstring): Check FROM and TO at first.
9266
92672008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9268
46e722a9 9269 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9270 mixup (YAILOM).
9271
92722008-09-17 Chong Yidong <cyd@stupidchicken.com>
9273
9274 * indent.c (Fvertical_motion): Use position reported by iterator
9275 instead of PT for determining screen motion (bug#943).
9276
92772008-09-17 Romain Francoise <romain@orebokech.com>
9278
9279 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9280
92812008-09-17 Kenichi Handa <handa@m17n.org>
9282
9283 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9284
9285 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9286 if necessary.
9287
92882008-09-16 Kenichi Handa <handa@m17n.org>
9289
9290 * coding.c (make_conversion_work_buffer): Avoid calling
9291 Fget_buffer_create if it is not necessary.
9292
92932008-09-15 Martin Rudalics <rudalics@gmx.at>
9294
9295 * window.c (Fselect_window): Don't update window_select_count and
9296 use_time when norecord is not nil.
9297
92982008-09-14 Kenichi Handa <handa@m17n.org>
9299
9300 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9301 specpdl_ptr.
9302
93032008-09-12 Kenichi Handa <handa@m17n.org>
9304
9305 * indent.c (scan_for_column): Don't handle automatic composition
9306 if the current buffer is not associated with a window.
9307
9308 * composite.c (composition_reseat_it): If the current buffer is
9309 not associated with a window, ignore the automatic composition.
9310 (find_automatic_composition): Likewise.
9311
93122008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9313
9314 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9315 (Fgpm_mouse_stop): Use it.
9316 * termhooks.h (close_gpm): Declare.
9317 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9318 connection if Gpm_GetEvent fails.
9319
9320 * window.c (set_window_buffer): Always preserve current-buffer.
9321
93222008-09-12 Glenn Morris <rgm@gnu.org>
9323
9324 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9325
93262008-09-11 Glenn Morris <rgm@gnu.org>
9327
9328 * charset.c (charset-map-path): Doc fix.
9329
93302008-09-10 Kenichi Handa <handa@m17n.org>
9331
9332 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9333
9334 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9335 compose a grapheme cluster with the preceding base glyph.
9336
9337 * composite.c (composition_compute_stop_pos): Fix previous change.
9338 Reset cmp_it->id to -1 at first.
9339
93402008-09-10 Glenn Morris <rgm@gnu.org>
9341
9342 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9343
93442008-09-09 Chong Yidong <cyd@stupidchicken.com>
9345
9346 * keyboard.c (read_key_sequence): Reapply translation maps when
9347 switching keyboards.
9348
93492008-09-09 Kenichi Handa <handa@m17n.org>
9350
9351 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9352 characters.
9353
9354 * composite.c (FORWARD_CHAR): Fix calculation
9355 of (POSITION).pos_byte.
9356 (composition_compute_stop_pos): Limit the search of composition to
9357 at most 500 characters ahead. If we reach the limit or find a
9358 newline, set cmp_it->ch to -2 and return 0.
9359 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9360
93612008-09-08 Kenichi Handa <handa@m17n.org>
9362
9363 * indent.c (Fvertical_motion): Be sure to set
9364 it_overshoot_expected if it.cmp_it.id is non-negative.
9365
93662008-09-07 Andreas Schwab <schwab@suse.de>
9367
9368 * callproc.c (Fcall_process): Don't hold references to string data
9369 across garbage collection. Move initialisation of new_argv down
9370 to avoid compiler bug.
9371
93722008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9373
9374 * process.c (Fsystem_process_attributes): Doc fix.
9375
93762008-09-07 Chong Yidong <cyd@stupidchicken.com>
9377
9378 * callproc.c (Fcall_process): Canonicalize current directory name.
9379
9380 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9381 iterator advances to the next line if the current line ends in a
9382 continued tab.
9383
93842008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9385
9386 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9387 member to point to cmp_from.
9388
9389 * xdisp.c: Doc fix for references to gidx data member.
9390
93912008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9392
9393 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9394
93952008-09-07 Kenichi Handa <handa@m17n.org>
9396
9397 * composite.c (FORWARD_CHAR): Check STOP after
9398 incrementing (POSITION).pos.
9399
94002008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9401
9402 * process.c (Fsystem_process_attributes): Doc fix.
9403
94042008-09-06 Chong Yidong <cyd@stupidchicken.com>
9405
9406 * keyboard.c (Ftop_level): Doc fix.
9407
94082008-09-06 Eli Zaretskii <eliz@gnu.org>
9409
9410 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9411 minibuffer, don't let lower part of menu invade the echo area.
9412
9413 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9414 "char *q" to access menu text and advance through it. Revert the
9415 change that displayed ">" instead of ASCII character 0x10.
9416
94172008-09-05 Eli Zaretskii <eliz@gnu.org>
9418
9419 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9420 toggle boxes and radio buttons on MS-DOS as well.
9421
94222008-09-05 Kenichi Handa <handa@m17n.org>
9423
9424 * composite.c (autocmp_chars): Check lookback count.
9425 (composition_compute_stop_pos): Set cmp_it->lookback.
9426 (composition_reseat_it): Check lookback count.
9427 (struct position_record): New struct.
9428 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9429 (find_automatic_composition): New function.
9430 (composition_adjust_point): Use find_automatic_composition.
9431
9432 * dispextern.h (struct composition_it): New member lookback.
9433
94342008-09-02 Chong Yidong <cyd@stupidchicken.com>
9435
9436 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9437 if moving by a single line.
9438
94392008-09-02 Andreas Schwab <schwab@suse.de>
9440
9441 * xterm.c (x_delete_display): Fix merge error.
9442
9443 * fileio.c (Fexpand_file_name): Remove unused variables.
9444
94452008-09-02 Eli Zaretskii <eliz@gnu.org>
9446
9447 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9448 storage on all platforms, not just on DOS_NT.
9449
94502008-09-02 Jason Rumney <jasonr@gnu.org>
9451
b8ff72fa
SM
9452 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9453 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9454
94552008-09-01 Chong Yidong <cyd@stupidchicken.com>
9456
9457 * xfaces.c (Finternal_set_alternative_font_family_alist)
9458 (Finternal_set_alternative_font_registry_alist): Properly copy
9459 entire alist structure.
9460
94612008-09-01 Kenichi Handa <handa@m17n.org>
9462
d66c0241 9463 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9464 representative chars of the script is a vector.
d66c0241
JB
9465 (ftfont_list): Handle the case where the representative chars of
9466 the script is a vector.
aac0c6e3
MR
9467
9468 * character.c (syms_of_character): Docstring of
9469 script-representative-chars fixed.
9470
94712008-08-31 Eli Zaretskii <eliz@gnu.org>
9472
9473 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9474 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9475 the menu. Allocate larger buffer for `text', to account for
9476 possible ^C characters.
9477
94782008-08-31 Martin Rudalics <rudalics@gmx.at>
9479
9480 * xdisp.c (prepare_menu_bars): Don't call
9481 Vwindow_size_change_functions with arg Qt.
9482
94832008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9484
9485 * font.h (font_range):
9486 * fileio.c (report_file_error):
46e722a9
SM
9487 * composite.c (composition_update_it): Yet another int/Lisp_Object
9488 mixup (YAILOM).
aac0c6e3
MR
9489
94902008-08-30 Glenn Morris <rgm@gnu.org>
9491
9492 * data.c (Fmake_variable_frame_local): Doc fix.
9493
9494 * frame.c (Fmodify_frame_parameters): Doc fix.
9495
94962008-08-30 Eli Zaretskii <eliz@gnu.org>
9497
9498 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9499 needed by GetTokenInformation.
9500 (w32_system_process_attributes): Check return values of all system
9501 APIs.
9502
9503 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9504 only when the state changes.
9505 (IT_update_begin, IT_update_end): Add termscript trace.
9506
9507 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9508 clipboard is unavailable. Set dst to NULL if it doesn't point to
9509 malloc'ed data.
9510 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9511 passing random values to xfree.
9512
9513 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9514 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9515
95162008-08-29 Jason Rumney <jasonr@gnu.org>
9517
9518 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9519
95202008-08-29 Eli Zaretskii <eliz@gnu.org>
9521
9522 * composite.c (fill_gstring_body): Avoid compiler warnings.
9523
9524 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9525 LGLYPH_SET_CODE to avoid compiler warnings.
9526
2ae37cf0 9527 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9528
9529 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9530
9531 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9532 LGLYPH_SET_CODE.
9533
95342008-08-29 Kenichi Handa <handa@m17n.org>
9535
9536 * fileio.c (report_file_error): Don't downcase the first character
9537 of errstring if it is still unibyte.
9538
95392008-08-29 Kenichi Handa <handa@m17n.org>
9540
9541 These changes are to re-implement the automatic composition so
9542 that it doesn't use text properties.
9543
9544 * Makefile.in (ftfont.o): Depend on composite.h.
9545 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9546
9547 * character.h (Vunicode_category_table): Extern it.
9548
9549 * character.c (Vunicode_category_table): New variable.
9550 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9551
9552 * chartab.c (optimize_sub_char_table): Perform more greedy
9553 optimization.
9554
b8ff72fa
SM
9555 * composite.h (enum composition_method):
9556 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9557 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9558 (Vcomposition_function_table): Extern it.
9559 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9560 (composition_gstring_put_cache, composition_gstring_from_id)
9561 (composition_gstring_p, composition_gstring_width)
9562 (composition_compute_stop_pos, composition_reseat_it)
9563 (composition_update_it, composition_adjust_point): Extern them.
9564 (Fcomposition_get_gstring): EXFUN it.
9565
d66c0241 9566 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9567 (Vcomposition_function_table)
9568 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9569 (gstring_hash_table, gstring_work, gstring_work_headers):
9570 New variables.
aac0c6e3
MR
9571 (gstring_lookup_cache, composition_gstring_put_cache)
9572 (composition_gstring_from_id, composition_gstring_p)
9573 (composition_gstring_width, fill_gstring_header)
9574 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9575 (composition_reseat_it, composition_update_it)
b8ff72fa 9576 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9577 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9578 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9579 Defsubr composition_get_gstring.
aac0c6e3
MR
9580
9581 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9582 cmp_id.
9583 (struct glyph_string): Delete the member gidx. New members
9584 cmp_id, cmp_from, and cmp_to.
9585 (enum it_method): Delete GET_FROM_COMPOSITION.
9586 (struct composition_it): New struct.
9587 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9588 Delete c, len, cmp_id, cmp_len in u.comp.
9589
9590 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9591 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9592 (enum lglyph_indices): Likewise.
b8ff72fa 9593 (font_range): Adjust extern.
aac0c6e3
MR
9594 (font_fill_lglyph_metrics): Extern it.
9595
9596 * font.c (QCf): New variable.
9597 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9598 (font_prepare_composition): Delete this function.
9599 (font_range): Type and arguments changed.
9600 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9601 (font_fill_lglyph_metrics): New function.
b8ff72fa 9602 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9603 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9604 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9605 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9606
9607 * fontset.h (font_for_char): Extern it.
9608
9609 * fontset.c (font_for_char): New function.
9610
9611 * ftfont.c: Include composite.h.
9612 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9613 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9614
9615 * indent.c: Include composite.h and dispextern.h.
9616 (check_composition): Delete this function.
9617 (scan_for_column): Handle composition by
9618 composition_compute_stop_pos, composition_reseat_it, and
9619 composition_update_it.
9620 (compute_motion): Likewise.
9621 (Fvertical_motion): Fix checking of composition.
9622
9623 * keyboard.c (adjust_point_for_property): Check composition by
9624 composition_adjust_point.
9625
b8ff72fa 9626 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9627 struct glyph_string.
9628
b8ff72fa
SM
9629 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9630 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9631 struct glyph.
9632 (produce_composite_glyph): Likewise.
9633
b8ff72fa
SM
9634 * w32term.c (x_draw_composite_glyph_string_foreground):
9635 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9636 (x_draw_glyph_string): Likewise.
9637
9638 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9639 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9640
9641 * xdisp.c: Include font.h.
9642 (it_props): Delete the entry for Qauto_composed.
9643 (init_iterator): Initialize it->cmp_it.id to -1.
9644 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9645 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9646 (handle_auto_composed_prop): Delete it.
9647 (handle_composition_prop): Handle only static composition.
9648 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9649 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9650 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9651 (pop_it): Likewise.
9652 (get_next_element): Delete next_element_from_composition.
9653 (CHAR_COMPOSED_P): New macro.
9654 (get_next_display_element): For automatic composition, get a face
9655 from the font in the glyph-string.
9656 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9657 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9658 (next_element_from_string): Check if the character at the current
9659 position is composed by CHAR_COMPOSED_P.
9660 (next_element_from_buffer): Likewise.
d66c0241
JB
9661 (next_element_from_composition): Adjust for the change of struct it.
9662 Update it->cmp_it.
b8ff72fa
SM
9663 (dump_glyph): Adjust for the change of struct glyph.
9664 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9665 it and struct glyph. Don't handle automatic composition here.
9666 (fill_gstring_glyph_string): New function.
9667 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9668 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9669 (BUILD_GSTRING_GLYPH_STRING): New macro.
9670 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9671 automatic composition.
b8ff72fa 9672 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9673 struct glyph.
b8ff72fa 9674 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9675
b8ff72fa 9676 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9677 the change of struct glyph_string.
9678 (x_draw_glyph_string): Likewise.
9679
96802008-08-29 Glenn Morris <rgm@gnu.org>
9681
9682 * buffer.c (word-wrap): Doc fix.
9683 * xdisp.c (truncate-partial-width-windows): Doc fix.
9684 Increase default to 50.
9685
96862008-08-29 Chong Yidong <cyd@stupidchicken.com>
9687
9688 * xdisp.c (update_tool_bar_unwind): New function.
9689 (update_tool_bar): Temporarily set selected frame before building
9690 tool-bar items.
9691
96922008-08-28 Michael Albinus <michael.albinus@gmx.de>
9693
9694 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9695 snprintf, respectively.
9696 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9697
96982008-08-28 Chong Yidong <cyd@stupidchicken.com>
9699
9700 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9701 LDFLAGS to GNUstep CC invocation.
9702
97032008-08-27 Chong Yidong <cyd@stupidchicken.com>
9704
9705 * indent.c (Fvertical_motion): Revert last change. Handle the
9706 general case where we are moving forward, and PT spans multiple
9707 screen lines.
9708
9709 * eval.c (find_handler_clause): Temporarily increase
9710 max-lisp-eval-depth while printing the backtrace buffer, to
9711 guarantee that help-mode code can run.
9712
97132008-08-27 Eli Zaretskii <eliz@gnu.org>
9714
9715 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9716 colors under -rv.
9717 (IT_set_frame_parameters): Don't swap foreground and background
9718 colors if `(reverse . t)' is present in the frame properties.
9719 (internal_terminal_init): Call init_frame_faces only for the
9720 initial frame.
9721
97222008-08-27 Andreas Schwab <schwab@suse.de>
9723
9724 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9725
97262008-08-27 Andreas Schwab <schwab@suse.de>
9727
9728 * search.c (search_buffer): Set char_base to zero only at the end.
9729
97302008-08-27 Kenichi Handa <handa@m17n.org>
9731
b8ff72fa 9732 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9733
97342008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9735
9736 * xterm.c (x_term_init): Temporarily hide the partially
9737 initialized terminal while calling vendor-specific-keysyms.
9738
97392008-08-26 Eli Zaretskii <eliz@gnu.org>
9740
9741 * msdos.c (internal_terminal_init): Most initializations done only
9742 once, especially initial_screen_colors[] and termscript open.
9743
97442008-08-26 Chong Yidong <cyd@stupidchicken.com>
9745
9746 * eval.c (Fcondition_case): Doc fix.
9747
9748 * widgetprv.h (EmacsFramePart): Change font member to the new font
9749 struct.
9750
9751 * widget.c: Include character.h and font.h for XSETFONT.
9752 (setup_frame_gcs): Compute X font id from font struct, just once.
9753
97542008-08-26 Eli Zaretskii <eliz@gnu.org>
9755
9756 * term.c (get_named_tty): Fix last change.
9757
97582008-08-26 Chong Yidong <cyd@stupidchicken.com>
9759
9760 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9761 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9762
97632008-08-25 Eli Zaretskii <eliz@gnu.org>
9764
9765 * frame.c (do_switch_frame): Mark previously displayed frame as
9766 obscured for FRAME_MSDOS_P frames as well.
9767
97682008-08-24 Eli Zaretskii <eliz@gnu.org>
9769
9770 * frame.c (make_terminal_frame): Initialize f->terminal,
9771 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9772 Set the top frame to newly created frame.
9773 (Fmake_terminal_frame): Reuse the_only_display_info.
9774
9775 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9776 estimating available memory.
9777
b97439ce 97782008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9779
9780 * nsterm.m (ns_draw_window_cursor): Don't call
9781 NSDisableScreenUpdates and NSEnableScreenUpdates on
9782 non-NS_IMPL_COCOA systems.
9783
97842008-08-23 Andreas Schwab <schwab@suse.de>
9785
9786 * process.c (procfs_system_process_attributes): Fix use of
9787 uninitialized variables.
9788
97892008-08-23 Eli Zaretskii <eliz@gnu.org>
9790
9791 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9792
9793 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9794 calling tty-set-up-initial-frame-faces.
9795
b8ff72fa
SM
9796 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9797 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9798
9799 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9800 addition to output_termcap.
9801
9802 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9803
9804 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9805 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9806 highlight.
9807
9808 * process.c [!subprocesses]: Define QCname.
9809 (syms_of_process): Intern and staticpro it.
9810
9811 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9812 Adjust for changes in encoding/decoding routines.
9813 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9814 encode_coding and decode_coding.
9815
b8ff72fa 9816 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9817
9818 * dosfns.c: Include frame.h before termhooks.h.
9819 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9820 variable termscript.
9821
9822 * s/msdos.h (USER_FULL_NAME): Define.
9823 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9824
9825 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9826 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9827 pw->pw_gecos.
9828
9829 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9830 SELECTED_FRAME as additional (1st) argument.
9831 (tty_read_avail_input): Handle output_msdos_raw in
9832 addition to output_termcap.
9833
9834 * msdos.c: Include frame.h before termhooks.h.
9835 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9836 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9837 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9838 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9839 (IT_set_terminal_modes, IT_reset_terminal_modes)
9840 (IT_set_frame_parameters): Use tty->termscript instead of a global
9841 variable termscript.
9842 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9843 global variable terminal_coding. Don't refer to
9844 Vnonascii_translation_table.
9845 (internal_terminal_init): Set Vwindow_system in current_kboard.
9846 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9847 Announce date and time of session start, if termscript is open.
9848 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9849 term.c:init_tty). Open termscript only of not already open.
9850 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9851 here instead of dos_ttraw. Don't initialize display if this is an
9852 initial tty. Don't set FRAME_FONT.
9853 (Vwindow_system_version): Bump to 23.
9854 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9855 is available, set up mouse_position_hook.
9856 (dos_ttraw, IT_set_terminal_modes): If called with initial
9857 terminal, do nothing.
9858 (IT_set_frame_parameters): Handle the Qtty_type frame
9859 parameter by calling internal_terminal_init.
9860 (dos_set_window_size, show_mouse_face)
9861 (clear_mouse_face, IT_note_mode_line_highlight)
9862 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9863 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9864 (initialize_msdos_display): New function.
9865 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9866 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9867 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9868 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9869 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9870 (request_sigio, unrequest_sigio): Don't define, now defined on
9871 sysdep.c.
9872 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9873
9874 * term.c [MSDOS]: Include msdos.h.
9875 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9876 conditional to DOS_NT. Allow only one call to this function in a
9877 session. Don't allocate a new struct tty_display_info; instead,
9878 reuse the_only_display_info. Call get_tty_size to get screen
9879 dimensions. Call init_baud_rate to set bad_rate.
9880 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9881 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9882 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9883 (get_tty_terminal, get_named_tty, Ftty_type)
9884 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9885 output_termcap.
b8ff72fa
SM
9886 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9887 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9888 only when subprocesses are supported.
aac0c6e3
MR
9889
9890 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9891 f->output_data.x.
9892 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9893 terminal devices.
9894
5582fbc7 9895 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9896 x_output.
9897 (FRAME_FONT): Use output_data.tty.
9898 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9899 (struct x_display_info): Rename from display_info. Update all users in
9900 msdos.c.
aac0c6e3 9901 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9902 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9903 (dos_ttraw): Update prototype.
9904
9905 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9906 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9907
99082008-08-23 Jason Rumney <jasonr@gnu.org>
9909
9910 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9911 (fn_TIFFSetDirectory): New library function used.
9912 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9913 (tiff_load): Use :index to select among multiple images. Set count
9914 property when multiple images exist.
9915 (gif_format): Use :index, not :image.
9916
99172008-08-23 Chong Yidong <cyd@stupidchicken.com>
9918
9919 * xdisp.c (try_scrolling): Check INT_MAX instead of
9920 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9921 to obtain INT_MAX.
9922
99232008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9924
9925 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9926
99272008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9928
9929 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9930 GNUstep library location.
9931
99322008-08-21 Chong Yidong <cyd@stupidchicken.com>
9933
9934 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9935 before using it.
9936
9937 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9938
99392008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9940
9941 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9942 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9943 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9944 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9945 (EmacsApp-cursor_blink_handler): Remove declaration.
9946 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9947 match 01 Feb 2008 changes in xterm.c.
9948 (ns_read_socket): Add cast to avoid warning.
9949 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9950 GNUstep.
9951
99522008-08-20 Chong Yidong <cyd@stupidchicken.com>
9953
9954 * xselect.c (x_get_foreign_selection): Return nil if desired
9955 selection could not be obtained, instead of signalling an error.
9956
99572008-08-20 David Reitter <david.reitter@gmail.com>
9958
9959 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9960 * nsterm.m: Remove ns-specific code for cursor blinking.
9961 (ns_draw_window_cursor): Clear cursor properly rather than
9962 redrawing the area. Respect width of bar cursors.
9963 These changes enable the use of generic blink-cursor-mode and
9964 generic cursor types in NS and support smooth cursor movements (do
9965 not blink off after command).
9966 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9967 Nextstep, too.
9968
99692008-08-19 Kenichi Handa <handa@m17n.org>
9970
9971 * font.c (Vfont_log_deferred): New variable.
9972 (font_add_log): Check Vfont_log_deferred.
9973 (font_deferred_log): New function.
9974
9975 * font.h (font_deferred_log): Extern it.
9976
9977 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9978 for sorting.
9979 (face_for_char): Use deferred log.
9980
99812008-08-18 Kenichi Handa <handa@m17n.org>
9982
9983 * fontset.c (face_for_char): Add font log.
9984
9985 * font.c (font_add_log): Add the font properties :script, :lang,
9986 and :otf in the log.
9987
99882008-08-17 Chong Yidong <cyd@stupidchicken.com>
9989
9990 * xdisp.c: Remove dead code.
9991 (handle_invisible_prop, next_overlay_string): Defer call to
9992 setup_for_ellipsis.
9993 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9994
99952008-08-15 Chong Yidong <cyd@stupidchicken.com>
9996
9997 * xfaces.c (lookup_derived_face): Properly handle possible zero
9998 return value of get_lface_attributes.
9999 (merge_faces): Don't tell lookup_derived_face to signal an error
10000 if face is not found.
10001
10002 * dired.c (Fdirectory_files): Doc fix.
10003
10004 * process.c (make_process): Initialize kill_without_query struct
10005 member.
10006
100072008-08-15 Eli Zaretskii <eliz@gnu.org>
10008
10009 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10010 Alternative calculation of totphys for Visual Studio 6.
10011
10012 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10013
10014 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10015 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10016 All users changed.
10017 (stat): Only root directory passed to GetDriveType. Allow RAM
10018 disk as well as local fixed disk when w32-get-true-file-attributes
10019 is set to `local'.
10020 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10021 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10022 (w32_cached_id, w32_add_to_cache): New functions.
10023 (get_name_and_id): Look account names in the cache before calling
10024 lookup_account_sid.
10025 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10026 New initialization flags.
10027 (globals_of_w32): Initialize them to zero.
10028 (w32_system_process_attributes): Use w32_cached_id and
10029 w32_add_to_cache.
10030
100312008-08-14 Lawrence Mitchell <wence@gmx.li>
10032
10033 * lread.c (Fread_char, Fread_char_exclusive): If no character
10034 event is read before timeout is reached, return nil, rather than
10035 converting to a number.
10036
100372008-08-14 Chong Yidong <cyd@stupidchicken.com>
10038
10039 * fns.c (use_dialog_box): Doc fix.
10040
10041 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10042 on OS X.
10043
100442008-08-13 Chong Yidong <cyd@stupidchicken.com>
10045
10046 * frame.c (Qns_parse_geometry): New var.
10047 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10048
100492008-08-11 Chong Yidong <cyd@stupidchicken.com>
10050
10051 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10052 space character in calculating tabs.
10053
100542008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10055
10056 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10057
100582008-08-10 Glenn Morris <rgm@gnu.org>
10059
10060 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10061 silence gcc "limited range of data type" warnings in some
10062 make_fixnum_or_float calls.
10063
100642008-08-09 Eli Zaretskii <eliz@gnu.org>
10065
10066 * w32.c (w32_system_process_attributes): If the process does not
10067 exist, return nil.
10068
10069 * w32.c: Include thelp32.h, psapi.h and coding.h.
10070 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10071 declarations.
10072 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10073 (Process32Next_Proc): New typedefs.
10074 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10075 (g_b_init_process32_next, g_b_init_open_thread_token)
10076 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10077 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10078 (g_b_init_get_process_working_set_size)
10079 (g_b_init_global_memory_status_ex): New static variables.
10080 (globals_of_w32): Initialize them.
10081 (create_toolhelp32_snapshot, process32_first, process32_next)
10082 (open_thread_token, impersonate_self, revert_to_self)
10083 (get_process_memory_info, get_process_working_set_size)
10084 (global_memory_status, global_memory_status_ex): New wrapper
10085 functions.
10086 (w32_list_system_processes, w32_system_process_attributes)
10087 (enable_privilege, restore_privilege, ltime, process_times):
10088 New functions.
10089 (convert_time_raw): New function.
10090 (convert_time): Remove conversion of FILETIME into time in 100
10091 nsec units, call convert_time_raw instead.
10092
10093 * process.h (w32_list_system_processes, w32_system_process_attributes):
10094 Add prototypes.
10095 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10096 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10097 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10098 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10099
10100 * process.c (Fsystem_process_attributes): Doc fix.
10101
101022008-08-08 Chong Yidong <cyd@stupidchicken.com>
10103
10104 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10105 a continued multi-char glyph; if so, advance to the actual glyph.
10106
101072008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10108
10109 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10110
10111 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10112 (.m.o): Use it.
10113 * config.in: Regenerate.
10114
101152008-08-07 Chong Yidong <cyd@stupidchicken.com>
10116
10117 * xdisp.c (redisplay_window): Revert last change.
10118 (try_window): Check bottom scroll margin too.
10119
101202008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10121
10122 * config.in: Regenerate.
10123
10124 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10125 -list-load-path-shadows'.
10126 (nsgui.h): Reduce number of things depending on it.
10127
101282008-08-06 Chong Yidong <cyd@stupidchicken.com>
10129
10130 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10131 instead of window-end which does the wrong thing at eob.
10132 (try_cursor_movement): Minor optimization.
10133 (redisplay_window): If scroll margin is defined, don't assume
10134 window doesn't need scrolling.
10135
101362008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10137
10138 * config.in: Regenerate.
10139
10140 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10141 (mostlyclean): Don't delete *.d under NS.
10142
10143 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10144
101452008-08-06 Kenichi Handa <handa@m17n.org>
10146
10147 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10148
101492008-08-06 Andreas Schwab <schwab@suse.de>
10150
10151 * config.in: Regenerate.
10152
101532008-08-05 Chong Yidong <cyd@stupidchicken.com>
10154
10155 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10156 forcing a window start.
10157
10158 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10159 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10160
101612008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10162
10163 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10164 argument.
10165
101662008-08-05 Juanma Barranquero <lekktu@gmail.com>
10167
10168 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10169 <scroll-down-aggressively, before-change-functions>:
10170 <after-change-functions>: Reflow docstrings.
10171
101722008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10173 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10174
10175 Dock menu customization, based on a patch by Ken Raeburn, plus some
10176 other fixes.
10177 * nsmenu.m (dockMenu): New variable.
10178 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10179
10180 * nsterm.h (dockMenu): Declare.
10181
10182 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10183 (ns_term_init): Initialize dockMenu.
10184 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10185 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10186 left.
10187
10188 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10189
101902008-08-04 Chong Yidong <cyd@stupidchicken.com>
10191
10192 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10193
10194 * config.in: Regenerate.
10195
101962008-08-04 Seiji Zenitani <zenitani@mac.com>
10197
10198 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10199
102002008-08-04 Chong Yidong <cyd@stupidchicken.com>
10201
10202 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10203
102042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10205
10206 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10207
10208 * keyboard.h: Comment an #endif.
10209
10210 * lisp.h (have_menus_p): Adjust comment.
10211
10212 * menu.c (find_and_return_menu_selection): Fix comparison with
10213 client_data.
10214
10215 * nsmenu.m (popup_activated_flag): New variable.
10216 (popup_activated): New function.
10217 (menu-or-popup-active-p): New exported lisp definition.
10218 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10219 when popup done.
10220 (ns_popup_dialog): Set popup_activated_flag.
10221
10222 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10223 version for GNUstep (handled by conditional typedef in nsterm.m).
10224 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10225 in rgb.txt).
10226
10227 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10228
10229 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10230
10231 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10232
10233 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10234 shortcircuit if popup_activated like GTK and X toolkit.
10235
10236 * m/inter386.h: Change DARWIN to DARWIN_OS.
10237
10238 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10239 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10240 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10241 comment on NO_SOCK_SIGIO.
10242
102432008-08-03 Chong Yidong <cyd@stupidchicken.com>
10244
10245 * nsterm.m (windowDidResize): Remove stopModal call.
10246
102472008-08-03 Andreas Schwab <schwab@suse.de>
10248
10249 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10250 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10251
102522008-08-02 Chong Yidong <cyd@stupidchicken.com>
10253
10254 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10255 Don't use uninitialized pointer variable when using getrlimit.
10256
102572008-08-02 Jason Rumney <jasonr@gnu.org>
10258
10259 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10260
102612008-08-02 Eli Zaretskii <eliz@gnu.org>
10262
10263 * alloc.c (NSTATICS): Bump to 0x640.
10264
10265 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10266
10267 * lisp.h: Add prototype for directory_files_internal.
10268
10269 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10270 New functions.
10271 (syms_of_process): Defsubr them. Add initializations for various
10272 Q* symbols used in procfs_system_process_attributes.
10273 (procfs_list_system_processes, procfs_system_process_attributes)
10274 [HAVE_PROCFS]: New functions.
10275 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10276 (procfs_get_total_memory): New functions.
10277
102782008-08-01 Juanma Barranquero <lekktu@gmail.com>
10279
10280 * xfaces.c (Fx_load_color_file): Fix previous change;
10281 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10282
102832008-08-01 Michael Albinus <michael.albinus@gmx.de>
10284
10285 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10286
102872008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10288
10289 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10290
102912008-08-01 Chong Yidong <cyd@stupidchicken.com>
10292
10293 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10294
10295 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10296 define NSApplicationDelegateReplySuccess.
10297 (EmacsView -converstationIdentifier): Use long instead of
10298 NSInteger for GNUstep, since it doesn't have NSInteger.
10299
10300 * xmenu.c: Revert last change.
10301
10302 * keyboard.h: Fix last change.
10303
103042008-08-01 Juanma Barranquero <lekktu@gmail.com>
10305
10306 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10307 on Windows.
10308
103092008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10310
10311 Warning clearing and clean-up in NS port.
10312 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10313 Add prototypes.
10314 * nsgui.h (FACE_DEFAULT): Remove, unused.
10315 (XGCValues): Change colors to unsigned long.
10316 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10317 nsterm.m.
10318 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10319 (ns_list_fonts): Remove, unused.
10320 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10321 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10322 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10323 (nsfont_draw): Compare face colors to 0, not nil.
10324 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10325 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10326 (-addSubmenuWithTitle:): Use NSMenuItem class.
10327 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10328 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10329 (ns_clip_to_row): Make gc arg a BOOL.
10330 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10331 ns_clip_to_row() call.
10332 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10333 used). Cast FRAME_FONT assignments.
10334 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10335 (ns_string_to_lispmod): Change arg to const char.
10336 (ns_term_init): Use NSMenuItem class.
10337 (EmacsApp -openFile:): Move to different section of file.
10338 (EmacsApp -application:openFiles:): Don't return a value, call
10339 -replyToOpenOrPrint:.
10340 (EmacsView -keyDown:): Fix up cast.
10341 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10342 (EmacsView -menuDown:): Cast tag in call to
10343 find_and_call_menu_selection().
10344 (ns_list_fonts): Remove, unused.
10345 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10346 (ns_fontname_to_xlfd): Make static.
10347 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10348 Remove prototypes (now in keyboard.h).
10349 (next_menubar_widget_id): Remove, unused.
10350 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10351 Remove prototypes (now in keyboard.h).
10352 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10353
103542008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10355
10356 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10357 (floatfns.o): Depend on syssignal.h.
10358 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10359
10360 * systty.h: Fix previous change that removed BSD_TERMIOS.
10361 Add comments to #ifdefs.
10362
103632008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10364
10365 * w32fns.c (w32-load-color-file): Remove.
10366 (x-open-connection): Use renamed Fx_load_color_file.
10367 * xfaces.c (x-load-color-file): Add.
10368 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10369 Emacs.clr.
10370 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10371
103722008-07-31 Michael Albinus <michael.albinus@gmx.de>
10373
10374 * dbusbind.c (Fdbus_call_method_asynchronously)
10375 (Fdbus_method_error_internal): New defuns.
10376 (xd_read_message): Handle also reply messages.
10377 (Vdbus_registered_functions_table): Extend docstring.
10378
103792008-07-31 Juanma Barranquero <lekktu@gmail.com>
10380
10381 * keyboard.c (gobble_input): Fix previous change.
10382
103832008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10384
10385 * bitmaps/README:
10386 * xfns.c:
10387 * termcap.c:
10388 * term.c:
10389 * syswait.h:
10390 * systty.h:
10391 * systime.h:
10392 * syssignal.h:
10393 * sysdep.c:
10394 * process.h:
10395 * process.c:
10396 * print.c:
10397 * ndir.h:
10398 * lread.c:
10399 * keyboard.c:
10400 * getpagesize.h:
10401 * floatfns.c:
10402 * fileio.c:
10403 * emacs.c:
10404 * doc.c:
10405 * dispnew.c:
10406 * dired.c:
10407 * data.c:
10408 * callproc.c:
10409 * buffer.c:
10410 * README:
10411 * Makefile.in:
10412 * s/template.h:
10413 * s/msdos.h:
10414 * m/vax.h: Remove VMS support.
10415 * s/vms.h:
10416 * vlimit.h:
10417 * uaf.h:
10418 * temacs.opt:
10419 * param.h:
10420 * ioctl.h: Remove file.
10421
104222008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10423
10424 * s/ms-w32.h (MULTI_KBOARD): Remove.
10425 * xterm.c:
10426 * xselect.c:
10427 * xfns.c:
10428 * window.c:
10429 * w32term.c:
10430 * w32fns.c:
10431 * terminal.c:
10432 * termhooks.h:
10433 * term.c:
10434 * sysdep.c:
10435 * keyboard.h:
10436 * keyboard.c:
10437 * frame.h:
10438 * frame.c:
10439 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10440 * config.in: Regenerate.
10441
104422008-07-30 Jason Rumney <jasonr@gnu.org>
10443
10444 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10445
10446 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10447 (w32font_open_internal): Get unicode version of textmetrics.
10448 Don't enable or disable glyph indices here.
10449 (w32font_open): Disable use of glyph indices.
10450
10451 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10452
104532008-07-30 Chong Yidong <cyd@stupidchicken.com>
10454
10455 * minibuf.c (Vread_buffer_function): Doc fix.
10456
104572008-07-30 John Paul Wallington <jpw@pobox.com>
10458
10459 * minibuf.c (read_buffer_completion_ignore_case): New var.
10460 (Fread_buffer): Use it.
10461
104622008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10463
10464 * systty.h (sensemode): Remove empty #if. Remove reference to
10465 BSD_TERMIOS, unused.
10466
10467 * sysdep.c: Remove reference to DGUX.
10468 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10469
10470 * config.in: Regenerate.
10471
104722008-07-30 Jason Rumney <jasonr@gnu.org>
10473
10474 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10475
104762008-07-29 Jason Rumney <jasonr@gnu.org>
10477
10478 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10479 is populated.
10480 (uniscribe_encode_char): Always use uniscribe.
10481 Avoid using context if cache is populated.
10482
104832008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10484
10485 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10486 open menu.
10487
10488 * gtkutil.c (menu_nav_ended): Remove.
10489 (create_menus): Remove signal connect for menu_nav_ended.
10490
104912008-07-28 Chong Yidong <cyd@stupidchicken.com>
10492
10493 * xdisp.c (redisplay_window): Check return value of
10494 compute_window_start_on_continuation_line before forcing a window
10495 start.
10496
104972008-07-28 Jason Rumney <jasonr@gnu.org>
10498
10499 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10500
10501 * w32term.c (w32_enable_unicode_output, cleartype_active):
10502 Remove obsolete display options.
10503 (x_draw_glyph_string_background): Don't use old cleartype_active
10504 workaround.
10505 (w32_initialize): Remove cleartype_active initialization.
10506 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10507
105082008-07-28 Andreas Schwab <schwab@suse.de>
10509
10510 * lisp.h (init_weak_hash_tables, syms_of_font)
10511 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10512 (remove_hash_entry): Don't declare.
10513 * eval.c (maybe_call_debugger): Make static and move before use.
10514 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10515 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10516 * xterm.h (x_set_frame_alpha): Declare.
10517
105182008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10519
10520 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10521 (create_menus): Connect selection-done to menu_nav_ended.
10522
105232008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10524
10525 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10526 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10527 parameter with read of 'alpha' one.
10528 (Qns_frame_parameter): Remove.
5582fbc7 10529 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10530 (next-selection-coding-system, Vselection_coding_system)
10531 (Vnext_selection_coding_system): Drop.
10532
105332008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10534
10535 * nsfns.m (do-applescript, do_applescript): Rename to
10536 ns-do-applescript, ns_do_applescript, and move within file.
10537
105382008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10539
10540 Remove support for Mac Carbon.
10541 * mactoolbox.c:
10542 * macterm.h:
10543 * macterm.c:
10544 * macselect.c:
10545 * macmenu.c:
10546 * macgui.h:
10547 * macfns.c:
10548 * mac.c: Remove file.
10549 * s/darwin.h:
10550 * m/intel386.h:
10551 * xfaces.c:
10552 * xdisp.c:
10553 * window.c:
10554 * tparam.c:
10555 * termhooks.h:
10556 * termcap.c:
10557 * term.c:
10558 * syssignal.h:
10559 * sysselect.h:
10560 * sysdep.c:
10561 * process.c:
10562 * lread.c:
10563 * lisp.h:
10564 * keyboard.c:
10565 * image.c:
10566 * fringe.c:
10567 * frame.h:
10568 * frame.c:
10569 * fontset.c:
10570 * font.h:
10571 * font.c:
10572 * fns.c:
10573 * fileio.c:
10574 * emacs.c:
10575 * dispnew.c:
10576 * dispextern.h:
10577 * config.in:
10578 * atimer.c:
2ae37cf0 10579 * Makefile.in: Remove code for Carbon.
aac0c6e3 10580
f0131492 105812008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10582
10583 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10584
105852008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10586
10587 * macterm.h (kCGBitmapByteOrder32Host): New define for
10588 non-universal SDKs.
10589
10590 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10591 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10592
10593 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10594 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10595
105962008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10597
10598 * w32inevt.c: Include dispextern.h.
10599
106002008-07-26 Andreas Schwab <schwab@suse.de>
10601
10602 * print.c (print_object): Fix off-by-one in last change.
10603
106042008-07-25 Juanma Barranquero <lekktu@gmail.com>
10605
10606 * term.c (syms_of_term): Don't initialize default_orig_pair,
10607 default_set_foreground and default_set_background on Windows.
10608
106092008-07-25 Jason Rumney <jasonr@gnu.org>
10610
10611 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10612 ScriptItemize. Clean up return value checking. Remove unused
10613 variables.
10614 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10615 shaping engine.
10616
10617 * w32font.c (w32font_has_char): Handle the case where we can't
10618 determine the script for a character.
10619
106202008-07-25 Chong Yidong <cyd@stupidchicken.com>
10621
10622 * term.c (syms_of_term): Initialize default_orig_pair,
10623 default_set_foreground, and default_set_background.
10624
10625 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10626 clash (bug#86).
10627 (getloadavg): Callers changed.
10628
10629 * image.c (svg_load_image): Fix last change.
10630 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10631 image size is valid. Use g_object_unref instead of deprecated
10632 rsvg_handle_free to free rsvg handle.
10633 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10634
106352008-07-25 Jason Rumney <jasonr@gnu.org>
10636
10637 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10638 surrogates before looking up glyph index.
10639 (w32font_text_extents): Encode as surrogates if falling back to
10640 functions that need UTF-16 wide chars.
10641
10642 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10643 BMP as surrogates before looking up glyph index.
10644
106452008-07-25 Chong Yidong <cyd@stupidchicken.com>
10646
10647 * image.c (svg_load_image): Check for failure in return value of
10648 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10649
106502008-07-25 Jason Rumney <jasonr@gnu.org>
10651
10652 * w32font.c (Fx_select_font): Reverse sense of second arg.
10653
106542008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10655
10656 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10657 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10658
10659 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10660 (PURESIZE): Use it.
10661
106622008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10663
10664 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10665 * m/alpha.h (TEXT_END):
10666 * m/ibmrs6000.h (TEXT_END):
10667 * m/macppc.h (TEXT_END):
10668 * s/darwin.h (TEXT_END):
10669 * s/msdos.h (TEXT_END): Remove, unused.
10670 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10671 * s/cygwin.h: Remove comment.
10672
10673 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10674 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10675 * m/intel386.h (DOT_GLOBAL_START):
10676 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10677 (USG): Remove, file not used on USG platforms.
10678
10679 * Makefile.in (HAVE_X11): Remove empty #else.
10680
106812008-07-24 Andreas Schwab <schwab@suse.de>
10682
10683 * fileio.c (Finsert_file_contents): Properly adjust undo list
10684 after format conversion.
10685
106862008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10687
10688 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10689 (menu_nav_ended): Remove.
10690 (create_menus): Remove signal connect for menu_nav_ended.
10691 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10692 create_menus.
10693 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10694
106952008-07-23 Jason Rumney <jasonr@gnu.org>
10696
10697 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10698 with opened font.
10699 (w32font_open): Set font type to gdi.
10700
10701 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10702
107032008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10704
10705 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10706 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10707 defines it.
10708 * unexec.c (ADDR_CORRECT): Define unconditionally.
10709
10710 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10711
10712 * unexec.c: Remove code depending on !COFF and USG, the file is
10713 not used for such systems.
10714
10715 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10716 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10717 (LD_SWITCH_SYSTEM_1): Remove, update users.
10718
10719 * s/darwin.h (DATA_END):
10720 * m/intel386.h (DATA_END):
10721 * m/ibmrs6000.h (DATA_END):
10722 * m/alpha.h (DATA_END): Remove, unused.
10723
10724 * config.in: Regenerate.
10725 * s/ms-w32.h (subprocesses): Define unconditionally.
10726 * s/template.h (subprocesses): Update comment.
10727 * s/vms.h (subprocesses):
10728 * s/usg5-4.h (subprocesses):
10729 * s/hpux10-20.h (subprocesses):
10730 * s/gnu-linux.h (subprocesses):
10731 * s/cygwin.h (subprocesses):
10732 * s/bsd-common.h (subprocesses):
10733 * s/aix4-2.h (subprocesses):
10734 * s/darwin.h (subprocesses): Do not define, defined by default now.
10735
10736 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10737 Remove all references.
10738 (temacs): Add GNUstep specific ld flags.
10739
10740 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10741 similarly to what X does.
10742
107432008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10744
10745 * nsfns.m (x-list-fonts): Remove.
10746 (syms_of_nsfns): Drop the x-list-fonts declaration.
10747 * nsterm.m: Get rid of remaining "//" comments.
10748
107492008-07-22 Chong Yidong <cyd@stupidchicken.com>
10750
10751 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10752
10753 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10754 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10755 (Fns_own_selection_internal, Fx_disown_selection_internal)
10756 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10757
10758 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10759 ... */' style of docstrings. Doc fixes.
10760
107612008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10762
10763 * terminfo.c (UP, BC, PC): Undo previous change.
10764
10765 * nsfns.m: Rename ns prefixed functions/variables to the
10766 corresponding x versions. Update references.
10767
107682008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10769
10770 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10771
107722008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10773
10774 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10775 Remove forwarding functions.
10776 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10777 non-static.
10778 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10779 non-static.
10780 (ns_frame_parm_handlers): Use the new names.
10781 (syms_of_nsfns): Move to the end of file.
10782
10783 * nsterm.m (syms_of_nsterm): Move to the end of file.
10784
10785 * dispnew.c (init_display): Remove code for X10.
10786
107872008-07-22 Jason Rumney <jasonr@gnu.org>
10788
10789 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10790 bare drive.
10791
107922008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10793
10794 * nsterm.m (syms_of_nsterm): Remove debugging println.
10795
107962008-07-22 David Reitter <david.reitter@gmail.com>
10797
10798 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10799 Carbon implementation of the same functionality: execute arbitrary
10800 AppleScript code.
10801
108022008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10803
10804 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10805 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10806 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10807 (Fx_display_mm_height, Fx_display_mm_width)
10808 (Fx_display_backing_store, Fx_display_visual_class)
10809 (Fx_display_save_under, Fx_open_connection)
10810 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10811 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10812 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10813 (Fx_display_pixel_width, Fx_display_pixel_height)
10814 (Fx_display_usable_bounds, Fx_display_planes)
10815 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10816 ... */' style of docstrings.
10817
108182008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10819
10820 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10821 on this platform.
10822 (mips):
10823 * m/iris4d.h (mips): Do not define.
10824 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10825
10826 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10827
10828 * image.c:
10829 * nsfns.m:
10830 * nsselect.m:
10831 * nsterm.h:
10832 * nsterm.m: Rename ns prefixed functions/variables to the
10833 corresponding x versions. Update references.
10834
10835 * m/ibms390x.h (NO_REMAP): Do not undefine.
10836
10837 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10838
108392008-07-21 Chong Yidong <cyd@stupidchicken.com>
10840
10841 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10842 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10843 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10844 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10845 (Fns_display_mm_height, Fns_display_mm_width)
10846 (Fns_display_backing_store, Fns_display_visual_class)
10847 (Fns_display_save_under, Fns_open_connection)
10848 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10849 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10850 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10851 (Fns_display_pixel_width, Fns_display_pixel_height)
10852 (Fns_display_usable_bounds, Fx_display_planes)
10853 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10854
108552008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10856
10857 * print.c (print_object): Check print_depth before searching for
10858 circularities.
10859
108602008-07-21 Michael Albinus <michael.albinus@gmx.de>
10861
10862 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10863 only sprintf.
10864
108652008-07-21 Kenichi Handa <handa@m17n.org>
10866
10867 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10868
108692008-07-20 Andreas Schwab <schwab@suse.de>
10870
10871 * syntax.c (find_start_pos, find_start_value)
10872 (find_start_value_byte, find_start_begv, find_defun_start)
10873 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10874
108752008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10876
10877 * s/sol2-3.h: Insert contents of s/sol2.h.
10878 (LD_SWITCH_SYSTEM): Remove redundant definition.
10879 * s/sol2.h: Remove, unused.
10880
108812008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10882
10883 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10884
108852008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10886
10887 * Makefile.in (ns_appdir): Fix typo in find command.
10888
108892008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10890
10891 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10892
10893 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10894 added not supported anymore.
10895
10896 * s/usg5-4-2.h (LIBS_SYSTEM):
10897 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10898
10899 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10900 * s/lynxos.h (GETPGRP_NO_ARG):
10901 * s/hpux10-20.h (NO_SIOCTL_H):
10902 * s/gnu.h (GETPGRP_NO_ARG):
10903 * s/gnu-linux.h (NO_SIOCTL_H):
10904 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10905 * s/cygwin.h (GETPGRP_NO_ARG):
10906 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10907 (C_DEBUG_SWITCH): Remove duplicate definition.
10908
10909 * m/ibms390.h: Remove boilerplate comments.
10910
10911 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10912
10913 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10914 (wait_reading_process_output): Remove code for SunOS, platform not
10915 supported anymore. Use SOLARIS2 instead of sun.
10916
109172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10918
10919 * font.c (font_open_by_name): Under NS, default lface height to zero.
10920 (font_open_for_lface): Under NS, set size based on frame fontsize.
10921 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10922 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10923
109242008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10925
10926 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10927 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10928 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10929 YES/NO.
10930 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10931 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10932 * Makefile.in (clean): Clear out build destination dir.
10933
109342008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10935
10936 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10937 xterm, xselect.
10938 * lisp.h: Remove declaration of hash_remove.
10939 * nsgui.h: Remove redefinitions of hash_remove.
10940 * fns.c (hash_remove): Rename to hash_remove_from_table.
10941
109422008-07-19 Seiji Zenitani <zenitani@mac.com>
10943
10944 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10945 strdup() the family UTF8String before modifying it.
10946
109472008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10948
10949 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10950 NS_FACE_BACKGROUND with 0 instead of nil.
10951 * nsfont.m (nsfont_draw): Same.
10952
109532008-07-19 Chong Yidong <cyd@stupidchicken.com>
10954
10955 * nsfns.m (ns_set_background_color): Fix crash.
10956
109572008-07-18 Chong Yidong <cyd@stupidchicken.com>
10958
10959 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10960
109612008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10962
10963 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10964
109652008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10966
10967 * gtkutil.c: Include <config.h> instead of "config.h".
10968
10969 * lisp.h (Foverlay_buffer): Add EXFUN.
10970
10971 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10972 child process to complete child_setup. Undo 2005-09-21 change.
10973
10974 * s/darwin.h: Mention setsid after vfork.
10975
109762008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10977
10978 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10979 Depend on macgui.h.
10980
10981 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10982 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10983
10984 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10985 and f19.
10986 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10987
10988 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10989 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10990 Remove enumerators.
10991
10992 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10993 Check if FACE_FROM_ID returns NULL.
10994
109952008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10996
10997 * w32inevt.c (change_frame_size): Remove extern declaration.
10998 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10999 change_frame_size.
11000
110012008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11002
11003 * getloadavg.c: Revert last change (2008-07-15).
11004
110052008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11006
11007 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11008 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11009 from configure.
11010
110112008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11012
11013 * s/sol2.h:
11014 * s/sol2-4.h: Reorganize conditionals.
11015
11016 * ecrt0.c: Remove code depending on m68000, not used anymore.
11017
11018 * fns.c (hash_remove): Make static.
11019 * lisp.h (hash_remove): Don't prototype.
11020
11021 * m/ibmrs6000.h:
11022 * m/ibms390x.h:
11023 * m/macppc.h: Remove boilerplate comments.
11024
11025 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11026 Solaris, which does not need them.
11027
11028 * m/vax.h: Remove comments about unsupported systems.
11029
11030 * s/darwin.h: Reorganize ifdefs.
11031
110322008-07-17 Andreas Schwab <schwab@suse.de>
11033
11034 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11035
110362008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11037
11038 Use SDATA. Follow coding convention of placing operators at
11039 beginning of next line rather than end of previous line, and placing
11040 spaces around infix operators.
11041
11042 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11043 in case it was defined already.
11044 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11045 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11046 ns_default.
11047 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11048 Lisp_Objects.
11049 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11050 (ns_defined_color, ns_color_to_lisp): Declare.
11051 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11052 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11053 it's accepted even with USE_LISP_UNION_TYPE.
11054 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11055 (update_frame_tool_bar): Remove apparently obsolete tests for
11056 non-integerness of f->tool_bar_lines.
11057 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11058 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11059 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11060 (nsfont_open): Don't confuse NULL for Qnil.
11061 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11062 * menu.h (find_and_call_menu_selection):
11063 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11064 (find_and_return_menu_selection): Always return something.
11065 * frame.h: Include dispextern.h for Display_Info.
11066 (display_x_get_resource): Declare.
11067
110682008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11069
11070 * syntax.c: Remove stdio.h include accidentally introduced in
11071 Emacs.app commit.
11072 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11073 NS_IMPL_COCOA.
11074 * keyboard.c (handle_async_input, input_available_signal): Remove
11075 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11076
110772008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11078
11079 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11080 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11081 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11082 Use SDATA.
11083
11084 * keymap.c: Remove all NS-specific code.
11085 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11086 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11087 where_is_preferred_modifier, return a different value depending on how
11088 preferred is the binding.
11089 (where_is_internal): Adjust accordingly.
11090 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11091 Adjust to new preferred_sequence_p.
11092 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11093 * keyboard.c (parse_solitary_modifier): Not static any more.
11094 * keyboard.h (parse_solitary_modifier): Declare.
11095
110962008-07-16 Andreas Schwab <schwab@suse.de>
11097
11098 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11099 of easymenu.
11100
111012008-07-16 Chong Yidong <cyd@stupidchicken.com>
11102
11103 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11104 that we don't move off the line.
11105
111062008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11107
11108 * keyboard.c (Qsuper): Remove.
11109 (parse_menu_item): Don't call where_is_internal specially for NS.
11110
111112008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11112
11113 * s/gnu-linux.h: Remove boilerplate comments.
11114
11115 * m/alpha.h (__ELF__): Consolidate conditions.
11116
11117 * m/m68k.h (linux): Use GNU_LINUX instead.
11118 Remove boilerplate comments.
11119
11120 * m/intel386.h: Undo refactoring from previous change.
11121 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11122 too, remove dead code.
11123 (linux): Use GNU_LINUX instead.
11124
111252008-07-16 Jason Rumney <jasonr@gnu.org>
11126
11127 * w32gui.h: Repeat 26 June changes lost by last change.
11128
111292008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11130
11131 * systty.h: Remove code for Aix on 386, unsupported platform.
11132
11133 * s/ms-w32.h: Remove boilerplate comments.
11134 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11135
11136 * s/gnu-linux.h (TERM): Remove support.
11137 (HAVE_SYSVIPC): Remove, unused.
11138 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11139 for this system.
11140
11141 * process.c: Remove support for IRIS, unused.
11142 Remove support for TERM, not relevant anymore.
11143
11144 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11145 used with the definition.
11146
11147 * s/aix4-2.h (static): Do not undef.
11148
11149 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11150 only used on Aix.
11151 (HAVE_SYSVIPC): Remove, unused.
11152
11153 * m/hp800.h (CANNOT_DUMP): Do not undef.
11154
11155 * m/alpha.h: Fix comment.
11156
11157 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11158 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11159 used by this configuration.
11160 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11161 * unexec.c: Remove code depending on HPUX and
11162 USG_SHARED_LIBRARIES, not used with this file. Remove code
11163 depending on IRIS, unused. Remove if 0-ed code.
11164
11165 * s/template.h: Remove comments about static.
11166
11167 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11168 Remove if 0-ed code.
11169 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11170 were the same as the default.
11171 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11172 Remove boilerplate comments.
11173 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11174 (HAVE_SYSVIPC): Remove, unused.
11175 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11176
11177 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11178 Remove boilerplate comments.
11179 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11180 Remove boilerplate comments.
11181 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11182 Remove boilerplate comments.
11183 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11184
11185 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11186 USG systems which do not use DATA_SEG_BITS.
11187 Refactor code. Remove boilerplate comments.
11188
11189 * m/ibms390.h:
11190 * m/m68k.h:
11191 * s/bsd-common.h:
11192 * s/cygwin.h:
11193 * s/darwin.h:
11194 * s/freebsd.h:
11195 * s/gnu.h:
11196 * s/msdos.h: Remove boilerplate comments.
11197
11198 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11199 do not use this file.
aac0c6e3
MR
11200 (IRIS_4D): Remove, unused.
11201
11202 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11203 do not use this file.
aac0c6e3
MR
11204 (SIGN_EXTEND_CHAR):
11205 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11206 * unexmips.c: Remove file, unused.
11207
11208 * editfns.c (Fuser_full_name): Replace the only use of
11209 USER_FULL_NAME with its value.
11210 * config.in: Regenerate.
11211
112122008-07-16 David Reitter <david.reitter@gmail.com>
11213
11214 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11215 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11216
112172008-07-16 Glenn Morris <rgm@gnu.org>
11218
11219 * emacs.c (system-type): Doc fix.
11220
112212008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11222
11223 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11224 If the cache doesn't work, let's fix it, rather than work around it.
11225
112262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11227
11228 * Makefile.in: Correct additions for nsfont.o in last commit.
11229 * nsfont.m: New file (forgot last commit).
11230
112312008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11232
11233 * callproc.c (set_initial_environment): Initialize
11234 Vprocess_environment under CANNOT_DUMP (fixes crash when
11235 batch-compiling for bootstrap).
11236
112372008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11238 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11239
11240 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11241 fix crash due to different init order.
11242
112432008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11244
11245 Changes and additions for NeXTstep windowing system (Cocoa and
11246 GNUstep) support.
11247
11248 * Makefile.in:
11249 * config.in: Support defines and build commands for NS port.
11250 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11251 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11252 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11253 windowing.
11254 (struct face): Add synth_ital field.
11255 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11256 (init_display): Initialize Vinitial_window_system to "ns" when so
11257 compiled.
11258 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11259 (display_arg): Use under NS.
11260 (main): Under NS, allocate autorelease pool and handle command line
11261 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11262 (standard_args): Add NS-specific args.
11263 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11264 * font.c (DEFAULT_ENCODING): New variable.
11265 (font_find_for_lface): Use it.
11266 (syms_of_font): Load syms_of_nsfont under NS.
11267 * font.h: Declare nsfont_driver when compiled under NS.
11268 * fontset.c: When compiling under NS, include nsterm.h.
11269 (fontset_from_font): Autoconstruct fontset under NS.
11270 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11271 symbol, document and use it.
11272 (do_switch_frame): When for_deletion under Cocoa, add
11273 Fraise_frame(Qnil).
11274 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11275 (x_get_arg): Allow "yes" and "no" as boolean values.
11276 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11277 Qright under Cocoa.
11278 (focus-follows-mouse): Default to 0 under NS.
11279 * frame.h (enum output_method): Add output_ns.
11280 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11281 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11282 (FRAME_WINDOW_P): NS-specific definition.
11283 * fringe.c (max_used_fringe_bitmap): Make public.
11284 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11285 (getloadavg): Use NeXT code under descendant OS's.
11286 * image.c (includes and header section, x_create_bitmap_from_data)
11287 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11288 (image_background_transparent, x_clear_image_1)
11289 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11290 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11291 (x_to_xcolors, x_from_xcolors, x_disable_image)
11292 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11293 other GUIs, including XPM support using code originally written for
11294 Carbon GUI.
11295 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11296 using NS API.
11297 (image_ascent): Use font metrics macros instead of direct struct field
11298 access.
11299 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11300 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11301 Also, handle NS as GTK for menu bar purposes.
11302 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11303 toolkit where they differ.
11304 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11305 use cachelist, still needed under NS.
11306 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11307 (struct widget_value): Define it here for menu.c.
11308 * keymap.c (includes): Include modifier internals.
11309 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11310 NS.
11311 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11312 support for preferring sequences using certain modifiers, specified by
11313 the FIRSTONLY argument.
11314 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11315 under NS GNUstep implementation.
11316 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11317 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11318 * menu.c: Include nsterm.h under NS.
11319 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11320 (free_menubar_widget_tree_value, update_submenu_strings)
11321 (find_and_call_menu_selection): Treat NS as X and NT.
11322 (find_and_return_menu_selection): New function, used for popup menus.
11323 * nsgui.h:
11324 * nsterm.h:
11325 * nsfns.m:
11326 * nsimage.m:
11327 * nsmenu.m:
11328 * nsselect.m:
11329 * nsterm.m: New files.
11330 * process.c (wait_reading_process_output): Under NS, call ns_select()
11331 instead of plain select().
11332 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11333 beginning of buffer.
11334 * sysselect.h (init_process): Rename when compiling under Cocoa to
11335 avoid name conflict.
11336 * termhooks.h (display_info): Add ns_display_info to union.
11337 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11338 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11339 COCOA environment.
11340 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11341 unexec() signature. (Note, this will dump, but the resulting file
11342 crashes; unexosx is used instead; keeping around for reference and
11343 possible aid in getting dump working under GNUstep.)
11344 * w32gui.h (button_type, widget_value): Remove definitions (now in
11345 keyboard.h).
11346 * window.c: Include nsterm.h when compiling under NS.
11347 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11348 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11349 other GUI windowing systems.
11350 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11351 GTK.
11352 (x_consider_frame_title): Under NS, set icon type and frame
11353 modified-state indicator; use ns_set_name_as_filename() when using
11354 formatted title.
11355 (update_window_cursor): Make public when compiling under NS.
11356 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11357 (hourglass_atimer, Vhourglass_delay
11358 * xfaces.c (header section, init_frame_faces, clear_font_table)
11359 (defined_color, unload_color, x_face_list_fonts)
11360 (prepare_face_for_display): Add NS support parallel to other GUIs.
11361 Emulate GCs like other non-X GUIs.
11362 (split_font_name): Don't lowercase font name under NS.
11363 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11364 under NS.
11365 * s/darwin.h: Add support for compilation under NS.
11366
113672008-07-15 Jason Rumney <jasonr@gnu.org>
11368
11369 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11370 (w32_show_hourglass): Rename from show_hourglass.
11371 (w32_hide_hourglass): Rename from hide_hourglass.
11372 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11373 (Vhourglass_delay): Declare extern.
11374 (hourglass_started): Remove.
11375
11376 * xdisp.c (Vhourglass_delay): Remove static.
11377 (hourglass_started, start_hourglass, cancel_hourglass):
11378 Don't include these versions on WINDOWSNT.
11379
113802008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11381
11382 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11383 variables (formerly in xfns.c).
11384 (show_hourglass, hide_hourglass): New prototypes (same).
11385 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11386 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11387 in xfns.c).
11388 (syms_of_xdisp): Declare/initialize display-hourglass,
11389 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11390 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11391 formerly in xfns.c.
11392 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11393 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11394 (start_hourglass, cancel_hourglass): Remove.
11395 (show_hourglass, hide_hourglass): Remove prototypes and static
11396 modifiers.
11397 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11398 hourglass_atimer, hourglass_shown_p declaration/initialization.
11399 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11400 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11401 (start_hourglass, cancel_hourglass): Remove.
11402 (show_hourglass, hide_hourglass): Remove prototypes and static
11403 modifiers.
11404 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11405 hourglass_atimer, hourglass_shown_p declaration/initialization.
11406 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11407 (DEFAULT_HOURGLASS_DELAY): Remove.
11408 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11409 hourglass_shown_p declaration/initialization.
11410
114112008-07-14 Jason Rumney <jasonr@gnu.org>
11412
11413 * w32fns.c (w32_get_arg): Remove wrapper function.
11414 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11415 directly.
11416 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11417
114182008-07-14 Kenichi Handa <handa@m17n.org>
11419
11420 * xfont.c (xfont_open): Add workaround for X's bug.
11421
114222008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11423
11424 * fontset.c: Include <stdio.h> unconditionally.
11425
114262008-07-13 Michael Albinus <michael.albinus@gmx.de>
11427
11428 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11429 for filtering.
11430
114312008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11432
11433 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11434
11435 * m/macppc.h:
11436 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11437
11438 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11439 (SPECIAL_EMACS_INT):
11440 * m/ia64.h (SPECIAL_EMACS_INT):
11441 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11442 * s/gnu.h (NLIST_STRUCT):
11443 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11444 * s/gnu-linux.h (LINUX):
11445 * s/msdos.h (HAVE_FACES):
11446 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11447
11448 * systty.h:
11449 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11450 anymore.
11451
114522008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11453
11454 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11455 always defined as int.
11456
11457 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11458 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11459 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11460 * s/freebsd.h (HAVE_WAIT_HEADER):
11461 * s/bsd-common.h (HAVE_UNION_WAIT):
11462 * s/aix4-2.h (HAVE_WAIT_HEADER):
11463 * m/mips.h (HAVE_UNION_WAIT):
11464 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11465 (COFF, static): Do not define, they are undefined later in the file.
11466
11467 * process.c (update_status): Don't use a union.
11468 (status_convert):
11469 (sigchld_handler): Use int instead of WAITTYPE.
11470
114712008-07-12 Chong Yidong <cyd@stupidchicken.com>
11472
11473 * indent.c (Fvertical_motion): Restore hscroll before moving to
11474 goal column.
11475
114762008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11477
11478 * lisp.h: Remove left over code.
11479
114802008-07-11 Andreas Schwab <schwab@suse.de>
11481
11482 * lisp.h: Fix logic in last change.
11483
11484 * menu.h: New file.
11485 * menu.c: Include it.
11486 * xmenu.c: Likewise.
11487 * Makefile.in: Update dependencies.
11488
114892008-07-11 Kenichi Handa <handa@m17n.org>
11490
11491 * fontset.c (fontset_from_font): Cancel the previous change.
11492
114932008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11494
11495 * lisp.h:
11496 * w32heap.c:
11497 * emacs.c:
11498 * alloc.c: Replace all references of NO_UNION_TYPE with
11499 USE_LISP_UNION_TYPE.
11500
11501 * m/xtensa.h (NO_UNION_TYPE):
11502 * m/vax.h (NO_UNION_TYPE):
11503 * m/template.h (NO_UNION_TYPE):
11504 * m/sparc.h (NO_UNION_TYPE):
11505 * m/mips.h (NO_UNION_TYPE):
11506 * m/macppc.h (NO_UNION_TYPE):
11507 * m/m68k.h (NO_UNION_TYPE):
11508 * m/iris4d.h (NO_UNION_TYPE):
11509 * m/intel386.h (NO_UNION_TYPE):
11510 * m/ibms390x.h (NO_UNION_TYPE):
11511 * m/ibms390.h (NO_UNION_TYPE):
11512 * m/ibmrs6000.h (NO_UNION_TYPE):
11513 * m/ia64.h (NO_UNION_TYPE):
11514 * m/hp800.h (NO_UNION_TYPE):
11515 * m/arm.h (NO_UNION_TYPE):
11516 * m/amdx86-64.h (NO_UNION_TYPE):
11517 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11518 defining it the same.
11519
115202008-07-10 Chong Yidong <cyd@stupidchicken.com>
11521
11522 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11523
115242008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11525
11526 * fileio.c:
50426a04 11527 * sysdep.c:
aac0c6e3
MR
11528 * systty.h:
11529 * m/ibmrs6000.h:
11530 * m/iris4d.h:
11531 * s/aix4-2.h:
11532 * s/freebsd.h:
11533 * s/gnu-linux.h:
11534 * s/hpux10-20.h:
11535 * s/hpux11.h:
11536 * s/netbsd.h:
11537 * s/sol2-3.h:
11538 * s/sol2-4.h:
11539 * s/sol2.h:
11540 * s/usg5-4.h:
11541 * s/vms.h: Remove references to unused variables.
11542
115432008-07-10 Andreas Schwab <schwab@suse.de>
11544
11545 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11546 pattern before matching the generic family.
11547
115482008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11549
11550 * unexec.c:
11551 * s/vms.h:
11552 * s/usg5-4-2.h:
11553 * s/sol2-5.h:
11554 * s/freebsd.h:
11555 * s/darwin.h: Remove dead code.
11556
11557 * m/template.h:
11558 * m/sparc.h:
11559 * m/mips.h:
11560 * m/m68k.h:
11561 * m/iris4d.h:
11562 * m/intel386.h:
11563 * m/ibms390x.h:
11564 * m/ibms390.h:
11565 * m/ia64.h:
11566 * m/hp800.h:
11567 * m/arm.h:
11568 * m/amdx86-64.h: Remove dead code and references to unused
11569 and compiler defined symbols.
11570
11571 * unexmips.c:
11572 * unexelf.c: Remove references to desupported systems.
11573
11574 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11575
11576 * m/powermac.h: Remove boilerplate comments.
11577 (NO_REMAP): Remove unused definition.
11578
11579 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11580 define them.
11581
115822008-07-10 Kenichi Handa <handa@m17n.org>
11583
11584 * xfont.c (xfont_open): Log the reason of failure.
11585
115862008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11587
11588 * fontset.c (fontset_get_font_group):
11589 * font.c (font_check_otf): Specify argument types.
11590
115912008-07-09 Kenichi Handa <handa@m17n.org>
11592
11593 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11594 non-ASCII char is found.
11595
11596 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11597 (reorder_font_vector): Change the arg preferred_family to font.
11598 Prefer the spec matching with font.
11599 (fontset_get_font_group): New function.
11600 (fontset_find_font): Change the format of an element of a realized
11601 fontset. Use fontset_get_font_group.
11602 (fontset_font): Try the current fontset, the default fontset, the
11603 fallbacks of the current fontset, and the fallbacks of the default
11604 fontset in this order.
11605 (face_for_char): Delete the shortcut to use the current font.
11606 (fontset_from_font): Don't set fonts for Latin in the fontset.
11607
11608 * font.h (font_make_object, font_match_p): Adjust prototypes.
11609
11610 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11611
11612 * font.c (font_make_object): New arg entity and pixelsize.
11613 (font_check_otf_features, font_check_otf): New functions.
11614 (font_match_p): Check :lang, :script, and :otf properties.
11615
11616 * xfont.c (xfont_open): Adjust it for the change of
11617 font_make_object.
11618 (xfont_text_extents): Fix initial setting of metrics.
11619
11620 * ftfont.c (struct ftfont_info): New member index, delete member
11621 fc_charset_idx. Make the member order compatible with struct
11622 xftfont_info.
11623 (fc_charset_table): Change charset names to registry names.
11624 (ftfont_pattern_entity): Delete the args registry and
11625 fc_charset_idx. Change the value of :font-entity property
11626 to (FONTNAME . INDEX). Always set :registry property to
11627 `iso10646-1'.
11628 (struct ftfont_cache_data): New struct.
11629 (ftfont_lookup_cache): New arg for_face.
11630 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11631 (ftfont_driver): Set the member otf_capability.
11632 (ftfont_get_charset): Adjust it for the change of
11633 fc_charset_table.
11634 (OTF_TAG_SYM): New macro.
11635 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11636 for the change of fc_charset_table.
11637 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11638 ftfont_pattern_entity. Add FC_INDEX to objset.
11639 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11640 and ftfont_pattern_entity.
11641 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11642 font_make_object, struct ftfont_info.
11643 (ftfont_has_char): Use ftfont_get_fc_charset.
11644 (ftfont_otf_features, ftfont_otf_capability): New functions.
11645 (ftfont_shape): Use ftfont_get_otf.
11646 (ftfont_text_extents): Fix initial setting of metrics.
11647
11648 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11649 member order compatible with struct ftfont_info.
11650 (xftfont_open): Add FC_CHARSET to the pattern. Set
11651 xftfont_info->ft_size. Don't unlock the face. Check BDF
11652 properties if appropriate.
11653 (xftfont_close): Unlock the face.
11654 (xftfont_anchor_point, xftfont_shape): Deleted.
11655 (syms_of_xftfont): Don't set members anchor_point and shape of
11656 xftfont_driver.
11657
11658 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11659 font_make_object.
11660
11661 * w32font.c (w32font_open): Adjust it for the change of
11662 font_make_object.
11663 (w32font_open_internal): Don't set properties of font_object here.
11664
116652008-07-08 Chong Yidong <cyd@stupidchicken.com>
11666
11667 * macfns.c (x_create_tip_frame):
11668 * w32fns.c (x_create_tip_frame):
11669 * xfns.c (x_create_tip_frame): Pass parameter argument to
11670 face-set-after-frame-default.
11671
11672 * xfaces.c (Finternal_merge_in_global_face): Save merged
11673 attributes for the default face back into the face vector.
11674
116752008-07-08 Andreas Schwab <schwab@suse.de>
11676
11677 * fontset.h: Declare fontset_from_font. Don't declare
11678 new_fontset_from_font and fontset_from_font_name.
11679 * xterm.c: Include "fontset.h".
11680 * Makefile.in (xterm.o): Update dependencies.
11681
116822008-07-08 Glenn Morris <rgm@gnu.org>
11683
11684 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11685 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11686
116872008-07-07 Chong Yidong <cyd@stupidchicken.com>
11688
11689 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11690 (x_set_frame_parameters): Don't bind it.
11691
116922008-07-07 Juanma Barranquero <lekktu@gmail.com>
11693
11694 * w32fns.c (map_w32_filename): Declare extern.
11695
116962008-07-07 Jason Rumney <jasonr@gnu.org>
11697
11698 * w32term.c (WS_EX_LAYERED): Define if not already.
11699
117002008-07-06 Chong Yidong <cyd@stupidchicken.com>
11701
11702 * xfaces.c (set_font_frame_param): Don't try to set the font
11703 parameter if it is still unspecified in the lface.
11704
117052008-07-05 Chong Yidong <cyd@stupidchicken.com>
11706
11707 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11708 face if it didn't already exist.
11709
11710 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11711
117122008-07-05 Andreas Schwab <schwab@suse.de>
11713
11714 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11715
117162008-07-05 Chong Yidong <cyd@stupidchicken.com>
11717
11718 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11719 word-wrapping.
11720 (IT_DISPLAYING_WHITESPACE): New macro.
11721 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11722 when word-wrapping. Simplify word-wrapping logic. Use correct
11723 pixel positions when saving copies of the iterator.
11724 (display_line): Use proper wrap point if the last character on a
11725 line was preceded by whitespace.
11726
117272008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11728
11729 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11730
117312008-07-04 Kenichi Handa <handa@m17n.org>
11732
11733 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11734
11735 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11736
117372008-07-02 Jason Rumney <jasonr@gnu.org>
11738
11739 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11740 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11741
11742 * xdisp.c (next_element_from_display_vector): Move assignment out
11743 of if statement.
11744
117452008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11746
11747 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11748
11749 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11750 (syms_of_fileio): Initialize and export them.
11751 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11752
11753 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11754 (Fsystem_move_file_to_trash): New function.
11755 (syms_of_w32fns): Export it to lisp.
11756
117572008-07-01 Jason Rumney <jasonr@gnu.org>
11758
11759 * w32font.c (w32font_text_extents): Don't count overhang as part
11760 of width.
11761
117622008-06-30 Miles Bader <miles@gnu.org>
11763
11764 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11765 Add `avoid_cursor_p' field.
11766
11767 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11768 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11769 (append_glyph, append_composite_glyph, produce_image_glyph)
11770 (append_stretch_glyph): Initialize avoid_cursor_p.
11771 (get_it_property): Rename from `get_line_height_property'.
11772 (x_produce_glyphs): Use get_it_property.
11773 (handle_line_prefix, push_display_prop): New functions.
11774 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11775 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11776 New variables.
11777 (syms_of_xdisp): Initialize them.
11778
117792008-06-30 Kenichi Handa <handa@m17n.org>
11780
11781 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11782 XftDefaultSubstitute (they are called in XftFontMatch).
11783 (xftfont_open): Fix args to ftfont_font_format.
11784
11785 * ftfont.c (fc_charset_table): New member lang.
11786 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11787 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11788 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11789 (ftfont_open): Fix args to ftfont_font_format.
11790 (ftfont_font_format): New arg filename.
11791
117922008-06-30 Chong Yidong <cyd@stupidchicken.com>
11793
11794 * xfaces.c (Finternal_merge_in_global_face): If default face was
11795 modified, realize it again. Update the font face attribute.
11796
117972008-06-29 Jason Rumney <jasonr@gnu.org>
11798
11799 * w32term.c (x_set_frame_alpha): Fix logic.
11800
118012008-06-29 Kenichi Handa <handa@m17n.org>
11802
11803 * fontset.c (Finternal_char_font): Return font-object instead of
11804 font-name.
11805
11806 * composite.c (get_composition_id): Fix the width calculation for TAB.
11807
118082008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11809
11810 * indent.c (Fvertical_motion): Properly handle float column arg.
11811
118122008-06-28 Jason Rumney <jasonr@gnu.org>
11813
11814 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11815 (pfnSetLayeredWindowAttributes): New function pointer.
11816 (w32_initialize): Initialize it when supported.
11817 (x_set_frame_alpha): New function.
11818
11819 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11820 (w32_frame_parm_handlers): Set alpha handler.
11821
11822 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11823
118242008-06-27 Jason Rumney <jasonr@gnu.org>
11825
11826 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11827 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11828 (w32_to_x_charset, x_to_w32_charset)
11829 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11830 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11831 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11832 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11833 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11834 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11835 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11836 (Qw32_charset_unicode): Remove.
11837 (syms_of_w32fns): Update for above changes.
11838
11839 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11840 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11841 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11842 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11843 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11844 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11845 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11846 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11847 (syms_of_w32font): Update for above changes.
11848
118492008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11850
11851 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11852 removed #if.
11853 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11854
118552008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11856 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11857
11858 * makefile.w32-in (LOCAL_FLAGS):
11859 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11860
11861 * sysdep.c (_spawnlp, _getpid):
11862 Declare with explicit _cdecl instead of _CRTAPI1.
11863
11864 * editfns.c (Fget_internal_run_time):
11865 Check for WINDOWSNT with #ifdef, not #if.
11866
118672008-06-26 Jason Rumney <jasonr@gnu.org>
11868
11869 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11870
11871 * w32term.c (x_draw_glyph_string_foreground)
11872 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11873 Use FONT_HANDLE macro.
11874 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11875
11876 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11877 (uniscribe_encode_char): Use FONT_HANDLE macro.
11878
11879 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11880 (w32font_text_extents): Use precast w32_font.
11881 (w32font_close): Free cached metrics.
11882 (w32font_open_internal): Allocate space for name on stack.
11883
118842008-06-26 Chong Yidong <cyd@stupidchicken.com>
11885
11886 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11887
118882008-06-26 Jason Rumney <jasonr@gnu.org>
11889
11890 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11891 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11892
118932008-06-26 Juanma Barranquero <lekktu@gmail.com>
11894
11895 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11896
118972008-06-26 Jason Rumney <jasonr@gnu.org>
11898
11899 * w32bdf.c, w32bdf.h: Remove obsolete files.
11900
11901 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11902
11903 * w32gui.h: Don't include w32bdf.h.
11904 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11905 Remove obsolete font support.
11906
11907 * w32font.h (struct w32font_info): Remove compat_w32_font.
11908 Add hfont member.
11909 (FONT_COMPAT): Remove obsolete macro.
11910
11911 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11912 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11913 (w32font_open_internal): Remove compat code. Set new hfont member.
11914 (Fx_select_font): Use new hfont member.
11915
11916 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11917 (uniscribe_encode_char): Use new hfont member.
11918
11919 * w32term.c (x_draw_glyph_string_foreground)
11920 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11921 (x_draw_glyph_string): Use metrics in w32font_info.
11922
119232008-06-26 Kenichi Handa <handa@m17n.org>
11924
11925 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11926
119272008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11928
11929 * unexnext.c:
11930 * m/ews4800.h:
11931 * m/hp9000s300.h:
11932 * m/ibm370aix.h:
11933 * m/mips-siemens.h:
11934 * m/ncr386.h:
11935 * m/next.h:
11936 * m/pmax.h:
11937 * m/powerpcle.h:
11938 * m/tandem-s2.h:
11939 * s/386bsd.h:
11940 * s/bsd386.h:
11941 * s/bsd4-1.h:
11942 * s/bsd4-2.h:
11943 * s/bsdos2-1.h:
11944 * s/bsdos2.h:
11945 * s/bsdos3.h:
11946 * s/bsdos4.h:
11947 * s/nextstep.h:
11948 * s/ultrix4-3.h:
11949 * s/usg5-0.h:
11950 * s/usg5-2-2.h:
11951 * s/usg5-2.h:
11952 * s/usg5-4-3.h:
11953 * s/ux4800.h:
11954 * s/uxpds.h:
11955 * s/uxpv.h: Remove support for obsolete systems.
11956 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11957 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11958 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11959 Remove, insert contents in s/aix4-2.h.
11960 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11961 * s/bsd4-3.h: Rename to ...
11962 * s/bsd-common.h: ... this.
11963 * data.c:
11964 * doc.c:
11965 * ecrt0.c:
11966 * emacs.c:
11967 * fileio.c:
11968 * floatfns.c:
11969 * keyboard.c:
11970 * mem-limits.h:
11971 * print.c:
11972 * process.c:
11973 * sysdep.c:
11974 * syssignal.h:
11975 * systty.h:
11976 * syswait.h:
11977 * term.c:
11978 * unexec.c:
11979 * unexelf.c:
11980 * unexhp9k800.c:
11981 * m/hp800.h:
11982 * m/ibmrs6000.h:
11983 * m/mips.h:
11984 * m/vax.h:
11985 * s/darwin.h:
11986 * s/freebsd.h:
11987 * s/gnu.h:
11988 * s/ms-w32.h:
11989 * s/msdos.h:
11990 * s/netbsd.h:
11991 * s/template.h: Remove references to obsolete variables.
11992
11993 * Makefile.in: Add dependencies for all unexec files.
11994 (admindir): Remove unused variable.
11995 (UNEXEC_SRC): Remove references.
11996
119972008-06-25 Chong Yidong <cyd@stupidchicken.com>
11998
11999 * xfns.c (x_default_font_parameter): If Xft is available, first
12000 try Monospace-12 for the default font.
12001
120022008-06-25 Jason Rumney <jasonr@gnu.org>
12003
12004 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12005
120062008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12007
12008 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12009
12010 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12011
120122008-06-25 Juanma Barranquero <lekktu@gmail.com>
12013
12014 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12015 <scroll-conservatively>: Fix typo in docstring.
12016
12017 * xselect.c (Fx_send_client_event): Doc fix.
12018
120192008-06-25 Kenichi Handa <handa@m17n.org>
12020
12021 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12022
12023 * font.c (font_parse_fcname): Remove unused variables.
12024 (font_sort_entites): Delete the arg SPEC. Caller changed.
12025 Fix for the case of ! best_only.
12026 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12027
12028 * lisp.h (Fstring_to_unibyte): EXFUN it.
12029
12030 * character.h (str_to_unibyte): Extern it.
12031
12032 * character.c (str_to_unibyte): New function.
12033
12034 * fns.c (Fstring_to_unibyte): New function.
12035 (syms_of_fns): Defsubr it.
12036
120372008-06-24 Kenichi Handa <handa@m17n.org>
12038
12039 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12040 DPI too.
12041 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12042
120432008-06-24 Andreas Schwab <schwab@suse.de>
12044
12045 * Makefile.in (${lispsource}loaddefs.el): Rename from
12046 ../lisp/loaddefs.el.
12047 (bootstrap-clean): Do what distclean does but don't remove
12048 Makefile.
12049 (distclean): Depend on bootstrap-clean and remove Makefile.
12050
120512008-06-24 Chong Yidong <cyd@stupidchicken.com>
12052
12053 * buffer.h (struct buffer): New member word_wrap.
12054
12055 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12056 word-wrap.
12057 (init_buffer_once): Initialize them.
12058
12059 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12060 line_wrap enum possessing three possible values.
12061
12062 * termopts.h: Replace truncate_partial_width_windows with
12063 Vtruncate_partial_width_windows.
12064
12065 * dispnew.c (direct_output_for_insert): Avoid direct output when
12066 inserting a space with word wrap on.
12067
12068 * indent.c (compute_motion): Obey integer values of
12069 truncate-partial-width-windows.
12070
12071 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12072 replacing truncate_partial_width_windows.
12073 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12074 truncate only if the window width is below that integer.
12075 (start_display, resize_mini_window, produce_stretch_glyph)
12076 (display_string, move_it_in_display_line_to): Use line_wrap.
12077 (back_to_previous_visible_line_start, reseat_1): Reset
12078 string_from_display_prop_p.
12079 (display_line): Extend default face to end of line when wrapping.
12080
120812008-06-24 Kim F. Storm <storm@cua.dk>
12082
12083 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12084 to wrap continued lines at word boundaries.
12085
120862008-06-24 Jason Rumney <jasonr@gnu.org>
12087
12088 * font.c (Ffont_face_attributes): Multiply pixel size before point
12089 conversion to avoid multiplying rounding error.
12090
120912008-06-23 Jason Rumney <jasonr@gnu.org>
12092
12093 * w32term.c (x_draw_glyph_string_background)
12094 (x_draw_glyph_string): Remove old bdf font code.
12095
12096 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12097
120982008-06-22 Kenichi Handa <handa@m17n.org>
12099
12100 * font.c (font_find_for_lface): Try the adstyle specified in
12101 the property of LFACE_FONT of LFACE (if any).
12102
121032008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12104 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12105
12106 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12107
121082008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12109
12110 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12111 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12112 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12113 (witness-emacs): Remove.
12114 (lisp, shortlisp): Move loaddefs.el earlier.
12115 (mostlyclean): Forget about witness-emacs.
12116
121172008-06-22 Glenn Morris <rgm@gnu.org>
12118
12119 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12120 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12121
121222008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12123
12124 * Makefile.in (PRECOMP): Remove.
12125 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12126 (witness-emacs): Run `compile-first'.
12127 (.el.elc): Use the new compile-onefile target.
12128
121292008-06-21 Kenichi Handa <handa@m17n.org>
12130
12131 * xftfont.c (xftfont_open): Handle QCembolden only when
12132 FC_EMBOLDEN is defined.
12133
121342008-06-21 Andreas Schwab <schwab@suse.de>
12135
12136 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12137 (.el.elc): Likewise.
12138
121392008-06-21 Miles Bader <miles@gnu.org>
12140
12141 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12142 build dir, not the lisp source dir.
12143
121442008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12145
12146 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12147 (bootstrapclean): Remove.
12148 (.el.elc): New rule.
12149 (PRECOMP): New var.
12150 (../lisp/subdirs.el): Remove.
12151 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12152 (witness-emacs): New target.
12153 (mostlyclean): Remove witness-emacs as well.
12154 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12155 Add witness-emacs dependency.
12156
121572008-06-20 Chong Yidong <cyd@stupidchicken.com>
12158
12159 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12160 defined by the font.
12161
121622008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12163
12164 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12165 (bootstrap-clean): New target that keeps TAGS around.
12166 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12167 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12168
121692008-06-20 Jason Rumney <jasonr@gnu.org>
12170
12171 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12172 Remove obsolete font code.
12173
12174 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12175 to determine language support.
12176
121772008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12178
12179 * sysdep.c (cfsetspeed): New fun extracted from the code.
12180 (cfmakeraw): Move before first use.
12181
121822008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12183
12184 * sysdep.c (cfmakeraw): Provide fallback implementation.
12185 (serial_configure): Provide fallback implementation of cfsetspeed.
12186
121872008-06-20 Kenichi Handa <handa@m17n.org>
12188
12189 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12190 the pattern.
12191
12192 * fontset.c (fontset_from_font): Copy font_spec before changing
12193 the elements.
12194
12195 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12196
121972008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12198
12199 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12200 for explicit `font' parameters.
12201
12202 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12203
122042008-06-19 Kenichi Handa <handa@m17n.org>
12205
12206 * frame.c: Include <ctype.h>.
12207 (x_set_font_backend): Allow spacing characters in the X resource
12208 for FontBackend.
12209
122102008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12211
12212 * w32fns.c, xfns.c (Qfont_param): New var.
12213 (syms_of_w32fns): Initialize it.
12214 (x_default_font_parameter): Record explicit `font' into
12215 `font-parameter'.
12216
122172008-06-18 Kenichi Handa <handa@m17n.org>
12218
12219 * font.c (font_parse_xlfd): Fix previous change.
12220 (font_parse_fcname): Don't use :fc-unknown-spec.
12221 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12222 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12223 (font_add_log): Prepend the driver name to the resulting fonts.
12224
12225 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12226 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12227 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12228
12229 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12230 (QCembolden): New variables.
12231 (syms_of_xftfont): DEFSYM them.
12232 (xftfont_open): Call XftFontMatch. Don't trust the result of
12233 XftTextExtents8 if the pixel_size is less than 5.
12234
122352008-06-18 Andreas Schwab <schwab@suse.de>
12236
12237 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12238 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12239
122402008-06-18 Jason Rumney <jasonr@gnu.org>
12241
12242 * w32font.c (w32font_list, w32font_match): Add logging.
12243
12244 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12245
122462008-06-17 Chong Yidong <cyd@stupidchicken.com>
12247
12248 * font.c (font_parse_fcname): Store divider characters for
12249 unknown-spec list. For known key symbols, intern using correct
12250 symbol name.
12251
122522008-06-17 Kenichi Handa <handa@m17n.org>
12253
12254 * xfaces.c (realize_default_face): If the frame is not on window
12255 system, set the fontset of face to nil.
12256
122572008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12258
12259 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12260
122612008-06-16 Juanma Barranquero <lekktu@gmail.com>
12262
12263 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12264 (build_font_name_from_vector): Delete externs.
12265
12266 * xfaces.c (struct font_name): Don't declare.
12267
122682008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12269
12270 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12271
122722008-06-16 Chong Yidong <cyd@stupidchicken.com>
12273
12274 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12275
122762008-06-16 Juanma Barranquero <lekktu@gmail.com>
12277
12278 * font.c (Ffont_spec): Fix usage in docstring.
12279 (Ffont_face_attributes): Doc fix.
12280
122812008-06-16 Andreas Schwab <schwab@suse.de>
12282
12283 * font.c (Ffont_face_attributes): Fix definition.
12284
122852008-06-16 Jason Rumney <jasonr@gnu.org>
12286
12287 * font.h (font_style_symbolic_from_value): Remove.
12288
12289 * font.c (font_style_symbolic_from_value): Remove.
12290 (font_style_symbolic): Revert to pre 2008-06-13 version.
12291
12292 * w32font.c (w32_to_fc_weight): New function.
12293 (w32font_full_name, logfont_to_fcname): Use it.
12294
122952008-06-16 Kenichi Handa <handa@m17n.org>
12296
12297 * font.c (font_check_object): Delete it.
12298 (font_clear_cache): Check if a font-object is alive.
12299 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12300 font-object to nil.
12301 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12302 (font_at): Don't call font_check_object.
12303 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12304
123052008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12306
12307 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12308
123092008-06-16 Chong Yidong <cyd@stupidchicken.com>
12310
12311 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12312
123132008-06-15 Chong Yidong <cyd@stupidchicken.com>
12314
12315 * font.c (font_parse_fcname): Only one decimal point.
12316 (font_unparse_fcname): Handle data in family and foundry indices
12317 as symbols, not strings.
12318 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12319
12320 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12321
12322 * font.h (font_unparse_gtkname): Add prototype.
12323
123242008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12325
12326 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12327
123282008-06-15 Andreas Schwab <schwab@suse.de>
12329
12330 * font.c (font_update_drivers): Fix crash when no drivers match.
12331
123322008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12333
12334 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12335 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12336
123372008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12338
12339 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12340
123412008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12342
12343 * process.c (Fserial_process_configure, Fprocess_send_eof):
12344 Use EQ to compare Lisp_Objects.
12345
123462008-06-13 Jason Rumney <jasonr@gnu.org>
12347
12348 * w32fns.c (Fw32_select_font): Remove old font API function.
12349
12350 * w32font.c (logfont_to_fcname): New function.
12351 (Fx_select_font): New font dialog function compatible with
12352 GTK/fontconfig version.
12353
12354 * font.c (font_style_symbolic_from_value): New function.
12355 (font_style_symbolic): Use it.
12356
12357 * font.h (font_style_symbolic_from_value): Declare new function.
12358
123592008-06-13 Juanma Barranquero <lekktu@gmail.com>
12360
12361 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12362 <font-width-table>: Fix typos in docstrings.
12363
123642008-06-13 Daniel Engeler <engeler@gmail.com>
12365
12366 These changes add serial port access.
12367 * process.c: Add HAVE_SERIAL.
12368 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12369 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12370 (list_processes_1, select_wrapper, Fstop_process)
12371 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12372 (status_notify): Modify to handle serial processes.
12373 [HAVE_SERIAL] (Fserial_process_configure)
12374 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12375 New functions.
12376 * process.h (struct Lisp_Process): Add `type'.
12377 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12378 New functions.
12379 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12380 serial ports.
b71ac3dd 12381 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12382 * w32.h: Add FILE_SERIAL.
12383 (struct _child_process): Add ovl_read, ovl_write.
12384
123852008-06-13 Kenichi Handa <handa@m17n.org>
12386
12387 * dispextern.h (enum lface_attribute_index): New member
12388 LFACE_FOUNDRY_INDEX.
12389
12390 * font.c (font_score): Delete arg alternate_families. Check only
12391 weight, slant, width, and size. Ignore the difference of alias
12392 style symbols.
12393 (font_sort_entites): Adjust for the above change. Reflect the
12394 order of font-driver to scores.
12395 (font_list_entities): Don't check alternate_familes here.
12396 (font_clear_prop): Handle foundry.
12397 (font_update_lface): Don't parse "foundry-family" form here.
12398 Handle FONT_FOUNDRY_INDEX.
12399 (font_find_for_lface): Likewise. Handle alternate families here.
12400 If registry is nil, try iso8859-1 and ascii-0.
12401 (font_open_for_lface): Pay attention to size in ENTITY.
12402 (font_open_by_name): Simplify by calling font_load_for_lface.
12403 (free_font_driver_list): Delete it.
12404 (font_update_drivers): Preserve the order of backends.
12405 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12406 of font_score and font_sort_entites.
12407 (font_update_sort_order): Likewise.
12408
12409 * xfaces.c (LFACE_FOUNDRY): New macro.
12410 (check_lface_attrs): Check foundry.
12411 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12412 (merge_face_vectors): Check foundry.
12413 (merge_face_ref): Likewise.
12414 (Finternal_set_lisp_face_attribute): Likewise.
12415 (x_update_menu_appearance): Likewise.
12416 (Finternal_get_lisp_face_attribute): Likewise.
12417 (lface_hash): Likewise.
12418 (lface_same_font_attributes_p): Likewise.
12419 (x_supports_face_attributes_p): Likewise.
12420 (tty_supports_face_attributes_p): Likewise.
12421 (Finternal_set_alternative_font_family_alist): Intern strings.
12422 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12423 (realize_default_face): Set LFACE_FOUNDRY (lface).
12424
12425 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12426 font-driver at first.
12427
12428 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12429
124302008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12431
12432 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12433
124342008-06-12 Jim Meyering <meyering@redhat.com>
12435
12436 Make unexec_free handle NULL the same way free does.
12437 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12438
124392008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12440
12441 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12442 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12443 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12444 (WEAK_ALIAS): Simplify.
12445 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12446 when searching a unibyte buffer.
12447
124482008-06-12 Chong Yidong <cyd@stupidchicken.com>
12449
12450 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12451
124522008-06-12 Juanma Barranquero <lekktu@gmail.com>
12453
12454 * w32font.c: Include ctype.h.
12455
124562008-06-11 Jason Rumney <jasonr@gnu.org>
12457
12458 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12459 misreported as space.
12460 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12461 as aliases for registry iso10646-1.
12462
124632008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12464
12465 * buffer.c (clone_per_buffer_values): Skip `name'.
12466
124672008-06-11 Chong Yidong <cyd@stupidchicken.com>
12468
12469 * font.c (font_parse_fcname): Fix last change; accept decimal
12470 points in font size.
12471
124722008-06-10 Jason Rumney <jasonr@gnu.org>
12473
12474 * w32uniscribe.c (add_opentype_font_name_to_list):
12475 Skip non unicode fonts.
12476
124772008-06-10 Chong Yidong <cyd@stupidchicken.com>
12478
12479 * xfns.c (Fx_font_dialog): New function.
12480
12481 * gtkutil.c (xg_dialog_response_cb): Rename from
12482 xg_file_response_callback.
12483 (pop_down_dialog): Rename from pop_down_file_dialog.
12484 (xg_get_file_name): Callers changed.
12485 (xg_get_font_name): New function.
12486
12487 * gtkutil.h (xg_get_font_name): Insert prototype.
12488
124892008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12490
12491 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12492 x_underline_minimum_display_offset.
12493 (syms_of_xdisp): Declare it here rather than in xterm.c.
12494 * dispextern.h (underline_minimum_offset): Declare it.
12495 * w32term.c (x_draw_glyph_string): Use it.
12496 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12497 (syms_of_xterm): Don't declare it any more.
12498 (x_draw_glyph_string): Adjust to the new name.
12499
8719abec 125002008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12501
12502 * xterm.c (x_underline_minimum_display_offset): New var.
12503 (x_draw_glyph_string): Use it.
12504 (syms_of_xterm): Declare it.
12505
125062008-06-10 Chong Yidong <cyd@stupidchicken.com>
12507
12508 * font.c (font_parse_fcname): Accept GTK-style font names too.
12509
125102008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12511
12512 * dired.c (file_name_completion): Don't return t if the match is exact
12513 but with different capitalization.
12514 * minibuf.c (Ftry_completion): Simplify.
12515
12516 * window.c (Vwindow_point_insertion_type): New var.
12517 (set_window_buffer): Use it.
12518 (syms_of_window): Init and export it to Lisp.
12519
125202008-06-10 Kenichi Handa <handa@m17n.org>
12521
12522 * font.h (font_intern_prop): Prototype adjusted.
12523
12524 * font.c (font_intern_prop): New arg force_symbol.
12525 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12526 Adjust for the change of font_intern_prop.
12527
12528 * ftfont.c (ftfont_pattern_entity):
12529 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12530 (w32_registry):
12531 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12532 the change of font_intern_prop.
12533
125342008-06-09 Juanma Barranquero <lekktu@gmail.com>
12535
12536 * w32menu.c (digest_single_submenu): Declare extern.
12537
125382008-06-09 Jason Rumney <jasonr@gnu.org>
12539
12540 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12541
12542 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12543 (parse_single_submenu): Remove.
12544 (digest_single_submenu): Remove.
12545 (syms_of_w32menu): Don't initialise variables that have moved
12546 to menu.c.
12547 (set_frame_menubar): Sync with version in xmenu.c.
12548 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12549
12550 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12551 Make static again.
12552
125532008-06-09 Jason Rumney <jasonr@gnu.org>
12554
12555 Changes to w32 files related to the move of common menu code
12556 to menu.c on 2008-06-08 by Chong Yidong.
12557
12558 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12559 defs to w32gui.h.
12560 (single_keymap_panes, push_menu_item, push_menu_pane):
12561 Make globally visible.
12562
12563 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12564 (local_free, malloc_widget_value, free_widget_value)
12565 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12566 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12567 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12568 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12569 (menu_items, menu_items_allocated, menu_items_used)
12570 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12571 (init_menu_items, finish_menu_items, discard_menu_items)
12572 (grow_menu_items, push_submenu_start, push_submenu_end)
12573 (push_left_right_boundary, push_menu_pane, push_menu_item)
12574 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12575 (free_menubar_widget_tree_value, parse_single_submenu)
12576 (update_submenu_strings): Remove functions.
12577 (xmalloc_widget_value): Remove and declare extern.
12578
12579 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12580 (OBJ1): Build it.
12581
12582 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12583 (local_heap, local_alloc, local_free, malloc_widget_value)
12584 (free_widget_value): Define here.
12585
125862008-06-09 Kenichi Handa <handa@m17n.org>
12587
12588 * font.h (Qascii_0): Extern it.
12589
12590 * font.c (Qascii_0): New variable.
12591 (syms_of_font): DEFSYM it.
12592 (font_open_by_name): If the registry "iso8859-1" fails, try also
12593 "ascii-0".
12594
12595 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12596
125972008-06-08 Kenichi Handa <handa@m17n.org>
12598
12599 * .gdbinit (xfont): New command.
12600
126012008-06-08 Andreas Schwab <schwab@suse.de>
12602
12603 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12604 * Makefile.in (menu.o): Update dependencies.
12605
12606 * Makefile.in (obj): Always add menu.o.
12607 * emacs.c (main): Always call syms_of_menu.
12608 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12609
126102008-06-08 Chong Yidong <cyd@stupidchicken.com>
12611
12612 * Makefile.in: Compile menu.c.
12613
12614 * lisp.h: Declare syms_of_menu.
12615
12616 * emacs.c (main): Call syms_of_menu.
12617
12618 * keyboard.h: Relocate platform-independent menu definitions from
12619 xmenu.c.
12620
12621 * menu.c: New file. Relocate platform-independent menu
12622 definitions from xmenu.c. Suggested by Adrian Robert.
12623
12624 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12625 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12626 (menu_items_used, menu_items_n_panes)
12627 (menu_items_submenu_depth): Move to keyboard.h.
12628 (init_menu_items, finish_menu_items, unuse_menu_items)
12629 (discard_menu_items, restore_menu_items, save_menu_items)
12630 (grow_menu_items, push_submenu_start, push_submenu_end)
12631 (push_left_right_boundary, push_menu_pane, push_menu_item)
12632 (keymap_panes, single_keymap_panes, single_menu_item)
12633 (list_of_panes, list_of_items, find_and_call_menu_selection)
12634 (xmalloc_widget_value, free_menubar_widget_value_tree)
12635 (parse_single_submenu, digest_single_submenu)
12636 (update_submenu_strings): Move to menu.c.
12637
126382008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12639
12640 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12641
126422008-06-06 Miles Bader <miles@gnu.org>
12643
12644 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12645 face, not frame default.
12646
126472008-06-05 Martin Rudalics <rudalics@gmx.at>
12648
12649 * window.c (pop_up_windows, pop_up_frames)
12650 (display_buffer_reuse_frames, Vpop_up_frame_function)
12651 (Vdisplay_buffer_function, Veven_window_heights)
12652 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12653 (Vspecial_display_function, Vsame_window_buffer_names)
12654 (Vsame_window_regexps, split_height_threshold)
12655 (Vsplit_window_preferred_function): Move those vars to window.el.
12656 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12657 (Fdisplay_buffer): Move those functions to window.el.
12658 (syms_of_window): Remove corresponding declarations.
12659 (display_buffer): New function.
12660 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12661 * dispnew.c (Flast_nonminibuf_frame): New function.
12662 * buffer.c (Fpop_to_buffer): Move to window.el.
12663
126642008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12665
12666 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12667
126682008-06-05 Kenichi Handa <handa@m17n.org>
12669
12670 * coding.c (detect_coding): Fix previous change.
12671 (detect_coding_system): Likewise.
12672
126732008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12674
12675 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12676
12677 * keymap.c (Vminibuffer_local_filename_must_match_map):
12678 Rename from Vminibuffer_local_must_match_filename_map.
12679 (syms_of_keymap):
12680 * minibuf.c (Fcompleting_read): Adjust accordingly.
12681 * commands.h: Rename declaration as well.
12682
126832008-06-05 Kenichi Handa <handa@m17n.org>
12684
12685 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12686 family name.
12687 (Ffont_put): Likewise.
12688
12689 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12690 current font-spec.
12691
12692 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12693 is unspecified.
12694
12695 * xfaces.c (realize_x_face): If the font-related face attributes
12696 are the same as those of default face, realize a new fontset from
12697 default->fontset.
12698 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12699
127002008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12701
12702 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12703 (move_it_in_display_line): New wrapper.
12704
12705 * window.c (window_scroll_pixel_based_preserve_x)
12706 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12707 (window_scroll_pixel_based, window_scroll_line_based):
12708 Use them to preserve column positions.
12709 (syms_of_window): Initialize them.
12710
12711 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12712 (HPOS . VPOS) pair.
12713
12714 * dispextern.h (move_it_in_display_line): Declare.
12715
127162008-06-05 Juanma Barranquero <lekktu@gmail.com>
12717
12718 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12719 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12720 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12721
127222008-06-04 Juanma Barranquero <lekktu@gmail.com>
12723
12724 * window.c (Fset_window_parameter): Doc fix.
12725 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12726
127272008-06-04 Joakim Verona <joakim@verona.se>
12728
12729 * window.h (struct window): Add new member window_parameters.
12730
12731 * window.c (Fwindow_parameters, Fwindow_parameter)
12732 (Fset_window_parameter): New defuns.
12733 (syms_of_window): Defsubr the new defuns.
12734 (make_window): Initialize window_parameters to nil.
12735
127362008-06-04 John Paul Wallington <jpw@pobox.com>
12737
12738 * eval.c (Fdefmacro): Doc fix.
12739
127402008-06-04 Kenichi Handa <handa@m17n.org>
12741
12742 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12743 Be sure to call setup_coding_system when we find a proper coding system.
12744 (detect_coding_system): Fix handling of coding->head_ascii.
12745
127462008-06-03 Andreas Schwab <schwab@suse.de>
12747
12748 * font.c (font_prop_validate_spacing): Fix last change.
12749
127502008-06-03 Kenichi Handa <handa@m17n.org>
12751
12752 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12753 (font_parse_fcname): Fix handling of unknown key.
12754
12755 * xfont.c (xfont_list): Try an alias.
12756
12757 * charset.c (char_charset): Return NULL if the arg charset_list is
12758 specified and C doesn't belong to any of them.
12759
127602008-06-02 Chip Coldwell <coldwell@redhat.com>
12761
12762 * font.c (font_pixel_size): Don't take cdr of an integer.
12763
127642008-06-02 Jim Meyering <meyering@redhat.com>
12765
12766 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12767 * alloc.c (xfree): Return right away for a NULL arg.
12768 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12769 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12770 * mac.c (create_apple_event_from_event_ref): Likewise.
12771 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12772 Likewise.
12773 * doprnt.c (doprnt1): Likewise.
12774 * frame.c (frame): Likewise.
12775 * keyboard.c (wipe_kboard): Likewise.
12776 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12777 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12778 * term.c (tty_default_color_capabilities, maybe_fatal)
12779 (delete_tty): Likewise.
12780 * w16select.c (string): Likewise.
12781 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12782 * w32bdf.c (w32_free_bdf_font): Likewise.
12783 * w32fns.c (w32_unload_font): Likewise.
12784 * w32font.c (w32font_close): Likewise.
12785 * window.c (size_window): Likewise.
12786 * xselect.c (receive_incremental_selection): Likewise.
12787 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12788 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12789 * w32.c (stat): Likewise.
12790
12791 Remove useless if-before-free tests.
12792 * editfns.c (Fset_time_zone_rule): Likewise.
12793 * lread.c (nosuffix): Likewise.
12794 * ralloc.c (get_bloc): Likewise.
12795 * regex.c (reg_free): Likewise.
12796 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12797 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12798 * xsmfns.c (smc_save_yourself_CB): Likewise.
12799
128002008-06-02 Kenichi Handa <handa@m17n.org>
12801
12802 * font.c (font_find_for_lface): Handle float font size.
12803 (font_open_for_lface): Likewise.
12804
12805 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12806 comparing the properties.
12807
128082008-06-01 Jason Rumney <jasonr@gnu.org>
12809
12810 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12811 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12812 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12813 Don't add empty script list.
12814 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12815
128162008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12817
12818 * Makefile.in (dot, dotdot): Remove, update users.
12819 ".." has been used elsewhere in the file for a long time.
12820 (LIBXT_STATIC): Remove conditional based on unused variable.
12821
128222008-06-01 Miles Bader <miles@gnu.org>
12823
12824 * xfaces.c (Vface_remapping_alist): New variable.
12825 (syms_of_xfaces): Initialize it.
12826 (enum named_merge_point_kind): New type.
12827 (struct named_merge_point): Add `named_merge_point_kind' field.
12828 (push_named_merge_point): Make cycle detection respect different
12829 named-merge-point kinds.
12830 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12831 Remove face-name alias resolution.
12832 (lface_from_face_name): New definition using
12833 `lface_from_face_name_no_resolve'.
12834 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12835 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12836 (get_lface_attributes): New definition that layers face-remapping on
12837 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12838 (lookup_basic_face): New function.
12839 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12840 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12841 `get_lface_attributes'.
12842 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12843 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12844 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12845
12846 * xdisp.c (init_iterator): Pass base_face_id through
12847 `lookup_basic_face' when we actually use it as a face-id.
12848 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12849 DEFAULT_FACE_ID.
12850
12851 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12852 lookup the initial face-id.
12853
12854 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12855
128562008-06-01 Juanma Barranquero <lekktu@gmail.com>
12857
12858 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12859 (Fremove_text_properties): Fix typos in docstrings.
12860
128612008-05-31 Kenichi Handa <handa@m17n.org>
12862
12863 * font.c (font_list_entities): Fix the car part of data to be
12864 stored in the cache.
12865
12866 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12867
128682008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12869
12870 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12871 Add a `test' argument so another predicate than `equal' can be used.
12872 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12873 (map_char_table): Remove unused vars `c' and `i'.
12874 * lisp.h (Foptimize_char_table): Adjust declaration.
12875 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12876
128772008-05-30 Kenichi Handa <handa@m17n.org>
12878
12879 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12880 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12881 defined.
12882
128832008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12884
12885 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12886 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12887 frame-local settings for the same variable.
12888
128892008-05-30 Kenichi Handa <handa@m17n.org>
12890
12891 * fontset.c (Ffont_info): Move to font.c.
12892 (syms_of_fontset): Delete defsubr of Sfont_info.
12893
12894 * font.c (font_style_to_value, font_score): Delete casting of the
12895 args to xstcasecmp.
12896 (register_font_driver): Increment num_font_drivers only when
12897 registering the driver globally.
12898 (Ffont_info): Move from fontset.c. Handle a font object too.
12899 (syms_of_font): Defsubr Sfont_info.
12900
129012008-05-29 Kenichi Handa <handa@m17n.org>
12902
12903 * coding.h (enum define_coding_utf8_arg_index): New enum.
12904 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12905 coding_attr_utf_bom.
12906 (enum utf_bom_type): Rename from utf_16_bom_type.
12907 (struct utf_16_spec): Adjust for the above change.
12908 (struct coding_system): Add utf_8_bom in `spec' union.
12909
12910 * coding.c (CODING_UTF_8_BOM): New macro.
12911 (enum coding_category): Delete coding_category_utf_8, add
12912 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12913 coding_category_utf_8_sig.
12914 (CATEGORY_MASK_UTF_8): Delete it.
12915 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12916 (CATEGORY_MASK_UTF_8_SIG): New macros.
12917 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12918 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12919 CATEGORY_MASK_UTF_8_SIG.
12920 (CATEGORY_MASK_UTF_8): New macro.
12921 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12922 (detect_coding_utf_8): Check BOM.
12923 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12924 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12925 (encode_coding_utf_16): Likewise.
12926 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12927 (detect_coding, detect_coding_system): Handle utf-8-auto.
12928 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12929 (syms_of_coding): Fix setting up of Vcoding_category_table.
12930
129312008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12932
12933 * process.c (Faccept_process_output): If `millisec' is non-nil,
12934 `seconds' default to 0.
12935 (wait_reading_process_output): Also return non-nil if we read output
12936 from a non-running process.
12937
129382008-05-29 Jason Rumney <jasonr@gnu.org>
12939
12940 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12941 `raster' specified.
12942 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12943 in the uniscribe backend, but disallow any font that has no
12944 unicode subrange support.
12945
129462008-05-29 Juanma Barranquero <lekktu@gmail.com>
12947
12948 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12949 Fix typos in docstrings.
12950
129512008-05-29 Kenichi Handa <handa@m17n.org>
12952
12953 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12954 (Fx_family_fonts): Set frame correctly.
12955
129562008-05-28 Jason Rumney <jasonr@gnu.org>
12957
12958 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12959
129602008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12961
12962 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12963 calling build_annotations.
12964
129652008-05-28 Juanma Barranquero <lekktu@gmail.com>
12966
12967 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12968 (Fencode_coding_string):
12969 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12970 <latin-extra-code-table>: Fix typos in docstrings.
12971 (syms_of_coding) <coding-system-alist>: Doc fix.
12972 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12973
129742008-05-28 Kenichi Handa <handa@m17n.org>
12975
12976 * fontset.c (Ffont_info): Don't call font_close_object.
12977
12978 * font.c (font_parse_family_registry): Use Ffont_put to validate
12979 foundry and family.
12980 (font_delete_unmatched): Don't check spacing.
12981 (font_list_entities): Add spacing to the spec to list fonts.
12982
12983 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12984 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12985
12986 * coding.c (encode_coding_raw_text): Fix previous change.
12987 (encode_coding_object): When the dst_object is a buffer and is
12988 different from src_object, move gap to PT.
12989
129902008-05-27 Chong Yidong <cyd@stupidchicken.com>
12991
12992 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12993
129942008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12995
12996 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12997 all branches. Compute it differently.
12998
12999 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13000
130012008-05-27 Juanma Barranquero <lekktu@gmail.com>
13002
13003 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13004 into "else if () ... else ...".
13005
130062008-05-27 Jason Rumney <jasonr@gnu.org>
13007
13008 * w32font.c (w32font_open_internal): Determine if glyph indices
13009 are likely to work here.
13010
130112008-05-27 Chong Yidong <cyd@stupidchicken.com>
13012
13013 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13014 draw overlap glyphs with appropriate highlighting.
13015
130162008-05-27 Kenichi Handa <handa@m17n.org>
13017
13018 * xfont.c (xfont_open): Fix calculation of font->average_width.
13019
130202008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13021
13022 * casefiddle.c (casify_object): Try to guess better whether the
13023 argument is a byte or a char.
13024
130252008-05-26 Andreas Schwab <schwab@suse.de>
13026
13027 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13028 Always send multiples of format size.
13029
13030 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13031
130322008-05-26 Jason Rumney <jasonr@gnu.org>
13033
13034 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13035 (compute_metrics): Don't set failure if we just cleared the cache.
13036 (w32_weight_table): Remove unused variable.
13037 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13038 backwards compatibility.
13039
130402008-05-25 Kenichi Handa <handa@m17n.org>
13041
13042 * w32term.c (x_draw_glyph_string):
13043 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13044
13045 * xfaces.c: Delete unused function prototypes.
13046 (xstrlwr, font_frame): Delete them.
13047 (clear_face_cache): Delete unused variable.
13048
13049 * xftfont.c (xftfont_open): Delete unused variable.
13050 If underline_thickness is not 1, adjust underline_position.
13051
13052 * ftxfont.c (ftxfont_open): Delete unused variable.
13053
13054 * fontset.c (face_for_char): Optimize for the case of no charset
13055 property.
13056
13057 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13058 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13059 (otf_open, font_otf_capability, generate_otf_features)
13060 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13061 Comment out by surrounding "#if 0" and "#endif" for the moment.
13062 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13063 (syms_of_font): Codes for accessing above commented out.
13064
130652008-05-24 Eli Zaretskii <eliz@gnu.org>
13066
13067 * w32proc.c: Include dispextern.h.
13068
13069 * w32.c: Include dispextern.h.
13070
130712008-05-23 Juanma Barranquero <lekktu@gmail.com>
13072
13073 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13074 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13075 Fix typos in docstrings.
13076
130772008-05-23 Jason Rumney <jasonr@gnu.org>
13078
13079 * xsmfns.c: Remove includes that are already included by config.h.
13080
130812008-05-23 Kenichi Handa <handa@m17n.org>
13082
13083 * charset.c (Qemacs, charset_emacs): New variables.
13084 (char_charset): Fix for non-Unicode characters.
13085 (syms_of_charset): Define charset_emacs.
13086
13087 * w32term.c (x_draw_glyph_string): Be sure to update
13088 s->underline_thickness and s->underline_position. Be sure to draw
13089 underline within the current line area.
13090
13091 * xterm.c (x_draw_glyph_string): Be sure to update
13092 s->underline_thickness and s->underline_position. Be sure to draw
13093 underline within the current line area.
13094
13095 * fontset.c: Delete unused variables and add casting for char *
13096 throughout the file.
13097 (fontset_font): Try the fallback fonts of the current fontset
13098 before consulting the default fontset.
13099
13100 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13101
13102 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13103
131042008-05-22 Jason Rumney <jasonr@gnu.org>
13105
13106 * font.c: Don't include strings.h.
13107
13108 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13109
13110 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13111 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13112 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13113 to call xstrcasecmp.
13114
13115 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13116
13117 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13118
13119 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13120
13121 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13122
131232008-05-22 Kenichi Handa <handa@m17n.org>
13124
13125 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13126
13127 * font.c (font_prop_validate_style): Adjust for the format
13128 change of font_style_table.
13129
13130 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13131 two args.
13132
13133 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13134 two args.
13135
131362008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13137
13138 * minibuf.c (keys_of_minibuf): Delete.
13139 * lisp.h (keys_of_minibuf): Delete.
13140 * emacs.c (main): Don't call keys_of_minibuf.
13141
131422008-05-22 Kenichi Handa <handa@m17n.org>
13143
13144 * ftfont.c (ftfont_resolve_generic_family): Rename from
13145 ftfont_list_generic_family. Return a single family for each
13146 generic family.
13147 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13148 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13149 Call font_add_log.
13150 (ftfont_match): Call font_add_log.
13151
13152 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13153 (FONT_DEBUG): Define it.
13154 (font_add_log): Extern it.
13155 (font_assert): Rename from xassert.
13156
13157 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13158 (xfont_list_family): Call font_add_log.
13159 (xfont_match): Likewise.
13160 (memq_no_quit): Delete.
13161
13162 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13163 call of Ffont_xlfd_name.
13164
13165 * xfaces.c (struct table_entry, slant_table, weight_table)
13166 (swidth_table): Move to font.c.
13167
13168 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13169 xassert are changed to font_assert. Delete many unused variables.
13170 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13171 New variables.
13172 (struct table_entry): Move from xfaces.c and modified.
13173 (weight_table, slant_table, width_table): Move from xfaces.c and
13174 contents adjusted for the change of struct table_entry.
13175 (font_style_to_value, font_style_symbolic): Adjust for the
13176 format change of font_style_table.
13177 (font_parse_family_registry): Don't overwrite existing foundry and
13178 family of font_spec.
13179 (font_score): Fix calculation of diff for sizes.
13180 (font_sort_entites): Call font_add_log.
13181 (font_delete_unmatched): Return a newly created list.
13182 (font_list_entities): Fix previous change. Call font_add_log.
13183 (font_matching_entity, font_open_entity, font_close_entity):
13184 Call font_add_log.
13185 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13186 (Finternal_set_font_style_table): Delete.
13187 (BUILD_STYLE_TABLE): New macro.
13188 (build_style_table): New function.
13189 (Vfont_log, font_log_env_checked): New variables.
13190 (font_add_log): New function.
13191 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13192 Declare Lisp variables "font-weight-table", "font-slant-table",
13193 "font-width-table", and "font-log". Initialize font_style_table.
13194
131952008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13196
13197 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13198
131992008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13200 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13201
13202 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13203 (Vframe_alpha_lower_limit): New variable.
13204 (x_set_alpha): New function.
13205
13206 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13207
13208 * xfns.c (x-create-frame, Qalpha):
13209 Initialize the frame parameter `alpha'.
13210 * xterm.c (OPAQUE, OPACITY): New.
13211 (x_set_frame_alpha): New function.
13212 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13213
13214 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13215 * w32fns.c (w32_frame_parm_handlers): Likewise.
13216
132172008-05-20 Jason Rumney <jasonr@gnu.org>
13218
13219 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13220 truetype fonts to opentype list.
13221
132222008-05-20 Juanma Barranquero <lekktu@gmail.com>
13223
13224 * fontset.c (Ffontset_info): Doc fix.
13225 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13226 <ignore-relative-composition>: Fix typos in docstrings.
13227
13228 * font.c (syms-of-font) <font-encoding-alist>:
13229 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13230 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13231 (Ffont_otf_alternates): Doc fixes.
13232
132332008-05-20 Kenichi Handa <handa@m17n.org>
13234
13235 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13236 font.h through out the file.
13237 (FONT_DRIVERS): Rename from FONTOBJ.
13238 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13239 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13240
13241 * emacs.c (main): Call syms_of_font unconditionally.
13242
13243 * font.h (find_font_encoding): Extern it.
13244
13245 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13246 fontset.c.
194d44e7 13247 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13248 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13249 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13250 only when HAVE_WINDOW_SYSTEM is defined.
13251 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13252 when HAVE_WINDOW_SYSTEM is defined.
13253
13254 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13255 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13256
13257 * xfaces.c: Include font.h unconditionally.
13258 (merge_face_ref, merge_face_vectors)
13259 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13260
132612008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13262
13263 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13264 indirect_variable.
13265 * eval.c (lisp_indirect_variable): New fun.
13266 (Fuser_variable_p): Use it.
13267
132682008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13269
13270 * lisp.h (indirect_variable):
13271 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13272 Use Lisp_Symbol pointers rather than Lisp_Object.
13273 Adjust callers.
13274 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13275 To this end, change calling-convention.
13276
13277 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13278 if some non-hidden buffers are selected by string&pred.
13279
132802008-05-19 Chong Yidong <cyd@stupidchicken.com>
13281
13282 * process.c (wait_reading_process_output): Always check status
13283 when in batch mode.
13284
132852008-05-19 Kenichi Handa <handa@m17n.org>
13286
13287 * font.c (font_list_entities): Fix handling of cache.
13288 (font_matching_entity): Likewise.
13289
13290 * ftfont.c (cs_iso8859_1): Delete.
13291 (ft_face_cache): New variable.
13292 (struct ftfont_info): New member fc_charset_idx.
13293 (ftfont_build_basic_charsets): Delete.
13294 (fc_charset_table): New variable.
13295 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13296 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13297 Callers changed.
13298 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13299 (ftfont_spec_pattern): New argument fc_charset_idx.
13300 Check registry more rigidly. Change callers.
13301 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13302 change of :font-entity property of the font.
13303
13304 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13305 property of the font.
13306
133072008-05-18 Juanma Barranquero <lekktu@gmail.com>
13308
13309 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13310 (Funencodable_char_position, Fcheck_coding_systems_region)
13311 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13312 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13313 (Ffind_operation_coding_system, Fset_coding_system_priority)
13314 (Fcoding_system_eol_type): Doc fixes.
13315
133162008-05-17 Glenn Morris <rgm@gnu.org>
13317
13318 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13319
133202008-05-16 Eli Zaretskii <eliz@gnu.org>
13321
13322 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13323 and st_gid.
13324
13325 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13326 HAVE_WINDOW_SYSTEM is not defined.
13327
13328 * xfaces.c (merge_face_ref, merge_face_vectors)
13329 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13330 HAVE_WINDOW_SYSTEM is defined.
13331 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13332
133332008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13334
13335 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13336
133372008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13338
13339 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13340
133412008-05-15 Kenichi Handa <handa@m17n.org>
13342
13343 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13344 preference.
13345
133462008-05-15 Glenn Morris <rgm@gnu.org>
13347
13348 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13349
133502008-05-15 Chong Yidong <cyd@stupidchicken.com>
13351
13352 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13353 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13354
13355 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13356
133572008-05-15 Kenichi Handa <handa@m17n.org>
13358
13359 * ftfont.c (ftfont_list): Downcase family name to check generic
13360 families.
13361
13362 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13363 font-spec for QCfont value.
13364
13365 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13366 buffer. Check the return value of it.
13367
133682008-05-14 Jason Rumney <jasonr@gnu.org>
13369
13370 * w32term.c (w32_get_glyph_overhangs): Remove.
13371 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13372
133732008-05-14 Kenichi Handa <handa@m17n.org>
13374
13375 * font.c (font_prop_validate): Make nil a valid value.
13376 (font_clear_cache): Check if the cached vector of entities is nil
13377 or not.
13378
133792008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13380
13381 * emacs.c (main_thread): Conditionalize on
13382 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13383 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13384
13385 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13386 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13387 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13388
133892008-05-14 Kenichi Handa <handa@m17n.org>
13390
13391 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13392 has no corresponding coding system.
13393
133942008-05-14 Jason Rumney <jasonr@gnu.org>
13395
13396 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13397
13398 * w32font.h (w32font_open_internal): Update declaration.
13399
13400 * w32font.c (w32font_open_internal): Change last argument from
13401 w32font_info struct to font object. Fill in font object from
13402 font_entity. Get Outline metrics if possible. Use them to
13403 calculate underline position and thickness. Use xlfd name as name
13404 property. Don't set codepage.
13405 (w32font_open): Pass font_object to w32font_open_internal. Don't
13406 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13407 (w32font_draw): Use s->font.
13408 (clear_cached_metrics): Don't clear non-existent blocks.
13409
13410 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13411 font was not found.
13412 (x_draw_glyph_string): Use underline position and thickness from font.
13413
13414 * w32uniscribe.c (uniscribe_open): Pass font_object to
13415 w32font_open_internal.
13416
134172008-05-14 Kenichi Handa <handa@m17n.org>
13418
13419 These changes are to delete all legacy font-handling codes, and
13420 make Emacs use only font-backends.
13421
13422 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13423 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13424
13425 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13426
13427 * charset.h (Vcharset_non_preferred_head)
13428 (Vcurrent_iso639_language): Extern them.
13429
13430 * charset.c (Vcharset_non_preferred_head): New variable.
13431 (Vcurrent_iso639_language): New variable.
13432 (syms_of_charset): Declare it as a Lisp variable.
13433 (char_charset): Don't check non preferred charsets. As a last
13434 resort, return charset_unicode.
13435 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13436
13437 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13438 conditionals. Don't check enable_font_backend. Delete all codes
13439 used only when USE_FONT_BACKEND is not defined.
13440
13441 * dispextern.h (struct glyph_string): Change type of `font' to
13442 `struct font *'.
13443 (struct glyph_string): New member underline_position and
13444 underline_thickness.
13445 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13446 (struct face): Change type of `font' to `struct font *'. Remove
13447 members `font_name', `font_info_id'.
13448 (per_char_metric, encode_char): Delete externs.
13449 (calc_pixel_width_or_height): Adjust the prototype.
13450
13451 * emacs.c (enable_font_backend): Delete extern.
13452 (main): Don't set enable_font_backend. Don't check the command
13453 line argument "-disable-font-backend".
13454
13455 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13456 (enum font_property_index): New members FONT_DPI_INDEX,
13457 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13458 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13459 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13460 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13461 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13462 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13463 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13464 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13465 (struct font_spec, struct font_entity): New structs.
13466 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13467 (struct font): Many members from old "struct font_info" moved to
13468 here. Members font and entity deleted.
13469 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13470 the new font-related objects.
13471 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13472 (CHECK_FONT_GET_OBJECT): Likewise.
13473 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13474 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13475 (struct font_driver): New members case_sensitive anc check. Type
13476 of the member list and open changed.
13477 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13478 (font_symbolic_width, font_find_object, font_get_spec)
13479 (font_set_lface_from_name): Delete extern.
13480 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13481
13482 * font.c: Include <strings.h>.
13483 (enable_font_backend): Delete it.
13484 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13485 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13486 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13487 (null_string): Delete it.
13488 (null_vector): Make it static.
13489 (font_family_alist): Delete it.
13490 (Qnormal): Extern it.
13491 (QCextra, QClanguage): Delete it.
13492 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13493 (font_make_spec, font_make_entity, font_make_object)
13494 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13495 the string. Callers changed.
13496 (font_pixel_size): Adjusted for the format change of font-related
13497 objects.
13498 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13499 (font_style_to_value, font_style_symbolic): New function.
13500 (build_font_family_alist): Delete it.
13501 (font_registry_charsets): Use Fassoc_string instead of
13502 assq_no_quit.
13503 (font_prop_validate_symbol): Don't return null_string.
13504 (font_prop_validate_style): Adjusted for the change of
13505 style-related values in a font vector.
13506 (font_property_table): Delete entries for QClanguage and
13507 QCantialias, add entries for QCavgwidth.
13508 (get_font_prop_index): Delete the 2nd argument FROM.
13509 (font_prop_validate): Arguments changed.
13510 (font_put_extra): Adjusted for the change of font-related objects.
13511 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13512 (font_parse_fcname, font_unparse_fcname)
13513 (font_prepare_composition): Likewise.
13514 (font_parse_family_registry): Renamed from font_merge_old_spec.
13515 (otf_open): Delete the 1st arg entity.
13516 (font_otf_capability): Adjusted for the above change.
13517 (font_score): New arg alternate_families. Adjusted for the change
13518 of font-related objects.
13519 (font_sort_entites): New arg best_only.
13520 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13521 Delete them.
13522 (font_match_p): Check alternate families.
13523 (font_find_object): Delete it.
13524 (font_check_object): New function.
13525 (font_clear_cache): Adjusted for the change of font-related objects.
13526 (font_delete_unmatched): New arg.
13527 (font_list_entities): Call font_driver->list with a spec that
13528 doesn't specify style-related properties.
13529 (font_matching_entity): Arguments changed. Caller changed.
13530 (font_open_entity): Adjusted for the change of font-related objects.
13531 (font_close_object, font_has_char, font_encode_char)
13532 (font_get_name, font_get_spec): Likewise.
13533 (font_spec_from_name, font_clear_prop, font_update_lface):
13534 New functions.
13535 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13536 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13537 (font_at): Adjusted for the change of font-related objects.
13538 (font_range): New function.
13539 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13540 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13541 (Fcopy_font_spec, Fmerge_font_spec): New function.
13542 (Ffont_family_list): Renamed from list-families.
13543 (Finternal_set_font_style_table): Arguments changed.
13544 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13545 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13546 change of font-related objects.
13547 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13548
13549 * fontset.h (struct font_info): Delete it. Most members go to
13550 struct font.
13551 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13552 (enum FONT_SPEC_INDEX): Delete it.
13553 (font_info, list_fonts_func, load_font_func, query_font_func)
13554 (set_frame_fontset_func, find_ccl_program_func)
13555 (get_font_repertory_func, new_fontset_from_font_name): Delete
13556 externs.
13557 (fontset_from_font_name): Extern it.
13558 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13559 (FONT_INFO_FROM_FACE): Deleted.
13560 (face_for_font): Adjust prototype.
13561
13562 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13563 conditionals. Don't check enable_font_backend. Delete all codes
13564 used only when USE_FONT_BACKEND is not defined.
13565 (get_font_info_func, list_font_func, load_font_func)
13566 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13567 (get_font_repertory_func): Delete them.
13568 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13569 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13570 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13571 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13572 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13573 (fontset_compare_rfontdef): New function.
13574 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13575 rfont-defs by qsort. Adjusted for the change of font-group vector.
13576 (load_font_get_repertory): Deleted.
13577 (fontset_find_font): Use new macros to ref/set elements of
13578 font-def and rfont-def.
13579 (fontset_font): Fix the timing of remembering that no font for C.
13580 (free_face_fontset): Do nothing if the face has no fontset.
13581 (face_suitable_for_char_p): Use new macros to ref/set elements of
13582 rfont-def.
13583 (face_for_char): Likewise. Call face_for_char with font_object.
13584 (fs_load_font): Delete. Delete #pragma surrounding it.
13585 (fs_query_fontset): Use strcasecmp instead of strcmp.
13586 (generate_ascii_font_name): Adjusted for the format change of
13587 font-spec.
13588 (Fset_fontset_font): Likewise. Use new macros to set elements of
13589 font-def.
13590 (Fnew_fontset): Use font_unparse_xlfd to generate
13591 FONTSET_ASCII (fontset).
13592 (new_fontset_from_font_name): Deleted.
13593 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13594 a fontset is already created for the font. FIx updating of
13595 Vfontset_alias_alist.
13596 (fontset_ascii_font): Deleted.
13597 (Ffont_info): Adjusted for the format change of font-spec.
13598 (Finternal_char_font): Likewise.
13599 (Ffontset_info): Likewise.
13600 (syms_of_fontset): Don't check load_font_func.
13601
13602 * fns.c (internal_equal): Handle PREV_FONT.
13603
13604 * frame.h: Delete USE_FONT_BACKEND conditional.
13605
13606 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13607 conditionals. Don't check enable_font_backend. Delete all codes
13608 used only when USE_FONT_BACKEND is not defined.
13609 (x_set_font): Call x_new_font, not x_new_fontset2.
13610 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13611 already set for the frame.
13612
13613 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13614 a font-entity by font_make_entity. Use font_intern_prop instead
13615 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13616 font property. If a font is scalable, set avgwidth property to 0.
13617 Set font-entity property by font_put_extra.
13618 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13619 (ffont_driver): Adjusted for the change of struct font_driver.
13620 (ftfont_spec_pattern): New function.
13621 (ftfont_list): Return a list, not vector.
13622 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13623 (ftfont_list_family): Don't downcase names.
13624 (ftfont_free_entity): Deleted.
13625 (ftfont_open): Return a font-object. Adjusted for the change of
13626 struct font. Get underline_thickness and underline_position from
13627 font property. Don't update dpyinfo->smallest_font_height and
13628 dpyinfo->smallest_char_width.
13629 (ftfont_close): Don't free `struct font'.
13630 (ftfont_has_char): Adjusted for the format change of font-entity.
13631 (ftfont_encode_char, ftfont_text_extents): Likewise.
13632
13633 * ftxfont.c (ftxfont_list): Return a list, not vector.
13634 (ftxfont_open): Return a font-object. Adjusted for the change of
13635 struct font. Get underline_thickness and underline_position from
13636 font property. Don't update dpyinfo->smallest_font_height and
13637 dpyinfo->smallest_char_width.
13638 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13639 (ftxfont_draw): Adjusted for the change of struct font.
13640
13641 * image.c (image_ascent): Don't include "charset.h". Include
13642 "character.h" and "font.h".
13643
13644 * lisp.h (enum pvec_type): New member PREV_FONT.
13645 (Fassoc_string): EXFUN it.
13646
13647 * print.c: Include font.h.
13648 (print_object): Handle font-related objects.
13649
13650 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13651 conditionals. Don't check enable_font_backend. Delete all codes
13652 used only when USE_FONT_BACKEND is not defined.
13653 (handle_auto_composed_prop): Do nothing if it->f is not on a
13654 window system. Check how many following characters can be
13655 displayed by the same font.
13656 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13657 'struct font *'.
13658 (get_char_face_and_encoding): Assign the whole encoding task to
13659 the `encode-char' method of a font driver.
13660 (fill_composite_glyph_string): Adjusted for the change of `struct
13661 face' and `struct glyph_string'.
13662 (fill_glyph_string): Likewise.
13663 (get_per_char_metric): Arguments changed.
13664 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13665 and `struct glyph_string'.
13666 (produce_stretch_glyph, calc_line_height_property)
13667 (x_produce_glyphs): Likewise.
13668
13669 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13670 conditionals. Don't check enable_font_backend. Delete all codes
13671 used only when USE_FONT_BACKEND is not defined. Use
13672 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13673 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13674 (Qp): Extern them.
13675 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13676 Deleted.
13677 (struct font_name): Deleted.
13678 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13679 (compare_fonts_by_sort_order): New function.
13680 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13681 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13682 Deleted.
13683 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13684 compare_fonts_by_sort_order.
13685 (Fx_font_family_list): Call Ffont_family_list.
13686 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13687 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13688 (face_symbolic_slant, face_symbolic_swidth)
13689 (split_font_name_into_vector, build_font_name_from_vector)
13690 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13691 (font_rescale_ratio, split_font_name, build_font_name)
13692 (free_font_names, sort_fonts, x_face_list_fonts)
13693 (face_font_available_p, sorted_font_list, cmp_font_names)
13694 (font_list_1, concat_font_list, font_list, remove_duplicates):
13695 Deleted.
13696 (Fx_list_fonts): Use Ffont_list.
13697 (LFACE_AVGWIDTH): Deleted.
13698 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13699 by FONTP.
13700 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13701 (set_lface_from_font_name): Delete it.
13702 (set_lface_from_font): Renamed from
13703 set_lface_from_font_and_fontset. Caller changed. Don't set
13704 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13705 for face.
13706 (merge_face_vectors): Copy font-spec if necessary.
13707 Clear properties of the font-spec if necessary.
13708 (merge_face_ref): Clear properties of the font-spec if necessary.
13709 (Finternal_set_lisp_face_attribute): Likewise.
13710 (set_font_frame_param): Use font_load_for_lface to load a
13711 font-object, and call Fmodify_frame_parameters with it.
13712 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13713 font name by Ffont_xlfd_name.
13714 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13715 QCslant, and QCwidth.
13716 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13717 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13718 Compare fonts by EQ.
13719 (lookup_non_ascii_face): Deleted.
13720 (face_for_font): The 2nd argument changed.
13721 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13722 Check atomic font properties by case insensitive.
13723 (realize_non_ascii_face): Set face->overstrike correctly.
13724 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13725 (dump_realized_face): Get font name from
13726 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13727
13728 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13729 conditionals. Don't check enable_font_backend. Delete all codes
13730 used only when USE_FONT_BACKEND is not defined.
13731 (xic_create_xfontset): Original code deleted and renamed from
13732 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13733 (x_make_gc): Don't set GCFont in GCs.
13734 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13735 opened by "fixed".
13736 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13737 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13738 get_font_repertory_func.
13739
13740 * xfont.c: Include <stdlib.h> and "ccl.h".
13741 (struct xfont_info): New structure.
13742 (xfont_query_font): Deleted.
13743 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13744 moved from xterm.c.
13745 (xfont_driver): Adjusted for the change of struct font_driver.
13746 (compare_font_names): New function.
13747 (xfont_list_pattern): Sort font names case insensitively. Make
13748 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13749 (xfont_list): Return a list, not vector.
13750 (xfont_match): If the font doesn't have QCname property, generate
13751 a name from the other font properties.
13752 (xfont_open): Return a font-object. Adjusted for the change of
13753 struct font. Get underline_thickness and underline_position from
13754 font property. Don't update dpyinfo->smallest_font_height and
13755 dpyinfo->smallest_char_width.
13756 (xfont_close): Don't free struct font.
13757 (xfont_prepare_face): Adjusted for the change of struct font.
13758 (xfont_done_face): Deleted.
13759 (xfont_has_char): Adjusted for the change of struct font.
13760 (xfont_encode_char, xfont_draw): Likewise.
13761 (xfont_check): New function.
13762
13763 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13764 callback function.
13765 (xftfont_match): Adjusted for the format change of font-entity.
13766 (xftfont_open): Adjusted for the format change of font-entity and
13767 font-object. Adjusted for the change of struct font. Return a
13768 font-object. Don't update dpyinfo->smallest_font_height and
13769 dpyinfo->smallest_char_width.
13770 (xftfont_close): Block input while calling XftFontClose.
13771 (xftfont_prepare_face): Don't block input while calling
13772 xftfont_get_colors. Adjusted for the change of struct font.
13773 (xftfont_shape): Return value of error case fixed.
13774
13775 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13776
13777 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13778 conditionals.
13779 (FONT_WIDTH): Return (f)->max_width.
13780 (struct x_display_info): Delete member `font'.
13781 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13782 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13783 (struct x_output): Change type of `font' to `struct font *'.
13784
13785 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13786 conditionals. Don't check enable_font_backend. Delete all codes
13787 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13788 (x_per_char_metric, x_encode_char): Deleted.
13789 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13790 (x_compute_glyph_string_overhangs): Adjusted for the change of
13791 `struct face'.
13792 (x_draw_glyph_string_foreground)
13793 (x_draw_composite_glyph_string_foreground): Likewise.
13794 (x_draw_glyph_string): Likewise. Use font->underline_position and
13795 font->underline_thickness.
13796 (x_new_font): Renamed from x_new_fontset2.
13797 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13798 (x_check_font): Call `check' method of a font driver.
13799 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13800 (x_query_font, x_get_font_repertory): Deleted.
13801 (x_find_ccl_program): Renamed and moved to xfont.c.
13802 (x_redisplay_interface): Adjusted for the change of `struct
13803 redisplay_interface'.
13804
13805 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13806 conditionals. Don't check enable_font_backend. Delete all codes
13807 used only when USE_FONT_BACKEND is not defined. Surround non-used
13808 code by "#ifdef OLD_FONT" and "endif".
13809 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13810
13811 * w32font.h (struct w32font_info): New member.
13812 (FONT_COMPAT): New macro.
13813 (w32font_open_internal): Prototype adjusted.
13814
13815 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13816 OLD_FONT" and "endif".
13817
13818 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13819 conditionals. Don't check enable_font_backend. Delete all codes
13820 used only when USE_FONT_BACKEND is not defined.
13821 (w32font_open): Return a font-object. Make a font-object by
13822 font_make_object. Adjusted for the change of struct w32font_info.
13823 (w32font_close): Don't free struct font. Adjusted for the change
13824 of struct w32font_info.
13825 (w32font_encode_char, w32font_text_extents, w32font_draw):
13826 Adjusted for the change of struct w32font_info.
13827 (w32font_draw): Likewise.
13828 (w32font_list_internal): Return a list, not vector.
13829 (w32font_open_internal): Change the 4th arg to font-object.
13830 Adjusted for the change of struct w32font_info and font-object format.
13831 (add_font_name_to_list): Don't downcase names.
13832 (w32_enumfont_pattern_entity): Make a font-entity by
13833 font_make_entity. Adjusted for the format change of font-entity.
13834 Use FONT_SET_STYLE to set a style-related font property. If a
13835 font is scalable, set avgwidth property to 0. Set font-entity
13836 property by font_put_extra.
13837 (font_matches_spec): Adjusted for the format change of font-entity.
13838 (w32_weight_table, w32_decode_weight): New variables.
13839 (w32_encode_weight): New function.
13840 (fill_in_logfont): Adjusted for the format change of font-spec.
13841 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13842 weight value.
13843 (w32font_driver): Adjusted for the change of struct font_driver.
13844
13845 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13846 conditionals. Don't check enable_font_backend. Surround non-used
13847 code by "#ifdef OLD_FONT" and "endif".
13848 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13849 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13850
13851 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13852 conditionals. Don't check enable_font_backend. Delete all codes
13853 used only when USE_FONT_BACKEND is not defined. Surround non-used
13854 code by "#ifdef OLD_FONT" and "endif".
13855
13856 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13857 (uniscribe_open): Return value changed to font-object.
13858 Adjusted for the format change of font-object.
13859 (uniscribe_otf_capability): Adjusted for the change of struct font.
13860 (add_opentype_font_name_to_list): Don't downcase names.
13861 (uniscribe_font_driver): Adjusted for the change of struct
13862 font_driver.
13863
138642008-05-13 Chong Yidong <cyd@stupidchicken.com>
13865
13866 * dispnew.c (update_frame_1): Check if tty output is still valid
13867 before flushing it.
13868
138692008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13870
13871 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13872 to Gtk+ menus.
13873
138742008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13875
13876 * dired.c (file_name_completion): Tweak the code so as to always do it
13877 in a single pass. Tighten the scope of some variables.
13878
13879 * dired.c (Qdefault_directory): New var.
13880 (file_name_completion): Use it instead of Fexpand_file_name.
13881 (syms_of_dired): Initialize it.
13882
138832008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13884
13885 * fileio.c (double_dollars): Remove dead code.
13886
138872008-05-10 Eli Zaretskii <eliz@gnu.org>
13888
13889 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13890 Mention w32-get-true-file-attributes in doc string.
13891
13892 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13893
138942008-05-09 Glenn Morris <rgm@gnu.org>
13895
13896 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13897 2008-04-23.
13898
138992008-05-09 Eli Zaretskii <eliz@gnu.org>
13900
13901 Support for reporting owner and group of each file on MS-Windows:
13902 * dired.c (stat_uname, stat_gname): New functions, with special
13903 implementation for w32.
13904 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13905
13906 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13907 (dflt_group_name): New static variable.
13908 (dflt_group): Rename from the_group.
13909 (init_user_info): Init dflt_group fields. Get user's group name
13910 from LookupAccountSid.
13911 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13912 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13913 New initialization states.
13914 (globals_of_w32): Initialize them to zero. Initialize the default
13915 group name to "None".
13916 (GetFileSecurity_Name): New global var, the name of the function
13917 to call for GetFileSecurity.
13918 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13919 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13920 (get_file_security, get_security_descriptor_owner)
13921 (get_security_descriptor_group, is_valid_sid)
13922 (get_file_security_desc, get_rid, get_name_and_id)
13923 (get_file_owner_and_group): New functions.
13924 (stat): Use get_file_security_desc and get_file_owner_and_group to
13925 report the owner and primary group of each file. Don't ignore the
13926 high 32 bits of file's size, now that st_size is 64-bit wide.
13927 Fix test when to get true file attributes.
13928 (init_user_info): Use get_rid instead of equivalent inline code.
13929 (fstat): Don't ignore the high 32 bits of file's size.
13930
139312008-05-09 Chong Yidong <cyd@stupidchicken.com>
13932
13933 * image.c (png_load): Use correct bit-depth for setting background
13934 color.
13935
139362008-05-08 Eli Zaretskii <eliz@gnu.org>
13937
13938 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13939 epa-hook.elc.
13940
139412008-05-08 Juanma Barranquero <lekktu@gmail.com>
13942
13943 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13944
139452008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13946
13947 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13948 because the original parameters are in pure storage now.
13949 (mac_window): Remove unused params. Update callers.
13950
139512008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13952
13953 * lread.c (substitute_object_recurse): Use lower-level primitives.
13954 Don't signal errors when traversing sub-char-tables.
13955 Don't loop over all the possible characters when traversing char-tables.
13956
13957 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13958 just like we do in print.c.
13959
139602008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13961
13962 * minibuf.c (Ftry_completion): Remove code left over from when we used
13963 scmp instead of Fcompare_strings.
13964
139652008-05-04 Juanma Barranquero <lekktu@gmail.com>
13966
13967 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13968
139692008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13970
13971 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13972 Create bitmap context in native byte order.
13973
13974 * macterm.c (XDrawLine)
13975 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13976 context in native byte order.
13977
139782008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13979
13980 * config.in: Regenerate.
13981
13982 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13983 New definitions for Image I/O support.
13984 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13985 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13986 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13987 (mac_data_provider_release_data, image_load_image_io)
13988 [USE_MAC_IMAGE_IO]: New functions.
13989 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13990 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13991 (init_image_func_pointer) [MAC_OSX]: Remove function.
13992 (image_load_quartz2d) [MAC_OSX]: Check availability of
13993 CGImageCreateWithPNGDataProvider at compile time.
13994 Use lowercase `false' for boolean constant.
13995 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13996 Use image_load_image_io.
13997 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13998 Don't check MyCGImageCreateWithPNGDataProvider.
13999 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14000 Don't call init_image_func_pointer.
14001
14002 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14003
14004 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14005 Make variable non-static.
14006 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14007 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14008
14009 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14010 (RED_FROM_ULONG): Mask off higher bits.
14011 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14012
14013 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14014 Include AvailabilityMacros.h.
14015 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14016 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14017
140182008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14019
14020 * chartab.c (Fset_char_table_range): If range is t, really set all
14021 chars to that value.
14022
140232008-05-03 Eli Zaretskii <eliz@gnu.org>
14024
14025 * dired.c (Ffile_attributes): Don't allow the device number become
14026 negative.
14027
140282008-05-02 Daiki Ueno <ueno@unixuser.org>
14029
14030 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14031
140322008-05-02 Juri Linkov <juri@jurta.org>
14033
14034 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14035 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14036 DEFAULT argument as a list of default values in docstrings.
14037
140382008-05-01 Chong Yidong <cyd@stupidchicken.com>
14039
14040 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14041
140422008-05-01 Martin Rudalics <rudalics@gmx.at>
14043
14044 * dispnew.c (change_frame_size_1): Preserve small windows when
14045 shrinking frames by calling set_window_height|width with third
14046 arg 2.
14047
14048 * window.h (struct window): Replace field too_small_ok by field
14049 resize_proportionally.
14050
14051 * window.c (make_window): Initialize resize_proportionally.
14052 (enlarge_window): Temporarily set resize_proportionally to make
14053 sure that shrink_windows does scale the window proportionally.
14054 (shrink_windows): When window has resize_proportionally set try
14055 to shrink it proportionally by stealing from other windows.
14056 (struct saved_window, Fset_window_configuration)
14057 (compare_window_configurations): Handle resize_proportionally.
14058 (WINDOW_TOTAL_SIZE): New macro.
14059 (window_min_size, shrink_windows, size_window): Use it.
14060 (check_min_window_sizes): Remove. Invalid values of
14061 window-min-height|width are handled by window_min_size_2 now.
14062 (size_window, Fsplit_window, enlarge_window)
14063 (adjust_window_trailing_edge, grow_mini_window): Don't call
14064 check_min_window_sizes.
14065 (window_min_size_2, window_min_size_1, window_min_size):
14066 New argument safe_p for retrieving "safe" minimum sizes.
14067 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14068 (adjust_window_trailing_edge, grow_mini_window):
14069 Adjust arguments of window_min_size... functions.
14070 (shrink_windows): Argument min_size removed. New argument
14071 safe_p allows shrinking windows to their safe minimum sizes.
14072 Calculate minimum size and decide whether a window shall be
14073 deleted for each window individually.
14074 (size_window): When nodelete_p equals 2, tell shrink_windows to
14075 delete windows only if their new minimum size is no more safe.
14076 (shrink_window_lowest_first): Call window_min_size_1 to make
14077 sure to preserve modeline of bottom-most window when resizing
14078 the minibuffer.
14079 (Fset_window_configuration, Fcurrent_window_configuration)
14080 (compare_window_configurations): Do not handle
14081 window-min-height|width any more.
14082 (syms_of_window): Clarify window-min-height|width doc-strings.
14083
140842008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14085
14086 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14087 some more. Copy some of the code from Ftry_completions.
14088 Remove special case code that dates back to initial revision when the
14089 slash was only added when necessary and that can't trigger nowadays.
14090
140912008-04-27 Kenichi Handa <handa@m17n.org>
14092
14093 * font.c (font_prop_validate): Signal `error' instead of `font'.
14094
140952008-04-29 Jason Rumney <jasonr@gnu.org>
14096
14097 * w32fns.c (Fw32_battery_status): New defun.
14098 (syms_of_w32fns): Defsubr it.
14099
141002008-04-28 Andreas Schwab <schwab@suse.de>
14101
14102 * dired.c (file_name_completion): Fix another mixing of encoded
14103 and decoded names.
14104
141052008-04-28 Juanma Barranquero <lekktu@gmail.com>
14106
14107 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14108
141092008-04-27 Juanma Barranquero <lekktu@gmail.com>
14110
14111 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14112
141132008-04-27 Andreas Schwab <schwab@suse.de>
14114
14115 * dired.c (file_name_completion): Fix inappropriate mixing of
14116 encoded and decoded names.
14117
14118 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14119
14120 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14121
141222008-04-26 Eli Zaretskii <eliz@gnu.org>
14123
14124 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14125 2008-03-31, it's not needed anymore with `struct stat' definition
14126 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14127 for the same reasons.
14128
141292008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14130
14131 * m/sparc.h: Additional redefinitions for GNU/Linux.
14132
141332008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14134
14135 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14136 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14137 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14138 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14139 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14140 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14141 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14142 Likewise.
14143
14144 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14145 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14146 (mac_ax_number_of_characters): Add externs.
14147 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14148 [USE_MAC_TSM]: Likewise.
14149 (mac_handle_text_input_event) [MAC_OSX]:
14150 Handle kEventTextInputOffsetToPos for no active input area case.
14151 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14152 (mac_handle_document_access_event)
14153 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14154 (install_application_handler) [MAC_OSX]: Register handlers for
14155 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14156 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14157 Register mac_handle_document_access_event.
14158
14159 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14160 Make functions non-static.
14161
141622008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14163
14164 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14165 (read_file_name_completion_ignore_case, insert_default_directory)
14166 (Qdefault_directory): Move to minibuffer.el.
14167 (Fread_file_name): Call the new `read-file-name' instead.
14168
141692008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14170
14171 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14172 Make function non-static.
14173 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14174 Remove function.
14175 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14176 Move to mactoolbox.c.
14177 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14178
14179 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14180 (mac_rect_make): New macro.
14181
14182 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14183 instead of float.
14184 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14185 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14186 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14187 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14188 CGRectMake.
14189 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14190 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14191 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14192 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14193 instead of WindowRef in argument type.
14194 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14195 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14196 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14197 instead of DISPLAY. All uses changed.
14198 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14199 (x_calc_absolute_position): Simplify so as not to use
14200 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14201
14202 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14203 instead of WindowRef in argument type.
14204 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14205 [TARGET_API_MAC_CARBON]: Remove externs.
14206 (create_apple_event, mac_event_parameters_to_lisp)
14207 [TARGET_API_MAC_CARBON]: Add externs.
14208
14209 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14210 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14211 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14212 is clicked.
14213 (x_activate_menubar): Remove extern for saved_menu_event_location.
14214 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14215 Move from mac.c.
14216
142172008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14218
14219 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14220 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14221
142222008-04-23 Jason Rumney <jasonr@gnu.org>
14223
14224 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14225 attributes only for local files.
14226
14227 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14228 default to Qlocal.
14229
142302008-04-22 Juri Linkov <juri@jurta.org>
14231
14232 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14233 read-buffer-to-switch instead of using the letter "B".
14234
142352008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14236
14237 * fileio.c (Qdefault_directory): New variable.
14238 (Fread_file_name): Use it to pass `dir' to the completion functions.
14239
142402008-04-20 Chong Yidong <cyd@stupidchicken.com>
14241
14242 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14243
142442008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14245
14246 * keyboard.c (Vpre_help_message): Remove.
14247 (show_help_echo): Remove default C code.
14248
14249 * dired.c (directory_files_internal, file_name_completion):
14250 Only call ENCODE_FILE if the string is indeed decoded.
14251
142522008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14253
14254 * Makefile.in (TOOLKIT_DEFINES): Remove.
14255 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14256
142572008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14258
14259 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14260 (mactoolbox.o): New target.
14261
14262 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14263 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14264
14265 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14266 Use mac_set_frame_window_background instead of XSetWindowBackground.
14267 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14268 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14269 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14270 instead of SetWindowTitleWithCFString.
14271 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14272 Move function to mactoolbox.c.
14273 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14274 Use mac_set_window_modified instead of SetWindowModified.
14275 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14276 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14277 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14278 FrontNonFloatingWindow. Use mac_activate_window instead of
14279 ActivateWindow. Use mac_active_non_floating_window instead of
14280 ActiveNonFloatingWindow.
14281 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14282 Use mac_show_hourglass and mac_hide_hourglass.
14283 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14284 instead of GetGlobalMouse.
14285 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14286 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14287 Use mac_bring_window_to_front instead of BringToFront.
14288 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14289 mactoolbox.c.
14290 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14291 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14292 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14293 mactoolbox.c.
14294
14295 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14296 (XtPointer): Move typedef from macmenu.c.
14297 (enum button_type): Move enum from macmenu.c.
14298 (widget_value): Move typedef from macmenu.c.
14299 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14300 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14301 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14302 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14303 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14304 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14305 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14306 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14307 (Selection): Move typedef from macselect.c.
14308 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14309 macterm.c.
14310 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14311 (mac_is_window_collapsed, mac_bring_window_to_front)
14312 (mac_send_window_behind, mac_hide_window, mac_show_window)
14313 (mac_collapse_window, mac_front_non_floating_window)
14314 (mac_active_non_floating_window, mac_activate_window)
14315 (mac_move_window_structure, mac_move_window, mac_size_window)
14316 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14317
14318 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14319 (enum mac_menu_kind): Move enum to mactoolbox.c.
14320 (min_menu_id): Move variable to mactoolbox.c.
14321 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14322 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14323 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14324 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14325 [TARGET_API_MAC_CARBON]: Likewise.
14326 (XtPointer): Move typedef to macgui.h.
14327 (enum button_type): Move enum to macgui.h.
14328 (widget_value): Move typedef to macgui.h.
14329 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14330 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14331 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14332 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14333 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14334 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14335 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14336 (popup_activated_flag): Make variable non-static.
14337 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14338 (add_menu_item, fill_menu, dispose_menus):
14339 Move functions to mactoolbox.c.
14340 (restore_show_help_function, menu_target_item_handler)
14341 (install_menu_target_item_handler, mac_handle_dialog_event)
14342 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14343 [TARGET_API_MAC_CARBON]: Likewise.
14344 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14345 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14346 (find_and_call_menu_selection, name_is_separator): Make function
14347 non-static.
14348 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14349 to mactoolbox.c.
14350 (set_frame_menubar): Don't call install_menu_quit_handler.
14351 (menu_item_selection): New variable.
14352 (mac_menu_show): Use create_and_show_popup_menu.
14353 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14354 selection but set variable menu_item_selection. All uses changed.
14355 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14356 Call install_menu_quit_handler. Move to mactoolbox.c.
14357
14358 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14359 (Selection): Move typedef to macgui.h.
14360 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14361 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14362 Make variables non-static.
14363 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14364 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14365 Make functions non-static.
14366 (Vmac_service_selection) [MAC_OSX]: Likewise.
14367 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14368 (mac_valid_selection_target_p, mac_clear_selection)
14369 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14370 (mac_put_selection_value, mac_selection_has_target_p)
14371 (mac_get_selection_value, mac_get_selection_target_list)
14372 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14373 Move functions to mactoolbox.c.
14374 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14375 Likewise.
14376 (copy_scrap_flavor_data, mac_handle_service_event)
14377 (install_service_handler) [MAC_OSX]: Likewise.
14378 (syms_of_macselect) <Vmac_dnd_known_types>:
14379 Use mac_dnd_default_known_types.
14380
14381 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14382 Move to mactoolbox.c.
14383 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14384 (Fx_selection_owner_p): Add EXFUN.
14385 (install_window_handler, remove_window_handler, XSetWindowBackground):
14386 Remove externs.
14387 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14388 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14389 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14390 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14391 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14392 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14393 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14394 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14395 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14396 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14397 (mac_valid_selection_target_p, mac_clear_selection)
14398 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14399 (mac_put_selection_value, mac_selection_has_target_p)
14400 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14401 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14402 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14403 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14404 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14405 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14406 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14407 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14408 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14409
14410 * mactoolbox.c: New file.
14411
144122008-04-18 Jason Rumney <jasonr@gnu.org>
14413
14414 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14415
144162008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14417
14418 * character.c (Fmultibyte_char_to_unibyte):
14419 Return latin1 chars unchanged.
14420
14421 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14422 relocated if it points to `name'.
14423
144242008-04-17 Kenichi Handa <handa@m17n.org>
14425
14426 * data.c (Faset): Allow setting a multibyte character in an
14427 ASCII-only unibyte string.
14428
14429 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14430
144312008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14432
14433 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14434 done in config.h.
14435
144362008-04-16 Juanma Barranquero <lekktu@gmail.com>
14437
14438 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14439 (Fchar_direction): Add usage in the docstring.
14440
144412008-04-15 Chong Yidong <cyd@stupidchicken.com>
14442
14443 * keyboard.c (read_key_sequence): Remove always-true checks.
14444
144452008-04-14 Jason Rumney <jasonr@gnu.org>
14446
14447 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14448 compatibility struct, for better underline positioning.
14449
144502008-04-13 David Hansen <david.hansen@gmx.net>
14451
14452 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14453 string.
14454
144552008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14456
14457 * m/hp800.h (XUINT, XSET): Remove.
14458
144592008-04-12 Juanma Barranquero <lekktu@gmail.com>
14460
14461 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14462 previous change.
14463
144642008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14465
14466 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14467 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14468
144692008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14470
14471 * keymap.h (map_keymap_canonical): Declare.
14472 * xmenu.c (single_keymap_panes): Use it.
14473
144742008-04-11 Glenn Morris <rgm@gnu.org>
14475
14476 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14477 set the target's value to that of the alias.
14478
144792008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14480
14481 * term.c (set_tty_color_mode): Left over typo.
14482
144832008-04-10 Michael Albinus <michael.albinus@gmx.de>
14484
14485 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14486 only after check for file name handler functions. Signal, when
14487 native functionality is not supported.
14488 (syms_of_fileio): Declare it unconditionally.
14489
144902008-04-10 Jason Rumney <jasonr@gnu.org>
14491
14492 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14493 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14494
14495 * w32.c (logon_network_drive): Also logon to remote drives that
14496 are mapped to drive letters.
14497
144982008-04-10 Glenn Morris <rgm@gnu.org>
14499
14500 * xdisp.c (truncate-partial-width-windows): Doc fix.
14501
145022008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14503
14504 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14505 Move functions to minibuffer.el.
14506 (syms_of_fileio): Don't declare them.
14507
145082008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14509
14510 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14511 (syms_of_minibuf): Remove its initialization.
14512
14513 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14514
145152008-04-09 Juanma Barranquero <lekktu@gmail.com>
14516
14517 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14518
145192008-04-09 Jason Rumney <jasonr@gnu.org>
14520
14521 * makefile.w32-in (distclean): Delete makefile too.
14522 (maintainer-clean): New target.
14523
14524 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14525
14526 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14527 for new font backend and composite cases.
14528
145292008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14530
14531 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14532 Most of the code moved to run_timers.
14533 (do_pending_atimers): Call run_timers.
14534 (run_timers): New function.
14535
14536 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14537 run atimers.
14538
14539 * process.c (wait_reading_process_output): The same as above.
14540
145412008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14542
14543 * minibuf.c (last_exact_completion): Remove variable.
14544 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14545 (complete_and_exit_1, complete_and_exit_2)
14546 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14547 (Fdisplay_completion_list, display_completion_list_1)
14548 (Fminibuffer_completion_help, Fself_insert_and_exit)
14549 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14550 minibuffer.el.
14551 (syms_of_minibuf): Remove corresponding initializations.
14552
14553 * keyboard.c (Qdeactivate_mark): New var.
14554 (command_loop_1): Use it to call `deactivate-mark'.
14555 (syms_of_keyboard): Initialize it.
14556
14557 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14558 to another frame.
14559 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14560 Don't call set_tty_color_mode.
14561 (store_frame_param): Reset previous_frame rather than call
14562 set_tty_color_mode.
14563 * term.c (set_tty_color_mode): Rewrite.
14564 * dispextern.h (set_tty_color_mode): New type.
14565 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14566
145672008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14568
14569 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14570 for generic chars, which do not exist any more in emacs-unicode.
14571
145722008-04-08 Michael Albinus <michael.albinus@gmx.de>
14573
14574 * coding.c (detect_coding_emacs_mule)
14575 (Ffind_operation_coding_system): Fix typo.
14576
145772008-04-08 Jason Rumney <jasonr@gnu.org>
14578
14579 * w32uniscribe.c (SNAME): Extract only symbol name.
14580
14581 * w32font.h (struct w32_metric_cache): New struct.
14582 (w32font_info): Use it.
14583 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14584 (CACHE_BLOCKSIZE): New constants.
14585
14586 * w32font.c (Qja, Qko, Qzh): New symbols.
14587 (syms_of_w32font): Initialise them.
14588 (font_matches_spec): Use them to filter by language.
14589 (recompute_cached_metrics): Remove function.
14590 (compute_metrics, clear_cached_metrics): New functions.
14591 (w32font_encode_char): Use them to manage metric cache.
14592 (w32font_text_extents): Cache metrics for all glyphs on demand.
14593 Delay converting glyph indices to WORD until needed.
14594 (w32font_open_internal): Initialize metric cache to empty.
14595 (registry_to_w32_charset): Charset should always be a symbol.
14596 (fill_in_logfont, list_all_matching_fonts): Family should
14597 always be a symbol.
14598
145992008-04-06 Jason Rumney <jasonr@gnu.org>
14600
14601 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14602 Give up if glyph indices not supported. Use uniscribe obtained
14603 ABC widths for individual metrics. Map glyph clusters back to
14604 characters using fClusterStart flag. Return number of glyphs
14605 produced, not chars processed.
14606 (uniscribe_shape): Map char at FROM to current glyph.
14607
146082008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14609
14610 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14611 Use SetMenuItemHierarchicalMenu.
14612
146132008-04-05 Jason Rumney <jasonr@gnu.org>
14614
14615 * image.c (pbm_load): Allow color values up to 65535.
14616 Throw an error if max_color_idx is outside the supported range.
14617 Report an error when image size is invalid.
14618 Read two bytes at a time when raw images have max_color_idx above 255.
14619
aac0c6e3
MR
146202008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14621
14622 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14623 append "CCL: Quitted" when the CCL program is quitted.
14624 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14625
14626 * ccl.h (struct ccl_program): New member quit_silently.
14627
146282008-04-05 Chong Yidong <cyd@stupidchicken.com>
14629
14630 * search.c (compile_pattern_1): Treat non-nil and non-string of
14631 search-spaces-regexp as nil.
14632
14633 * minibuf.c (Fassoc_string): Tweak docstring.
14634
146352008-04-05 Eli Zaretskii <eliz@gnu.org>
14636
14637 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14638 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14639 2008-03-14 to force inode be positive.
14640
14641 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14642 _S_* ones, since we now use our own sys/stat.h.
14643 (stat, fstat): Don't mangle the inode number.
14644 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14645
146462008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14647
14648 * frame.h (struct frame): Give one more bit to `visible' since we use
14649 values larger than 1 to indicate obscured frames on ttys.
14650
14651 * keymap.c (Qkeymap_canonicalize): New var.
14652 (Fmap_keymap_internal): New fun.
14653 (describe_map): Use keymap-canonicalize.
14654
14655 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14656 (Fundo_boundary): Set them.
14657 (syms_of_undo): Initialize them.
14658 (record_point): Use them instead of last_point_position*.
14659 (last_undo_buffer): Change type.
14660
146612008-04-04 Jason Rumney <jasonr@gnu.org>
14662
14663 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14664 (recompute_cached_metrics): Don't set ascent and descent per char.
14665
14666 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14667 (uniscribe_check_otf): Add GC protection before consing.
14668 Rearrange loop for counting features.
14669
146702008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14671
14672 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14673 buffer with byte-size of source buffer.
14674
146752008-04-03 Chong Yidong <cyd@stupidchicken.com>
14676
14677 * callint.c (Fcall_interactively): Handle temporary region even
14678 when shift-select-mode is off.
14679
146802008-04-03 Jason Rumney <jasonr@gnu.org>
14681
14682 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14683
146842008-04-03 Kenichi Handa <handa@m17n.org>
14685
14686 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14687 (CATEGORY_MASK_UTF_16): Likewise.
14688 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14689 binary file.
14690 (detect_coding): Add null-byte detection for a binary file.
14691 (detect_coding_system): Likewise.
14692
146932008-04-03 Jason Rumney <jasonr@gnu.org>
14694
14695 * w32uniscribe.c: New file.
14696
14697 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14698
14699 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14700
14701 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14702 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14703 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14704 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14705 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14706 (Qphonetic): New symbols.
14707 (syms_of_w32font): Initialize them.
14708 (font_supported_scripts): Use them.
14709 (w32font_list_family): List all charsets.
14710 (w32font_text_extents, recompute_cached_metrics): Fix metric
14711 calculations.
14712 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14713 Give opentype fonts their own format.
14714 (font_matches_spec): New arguments backend and logfont.
14715 Handle :otf spec for uniscribe backend.
14716 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14717 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14718
14719 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14720 font backend.
14721 (globals_of_w32fns): Initialize uniscribe font backend.
14722
14723 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14724 dependencies.
14725 (w32uniscribe.$(O)): New file to build.
14726 (FONT_OBJ): Include w32uniscribe.$(O).
14727 (LIBS): Add uniscribe libraries.
14728
14729 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14730
147312008-04-02 Chong Yidong <cyd@stupidchicken.com>
14732
14733 * callint.c (Vshift_select_mode): New var.
14734 (Finteractive): Document new ^ spec.
14735 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14736 is present.
14737
14738 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14739 (command_loop_1): Avoid running the direct display versions of
14740 forward-char and backward-char if shift-selection may occur.
14741 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14742 shift-translation takes place.
14743
14744 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14745 avoid clobbering by define-minor-mode.
14746
14747 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14748 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14749
14750 * syntax.c (Fforward_word): Add ^ interactive spec.
14751
14752 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14753 (Fscroll_right): Add ^ interactive spec.
14754
147552008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14756
14757 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14758
14759 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14760
14761 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14762
147632008-03-31 Juri Linkov <juri@jurta.org>
14764
14765 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14766
147672008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14768
14769 * gtkutil.c (xg_set_geometry): Fix indentation.
14770 (xg_resize_outer_widget): Remove.
14771 (x_wm_size_hint_off): Fix indentation.
14772 (xg_frame_set_char_size): Call flush_and_sync after
14773 gtk_window_resize.
14774 (x_wm_set_size_hint): Pass NULL as geometry window to
14775 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14776 Add menu bar and tool bar height to base height.
14777 (xg_update_frame_menubar, free_frame_menubar)
14778 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14779 (update_frame_tool_bar, free_frame_tool_bar):
14780 Change xg_resize_outer_widget to xg_frame_set_char_size.
14781
147822008-03-30 Michael Albinus <michael.albinus@gmx.de>
14783
14784 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14785 (Fdbus_call_method): New parameter TIMEOUT.
14786 (dbus-send-signal): Optimize UNGCPRO call.
14787
147882008-03-29 Juri Linkov <juri@jurta.org>
14789
14790 * window.c (Fdisplay_buffer): Move call to
14791 Vsplit_window_preferred_function out of conditions that check
14792 if window is eligible for vertical splitting.
14793 When Vsplit_window_preferred_function is non-nil, call it and use
14794 its non-nil return value as window. Otherwise, continue doing
14795 vertical splitting using Fsplit_window with arg horflag=nil.
14796 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14797 default value from `split-window' to nil.
14798
147992008-03-29 Juri Linkov <juri@jurta.org>
14800
14801 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14802 for interactive code letters 'b' and 'B'.
14803
148042008-03-29 Eli Zaretskii <eliz@gnu.org>
14805
14806 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14807 multibyte string.
14808
148092008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14810
14811 * keyboard.c (pending_funcalls): New var.
14812 (timer_check): Run it.
14813 (syms_of_keyboard): Initialize it.
14814 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14815 (Vdelete_terminal_functions): New vars.
14816 (syms_of_terminal): Initialize them.
14817 (Fdelete_terminal): Run delete-terminal-functions.
14818 * xdisp.c (safe_eval): Rewrite.
14819 (safe_call2): New fun.
14820 * frame.c (Qdelete_frame_functions): New var.
14821 (syms_of_frame): Initialize it.
14822 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14823 * lisp.h (safe_call2, pending_funcalls): Declare.
14824
148252008-03-28 Andreas Schwab <schwab@suse.de>
14826
14827 * indent.c (Fmove_to_column): Move declaration before statements.
14828
148292008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14830
14831 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14832 (struct frame): Use bit fields for boolean vars.
14833
14834 * process.c (server_accept_connection): Simplify naming.
14835 (emacs_get_tty_pgrp): Use SDATA.
14836
14837 * coding.c (decode_coding_object): Fix last change.
14838
148392008-03-27 Jason Rumney <jasonr@gnu.org>
14840
14841 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14842
148432008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14844
14845 * charset.c (Fdefine_charset_internal): Change the way of
14846 registering charsets in Vcharset_order_list.
14847 (syms_of_charset): Make the charset `eight-bit' supplementary.
14848
148492008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14850
14851 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14852 operations, to avoid having the difference between pointers
14853 overflow.
14854
148552008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14856
14857 * indent.c (check_display_width): New fun.
14858 (scan_for_column): Use it.
14859
14860 * data.c (syms_of_data): Mark most-positive-fixnum and
14861 most-negative-fixnum as constants.
14862
14863 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14864
14865 * indent.c (scan_for_column): Extract from current_column_1.
14866 Merge with the same code from Fmove_to_column.
14867 (current_column_1, Fmove_to_column): Use it.
14868
148692008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14870
14871 * keymap.c (map_keymap_internal): New fun.
14872 (map_keymap): Use it.
14873 (Fmap_keymap_internal): New fun.
14874 (Fmap_keymap): Remove left-out test from before make_save_value.
14875
14876 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14877
14878 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14879 Use XCAR/XCDR.
14880
14881 * process.h (struct Lisp_Process): Remove filter_multibyte.
14882 * process.c (QCfilter_multibyte): Remove.
14883 (setup_process_coding_systems): Don't use filter_multibyte.
14884 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14885 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14886 (Fset_process_filter_multibyte): Change the coding-system to
14887 approximate the previous behavior.
14888 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14889 coding-system.
14890
14891 * coding.c (decode_coding_object): When not decoding into a buffer,
14892 obey the coding system's preference of (uni|multi)byte.
14893
148942008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14895
14896 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14897 every char is changed and has a different byte-length.
14898 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14899 Fix int -> EMACS_INT.
14900
149012008-03-23 David Hansen <david.hansen@gmx.net>
14902
14903 * dbusbind.c (xd_read_message): Remove extra copying of message
14904 strings. Check for NULL `interface' or `member'.
14905
149062008-03-22 Eli Zaretskii <eliz@gnu.org>
14907
14908 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14909 cFileName a file name that includes `?' characters, use the 8+3
14910 alias in cAlternateFileName instead.
14911
149122008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14913
14914 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14915
149162008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14917
14918 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14919 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14920 work on current_buffer only instead (that was already the case
14921 for some of the code anyway).
14922 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14923 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14924 (SET_PT, SET_PT_BOTH): Adjust.
14925 * intervals.h (set_point, temp_set_point, set_point_both)
14926 (temp_set_point_both): Remove redundant declarations.
14927
149282008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14929
14930 * fileio.c (Finsert_file_contents):
14931 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14932 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14933 when buffer != current_buffer anyway.
14934
149352008-03-20 Andreas Schwab <schwab@suse.de>
14936
14937 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14938 as default.
14939
149402008-03-19 Jason Rumney <jasonr@gnu.org>
14941
14942 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14943 (syms_of_w32fns): Initialize them.
14944 (HOURGLASS_ID): New constant.
14945 (x_window_to_frame): Don't check hourglass_window.
14946 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14947 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14948 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14949 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14950 Only change the cursor if hourglass is not active.
14951 (Fx_create_frame): Initialize frame's current_cursor.
14952 (hourglass_atimer): Remove.
14953 (hourglass_started): New function.
14954 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14955 (show_hourglass): Adapt to w32, changing argument to frame.
14956
14957 * w32term.h (struct w32_output): Remove hourglass_window.
14958 Add current_cursor.
14959
14960 * eval.c (call_debugger, Fsignal):
14961 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14962 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14963 (Fexecute_extended_command, cancel_hourglass_unwind):
14964 * minibuf.c (read_minibuf):
14965 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14966
149672008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14968
14969 * window.c (run_funs): New fun.
14970 (run_window_configuration_change_hook): Use it to run the buffer-local
14971 and the global part of the hook.
14972
14973 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14974 (unwind_format_mode_line): Restore selected window.
14975 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14976
149772008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14978
14979 * editfns.c (Fchar_equal): Check they are valid characters.
14980
14981 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14982
149832008-03-17 Andreas Schwab <schwab@suse.de>
14984
14985 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14986 against a charset.
14987
14988 * lisp.h (Fbuffer_list): Declare.
14989
149902008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14991
aac0c6e3
MR
14992 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14993 handlebox_widget is != 0.
14994
149952008-03-16 Juri Linkov <juri@jurta.org>
14996
14997 * callint.c (Fcall_interactively): For interactive code letters
14998 'b' and 'B' put the buffer list into the list of default "future"
14999 values of the minibuffer.
15000
150012008-03-16 Andreas Schwab <schwab@suse.de>
15002
15003 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15004 modifiers.
15005
15006 * regex.c (re_match_2_internal): Correct matching of a charset
15007 against latin-1 characters.
15008
150092008-03-16 Kenichi Handa <handa@m17n.org>
15010
15011 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15012 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15013 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15014 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15015 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15016 CHAR_STRING_ADVANCE.
15017 (produce_chars): Fix for the case that the source and the
15018 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15019 instead of CHAR_STRING_ADVANCE.
15020 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15021 STRING_CHAR_ADVANCE.
15022
150232008-03-15 Andreas Schwab <schwab@suse.de>
15024
15025 * regex.c (re_match_2_internal): Correct matching of eight bit
15026 characters in unibyte strings.
15027
150282008-03-15 Martin Rudalics <rudalics@gmx.at>
15029
15030 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15031 at end of range when it coincides with the end of the buffer.
15032
150332008-03-14 Eli Zaretskii <eliz@gnu.org>
15034
15035 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15036
15037 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15038
150392008-03-14 Jason Rumney <jasonr@gnu.org>
15040
15041 * editfns.c (initial_tz): New variable.
15042 (syms_of_editfns): Initialize it.
15043 (Fset_time_zone_rule): Set it when first called.
15044 Use it when TZSTRING is nil.
15045
15046 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15047 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15048 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15049 (globals_of_w32fns): Initialize them.
15050 (compute_tip_xy): Use them to position tooltips.
15051
150522008-03-14 Glenn Morris <rgm@gnu.org>
15053
15054 * emacs.c (main): Revert previous change.
15055 (standard_args): Revert -internal-script back to -scriptload,
15056 and remove the long-option form.
15057
150582008-03-13 Glenn Morris <rgm@gnu.org>
15059
15060 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15061 Remove option -enable-font-backend.
15062
150632008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15064
15065 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15066
150672008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15068
15069 * xterm.c (x_connection_closed): For GTK: If this is the last
15070 terminal just exit without closing the display.
15071
150722008-03-11 Jason Rumney <jasonr@gnu.org>
15073
15074 * w32font.c (w32font_full_name): Use floor to round.
15075
f0131492 150762008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15077
15078 * sound.c (alsa_configure): Declare vol at beginning of block.
15079
15080 * fontset.c (Ffontset_info): Remove extra semicolon.
15081
150822008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15083
15084 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15085 size of resulting string.
15086
150872008-03-10 Jason Rumney <jasonr@gnu.org>
15088
15089 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15090
150912008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15092
15093 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15094 Don't pretend as if characters with display property haven't been
15095 consumed for string-replacing-string case.
15096
150972008-03-08 Kim F. Storm <storm@cua.dk>
15098
15099 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15100 (get_next_display_element, next_element_from_string)
15101 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15102
151032008-03-08 Andreas Schwab <schwab@suse.de>
15104
15105 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15106
151072008-03-06 Jason Rumney <jasonr@gnu.org>
15108
15109 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15110 when charset not specified. Only translate ANSI to unicode when
15111 font_type is truetype.
15112 (w32font_coverage_ok): New function.
15113 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15114
151152008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15116
15117 * lread.c (Fread_char): Resolve modifiers.
15118 (Fread_char_exclusive): Likewise.
15119
15120 * character.c (char_resolve_modifier_mask): New function.
15121 (char_string): Use char_resolve_modifier_mask.
15122 (Fchar_resolve_modifiers): New function.
15123 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15124 function.
15125
151262008-03-04 Jason Rumney <jasonr@gnu.org>
15127
15128 * makefile.w32-in: Always include w32font.c in the build.
15129 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15130
151312008-03-04 Andreas Schwab <schwab@suse.de>
15132
15133 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15134 (versionclean): Likewise.
15135
151362008-03-04 Juanma Barranquero <lekktu@gmail.com>
15137
15138 * .cvsignore: Add oo.
15139
151402008-03-03 Andreas Schwab <schwab@suse.de>
15141
15142 * coding.c (decode_coding_object): Inhibit gap shrinking while
15143 decoding in place.
15144
151452008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15146
15147 * w32term.c: Remove unused include "gnu.h".
15148 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15149
15150 * gnu.h: Rename to ...
15151 * emacs-icon.h: ... this.
15152 * xterm.c: Use emacs-icon.h instead of gnu.h.
15153 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15154
151552008-03-03 Juanma Barranquero <lekktu@gmail.com>
15156
15157 * w32font.c: Include math.h.
15158
151592008-03-03 Jason Rumney <jasonr@gnu.org>
15160
15161 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15162 Compute options separately.
15163 (w32font_open_internal): Set glyph_idx before caching metrics.
15164
15165 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15166 Define if system headers don't.
15167 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15168 (w32font_encode_char): Don't declare here.
15169
15170 * w32font.c (Quniscribe, QCformat): New symbols.
15171 (syms_of_w32font): Define them.
15172 (w32font_has_char): Indicate uncertainty.
15173 (w32font_encode_char): Encode as glyph point. Make static.
15174 (recompute_cached_metrics): New function.
15175 (w32font_open_internal): Use it. Set font to use glyph points
15176 initially. Set format based on type of font.
15177 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15178 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15179 on it. Set format based on information available here.
15180 (add_font_entity_to_list): Identify backend based on opentype_only.
15181
151822008-03-02 Andreas Schwab <schwab@suse.de>
15183
15184 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15185
15186 * coding.c (decode_coding_big5, produce_chars):
15187 Fix typos in last change.
15188
151892008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15190
15191 * gnu.h: New icon.
15192
151932008-03-02 Kenichi Handa <handa@m17n.org>
15194
15195 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15196 `dos', don't decode '\r' if that is the last in the source.
15197 (decode_coding_utf_16, decode_coding_emacs_mule)
15198 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15199 (decode_coding_raw_text, decode_coding_charset): Likewise.
15200 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15201
152022008-03-01 Jason Rumney <jasonr@gnu.org>
15203
15204 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15205
152062008-03-01 Kim F. Storm <storm@cua.dk>
15207
15208 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15209
152102008-03-01 Jason Rumney <jasonr@gnu.org>
15211
15212 * w32font.c (w32font_full_name): New function.
15213 (w32font_open_internal): Use it.
15214
152152008-03-01 Kim F. Storm <storm@cua.dk>
15216
15217 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15218
152192008-03-01 Jason Rumney <jasonr@gnu.org>
15220
15221 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15222
152232008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15224
15225 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15226 xg_frame_resized when the event is for the edit widget.
15227
15228 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15229
15230 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15231 set_char_size.
15232 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15233 operations on widgets here. Just set frame size if needed.
15234 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15235 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15236 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15237 the whole frame.
15238 (xg_create_tool_bar): Move attachment of the tool bar to
15239 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15240 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15241
152422008-03-01 Jason Rumney <jasonr@gnu.org>
15243
15244 * w32fns.c (w32_msg_pump): Disable debug code.
15245
152462008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15247
15248 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15249
152502008-02-29 Chong Yidong <cyd@stupidchicken.com>
15251
15252 * xdisp.c (next_overlay_string): Don't set
15253 overlay_strings_at_end_processed_p if we're currently reading from
15254 a display string.
15255
152562008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15257
15258 * xdisp.c (get_overlay_strings_1): Fix typo.
15259
152602008-02-29 Chong Yidong <cyd@stupidchicken.com>
15261
15262 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15263
152642008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15265
15266 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15267
15268 * xdisp.c (display_mode_element): Cancel the previous change.
15269 (decode_mode_spec): Likewise.
15270 (handle_auto_composed_prop): Don't make composition if it->string
15271 is a string.
15272
152732008-02-27 Kim F. Storm <storm@cua.dk>
15274
15275 * lisp.h (GLYPH): Change type from int to struct with separate char
15276 and face_id members.
15277 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15278 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15279 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15280 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15281 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15282 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15283 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15284 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15285 handle new Lisp glyph code encoding, either an integer or a cons.
15286
15287 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15288 (GLYPH_ALIAS): Delete.
15289 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15290 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15291 (GLYPH_FROM_CHAR): Replace macro by ...
15292 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15293
15294 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15295 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15296 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15297 (GLYPH_INVALID_P): New macro.
15298 (spec_glyph_lookup_face): Update prototype.
15299
15300 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15301 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15302 new glyph code encoding.
15303 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15304 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15305
15306 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15307 Adapt to new glyph type and new glyph code encoding.
15308
15309 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15310
15311 * indent.c (current_column, current_column_1, Fmove_to_column)
15312 (compute_motion): Adapt to new glyph code encoding.
15313
15314 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15315
153162008-02-27 Chong Yidong <cyd@stupidchicken.com>
15317
15318 * process.c (wait_reading_process_output): Check for window
15319 changes caused by timers.
15320 Suggested by Johan Bockgård.
15321
153222008-02-27 Glenn Morris <rgm@gnu.org>
15323
15324 * emacs.c (USAGE1): Add `--disable-font-backend'.
15325
153262008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15327
15328 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15329 is made to the buffer.
15330
153312008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15332
15333 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15334 (face_at_string_position):
15335 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15336 (face_at_string_position):
15337 * xdisp.c (display_string, next_overlay_change):
15338 * buffer.h (overlays_at):
15339 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15340 Update callers.
15341
153422008-02-26 Chong Yidong <cyd@stupidchicken.com>
15343
15344 * editfns.c (Fformat): Doc fix.
15345
153462008-02-26 Juanma Barranquero <lekktu@gmail.com>
15347
15348 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15349 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15350 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15351
153522008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15353
15354 * buffer.c (Fbuffer_swap_text): New function.
15355 (syms_of_buffer): Defsubr it.
15356
153572008-02-25 Chong Yidong <cyd@stupidchicken.com>
15358
15359 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15360
153612008-02-25 Jason Rumney <jasonr@gnu.org>
15362
15363 * w32font.c (w32font_draw): Draw one character at a time when padding.
15364
153652008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15366
15367 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15368 Handle a nil arg. Use run_window_configuration_change_hook.
15369 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15370 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15371 Use run_window_configuration_change_hook.
15372
153732008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15374
15375 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15376 1-pixel width.
15377
153782008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15379
15380 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15381 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15382 if the glyph in the font is zero pixel with.
15383
15384 * dispextern.h (struct glyph_string): New member padding_p.
15385
15386 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15387
15388 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15389
15390 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15391
15392 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15393
15394 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15395
153962008-02-25 Jason Rumney <jasonr@gnu.org>
15397
15398 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15399
154002008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15401
15402 Allow fine-grained image-cache flushing.
15403 * dispextern.h (struct image): Add `dependencies' field.
15404 (clear_image_caches): Change arg to Lisp_Object.
15405 * image.c (make_image): Initialize `dependencies' field.
15406 (clear_image_cache): Change arg to allow fine-grained flushing.
15407 Perform the flush even if image-cache-eviction-delay is nil.
15408 (clear_image_caches): Change arg to Lisp_Object.
15409 (Fclear_image_cache): Expand meaning of the argument.
15410 (mark_image): Mark `dependencies' field.
15411 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15412 (lface_hash): Use XHASH rather than XFASTINT.
15413 (face_at_buffer_position): Fix int -> EMACS_INT position.
15414 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15415 (select_frame_for_redisplay): Remove code duplication.
15416 (redisplay_internal): Adapt arg to call to clear_image_caches.
15417
154182008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15419
15420 * s/vms4-0.h:
15421 * s/vms4-2.h:
15422 * s/vms4-4.h:
15423 * s/vms5-5.h: Remove, unused.
15424
15425 * s/irix5-2.h:
15426 * s/irix6-0.h:
15427 * s/riscos5.h:
15428 * s/mach-bsd4-3.h:
15429 * m/mips4.h: Remove files for obsolete systems.
15430
15431 * Makefile.in:
15432 * filelock.c:
15433 * unexmips.c:
15434 * m/hp9000s300.h:
15435 * m/iris4d.h:
15436 * s/aix3-1.h:
15437 * s/hpux.h:
15438 * s/msdos.h:
15439 * s/usg5-0.h:
15440 * s/usg5-2-2.h:
15441 * s/usg5-2.h:
15442 * s/usg5-3.h: Remove references to obsolete variables.
15443
15444 * s/irix5-0.h: Remove, move all the contents ...
15445 * s/irix6-5.h: ... here. Simplify.
15446 * config.in: Regenerate.
15447
154482008-02-24 Jason Rumney <jasonr@gnu.org>
15449
15450 * w32term.c (x_draw_glyph_string_background): Clear the background
15451 manually when cleartype is in use.
15452 (x_draw_glyph_string_foreground): Draw text transparently when
15453 cleartype is in use.
15454
15455 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15456 a font into it unless we have to.
15457
154582008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15459
15460 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15461 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15462
aac0c6e3
MR
154632008-02-18 Jason Rumney <jasonr@gnu.org>
15464
15465 * w32fns.c (Fw32_shell_execute): Encode parameters.
15466
154672008-02-09 Eli Zaretskii <eliz@gnu.org>
15468
15469 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15470
154712008-02-05 Juanma Barranquero <lekktu@gmail.com>
15472
15473 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15474
154752008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15476
15477 * xterm.c (x_set_offset): Don't change the gravity if
15478 CHANGE_GRAVITY is -1.
15479
154802008-02-23 Chong Yidong <cyd@stupidchicken.com>
15481
15482 * fileio.c (auto_save_error_occurred): New var.
15483 (auto_save_error): Set it.
15484 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15485 error occurred.
15486
154872008-02-23 Eli Zaretskii <eliz@gnu.org>
15488
15489 * w32.c (globals_of_w32): Add initializations for
15490 g_b_init_get_sid_sub_authority and
15491 g_b_init_get_sid_sub_authority_count.
15492
154932008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15494
15495 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15496 (font_parse_xlfd): Use them for sanity check.
15497 (Finternal_set_font_style_table): Make sure the table is bijective.
15498
15499 Consolidate the image_cache to the terminal struct.
15500 * termhooks.h (P_): Remove redundant def.
15501 (struct terminal): New field `image_cache'.
15502 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15503 of FRAME_X_IMAGE_CACHE.
15504 * xterm.h (struct x_display_info): Remove image_cache field.
15505 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15506 * w32term.h (struct w32_display_info): Remove image_cache field.
15507 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15508 * macterm.h (struct mac_display_info): Remove image_cache field.
15509 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15510 * xterm.c (x_term_init):
15511 * w32term.c (w32_term_init):
15512 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15513 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15514 Remove declarations.
15515 (clear_image_caches, mark_image_cache): New declarations.
15516 * xfaces.c (clear_face_cache):
15517 * xdisp.c (redisplay_internal): Use clear_image_caches.
15518 * image.c (clear_image_cache): Don't check that a frame is on
15519 a window-system before checking if it shares the same cache.
15520 (clear_image_caches): New function.
15521 (Fclear_image_cache): Use it.
15522 (mark_image): Move from allo.c.
15523 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15524 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15525 (mark_object): Don't call mark_image_cache for frames.
15526 (mark_terminals): Call mark_image_cache.
15527
15528 * lisp.h (Fdelete_terminal): Declare.
15529
15530 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15531 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15532 wrong_type_argument.
15533
155342008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15535
15536 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15537 malayalam.el, and tamil.el. Add sinhala.el.
15538
155392008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15540
15541 * xterm.c (x_connection_closed): Consolidate identical tests.
15542 (x_delete_terminal): Don't crash if called via x_connection_closed.
15543
155442008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15545
15546 * xdisp.c (decode_mode_spec): New arg string.
15547 (display_mode_element): Adjust for the above change.
15548
155492008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15550
15551 * callint.c (Fcall_interactively): Use AREF.
15552
155532008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15554
15555 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15556
155572008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15558
15559 * xfns.c (Fx_show_tip): Set string to " " if empty.
15560
155612008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15562
15563 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15564 with Qt.
15565
155662008-02-17 Kenichi Handa <handa@m17n.org>
15567
15568 * ftfont.c (ftfont_shape): Return Lispy number.
15569
15570 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15571 for GCs.
15572 (Finternal_set_font_selection_order): Call font_update_sort_order
15573 only when enable_font_backend is set.
15574 (realize_x_face): Set face->font_info to that of default face only
15575 when enable_font_backend is set.
15576
15577 * xdisp.c (handle_composition_prop): Set it->c to the fist
15578 character of the composed region.
15579 (fill_composite_glyph_string): Set base_face->font_info to
15580 s->font_info. Get a face for ascii from base_face->ascii_face.
15581 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15582 with a face already decided.
15583 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15584 non-negative.
15585 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15586 call font_prepare_composition unconditionally.
15587
15588 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15589
15590 * xterm.h (struct x_display_info): New member font.
15591
15592 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15593 (x_set_mouse_face_gc, x_new_font): Likewise.
15594 (x_term_init): Setup display_info->font.
15595 (x_delete_terminal): Free display_info->font.
15596
15597 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15598
15599 * ftxfont.c (ftxfont_default_fid): Delete it.
15600 (ftxfont_open): Set xfont->fid to 0.
15601 (ftxfont_end_for_frame): Clear data specific to the frame and the
15602 font-driver.
15603
15604 * xftfont.c (xftfont_default_fid): Delete it.
15605 (xftfont_open): Set xfont->fid to 0.
15606
15607 * fontset.c (FONTSET_OBJLIST): New macro.
15608 (fontset_find_font): Update font-object list of the fontset.
15609 (free_realized_fontset): New function.
15610 (free_face_fontset): Call free_realized_fontset.
15611 (Ffont_info): Call font_close_object only when enable_font_backend
15612 is set.
15613
15614 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15615 [HAVE_NTGUI]: Include w32term.h.
15616 [MAC_OS]: Include macterm.ch.
15617 (font_otf_ValueRecord): Use make_number.
15618 (font_finish_cache): Fix handling of reference count.
15619 (font_clear_cache): Update num_fonts.
15620 (font_open_entity): Update smallest_char_width and
15621 smallest_font_height of the frame.
15622 (font_close_object): Update num_fonts.
15623 (Fclear_font_cache): Fix finding the target cache data.
15624
156252008-02-16 Glenn Morris <rgm@gnu.org>
15626
15627 * fontset.c (Finternal_char_font): Fix compilation warning.
15628
156292008-02-16 Eli Zaretskii <eliz@gnu.org>
15630
15631 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15632 instead of char arrays. Enlarge the size of array passed to
15633 get_token_information.
15634
15635 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15636 warnings.
15637
156382008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15639
15640 * .gdbinit: Don't set `args', it breaks gdb --args.
15641
156422008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15643
15644 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15645 within a narrowed buffer.
15646
156472008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15648
15649 * coding.c (decode_coding_object, encode_coding_object):
15650 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15651
156522008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15653
15654 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15655 hardcoding 1.
15656 (detect_coding_system):
15657 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15658 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15659 * insdel.c (insert_from_gap):
15660 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15661 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15662 (string_to_multibyte):
15663 * character.c (chars_in_text, multibyte_chars_in_text):
15664 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15665
15666 * character.h (FETCH_STRING_CHAR_ADVANCE)
15667 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15668 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15669 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15670
15671 * casefiddle.c (casify_region): Only call after-change and composition
15672 functions on the part of the region that was changed.
15673
15674 * keyboard.c (read_avail_input):
15675 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15676
156772008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15678
15679 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15680 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15681
156822008-02-11 Juanma Barranquero <lekktu@gmail.com>
15683
15684 * w32menu.c (push_submenu_start, push_submenu_end)
15685 (push_left_right_boundary, push_menu_pane, push_menu_item):
15686 * keyboard.c (read_key_sequence): Don't pass args with side effects
15687 to AREF, it fails when compiling with -DENABLE_CHECKING.
15688
156892008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15690
15691 * Makefile.in (${lispsource}international/charprop.el):
15692 Delete this target.
15693
15694 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15695 emacs-unicode-2.
15696
156972008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15698
15699 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15700
157012008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15702
15703 * frame.c (Qnoelisp): New symbol.
15704 (syms_of_frame): Initialize it.
15705 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15706 harmless Elisp code, from a strong `force' from x_connection_closed.
15707 * frame.h (Qnoelisp): Declare.
15708 * xterm.c (x_connection_closed): Pass `noelisp'.
15709
15710 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15711 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15712 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15713 rather than `int' for the type of `type'.
15714
157152008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15716
15717 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15718
15719 * Makefile.in (GNUC): Remove support for gcc-1.x.
15720
157212008-02-10 Richard Stallman <rms@gnu.org>
15722
15723 * lisp.h (ASET): Use AREF, not ASLOT.
15724
157252008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15726
15727 * lisp.h (ASET): Check bounds.
15728
157292008-02-10 Glenn Morris <rgm@gnu.org>
15730
15731 * buffer.c (mode-name): Doc fix.
15732
157332008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15734
15735 * Makefile.in:
15736 * emacs.c:
15737 * gmalloc.c:
15738 * keyboard.c:
15739 * lisp.h:
15740 * m/ibm370aix.h:
15741 * process.c:
15742 * regex.c:
15743 * s/hpux.h:
15744 * sysdep.c:
15745 * sysselect.h:
15746 * systty.h:
15747 * unexec.c:
15748 * w32term.c:
15749 * xsmfns.c:
15750 * xterm.c: Remove code that deals with obsolete variables.
15751
15752 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15753
15754 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15755 nothing else needs it anymore.
15756
157572008-02-09 Eli Zaretskii <eliz@gnu.org>
15758
15759 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15760 instead of unibyte_char_to_multibyte.
15761
157622008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15763
15764 * s/gnu-linux.h: Remove commented out code.
15765
15766 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15767
15768 * Makefile.in: Update what RMS says about using autoconf.
15769 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15770 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15771 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15772 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15773
157742008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15775
15776 * keymap.c (Fkey_description): Move side effect outside of macro call.
15777
15778 * xfaces.c (Finternal_make_lisp_face):
15779 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15780
15781 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15782 (syms_of_fontset): Use ASET.
15783
15784 * fns.c (concat): Move side effect outside of macro call.
15785 (hash_clear): Use ASET.
15786
157872008-02-08 Richard Stallman <rms@gnu.org>
15788
15789 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15790 If FORCE, and frame has a surrogate minibuffer for another frame,
15791 delete the other frame first.
15792
157932008-02-07 Timo Savola <timo.savola@iki.fi>
15794
15795 * xterm.c (x_detect_focus_change): Handle embed client message.
15796 (handle_one_xevent): Ditto.
15797 (handle_one_xevent): If embedded and we get a button press/release,
15798 request focus.
15799 (xembed_set_info, xembed_send_message): New functions.
15800 (x_make_frame_visible): Call xembed_set_info if embedded.
15801 (x_make_frame_invisible): Call xembed_set_info if embedded.
15802 (x_term_init): Initialize Xatom_XEMBED.
15803 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15804 (x_iconify_frame): Ditto.
15805
15806 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15807 (enum xembed_info, enum xembed_message, enum xembed_focus)
15808 (enum xembed_modifier, enum xembed_accelerator): New.
15809 (xembed_set_info, xembed_send_message): Declare.
15810 (FRAME_X_EMBEDDED_P): New.
15811
15812 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15813 gtk_plug_new.
15814
15815 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15816 window ID of a frame.
15817 (x_window): Reparent frame if embedded.
15818 (Fx_create_frame): Don't set border width if embedded.
15819
15820 * emacs.c (USAGE3): Add --parent-id.
15821 (standard_args): Ditto.
15822
158232008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15824
15825 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15826
158272008-02-07 Jim Meyering <meyering@redhat.com>
15828
15829 Use "do...while (0)", not "if (1)...else" in macro definitions.
15830 The latter provokes a warning from gcc about the empty else, when
15831 followed by ";". Also, without that trailing semicolon, it would
15832 silently swallow up any following statement.
15833 * syntax.h (SETUP_SYNTAX_TABLE)
15834 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15835 * buffer.h (DECODE_POSITION): Likewise.
15836 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15837 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15838 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15839 (FETCH_CHAR_ADVANCE): Likewise.
15840 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15841
158422008-02-07 Jim Meyering <meyering@redhat.com>
15843
15844 * lread.c [lint]: Don't include <sys/inode.h>.
15845
158462008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15847
15848 * xselect.c (x_handle_dnd_message):
15849 * xmenu.c (digest_single_submenu, xmenu_show):
15850 * xdisp.c (with_echo_area_buffer_unwind_data)
15851 (format_mode_line_unwind_data, unwind_format_mode_line)
15852 (display_menu_bar):
15853 * eval.c (Ffetch_bytecode):
15854 * doc.c (store_function_docstring):
15855 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15856 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15857 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15858
158592008-02-07 Kenichi Handa <handa@m17n.org>
15860
15861 * ftxfont.c (ftxfont_open): Don't set
15862 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15863
15864 * ftfont.c (ftfont_open): Fix previous change.
15865
158662008-02-06 Jason Rumney <jasonr@gnu.org>
15867
15868 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15869 Use cached metrics for ASCII characters.
15870 (w32font_open_internal): Don't set font's owning_frame.
15871 Cache metrics for ASCII characters.
15872
15873 * w32font.h (struct w32font_info): Add ascii_metrics.
15874 Remove owning_frame.
15875
158762008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15877
15878 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15879 to negative value.
15880
15881 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15882
15883 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15884
15885 * charset.c (syms_of_charset): Set QCtest and Qeq.
15886
158872008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15888
15889 * process.c (Fstart_process):
15890 * callproc.c (Fcall_process): Handle the case where
15891 Funhandled_file_name_directory returns nil.
15892
15893 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15894 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15895 * font.c (check_gstring): Use them and AREF to access the vector before
15896 we know it's really a gstring.
15897 (Ffont_shape_text): Fix typo.
46e722a9 15898 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15899
15900 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15901 Declare.
15902
15903 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15904
159052008-02-05 Jason Rumney <jasonr@gnu.org>
15906
15907 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15908 Set smallest_font_height and smallest_char_width in display info.
15909
159102008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15911
15912 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15913
159142008-02-05 Miles Bader <miles@gnu.org>
15915
15916 * xfaces.c (get_lface_attributes, merge_named_face)
15917 (lookup_named_face, lookup_derived_face, realize_named_face):
15918 Revert 2008-02-01 change by cyd@stupidchicken.com.
15919
159202008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15921
15922 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15923 fallback fonts.
15924 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15925
159262008-02-04 Jason Rumney <jasonr@gnu.org>
15927
15928 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15929 set full_name.
15930 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15931
159322008-02-03 Jason Rumney <jasonr@gnu.org>
15933
15934 * makefile.w32-in (OBJ1): Include font.o here.
15935 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15936
159372008-02-02 Jason Rumney <jasonr@gnu.org>
15938
15939 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15940
159412008-02-01 Jason Rumney <jasonr@gnu.org>
15942
15943 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15944
15945 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15946
159472008-02-01 Andreas Schwab <schwab@suse.de>
15948
15949 * Makefile.in (shortlisp, lisp): Update for rename of
15950 ../lisp/language/myanmar.el.
15951
159522008-02-01 Chong Yidong <cyd@stupidchicken.com>
15953
15954 * xfaces.c (get_lface_attributes): Delete function.
15955 (merge_named_face, lookup_named_face, lookup_derived_face)
15956 (realize_named_face): Call lface_from_face_name directly, and use
15957 the fact that merge_face_vectors does not alter its FROM argument.
15958
159592008-02-01 Jason Rumney <jasonr@gnu.org>
15960
15961 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15962 input in the default locale. Handle non-Unicode multibyte input.
15963
159642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15965
15966 * fontset.c (reorder_font_vector): Exclude nil elements from the
15967 font group. Don't try multiple fonts.
15968 (fontset_font): Adjust for the above change.
15969 (Finternal_char_font): Return nil if the found font doesn't
15970 contain the character ch.
15971
15972 * Makefile.in (lisp, shortlisp): Add cham.el.
15973
159742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15975
15976 * font.h (FONTP): Make it return 1 also for a font-object.
15977
15978 * .gdbinit (xfontset): New function.
15979
15980 * font.c (font_find_for_lface): Check if the character C is
15981 supported or not only for the first font.
15982
15983 * fontset.c (reorder_font_vector): Fix typo.
15984 (fontset_find_font): Don't add a font-spec specifying a script.
15985 Use 0 (not Qt) for the indication of empty font-group. Change the
15986 format of RFONT-DEF. Return Qt if no font in the font-group
15987 support the character.
15988 (fontset_font): Adjust for the above change. If no font was
15989 found the character, remember that.
15990 (face_for_char): Adjust for the change of RFONT-DEF.
15991 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15992 no font for the target.
15993 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15994
159952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15996
15997 * font.c (font_load_for_face): Handle the case that the font in
15998 face->lface is a string.
15999
160002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16001
16002 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16003
160042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16005
16006 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16007 Fix previous change. If the frame is not on a window system,
16008 signal an error.
16009
160102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16011
16012 * coding.c (decode_coding_object, encode_coding_object): Adjust
16013 marker positions after conversion.
16014
16015 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16016
160172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16018
16019 * font.c (font_find_for_lface): Fix the handling of the return
16020 value of font_has_char.
16021 (Ffont_shape_text): Fix previous change.
16022
16023 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16024 (fontset_ref_and_range): Delete it.
16025 (fontset_find_font): Call char_table_ref_and_range instead of
16026 FONTSET_REF_AND_RANGE.
16027 (make_fontset): Don't setup font groups of Latin here.
16028 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16029 (new_fontset_from_font): Make the specified font the default for
16030 all Latin characters.
16031
160322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16033
16034 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16035 is on a window system before accessing the fontset of the frame.
16036
160372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16038
16039 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16040
16041 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16042 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16043
16044 * font.c (Ffont_shape_text): If the font driver doesn't have a
16045 shaper function, make zero-width glyphs to have at least one-pixel
16046 width. Fix setting of `to' field of glyphs.
16047
160482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16049
16050 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16051 glyphs.
16052
16053 * font.h (struct font_driver): Improve docstring of member `shape'.
16054
160552008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * composite.c (syms_of_composite): Fix docstring of
16058 auto-composition-function.
16059
16060 * font.h (LGLYPH_SIZE): New macro.
16061
16062 * font.c (Ffont_fill_gstring): Stop filling when a character not
16063 supported by the font is found.
16064 (Ffont_shape_text): When a shape callback function returns nil,
16065 try at most two more times with larger gstring.
16066 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16067
16068 * xdisp.c (handle_auto_composed_prop): Change the argument to
16069 auto-composition-function.
16070
16071 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16072 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16073 Lispy glyph and store it in the lgstring.
16074
16075 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16076
16077 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16078
160792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16080
16081 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16082
16083 * fontset.c (Vfont_encoding_charset_alist): New variable.
16084 (syms_of_fontset): DEFVAR it.
16085 (reorder_font_vector, fontset_find_font): Optimize for the case of
16086 no need of reordering.
16087 (face_for_char): Map the charset property by
16088 Vfont_encoding_charset_alist.
16089
160902008-02-01 Jason Rumney <jasonr@gnu.org>
16091
16092 * w32font.c (logfonts_match): Don't check adstyle here.
16093 (font_matches_spec): Check here against physical font instead.
16094 (add_font_entity_to_list): Avoid some substitutions.
16095
16096 * font.c (font_parse_fcname): Default weight and slant to normal.
16097 (font_score): Prefer normal fonts if weight or slant unspecified.
16098 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16099 match freetype scores.
16100
161012008-02-01 Jason Rumney <jasonr@gnu.org>
16102
16103 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16104 font, as it may have been deleted.
16105 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16106 most common hyphenless variation.
16107 (logfonts_match): Check generic family.
16108 (font_matches_spec): Don't check generic family here.
16109 (fill_in_logfont): Set generic family based on adstyle.
16110
16111 * w32font.h (w32font_get_cache): Update declaration.
16112
161132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16114
16115 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16116
16117 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16118 If none of the new drivers are available, call font_update_drivers
16119 with the old drivers.
16120
16121 * w32font.c (w32font_get_cache): Adjust the argument type.
16122
16123 * xfont.c (xfont_get_cache): Adjust the argument type.
16124
16125 * font.h (struct font_driver): Change argument type of get_cache.
16126
16127 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16128
16129 * font.c (Ffont_get): Fix arguments to Fassoc.
16130 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16131 (font_clear_cache): New function.
16132 (font_list_entities, font_matching_entity): Use font_get_cache.
16133 (font_update_drivers): Call font_clear_cache when finishing a driver.
16134
16135 * fontset.c (fontset_find_font): Fix previous change.
16136
161372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16138
16139 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16140 dpyinfo->font_table.
16141 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16142 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16143
16144 * font.c (font_at): Handle the case that the arg C is negative.
16145 Handle the unibyte case.
16146 (Ffont_at): Call font_at with the arg C -1.
16147
16148 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16149 the position here, and call font_at with the arg C -1.
16150 Don't check the range of the existing composition at the point.
16151
161522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16153
16154 * fontset.c (fontset_add): New args charset_id and family.
16155 Change caller.
16156 (load_font_get_repertory, fontset_find_font): Assume that
16157 font_spec is always a font-spec object.
16158 (Fset_fontset_font): Always store a font-spec object in a fontset.
16159
16160 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16161 instead of get_property_and_range.
16162
161632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16164
16165 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16166 (xftfont_open): Don't keep locking face.
16167 (xftfont_close): Don't unlock face.
16168 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16169
16170 * fontset.c (fontset_find_font): Don't prefer a font of
16171 supplementary charset.
16172
161732008-02-01 Kenichi Handa <handa@m17n.org>
16174
16175 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16176 script, langsys_tag to langsys, new member script.
16177 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16178 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16179 listing to the script specified in that property. Fix arg to
16180 OTF_check_features.
16181
161822008-02-01 Jason Rumney <jasonr@gnu.org>
16183
16184 * w32font.h: New file.
16185
16186 * w32font.c: Include it.
16187 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16188 (w32font_open): Set owning_frame.
16189 (w32font_text_extents): Use owning_frame.
16190 (struct font_callback_data): Add opentype_only field.
16191 (add_font_entity_to_list): Use it to filter fonts.
16192 Don't check against full name.
16193 (w32font_list_internal): New function.
16194 (w32font_list): Use it.
16195 (w32font_match_internal): New function.
16196 (w32font_match): Use it.
16197 (w32font_open_internal): New function.
16198 (w32font_open): Use it.
16199 (w32font_get_cache, w32font_close, w32font_has_char)
16200 (w32font_encode_char, w32font_text_extents, w32font_draw):
16201 Make non-static.
16202
16203 * makefile.w32-in (w32font.o): Depend on w32font.h.
16204
162052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16206
16207 * charset.c (Fdefine_charset_internal): Record a supplementary
16208 charset at the tail of Vcharset_order_list.
16209
16210 * font.c (Ffont_shape_text): Fix the return value.
16211
16212 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16213
16214 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16215
162162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16217
16218 * ftfont.c (struct OpenTypeSpec): New struct.
16219 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16220 (ftfont_get_open_type_spec): New function.
16221 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16222
16223 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16224
162252008-02-01 Jason Rumney <jasonr@gnu.org>
16226
16227 * w32font.c (add_font_entity_to_list): Compare only the beginning
16228 of full name.
16229
162302008-02-01 Kenichi Handa <handa@m17n.org>
16231
16232 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16233 Never return HANDLED_RECOMPUTE_PROPS.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * font.c (font_gstring_produce): Delete it.
16238
16239 * composite.h (COMPOSITION_METHOD):
16240 Handle COMPOSITION_WITH_GLYPH_STRING.
16241
162422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16243
16244 * xfont.c (Qx): Delete.
16245 (syms_of_xfont): Don't initialize Qx.
16246
16247 * composite.h (enum composition_method):
16248 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16249
162502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16251
16252 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16253 (choose_face_font): Accept new form of font-spec.
16254
16255 * frame.h (font_driver_list): Declare it unconditionally.
16256 (struct frame): Define members font_driver_list and font_data_list
16257 unconditionally.
16258
16259 * fontset.c: Include "font.h" unconditionally.
16260 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16261 (Fset_fontset_font): Accept a font-spec object.
16262
16263 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16264 PIXEL_SIZE part a wild card.
16265
16266 * dispextern.h (struct glyph_string): Define members clip and
16267 num_clips unconditionally.
16268 (struct face): Define members font_info and extra unconditionally.
16269
16270 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16271 ftfont_info only when HAVE_LIBOTF is defined.
16272
162732008-02-01 Andreas Schwab <schwab@suse.de>
16274
16275 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16276 and end.
16277
162782008-02-01 Jason Rumney <jasonr@gnu.org>
16279
16280 * w32font.c (w32font_driver): Add new fields.
16281
162822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16283
16284 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16285 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16286 (LIBES): Add @M17N_FLT_CFLAGS@.
16287
16288 * composite.c (compose_text): Don't treat the new style
16289 composition specially.
16290
16291 * emacs.c (main): Call syms_of_font unconditionally.
16292
16293 * font.h (FONT_ENTITY_NOT_LOADABLE)
16294 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16295 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16296 (struct font_driver): New member shape.
16297 (font_registry_charsets): Extern it.
16298 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16299 (font_otf_capability, font_drive_otf): Delete their externs.
16300
16301 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16302 (font_charset_alist, font_registry_charsets): Move from xfont.c
16303 and rename.
16304 (font_prop_validate_otf): New function.
16305 (font_property_table): Register it for QCotf.
16306 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16307 (font_drive_otf): Delete.
16308 (font_prepare_composition): New arg F. Adjust for the change of
16309 lispy gstring.
16310 (font_find_for_lface): New arg C.
16311 (font_load_for_face): Adjust for the change of font_find_for_lface.
16312 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16313 lispy gstring.
16314 (Ffont_shape_text): New function.
16315 (Fopen_font): If the font size is not given, use 12-pixel.
16316 (Ffont_at): New arg STRING.
16317 (syms_of_font): Initalize font_charset_alist.
16318 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16319 conditionally.
16320
16321 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16322 fonts of the same font-spec. Change the format of RFONT-DEF.
16323 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16324 Adjust for the change of RFONT-DEF.
16325 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16326
16327 * ftfont.h: New file.
16328
16329 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16330 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16331 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16332 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16333 font_otf_capability and font_drive_otf, set ftfont_shape.
16334 (ftfont_list): Adjust for the change of :otf property value.
16335 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16336 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16337 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16338 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16339 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16340 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16341
16342 * w32term.c (x_draw_composite_glyph_string_foreground):
16343 Adjust for the change of lispy gstring.
16344
16345 * xdisp.c (handle_composition_prop): Adjust for the change of
16346 lispy gstring. Call a function for auto-composition with the
16347 third arg it->window.
16348 (fill_composite_glyph_string): Adjust for the change of lispy string.
16349 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16350
16351 * xfaces.c (set_font_frame_param): Adjust for the change of
16352 font_find_for_lface.
16353
16354 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16355 (xfont_registry_charsets): Likewise. Change caller.
16356 (syms_of_xfont): Don't handle x_font_charset_alist.
16357
16358 * xftfont.c: Include "ftfont.h".
16359 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16360 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16361 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16362 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16363 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16364 Set xftfont_driver.shape to xftfont_shape.
16365
16366 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16367 the change of lispy gstring.
16368
163692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16370
16371 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16372
163732008-02-01 Jason Rumney <jasonr@gnu.org>
16374
16375 * w32font.c (w32font_draw): Fill background manually.
16376
163772008-02-01 Jason Rumney <jasonr@gnu.org>
16378
16379 * font.c (Qfontp): Remove unused symbol.
16380 (QCantialias): New symbol.
16381 (syms_of_font): Define it.
16382 (font_property_table): Set a validator for QCantialias.
16383
16384 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16385 Define if not already.
16386 (QCfamily): Share with xfaces.c.
16387 (Qstandard, Qsubpixel, Qnatural): New symbols.
16388 (syms_of_w32font): Define them. Don't define QCfamily here.
16389 (w32_antialias_type, lispy_antialias_type): New functions.
16390 (w32_enumfont_pattern_entity): New arg requested_font.
16391 Set antialias parameter if non-default was requested.
16392 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16393
163942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16395
16396 * lread.c (read1): Undo the previous change.
16397
163982008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16399
16400 * frame.c (Fdelete_frame): Call font_update_drivers only when
16401 USE_FONT_BACKEND is defined.
16402
164032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16404
16405 * font.h (struct font_bitmap): New member bits_per_pixel.
16406 (struct font_driver): New members start_for_frame and end_for_frame.
16407 (struct font_data_list): New struct.
16408 (font_put_frame_data, font_get_frame_data): Extern them.
16409
16410 * frame.h (struct frame): New member font_data_list.
16411
16412 * font.c (font_update_drivers): Call driver->start_for_frame and
16413 driver->end_for_frame at proper timings.
16414 (font_put_frame_data, font_get_frame_data): New functions.
16415 (Ffont_spec): Add usage in the docstring.
16416
16417 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16418 (Fdelete_frame): Call font_update_drivers.
16419
16420 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16421 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16422 (xftfont_get_xft_draw): New function.
16423 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16424 (xftfont_end_for_frame): New function.
16425 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16426
16427 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16428 Change argument. Cache GCs in the per-frame data.
16429 (struct ftxfont_frame_data): New struct.
16430 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16431 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16432 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16433 (ftxfont_end_for_frame): New function.
16434 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16435
16436 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16437
164382008-02-01 Kenichi Handa <handa@m17n.org>
16439
16440 * xselect.c (Vselection_coding_system)
16441 (Vnext_selection_coding_system): Delete them.
16442 (syms_of_xselect): Don't declare selection-coding-system and
16443 next-selection-coding-system. They are declared in select.el.
16444
164452008-02-01 Jason Rumney <jasonr@gnu.org>
16446
16447 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16448
16449 * w32fns.c: Include imm.h.
16450 (get_composition_string_fn, get_ime_context_fn): New optional
16451 system functions.
16452 (globals_of_w32fns): Load them from imm32.dll.
16453 (ignore_ime_char): New flag.
16454 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16455 WM_IME_ENDCOMPOSITION messages.
16456
16457 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16458 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16459
164602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16461
16462 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16463 (READCHAR_REPORT_MULTIBYTE): New macro.
16464 (readchar): New 2nd arg MULTIBYTE.
16465 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16466 Make symbol's name multibyte according to the multibyteness of the
16467 source.
16468
164692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16470
16471 * xfaces.c (face_for_overlay_string): Call lookup_face with
16472 correct arguments (fix of synching with the trunk).
16473
164742008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16477 (font_prop_validate_non_neg, font_prop_validate_spacing):
16478 Delete argument prop_index.
16479 (font_property_table): Change arguments to validater. Change Callers.
16480 (font_lispy_object): Delete.
16481 (font_at): Use font_find_object instead fo font_lispy_object.
16482
164832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16484
16485 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16486 and file names.
16487
164882008-02-01 Jason Rumney <jasonr@gnu.org>
16489
16490 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16491 (font_matches_spec): Remove debug output.
16492 (add_font_entity_to_list): Avoid using substituted fonts.
16493
164942008-02-01 Jason Rumney <jasonr@gnu.org>
16495
16496 * doc.c (Fsnarf_documentation):
16497 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16498
164992008-02-01 Miles Bader <miles@gnu.org>
16500
16501 * dispextern.h (struct glyph_row): Only define "clip" field if
16502 HAVE_WINDOW_SYSTEM is defined.
16503
165042008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16505
16506 Fix up multi-tty merge.
16507
16508 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16509 and indentation.
16510
16511 * xfaces.c (free_realized_face, clear_face_gcs):
16512 Include font_done_for_face in the input_blocked section, just in case.
16513
16514 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16515 (get_char_face_and_encoding): Undo last change and remove the *other*
16516 duplicate definition (i.e. keep the one that's better scoped and that
16517 includes code for the font-backend).
16518
16519 * terminal.c (create_terminal): Default keyboard_coding to
16520 `no-conversion' and terminal_coding to `undecided'.
16521
16522 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16523
16524 * fontset.c (free_realized_fontsets): Check that the table entry does
16525 contain a fontset before trying to compare it to `base'.
16526
16527 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16528 syms_of_charset, and syms_of_coding earlier because init_window_once
16529 now needs Vcoding_system_hash_table to be setup.
16530
16531 * coding.h (default_buffer_file_coding): Remove.
16532
16533 * coding.c (default_buffer_file_coding): Remove.
16534 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16535 than ->symbol, and use the terminal-local coding system.
16536 (syms_of_coding): Don't setup the coding-systems that are not
16537 terminal-local.
16538 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16539
16540 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16541 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16542
16543 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16544 in chartab.c and were re-added here by mistake.
16545 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16546
16547 * doc.c (Fsnarf_documentation):
16548 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16549 src to etc.
16550
16551 * ChangeLog.10: Add mistakenly removed entry.
16552
165532008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16554
16555 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16556
165572008-02-01 Miles Bader <miles@gnu.org>
16558
16559 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16560 Add extra args to FACE_FOR_CHAR.
16561
165622008-02-01 Kenichi Handa <handa@m17n.org>
16563
16564 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16565 in sequence.
16566
16567 * chartab.c (map_sub_char_table, map_char_table): If the range
16568 contains just one character, call the function with that character
16569 even if the depth is not 3.
16570
165712008-02-01 Jason Rumney <jasonr@gnu.org>
16572
16573 * w32font.c (w32font_text_extents): Calculate metrics for the
16574 whole string.
16575
165762008-02-01 Jason Rumney <jasonr@gnu.org>
16577
16578 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16579
165802008-02-01 Jason Rumney <jasonr@gnu.org>
16581
16582 * w32term.c (x_set_glyph_string_clipping): Use
16583 get_glyph_string_clip_rects.
16584 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16585 Adjust for the change of struct glyph_string.
16586
16587 * w32font.c (w32font_draw): Do clipping here.
16588
165892008-02-01 Kenichi Handa <handa@m17n.org>
16590
16591 * xftfont.c (xftfont_draw): Adjust for the change of struct
16592 glyph_string.
16593
16594 * xterm.c (x_set_glyph_string_clipping): Use
16595 get_glyph_string_clip_rects.
16596 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16597 Adjust for the change of struct glyph_string.
16598
16599 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16600 the resulting clip(s}.
16601 (expose_overlaps): Add arg r. Change callers. Set it to
16602 row->clip temporarily.
16603 (expose_window): Redraw rows overlapping the exposed area.
16604
16605 * dispextern.h (struct glyph_row): New member clip.
16606 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16607 clip_height, new member clip, and num_clips.
16608
166092008-02-01 Kenichi Handa <handa@m17n.org>
16610
16611 * data.c (Fchar_or_string_p): Fix docstring.
16612
166132008-02-01 Kenichi Handa <handa@m17n.org>
16614
16615 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16616 create a temporary XftDraw object.
16617
166182008-02-01 Kenichi Handa <handa@m17n.org>
16619
16620 * font.c (Ffontp): Fix docstring.
16621
16622 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16623 strong evidence of ISO-2022.
16624
166252008-02-01 Kenichi Handa <handa@m17n.org>
16626
16627 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16628 SYNTAX_ENTRY_FOLLOW_PARENT.
16629
166302008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16631
16632 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16633 its type.
16634 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16635 Update to the new type of weak_hash_tables and next_weak.
16636
16637 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16638 a plain C pointer to Lisp_Hash_Table.
16639
16640 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16641 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16642 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16643 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16644 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16645 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16646 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16647 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16648 (GC_EQ): Remove since they've been identical to their non-GC_
16649 alter-egos ever since the markbit was eradicated.
16650
16651 * alloc.c:
16652 * buffer.c:
16653 * buffer.h:
16654 * data.c:
16655 * fileio.c:
16656 * filelock.c:
16657 * fns.c:
16658 * frame.h:
16659 * lisp.h:
16660 * macterm.c:
16661 * print.c:
16662 * process.c:
16663 * w32fns.c:
16664 * w32menu.c:
16665 * w32term.c:
16666 * xfns.c:
16667 * xmenu.c:
16668 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16669
166702008-02-01 Kenichi Handa <handa@m17n.org>
16671
16672 * chartab.c (map_sub_char_table): Make it work for the top-level
16673 char-table. Fix handling of parent char-table.
16674 (map_char_table): Adjust for the above change.
16675
166762008-02-01 Jason Rumney <jasonr@gnu.org>
16677
16678 * w32font.c (Qgdi): Rename from Qw32.
16679
166802008-02-01 Jason Rumney <jasonr@gnu.org>
16681
16682 * w32bdf.c (get_quoted_string): Make function static.
16683
166842008-02-01 Kenichi Handa <handa@m17n.org>
16685
16686 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16687 bigger ascent and descent than those of the font, use them as
16688 font's ascent and descent.
16689
166902008-02-01 Kenichi Handa <handa@m17n.org>
16691
16692 * Makefile.in (${lispsource}international/charprop.el): Move this
16693 target within "#ifdef HAVE_UNIDATA" and "#endif".
16694
166952008-02-01 Kenichi Handa <handa@m17n.org>
16696
16697 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16698 (shortlisp): Add ../lisp/language/tai-viet.el.
16699
167002008-02-01 Ulrich Mueller <ulm@gentoo.org>
16701
16702 * Makefile.in (${lispsource}international/charprop.el): Depend on
16703 temacs${EXEEXT}.
16704
167052008-02-01 Jason Rumney <jasonr@gnu.org>
16706
16707 * w32font.c (w32font_close): Delete the GDI font object.
16708
16709 * w32menu.c: Include character.h.
16710
16711 * w32proc.c: Likewise.
16712
16713 * w32select.c: Likewise.
16714
16715 * makefile.w32-in (w32proc.o): Depend on character.h.
16716
167172008-02-01 Jason Rumney <jasonr@gnu.org>
16718
16719 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16720
16721 * w32menu.c (syms_of_w32menu): Likewise.
16722
16723 * w32proc.c (syms_of_ntproc): Likewise.
16724
16725 * w32select.c (syms_of_w32select): Likewise.
16726
16727 * w32term.c (syms_of_w32term): Likewise.
16728
167292008-02-01 Jason Rumney <jasonr@gnu.org>
16730
16731 * w32font.c (w32font_draw): Delete brush after using it.
16732
167332008-02-01 Jason Rumney <jasonr@gnu.org>
16734
16735 * w32font.c (w32font_open): Don't set font_idx.
16736 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16737 to font settings.
16738 (w32font_draw): Fill background explicitly.
16739
167402008-02-01 Jason Rumney <jasonr@gnu.org>
16741
16742 * w32term.c (w32_initialize): Don't call w32font_initialize.
16743
16744 * w32font.c (w32font_info): Remove subranges.
16745 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16746 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16747 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16748 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16749 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16750 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16751 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16752 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16753 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16754 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16755 New symbols.
16756 (font_callback_data): New struct.
16757 (w32font_list, w32font_match): Use it.
16758 (w32font_open): Don't populate subranges.
16759 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16760 (w32font_encode_char): Always return unicode code-point as-is.
16761 (w32font_text_extents): Supply a transformation matrix to
16762 GetGlyphOutline. Never look up by glyph index. Avoid looping
16763 twice. Use unicode version of GetTexExtentPoint32 instead of
16764 glyph index version.
16765 (set_fonts_frame): Remove.
16766 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16767 set frame parameter. Use backward compatible fake foundries.
16768 Save generic family in extra slot under QCfamily. Make width slot
16769 constant. Save QCspacing value. Save list of scripts instead of
16770 binary subranges.
16771 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16772 (add_font_entity_to_list): Use font_callback_data struct. Filter
16773 unwanted fonts.
16774 (add_one_font_entity_to_list): Use font_callback_data struct.
16775 (w32_registry): Default to iso10646_1.
16776 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16777 string font registries. Don't fill in font name if it is a generic
16778 family name, fill family instead. Use spacing, family and script
16779 extra info to fill pitch, family and charset fields.
16780 (list_all_matching_fonts): Use font_callback_data struct.
16781 (unicode_range_for_char): Remove.
16782 (font_supported_scripts): New function.
16783 (w32font_initialize): Remove.
16784 (syms_of_w32font): Update which symbols are defined.
16785
167862008-02-01 Jason Rumney <jasonr@gnu.org>
16787
16788 * font.c (font_pixel_size): Reverse assq_no_quit args.
16789
16790 * w32term.h (FONT_WIDTH): Report max width, not average.
16791 (FONT_MAX_WIDTH): Remove.
16792 (FONT_AVG_WIDTH): New macro.
16793
16794 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16795 redefinition of FONT_WIDTH.
16796
16797 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16798 (w32_cache_char_metrics): Use FONT_WIDTH.
16799
16800 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16801
168022008-02-01 Jason Rumney <jasonr@gnu.org>
16803
16804 * w32font.c (w32font_open): Make lfHeight negative.
16805
16806 * w32fns.c (x_default_font_parameter): Use new style font name.
16807 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16808
168092008-02-01 Jason Rumney <jasonr@gnu.org>
16810
16811 * w32font.c (QCsubranges): New symbol.
16812 (w32font_open, w32font_has_char): Get subranges from subproperty
16813 of extra.
16814 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16815 (syms_of_w32font): Define :subranges symbol.
16816
16817 * font.c (font_put_extra): Expose externally.
16818
16819 * font.h (font_put_extra): Move declaration from font.c.
16820
16821 * font.c (Ffont_get): Use font driver to determine otf capability.
16822 (adjust_anchor): Check if driver defines anchor_point before using.
16823
16824 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16825 (w32font_draw): Use options.
16826 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16827 Fix detection of truetype fonts.
16828 (registry_to_w32_charset): Handle charsets other than iso8859-1
16829 expressed as lisp symbols.
16830 (w32_registry): Express charset as lisp symbol.
16831 (fill_in_logfont): Reverse pixel and point height logic.
16832 Don't set width here. Set quality to default.
16833
16834 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16835 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16836
16837 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16838 Remove redundant loop and allocation.
16839
16840 * makefile.w32-in (font.o, w32font.o): New objects.
16841 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16842 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16843
16844 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16845 STORE_XCHARB a valid l-value.
16846
16847 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16848 calculations for non-Truetype fonts.
16849 (x_draw_glyph_string): Sync with xterm.c.
16850 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16851 Remove redundant code.
16852 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16853
16854 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16855 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16856
16857 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16858 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16859
16860 * w32font.c: New file for w32 font backend.
16861
168622008-02-01 Kenichi Handa <handa@m17n.org>
16863
16864 * term.c: Don't include "buffer.h" twice.
16865
168662008-02-01 Kenichi Handa <handa@m17n.org>
16867
16868 * character.c (Funibyte_string): New function.
16869 (syms_of_character): Defsubr it.
16870
168712008-02-01 Jason Rumney <jasonr@gnu.org>
16872
16873 * w32term.c [USE_FONT_BACKEND]:
16874 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16875 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16876 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16877 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16878 (x_free_frame_resources): Sync with xterm.c.
16879
168802008-02-01 Andreas Schwab <schwab@suse.de>
16881
16882 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16883 char-table size.
16884
168852008-02-01 Kenichi Handa <handa@m17n.org>
16886
16887 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16888
168892008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16892 font_otf_gpos, add font_drive_otf.
16893
16894 * fontset.c (fontset_find_font): Pay attention to font size
16895 specified for a font.
16896 (reorder_font_vector): Check contents of font_def.
16897
16898 * font.c (struct otf_list): Delete it.
16899 (otf_list): Make it a lisp variable.
16900 (otf_open): Use lispy otf_list.
16901 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16902 (check_otf_features): New function.
16903 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16904 New functions.
16905 (font_drive_otf): New function merging font_otf_gsub and
16906 font_otf_gpos.
16907 (font_open_for_lface): New arg spec. Change argument order.
16908 (font_load_for_face): Adjust for the change of font_open_for_lface.
16909 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16910 Ffont_otf_gpos.
16911 (syms_of_font): Staticpro otf_list. Delete defsubr of
16912 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16913
16914 * xfaces.c (set_font_frame_param): Adjust for the change of
16915 font_open_for_lface.
16916
16917 * font.h (font_open_for_lface): Adjust prototype.
16918 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16919 member otf_drive.
16920 (font_otf_gsub, font_otf_gpos): Delete externs.
16921 (font_drive_otf): Extern it.
16922
169232008-02-01 Kenichi Handa <handa@m17n.org>
16924
16925 * font.c (font_at): If the window W is not on a window system,
16926 return Qnil.
16927
16928 * coding.c (produce_chars, encode_coding): Don't call
16929 insert_from_gap if no characters to produce.
16930
169312008-02-01 Kenichi Handa <handa@m17n.org>
16932
16933 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16934 Fclear_face_cache.
16935
16936 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16937
169382008-02-01 Miles Bader <miles@gnu.org>
16939
16940 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16941 Parse "--disable-font-backend" option.
16942 (standard_args): Add "--disable-font-backend" option.
16943
169442008-02-01 Kenichi Handa <handa@m17n.org>
16945
16946 * fontset.c (fontset_find_font): New function.
16947 (fontset_font): Use fontset_find_font.
16948 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16949 Register the specified font for all Latin characters.
16950 (new_fontset_from_font): Register the specified font for all Latin
16951 characters.
16952 (dump_fontset): For a realized fontset, include the base fontset
16953 name in the returned vector.
16954
169552008-02-01 Kenichi Handa <handa@m17n.org>
16956
16957 * character.h (CHAR_STRING): Cast C to unsigned on calling
16958 char_string.
16959
16960 * character.c (char_string): Type of arg C changed to unsigned.
16961 Signal an error if C is an invalid character code.
16962
16963 * editfns.c (general_insert_function, Fchar_to_string):
16964 Use CHARACTERP, not INTEGERP.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16969 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16970
16971 * regex.c (analyse_first): Fix for multibyte characters in "case
16972 charset:" and "case categoryspec:".
16973
169742008-02-01 Andreas Schwab <schwab@suse.de>
16975
16976 * Makefile.in (LIBES): Move standard libraries to the end.
16977
169782008-02-01 Kenichi Handa <handa@m17n.org>
16979
16980 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16981 nonzero, don't shrink the buffer nextb.
16982
16983 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16984
16985 * coding.c (coding_alloc_by_making_gap): New arg offset.
16986 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16987 offset.
16988 (decode_coding_iso_2022): Update coding->safe_charsets.
16989 (decode_coding_gap): Temporarily set
16990 current_buffer->text->inhibit_shrinking to 1.
16991
169922008-02-01 Kenichi Handa <handa@m17n.org>
16993
16994 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16995 indexing into elements of s->cmp and s->char2b.
16996
169972008-02-01 Juanma Barranquero <lekktu@gmail.com>
16998
16999 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17000
170012008-02-01 Kenichi Handa <handa@m17n.org>
17002
17003 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17004 target_multibyte instead of multibyte.
17005 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17006 (bcmp_translate): Change the argument name from multibyte to
17007 target_multibyte.
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 These changes are to compile a regexp into a pattern that can be
17012 used both for multibyte and unibyte targets.
17013
17014 * Makefile.in (search.o): Depend on charset.h.
17015
17016 * character.c (multibyte_char_to_unibyte_safe): New function.
17017
17018 * search.c: Include "charset.h".
17019 (compile_pattern_1): Delete argument multibyte. Don't set
17020 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17021 (compile_pattern): Don't compare cp->buf.target_multibyte.
17022 Compare cp->buf.charset_unibyte.
17023 (compile_pattern): Set cp->buf.target_multibyte.
17024
17025 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17026
17027 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17028
17029 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17030 multibyte. Change callers.
17031 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17032 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17033 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17034 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17035 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17036 (regex_compile): Make the compiled pattern usable both for
17037 multibyte and unibyte targets.
17038 (analyse_first): Make the fastmap usable both for multibyte and
17039 unibyte targets.
17040 (TRANSLATE_VIA_MULTIBYTE): Delete.
17041 (re_match_2_internal): Pay attention to the case that the
17042 multibyteness of bufp and target may be different.
17043
170442008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17047 empty box occupy at least one column width.
17048
170492008-02-01 Miles Bader <miles@gnu.org>
17050
17051 * Makefile.in: Remove redundant HAVE_XFT clause.
17052
170532008-02-01 Kenichi Handa <handa@m17n.org>
17054
17055 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17056
170572008-02-01 Kenichi Handa <handa@m17n.org>
17058
17059 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17060 being nil.
17061
170622008-02-01 Kenichi Handa <handa@m17n.org>
17063
17064 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17065
170662008-02-01 Kenichi Handa <handa@m17n.org>
17067
17068 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * search.c (simple_search): Fix previous change.
17073
170742008-02-01 Kenichi Handa <handa@m17n.org>
17075
17076 * xftfont.c (ftfont_font_format): Extern declaration.
17077
17078 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17079
17080 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17081 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17082
17083 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17084 (ftfont_font_format): Fix previous change.
17085
17086 * font.h (Ffont_xlfd_name): EXFUN it.
17087
17088 * font.c (font_parse_xlfd): Fix the array size of `f'.
17089 (register_font_driver): Use EQ to compare driver->type.
17090
17091 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17092 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17093 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17094
170952008-02-01 Kenichi Handa <handa@m17n.org>
17096
17097 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17098 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17099
171002008-02-01 Kenichi Handa <handa@m17n.org>
17101
17102 * xfont.c (xfont_open): Set font->format.
17103
17104 * xftfont.c (xftfont_open): Set font->format.
17105
17106 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17107 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17108 (ftfont_open): Set font->format.
17109 (ftfont_font_format): New function.
17110
17111 * font.h (struct font): New member format.
17112
17113 * font.c (Qopentype): New variable.
17114 (syms_of_font): Defsym it.
17115 (Fquery_font): Change the format of the last element of the return
17116 value.
17117
171182008-02-01 Kenichi Handa <handa@m17n.org>
17119
17120 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17121 last resort.
17122
171232008-02-01 Kenichi Handa <handa@m17n.org>
17124
17125 * coding.c (detect_coding_charset): Fix detection of multi-byte
17126 charset.
17127
171282008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17129
17130 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17131
171322008-02-01 Kenichi Handa <handa@m17n.org>
17133
17134 * xdisp.c (get_next_display_element): Set it->face_id for the
17135 first component of a composition.
17136 (x_produce_glyphs): Check if the font is changed or not for composition.
17137
171382008-02-01 Kenichi Handa <handa@m17n.org>
17139
17140 * fontset.c (Qlatin): New variable.
17141 (syms_of_fontset): Define it as a lisp symbol.
17142 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17143
171442008-02-01 Kenichi Handa <handa@m17n.org>
17145
17146 * font.c (font_unparse_fcname): Pay attention to the case that
17147 some of font property is a null string.
17148
171492008-02-01 Kenichi Handa <handa@m17n.org>
17150
17151 * term.c: Include "composite.h".
17152 (encode_terminal_code): Output all components of composition.
17153 Check the size of encode_terminal_src.
17154 (produce_glyphs): For composition, call produce_composite_glyph.
17155 (append_composite_glyph, produce_composite_glyph): New functions.
17156
17157 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17158 is not found, get font_info from the current ascii face.
17159
171602008-02-01 Kenichi Handa <handa@m17n.org>
17161
17162 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17163 buffer-file-name to Qnil before calling insert_from_buffer.
17164
17165 * font.c (font_unparse_fcname): Pay attention to the case that
17166 foundry is a null string.
17167
171682008-02-01 Kenichi Handa <handa@m17n.org>
17169
17170 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17171
17172 * font.c (Qunicode_sip): New variable.
17173 (syms_of_font): Declare it as a Lisp symbol.
17174
17175 * font.h (Qunicode_sip): Extern it.
17176
171772008-02-01 Kenichi Handa <handa@m17n.org>
17178
17179 * composite.c (get_composition_id): Pay attention to TAB component.
17180
17181 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17182 TAB. Adjust for the change of s->char2b which always points to
17183 the first element of allocated memory.
17184
17185 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17186
17187 * xdisp.c (handle_composition_prop): Set it->c to the first
17188 non-TAB component.
17189 (fill_composite_glyph_string): Change argument.
17190 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17191 (x_produce_glyphs): Fix handling of left/right padding.
17192
171932008-02-01 Kenichi Handa <handa@m17n.org>
17194
17195 * coding.c (detect_coding_system): Fix for handling off
17196 inhibit_iso_escape_detection. Fix for the case that no coding
17197 system is defined for a specific coding category.
17198
171992008-02-01 Kenichi Handa <handa@m17n.org>
17200
17201 * font.c (font_matching_entity): Delete unused local var.
17202
17203 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17204 opening a font.
17205
17206 * fileio.c (Finsert_file_contents): On recovering a file, assume
17207 Unix-like eol.
17208 (choose_write_coding_system): On auto-saving a file, force
17209 Unix-like eol.
17210
17211 * coding.c (setup_coding_system): Fix setting of
17212 coding->common_flags based on eol_type.
17213 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17214 inherit from it.
17215
172162008-02-01 Kenichi Handa <handa@m17n.org>
17217
17218 * alloc.c (NSTATICS): Increas to 0x600.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17223 (ftfont_list): Don't check :name property.
17224 (ftfont_match): New function.
17225 (ftfont_pattern_entity): If the pattern doesn't contain
17226 FC_SPACING, don't assume FC_MONO.
17227
17228 * font.h (struct font_driver): New member `match'.
17229 (font_update_drivers): Adjust prototype.
17230
17231 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17232 property of FONT.
17233 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17234 them unconditionally.
17235 (font_matching_entity): New function.
17236 (font_open_by_name): Try font_matching_entity if exact match is
17237 not found.
17238 (font_update_drivers): Delete the arg FONT. Return a list of
17239 actually used backends. Don't free faces, font caches here.
17240 Don't store data in frame parameters. Don't call x_set_font.
17241 (Ffont_spec): Store :name property as is.
17242 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17243 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17244 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17245 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17246 Call font->driver->otf_gsub instead of font_otf_gsub.
17247
17248 * frame.c (x_set_font_backend): Do more works that were done in
17249 font_update_drivers before.
17250
17251 * xfont.c (xfont_match): New function.
17252 (xfont_driver): Set xfont_driver.match to xfont_match.
17253 (xfont_draw): Set font in GC if necessary.
17254
17255 * ftxfont.c (ftxfont_match): New function.
17256 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17257
17258 * xftfont.c (xftfont_match): New function.
17259 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * font.h (struct font): New member scalable.
17264 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17265 (font_otf_gsub): Adjust prototype.
17266
17267 * font.c (font_otf_capability): Fix handling of the default langsys.
17268 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17269 Check the contents of SPEC.
17270 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17271 (check_gstring): New function.
17272 (REPLACEMENT_CHARACTER): New macro.
17273 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17274 glyph codes of GSTRING.
17275 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17276 (font_prepare_composition): Set cmp->glyph_len.
17277 (font_open_entity): Set font->scalable.
17278 (Ffont_get): Handle :otf property.
17279 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17280 functions.
17281 (Fquery_font): Use font->font.full_name.
17282 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17283 Sfont_otf_alternates.
17284
17285 * ftfont.c (ftfont_open): Set font->font.full_name and
17286 font->font.name properly. Fix calculation of font->font.height
17287 and font->min_width.
17288
17289 * ftxfont.c (ftxfont_create_gcs): New function.
17290 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17291 (ftxfont_draw_backgrond): Fix filling region.
17292 (ftxfont_default_fid): New function.
17293 (ftxfont_open): Set xfont->fid to the return value of
17294 ftxfont_default_fid.
17295 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17296 (ftxfont_done_face): Free only GCs that are created by
17297 ftxfont_create_gcs.
17298 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17299
17300 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17301 Clip to src->width, etc (not src->clip_XXX).
17302
17303 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17304 FontBackend frame parameter.
17305
173062008-02-01 Kenichi Handa <handa@m17n.org>
17307
17308 * font.h (struct font_driver_list): New member `on'.
17309 (Fclear_font_cache): EXFUN it.
17310 (font_update_drivers): Extern it.
17311
17312 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17313 (font_list_entities): Check driver_list->on.
17314 (register_font_driver): Initalize `on' member to 0.
17315 (font_update_drivers): New function.
17316 (Fclear_font_cache): Check driver_list->on.
17317
17318 * frame.h (Qfont_backend): Extern it.
17319 (x_set_font_backend): Extern it.
17320
17321 * frame.c (Qfont_backend): New variable.
17322 (frame_parms): New element for font-backend.
17323 (x_set_font_backend): New function.
17324
17325 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17326 FontBackend frame parameter.
17327 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17328 x_set_font_backend.
17329
17330 * xfont.c (xfont_list): Don't try listing by :name property if the
17331 name is not for XLFD.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17336 (LGLYPH_SET_TO): New macros.
17337 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17338 element of G is vector or not.
17339 (font_at): Extern it.
17340
17341 * font.c: Include window.h.
17342 (font_lispy_object): New function.
17343 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17344 end of valid glyph.
17345 (font_close_object): Fix getting (struct font *).
17346 (font_at): New function.
17347 (Ffont_get): If FONT is a font-object, get entity from it.
17348 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17349 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17350 range check.
17351 (Ffont_at): New function.
17352 (syms_of_font): Defsubr Sfont_at.
17353
17354 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17355 before the entry for Qcomposition.
17356 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17357 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17358 the font in gstring.
17359 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17360 LGLYPH_FORM (g) to detect the end of valid glyph.
17361 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17362 we are composing with gstring.
17363
17364 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17365 Check if adjustment is vector or not.
17366
17367 * Makefile.in (font.o): Make it depends on window.h.
17368
173692008-02-01 Kenichi Handa <handa@m17n.org>
17370
17371 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17372 adjustment is vector or not.
17373
173742008-02-01 Miles Bader <miles@gnu.org>
17375
17376 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17377
173782008-02-01 Kenichi Handa <handa@m17n.org>
17379
17380 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17381 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17382 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17383
17384 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17385 (DEVICE_DELTA): Fix typo.
17386 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17387 LGLYPH format.
17388
17389 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17390 the change of LGLYPH format.
17391
173922008-02-01 Kenichi Handa <handa@m17n.org>
17393
17394 * ftfont.c (ftfont_list): Fix typo.
17395 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17396
173972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17398
17399 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17400
17401 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17402 xftface_info is non-NULL.
17403
174042008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17405
17406 * ftfont.c (ftfont_list): Move misplaced #endif.
17407
174082008-02-01 Kenichi Handa <handa@m17n.org>
17409
17410 * ftfont.c (ftfont_list): Pay attention to the case that
17411 FC_CAPABILITY is not defined.
17412
174132008-02-01 Kenichi Handa <handa@m17n.org>
17414
17415 * xftfont.c (xftfont_open): Set charset related members to -1.
17416
17417 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17418 QCname.
17419 (ftfont_open): Set charset related members to -1.
17420
17421 * fontset.c (Votf_script_alist): New variable.
17422 (syms_of_fontset): Initialize it.
17423 (fontset_font): Delete unused variable.
17424
17425 * fontset.h (Votf_script_alist): Extern it.
17426
17427 * font.c (font_find_for_lface): Optimize code.
17428
17429 * font.h (font_close_object, font_merge_old_spec): Extern them.
17430
174312008-02-01 Kenichi Handa <handa@m17n.org>
17432
17433 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17434 (syms_of_font): Initialize them.
17435 (font_pixel_size): Allow float value in dpi.
17436 (font_prop_validate_type): Delete.
17437 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17438 Change caller.
17439 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17440 (font_prop_validate_extra): Delete.
17441 (font_prop_validate_spacing): New function.
17442 (font_property_table): Add elements for all known properties.
17443 (get_font_prop_index): Rename from check_font_prop_name. New
17444 argument FROM. Change caller.
17445 (font_prop_validate): Validate all known properties.
17446 (font_put_extra): Delete argument force. Change caller.
17447 (font_expand_wildcards): Make it static. Fix the way of shrinking
17448 the possible range.
17449 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17450 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17451 Change caller.
17452 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17453 (font_parse_fcname): Delete argument merge. Fix parsing of point
17454 size. Don't validate properties values here. Change caller.
17455 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17456 (font_open_by_name): Delete unused variable.
17457 (Ffont_spec): Likewise. Validate property values.
17458 (Ffont_match_p): New function.
17459
17460 * font.h (QCscalable): Extern it.
17461 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17462
17463 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17464
17465 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17466 (xfont_list_pattern): New function.
17467 (xfont_list): Use xfont_list_pattern.
17468
174692008-02-01 Kenichi Handa <handa@m17n.org>
17470
17471 * font.h (Flist_fonts): EXFUN it.
17472
174732008-02-01 Jason Rumney <jasonr@gnu.org>
17474
17475 * w32term.c (w32_initialize): Add back smoothing_type and
17476 smoothing_enabled definitions.
17477
174782008-02-01 Kenichi Handa <handa@m17n.org>
17479
17480 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17481 s->face->font on determining underline position.
17482
174832008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17486 (font_has_char): Accept font-object too.
17487 (font_find_for_lface): Try at first with a size specified in face.
17488
174892008-02-01 Kenichi Handa <handa@m17n.org>
17490
17491 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17492 font_open_by_name.
17493
174942008-02-01 Kenichi Handa <handa@m17n.org>
17495
17496 * font.h (QCspacing, QCdpi): Extern them.
17497 (enum font_spacing): New enum.
17498 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17499
17500 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17501 (QCspacing, QCdpi): New variables.
17502 (syms_of_font): Initialize them.
17503 (font_pixel_size): New function.
17504 (font_put_extra): New function.
17505 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17506 in FONT_EXTRA.
17507 (font_parse_fcname): Handle enumerated values (e.g. bold).
17508 Fix handling font size. Add QCname property that contains only
17509 unknown properties.
17510 (font_score): Change argument. Change caller. Pay attention to
17511 FONT_PIXEL_SIZE_QUANTUM.
17512 (font_sort_entites, font_list_entities, font_find_for_lface)
17513 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17514 (Ffont_spec): Add QCname property that contains only unknown properties.
17515
17516 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17517 include weight in listing pattern, instead check weight of each
17518 listed font. Don't include scalable in pattern. Pay attention to
17519 FONT_PIXEL_SIZE_QUANTUM.
17520
175212008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * font.c (font_parse_fcname): Fix parsing of point-size.
17524 (font_unparse_fcname): Produce symbolic names for style properties.
17525 (font_list_entities): Handle float size correctly.
17526 (font_open_by_name): Prefer `normal' property values if the name
17527 doesn't specify them.
17528
17529 * fontset.c (Finternal_char_font): Use font_get_name, not
17530 Ffont_xlfd_name.
17531
17532 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17533 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17534 pattern. Don't force scalable.
17535
17536 * xftfont.c (xftfont_open): For generating a name, start from
17537 96-byte buffer.
17538
175392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17540
17541 * frame.h (x_new_fontset2): Fix prototype.
17542
175432008-02-01 Kenichi Handa <handa@m17n.org>
17544
17545 * font.h (struct font_driver): Delete member parse_name.
17546 (font_match_p, font_get_spec, font_parse_fcname)
17547 (font_unparse_fcname): Extern them.
17548 (font_get_name): Adjust prototype.
17549
17550 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17551 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17552 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17553 unnecessary checks for weight, slant, and swidth.
17554 (font_parse_fcname): New function.
17555 (font_unparse_fcname): New function.
17556 (font_parse_name): New function.
17557 (font_match_p): New function.
17558 (font_get_name): Change return value to Lisp string.
17559 (font_get_spec): New function.
17560 (Qunspecified, Qignore_defface): Don't extern them.
17561 (font_find_for_lface): Assume that LFACE is fully specified.
17562 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17563 object, use it for FACE.
17564 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17565 driver->parse_name.
17566 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17567
17568 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17569 prototype.
17570
17571 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17572 argument F. Don't call Fnew_fontset. Instead, directly call
17573 make_fontset.
17574
17575 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17576
17577 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17578 of x_new_fontset2.
17579
17580 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17581 (Qsans__serif): New variables.
17582 (ftfont_generic_family_list): New variable.
17583 (syms_of_ftfont): Initialize the above variables.
17584 (ftfont_pattern_entity): Delete argument NAME.
17585 (ftfont_list_generic_family): New function.
17586 (ftfont_parse_name): Delete this function.
17587 (ftfont_list): Try generic family only when FcFontList found no font.
17588 (ftfont_list_family): Fix args to FcObjectSetBuild.
17589
17590 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17591 object in attrs[LFACE_FONT_INDEX].
17592 (set_lface_from_font_name): Cancel all changes for font-backend.
17593 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17594 function.
17595 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17596 font object in QCfont attribute.
17597 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17598 (realize_default_face) [USE_FONT_BACKEND]: Call
17599 set_lface_from_font_and_fontset.
17600
17601 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17602 "fixed", and signal error here if no suitable font was found.
17603
17604 * xfont.c (xfont_parse_name): Delete this function.
17605
17606 * xftfont.c (xftfont_open): Change coding style of error
17607 handling. Generate fontconfig's fontname pattern.
17608
17609 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17610 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17611
17612 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17613 Both args FONTSET and FONT_OBJECT must be existing ones.
17614
176152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17616
17617 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17618
176192008-02-01 Kenichi Handa <handa@m17n.org>
17620
17621 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17622
17623 * font.h (struct font): Fix typo.
17624
17625 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17626 XLFD_XXX_INDEX.
17627 (enum xlfd_field_mask): New enum.
17628 (intern_font_field): Changed argument. Change caller. If digits
17629 are followed by non-digits, return a symbol.
17630 (font_expand_wildcards): New function.
17631 (font_parse_xlfd): Fix wildcard handling.
17632 (Ffont_spec): If :name is specified, reflect the info in the other
17633 properties.
17634
17635 * ftfont.c (ftfont_pattern_entity): Fix typo.
17636 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17637 locale.
17638
176392008-02-01 Kenichi Handa <handa@m17n.org>
17640
17641 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17642
17643 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17644 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17645 registry doesn't specify encoding part.
17646 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17647 (font_open_by_name): At first try parsing the name.
17648 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17649 as Lisp symbols.
17650
17651 * fontset.c (reorder_font_vector): Pay attention to the case that
17652 the 3rd element of font_def is nil.
17653 (fontset_font): For the default fontset, append one more fontset
17654 elements for a script-based font specification. Don't add script
17655 attribute on finding a font.
17656 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17657 font name.
17658 (fontset_ascii_font): If a font can't be opened, return nil.
17659
17660 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17661 (ftfont_pattern_entity): New function.
17662 (ftfont_get_cache): Assume that freetype_font_cache is already
17663 initialized.
17664 (ftfont_list): Handle the case that a file is specified in font
17665 name. Use ftfont_pattern_entity to generate entities.
17666 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17667 (syms_of_ftfont): Initialize freetype_font_cache.
17668
17669 * xftfont.c (xftfont_open): Make the font name fontconfig's
17670 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17671 (xftfont_close): Free font->font.name if not NULL.
17672
17673 * xfont.c (xfont_list): If script is specified for a font, return
17674 null_vector.
17675 (xfont_list_family): Declare argument type.
17676
17677 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17678 name, set LFACE_FONT (lface) to nil.
17679
17680 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17681 return Qnil.
17682
176832008-02-01 Kenichi Handa <handa@m17n.org>
17684
17685 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17686 (standard_args): Add "-enable-font-backend".
17687
176882008-02-01 Kenichi Handa <handa@m17n.org>
17689
17690 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17691 (struct xftdraw_list, xftdraw_list): Delete them.
17692 (register_xftdraw, check_xftdraw): Delete them.
17693 (xftfont_prepare_face): Don't call register_xftdraw.
17694 (xftfont_done_face): Don't call check_xftdraw.
17695 (xftfont_draw): Get background color only when with_background is
17696 nonzero.
17697
17698 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17699
177002008-02-01 Kenichi Handa <handa@m17n.org>
17701
17702 These changes are for the new font handling codes.
17703
17704 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17705 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17706 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17707 (FONTSRC, FONTOBJ): New variables.
17708 (obj): Add $(FONTOBJ).
17709 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17710 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17711 @LIBOTF_LIBS@.
17712 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17713 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17714
17715 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17716
17717 * character.h (Vscript_representative_chars): Extern it.
17718
17719 * character.c (Vscript_representative_chars): New variable.
17720 (syms_of_character): Declare it as a Lisp variable.
17721
17722 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17723 enable_font_backend is nonzero, accept the composition method
17724 COMPOSITION_WITH_GLYPH_STRING.
17725
17726 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17727 enumeration COMPOSITION_WITH_GLYPH_STRING.
17728
17729 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17730 members clip_x, clip_y, clip_width, and clip_height.
17731 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17732
17733 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17734 --enable-font-backend. Call syms_of_font.
17735
17736 * fns.c (assoc_no_quit): New function.
17737
17738 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17739 (face_for_font, new_fontset_from_font)
17740 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17741
17742 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17743 (fontset_font, fontset_ascii, face_for_char)
17744 (make_fontset_for_ascii_face, Ffont_info)
17745 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17746 is nonzero, use font-backend mechanism.
17747 (find_font_encoding): Make it non-static.
17748 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17749 New functions.
17750
17751 * frame.h (struct frame): New members resx and resy.
17752 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17753 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17754
17755 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17756 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17757
17758 * lisp.h (assoc_no_quit): Extern it.
17759
17760 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17761 Through out the file, use FONT_INFO_FROM_FACE instead of
17762 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17763 rif->per_char_metric.
17764 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17765 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17766 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17767 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17768 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17769 nonzero, use font-backend mechanism.
17770 (get_per_char_metric): New function.
17771
17772 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17773 (set_lface_from_font_name)
17774 (set_font_frame_param, free_realized_face)
17775 (prepare_face_for_display, clear_face_gcs)
17776 (Finternal_set_font_selection_order, realize_x_face)
17777 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17778 font-backend mechanism.
17779 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17780 (load_face_font) [USE_FONT_BACKEND]: Abort.
17781 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17782 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17783
17784 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17785 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17786 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17787 nonzero, register all available font drivers. Call
17788 x_default_font_parameter for deciding a font.
17789 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17790
17791 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17792 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17793 (x_set_glyph_string_clipping_exactly)
17794 (x_compute_glyph_string_overhangs)
17795 (x_draw_glyph_string_foreground)
17796 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17797 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17798 enable_font_backend is nonzero, use font-backend mechanism.
17799 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17800
178012008-02-01 Kenichi Handa <handa@m17n.org>
17802
17803 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17804 system_eol_type.
17805 (syms_of_coding): Initialize system_eol_type.
17806
17807 * process.c (Fset_process_coding_system): Inherit system's eol
17808 format if necessary.
17809
178102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17811
17812 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17813
178142008-02-01 Kenichi Handa <handa@m17n.org>
17815
17816 * coding.c (decode_eol): Pay attention to buffer relocation in
17817 del_range_2.
17818 (decode_coding): Call decode_eol before restoring undo_list.
17819
178202008-02-01 Kenichi Handa <handa@m17n.org>
17821
17822 * charset.c (Fdefine_charset_internal): Fix setting of
17823 emacs_mule_bytes.
17824
178252008-02-01 Kenichi Handa <handa@m17n.org>
17826
17827 * keyboard.c (read_char): Check if C is a character or not before
17828 looking up Vkeyboard_translate_table.
17829
178302008-02-01 Kenichi Handa <handa@m17n.org>
17831
17832 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17833 condition to terminate the loop.
17834
178352008-02-01 Kenichi Handa <handa@m17n.org>
17836
17837 * coding.c (produce_composition): Compare charbuf[i] instead of
17838 args[i] against 0.
17839 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17840
178412008-02-01 Kenichi Handa <handa@m17n.org>
17842
17843 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17844 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17845 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17846 detect_coding.
17847 (emacs_mule_char): Handle old style (Emacs 20) component character
17848 of a composition.
17849 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17850 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17851 composition rule.
17852 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17853
178542008-02-01 Kenichi Handa <handa@m17n.org>
17855
17856 * coding.c (encode_coding_ccl): Allocate destination dynamically
17857 when necessary.
17858
178592008-02-01 Kenichi Handa <handa@m17n.org>
17860
17861 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17862 the loop. When quitted, show a proper error message.
17863
178642008-02-01 Kenichi Handa <handa@m17n.org>
17865
17866 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17867 src->clip_head and src->clip_tail temporarily instead of src->hl.
17868
17869 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17870 character sequence.
17871 (Fccl_execute_on_string): Use ASET, not XSET.
17872
178732008-02-01 Kenichi Handa <handa@m17n.org>
17874
17875 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17876
178772008-02-01 Kenichi Handa <handa@m17n.org>
17878
17879 * coding.c (decode_coding): Fix the condition of terminating the
17880 decoding loop.
17881
178822008-02-01 Kenichi Handa <handa@m17n.org>
17883
17884 * data.c (Faset): On setting a character bigger than 255 in a
17885 unibyte string, signal an error instead of make the string multibyte.
17886
178872008-02-01 Kenichi Handa <handa@m17n.org>
17888
17889 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17890 made by a mapping table.
17891
178922008-02-01 Kenichi Handa <handa@m17n.org>
17893
17894 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17895 not.
17896 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17897 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17898
17899 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17900 s->face is NULL or not.
17901
179022008-02-01 Kenichi Handa <handa@m17n.org>
17903
17904 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17905 (x_draw_glyph_string): Fix drawing of right_overhang and
17906 left_overhang around/on cursor.
17907
17908 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17909
179102008-02-01 Kenichi Handa <handa@m17n.org>
17911
17912 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17913
179142008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * coding.c (Fdefine_coding_system_internal)
17917 (Fdefine_coding_system_alias): Avoid a duplicated element in
17918 Vcoding_system_alist.
17919
179202008-02-01 Kenichi Handa <handa@m17n.org>
17921
17922 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17923
17924 * coding.c (Qcoding_system_define_form): New variable.
17925 (syms_of_coding): Intern and staticpro it.
17926 (Fcoding_system_p): Check Qcoding_system_define_form.
17927 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17928
17929 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17930 Fcoding_system_p.
17931 (CHECK_CODING_SYSTEM): If ID is not available, call
17932 Fcheck_coding_system.
17933 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17934 Try also Fcheck_coding_system.
17935
179362008-02-01 Kenichi Handa <handa@m17n.org>
17937
17938 * coding.c (code_conversion_restore): GCPRO arg.
17939
179402008-02-01 Kenichi Handa <handa@m17n.org>
17941
17942 * character.c (lisp_string_width): Check multibyteness of STRING.
17943
179442008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17945
17946 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17947 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17948 (decode_mac_font_name): Use decode_coding_c_string instead of
17949 decode_coding.
17950 (x_load_font): Initialize fontp->fontset to -1. Set
17951 fontp->encoding_type.
17952
179532008-02-01 Kenichi Handa <handa@m17n.org>
17954
17955 * search.c (search_buffer): Give up BM search on case-fold-search
17956 if one of a target character has a case-equivalence of different
17957 byte length even if that target charcter is an ASCII.
17958 (simple_search): Fix calculation of byte length of matched text.
17959 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17960
179612008-02-01 Kenichi Handa <handa@m17n.org>
17962
17963 * coding.c (decode_coding): Fix handling of invalid bytes.
17964
179652008-02-01 Kenichi Handa <handa@m17n.org>
17966
17967 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17968 Unicode characters.
17969
179702008-02-01 Kenichi Handa <handa@m17n.org>
17971
17972 * coding.c (encode_coding_object): If a pre-write-conversion
17973 function makes a new buffer, kill it.
17974
179752008-02-01 Kenichi Handa <handa@m17n.org>
17976
17977 * coding.c (QCascii_compatible_p): New variable.
17978 (syms_of_coding): Initialize it.
17979 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17980 calling string_char.
17981 (record_conversion_result): Add `default:' case.
17982 (coding_charset_list): Delete unused variable `coding_type'.
17983 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17984 property in the plist of the coding system.
17985 (Fcoding_system_put): Check QCascii_compatible_p.
17986
179872008-02-01 Miles Bader <miles@gnu.org>
17988
17989 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17990 removed calculation of frame `f', as it's now used.
17991
179922008-02-01 Kenichi Handa <handa@m17n.org>
17993
17994 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17995 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17996 (UNIDATA): New variable.
17997 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17998 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17999 $(RUN_TEMACS) unconditionally.
18000
180012008-02-01 Kenichi Handa <handa@m17n.org>
18002
18003 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18004 (admindir): New variable.
18005 ($(lispsource)international/charprop.el): New target.
18006
180072008-02-01 Miles Bader <miles@gnu.org>
18008
18009 * character.c (chars-in-region): Remove obsolete function.
18010 (syms_of_character): Remove its initialization.
18011
180122008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18013
18014 * w32select.c (validate_coding_system)
18015 (setup_windows_coding_system): New functions.
18016 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18017 setup_windows_coding_system.
18018 (setup_config, Fw32_get_clipboard_data): Use
18019 validate_coding_system.
18020 (Fx_selection_exists): Move call to setup_config to a place
18021 where signals are allowed.
18022
18023 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18024 (Fcheck_coding_system): Add declarations.
18025
180262008-02-01 Kenichi Handa <handa@m17n.org>
18027
18028 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18029
180302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18031
18032 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18033 string as the second argument for x_new_fontset.
18034
180352008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18038 (encode_coding_object): Use safe_call instead of call2.
18039
180402008-02-01 Kenichi Handa <handa@m17n.org>
18041
18042 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18043
18044 * Makefile.in (lisp): Include charprop.el.
18045
180462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18047
18048 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18049 Not sure if it's unnecessary.
18050
180512008-02-01 Steven Tamm <steventamm@mac.com>
18052
18053 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18054 some possibly unnecessary fontset checking code that crashed
18055 when creating a new frame.
18056
180572008-02-01 Kenichi Handa <handa@m17n.org>
18058
18059 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18060 lookup_face.
18061
18062 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18063
18064 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18065
180662008-02-01 Kenichi Handa <handa@m17n.org>
18067
18068 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18069 (coding_charset_list): New function.
18070
18071 * coding.h (coding_charset_list): Extern it.
18072
180732008-02-01 Kenichi Handa <handa@m17n.org>
18074
18075 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18076 concatenation of family and registry.
18077
180782008-02-01 Kenichi Handa <handa@m17n.org>
18079
18080 * character.h (BYTE8_STRING): Fix typo.
18081
18082 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18083 string to multibyte (sync to HEAD).
18084
18085 * casefiddle.c (casify_region): Handle changes in byte-length
18086 using replace_range_2 (sync to HEAD).
18087
180882008-02-01 Andreas Schwab <schwab@suse.de>
18089
18090 * chartab.c (map_char_table): GCPRO table and arg.
18091
180922008-02-01 Kenichi Handa <handa@m17n.org>
18093
18094 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18095 already at limit.
18096
180972008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18100 instead of fast_c_string_match_ignore_case.
18101 (find_font_encoding): Change argument to Lisp_Object. Use
18102 fast_string_match_ignore_case instead of
18103 fast_c_string_match_ignore_case. Change caller.
18104
181052008-02-01 Kenichi Handa <handa@m17n.org>
18106
18107 * xdisp.c (get_next_display_element): In unibyte case, decide to
18108 display in octal form by checking a character by
18109 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18110
18111 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18112
18113 * character.c (unibyte_has_multibyte_table): New variable.
18114
18115 * character.h (unibyte_has_multibyte_table): Extern it.
18116 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18117
181182008-02-01 Kenichi Handa <handa@m17n.org>
18119
18120 * coding.c (encode_coding_iso_2022): Fix handling of charset
18121 annotation.
18122
181232008-02-01 Kenichi Handa <handa@m17n.org>
18124
18125 * coding.c (setup_coding_system): If coding_system is nil, use
18126 Qundecided.
18127 (Fterminal_coding_system): Return nil if terminal coding system is
18128 `undecided'.
18129 (syms_of_coding): Define coding-system `undecided' here. Setup
18130 terminal_coding as `undecided'.
18131
181322008-02-01 Kenichi Handa <handa@m17n.org>
18133
18134 * xdisp.c (message_dolog, set_message_1): Call
18135 unibyte_char_to_multibyte with arg type int.
18136
18137 * lread.c (read1): Fix reading of a char-table.
18138
18139 * print.c (print_object): Include sub char-table in circularities
18140 detection.
18141
181422008-02-01 Kenichi Handa <handa@m17n.org>
18143
18144 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18145 Append the found sequences in car of ARGS instead of prepending.
18146
181472008-02-01 Kenichi Handa <handa@m17n.org>
18148
18149 * fileio.c (report_file_error): Make a unibyte string from
18150 strerror (errorno).
18151 (Fsubstitute_in_file_name): Fix the arg to
18152 unibyte_char_to_multibyte. It is evaluated twice.
18153
181542008-02-01 Kenichi Handa <handa@m17n.org>
18155
18156 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18157
181582008-02-01 Kenichi Handa <handa@m17n.org>
18159
18160 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18161 BOM is not found.
18162 (detect_coding, detect_coding_system): Optimization for ISO-2022
18163 when no 8-bit data is found.
18164
181652008-02-01 Jason Rumney <jasonr@gnu.org>
18166
18167 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18168
181692008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18172 CHARS.
18173
181742008-02-01 Steven Tamm <steventamm@mac.com>
18175
18176 * macterm.c (mac_encode_char): Add charset argument and update
18177 to use encoding_type.
18178 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18179 switch to pure fontset.
18180 (decode_mac_font_name): Temporarily remove decoding.
18181 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18182 (x_load_font): Temporarily remove encoding.
18183
181842008-02-01 Kenichi Handa <handa@m17n.org>
18185
18186 * xfaces.c (Fface_font): If frame is not on a window system,
18187 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18188 refer to face->font.
18189 (split_font_name_into_vector, build_font_name_from_vector)
18190 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18191 when HAVE_WINDOW_SYSTEM is defined.
18192
181932008-02-01 Kenichi Handa <handa@m17n.org>
18194
18195 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18196 (x_produce_glyphs): Fix setting of members of cmp in case
18197 cmp->glyph_len is zero.
18198
18199 * fontset.c (Fset_fontset_font): Fix docstring.
18200 (Ffontset_info): Make it backward compatible. New arg ALL.
18201
182022008-02-01 Kim F. Storm <storm@cua.dk>
18203
18204 * process.c (read_process_output): Grow decoding_buf when needed;
18205 this could cause a crash in allocate_string and compact_small_strings.
18206
182072008-02-01 Kenichi Handa <handa@m17n.org>
18208
18209 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18210
182112008-02-01 Kenichi Handa <handa@m17n.org>
18212
18213 * coding.c (setup_coding_system): Set coding->common_flags
18214 correctly for raw-text.
18215 (consume_chars): On encoding unibyte text by raw-text, don't check
18216 multibyte form.
18217 (encode_coding): On encoding by raw-text, never use translation tables.
18218
18219 * fileio.c (e_write): Short cut for the case of no encoding.
18220
182212008-02-01 Kenichi Handa <handa@m17n.org>
18222
18223 * coding.c (detect_coding, detect_coding_system): Delete unused
18224 variables.
18225
182262008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18229 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18230
182312008-02-01 Kenichi Handa <handa@m17n.org>
18232
18233 * coding.c (Ffind_coding_systems_region_internal): Include
18234 raw-text and no-conversion in the result.
18235
182362008-02-01 Kenichi Handa <handa@m17n.org>
18237
18238 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18239 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18240 FONT_DEF.
18241 (font_def_arg, add_arg, from_arg, to_arg): New args.
18242 (set_fontset_font): Change argument.
18243 (Fset_fontset_font): Fix for the case that TARGET is a script
18244 name and charset name.
18245 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18246
182472008-02-01 Kenichi Handa <handa@m17n.org>
18248
18249 * fontset.c (fontset_font): Rename from fontset_face. Change return
18250 value.
18251 (face_suitable_for_char_p, face_for_char): Adjust for the change
18252 of fontset_font.
18253 (make_fontset_for_ascii_face): Fix setting of the fontset element
18254 for ASCII.
18255 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18256 to get a font name.
18257 (Ffontset_info): Adjust for the change of fontset_font.
18258
18259 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18260
18261 * character.h (LEADING_CODE_LATIN_1_MIN)
18262 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18263
182642008-02-01 Kenichi Handa <handa@m17n.org>
18265
18266 * editfns.c (check_translation): New function.
18267 (Ftranslate_region_internal): Handle M:N mapping.
18268
182692008-02-01 Kenichi Handa <handa@m17n.org>
18270
18271 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18272
182732008-02-01 Kenichi Handa <handa@m17n.org>
18274
18275 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18276 goto invalid_code.
18277 (decode_coding_iso_2022): Fix handling of invalid designation.
18278
18279 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18280 after calling code_conversion_save.
18281
182822008-02-01 Kenichi Handa <handa@m17n.org>
18283
18284 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18285
18286 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18287
18288 * fontset.c: Include "intervals.h".
18289 (fontset_face): Fix comparing of Lisp_Objects.
18290 (free_face_fontset, new_fontset_from_font_name): Fix
18291 Lisp_Object/int mixup.
18292
18293 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18294
18295 * coding.c: Add many prototypes for static functions.
18296 (get_translation_table): Allow max_lookup to be NULL.
18297 (decode_coding, Ffind_coding_systems_region_internal)
18298 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18299 get_translation_table with max_lookup NULL.
18300
183012008-02-01 Kenichi Handa <handa@m17n.org>
18302
18303 * coding.c (get_translation_table): Declare it as Lisp_Object.
18304 (LOOKUP_TRANSLATION_TABLE): New macro.
18305 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18306 instead of CHAR_TABLE_REF.
18307
183082008-02-01 Kenichi Handa <handa@m17n.org>
18309
18310 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18311 annotation data format.
18312 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18313 Change arguments FROM and TO to single argument NCHARS. Change caller.
18314 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18315 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18316 (decode_coding_ccl, decode_coding_charset): Pay attention to
18317 coding->charbuf_used.
18318 (get_translation): New function.
18319 (produce_chars): New arguments translation_table and last_block.
18320 Translate characters here. Return number of carryover chars.
18321 Change caller.
18322 (produce_composition): New argument pos. Change caller.
18323 Adjust for the change of annotation data format.
18324 (produce_charset, produce_annotation): Likewise.
18325 (decode_coding, encode_coding): Don't call translate_chars.
18326 (consume_chars): New arg translation_table. Change caller.
18327 (translate_chars): Delete.
18328 (syms_of_coding): Make translation-table's number of extra slots 2.
18329
183302008-02-01 Kenichi Handa <handa@m17n.org>
18331
18332 * search.c (simple_search): Fix setting this_pos_byte in backward
18333 search.
18334
18335 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18336 byte sequence.
18337 (detect_coding_ccl): Fix setting of the variable valids.
18338
183392008-02-01 Kenichi Handa <handa@m17n.org>
18340
18341 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18342
18343 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18344
18345 * editfns.c (Ftranslate_region_internal): Rename from
18346 Ftranslate_region. Accept a char-table in TABLE.
18347 (syms_of_editfns): Defsubr Stranslate_region_internal.
18348
18349 * xfaces.c (set_lface_from_font_name): If a font is specified for
18350 a frame, generate a fontset from the font.
18351 (build_scalable_font_name): If the scalable font is requested for
18352 a specific size, don't change that size.
18353 (try_font_list): Try a scalable font also in the case that a
18354 pattern string is specified.
18355
183562008-02-01 Kenichi Handa <handa@m17n.org>
18357
18358 * xfaces.c (Fface_font): New optional arg CHARACTER.
18359
183602008-02-01 Kenichi Handa <handa@m17n.org>
18361
18362 * charset.h (CHARSET_OFFSET): New macro.
18363
183642008-02-01 Kenichi Handa <handa@m17n.org>
18365
18366 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18367
18368 * fontset.c (fontset_face): Handle the case that repertory is a
18369 char-table.
18370 (find_font_encoding): Return nil for unknown encoding.
18371 (Fset_fontset_font): Ignore a font of unknown encoding.
18372
183732008-02-01 Kenichi Handa <handa@m17n.org>
18374
18375 * keymap.c (describe_vector): Handle default value of a char table.
18376
18377 * fontset.c (fontset_face): Handle fallback fonts correctly.
18378 (Ffontset_info): Return infomation about fallback fonts.
18379
183802008-02-01 Kenichi Handa <handa@m17n.org>
18381
18382 * fontset.c (FONTSET_DEFAULT): New macro.
18383 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18384 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18385 the case that it is nil.
18386 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18387 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18388
18389 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18390 subset or superset.
18391
183922008-02-01 Kenichi Handa <handa@m17n.org>
18393
18394 * emacs.c (main): Call init_charset after syms_of_XXX.
18395
18396 * charset.c (Vcharset_map_directory): Delete.
18397 (Vcharset_map_path): New variable.
18398 (load_charset_map_from_file): Use Vcharset_map_path instead.
18399 (init_charset): Initialize Vcharset_map_path.
18400 (syms_of_charset): Delete declaration of "charset-map-directory",
18401 add declaration of "charset-map-path".
18402
184032008-02-01 Kenichi Handa <handa@m17n.org>
18404
18405 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18406 ASCII only string.
18407
18408 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18409
18410 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18411 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18412
184132008-02-01 Kenichi Handa <handa@m17n.org>
18414
18415 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18416
18417 * coding.c (QCmnemonic, QCdefalut_char)
18418 (QCdecode_translation_table, QCencode_translation_table)
18419 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18420 (get_translation_table): Return a list of translation tables if
18421 necessary.
18422 (decode_coding): Call get_translation_table with ENCODEP 0.
18423 (char_encodable_p): If translation_table is non-nil, always call
18424 translate_char.
18425 (Fdefine_coding_system_internal): Accept list of translation
18426 tables as :encode-translation-table and :decode-translation-table.
18427 (Fcoding_system_put): New function.
18428 (syms_of_coding): Declare new symbols. Defsubr
18429 Scoding_system_put.
18430 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18431 typically JISX0212.
18432
18433 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18434 when the charset is superset type.
18435
18436 * character.c (translate_char): Accept list of translation tables.
18437
184382008-02-01 Kenichi Handa <handa@m17n.org>
18439
18440 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18441 (CODING_ATTR_TRANS_TBL): New macro.
18442
18443 * coding.c (get_translation_table): New function.
18444 (translate_chars): Fix the bug of skipping annotation data.
18445 (decode_coding, encode_coding): Utilize get_translation_table.
18446 (char_encodable_p, Funencodable_char_position): Translate char if
18447 necessary.
18448 (Ffind_coding_systems_region_internal)
18449 (Fcheck_coding_systems_region): Setup translation table for encode
18450 in a coding system attribute vector in advance.
18451 (Fdefine_coding_system_internal): Allow a symbol as translation
18452 table. For shift-jis type coding system, allow 4th charset.
18453
184542008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18457
18458 * xdisp.c (get_next_display_element): Pass -1 as POS to
18459 FACE_FOR_CHAR if displaying a C-string.
18460
184612008-02-01 Kenichi Handa <handa@m17n.org>
18462
18463 * composite.c (get_composition_id): Handle xoff and yoff in a
18464 composition rule.
18465
18466 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18467 (struct composition): New member lbearing and rbearing.
18468
18469 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18470 (x_get_glyph_overhangs): Handle a composition glyph.
18471 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18472
18473 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18474 composition glyph.
18475
184762008-02-01 Kenichi Handa <handa@m17n.org>
18477
18478 * print.c: Include charset.h.
18479 (Vprint_charset_text_property): New variable.
18480 (Qdefault): Extern it.
18481 (PRINT_STRING_NON_CHARSET_FOUND)
18482 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18483 (print_check_string_result): New variable.
18484 (print_check_string_charset_prop): New function.
18485 (print_prune_charset_plist): New variable.
18486 (print_prune_string_charset): New function.
18487 (print_object): Call print_prune_string_charset if
18488 Vprint_charset_text_property is not t.
18489 (print_interval): Print nothing if interval->plist is nil.
18490 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18491 variable. Init and staticpro print_prune_charset_plist.
18492
184932008-02-01 Kenichi Handa <handa@m17n.org>
18494
18495 * fontset.c (new_fontset_from_font_name): Use the specified font
18496 for all characters in the new fontset.
18497
18498 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18499 OBJECT args.
18500
18501 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18502 OBJECT args for composition too.
18503
18504 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18505 OBJECT args.
18506
185072008-02-01 Kenichi Handa <handa@m17n.org>
18508
18509 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18510
18511 * fontset.c (reorder_font_vector): Adjust for the change of
18512 FONT_DEF format.
18513 (fontset_face): New arg id. Change caller.
18514 (face_for_char): New args pos and object.
18515 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18516 (fs_query_fontset): Check NAME by Fassoc too.
18517 (Fset_fontset_font): Allow non-XLFD font name.
18518 (Ffontset_info): Adjust for the change of FONT_DEF format.
18519
18520 * fontset.h (face_for_char): Adjust prototype.
18521
18522 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18523 (append_space, extend_face_to_end_of_line)
18524 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18525 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18526
18527 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18528 POS and OBJECT args.
18529
18530 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18531 POS and OBJECT args.
18532
185332008-02-01 Jason Rumney <jasonr@gnu.org>
18534
18535 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18536 of GlobalAlloc'ed memory.
18537
185382008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18541
18542 * charset.h (charset_table_used): Delete extern.
18543
18544 * charset.c (charset_table_used): Make it static.
18545 (map_charset_chars): Fix args to c_function with.
18546
18547 * chartab.c (map_sub_char_table_for_charset): Fix args to
18548 c_function with.
18549
18550 * coding.h (enum coding_result_code): Delete
18551 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18552
18553 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18554 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18555 (Vlast_code_conversion_error): New variables.
18556 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18557 (ONE_MORE_BYTE): Record error if any instead of signaling an
18558 error. If non-ASCII multibyte char is found, return the negative
18559 value of the code. All callers changed to check it.
18560 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18561 (record_conversion_result): New function. Change all codes setting
18562 coding->result to call this function.
18563 (detect_coding_utf_8, decode_coding_utf_8)
18564 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18565 Don't use the local variable incomplete.
18566 (emacs_mule_char): Change the second arg to `const'.
18567 (decode_coding): Fix of flushing out unprocessed data.
18568 (make_conversion_work_buffer): Fix making of a work buffer.
18569 (decode_coding_object): Return coding->dst_object.
18570
18571 * fontset.c (set_fontset_font): Fix args.
18572
18573 * lisp.h (CHARACTERBITS): Define as 22.
18574
18575 * process.c (send_process): Be sure to set coding->src_multibyte.
18576
18577 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18578
185792008-02-01 Kenichi Handa <handa@m17n.org>
18580
18581 * xdisp.c (handle_auto_composed_prop): Give limit to
18582 Fnext_single_char_property_change.
18583
185842008-02-01 Kenichi Handa <handa@m17n.org>
18585
18586 * composite.c (syms_of_composite): Don't make the composition hash
18587 table weak.
18588
18589 * fontset.c (Fset_fontset_font): Fix docstring.
18590
18591 * lisp.h (detect_coding_system): Adjust prototype.
18592
18593 * fileio.c (kill_workbuf_unwind): Delete this function.
18594 (Finsert_file_contents): Adjust the call of detect_coding_system.
18595 Get conversion_buffer by code_conversion_save. Use the macro
18596 CODING_MAY_REQUIRE_DECODING. After decoding, update
18597 coding_system.
18598
18599 * coding.h (make_conversion_work_buffer): Delete extern.
18600 (code_conversion_save): Extern it.
18601
18602 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18603 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18604 (decode_coding_utf_8): Don't do eol converion.
18605 (detect_coding_utf_16): Check coding->src_chars, not
18606 coding->src_bytes. Add heuristics for those that have no signature.
18607 (decode_coding_emacs_mule, decode_coding_iso_2022)
18608 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18609 Don't do eol converion.
18610 (adjust_coding_eol_type): Return a new coding system.
18611 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18612 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18613 each change.
18614 (decode_coding): Pay attention to undo_list. Do eol conversion for
18615 all types of coding-systems (if necessary).
18616 (Vcode_conversion_work_buf_list): Delete it.
18617 (Vcode_conversion_reused_workbuf): Rename from
18618 Vcode_conversion_reused_work_buf.
18619 (Vcode_conversion_workbuf_name): New variable.
18620 (reused_workbuf_in_use): New variable.
18621 (make_conversion_work_buffer): Delete the arg DEPTH.
18622 (code_conversion_restore): Change argument to cons.
18623 (code_conversion_save): Delete the argument BUFFER. Change callers.
18624 (detect_coding_system): New argument src_chars. Change callers.
18625 Fix for utf-16 detection.
18626 (init_coding_once): Don't use ISO_carriage_return.
18627 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18628 reused_workbuf_in_use.
18629
186302008-02-01 Kenichi Handa <handa@m17n.org>
18631
18632 * keymap.c (store_in_keymap): Pay attention to the case that idx
18633 is a cons specifying a character range.
18634
186352008-02-01 Kenichi Handa <handa@m17n.org>
18636
18637 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18638 HANDLED_RECOMPUTE_PROPS.
18639
18640 * coding.c (Fdefine_coding_system_internal): Fix checking of
18641 ascii compatibility.
18642
186432008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * charset.c (find_charsets_in_text): Delete unused locale variable.
18646 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18647
18648 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18649 Resync charset_list to Vemacs_mule_charset_list.
18650
18651 * keymap.c (store_in_keymap): Pay attention to the case that idx
18652 is a cons specifying a character range.
18653
186542008-02-01 Kenichi Handa <handa@m17n.org>
18655
18656 * composite.c (update_compositions): Bind inhibit-read-only, etc
18657 to t before calling remove-list-of-text-properties.
18658
18659 * print.c (print_object): Always print ASCII chars as is.
18660
186612008-02-01 Kenichi Handa <handa@m17n.org>
18662
18663 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18664
18665 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18666 is a char table.
18667
186682008-02-01 Kenichi Handa <handa@m17n.org>
18669
18670 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18671
186722008-02-01 Kenichi Handa <handa@m17n.org>
18673
18674 * xfaces.c (set_lface_from_font_name): Fix for the case that
18675 FONTNAME is not fontset name.
18676
186772008-02-01 Kenichi Handa <handa@m17n.org>
18678
18679 * fns.c (base64_encode_1): Fix previous change.
18680
186812008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * fontset.c (set_fontset_font): New function.
18684 (Fset_fontset_font): If a font is specified for a charset, use
18685 map_charset_chars to store the font spec in a fontset.
18686
186872008-02-01 Kenichi Handa <handa@m17n.org>
18688
18689 * fontset.c (fontset_face): Create a fallback fontset on demand.
18690 (make_fontset): Don't create a fallback fontset here.
18691 (free_face_fontset): Free a fallback fontset (if any) too.
18692 (n_auto_fontsets): Delete this variable.
18693 (auto_fontset_alist): New variable.
18694 (new_fontset_from_font_name): Check auto_fontset_alist.
18695 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18696 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18697 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18698 Defsubr Sfontset_list_all.
18699
187002008-02-01 Kenichi Handa <handa@m17n.org>
18701
18702 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18703
187042008-02-01 Kenichi Handa <handa@m17n.org>
18705
18706 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18707
187082008-02-01 Kenichi Handa <handa@m17n.org>
18709
18710 * editfns.c (Fgoto_char): Fix docstring.
18711
187122008-02-01 Kenichi Handa <handa@m17n.org>
18713
18714 * insdel.c (insert_from_gap): Adjust intervals correctly.
18715
187162008-02-01 Jason Rumney <jasonr@gnu.org>
18717
18718 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18719 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18720 (w32_initialize): Try to load it.
18721 (x_get_font_repertory): Use it if available.
18722 (w32_encode_char): Add shortcut for unicode output.
18723
18724 * w32fns.c (w32_load_system_font): Default charset to -1.
18725 (x_to_w32_charset): Match all fonts for unicode.
18726 (w32_to_x_charset): New parameter matching. Don't return partial
18727 or wildcard charsets.
18728 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18729 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18730 (w32_to_x_font): Match charset to real charset.
18731 (enum_font_cb2): Always list unicode versions.
18732
18733 * makefile.w32-in (temacs): Increase EMHEAP.
18734
187352008-02-01 Jason Rumney <jasonr@gnu.org>
18736
18737 * w32term.c (w32_encode_char): New charset parameter.
18738 font_info.encoding becomes encoding_type.
18739 (x_get_font_repertory): New function. Warning: stub only!
18740 (x_new_font): Return quickly if font already set.
18741 (x_new_fontset): fontsetname parameter is Lisp_Object.
18742 Use new fs_query_fontset. Try new_fontset_from_font_name.
18743 Use fontset_name for return value.
18744
18745 * w32term.h: Declare x_get_font_repertory.
18746
18747 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18748 place of find_charset_in_text. Use encode_coding_object in place
18749 of encode_coding.
18750 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18751 decode_coding.
18752
18753 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18754 of x_new_fontset.
18755 (w32_load_system_font): Initialize charset as unicode.
18756 font_info.encoding becomes encoding_type.
18757 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18758 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18759 (syms_of_w32fns): Set get_font_repertory_func.
18760
18761 * w32console.c: Include character.h. Use terminal_encode_buffer
18762 from term.c.
18763 (write_glyphs): Use new version of encode_terminal_code. Use
18764 encode_coding_object in place of encode_coding.
18765
18766 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18767 encoding becomes encoding_type.
18768
18769 * term.c (terminal_encode_buffer): Make externally visible.
18770
18771 * makefile.w32-in: Add character.h dependancies.
18772 (character.o, chartab.o): New targets.
18773
187742008-02-01 Kenichi Handa <handa@m17n.org>
18775
18776 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18777 CODING_ID_EOL_TYPE.
18778
187792008-02-01 Andreas Schwab <schwab@suse.de>
18780
18781 * coding.c (produce_chars): Revert last change.
18782
187832008-02-01 Kenichi Handa <handa@m17n.org>
18784
18785 * charset.h (charset_unicode): Extern it.
18786
18787 * charset.c (string_xstring_p): Check by (C >= 0x100).
18788 (find_charsets_in_text): Change format of the arc CHARSETS. New
18789 arg MULTIBYTE.
18790 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18791 change of find_charsets_in_text.
18792 (Fsplit_char): Fix doc. Never return unknown.
18793
18794 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18795
18796 * coding.c (Fdefine_coding_system_alias): Update
18797 Vcoding_system_list.
18798
18799 * fontset.c (load_font_get_repertory): Pay attention to the case
18800 that ENCODING of a font is specified by a char-table.
18801
18802 * xterm.c (x_get_font_repertory): Handle the case that the
18803 encoding of font is other than Unicode.
18804
188052008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18808 if a character is encodable by the terminal coding system. If
18809 not, produces proper number of `?'s. Update
18810 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18811 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18812
188132008-02-01 Kenichi Handa <handa@m17n.org>
18814
18815 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18816 variables.
18817 (encode_terminal_code): Change argument. Encode multiple
18818 characters at once. Store the result of encoding in
18819 terminal_encode_buffer.
18820 (write_glyphs, insert_glyphs): Adjust for the change of
18821 encode_terminal_code.
18822 (term_init): Initialize terminal_encode_buffer and
18823 terminal_encode_buf_size.
18824
18825 * coding.c (consume_chars): If coding->src_object is nil, don't
18826 check annotation.
18827
188282008-02-01 Kenichi Handa <handa@m17n.org>
18829
18830 * character.c (char_string): Use ASCII_CHAR_P instead of
18831 SINGLE_BYTE_CHAR_P.
18832
188332008-02-01 Kenichi Handa <handa@m17n.org>
18834
18835 * xdisp.c (handle_auto_composed_prop): Check if the last
18836 characters of auto-composed region is newly composed with the
18837 following characters.
18838 (handle_composition_prop): Fix checking of point being inside
18839 composition.
18840
188412008-02-01 Kenichi Handa <handa@m17n.org>
18842
18843 * fns.c (concat): Don't change multibyteness of the result by
18844 concatenating an 8-bit character.
18845
18846 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18847 multibyteness of the result when newelt is an 8-bit character.
18848
188492008-02-01 Dave Love <fx@gnu.org>
18850
18851 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18852 EMACS_INT.
18853
18854 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18855
18856 * xfaces.c (face_numeric_value): Declare dim size_t.
18857 (Finternal_lisp_face_equal_p): Remove unused f.
18858
18859 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18860 (MATRIX_ROW): Remove unused vars.
18861 (draw_glyphs, x_insert_glyphs, fast_find_position)
18862 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18863 byte/char counts.
18864
18865 * regex.c (regex_compile): Remove unused var.
18866
18867 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18868
18869 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18870 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18871
18872 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18873
18874 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18875
18876 * fileio.c (Fwrite_region): Remove unused var.
18877
18878 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18879 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18880
18881 * composite.c (Fremove_list_of_text_properties): Declare.
18882
18883 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18884 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18885 (coding_inherit_eol_type): Remove unused attrs.
18886 (detect_coding): Cast arg of detect_eol.
18887
18888 * charset.c (syms_of_charset): Remove unused var p.
18889 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18890 byte/char counts.
18891
18892 * casetab.c (set_case_table): Remove unused var.
18893
18894 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18895 unused vars.
18896
188972008-02-01 Dave Love <fx@gnu.org>
18898
18899 * xterm.c (x_bitmap_mask): Declare.
18900
189012008-02-01 Dave Love <fx@gnu.org>
18902
18903 * xterm.c (x_term_init): Fix type error.
18904
18905 * lisp.h: Add Funibyte_char_to_multibyte.
18906
18907 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18908 (Fset_coding_system_priority): Doc fix.
18909
18910 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18911
18912 * indent.c (check_composition): Make start and end EMACS_INT.
18913
18914 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18915
18916 * xdisp.c (handle_composition_prop, check_point_in_composition):
18917 Make buffer positions EMACS_INT.
18918
18919 * composite.c (find_composition, run_composition_function)
18920 (update_compositions, Ffind_composition_internal): Make buffer
18921 positions EMACS_INT.
18922
18923 * composite.h (find_composition, update_compositions): Make
18924 position args EMACS_INT.
18925
18926 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18927
18928 * intervals.c (get_property_and_range):
18929 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18930
18931 * unexalpha.c: Don't include varargs.h.
18932
189332008-02-01 Dave Love <fx@gnu.org>
18934
18935 * coding.h (ENCODE_UTF_8): New.
18936
18937 * Makefile.in (gtkutil.o): Depend on coding.h.
18938
18939 * coding.c (Fset_coding_system_priority): Doc fix.
18940
189412008-02-01 Kenichi Handa <handa@m17n.org>
18942
18943 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18944 the case of auto saving.
18945
189462008-02-01 Andreas Schwab <schwab@suse.de>
18947
18948 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18949 `range' from GC.
18950
189512008-02-01 Kenichi Handa <handa@m17n.org>
18952
18953 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18954
189552008-02-01 Kenichi Handa <handa@m17n.org>
18956
18957 * fileio.c (choose_write_coding_system): Return a decided coding system.
18958 (Fwrite_region): Set Vlast_coding_system_used to the return value
18959 of choose_write_coding_system.
18960
189612008-02-01 Kenichi Handa <handa@m17n.org>
18962
18963 * charset.c (Fset_charset_priority): Pay attention to duplicated
18964 arguments.
18965
18966 * coding.c (QCcategory): New variable.
18967 (syms_of_coding): Defsym it. Set all elements of
18968 Vcoding_category_table and their symbol values.
18969 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18970 coding-category-XXX, and coding-category-list.
18971 (Fdefine_coding_system_internal): Add category in the plist.
18972
189732008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * callproc.c (Fcall_process): Handle carryover correctly.
18976
18977 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18978 (raw_text_coding_system): Check NILP (coding_system).
18979 (coding_inherit_eol_type): Check NILP (coding_system) and
18980 NILP (parent).
18981 (consume_chars): Fix for the case of raw-text.
18982
18983 * process.c (read_process_output): Handle carryover correctly.
18984
189852008-02-01 Dave Love <fx@gnu.org>
18986
18987 * regex.c (re_search_2): Fix last change.
18988
189892008-02-01 Kenichi Handa <handa@m17n.org>
18990
18991 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18992 target_multibyte. Even in a unibyte case, return a converted
18993 multibyte char.
18994 (GET_CHAR_AFTER): New macro.
18995 (PATFETCH): Translate via multibyte char.
18996 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18997 (SETUP_MULTIBYTE_RANGE): New macro.
18998 (regex_compile): Setup compiled code so that its multibyteness
18999 matches that of a target. Fix the handling of "[X-YZ]" using
19000 SETUP_MULTIBYTE_RANGE.
19001 (analyse_first) <charset>: For filling fastmap for all multibyte
19002 characters, don't check by BASE_LEADING_CODE_P.
19003 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19004 the same as RE_MULTIBYTE_P (bufp) now.
19005 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19006 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19007 (TRANSLATE_VIA_MULTIBYTE): New macro.
19008 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19009 It is the same as RE_MULTIBYTE_P (bufp) now.
19010 <exactn>: Translate via multibyte.
19011 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19012 translate it.
19013 <charset, charset_not>: Fetch a character by
19014 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19015 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19016 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19017 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19018 by GET_CHAR_AFTER.
19019 (bcmp_translate): Likewise.
19020
19021 * search.c (compile_pattern): Check the member target_multibyte,
19022 not the member multibyte of buf.
19023
19024 * lread.c (read1): While reading a string, set force_singlebyte
19025 and force_multibyte correctly.
19026
19027 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19028 up of unibyte_to_multibyte_table.
19029
190302008-02-01 Kenichi Handa <handa@m17n.org>
19031
19032 * coding.c (setup_coding_system): If coding has
19033 post-read-conversion or pre-write-conversion, set
19034 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19035 respectively.
19036 (decode_coding_gap): Run post-read-conversion if any.
19037
19038 * fileio.c (Finsert_file_contents): Even if we read into a
19039 unibyte buffer, check if we must decode the result or not.
19040
190412008-02-01 Kenichi Handa <handa@m17n.org>
19042
19043 * coding.c (make_conversion_work_buffer): Change the work buffer
19044 name to the same one as that of Emacs 21.
19045
190462008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * coding.h (make_conversion_work_buffer): Adjust prototype.
19049 (code_conversion_restore): Don't extern it.
19050
19051 * coding.c (detected_mask): Delete unused variable.
19052 (decode_coding_iso_2022): Pay attention to the byte sequence of
19053 CTEXT extended segment, and retain those bytes as is.
19054 (decode_coding_ccl): Delete unused variable `valids'.
19055 (setup_coding_system): Delete unused variable `category'.
19056 (consume_chars): Delete unused variable `category'. Make it work
19057 for non-multibyte case.
19058 (make_conversion_work_buffer): Change argument.
19059 (saved_coding): Delete unused variable.
19060 (code_conversion_restore): Don't check saved_coding->destination.
19061 (code_conversion_save): New function.
19062 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19063 instead of record_unwind_protect.
19064 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19065 (detect_coding_system): Delete unused variable `mask'.
19066 (Fdefine_coding_system_internal): Delete unused variable id.
19067
19068 * fileio.c (kill_workbuf_unwind): New function.
19069 (Finsert_file_contents): On replacing, call
19070 make_conversion_work_buffer with correct args, and call
19071 record_unwind_protect with the first arg kill_workbuf_unwind.
19072
19073 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19074
190752008-02-01 Kenichi Handa <handa@m17n.org>
19076
19077 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19078 (fontset_add): Fix for the case that TO is less than TO1.
19079 (Ffontset_info): Don't use fallback fontset on checking the
19080 default fontset.
19081 (dump_fontset): New function for debugging.
19082
19083 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19084 coding_type is Qcharset.
19085
190862008-02-01 Kenichi Handa <handa@m17n.org>
19087
19088 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19089 (map_char_table): Don't inherit the value from the parent on
19090 initializing VAL. Adjust for the above change.
19091
190922008-02-01 Kenichi Handa <handa@m17n.org>
19093
19094 * coding.c (Qsignature, Qendian): Delete these variables.
19095 (syms_of_coding): Don't initialize them.
19096 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19097 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19098 detect_info->found.
19099 (decode_coding_utf_16): Don't detect BOM here.
19100 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19101 is NOT utf_16_without_bom.
19102 (setup_coding_system): For a coding system of type utf-16, check
19103 if the attribute :endian is Qbig or not (not nil or not), and set
19104 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19105 (detect_coding): If coding type is utf-16 and BOM detection is
19106 required, detect it.
19107 (Fdefine_coding_system_internal): For a coding system of type
19108 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19109
191102008-02-01 Kenichi Handa <handa@m17n.org>
19111
19112 * coding.c (coding_set_source): Fix for the case that the current
19113 buffer is different from coding->src_object.
19114 (decode_coding_object): Don't use the conversion work buffer if
19115 DST_OBJECT is a buffer.
19116
191172008-02-01 Dave Love <fx@gnu.org>
19118
19119 * lread.c (read_emacs_mule_char) [len==2]: Index
19120 emacs_mule_charset correctly.
19121
191222008-02-01 Dave Love <fx@gnu.org>
19123
19124 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19125 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19126 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19127 treated specially.)
19128 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19129 (detected_mask): Remove Big5 bits.
19130
191312008-02-01 Kenichi Handa <handa@m17n.org>
19132
19133 The following changes are to make the font rescaling facility
19134 compatible with Emacs 21.
19135
19136 * xfaces.c (Vface_font_rescale_alist): Rename from
19137 Vface_resizing_fonts.
19138 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19139 (font_rescale_ratio): Rename from font_resizing_ratio.
19140 (split_font_name): Set font->rescale_ratio.
19141 (better_font_p): Pay attention to font->rescale_ratio.
19142 (build_scalable_font_name): Likewise. Change RESX, and RESY
19143 fields.
19144 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19145
191462008-02-01 Kenichi Handa <handa@m17n.org>
19147
19148 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19149 (Qutf_16_le): Remove these variables.
19150 (syms_of_coding): Don't DEFSYM them.
19151 (decode_coding_utf_16): Fix handling of BOM.
19152 (encode_coding_utf_16): Fix handling of BOM.
19153
191542008-02-01 Kenichi Handa <handa@m17n.org>
19155
19156 * fileio.c (Finsert_file_contents): On replacing, before decoding
19157 the file into the work buffer, set point of the work buffer to the end.
19158
191592008-02-01 Dave Love <fx@gnu.org>
19160
19161 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19162
191632008-02-01 Dave Love <fx@gnu.org>
19164
19165 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19166 and fix C types.
19167
191682008-02-01 Kenichi Handa <handa@m17n.org>
19169
19170 * xdisp.c (SKIP_GLYPHS): New macro.
19171 (set_cursor_from_row): Pay attention to string display properties.
19172
19173 * category.c (copy_category_entry): Fix for the case that RANGE
19174 is an integer.
19175
19176 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19177
19178 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19179
191802008-02-01 Kenichi Handa <handa@m17n.org>
19181
19182 * charset.c (Fcharset_id_internal): New function.
19183 (syms_of_charset): Defsubr it.
19184
19185 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19186 with the last arg charset_list acquired from coding.
19187 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19188 the attribute coding_attr_ccl_valids.
19189
19190 * coding.h (enum define_coding_ccl_arg_index): Set the first
19191 member coding_arg_ccl_decoder to coding_arg_max.
19192
19193 * ccl.h (ccl_driver): Adjust prototype.
19194
19195 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19196 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19197 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19198 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19199 last arg Qnil.
19200
192012008-02-01 Kenichi Handa <handa@m17n.org>
19202
19203 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19204 call encode_char.
19205
19206 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19207
192082008-02-01 Dave Love <fx@gnu.org>
19209
19210 * composite.c (syms_of_composite): Make composition_hash_table weak.
19211
192122008-02-01 Kenichi Handa <handa@m17n.org>
19213
19214 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19215 (font_name_registry): Don't extern them.
19216 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19217
19218 * fontset.h (Qfontset): Don't extern it.
19219 (new_fontset_from_font_name): Extern it.
19220
19221 * fontset.c: Give 8 extra slots to fontset objects.
19222 (Qfontset_info): New variable.
19223 (syms_of_fontset): Defsym it.
19224 (FONTSET_FALLBACK): New macro.
19225 (fontset_face): Try also the default fontset.
19226 (make_fontset): Realize a fallback fontset from the default fontset.
19227 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19228 using split_font_name_into_vector and build_font_name_from_vector.
19229 (Fset_fontset_font): Access the elements of font_spec by enum
19230 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19231 name by using split_font_name_into_vector.
19232 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19233 generate a proper font name from the fontset name. Update
19234 Vfontset_alias_alist.
19235 (n_auto_fontsets): New variable.
19236 (new_fontset_from_font_name): New function.
19237 (Ffont_info): Store the information about fonts generated from the
19238 default fontset in the first extra slot of the returned char-table.
19239
19240 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19241 (font_name_registry): Delete function.
19242 (split_font_name_into_vector): New function.
19243 (build_font_name_from_vector): New function.
19244 (font_list): The argument REGISTRY is now a list of registry names.
19245 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19246 specifies an explicit font name, return the name as is. Make a
19247 list of registy names.
19248
19249 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19250 of x_new_fontset.
19251 (Fx_create_frame): Don't call x_new_fontset here. Just use
19252 x_list_fonts to check the existence of fonts.
19253
19254 * xterm.h (x_new_fontset): Adjust prototype.
19255
19256 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19257 string. Use new_fontset_from_font_name to create a fontset from a
19258 font name.
19259
192602008-02-01 Kenichi Handa <handa@m17n.org>
19261
19262 * syntax.c (Vfind_word_boundary_function_table): New name for
19263 Vnext_word_boundary_function_table.
19264 (find-word-boundary-function-table): New name for
19265 next-word-boundary-function-table.
19266
192672008-02-01 Dave Love <fx@gnu.org>
19268
19269 * Makefile.in: Fix some dependencies.
19270
19271 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19272 set it to nil before returning.
19273
19274 * composite.c (update_compositions): Fix type error.
19275
19276 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19277
192782008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * xterm.c (x_new_font): Optimize for the case that the font is
19281 already set for the frame.
19282
192832008-02-01 Kenichi Handa <handa@m17n.org>
19284
19285 * chartab.c (char_table_ascii): Check if the char table contents
19286 is sub-char-table or not.
19287 (char_table_set, char_table_set_range): Fix argument to
19288 char_table_ascii.
19289
19290 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19291 (detect_coding_utf_8, detect_coding_utf_16)
19292 (detect_coding_emacs_mule, detect_coding_iso_2022)
19293 (detect_coding_sjis, detect_coding_big5)
19294 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19295 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19296 sequence is valid in this coding system. Change callers.
19297 (MAX_ANNOTATION_LENGTH): New macro.
19298 (ADD_ANNOTATION_DATA): New macro.
19299 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19300 ADD_ANNOTATION_DATA. Change the format of annotation data.
19301 (ADD_CHARSET_DATA): New macro.
19302 (emacs_mule_char): New argument ID. Change callers.
19303 (decode_coding_emacs_mule, decode_coding_iso_2022)
19304 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19305 Produce charset annotation data in coding->charbuf.
19306 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19307 to charset annotation data in coding->charbuf.
19308 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19309 coding->common_flags if the coding system is iso-2022 based and
19310 uses designation.
19311 (produce_composition): Adjust for the new annotation data format.
19312 (produce_charset): New function.
19313 (produce_annotation): Handle charset annotation.
19314 (handle_composition_annotation, handle_charset_annotation): New
19315 functions.
19316 (consume_chars): Handle charset annotation. Utilize the above two
19317 functions.
19318 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19319 buffer, get the deleted text as a string and set
19320 coding->src_object to that string.
19321 (detect_coding, detect_coding_system): Use the new struct
19322 coding_detection_info.
19323
19324 * coding.h (struct coding_detection_info): New structure.
19325 (struct coding_system): Adjust prototype of the member `detector'.
19326 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19327
193282008-02-01 Kenichi Handa <handa@m17n.org>
19329
19330 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19331
193322008-02-01 Dave Love <fx@gnu.org>
19333
19334 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19335 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19336 to new local and nullify apropos_accumulate before returning.
19337 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19338
193392008-02-01 Kenichi Handa <handa@m17n.org>
19340
19341 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19342 correctly.
e3eea1fc 19343
aac0c6e3
MR
193442008-02-01 Dave Love <fx@gnu.org>
19345
19346 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19347
193482008-02-01 Kenichi Handa <handa@m17n.org>
19349
19350 The following changes are to make character composition happen
19351 automatically on displaying.
19352
19353 * Makefile.in (lisp, shortlisp): Add composite.elc.
19354
19355 * composite.h (Qauto_composed, Vauto_composition_function)
19356 (Qauto_composition_function): Extern them.
19357
19358 * composite.c (Vcomposition_function_table)
19359 (Qcomposition_function_table): Delete variables.
19360 (Qauto_composed, Vauto_composition_function)
19361 (Qauto_composition_function): New variables.
19362 (run_composition_function): Don't call
19363 compose-chars-after-function.
19364 (update_compositions): Clear `auto-composed' text property.
19365 (compose_chars_in_text): Delete this function.
19366 (syms_of_composite): Staticpro Qauto_composed and
19367 Qauto_composition_function. Declare Vauto_composition_function as
19368 a Lisp variable.
19369
19370 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19371
19372 * xdisp.c (it_props): Add an entry for Qauto_composed.
19373 (handle_auto_composed_prop): New function.
19374
19375 * xselect.c (selection_data_to_lisp_data): Don't call
19376 compose_chars_in_text.
19377
193782008-02-01 Dave Love <fx@gnu.org>
19379
19380 * keyboard.c (read_char): Modify checking around use of
19381 Vkeyboard_translate_table.
19382
19383 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19384 and fix C types.
19385
193862008-02-01 Kenichi Handa <handa@m17n.org>
19387
19388 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19389 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19390 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19391 the case that the last byte is '\r' correctly.
19392 (decode_coding): Flush out the unprocessed data correctly.
19393 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19394
193952008-02-01 Dave Love <fx@gnu.org>
19396
19397 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19398 Add XK_ISO... case.
19399 (xaw_scroll_callback): Revert last change.
19400
194012008-02-01 Kenichi Handa <handa@m17n.org>
19402
19403 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19404
194052008-02-01 Kenichi Handa <handa@m17n.org>
19406
19407 * xfaces.c (Vface_resizing_fonts): New variable.
19408 (struct font_name): New member `resizing_ratio'.
19409 (font_resizing_ratio): New function.
19410 (split_font_name): Set font->resizing_ratio.
19411 (better_font_p): Pay attention to font->resizing_ratio.
19412 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19413 RESX, and RESY fields.
19414 (try_alternative_families): Try scalable fonts if
19415 Vscalable_fonts_allowed is not Qt.
19416 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19417
194182008-02-01 Dave Love <fx@gnu.org>
19419
19420 * xterm.c (xaw_scroll_callback): Cast correctly.
19421
194222008-02-01 Dave Love <fx@gnu.org>
19423
19424 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19425 (lispy_kana_keys): Comment out.
19426 (make_lispy_event) [XK_kana_A]: Comment out.
19427
19428 * xterm.c (xaw_scroll_callback): Cast call_data.
19429 (XTread_socket): Deal with ASCII keysyms.
19430 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19431
194322008-02-01 Dave Love <fx@gnu.org>
19433
19434 * xterm.c (Vx_keysym_table): New.
19435 (syms_of_xterm): Initialize it.
19436 (XTread_socket): Use it.
19437 From head: Eliminate incorrect optimization that tried to avoid
19438 decoding the output of X*LookupString.
19439 (x_get_font_repertory): Delete charset declaration.
19440
194412008-02-01 Kenichi Handa <handa@m17n.org>
19442
19443 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19444 return 0.
19445 (Fdefine_coding_system_internal): Setup
19446 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19447
194482008-02-01 Dave Love <fx@gnu.org>
19449
19450 * coding.c (Fcheck_coding_system): Doc fix.
19451
19452 * editfns.c (Finsert_byte): Return a proper value.
19453
194542008-02-01 Kenichi Handa <handa@m17n.org>
19455
19456 * coding.c (decode_coding): Fix args to translate_chars. Pay
19457 attention to Vstandard_translation_table_for_decode.
19458 (encode_coding): Fix args to translate_chars. Pay attention to
19459 Vstandard_translation_table_for_encode.
19460
19461 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19462 SINGLE_BYTE_CHAR_P.
19463
19464 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19465 not by SINGLE_BYTE_CHAR_P.
19466
19467 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19468 SINGLE_BYTE_CHAR_P.
19469
19470 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19471 SINGLE_BYTE_CHAR_P.
19472
19473 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19474 by SINGLE_BYTE_CHAR_P.
19475
19476 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19477 SINGLE_BYTE_CHAR_P.
19478
194792008-02-01 Dave Love <fx@gnu.org>
19480
19481 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19482
194832008-02-01 Dave Love <fx@gnu.org>
19484
19485 * fns.c (Flanginfo): Fix typo.
19486
19487 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19488
194892008-02-01 Kenichi Handa <handa@m17n.org>
19490
19491 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19492 (detect_coding_emacs_mule, detect_coding_iso_2022)
19493 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19494 incomplete byte sequence. Don't update *mask when correctly detected.
19495 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19496 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19497 (detect_coding, detect_coding_system): Adjust for the changes above.
19498
194992008-02-01 Kenichi Handa <handa@m17n.org>
19500
19501 * character.c (char_string): Rename from
19502 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19503 (string_char): Rename from string_char.
19504
19505 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19506 if C is greater than MAX_3_BYTE_CHAR.
19507 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19508 string_char instead of string_char_with_unification.
19509
195102008-02-01 Dave Love <fx@gnu.org>
19511
19512 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19513
195142008-02-01 Kenichi Handa <handa@m17n.org>
19515
19516 * keymap.c (push_key_description): Pay attention to force_multibyte.
19517
19518 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19519
195202008-02-01 Dave Love <fx@gnu.org>
19521
19522 * charset.c (define_charset_internal): Rename `supprementary'.
19523
19524 * Makefile.in (lisp, shortlisp): Remove latin-N.
19525
195262008-02-01 Dave Love <fx@gnu.org>
19527
19528 * xfns.c (x_window, x_window): Use use_xim.
19529
19530 * xterm.c (use_xim): Initialize.
19531 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19532 (x_term_init): Maybe set use_xim.
19533
19534 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19535
195362008-02-01 Kenichi Handa <handa@m17n.org>
19537
19538 * search.c (search_buffer): Fix case-fold-search of multibyte
19539 characters.
19540 (boyer_moore): Rename the last argument to char_high_bits.
19541
195422008-02-01 Kenichi Handa <handa@m17n.org>
19543
19544 * xdisp.c (display_string): Fix for the case of zero width glyph.
19545
19546 * xfns.c (x_set_font): Change the error message of the case that
19547 x_new_fontset returns Qt.
19548
19549 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19550 (Finternal_set_lisp_face_attribute): Use signal_error for the
19551 error of invalid fontset.
19552
19553 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19554 fontset, return Qt.
19555
195562008-02-01 Dave Love <fx@gnu.org>
19557
19558 * unexelf.c (unexec): Make .got handling not SGI-specific.
19559
19560 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19561
19562 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19563
19564 * keyboard.c (read_key_sequence): Fix type error.
19565
19566 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19567 type error.
19568
19569 * fontset.c (fontset_add): Return Lisp_Object.
19570
195712008-02-01 Dave Love <fx@gnu.org>
19572
19573 * charset.h (charset_ordered_list_tick): Declare extern.
19574
195752008-02-01 Kenichi Handa <handa@m17n.org>
19576
19577 The following changes (and some of 2008-02-01 changes of mine) are
19578 for handling syntax, category, and case conversion for unibyte
19579 characters by converting them to multibyte on the fly. With these
19580 changes, we don't have to setup syntax and case tables for unibyte
19581 characters in each language environment.
19582
19583 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19584 multibyte if necessary.
19585
19586 * bytecode.c (Fbyte_code): Likewise.
19587
19588 * character.h (LEADING_CODE_LATIN_1_MIN)
19589 (LEADING_CODE_LATIN_1_MAX): New macros.
19590 (unibyte_to_multibyte_table): Extern it.
19591 (unibyte_char_to_multibyte): New macro.
19592 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19593 (CHAR_LEADING_CODE): New macro.
19594 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19595
19596 * character.c (unibyte_to_multibyte_table): New variable.
19597 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19598 (multibyte_char_to_unibyte): If C is an eight-bit character,
19599 convert it to the corresponding byte value.
19600
19601 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19602 not 1, signals an error. Update the elements of
19603 unibyte_to_multibyte_table.
19604 (init_charset_once): Initialize unibyte_to_multibyte_table.
19605 (syms_of_charset): Define the charset `iso-8859-1'.
19606
19607 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19608 as is without converting it to unibyte. In a unibyte buffer,
19609 convert C to multibyte before checking the syntax.
19610
19611 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19612
19613 * minibuf.c (Fminibuffer_complete_word): Use the macro
19614 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19615
19616 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19617
19618 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19619 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19620 that is zero, convert an eight-bit char to multibyte.
19621 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19622 non-emacs case.
19623 (PATFETCH): Convert an eight-bit char to multibyte.
19624 (HANDLE_UNIBYTE_RANGE): New macro.
19625 (regex_compile): Setup the compiled pattern for multibyte chars
19626 even if the given regex string is unibyte. Use PATFETCH_RAW
19627 instead of PATFETCH in many places. To handle `charset'
19628 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19629 only for ASCII chars.
19630 (analyse_first) <exactn>: Simplify because the compiled pattern
19631 is multibyte.
19632 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19633 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19634 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19635 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19636 multibyte always 1.
19637 (re_search_2): In emacs, set the locale variable multibyte to 1,
19638 otherwise to 0. New local variable target_multibyte. Check it
19639 to decide the multibyteness of STR1 and STR2. If
19640 target_multibyte is zero, convert unibyte chars to multibyte
19641 before translating and checking fastmap.
19642 (TARGET_CHAR_AND_LENGTH): New macro.
19643 (re_match_2_internal): In emacs, set the locale variable multibyte
19644 to 1, otherwise to 0. New local variable target_multibyte. Check
19645 it to decide the multibyteness of STR1 and STR2. Use
19646 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19647 <charset, charset_not>: If multibyte is nonzero, check fastmap
19648 only for ASCII chars. Call bcmp_translate with
19649 target_multibyte, not with multibyte.
19650 <begline>: Declare the local variable C as `unsigned'.
19651 (bcmp_translate): Change the last arg name to target_multibyte.
19652
19653 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19654 the regexp pattern and the matching target. Set cp->buf.multibyte
19655 to the multibyteness of the regexp pattern. Set
19656 cp->but.target_multibyte to the multibyteness of the matching target.
19657 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19658 FETCH_STRING_CHAR_ADVANCE.
19659 (Freplace_match): Convert unibyte chars to multibyte.
19660
19661 * syntax.c (char_quoted, back_comment, scan_words)
19662 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19663 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19664 unibyte chars to multibyte.
19665 (skip_chars): Delete the arg syntaxp, and move the code for
19666 handling syntaxes to skip_syntaxes. Change callers.
19667 Fix the case that the multibyteness of STRING and the current
19668 buffer doesn't match.
19669 (skip_syntaxes): New function.
19670 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19671 SINGLE_BYTE_CHAR_P.
19672
196732008-02-01 Kenichi Handa <handa@m17n.org>
19674
19675 * xfaces.c (QCfontset): New variable.
19676 (LFACE_FONTSET): New macro.
19677 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19678 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19679 (Finternal_set_lisp_face_attribute)
19680 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19681 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19682 check also LFACE_FONTSET_INDEX.
19683 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19684 attrs[LFACE_FONT_INDEX].
19685 (syms_of_xfaces): Intern and staticpro QCfontset.
19686
19687 * dispextern.h (enum lface_attribute_index): New member
19688 LFACE_FONTSET_INDEX.
19689
19690 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19691
196922008-02-01 Kenichi Handa <handa@m17n.org>
19693
19694 * coding.c (coding_set_destination): Fix coding->destination for
19695 the case converting a region.
19696 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19697 (encode_coding_object): Fix coding->dst_pos and
19698 coding->dst_pos_byte for the case converting a region.
19699
19700 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19701
19702 * character.h (BYTE8_STRING): New macro.
19703
19704 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19705
197062008-02-01 Kenichi Handa <handa@m17n.org>
19707
19708 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19709 characters by octal form.
19710
19711 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19712
19713 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19714 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19715 _fetch_multibyte_char_len.
19716 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19717
19718 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19719
19720 * casefiddle.c (casify_object): Simplify. Handle the case that
19721 the case conversion change the byte length.
19722 (casify_region): Likewise.
19723
19724 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19725
19726 * character.c (_fetch_multibyte_char_len): Delete this variable.
19727 (syms_of_character): Setup Vprintable_chars.
19728
19729 * editfns.c (Fchar_equal): Fix for the unibyte case.
19730 (Finsert_byte): New function.
19731 (syms_of_editfns): Defsubr it.
19732
19733 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19734 of direct code 0x3ffff.
19735
19736 * search.c (Freplace_match): Fix for the unibyte case.
19737
197382008-02-01 Kenichi Handa <handa@m17n.org>
19739
19740 * lread.c (safe_to_load_p): Fix the logic.
19741
19742 * syntax.c (scan_words): Don't treat characters belonging to
19743 different scripts as constituting a word.
19744
19745 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19746
19747 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19748
19749 * emacs.c (main): In the case of --unibyte, instead of aborting on
19750 finding non-empty buffer, make it unibyte.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19755 to create a fontset.
19756
197572008-02-01 Dave Love <fx@gnu.org>
19758
19759 * character.c (Funibyte_char_to_multibyte): Doc fix.
19760
19761 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19762
197632008-02-01 Kenichi Handa <handa@m17n.org>
19764
19765 * fontset.c (fontset_add): Make the type `int'.
19766 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19767
19768 * character.c (unibyte_char_to_multibyte)
19769 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19770 charset_unibyte, not charset_primary.
19771
19772 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19773
19774 * charset.c (charset_unibyte): Rename from charset_primary.
19775 (Funibyte_charset): Rename from Fprimary_charset.
19776 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19777 (syms_of_charset): Adjust for the above changes.
19778
19779 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19780 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19781 it->multibyte_p is zero.
19782
19783 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19784 Delete extern.
19785
197862008-02-01 Kenichi Handa <handa@m17n.org>
19787
19788 * coding.c (Fdefine_coding_system_internal): Fix category setting
19789 for a coding system of type iso-2022.
19790
197912008-02-01 Kenichi Handa <handa@m17n.org>
19792
19793 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19794
197952008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * syntax.c (Vnext_word_boundary_function_table): New variable.
19798 (next-word-boundary-function-table): Declare it as a Lisp variable
19799 in syms_of_syntax.
19800 (scan_words): Call functions in Vnext_word_boundary_function_table
19801 if any.
19802
19803 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19804
19805 * fontset.c (fs_load_font): If fontp->charset is not negative,
19806 return fontp without setting its members.
19807
198082008-02-01 Dave Love <fx@gnu.org>
19809
19810 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19811
19812 * m/sparc.h (HAVE_ALLOCA): Delete.
19813
19814 * s/irix6-5.h: Don't include strings.h.
19815 (bcopy, bzero, bcmp): Don't undef.
19816
19817 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19818
19819 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19820 (TIOCSIGSEND): Don't test IRIX6.
19821 (bcopy, bzero, bcmp): Define conditionally.
19822
198232008-02-01 Kenichi Handa <handa@m17n.org>
19824
19825 * buffer.c (Qas, Qmake, Qto): New variables.
19826 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19827 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19828
19829 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19830 we are inserting a process output into a multibyte buffer.
19831
19832 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19833 multibyte_char_to_unibyte.
19834
19835 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19836 by the primary charset, make it eight-bit char.
19837 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19838
19839 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19840 (charset_8_bit__control, charset_8_bit_graphic)
19841 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19842 (define_charset_internal): New function.
19843 (syms_of_charset): Call define_charset_internal for pre-defined
19844 charsets.
19845
19846 * charset.h (charset_8_bit): Extern it.
19847
19848 * coding.c (make_conversion_work_buffer): Adjust for the change
19849 of Fset_buffer_multibyte.
19850 (encode_coding_raw_text): Increment p0 in the loop.
19851
19852 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19853
19854 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19855 for the change of Fset_buffer_multibyte.
19856
19857 * fns.c (Fstring_to_multibyte): New function.
19858 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19859
198602008-02-01 Dave Love <fx@gnu.org>
19861
19862 * xfns.c (x_put_x_image): Declare args.
19863
19864 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19865 (try_font_list): Declare an arg.
19866
19867 * xdisp.c (message2_nolog, set_message): Declare an arg.
19868
19869 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19870
19871 * syntax.c (scan_sexps_forward): Declare an arg.
19872
19873 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19874 Declare an arg.
19875
19876 * lisp.h (Fnew_fontset): Declare.
19877
19878 * keymap.c (push_key_description): Call CHARACTERP correctly.
19879
19880 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19881 (face_for_char): Delete unused vars.
19882 (Fset_fontset_font): Doc fix. Delete unused vars.
19883
19884 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19885
19886 * composite.c (update_compositions): Declare arg.
19887
19888 * cm.c (calccost, cmgoto): Declare args.
19889
19890 * charset.c: Remove `emacs' conditional. Doc fixes.
19891 (map_char_table_for_charset): Declare.
19892
19893 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19894
19895 * ccl.c: Remove `emacs' conditional.
19896
198972008-02-01 Kenichi Handa <handa@m17n.org>
19898
19899 The following changes are to allow specifying multiple font
19900 patterns for a character range (specified by script or charset).
19901
19902 * Makefile.in (abbrev.o): Depend on syntax.h.
19903 (xfaces.o): Depend on charset.h.
19904
19905 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19906 SINGLE_BYTE_CHAR_P.
19907
19908 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19909
19910 * character.h (Vchar_script_table): Extern it.
19911
19912 * character.c (Vscript_alist): Delete.
19913 (Vchar_script_table, Qchar_script_table): New variable.
19914 (syms_of_character): Declare Vchar_script_table as a lisp variable
19915 and initialize it.
19916
19917 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19918 have property char-table-extra-slots, make no extra slot.
19919
19920 * dispextern.h (struct face): Delete member `charset'.
19921 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19922 SINGLE_BYTE_CHAR_P.
19923 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19924 Add prototypes.
19925 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19926 (generate_ascii_font_name): Rename from generate_ascii_font.
19927
19928 * fontset.h (get_font_repertory_func): New prototype.
19929 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19930 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19931
19932 * fontset.c (Qprepend, Qappend): New variables.
19933 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19934 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19935 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19936 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19937 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19938 (load_font_get_repertory): New functions.
19939 (fontset_set): Delete.
19940 (fontset_face): New arg FACE. Return face ID, not face.
19941 Complete re-write to handle new fontset structure. Change caller.
19942 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19943 (face_for_char): Don't call lookup_face.
19944 (make_fontset_for_ascii_face): New arg FACE.
19945 (fs_load_font): New arg CHARSET_ID. Don't check
19946 Vfont_encoding_alist here.
19947 (find_font_encoding): New function.
19948 (list_fontsets): Use STRINGP, not ! NILP.
19949 (accumulate_script_ranges): New function.
19950 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19951 re-written to handle new fontset structure.
19952 (Ffontset_font): Return a copy of element.
19953 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19954 docstring of font-encoding-alist.
19955
19956 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19957 (Fset_fotset_font): Fix arguments to 5.
19958
19959 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19960
19961 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19962 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19963 (highlight_trailing_whitespace): Adjust for the change of
19964 lookup_named_face.
19965
19966 * xfaces.c: Include charset.h.
19967 (load_face_font): Delete argument C. Change caller.
19968 (generate_ascii_font_name): Rename from generate_ascii_font.
19969 (font_name_registry): New function.
19970 (cache_face): Store ascii faces before non-ascii faces in buckets.
19971 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19972 Lookup only ascii faces.
19973 (lookup_non_ascii_face): New function.
19974 (lookup_named_face): Delete argument C. Change caller.
19975 (lookup_derived_face): Delete argument C. Change caller.
19976 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19977 a string, just call font_list with it.
19978 (choose_face_font): Delete arguments FACE and C. New arg
19979 FONT_SPEC. Change caller.
19980 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19981 Change caller.
19982 (realize_non_ascii_face): New function.
19983 (realize_x_face): Call load_face_font here.
19984 (realize_tty_face): Delete argument C. Change caller.
19985 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19986 get a face ID.
19987 (dump_realized_face): Don't print charset of FACE.
19988
19989 * xfns.c (x_set_font): Always call x_new_fontset and
19990 store_frame_parameter.
19991 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19992 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19993
19994 * xterm.h (x_get_font_repertory): Extern it.
19995
19996 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19997 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19998 it->multibyte_p is zero.
19999 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20000 (x_new_fontset): If FONTSETNAME doesn't match any existing
20001 fontsets, create a new one.
20002 (x_get_font_repertory): New function.
20003
200042008-02-01 Kenichi Handa <handa@m17n.org>
20005
20006 * coding.c (Ffind_coding_systems_region_internal): Detect an
20007 ASCII only string correctly.
20008
20009 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20010 version is 0.
20011
200122008-02-01 Kenichi Handa <handa@m17n.org>
20013
20014 * lread.c: Include "coding.h".
20015 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20016 (load_each_byte, unread_char): New variables.
20017 (readchar_backlog): Delete.
20018 (readchar): Return a character unless load_each_byte is nonzero.
20019 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20020 cons. If unread_char is not -1, simply return it.
20021 (unreadchar): Handle the case that readcharfun is
20022 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20023 (read_multibyte): Delete.
20024 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20025 (read_emacs_mule_char): New functions.
20026 (Fload): Even if the file doesn't have the extension ".elc", if
20027 safe_to_load_p returns a positive version number, assume that the
20028 file contains bytecompiled code. If the version is less than 22,
20029 load the file while decoding multibyte sequences by emacs-mule.
20030 (readevalloop): Don't use readchar_backlog.
20031 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20032 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20033 (read_escape): Delete the arg BYTEREP.
20034 (read1): Set load_each_byte to 1 temporarily while handling
20035 #@NUMBER. Don't call read_multibyte.
20036 (read_vector): Call Fread with a cons. If readcharfun is
20037 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20038 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20039 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20040 and Qload_force_doc_strings.
20041
200422008-02-01 Kenichi Handa <handa@m17n.org>
20043
20044 * xdisp.c (face_before_or_after_it_pos): Call
20045 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20046
200472008-02-01 Kenichi Handa <handa@m17n.org>
20048
20049 * character.h (TRAILING_CODE_P): New macro.
20050 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20051 (string_char_with_unification): Fix prototype.
20052 (Vscript_alist): Extern it.
20053
20054 * character.c (Vscript_alist): New variable.
20055 (string_char_with_unification, str_as_unibyte)
20056 (string_escape_byte8): Add `const' to local variables.
20057 (syms_of_character): Declare script-alist as a Lisp variable.
20058
20059 * charset.h (Vcharset_ordered_list): Extern it.
20060 (charset_ordered_list_tick): Extern it.
20061 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20062 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20063 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20064 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20065 (Funify_charset): Adjust for the change of Funify_charset.
20066
20067 * charset.c (charset_ordered_list_tick): New variable.
20068 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20069 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20070 deunify intead of unify a charset.
20071 (string_xstring_p): Add `const' to local variables.
20072 (find_charsets_in_text): Add `const' to arguments and local variables.
20073 (encode_char): Adjust for the change of Funify_charset. Fix
20074 detecting of invalid code.
20075 (Fset_charset_priority): Increment charset_ordered_list_tick.
20076 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20077 and TO_CODE.
20078
20079 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20080 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20081 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20082 (decode_coding_ccl, consume_chars)
20083 (Ffind_coding_systems_region_internal)
20084 (Fcheck_coding_systems_region): Add `const' to local variables.
20085
20086 * print.c (print_object): Use octal form for printing the
20087 contents of a bool vector.
20088
200892008-02-01 Dave Love <fx@gnu.org>
20090
20091 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20092 <version == 20>: Refuse to load.
20093
200942008-02-01 Dave Love <fx@gnu.org>
20095
20096 * fns.c: Move coding.h.
20097 (Qcodeset, Qdays, Qmonths): New.
20098 (concat): Use CHARACTERP instead of INTEGERP.
20099 (Flocale_codeset): Delete.
20100 (Flanginfo): New function.
20101 (syms_of_fns): Change accordingly.
20102
20103 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20104
201052008-02-01 Dave Love <fx@gnu.org>
20106
20107 * casetab.c (init_casetab_once, init_casetab_once): Fix
20108 CHAR_TABLE_SET call.
20109
20110 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20111
20112 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20113
20114 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20115 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20116 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20117
20118 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20119
20120 * coding.c (ENCODE_DESIGNATION, decode_eol)
20121 (make_conversion_work_buffer, code_conversion_restore)
20122 (Fdefine_coding_system_internal): Convert Lisp types.
20123 (code_conversion_restore): Use EQ, not ==.
20124 (Fencode_coding_string): Fix code_convert_string call.
20125
20126 * coding.h (code_convert_region): Fix prototype.
20127
20128 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20129
20130 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20131 (Ffontset_info): Convert Lisp types.
20132
20133 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20134
20135 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20136
20137 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20138
20139 * chartab.c: Include "...h", not <...h> in some cases.
20140
20141 * callproc.c (Fcall_process): Remove unused variables.
20142
201432008-02-01 Dave Love <fx@gnu.org>
20144
20145 * coding.c (Fset_coding_system_priority): Allow null arg list.
20146
201472008-02-01 Dave Love <fx@gnu.org>
20148
20149 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20150 (Fself_insert_and_exit): Use CHARACTERP.
20151
20152 * callproc.c (Fcall_process): Remove unused vars.
20153
20154 * xterm.c (XTread_socket): Add extra dead keysyms.
20155
20156 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20157
20158 * dispextern.h: Remove prototypes for redraw_frame,
20159 redraw_garbaged_frames.
20160
20161 * cmds.c (Fself_insert_command): Use CHARACTERP.
20162
20163 * chartab.c (make_sub_char_table): Remove unused var.
20164 (Fset_char_table_default, Fmap_char_table): Doc fix.
20165
20166 * keymap.c (access_keymap): Remove generic char code.
20167 (push_key_description): Use CHARACTERP.
20168
201692008-02-01 Dave Love <fx@gnu.org>
20170
20171 * charset.c: Doc fixes.
20172 (Funify_charset): Extra checking.
20173
201742008-02-01 Dave Love <fx@gnu.org>
20175
20176 * lread.c: Remove some unused variables.
20177 (safe_to_load_p): If safe, return the magic number version byte.
20178 (Fload): Maybe use load-with-code-conversion.
20179
201802008-02-01 Kenichi Handa <handa@m17n.org>
20181
20182 * category.c (Fmodify_category_entry): Don't modify the contents
20183 of category_set for characters out of the range. Avoid
20184 unnecessary modification.
20185
20186 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20187 Vchar_unify_table. The default value of the table is now nil.
20188
20189 * character.c (syms_of_character): Setup Vchar_width_table for
20190 eight-bit-control and raw-byte chars.
20191
20192 * charset.h (enum define_charset_arg_index): Delete
20193 charset_arg_parents and add charset_arg_subset and
20194 charset_arg_superset.
20195 (enum charset_attr_index): Delete charset_parents and add
20196 charset_subset and charset_superset.
20197 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20198 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20199 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20200 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20201 (CHARSET_SUPERSET): New macros.
20202 (charset_work): Extern it.
20203 (ENCODE_CHAR): Use charset_work.
20204 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20205 (map_charset_chars): Extern it.
20206
20207 * charset.c (load_charset_map): Set the default value of encoder
20208 and deunifier char-tables to nil.
20209 (map_charset_chars): Change argument. Change callers. Use
20210 map_char_table_for_charset instead of map_char_table.
20211 (Fmap_charset_chars): New optional args from_code and to_code.
20212 (Fdefine_charset_internal): Adjust for the change of
20213 `define-charset' (:parents -> :subset or :superset).
20214 (charset_work): New variable.
20215 (encode_char, syms_of_charset): Adjust for the change of
20216 Fdefine_charset_internal.
20217 (Ffind_charset_string): Setup the vector `charsets' correctly.
20218
20219 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20220 the previous change.
20221 (char_table_ref_and_range): Adjust for the above change.
20222 (map_sub_char_table_for_charset): New function.
20223 (map_char_table_for_charset): New function.
20224
20225 * keymap.c (describe_vector): Handle a char-table directly here.
20226 (describe_char_table): Delete.
20227
20228 * lisp.h (map_charset_chars): Delete.
20229
202302008-02-01 Dave Love <fx@gnu.org>
20231
20232 * fns.c (count_combining): Comment out (unused).
20233 (Flocale_codeset): New.
20234 (syms_of_fns): Defsubr it.
20235
20236 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20237 (size_t): Remove.
20238
202392008-02-01 Dave Love <fx@gnu.org>
20240
20241 * Makefile.in (chartab.o): Depend on charset.h.
20242
202432008-02-01 Kenichi Handa <handa@m17n.org>
20244
20245 * character.c (syms_of_character): Set the default value of
20246 Vprintable_chars to Qnil.
20247
202482008-02-01 Dave Love <fx@gnu.org>
20249
20250 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20251
202522008-02-01 Kenichi Handa <handa@m17n.org>
20253
20254 * charset.c (load_charset_map): Handle the case that from < to
20255 correctly.
20256
20257 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20258 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20259 Pay attention to raw-8-bit chars.
20260
202612008-02-01 Kenichi Handa <handa@m17n.org>
20262
20263 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20264 It is not bytecompiled now.
20265
20266 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20267 (charset_jisx0208): New variables.
20268 (Fdefine_charset_internal): Setup them if appropriate.
20269 (init_charset_once): Initialize them to -1.
20270
20271 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20272 (charset_jisx0208): Extern them.
20273
20274 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20275 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20276 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20277 (setup_iso_safe_charsets): Fix arguments to Fassq.
20278 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20279 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20280 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20281 (encode_coding_iso_2022): Change the 1st arg to
20282 ENCODE_ISO_CHARACTER to a variable.
20283
202842008-02-01 Kenichi Handa <handa@m17n.org>
20285
20286 * charset.h (enum define_charset_arg_index): New enums
20287 charset_arg_min_code and charset_arg_max_code.
20288 (struct charset): New member char_index_offset.
20289
20290 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20291 Take charset->char_index_offset into account.
20292 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20293 args[charset_arg_max_code]. Setup charset.char_index_offset.
20294 (syms_of_charset): Fix args to Fdefine_charset_internal.
20295
202962008-02-01 Dave Love <fx@gnu.org>
20297
20298 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20299
203002008-02-01 Dave Love <fx@gnu.org>
20301
20302 * coding.c: Doc fixes.
20303 (Fcoding_system_aliases): Fix return value.
20304 (Qmac): Remove (duplicated) definition.
20305
203062008-02-01 Dave Love <fx@gnu.org>
20307
362654a6
JB
20308 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20309 New functions.
aac0c6e3
MR
20310
20311 * character.c (Fstring): Doc fix.
20312
20313 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20314
362654a6 20315 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20316 (font-encoding-alist): Doc fix.
20317
203182008-02-01 Dave Love <fx@gnu.org>
20319
20320 * term.c (costs_set): Declare static, non-initialized for pcc.
20321 (encode_terminal_code): Remove unused var.
20322
20323 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20324 for K&R.
20325
20326 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20327
20328 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20329 (suffixes): Move out of make_subsidiaries for K&R.
20330
20331 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20332
20333 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20334
203352008-02-01 Dave Love <fx@gnu.org>
20336
20337 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20338
20339 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20340
203412008-02-01 Yong Lu <lyongu@asia-infonet.com>
20342
20343 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20344
20345 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20346
203472008-02-01 Kenichi Handa <handa@m17n.org>
20348
20349 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20350 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20351
203522008-02-01 Kenichi Handa <handa@m17n.org>
20353
20354 * coding.c (decode_coding_charset): Adjust for the change of
20355 Fdefine_coding_system_internal.
20356 (Fdefine_coding_system_internal): For a coding system of
20357 `charset' type, store a list of charset IDs in
20358 `charset_attr_charset_valids' element of coding attributes.
20359
203602008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20363 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20364 caller. Handle 2-byte and 3-byte charsets correctly.
20365 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20366 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20367 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20368 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20369 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20370 sequence.
20371 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20372 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20373 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20374 and alt&rule composition.
20375 (decode_coding_iso_2022): Handle composition correctly.
20376 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20377
20378 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20379 re-defining a charset. If the charset has :emacs-mule-id, setup
20380 emacs_mule_bytes.
20381 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20382
203832008-02-01 Kenichi Handa <handa@m17n.org>
20384
20385 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20386 (encode_coding_big5, encode_coding_charset): If coding requires safe
20387 encoding, produce a character specified by
20388 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20389
203902008-02-01 Dave Love <fx@gnu.org>
20391
20392 * xterm.c (XSetIMValues): Declare.
20393
20394 * process.c: Conditionally include sys/wait.h, pty.h.
20395
20396 * print.c (print_object): Fix print format for 64-bit systems.
20397
20398 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20399
20400 * buffer.c (emacs_strerror): Declare.
20401
20402 * fontset.c (Fclear_face_cache): Declare.
20403 (accumulate_font_info): Comment-out (unused).
20404 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20405 variables.
20406
20407 * character.h (string_escape_byte8): Declare.
20408
20409 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20410 unused vars.
20411 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20412 (Fmap_charset_chars): Doc fix.
20413
20414 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20415 (Fset_coding_system_priority, Fset_coding_system_priority)
20416 (Fdefine_coding_system_internal): Doc fix.
20417
204182008-02-01 Dave Love <fx@gnu.org>
20419
20420 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20421
204222008-02-01 Kenichi Handa <handa@m17n.org>
20423
20424 * character.c (string_escape_byte8): Make multibyte string with
20425 correct size.
20426
20427 * charset.c (Fmake_char): Delete unnecessary code.
20428
204292008-02-01 Kenichi Handa <handa@m17n.org>
20430
20431 * xfns.c (x_encode_text): Allocate coding.destination here, and
20432 call encode_coding_object with dst_object Qnil.
20433
20434 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20435 multibyte form correctly.
20436
20437 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20438 against Vfont_encoding_alist.
20439
20440 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20441 handling of charset list.
20442 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20443 (decode_coding_object): Move point to coding->dst_pos before
20444 calling post-read-conversion function.
20445 (encode_coding_object): Give correct arguments to
20446 pre-write-conversion. Ignore the return value of
20447 pre-write-conversion function. Pay attention to the case that
20448 pre-write-conversion changes the current buffer. If dst_object is
20449 Qt, even if coding->src_bytes is zero, allocate at least one byte
20450 to coding->destination.
20451
20452 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20453
20454 * charset.c (Fmake_char): Make it more backward compatible.
20455 (Fmap_charset_chars): Fix docstring.
20456
204572008-02-01 Dave Love <fx@gnu.org>
20458
20459 * coding.c: Doc fixes.
20460 (Fdefine_coding_system_alias): Use names, not symbols, in
20461 coding-system-alist.
20462
204632008-02-01 Kenichi Handa <handa@m17n.org>
20464
20465 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20466 of calling free_realized_face.
20467
204682008-02-01 Yong Lu <lyongu@asia-infonet.com>
20469
20470 * charset.c (read_hex): Don't treat SPC as a comment starter.
20471 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20472 (Fdecode_char): Fix typo.
20473
204742008-02-01 Kenichi Handa <handa@m17n.org>
20475
20476 * charset.h (struct charset): New member `code_space_mask'.
20477
20478 * coding.c (coding_set_source): Delete the local variable beg_byte.
20479 (encode_coding_charset, Fdefine_coding_system_internal):
20480 Delete the local variable charset.
20481 (Fdefine_coding_system_internal): Setup
20482 attrs[coding_attr_charset_valids] correctly.
20483
20484 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20485 member to check if CODE is valid or not.
20486 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20487 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20488 is within the range of charset->min_code and carset->max_code.
20489
204902008-02-01 Dave Love <fx@gnu.org>
20491
20492 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20493
20494 * dispextern.h (generate_ascii_font): Fix return type.
20495
20496 * xfaces.c (generate_ascii_font): Fix arg declaration.
20497
20498 * coding.c (coding_inherit_eol_type)
20499 (Fset_terminal_coding_system_internal)
20500 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20501
205022008-02-01 Kenichi Handa <handa@m17n.org>
20503
20504 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20505 multiple charsets correctly.
20506
205072008-02-01 Kenichi Handa <handa@m17n.org>
20508
20509 * search.c (boyer_moore): Fix handling of multibyte character
20510 translation.
20511
20512 * xdisp.c (display_mode_element): When the variable `elt' is
20513 changed, update `this' and `lisp_string'.
20514
205152008-02-01 Kenichi Handa <handa@m17n.org>
20516
20517 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20518
20519 * callproc.c (Fcall_process): Be sure to give the current buffer
20520 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20521
20522 * charset.c (struct charset_map_entries): New struct.
20523 (load_charset_map): Rename from parse_charset_map. New args
20524 entries and n_entries. Change caller.
20525 (load_charset_map_from_file): Rename from load_charset_map.
20526 Change caller. New arg control_flag. Call load_charset_map at
20527 the tail.
20528 (load_charset_map_from_vector): New function.
20529 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20530 (encode_char): If the charset is compact, change a character index
20531 to a code point.
20532
20533 * coding.c (coding_alloc_by_making_gap): Check the case that the
20534 source and destination are the same correctly.
20535 (decode_coding_raw_text): Set coding->consumed_char and
20536 coding->consumed to 0.
20537 (produce_chars): If coding->chars_at_source is nonzero, update
20538 coding->consumed_char and coding->consumed before calling
20539 alloc_destination.
20540 (Fdefine_coding_system_alias): Register ALIAS in
20541 Vcoding_system_alist.
20542 (syms_of_coding): Define `no-conversion' coding system at the tail.
20543
20544 * fileio.c (Finsert_file_contents): Set coding_system instead of
20545 val. If the current buffer is multibyte, always call
20546 decode_coding_gap.
20547
20548 * xfaces.c (try_font_list): Give higher priority to fontset's
20549 family than face's family.
20550
205512008-02-01 Kenichi Handa <handa@m17n.org>
20552
20553 * callproc.c (Fcall_process): Be sure to give the current buffer
20554 to decode_coding_c_string.
20555
20556 * xfaces.c (try_font_list): Give a family specified in a fontset
20557 higher priority than a family specified in a face.
20558
205592008-02-01 Kenichi Handa <handa@m17n.org>
20560
20561 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20562 Fix arguments to insert_from_buffer.
20563
20564 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20565
205662008-02-01 Kenichi Handa <handa@m17n.org>
20567
20568 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20569 (decode_coding_gap): Set coding->dst_multibyte correctly.
20570
205712008-02-01 Kenichi Handa <handa@m17n.org>
20572
20573 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20574 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20575 (encode_coding_utf_16): Substitute coding->default_char for
20576 non-Unicode characters.
20577 (decode_coding): Don't call record_insert here.
20578 (setup_coding_system): Initialize `surrogate' of
20579 coding->spec.utf_16 to 0.
20580 (EMIT_ONE_BYTE): Fix for multibyte case.
20581
20582 * insdel.c (insert_from_gap): Call record_insert.
20583
205842008-02-01 Kenichi Handa <handa@m17n.org>
20585
20586 * casefiddle.c (casify_region): Fix multibyte case.
20587
20588 * character.c (c_string_width): Add return type `int'.
20589 (char_string_with_unification): Delete arg ADVANCED.
20590
20591 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20592 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20593 (CHAR_STRING_ADVANCE): Make it do-while statement.
20594
20595 * chartab.c (sub_char_table_set_range): Optimize for the case
20596 DEPTH == 3. Add workaround code for a GCC optimization bug.
20597
20598 * charset.c (parse_charset_map): Remove an unused variable.
20599
20600 * coding.c: Delete unused variables.
20601
20602 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20603 earlier. If inserted is zero and the coding system doesn't
20604 require flushing, don't call decode_coding_gap.
20605
20606 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20607
206082008-02-01 Kenichi Handa <handa@m17n.org>
20609
20610 The following changes are for using Unicode as an internal
20611 character model, and use UTF-8 format for buffer/string
20612 representation.
20613
20614 * .gdbinit (xchartable): Adjust for the change of char table structure.
20615 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20616
20617 * Makefile.in (obj): Add character.o and chartab.o.
20618 (lisp, shortlisp): Remove utf-8.elc.
20619 (*.o): For many files, change dependency on charset.h to
20620 character.h, and add dependency on character.h.
20621 (character.o, chartab.o): New targets.
20622
20623 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20624 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20625 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20626 of "charset.h".
20627
20628 * dired.c, filelock.c: Include "character.h".
20629
20630 * alloc.c: Include "character.h" instead of "charset.h".
20631 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20632 (syms_of_alloc): Remove defsubr for Smake_char_table.
20633
20634 * buffer.c: Include "character.h" instead of "charset.h", don't
20635 include "coding.h".
20636 (Fset_buffer_multibyte): Adjust for UTF-8.
20637
20638 * buffer.h: EXFUN Fbuffer_live_p.
20639
20640 * callproc.c: Include "character.h" instead of "charset.h".
20641 (Fcall_process): Big change for the new code-conversion APIs.
20642
20643 * casetab.c: Include "character.h" instead of "charset.h".
20644 (set_canon, set_identity, shuffle): Adjust for the new
20645 map_char_table spec.
20646 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20647 accessing the char table structure.
20648
20649 * chartab.c: New file that implements char table.
20650
20651 * category.c: Include "character.h".
20652 (copy_category_entry): New function.
20653 (copy_category_table): Call map_char_table and copy_category_entry.
20654 (Fmake_category_table): Initialize all top-level slots.
20655 (char_category_set): New function.
20656 (modify_lower_category_set): Delete.
20657 (Fmodify_category_entry): Call char_table_ref_and_range.
20658
20659 * category.h (CATEGORY_SET): Just call char_category_set.
20660
20661 * ccl.c: Include "character.h".
20662 (Qccl, Qcclp): New variables.
20663 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20664 it's less than 256.
20665 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20666 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20667 and DST type.
20668 (ccl_driver): Change types of argument, adjust code accordingly.
20669 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20670 ccl_driver.
20671 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20672
20673 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20674 New members src_multibyte, dst_multibyte, consumed, and produced.
20675 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20676 (CODING_SPEC_CCL_PROGRAM): New macro.
20677 (ccl_driver): Update prototype.
20678 (Qccl, Qcclp, Fccl_program_p): Extern them.
20679 (CHECK_CCL_PROGRAM): New macro.
20680
20681 * character.c, character.h, chartab.c: New files.
20682
20683 * charset.c: Mostly re-written. Move character and multibyte sequence
20684 handling codes to character.c.
20685
20686 * charset.h: Mostly re-written. Move character and multibyte sequence
20687 handling codes to character.h.
20688
20689 * coding.c, coding.h: Mostly re-written.
20690
20691 * composite.c: Include "character.h" instead of "charset.h".
20692 (CHAR_WIDTH): Move to character.h.
20693 (HASH_KEY, HASH_VALUE): Delete.
20694
20695 * composite.h (enum composition_method): Change order of enumeration
20696 symbols.
20697
20698 * data.c: Include "character.h" instead of "charset.h".
20699 (Faref): Call CHAR_TABLE_REF for a char table.
20700 (Faset): Call CHAR_TABLE_SET for a char table.
20701
20702 * dispextern.h (free_realized_face, check_face_attribytes)
20703 (generate_ascii_font): Extern them.
20704 (free_realized_multibyte_face): Delete extern.
20705
20706 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20707 table structure.
20708
20709 * editfns.c: Include "character.h" instead of "charset.h".
20710 (Fchar_to_string): Always call CHAR_STRING.
20711
20712 * emacs.c (main): Call init_charset_once, init_charset,
20713 syms_of_chartab, and syms_of_character.
20714
20715 * fileio.c: Include "character.h" instead of "charset.h".
20716 (Finsert_file_contents): Big change for the new code-conversion API.
20717 (choose_write_coding_system, Fwrite_region): Likewise.
20718 (build_annotations_2): Delete.
20719 (e_write): Big change for the new code-conversion API.
20720
20721 * fns.c: Include "character.h" instead of "charset.h".
20722 (copy_sub_char_table): Move to chartab.c.
20723 (Fcopy_sequence): Call copy_char_table for a char table.
20724 (concat): Delete codes calling count_multibyte.
20725 (string_char_to_byte, string_byte_to_char): Adjust for the new
20726 multibyte form.
20727 (internal_equal): Adjust for the change of char table structure.
20728 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20729 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20730 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20731 (char_table_translate, optimize_sub_char_table)
20732 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20733 chartab.c.
20734 (char_table_ref_and_index): Delete.
20735 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20736 (Fmd5): Call preferred_coding_system instead of accessing
20737 Vcoding_category_list. Adjust for the new code-conversion API.
20738 (syms_of_fns): Move defsubr for char table related functions to
20739 chartab.c.
20740
20741 * fontset.c: Mostly re-written.
20742
20743 * fontset.h (struct font_info): Change type of the member encoding_type.
20744 (enum FONT_SPEC_INDEX): New enum.
20745 (fontset_font_pattern, fs_load_font): Update prototype.
20746 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20747
20748 * indent.c: Include "character.h" instead of "charset.h".
20749 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20750
20751 * insdel.c: Include "character.h" instead of "charset.h".
20752 (copy_text): Don't refer to Vnonascii_translation_table.
20753 (insert_from_gap): New function.
20754
20755 * keyboard.c: Include "character.h" instead of "charset.h".
20756 (command_loop_1): Never call direct_output_forward_char before
20757 a non-ASCII character.
20758 (read_char): If Vkeyboard_translate_table is a char table, always
20759 translate a character.
20760
20761 * keymap.c: Include "character.h".
20762 (store_in_keymap): Handle the case that IDX is a cons.
20763 (Fdefine_key): Handle the case that KEY is a cons and the car part
20764 is also a cons (range).
20765 (push_key_description): Adjust for the new character code.
20766 (describe_vector): Call describe_char_table for a char table.
20767 (describe_char_table): New function.
20768
20769 * keymap.h (describe_char_table): Extern it.
20770
20771 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20772 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20773 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20774 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20775 Delete.
20776 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20777 structure.
20778 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20779 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20780 (CHARTAB_SIZE_BITS_3): New macros.
20781 (chartab_size): Extern it.
20782 (struct Lisp_Char_Table): Re-design.
20783 (struct Lisp_Sub_Char_Table): New structure.
20784 (HASH_KEY, HASH_VALUE): Move from fns.c.
20785 (CHARACTERBITS): Define as 22.
20786 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20787 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20788 (GC_SUB_CHAR_TABLE_P): New macro.
20789 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20790 (code_convert_string_norecord): Deleted extern.
20791 (init_character_once, syms_of_character, init_charset)
20792 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20793
20794 * lread.c: Include "character.h".
20795 (read_multibyte): New arg NBYTES.
20796 (read_escape): Change the meaning of returned *BYTEREP.
20797 (to_multibyte): Delete.
20798 (read1): Adjust the handling of char table and string.
20799
20800 * print.c: Include "character.h" instead of "charset.h".
20801 (print_string): Convert 8-bit raw bytes to octal form by
20802 string_escape_byte8.
20803 (print_object): Adjust for the new multibyte form. Print 8-bit
20804 raw bytes always in octal form. Handle sub char table correctly.
20805
20806 * process.c: Include "character.h" instead of "charset.h".
20807 (read_process_output, send_process): Adjust for the new
20808 code-conversion API.
20809
20810 * puresize.h (BASE_PURESIZE): Increase.
20811
20812 * regex.c: Include "character.h" instead of "charset.h".
20813 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20814 (regex_compile): Accept a range whose starting and ending
20815 character have different leading bytes.
20816 (analyse_first): Adjust for the above change.
20817
20818 * search.c: Include "character.h" instead of "charset.h".
20819 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20820 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20821
20822 * syntax.c: Include "character.h" instead of "charset.h".
20823 (syntax_parent_lookup): Delete.
20824 (Fmodify_syntax_entry): Accept a cons as CHAR.
20825 (skip_chars): Adjust for the new multibyte form.
20826 (init_syntax_once): Call char_table_set_range instead of directly
20827 accessing the structure of a char table.
20828
20829 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20830 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20831 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20832 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20833
20834 * term.c: Include "buffer.h" and "character.h".
20835 (encode_terminal_code, write_glyphs): Adjust for the new
20836 code-conversion API.
20837 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20838
20839 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20840
20841 * xdisp.c: Include "character.h".
20842 (get_next_display_element): Adjust for the new multibyte form.
20843 (disp_char_vector): Adjust for the new char table structure.
20844 (decode_mode_spec_coding): Adjust for the new structure of
20845 coding system.
20846 (decode_mode_spec): Adjust for the new code-conversion API.
20847
20848 * xfaces.c: Include "character.h" instead of "charset.h".
20849 (load_face_font): Adjust for the change of choose_face_font and
20850 FS_LOAD_FONT.
20851 (generate_ascii_font): New function.
20852 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20853 (set_font_frame_param): Adjust for the change of choose_face_font.
20854 (free_realized_face): Make it public.
20855 (free_realized_faces_for_fontset): Rename from
20856 free_realized_multibyte_face. Free also faces realized for ASCII.
20857 (choose_face_font): Change arguments. Adjust for the change of
20858 fontset_font_pattern and FS_LOAD_FONT.
20859
20860 * xfns.c: Include "character.h".
20861 (x_encode_text): Adjust for the new code-conversion API.
20862
20863 * xselect.c: Don't include "charset.h".
20864 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20865
20866 * xterm.c: Include "character.h".
20867 (x_encode_char): New argument CHARSET. Change caller.
20868 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20869 Call ENCODE_CHAR instead of SPLIT_CHAR.
20870 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20871 CHAR_WIDTH instead of CHARSET_WIDTH.
20872 (XTread_socket): Adjust for the new code-conversion API.
20873 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20874 (x_load_font): Adjust for the change of struct font.
20875
208762008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20877
20878 * xfaces.c (face_at_buffer_position): Remove unused vars.
20879
208802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20881
20882 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20883 Fix overflow checking.
20884
208852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20886
20887 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20888 Cancel previous change.
20889
208902008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20891
20892 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20893 ccl->eight_bit_control. Fix check for buffer overflow.
20894 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20895 (ccl_driver): Initialize extra_bytes to 0.
20896
208972008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20898
20899 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20900 return it ORed with ctrl_modifier.
20901
209022008-01-29 Miles Bader <miles@gnu.org>
20903
20904 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20905
209062008-01-28 Jason Rumney <jasonr@gnu.org>
20907
20908 * w32.c (stat): Don't double check for networked drive.
20909
209102008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20911
20912 * window.c (run_window_configuration_change_hook): New function.
20913 Code extracted from set_window_buffer. Set the selected frame.
20914 (set_window_buffer): Use it.
20915 * window.h (run_window_configuration_change_hook): Declare.
20916 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20917
20918 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20919
209202008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20921
20922 * Makefile.in: Remove references to unused macros.
20923
209242008-01-26 Eli Zaretskii <eliz@gnu.org>
20925
20926 * w32.c (g_b_init_get_sid_sub_authority)
20927 (g_b_init_get_sid_sub_authority_count): New static variables.
20928 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20929 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20930 (init_user_info): Use them to retrieve uid and gid.
20931 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20932 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20933 st_uid and st_gid of the file.
20934
209352008-01-26 Jason Rumney <jasonr@gnu.org>
20936
20937 * w32.c (logon_network_drive): New function.
20938 (stat): Use it.
20939
209402008-01-26 Chong Yidong <cyd@stupidchicken.com>
20941
20942 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20943 invisible text covered with an ellipsis.
20944
209452008-01-25 Richard Stallman <rms@gnu.org>
20946
20947 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20948 jump back to beginning. Move some other initializations after that.
20949 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20950 New variables.
20951 (syms_of_xdisp): Init them.
20952
20953 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20954
20955 * buffer.c (reset_buffer_local_variables):
20956 Implement `permanent-local-hook'.
20957 (Qpermanent_local_hook): New variable.
20958 (syms_of_buffer): Init and staticpro it.
20959
209602008-01-25 Michael Albinus <michael.albinus@gmx.de>
20961
20962 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20963
209642008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20965
20966 * fns.c (Fclrhash): Return TABLE.
20967
209682008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20969
20970 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20971 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20972 is set even without positional changes.
20973 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20974
20975 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20976
209772008-01-23 Jason Rumney <jasonr@gnu.org>
20978
20979 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20980
20981 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20982 the unicode range available in MULE by locale-coding-system.
20983 Improve dbcs lead byte detection. Set event timestamp and modifiers
20984 earlier.
20985
209862008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20987
20988 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20989 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20990 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20991 when used on child processes.
20992
209932008-01-21 Michael Albinus <michael.albinus@gmx.de>
20994
20995 * dbusbind.c (Fdbus_method_return_internal): Rename from
20996 Fdbus_method_return.
20997 (Fdbus_unregister_object): Move to dbus.el.
20998 (Fdbus_call_method, Fdbus_method_return_internal)
20999 (Fdbus_send_signal): Improve debug messages.
21000
210012008-01-20 Martin Rudalics <rudalics@gmx.at>
21002
21003 * undo.c (undo_inhibit_record_point): New variable.
21004 (syms_of_undo): Initialize it.
21005 (record_point): Don't record point when undo_inhibit_record_point
21006 is set.
21007
210082008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21009
21010 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21011
21012 * xdisp.c (Qauto_hscroll_mode): New var.
21013 (syms_of_xdisp): Initialize it.
21014 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21015 window's buffer.
21016 (hscroll_windows): Don't check automatic_hscrolling_p here.
21017
21018 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21019 vscroll if we're setting window-buffer to the value it already has.
21020
210212008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21022
21023 * m/intel386.h: Remove references to XENIX.
21024
210252008-01-17 Andreas Schwab <schwab@suse.de>
21026
21027 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21028 instead of HAVE_X86_64_LIB64_DIR.
21029 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21030
210312008-01-17 Glenn Morris <rgm@gnu.org>
21032
21033 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21034 to HAVE_X86_64_LIB64_DIR.
21035
210362008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21037
21038 * s/irix3-3.h:
21039 * s/irix4-0.h:
21040 * s/386-ix.h:
21041 * s/domain.h:
21042 * s/hpux9-x11r4.h:
21043 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21044
21045 * sysdep.c: Remove code containing references to symbols defined
21046 by unsupported systems.
21047
210482008-01-16 Glenn Morris <rgm@gnu.org>
21049
21050 * coding.c (select-safe-coding-system-function): Doc fix.
21051
210522008-01-15 Glenn Morris <rgm@gnu.org>
21053
21054 * config.in: Revert 2008-01-13 change: this is a generated file.
21055
210562008-01-13 Tom Tromey <tromey@redhat.com>
21057
21058 * lisp.h: Fix typo.
21059
210602008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21061
21062 * m/sequent-ptx.h:
21063 * m/sequent.h:
21064 * s/ptx.h:
21065 * s/ptx4-2.h:
21066 * s/ptx4.h: Remove files for systems no longer supported.
21067
21068 * callproc.c (Fcall_process): Fix previous change.
21069
210702008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21071
21072 * unexsunos4.c: Remove file, system not supported anymore.
21073
21074 * m/mips.h:
21075 * m/intel386.h:
21076 * callproc.c:
21077 * config.in:
21078 * ecrt0.c:
21079 * emacs.c:
21080 * fileio.c:
21081 * frame.c:
21082 * getpagesize.h:
21083 * keyboard.c:
21084 * lread.c:
21085 * process.c:
21086 * puresize.h:
21087 * sysdep.c:
21088 * systty.h:
21089 * syswait.h:
21090 * unexec.c:
21091 * xdisp.c:
21092 * alloc.c: Remove code containing references to symbols defined by
21093 unsupported systems.
21094
210952008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21096
21097 * coding.c (detect_coding_mask): Fix previous change.
21098
210992008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21100
21101 * coding.c (detect_coding_iso2022): New arg
21102 latin_extra_code_state. Allow Latin extra codes only
21103 when *latin_extra_code_state is nonzero.
21104 (detect_coding_mask): If there is a NULL byte, detect the encoding
21105 as UTF-16 or binary. If Latin extra codes exist, detect the
21106 encoding as ISO-2022 only when there's no other proper encoding is
21107 found.
21108
211092008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21110
21111 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21112 #ifdef MAC_OS.
21113
211142008-01-08 Richard Stallman <rms@gnu.org>
21115
21116 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21117
211182008-01-06 Nick Roberts <nickrob@snap.net.nz>
21119
21120 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21121 menu bar in parentheses.
21122
211232008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21124
21125 * m/7300.h:
21126 * m/acorn.h:
21127 * m/alliant-2800.h:
21128 * m/alliant.h:
21129 * m/alliant1.h:
21130 * m/alliant4.h:
21131 * m/altos.h:
21132 * m/amdahl.h:
21133 * m/apollo.h:
21134 * m/att3b.h:
21135 * m/aviion-intel.h:
21136 * m/aviion.h:
21137 * m/celerity.h:
21138 * m/clipper.h:
21139 * m/cnvrgnt.h:
21140 * m/convex.h:
21141 * m/cydra5.h:
21142 * m/delta88k.h:
21143 * m/dpx2.h:
21144 * m/dual.h:
21145 * m/elxsi.h:
21146 * m/f301.h:
21147 * m/gould-np1.h:
21148 * m/gould.h:
21149 * m/i860.h:
21150 * m/ibmps2-aix.h:
21151 * m/ibmrt-aix.h:
21152 * m/ibmrt.h:
21153 * m/irist.h:
21154 * m/is386.h:
21155 * m/isi-ov.h:
21156 * m/mega68.h:
21157 * m/mg1.h:
21158 * m/news-r6.h:
21159 * m/news-risc.h:
21160 * m/news.h:
21161 * m/nh3000.h:
21162 * m/nh4000.h:
21163 * m/ns16000.h:
21164 * m/ns32000.h:
21165 * m/nu.h:
21166 * m/orion.h:
21167 * m/orion105.h:
21168 * m/paragon.h:
21169 * m/pfa50.h:
21170 * m/plexus.h:
21171 * m/pyramid.h:
21172 * m/pyrmips.h:
21173 * m/sh3el.h:
21174 * m/sps7.h:
21175 * m/sr2k.h:
21176 * m/stride.h:
21177 * m/sun1.h:
21178 * m/sun2.h:
21179 * m/sun3-68881.h:
21180 * m/sun3-fpa.h:
21181 * m/sun3-soft.h:
21182 * m/sun3.h:
21183 * m/sun386.h:
21184 * m/symmetry.h:
21185 * m/tad68k.h:
21186 * m/tahoe.h:
21187 * m/targon31.h:
21188 * m/tek4300.h:
21189 * m/tekxd88.h:
21190 * m/tower32.h:
21191 * m/tower32v3.h:
21192 * m/ustation.h:
21193 * m/wicat.h:
21194 * m/xps100.h:
21195 * s/cxux.h:
21196 * s/cxux7.h:
21197 * s/dgux.h:
21198 * s/dgux4.h:
21199 * s/dgux5-4-3.h:
21200 * s/dgux5-4r2.h:
21201 * s/esix.h:
21202 * s/esix5r4.h:
21203 * s/hiuxmpp.h:
21204 * s/hiuxwe2.h:
21205 * s/iris3-5.h:
21206 * s/iris3-6.h:
21207 * s/isc2-2.h:
21208 * s/isc3-0.h:
21209 * s/isc4-0.h:
21210 * s/isc4-1.h:
21211 * s/newsos5.h:
21212 * s/newsos6.h:
21213 * s/osf1.h:
21214 * s/osf5-0.h:
21215 * s/riscix1-1.h:
21216 * s/riscix12.h:
21217 * s/sco4.h:
21218 * s/sco5.h:
21219 * s/sunos4-0.h:
21220 * s/sunos4-1.h:
21221 * s/sunos413.h:
21222 * s/sunos4shr.h:
21223 * s/umax.h:
21224 * s/unipl5-2.h:
21225 * s/xenix.h:
21226 * cxux-crt0.s:
21227 * unexapollo.c:
21228 * unexconvex.c:
21229 * unexenix.c:
21230 * unexsni.c: Remove files for systems no longer supported.
21231
21232 * m/intel386.h: Remove references to unsupported systems.
21233
21234 * w32.c (get_emacs_configuration): Remove reference to i860.
21235
21236 * sysdep.c: Remove dead code.
21237
212382008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21239
21240 * s/rtu.h:
21241 * m/masscomp.h: Remove files. Platform is obsolete.
21242
212432008-01-04 Michael Albinus <michael.albinus@gmx.de>
21244
21245 * dbusbind.c (Fdbus_method_return): New function.
21246 (xd_read_message): Add the serial number to the event.
21247 (Fdbus_register_method): Activate the function.
21248
212492008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21250
21251 * keyboard.c (read_key_sequence): Fix typo.
21252
212532008-01-03 Michael Albinus <michael.albinus@gmx.de>
21254
21255 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21256 (xd_signature, xd_append_arg): Handle element type detection for
21257 empty arrays.
21258 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21259 SDATA () calls; this must be solved more general.
21260 (Fdbus_register_signal): Use SBYTES instead of strlen.
21261
212622008-01-03 Magnus Henoch <magnus@zemdatav>
21263
21264 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21265 unsigned int for byte values (necessary for big-endian platform).
21266 (Fdbus_call_method): Handle the case of no returned arguments.
21267
212682007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21269
21270 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21271
212722007-12-31 Magnus Henoch <mange@freemail.hu>
21273
21274 * dbusbind.c (xd_signature): Signature of variant is just "v".
21275
212762007-12-30 Michael Albinus <michael.albinus@gmx.de>
21277
21278 * dbusbind.c: Fix several errors and compiler warnings.
21279 Reported by Tom Tromey <tromey@redhat.com>.
21280 (XD_ERROR, XD_DEBUG_MESSAGE)
21281 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21282 (xd_append_arg): Part for basic D-Bus types rewritten.
21283 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21284 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21285 appropriate.
21286 (xd_read_message): Return Qnil. Don't signal an error; it is not
21287 useful during event reading.
21288 (Fdbus_register_signal): Signal an error if the check for
21289 FUNCTIONP fails.
21290 (Fdbus_register_method): New function. The implementation is not
21291 complete, the call of the function signals an error therefore.
21292 (Fdbus_unregister_object): New function, renamed from
21293 Fdbus_unregister_signal. The initial check signals an error, if
21294 the object is not well formed.
21295
212962007-12-30 Richard Stallman <rms@gnu.org>
21297
21298 * textprop.c (get_char_property_and_overlay):
21299 Signal error if POSITION is out of range in a buffer.
21300
213012007-12-29 Martin Rudalics <rudalics@gmx.at>
21302
21303 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21304 because the original parameters are in pure storage now.
21305
213062007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21307
21308 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21309
213102007-12-22 Eli Zaretskii <eliz@gnu.org>
21311
21312 * callint.c (syms_of_callint) <command-history>: Add reference to
21313 history-length in the doc string.
21314
213152007-12-17 Jason Rumney <jasonr@gnu.org>
21316
21317 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21318 before passing as wParam.
21319
213202007-12-22 Michael Albinus <michael.albinus@gmx.de>
21321
21322 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21323 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21324 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21325 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21326 as number.
21327 (Fdbus_call_method): Fix docstring.
21328
213292007-12-21 Michael Albinus <michael.albinus@gmx.de>
21330
21331 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21332 New macros.
21333 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21334 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21335 Simplify.
21336 (xd_signature): New function.
21337 (xd_append_arg): Compute also signatures. Major rewrite.
21338 (xd_retrieve_arg): Make debug messages friendly.
21339 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21340 Check for signatures of arguments.
21341
213422007-12-19 Michael Albinus <michael.albinus@gmx.de>
21343
21344 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21345 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21346 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21347 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21348 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21349 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21350 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21351 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21352 (xd_retrieve_value): Remove. Functionality included in ...
21353 (xd_append_arg): New function.
21354 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21355
213562007-12-16 Michael Albinus <michael.albinus@gmx.de>
21357
21358 * dbusbind.c (top): Include <stdio.h>.
21359 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21360 dbus_message_new_method_call and dbus_message_new_signal.
21361 (Fdbus_register_signal): Rename unique_name to uname.
21362 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21363 non-existing unique name. Fix typos in matching rule. Return an
21364 object which is useful in Fdbus_unregister_signal.
21365 (Fdbus_unregister_signal): Reimplementation, in order to remove
21366 only the corresponding entry.
21367 (Vdbus_registered_functions_table): Change the order of entries.
21368 Apply these changes in xd_read_message and Fdbus_register_signal.
21369
213702007-12-16 Andreas Schwab <schwab@suse.de>
21371
21372 * fileio.c (Finsert_file_contents): Fix overflow check to not
21373 depend on undefined integer overflow.
21374
213752007-12-14 Jason Rumney <jasonr@gnu.org>
21376
21377 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21378 for characters above 127.
21379
213802007-12-13 Jason Rumney <jasonr@gnu.org>
21381
21382 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21383 before dereferencing array.
21384 (lookup_vk_code): Remove zero comparison.
21385
213862007-12-14 Michael Albinus <michael.albinus@gmx.de>
21387
21388 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21389 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21390 Use `unsigned int' instead of `uint'.
21391 (xd_read_message, Fdbus_register_signal): Split expressions into
21392 multiple lines before operators "&&" and "||", according to the
21393 GNU Coding Standards.
21394
213952007-12-14 Eli Zaretskii <eliz@gnu.org>
21396
21397 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21398
213992007-12-12 Juri Linkov <juri@jurta.org>
21400
21401 * buffer.c (Frename_buffer): In interactive spec replace
21402 `read-buffer' with `read-string' that uses `buffer-name-history'
21403 as history, and the current buffer's name as default.
21404
214052007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21406
21407 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21408 manipulating the backtrace manually.
21409 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21410 (struct backtrace, backtrace_list): Remove.
21411 (command_loop_1): Remove dead var `no_direct'.
21412
21413 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21414 preserve non-built-in buffer-local variables.
21415 (Fkill_all_local_variables): Don't re-create&re-set permanent
21416 buffer-local variables.
21417
214182007-12-09 Juri Linkov <juri@jurta.org>
21419
21420 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21421 Lisp code that uses `read-buffer' with current buffer as default.
21422
214232007-12-08 Michael Albinus <michael.albinus@gmx.de>
21424
21425 * dbusbind.c (xd_read_message): Generate an event for every
21426 registered handler. There might be several handlers registered
21427 for the same signal.
21428 (Fdbus_register_signal): Don't overwrite a registration for the
21429 same signal. Add a new registration if handlers are different.
21430 (Vdbus_registered_functions_table): Rework doc string.
21431
214322007-12-07 Michael Albinus <michael.albinus@gmx.de>
21433
21434 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21435 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21436 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21437 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21438 Unify argument lists.
21439 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21440 arguments and hash table keys. Use unique name for service.
21441 (Fdbus_unregister_signal): Remove checks.
21442 (Vdbus_registered_functions_table): Fix doc string.
21443
214442007-12-05 Magnus Henoch <mange@freemail.hu>
21445
21446 * process.c (make_process): Initialize pty_flag to 0.
21447
214482007-12-05 Jason Rumney <jasonr@gnu.org>
21449
21450 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21451 specified XBMs.
21452
214532007-12-05 Richard Stallman <rms@gnu.org>
21454
21455 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21456
214572007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21458
21459 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21460 New variable.
21461 (mac_try_close_socket) [MAC_OSX]: New function.
21462 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21463 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21464
21465 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21466 Use mac_try_close_socket.
21467
214682007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21469
21470 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21471 reloc_base.
21472 (copy_dysymtab): Compute relocation base here.
21473 (rebase_reloc_address) [__ppc64__]: New function.
21474 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21475 changed.
21476
214772007-12-05 Jason Rumney <jasonr@gnu.org>
21478
21479 * w32proc.c (sys_spawnve): Quote args with wildcards.
21480
214812007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21482
21483 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21484 __objc_* sections.
21485 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21486
214872007-12-05 Michael Albinus <michael.albinus@gmx.de>
21488
21489 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21490 Move check for Vdbus_registered_functions_table to
21491 xd_read_queued_messages.
21492 (xd_read_queued_messages): Protect xd_read_message calls by
21493 internal_condition_case_1.
21494
214952007-12-04 Michael Albinus <michael.albinus@gmx.de>
21496
21497 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21498 Qdbus_system_bus and Qdbus_session_bus, respectively.
21499 (Vdbus_intern_symbols): Remove.
21500 (Vdbus_registered_functions_table): New hash table.
21501 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21502 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21503 Rewrite in order to manage registered functions by hash table
21504 Vdbus_registered_functions_table.
21505
215062007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21507
21508 * xterm.c: Update URL to Window Manager Specification in comment.
21509
215102007-12-02 Michael Albinus <michael.albinus@gmx.de>
21511
21512 * config.in (HAVE_DBUS): Add.
21513
21514 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21515 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21516 (obj): Add $(DBUS_OBJ).
21517 (LIBES): Add $(DBUS_LIBS).
21518 (dbusbind.o): New target.
21519
21520 * dbusbind.c: New file.
21521
21522 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21523
21524 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21525 (Qdbus_event): New Lisp symbol.
21526 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21527 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21528 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21529
21530 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21531
215322007-12-01 Richard Stallman <rms@gnu.org>
21533
21534 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21535
215362007-11-30 Jason Rumney <jasonr@gnu.org>
21537
21538 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21539 (w32con_reset_terminal_modes): Clear screen buffer.
21540 (w32_face_attributes): Don't use color indexes that are out of range.
21541 Only reverse the default colors.
21542
21543 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21544 WINDOWSNT.
21545
21546 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21547
215482007-11-29 Jason Rumney <jasonr@gnu.org>
21549
21550 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21551 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21552 if the terminal colors are initialized.
21553 (unspecified_fg, unspecified_bg): Remove unused declarations.
21554
215552007-11-29 Andreas Schwab <schwab@suse.de>
21556
21557 * keyboard.c (apply_modifiers): Fix typo.
21558
215592007-11-29 Richard Stallman <rms@gnu.org>
21560
21561 * keymap.c (Fcurrent_local_map): Doc fix.
21562
215632007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21564
21565 * s/gnu-kfreebsd.h: New file.
21566
215672007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21568
21569 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21570 Don't cast redundantly.
21571
21572 * keyboard.c (KEY_TO_CHAR): New macro.
21573 (parse_modifiers, apply_modifiers): Accept integer arguments.
21574 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21575 for chars and symbol keys.
21576 After doing such remapping, apply function-key-map again.
21577
215782007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21579
21580 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21581 compiled anymore.
21582
215832007-11-26 Andreas Schwab <schwab@suse.de>
21584
21585 * process.c (list_processes_1): Fix indentation level of the
21586 command column.
21587
215882007-11-23 Andreas Schwab <schwab@suse.de>
21589
21590 * editfns.c (Fformat): Handle %c specially since it requires the
21591 argument to be of type int.
21592
215932007-11-23 Markus Triska <markus.triska@gmx.at>
21594
21595 * emacs.c (main): Call init_editfns before init_process, since
21596 init_process sets Vprocess_connection_type depending on OS release.
21597
215982007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21599
21600 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21601 (find_symbol_value): Use do_symval_forwarding.
21602
21603 * data.c (set_internal): Set the value in the `cons-cell' (for
21604 Buffer_Local_values) not only for frame-local variables.
21605
216062007-11-22 Andreas Schwab <schwab@suse.de>
21607
21608 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21609 values to sprintf.
21610 * keymap.c (Fsingle_key_description): Likewise.
21611 * print.c (print_object): Likewise.
21612
216132007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21614
21615 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21616 file for image is nil.
21617
216182007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21619
21620 * term.c: Include stdarg.h.
21621 (fatal): Implement using varargs.
21622 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21623
216242007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21625
21626 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21627 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21628 Update call to buffer_slot_type_mismatch.
21629 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21630 (buffer_slot_type_mismatch): Update.
21631 * buffer.c (buffer_local_types): Remove.
21632 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21633 (defvar_per_buffer): Set the type in the buffer_objfwd.
21634
216352007-11-21 Jason Rumney <jasonr@gnu.org>
21636
21637 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21638 CreateFileMapping returns NULL on failure.
21639
216402007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21641
21642 * search.c (Fset_match_data): Remove the `evaporate' feature.
21643 (unwind_set_match_data): Don't use the `evaporate' feature.
21644
216452007-11-21 Jason Rumney <jasonr@gnu.org>
21646
21647 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21648
21649 * w32console.c (w32con_write_glyphs): Remove unused variables.
21650
216512007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21652
21653 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21654
21655 * s/darwin.h (MULTI_KBOARD): Remove.
21656
21657 * macfns.c (x_create_tip_frame, Fx_create_frame)
21658 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21659
216602007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21661
21662 * buffer.c (Fbuffer_local_value): Remove redundant test.
21663 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21664 than in `current-buffer' to match the comment.
21665 Do the swap using swap_in_global_binding.
21666
21667 * data.c (store_symval_forwarding, set_internal):
21668 * eval.c (specbind): Remove dead code.
21669
21670 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21671 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21672 Since we do not want to see internal Lisp_*fwd objects here.
21673
216742007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21675
21676 * sysdep.c (init_system_name): Use getaddrinfo if available.
21677
21678 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21679 (x_scroll_bar_note_movement): start, end, with, height in struct
21680 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21681
216822007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21683
21684 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21685
216862007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21687
21688 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21689 This undoes Richard's change of 14-Oct-2002.
21690
21691 * alloc.c (allocate_other_vector):
21692 * lisp.h (allocate_other_vector): Remove.
21693
21694 * window.c (struct save_window_data): Move non-lisp data to the end
21695 and make it `int' rather than Lisp_Object.
21696 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21697 Done wrap/unwrap integer values.
21698 (Fset_window_configuration, compare_window_configurations):
21699 Update use of fields to their new types.
21700
21701 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21702 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21703 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21704 (SET_SCROLL_BAR_X_WINDOW): Remove.
21705 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21706 Access the new x_window field directly.
21707 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21708 Don't wrap/unwrap integers into Lisp_Objects.
21709 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21710 (x_scroll_bar_report_motion):
21711 Don't wrap/unwrap integers into Lisp_Objects.
21712 (x_term_init): Use SDATA.
21713 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21714 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21715 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21716 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21717 * xfns.c (x_set_background_color):
21718 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21719 Access the new x_window field directly.
21720
21721 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21722 (allocate_pseudovector): Make non-static.
21723
21724 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21725 (allocate_pseudovector): Declare.
21726 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21727
217282007-11-15 Andreas Schwab <schwab@suse.de>
21729
21730 * editfns.c (Fformat): Correctly format EMACS_INT values.
21731 Also take precision into account when formatting an integer.
21732
21733 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21734
217352007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21736
21737 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21738 (syms_of_keyboard): Defsubr it.
21739
21740 * data.c (swap_in_global_binding): Fix longstanding bug where
21741 store_symval_forwarding was not called with the right second argument,
21742 thus causing objfwd-ing from being dropped.
21743
217442007-11-14 Juanma Barranquero <lekktu@gmail.com>
21745
21746 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21747 (Fx_display_pixel_height, Fx_display_planes)
21748 (Fx_display_color_cells, Fx_server_max_request_size)
21749 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21750 (Fx_display_visual_class, Fx_display_save_under):
21751 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21752 (Fx_display_pixel_height, Fx_display_planes)
21753 (Fx_display_color_cells, Fx_server_max_request_size)
21754 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21755 (Fx_display_mm_height, Fx_display_mm_width)
21756 (Fx_display_backing_store, Fx_display_visual_class)
21757 (Fw32_select_font, Fx_display_save_under):
21758 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21759 (Fx_display_pixel_height, Fx_display_planes)
21760 (Fx_display_color_cells, Fx_server_max_request_size)
21761 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21762 (Fx_display_save_under): Fix typos in docstrings.
21763
217642007-11-14 Juanma Barranquero <lekktu@gmail.com>
21765
21766 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21767 corresponding to deleted entries; they are an implementation detail.
21768 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21769 Remove variables.
21770 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21771 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21772 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21773 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21774 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21775 (Fw32_define_rgb_color, Fw32_load_color_file)
21776 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21777 Fix typos in docstrings.
21778 (Fx_server_version): Reflow docstring.
21779 (Fw32_shell_execute): Doc fixes.
21780
217812007-11-13 Juanma Barranquero <lekktu@gmail.com>
21782
21783 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21784 if w32_parse_hot_key returned nil.
21785
217862007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21787
21788 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21789
217902007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21791
aac0c6e3
MR
21792 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21793
21794 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21795
21796 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21797 Remove W32_SCROLL_BAR_CLICK_EVENT.
21798
21799 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21800 Add MULTIMEDIA_KEY_EVENT.
21801
21802 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21803 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21804 (make_lispy_event) [WINDOWSNT]: Use it to translate
21805 MULTIMEDIA_KEY_EVENT.
21806
21807 * w32term.h (WM_APPCOMMAND): Define if not already.
21808 (GET_APPCOMMAND_LPARAM): Likewise.
21809
21810 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21811 WM_APPCOMMAND.
21812
21813 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21814 (syms_of_w32fns): Export and initialize it.
21815 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21816
218172007-11-09 Chong Yidong <cyd@stupidchicken.com>
21818
21819 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21820 twice.
21821
21822 * xdisp.c (handle_face_prop): Fix last change.
21823
218242007-11-09 Richard Stallman <rms@gnu.org>
21825
21826 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21827 not just for after-strings and before-strings.
21828 Call face_for_overlay_string and pass the overlay to it.
21829 (handle_display_prop): Determine whether property came from an overlay.
21830 Pass OVERLAY arg to handle_single_display_spec.
21831 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21832 (load_overlay_strings): Fill in it->string_overlays.
21833 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21834
21835 * xfaces.c (face_for_overlay_string): Function renamed from
21836 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21837
21838 * dispextern.h (struct it): New elt string_overlays.
21839 New elt from_overlay, also in stack.
21840 Rearrange a few elements.
21841 (face_for_overlay_string): Decl renamed from
21842 face_at_buffer_position_no_overlays, and add argument.
21843
218442007-11-09 Richard Stallman <rms@gnu.org>
21845
21846 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21847 to get the base face for an overlay string.
21848
21849 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21850
21851 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21852
21853 * xdisp.c (handle_stop): Move some code out of loop.
21854
218552007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21856
21857 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21858 Fix conversion from Lisp object to ATSUFontID.
21859
218602007-11-09 Jason Rumney <jasonr@gnu.org>
21861
21862 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21863
218642007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21865
21866 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21867 Don't assume regions are aligned to page boundary.
21868 (print_load_command_name): Add LC_UUID if defined.
21869
218702007-11-09 Richard Stallman <rms@gnu.org>
21871
21872 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21873
218742007-11-07 Jason Rumney <jasonr@gnu.org>
21875
21876 * s/windows95.h: Remove.
21877
218782007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21879
21880 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21881 abort with a message on unhandled store_type values.
21882
218832007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21884
21885 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21886 Remove HAVE_X11R5 and HAVE_X11R4.
21887
218882007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21889
21890 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21891
218922007-11-01 Johan Bockgård <bojohan@gnu.org>
21893
21894 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21895 Don't set s->stippled_p here, since it has already been set by
21896 x_set_glyph_string_gc from x_draw_glyph_string.
21897
218982007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21899
21900 * sunfns.c: Remove file.
21901
21902 * m/sun386.h:
21903 * m/sun2.h:
21904 * m/sparc.h: Remove Sun windows code.
21905
219062007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21907
21908 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21909 (init_keyboard): Set current_kboard's window-system to nil.
21910 (tty_read_avail_input): Typo.
21911 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21912
219132007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21914
21915 * s/usg5-4.h:
21916 * s/usg5-3.h:
21917 * s/ptx.h:
21918 * m/is386.h:
21919 * m/ibmps2-aix.h:
21920 * Makefile.in: Remove all mentions of X10.
21921
21922 * dispnew.c (syms_of_display): Don't mention version 10.
21923
219242007-10-28 Juanma Barranquero <lekktu@gmail.com>
21925
21926 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21927 ($(BLD)/abbrev.$(O)): Remove.
21928
219292007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21930
21931 Rewrite abbrev.c in Elisp.
21932 * image.c (Qcount): Don't declare as extern.
21933 (syms_of_image): Initialize and staticpro `Qcount'.
21934 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21935 * emacs.c (main): Don't call syms_of_abbrev.
21936 * Makefile.in (obj): Remove abbrev.o.
21937 (abbrev.o): Remove.
21938 * abbrev.c: Remove.
21939
219402007-10-26 Martin Rudalics <rudalics@gmx.at>
21941
21942 * window.c (window_min_size_2): Don't count header-line.
21943
219442007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21945
21946 * frame.h (struct frame): Move all bit fields after the first bit
21947 field to take advantage of the available space. Group all the
21948 chars together to reduce wasted space due to padding.
21949
219502007-10-26 Juanma Barranquero <lekktu@gmail.com>
21951
21952 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21953
21954 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21955 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21956 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21957 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21958 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21959 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21960 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21961 (last_marked, mark_object_loop_halt): Make static.
21962
21963 * frame.c (syms_of_frame) <delete-frame-functions>:
21964 Fix typo in docstring.
21965
219662007-10-25 Juanma Barranquero <lekktu@gmail.com>
21967
21968 * w32.c (init_environment): Fix tiny memory leak.
21969 (w32_get_resource): Remove unused variable `ok'.
21970
219712007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21972
21973 Make `window-system' into a keyboard-local variable (rather than
21974 frame-local as done originally by multi-tty).
21975
21976 * keyboard.h (struct kboard): Add Vwindow_system.
21977 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21978 (mark_kboards): Mark Vwindow_system.
21979
21980 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21981 (init_display): Don't set the obsolete `window-system' frame-param.
21982
21983 * xterm.c (x_term_init):
21984 * w32term.c (w32_create_terminal):
21985 * term.c (init_tty): Set Vwindow_system.
21986 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21987 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21988
21989 * xfns.c (Fx_create_frame, x_create_tip_frame):
21990 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21991 * macfns.c (Fx_create_frame):
21992 Don't set the obsolete `window-system' frame-param.
21993
21994 * frame.h (Qwindow_system): Remove.
21995 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21996 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21997
219982007-10-24 Richard Stallman <rms@gnu.org>
21999
22000 * frame.c (x_figure_window_size): For fullscreen case,
22001 set USPosition | PPosition without clobbering rest of window_prompting.
22002
22003 * keyboard.c (Fcurrent_idle_time): Doc fix.
22004
22005 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22006
220072007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22008
22009 * process.c (unwind_request_sigio): Only define if __ultrix__.
22010
22011 * callproc.c (child_setup): Remove spurious *.
22012
22013 * lisp.h (Fget_text_property): Declare.
22014 (have_menus_p): Declare it here rather than in sys-dep header files.
22015 * macterm.h (have_menus_p):
22016 * msdos.h (have_menus_p):
22017 * xterm.h (have_menus_p): Remove.
22018
22019 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22020 (Fmake_variable_frame_local): Just check the variable's const-ness
22021 rather than checking nil or t.
22022
220232007-10-22 Jason Rumney <jasonr@gnu.org>
22024
22025 * w32fns.c: Include math.h.
22026 (w32_abort): Declaration moved to nt/config.nt.
22027
22028 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22029 (abort): Redefinition moved to nt/config.nt.
22030
22031 * m/windowsnt.h: Remove.
22032
220332007-10-22 Juanma Barranquero <lekktu@gmail.com>
22034
22035 * emacs.c (Fdump_emacs): Fix typo in message.
22036 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22037 <installation-directory>: Reflow docstring.
22038
220392007-10-22 Juri Linkov <juri@jurta.org>
22040
22041 * minibuf.c: Allow minibuffer default to be a list of default values.
22042 With empty input use the first element of this list as returned default.
22043 (string_to_object)
22044 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22045 (read_minibuf): If defalt is cons, set histstring to its car.
22046 (Fread_string): If default_value is cons, set val to its car.
22047 (Fread_buffer): If def is cons, use its car.
22048 (Fcompleting_read): If defalt is cons, set val to its car.
22049
220502007-10-21 Michael Albinus <michael.albinus@gmx.de>
22051
22052 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22053
220542007-10-20 Juanma Barranquero <lekktu@gmail.com>
22055
22056 * doc.c (Fdocumentation): Check for advice in all cases.
22057
220582007-10-19 Chong Yidong <cyd@stupidchicken.com>
22059
22060 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22061
220622007-10-19 Richard Stallman <rms@gnu.org>
22063
22064 * doc.c (Fdocumentation): Check for and handle an advised function.
22065
220662007-10-19 Juanma Barranquero <lekktu@gmail.com>
22067
22068 * process.c (Fset_process_filter): Doc fix.
22069
220702007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22071
22072 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22073 which caused key-translation-map to applied repeatedly (thus breaking
22074 double-mode).
22075
220762007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22077
22078 * xselect.c (x_own_selection, x_handle_selection_clear)
22079 (x_clear_frame_selections):
22080 * w32menu.c (list_of_panes, list_of_items):
22081 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22082 * textprop.c (validate_plist, interval_has_all_properties)
22083 (interval_has_some_properties, interval_has_some_properties_list)
22084 (add_properties, text_property_list):
22085 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22086 * minibuf.c (Fassoc_string):
22087 * macselect.c (x_own_selection, x_clear_frame_selections)
22088 (Fx_disown_selection_internal):
22089 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22090 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22091
220922007-10-17 Chong Yidong <cyd@stupidchicken.com>
22093
22094 * process.c: Link to libs for calling res_init() if available.
22095 (Fmake_network_process): Call res_init() before getaddrinfo or
22096 gethostbyname, if possible.
22097
220982007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22099
22100 * lread.c (read1): Set pvectype for char_tables.
22101
22102 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22103 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22104 Add type checks.
22105 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22106
22107 * alloc.c (free_misc): Use XMISCTYPE.
22108 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22109
221102007-10-17 Glenn Morris <rgm@gnu.org>
22111
22112 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22113 (syms_of_minibuf): Add Qcompletion_ignore_case.
22114 * dired.c (Qcompletion_ignore_case): Change to external.
22115 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22116 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22117 (Fread_file_name): Use it rather than intern'ing.
22118
22119 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22120 (Fread_coding_system): Ignore case of user input.
22121
221222007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22123
22124 * xdisp.c (handle_display_prop): Ignore display specs after
22125 replacing one when string text is being replaced.
22126 (handle_single_display_spec): Pretend as if characters with display
22127 property haven't been consumed only when buffer text is being replaced.
22128
221292007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22130
22131 * xfns.c (Fx_create_frame, Fx_display_list):
22132 * window.c (window_fixed_size_p, enlarge_window)
22133 (shrink_window_lowest_first):
22134 * macterm.c (init_font_name_table):
22135 * macfns.c (Fx_create_frame, Fx_display_list):
22136 * lread.c (close_load_descs):
22137 * keyboard.c (read_char_x_menu_prompt):
22138 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22139 * coding.c (code_convert_region_unwind): Test the type of an object
22140 rather than just !NILP before extracting data from it.
22141
22142 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22143
22144 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22145 (XMISCANY): New macro.
22146 (XMISCTYPE): Use it.
22147 (struct Lisp_Misc_Any): New type.
22148 (union Lisp_Misc): Use it.
22149 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22150 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22151 (find_symbol_value, set_internal, default_value, Fset_default)
22152 (Fmake_variable_buffer_local, Fmake_local_variable)
22153 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22154 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22155 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22156 * alloc.c (allocate_buffer): Set the size and tag.
22157 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22158 Use XMISCANY.
22159 (die): Follow the GNU convention for error messages.
22160 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22161 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22162 tag any more.
22163 (set_buffer_internal_1):
22164 * frame.c (store_frame_param):
22165 * eval.c (specbind):
22166 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22167
22168 * doc.c (Fsnarf_documentation): Simplify.
22169
221702007-10-14 Juanma Barranquero <lekktu@gmail.com>
22171
22172 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22173 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22174
221752007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22176
22177 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22178
221792007-10-14 Juanma Barranquero <lekktu@gmail.com>
22180
22181 * eval.c (do_autoload): Don't save autoloads.
22182
22183 * data.c (Ffset): Save autoload of the function being set.
22184
221852007-10-07 John Paul Wallington <jpw@pobox.com>
22186
22187 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22188 parameter before setting up faces.
22189
221902007-10-13 Eli Zaretskii <eliz@gnu.org>
22191
22192 * ccl.c (Fregister_code_conversion_map):
22193 * keyboard.c (append_tool_bar_item): Reformat last change.
22194
22195 * lisp.h (eabs): Rename from `abs'. All callers changed.
22196
221972007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22198
22199 * buffer.c (add_overlay_mod_hooklist):
22200 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22201 * fontset.c (make_fontset):
22202 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22203 (append_tool_bar_item):
22204 * macmenu.c (grow_menu_items):
22205 * w32menu.c (grow_menu_items):
22206 * xmenu.c (grow_menu_items): Use larger_vector.
22207
222082007-10-13 Eli Zaretskii <eliz@gnu.org>
22209
22210 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22211 selected frame'' on MSDOS).
22212
222132007-10-12 Martin Rudalics <rudalics@gmx.at>
22214
22215 * frame.c (Qexplicit_name): New variable.
22216 (x_report_frame_params): Report it in parameter alist.
22217 (syms_of_frame): Intern and staticpro it.
22218
222192007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22220
22221 * macfns.c (x_create_tip_frame): Set terminal for frame.
22222
222232007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22224
22225 * frame.c (Qenvironment): Remove.
22226 (syms_of_frame) <Qenvironment>: Don't initialize.
22227 (Fdelete_frame): Don't treat the `environment' param specially.
22228 * frame.h (Qenvironment): Don't declare.
22229 * callproc.c (set_initial_environment): Don't set unused frame param.
22230
22231 * frame.c (Fframe_with_environment): Remove.
22232 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22233
22234 * lisp.h (Fframe_with_environment): Don't declare.
22235
222362007-10-10 Juanma Barranquero <lekktu@gmail.com>
22237
22238 * indent.c (indent_tabs_mode, last_known_column)
22239 (last_known_column_modified): Make static.
22240 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22241
222422007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22243
22244 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22245
222462007-10-09 Jason Rumney <jasonr@gnu.org>
22247
22248 * w32term.c (x_set_window_size): Disable code that attempts to tell
22249 Lisp code about a size change before it actually happens.
22250
222512007-10-09 Richard Stallman <rms@gnu.org>
22252
22253 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22254 return HANDLED_RETURN.
22255
222562007-10-08 Martin Rudalics <rudalics@gmx.at>
22257
22258 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22259 when there's an unread command event.
22260
22261 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22262 window autoselection act appropriately when leaving selected frame.
22263 (syms_of_frame): Initialize focus_follows_mouse.
22264 * frame.h (focus_follows_mouse): Extern it.
22265 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22266 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22267 * msdos.c (dos_rawgetc): Likewise.
22268 * w32term.c (w32_read_socket): Likewise.
22269 * xterm.c (handle_one_xevent): Likewise.
22270 * xdisp.c (syms_of_xdisp): In doc-string of
22271 mouse-autoselect-window mention focus-follows-mouse.
22272
222732007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22274
22275 * macterm.c (mac_load_query_font): Fix missing return value.
22276 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22277 Add BLOCK_INPUT.
22278
222792007-10-08 Richard Stallman <rms@gnu.org>
22280
22281 * xdisp.c (get_window_cursor_type): Implement documented behavior
22282 for cursor-in-non-selected-windows = t.
22283
222842007-10-08 Jason Rumney <jasonr@gnu.org>
22285
22286 * w32.c (w32_get_resource): Always close registry keys.
22287
222882007-10-08 Jason Rumney <jasonr@gnu.org>
22289
22290 * makefile.w32-in (LIBS): Add COMCTL32.
22291
22292 * w32fns.c (globals_of_w32fns): Init common controls.
22293
222942007-10-08 Richard Stallman <rms@gnu.org>
22295
22296 * image.c (our_memory_buffer): Rename from omfib_buffer.
22297
222982007-10-08 Richard Stallman <rms@gnu.org>
22299
22300 * buffer.c (Foverlays_at): Doc fix.
22301
223022007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22303
22304 * fns.c (Fplist_put): Preserve uneven tail data.
22305
223062007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22307
22308 * termhooks.h (enum event_kind): Remove trailing comma.
22309
22310 * frame.h (enum): Remove trailing comma.
22311
223122007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22313
22314 * w32proc.c (delete_child): Don't terminate threads of zombies.
22315
223162007-10-08 Martin Rudalics <rudalics@gmx.at>
22317
22318 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22319
22320 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22321 last-repeatable-command.
22322 (init_kboard): Initialize Vlast_repeatable_command.
22323 (command_loop_1): Set it to real_this_command unless that was
22324 bound to an input event.
22325 (mark_kboards): Mark it.
22326
223272007-10-08 Richard Stallman <rms@gnu.org>
22328
22329 * eval.c (condition-case): Doc fix.
22330
223312007-10-08 Masatake YAMATO <jet@gyve.org>
22332
22333 * xfaces.c (tty_supports_face_attributes_p): Fix code
22334 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22335 was copied and not edited.
22336
223372007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22338
22339 Add new `input-decode-map' keymap and use it for terminal
22340 escape sequences.
22341 * keyboard.h (struct kboard): Add Vinput_decode_map.
22342 Remove Vlocal_key_translation_map.
22343 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22344 (init_kboard): Init input-decode-map.
22345 Replace local-key-translation-map back with key-translation-map.
22346 (syms_of_keyboard): Declare input-decode-map.
22347 Remove local-key-translation-map. Update docstrings.
22348 (mark_kboards): Mark Vinput_decode_map.
22349 Don't mark Vlocal_key_translation_map.
22350 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22351 Replace local-key-translation-map back with key-translation-map.
22352 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22353 Bind in input-decode-map rather than function-key-map.
22354
22355 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22356 This was made redundant by the previous introduction of XSETPVECTYPE.
22357
223582007-10-09 Richard Stallman <rms@gnu.org>
22359
22360 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22361
223622007-09-29 Richard Stallman <rms@gnu.org>
22363
22364 * eval.c (internal_condition_case_2, internal_condition_case_1)
22365 (internal_condition_case): Reenable abort if x_catching_errors ()
22366 to see if that really happens and why.
22367
223682007-10-06 Andreas Schwab <schwab@suse.de>
22369
22370 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22371
223722007-10-04 Juanma Barranquero <lekktu@gmail.com>
22373
22374 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22375
223762007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22377
22378 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22379
223802007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22381
22382 * window.h (struct window):
22383 * window.c (struct save_window_data, struct saved_window):
22384 * termhooks.h (struct terminal):
22385 * process.h (struct Lisp_Process):
22386 * frame.h (struct frame):
22387 * buffer.h (struct buffer):
22388 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22389 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22390 The size field of (pseudo)vectors is now unsigned.
22391 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22392
22393 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22394 Turn `count' into an integer.
22395
22396 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22397 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22398 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22399 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22400 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22401
22402 * alloc.c (allocate_pseudovector): New fun.
22403 (ALLOCATE_PSEUDOVECTOR): New macro.
22404 (allocate_window, allocate_terminal, allocate_frame)
22405 (allocate_process): Use it.
22406 (mark_vectorlike): New function.
22407 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22408 (mark_terminals): Use it.
22409 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22410 (Fmake_byte_code): Use XSETPVECTYPE.
22411
22412 * frame.c (Fframe_parameters): Minor simplification.
22413
22414 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22415
22416 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22417
22418 * buffer.c (Fget_buffer_create, init_buffer_once):
22419 * lread.c (defsubr):
22420 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22421
22422 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22423 defined differently in the m/*.h files.
22424 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22425 (XSETPVECTYPE): New macro.
22426 (XSETPSEUDOVECTOR): Use it.
22427
22428 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22429 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22430
22431 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22432 * lread.c (defvar_per_buffer):
22433 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22434
22435 * window.c (candidate_window_p): Only consider as visible frames that
22436 are on the same terminal.
22437
22438 * m/ibms390x.h (MARKBIT): Remove unused macro.
22439
224402007-10-01 Juanma Barranquero <lekktu@gmail.com>
22441
22442 * lread.c (Fload): Fix typo in docstring.
22443
224442007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22445
22446 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22447 of a non-zero value can't yield zero.
22448
224492007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22450
22451 * term.c (term_clear_mouse_face, term_mouse_highlight)
22452 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22453
22454 * print.c (safe_debug_print): Use XHASH.
22455
22456 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22457 Lisp elements such as tags.
22458 (XHASH): New macro.
22459 (EQ): Use it.
22460 (SREF, SSET, STRING_COPYIN): Use SDATA.
22461 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22462
22463 * alloc.c (mark_terminal): Remove left-over declaration.
22464 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22465 (allocate_vectorlike): Remove type argument. Adjust callers.
22466 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22467 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22468
22469 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22470 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22471 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22472 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22473 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22474 Use them.
22475
22476 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22477 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22478 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22479
224802007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22481
22482 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22483 loaded by default.
22484
224852007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22486
22487 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22488 on this tty.
22489 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22490
22491 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22492 Update all users.
22493 (handle_one_term_event): Use Gpm_DrawPointer.
22494 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22495 Signal errors instead of returning nil. Always return nil.
22496 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22497 Make it a noop if gpm-mouse was not activated.
22498 (syms_of_term): Update names.
22499
225002007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22501
22502 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22503 (init_sys_modes): Check that gpm_tty is the current tty.
22504
22505 * alloc.c (allocate_terminal): Set the vector size to only count the
22506 lisp fields. Initialize those to nil.
22507 (mark_object): Don't treat terminals specially.
22508 (mark_terminal): Remove.
22509 (mark_terminals): Use mark_object instead.
22510
22511 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22512 the GC to the beginning.
22513
22514 * indent.h:
22515 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22516
22517 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22518
225192007-09-25 Jason Rumney <jasonr@gnu.org>
22520
22521 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22522
22523 * w32console.c (create_w32cons_output): Remove.
22524
22525 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22526
22527 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22528 (reset_sys_modes): Use reset_terminal_modes_hook.
22529
225302007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22531
22532 * eval.c (do_autoload): Don't output any message.
22533
225342007-09-24 Juri Linkov <juri@jurta.org>
22535
22536 * emacs.c (standard_args): Change priority of "--no-splash"
22537 from 40 to 3. Add "--no-desktop" with the same priority.
22538
225392007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22540
22541 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22542 and optimize the case where they are all 1.
22543
225442007-09-23 Johannes Weiner <hannes@saeurebad.de>
22545
22546 * lisp.h (abs): Define if not defined.
22547 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22548 Don't define `abs', since it's defined in lisp.h.
22549
225502007-09-22 Eli Zaretskii <eliz@gnu.org>
22551
22552 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22553 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22554 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22555 (init_tty): Use DEV_TTY instead of "/dev/tty".
22556 [WINDOWSNT]: No need to protect from NAME arg being null.
22557
225582007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22559
22560 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22561 up the tty state.
22562
225632007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22564
22565 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22566 (gpm_tty): Change its type.
22567 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22568 (gpm_tty): Change its type and initialize it.
22569 (Fterm_open_connection): Check the frame is indeed a tty.
22570 Use the new gpm_tty.
22571 (Fterm_close_connection): Use the new gpm_tty.
22572 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22573 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22574
225752007-09-21 Juanma Barranquero <lekktu@gmail.com>
22576
22577 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22578 underline_color, to draw strike-through.
22579
225802007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22581
22582 * lisp.h (allocate_terminal): Declare.
22583
22584 * window.c (candidate_window_p): Consider frames that are being placed
22585 by the user as somewhere between visible and iconified.
22586 (window_loop): Prefer windows on the current frame.
22587 (Fselect_window): Move the use of select-frame to the beginning so we
22588 can just delegate all the work (it'll call us back anyway).
22589
22590 * frame.c (Qdisplay_environment_variable):
22591 * frame.h (Qdisplay_environment_variable): Delete.
22592
22593 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22594 of the first arg, since that value may be a union.
22595
22596 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22597 parameter rather than Qdisplay_environment_variable. If all else
22598 fails, look for DISPLAY in initial-environment.
22599
226002007-09-21 Glenn Morris <rgm@gnu.org>
22601
22602 * Makefile.in (emacstool): Remove target.
22603 (lisp, shortlisp): Remove termdev.elc.
22604
226052007-09-21 Markus Triska <markus.triska@gmx.at>
22606
22607 * xterm.c (x_delete_display): Compile session management conditionally.
22608
226092007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22610
22611 * callproc.c (getenv_internal_1): New function.
22612 (getenv_internal): Use it.
22613 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22614
22615 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22616 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22617 (Fset_terminal_parameter): Work with dead terminals as well.
22618 (Fmodify_terminal_parameters): Remove.
22619
22620 * terminal.c (get_terminal): Handle terminals.
22621 Make sure the terminal returned is live.
22622 (create_terminal): Use allocate_terminal.
22623 (mark_terminals): Move to alloc.c.
22624 (delete_terminal): Use terminal->name as liveness status.
22625 NULL out fields after freeing their contents.
22626 Don't deallocate the object.
22627 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22628 rather than an int.
22629 (Fterminal_live_p): Accept non-integer arguments.
22630 (Fterminal_list): Return terminal objects rather than an ints.
22631
22632 * alloc.c (enum mem_type): New member for `terminal' objects.
22633 (allocate_terminal): New function.
22634 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22635 Handle terminals.
22636 (mark_terminal): New fun.
22637 (mark_terminals): Move from terminal.c.
22638
22639 * term.c (get_tty_terminal): Don't treat output_initial specially.
22640 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22641 (delete_tty): Use terminal->name as liveness status.
22642
22643 * termhooks.h (struct terminal): Make it into a pseudovector.
22644 Remove `deleted' replaced by checking `name's nullness.
22645
22646 * print.c (print_object): Handle terminals.
22647
22648 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22649 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22650
22651 * frame.c (make_terminal_frame):
22652 * keyboard.c (tty_read_avail_input):
22653 * w32term.c (x_delete_terminal):
22654 * xfns.c (Fx_create_frame, x_create_tip_frame):
22655 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22656
226572007-09-20 Glenn Morris <rgm@gnu.org>
22658
22659 * process.c (Fmake_network_process): Doc fix.
22660
226612007-09-19 Jason Rumney <jasonr@gnu.org>
22662
22663 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22664
226652007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22666
22667 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22668 Fix a C warning regarding variable constness.
22669
22670 * xterm.c (handle_one_xevent): Fix a C warning.
22671
226722007-09-18 Jason Rumney <jasonr@gnu.org>
22673
22674 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22675
226762007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22677
22678 * gtkutil.c (gdpy_def): New variable.
22679 (xg_initialize): Initialize gdpy_def.
22680 (xg_display_close): If no other display exists, set gdpy_def to a
22681 new connection.
22682
226832007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22684
22685 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22686 when we have no file name for the icon.
22687 (xg_tool_bar_expose_callback): Remove.
22688 (xg_create_tool_bar): Don't connect expose signal to
22689 xg_tool_bar_expose_callback.
22690 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22691
226922007-09-16 Andreas Schwab <schwab@suse.de>
22693
22694 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22695 values instead of zapping them.
22696
226972007-09-14 Glenn Morris <rgm@gnu.org>
22698
22699 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22700 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22701 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22702 scope and rename to omfib_buffer for clarity.
22703 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22704
227052007-09-14 Kenichi Handa <handa@m17n.org>
22706
22707 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22708
227092007-09-13 Jason Rumney <jasonr@gnu.org>
22710
22711 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22712
22713 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22714
22715 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22716 (mac_term_init): Call here instead, passing rif.
22717
227182007-09-13 Glenn Morris <rgm@gnu.org>
22719
22720 * s/hpux.h: No longer define `static' as nothing.
22721
227222007-09-13 Johan Bockgård <bojohan@gnu.org>
22723
22724 * callint.c (Fcall_interactively): Remove unused var `fun'.
22725
227262007-09-12 Romain Francoise <romain@orebokech.com>
22727
22728 * window.c (prefer_window_split_horizontally, display_buffer):
22729 Revert 2007-09-08 change.
22730
227312007-09-12 Glenn Morris <rgm@gnu.org>
22732
22733 * alloca.c: Remove file.
22734 * Makefile.in (alloca): Do not undef.
22735 (allocaobj, alloca.o): Remove.
22736 (otherobj): Remove allocaobj.
22737 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22738 * regex.c (C_ALLOCA): Remove all references and code that was only
22739 used when this was defined.
22740 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22741 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22742 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22743
22744 * Makefile.in (SOURCES, unlock, relock): Delete.
22745
22746 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22747 (menu_grab_callback): All uses changed.
22748
22749 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22750 (x_reply_selection_request): All uses changed.
22751
227522007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22753
22754 * lread.c (load_warn_old_style_backquotes): Change message to look
22755 better when it appears in the middle of byte-compiler messages.
22756
227572007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22758
22759 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22760
22761 * xterm.c (x_create_terminal): Add comment.
22762
22763 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22764
227652007-09-10 Richard Stallman <rms@gnu.org>
22766
22767 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22768
227692007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22770
22771 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22772 (DEFUN): Document `intspec', use it instead of `prompt'.
22773
22774 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22775
22776 * data.c (Finteractive_form): If the interactive specification starts
22777 with a `(', use it as a Lisp form.
22778
22779 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22780 name and file modes.
22781
22782 * callint.c (Fcall_interactively): Comment fixes.
22783
227842007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22785
22786 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22787 and compiled functions.
22788
227892007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22790
22791 * window.c (prefer_window_split_horizontally): New variable.
22792 (display_buffer): Consider splitting window horizontally depending
22793 on prefer_window_split_horizontally.
22794
227952007-09-08 Eli Zaretskii <eliz@gnu.org>
22796
22797 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22798
227992007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22800
22801 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22802
22803 * frame.c (x_set_frame_parameters): Check number is positive before
22804 using XFASTINT.
22805
22806 * window.c (freeze_window_start): Don't presume selected_window holds
22807 a window object.
22808 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22809
228102007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22811
22812 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22813
228142007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22815
22816 * window.c (Vsplit_window_preferred_function): New var.
22817 (Fdisplay_buffer): Use it.
22818 (syms_of_window): Export, and initialize it.
22819
228202007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22821
22822 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22823
228242007-09-06 Glenn Morris <rgm@gnu.org>
22825
22826 * gtkutil.c (menu_grab_callback) <cnt>:
22827 * xselect.c (x_reply_selection_request) <cnt>: Move static
22828 variable to file scope.
22829
228302007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22831
22832 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22833 consistent values of selected_frame and selected_window.
22834
228352007-09-04 Jason Rumney <jasonr@gnu.org>
22836
22837 * w32console.c (initialize_w32_display): Zero unused hooks.
22838
228392007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22840
22841 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22842 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22843
228442007-09-04 Jason Rumney <jasonr@gnu.org>
22845
22846 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22847 in w32console.c. Set up input. Remove XXX comments that have been
22848 confirmed as correct.
22849
22850 * s/ms-w32.h (MULTI_KBOARD): Define.
22851
22852 * w32console.c (one_and_only_w32cons): Remove.
22853 (initialize_w32_display): Take terminal argument.
22854
22855 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22856 initialize_w32_display.
22857 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22858
22859 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22860
22861 * keyboard.c (discard_mouse_events): Discard it.
22862 (make_lispy_event): Translate it to a lisp event.
22863 (lispy_wheel_names): Add wheel-left and right events.
22864 (syms_of_keyboard): Enlarge wheel_syms.
22865
22866 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22867 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22868
22869 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22870
22871 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22872 from WM_MOUSEHWHEEL.
22873 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22874
22875 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22876 terminal.
22877
22878 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22879 keyboard for the terminal.
22880
228812007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22882
22883 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22884 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22885 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22886 and resume-tty-function to resume-tty-hook.
22887 (Fsuspend_tty, Fresume_tty): Use new names.
22888
228892007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22890
22891 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22892 if it starts with "n:".
22893
228942007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22895
22896 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22897
228982007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22899
22900 * frame.h:
22901 * frame.c (Qterm_environment_variable): Remove.
22902 (syms_of_frame): Don't init and staticpro it.
22903
22904 * callproc.c (getenv_internal): Remove special case for $TERM.
22905
22906 * callproc.c (Vinitial_environment): New variable.
22907 (set_initial_environment): Initialize it.
22908 (syms_of_callproc): Declare it.
22909 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22910 TERM under which a process runs is never related to the TERM in which
22911 Emacs is running.
22912
229132007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22914
22915 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22916 * s/darwin.h: ... do it here.
22917
229182007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22919
22920 * lisp.h (set_initial_environment): Rename from set_global_environment.
22921
22922 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22923 removed by mistake on the multi-tty branch.
22924
22925 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22926 (Fmodify_frame_parameters): Return a value.
22927
22928 * image.c (png_load): Comment-out var only used in commented-out code.
22929
22930 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22931 before passing it to mark_object.
22932
22933 * xfaces.c (internal_resolve_face_name): Return a value.
22934 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22935
22936 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22937 (x_icon): Comment-out var only used in commented-out code.
22938
229392007-08-29 Romain Francoise <romain@orebokech.com>
22940
22941 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22942 QUIT hasn't been provided.
22943
229442007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22945
22946 * callproc.c (child_setup, getenv_internal): Use the
22947 display-environment-variable and term-environment-variable frame params.
22948 (set_initial_environment): Initialise Vprocess_environment.
22949
22950 * config.in: Disable multi-keyboard support on a mac.
22951
22952 * frame.c (Qterm_environment_variable)
22953 (Qdisplay_environment_variable): New variables.
22954 (syms_of_frame): Intern and staticpro them.
22955 (Fmake_terminal_frame): Disable output method test.
22956
22957 * frame.h: Declare them here.
22958
22959 * macfns.c (x_set_mouse_color): Get rif from the frame.
22960 (x_set_tool_bar_lines): Don't use updating_frame.
22961 (mac_window): Add 2 new parameters for consistency with other systems.
22962 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22963 frame parameters following what is done in X11 and w32. Don't use
22964 FRAME_MAC_DISPLAY_INFO.
22965 (Fx_open_connection, start_hourglass): Remove window-system check.
22966 (x_create_tip_frame): Get the keyboard from the terminal.
22967
22968 * macmenu.c: Reorder includes.
22969 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22970
22971 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22972 terminal parameter.
22973 (x_clear_frame): Add a frame parameter.
22974 (note_mouse_movement): Get rif from the frame.
22975 (mac_term_init): Initialize the terminal.
22976 (mac_initialize): Make static and move terminal initialization ...
22977 (mac_create_terminal): ... to this new function.
22978
22979 * macterm.h (struct mac_display_info): Add terminal.
22980 (mac_initialize): Delete declaration.
22981
22982 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22983
22984 * sysdep.c: Comment out text after #endif.
22985
22986 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22987 is defined. Better initialize ttys in windows. Use terminal
22988 specific mouse_position_hook.
22989
22990 * termhooks.h (union display_info): Add mac_display_info.
22991
22992 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22993 Set the default minibuffer frame, window_system and the rest of the
22994 frame parameters following what is done in X11.
22995
22996 * w32term.c (w32_initialize): Make static.
22997
22998 * xselect.c (x_handle_selection_clear): Only access
22999 terminal->kboard when MULTI_KBOARD is defined.
23000
23001 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23002 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23003
230042007-08-29 Jason Rumney <jasonr@gnu.org>
23005
23006 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23007 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23008
23009 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23010 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23011
23012 * keyboard.c (restore_kboard_configuration): Only define when
23013 MULTI_KBOARD defined.
23014
23015 * makefile.w32-in: Update dependancies from Makefile.in.
23016 (OBJ1): Add terminal.$(O)
23017
23018 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23019 Don't define function body.
23020 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23021
23022 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23023
23024 * w32.c (request_sigio, unrequest_sigio): Remove.
23025
23026 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23027 (w32con_clear_frame, w32con_clear_end_of_line)
23028 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23029 (w32con_delete_glyphs, w32con_set_terminal_window)
23030 (scroll_line, w32_sys_ring_bell): Add frame arg.
23031 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23032 Add terminal arg.
23033 (PICK_FRAME): Remove.
23034 (w32con_write_glyphs): Use frame specific terminal coding.
23035 (one_and_only_w32cons): New global variable.
23036 (initialize_w32_display): Use it for storing hooks.
23037 (create_w32cons_output): New function.
23038
23039 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23040 arg a frame.
23041
23042 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23043 Set window_system.
23044 (x_set_tool_bar_lines): Don't use updating_frame.
23045 (Fx_create_frame): Set terminal and ref count.
23046 (Fx_open_connection): Remove window-system check.
23047
23048 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23049
23050 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23051 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23052 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23053 Add frame arg.
23054 (x_delete_terminal, w32_create_terminal): New functions.
23055 (w32_term_init): Create a terminal.
23056 (w32_initialize): Move terminal specific initialization to
23057 w32_create_terminal.
23058
23059 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23060 (w32_clear_rect, w32_clear_area): Use background from frame.
23061 (w32_display_info): Add terminal.
23062 (w32_sys_ring_bell, x_delete_display): Declare here.
23063
23064 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23065
23066 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23067
230682007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23069
23070 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23071 Fix get_named_tty calls for the controlling tty.
23072
230732007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23074
194d44e7 23075 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23076
230772007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23078
23079 * term.c (tty_insert_glyphs): Add missing first parameter.
23080
230812007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23082
23083 * buffer.c (Fbuffer_list, Fbury_buffer):
23084 Take frame->buried_buffer_list into account.
23085
23086 * cm.c (current_tty): New variable, for cmputc().
23087 (cmputc): Use it.
23088 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23089 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23090 (cmgoto): Add tty parameter. Pass it on to calccost().
23091 Use emacs_tputs() instead of tputs().
23092
23093 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23094 tputs().
23095 (current_tty): New variable, for cmputc().
23096 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23097
23098 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23099 (internal_condition_case, internal_condition_case_1)
23100 (internal_condition_case_2): Don't abort when x_catching_errors.
23101
23102 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23103 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23104 prevent crashes caused by bogus longjmps in read_char.
23105
23106 * keymap.h (Fset_keymap_parent): Add EXFUN.
23107
23108 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23109 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23110 Remove redundant definition.
23111
23112 * macfns.c (x_set_mouse_color, x_make_gc):
23113 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23114
23115 * w32term.c (x_free_frame_resources):
23116 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23117 (w32_initialize): Use the accessor macros for terminal characteristics.
23118
23119 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23120 Use the accessor macros for terminal characteristics.
23121 * msdos.c (internal_terminal_init): Use the accessor macros for
23122 terminal characteristics.
23123 (ScreenVisualBell, internal_terminal_init):
23124 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23125
23126 * termopts.h (no_redraw_on_reenter): Declare.
23127
23128 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23129 (mark_terminals, mark_ttys): Declare.
23130 (Fgarbage_collect): Call them.
23131 (mark_object): Mark buried_buffer_list.
23132
23133 * prefix-args.c: Include stdlib.h for exit.
23134
23135 * syssignal.h: Add comment.
23136
23137 * indent.c: Include stdio.h.
23138
23139 * window.h (Vinitial_window_system): Declare.
23140 (Vwindow_system): Delete declaration.
23141
23142 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23143
23144 * image.c (lookup_image): Don't initialize `c' until the xasserts
23145 have been run.
23146
23147 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23148 FRAME_FOREGROUND_PIXEL.
23149
23150 * print.c (print_preprocess): Don't lose print_depth levels while
23151 iterating.
23152
23153 * widget.c (update_from_various_frame_slots):
23154 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23155
23156 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23157 frames.
23158 (window_internal_height): Remove bogus make_number call.
23159 (init_window_once): Call make_terminal_frame with two zero parameters.
23160
23161 * fileio.c (Fread_file_name): Update comment.
23162
23163 * callint.c (Fcall_interactively):
23164 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23165 Make sure it is correctly unwound.
23166
23167 * xsmfns.c (x_session_close): New function.
23168
23169 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23170 Delete declarations.
23171
23172 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23173 (x_output): Remove background_pixel and foreground_pixel fields.
23174 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23175 (x_delete_device, x_session_close): Declare.
23176
23177 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23178 (read_filtered_event): Call `read_char' with a local
23179 `wrong_kboard_jmpbuf'.
23180
23181 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23182 Don't call single_kboard_state. Use FRAME_RIF.
23183
23184 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23185 systems.
23186
23187 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23188 (Fframe_with_environment, Fset_input_meta_mode)
23189 (Fset_quit_char): EXFUN.
23190 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23191 (init_sys_modes, reset_sys_modes): Update prototypes.
23192 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23193
23194 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23195 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23196 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23197 Delete declarations.
23198 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23199 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23200 New declarations.
23201
23202 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23203 already does that during init_display(). Call syms_of_keymap
23204 before syms_of_keyboard. Call `syms_of_terminal'.
23205 Call set_initial_environment, not set_process_environment.
23206 (shut_down_emacs): Call reset_all_sys_modes() instead of
23207 reset_sys_modes().
23208
23209 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23210 (internal_resolve_face_name, resolve_face_name_error): New functions.
23211 (resolve_face_name): Protect against loops and errors thrown by Fget.
23212 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23213 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23214
23215 * scroll.c: Replace CURTTY() with local variables throughout the
23216 file (where applicable).
23217 (calculate_scrolling, calculate_direct_scrolling)
23218 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23219 characteristics.
23220
23221 * keymap.c (Vfunction_key_map): Remove.
23222 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23223 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23224 (Vkey_translation_map): Remove.
23225 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23226 (Fdescribe_buffer_bindings)
23227 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23228 Update for terminal-local key-translation-map.
23229
23230 * Makefile.in (callproc.o): Update dependencies.
23231 (lisp, shortlisp): Add termdev.elc.
23232 (obj): Add terminal.o.
23233 (terminal.o): Add dependencies.
23234 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23235 (data.o, fns.o): Add termhooks.h dependency.
23236 (SOME_MACHINE_LISP): Add dnd.elc.
23237 (minibuf.o): Fix typo.
23238 Update dependencies.
23239
23240 * data.c (do_symval_forwarding, store_symval_forwarding)
23241 (find_symbol_value): Use the selected frame's keyboard, not
23242 current_kboard.
23243
23244 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23245 Vwindow_system.
23246
23247 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23248 Fmenu_bar_open.
23249 (syms_of_xmenu): Update defsubr.
23250 (mouse_position_for_popup, Fx_popup_menu)
23251 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23252 (set_frame_menubar, free_frame_menubar)
b97439ce 23253 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23254 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23255 an X frame.
23256
23257 * xselect.c (x_own_selection): Abort if not an X frame.
23258 (some_frame_on_display): Check if it is an X frame.
23259 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23260
23261 * coding.c: Include frame.h and termhooks.h.
23262 (terminal_coding, keyboard_coding): Delete.
23263 (Fset_terminal_coding_system_internal)
23264 (Fset_keyboard_coding_system_internal)
23265 (Fkeyboard_coding_system)
23266 (Fterminal_coding_system): Add a terminal parameter.
23267 Get terminal_coding from the terminal.
23268 (init_coding_once): Don't call setup_coding_system here.
23269
23270 * dispextern.h (set_scroll_region, turn_off_insert)
23271 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23272 (tty_clear_end_of_line, tty_setup_colors)
23273 (delete_tty, updating_frame)
23274 (produce_special_glyphs, produce_glyphs, write_glyphs)
23275 (insert_glyphs): Remove.
23276 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23277 (tty_turn_off_highlight, get_tty_size): Add declaration.
23278 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23279
23280 * frame.h (enum output_method): Add output_initial.
23281 (struct x_output): Delete.
23282 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23283 Access foreground_pixel and background_pixel directly from the frame.
23284 (tty_display): Delete.
23285 (struct frame): Add buried_buffer_list, foreground_pixel,
23286 background_pixel and terminal. Delete kboard.
23287 (union output_data): Add tty.
23288 (FRAME_KBOARD): Get the kboard from the terminal.
23289 (FRAME_INITIAL_P): New macro.
23290 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23291 (Qterm_environment_variable, Qdisplay_environment_variable)
23292 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23293 New declarations.
23294
23295 * termchar.h (tty_output, tty_display_info): New structures.
23296 (tty_list): Declare.
23297 (FRAME_TTY, CURTTY): New macros.
23298 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23299 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23300 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23301 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23302
23303 * callproc.c: Include frame.h and termhooks.h, for terminal
23304 parameters.
23305 (add_env): New function.
23306 (child_setup): Use it.
23307 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23308 (getenv_internal): Fix get_terminal_param call.
23309 (Fgetenv_internal, egetenv): Update doc.
23310 (syms_of_callproc): Initialize Vprocess_environment to nil.
23311 Register and initialize them. Remove obsolete defvars. Update doc
23312 strings.
23313 (child_setup): Handle Vlocal_environment_variables.
23314 (getenv_internal): Add terminal parameter.
23315 Handle Vlocal_environment_variables.
23316 (Fgetenv_internal): Add terminal parameter.
23317 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23318 environment in a frame (not terminal) parameter. Update doc strings.
23319 (set_initial_environment): Rename from set_global_environment.
23320 Store Emacs environment in initial frame parameter.
23321
23322 * xdisp.c (redisplay_internal): Update references to
23323 `previous_terminal_frame'.
23324 (display_mode_line, Fformat_mode_line): Replace calls to
23325 `push_frame_kboard' with `push_kboard'.
23326 (get_glyph_string_clip_rects): Add extra parentheses and
23327 braces to prevent compiler warnings.
23328 (calc_pixel_width_or_height): Add xassert to check that the
23329 frame is alive. Don't call `lookup_image' on a termcap frame.
23330 (message2_nolog, message3_nolog, redisplay_internal)
23331 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23332 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23333 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23334 (Fx_display_pixel_width, Fx_display_pixel_height)
23335 (Fx_display_planes, Fx_display_color_cells)
23336 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23337 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23338 (Fx_display_backing_store, Fx_display_visual_class)
23339 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23340 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23341
23342 * xfns.c (x_set_foreground_color x_set_background_color)
23343 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23344 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23345 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23346 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23347 terminal that is being deleted.
23348 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23349 frame parameter, and make sure it overrides any user-supplied setting.
23350 (Fx_close_connection, Fx_synchronize): Unify argument names with
23351 the rest of the DEFUNs.
23352
23353 * dispnew.c (Fsend_string_to_terminal): Update call to
23354 `get_tty_terminal'.
23355 (Fredraw_frame, Fsend_string_to_terminal)
23356 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23357 FRAME_TERMCAP_P and FRAME_TTY.
23358 (window_change_signal): Don't believe width/height values that are
23359 impossibly small.
23360 (Vinitial_window_system): Rename from Vwindow_system.
23361 (termscript, Wcm, rif): Delete.
23362
23363 * termhooks.h (struct terminal): New struct containing the
23364 previously global text display hooks and new members NAME,
23365 DELETED and PARAM_ALIST.
23366 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23367 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23368 (FRAME_RIF): New macros.
23369 (get_terminal_param, get_device): New declarations.
23370 (termscript): Delete declaration.
23371
23372 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23373 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23374 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23375 FRAME_FOREGROUND_PIXEL.
23376 (x_fully_uncatch_errors): Disable definition.
23377 (x_scroll_bar_expose): Fix reference to foreground pixel.
23378 (XTread_socket): Disable loop on all X displays.
23379 (x_delete_terminal): Don't set terminal->deleted and let
23380 delete_terminal delete the frames on the terminal.
23381 (x_delete_display): Doc update to reflect changes in
23382 delete_terminal.
23383 (x_display_info) <terminal>: Move member earlier in the struct.
23384 (deleting_tty): Remove old variable.
23385 (Fsuspend_tty): Call clear_tty_hooks.
23386 (Fresume_tty, init_tty): Call set_tty_hooks.
23387 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23388 errors on X frames.
23389 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23390 (handle_one_xevent): Initialize `f' to NULL.
23391 (x_delete_terminal, x_create_terminal): New functions.
23392 (XTset_terminal_modes, XTreset_terminal_modes)
23393 (XTread_socket, x_connection_closed, x_term_init)
23394 (x_term_init, x_delete_display): Add terminal parameter.
23395 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23396 X connections.
23397
23398 * frame.c: Include termchar.h.
23399 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23400 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23401 (Qdisplay_environment_variable): New vars.
23402 (Fframep): Deal with output_initial.
23403 (Fframe-live-p): Doc fix.
23404 (Fwindow-system): New function.
23405 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23406 (make_terminal_frame): Don't create frames on a terminal that is
23407 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23408 (store_frame_param): Check for found_for_frame before calling XFRAME.
23409 (Fmake_terminal_frame): Handle NULL tty names correctly.
23410 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23411 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23412 frames to refer to a deleted frame in their 'environment parameter.
23413 (Fframe_with_environment): New function.
23414 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23415 (get_future_frame_param): New function.
23416 (Fmake_terminal_frame): Use it.
23417 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23418
23419 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23420 * sysdep.c (reset_sys_modes): Update for renames.
23421
23422 * keyboard.c (tty_read_avail_input): New function.
23423 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23424 (syms_of_keyboard): Defsubr them.
23425 (Fset_input_meta_mode, Fset_quit_char): New functions.
23426 (Fset_input_mode): Split to above functions.
23427 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23428 parameter. Use it in call to `read_char'.
23429 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23430 Set wrong_kboard_jmpbuf correctly in recursive calls.
23431 Use current_kboard to access Vkeyboard_translate_table.
23432 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23433 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23434 Update longjmp invocations. Remember the original current_kboard,
23435 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23436 changes it. Comment out unnecessary calls to
23437 `record_single_kboard_state' and `any_kboard_state'.
23438 Update recursive calls.
23439 (wrong_kboard_jmpbuf): Remove global variable.
23440 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23441 Handle deleted interrupted_kboards correctly; that is a legal
23442 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23443 and read_char calls. Abort if interrupted_kboard died in read_char.
23444 (any_kboard_state, single_kboard_state)
23445 (push_frame_kboard): Remove function.
23446 (pop_kboard): Switch out of single_kboard mode if the kboard has
23447 been deleted. Remove unused variable. Help debugging by not
23448 changing current_kboard unnecessarily. Set current_kboard to the
23449 kboard of the selected frame when the stored kboard object has
23450 been deleted before pop_kboard.
23451 (temporarily_switch_to_single_kboard): Change first parameter to a
23452 frame pointer. Throw an error when caller wants to change kboards
23453 while in single_kboard mode. Don't push_kboard if we weren't in
23454 single kboard state. Don't pop_kboard if we popped into any
23455 kboard state.
23456 (restore_kboard_configuration): Abort if pop_kboard changed the
23457 kboard in single_kboard mode. Call pop_kboard only after setting
23458 up single_kboard mode.
23459 (Frecursive_edit): Switch to single_kboard mode only in nested
23460 command loops.
23461 (cmd_error, command_loop, command_loop_1, timer_check):
23462 Comment out unnecessary call to `any_kboard_state' and
23463 `record_single_kboard_state'.
23464 (delete_kboard): Exit single_kboard mode if we have just deleted
23465 that kboard. Use FRAME_KBOARD.
23466 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23467 `fatal_error_signal'.
23468 (record_single_kboard_state): Don't push_kboard if we weren't in
23469 single kboard state. Don't pop_kboard if we popped into any
23470 kboard state.
23471 (push_frame_kboard): Rename to push_kboard.
23472 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23473 (read_avail_input): Read input from all terminals.
23474 (mark_kboards): Also mark Vkeyboard_translate_table.
23475 (kbd_buffer_store_event_hold): Simplify condition.
23476 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23477 (Vkeyboard_translate_table): Move to struct kboard.
23478 (init_kboard): Initialize Vkeyboard_translate_table.
23479 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23480 Vkeyboard_translate_table. Update doc strings. Update docs of
23481 local-function-key-map and function-key-map.
23482
23483 * terminal.c: New file.
23484
23485 * term.c: Include errno.h.
23486 (Vring_bell_function, device_list, initial_device)
23487 (next_device_id, ring_bell, update_begin, update_end)
23488 (set_terminal_window, cursor_to, raw_cursor_to)
23489 (clear_to_end, clear_frame, clear_end_of_line)
23490 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23491 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23492 (syms_of_term): Move their initialization to terminal.c.
23493 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23494 (Ftty_display_color_cells)
23495 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23496 (clear_tty_hooks, set_tty_hooks)
23497 (init_tty, maybe_fatal): New functions.
23498 (Ftty_type): Return nil if terminal is not on a tty instead of
23499 throwing an error. Doc update.
23500 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23501 Doc update. Initialize new subrs and variables.
23502 (delete_tty): Use terminal->deleted.
23503 (tty_set_terminal_modes): Rename from set_terminal_modes.
23504 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23505 (set_scroll_region): Rename to `tty_set_scroll_region'.
23506 (turn_on_insert): Rename to `tty_turn_on_insert'.
23507 (turn_off_insert): Rename to `tty_turn_off_insert'.
23508 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23509 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23510 (toggle_highligh): Rename to `tty_toggle_highlight'.
23511 (background_highlight): Rename to `tty_background_highlight'.
23512 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23513 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23514 (tty_set_scroll_region, tty_background_highlight)
23515 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23516 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23517 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23518 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23519 Add static modifier.
23520 (tty_reset_terminal_modes, tty_set_terminal_window)
23521 (tty_set_scroll_region, tty_background_highlight)
23522 (tty_highlight_if_desired, tty_cursor_to)
23523 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23524 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23525 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23526 renames.
23527
235282007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23529
23530 * keyboard.c: Qrtl is new.
23531 (parse_tool_bar_item): Handle :rtl keyword.
23532 (syms_of_keyboard): Intern :rtl keyword.
23533
23534 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23535
23536 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23537 so no Lisp code is executed.
23538 (file_for_image, find_rtl_image): New functions.
23539 (xg_get_image_for_pixmap): Use file_for_image.
23540 (update_frame_tool_bar): If direction is RTL, use RTL image if
23541 defined. Use Gtk stock images if defined.
23542
235432007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23544
23545 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23546 for nonexistent or zero-width glyph in composition glyph.
23547
235482007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23549
23550 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23551
23552 * xdisp.c (Finvisible_p): New function.
23553 (syms_of_xdisp): defsubr it.
23554
235552007-08-24 Juanma Barranquero <lekktu@gmail.com>
23556
23557 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23558 Doc fixes.
23559
235602007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23561
23562 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23563
235642007-08-24 Martin Rudalics <rudalics@gmx.at>
23565
23566 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23567 whether decoding has modified buffer contents.
23568
235692007-08-24 Jason Rumney <jasonr@gnu.org>
23570
23571 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23572 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23573 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23574 (init_svg_functions) [HAVE_NTGUI]: New function.
23575 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23576 (svg_load_image): Use them.
23577 (svg_load_image) [HAVE_NTGUI]: Implement background.
23578
235792007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23580
23581 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23582 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23583 (LIBX): Remove @RSVG_LIBS@.
23584 (LIBES): Add $(RSVG_LIBS).
23585
23586 * image.c (svg_load_image): Blend with specified background if exists.
23587 Use IMAGE_BACKGROUND. Add Mac OS Support.
23588
23589 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23590 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23591 Remove macros.
23592 [MAC_OSX] (socket_callback): Do nothing.
23593 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23594 ReceiveNextEvent.
23595 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23596 socket_callback.
23597 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23598
235992007-08-22 Glenn Morris <rgm@gnu.org>
23600
23601 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23602
236032007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23604
23605 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23606
23607 * image.c: Add support for SVG images. Some additional comments
23608 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23609 (svg_image_p): New function to test for SVG image.
23610 (svg_load): New function to load SVG image.
23611 (svg_load_image): New function, helper for svg_load.
23612 (Qsvg): New Lisp_object.
23613 (svg_keyword_index): New enum.
23614 (svg_format): New static `image_keyword' struct.
23615 (svg_type): New static `image_type' struct.
23616 (librsvg/rsvg.h): Include it.
23617
236182007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23619
23620 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23621
236222007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23623
23624 * lread.c (Qold_style_backquotes): New var.
23625 (syms_of_lread): Init and staticpro it.
23626 (load_warn_old_style_backquotes): New fun.
23627 (Fload): Use them to warn about old style backquotes.
23628 (end_of_file_error, Fload): Remove unused vars.
23629
23630 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23631
23632 * lread.c (Vold_style_backquotes): New var.
23633 (syms_of_lread): Init and export it to Elisp.
23634 (read1): Set it when we find an old-style (back)quote.
23635
236362007-08-22 Jason Rumney <jasonr@gnu.org>
23637
23638 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23639
236402007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23641
23642 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23643
236442007-08-19 Richard Stallman <rms@gnu.org>
23645
23646 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23647
236482007-08-19 Andreas Schwab <schwab@suse.de>
23649
23650 * alloc.c (pure): Round PURESIZE up.
23651
236522007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23653
23654 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23655 active frame.
23656
236572007-08-16 Richard Stallman <rms@gnu.org>
23658
23659 * eval.c (Fcommandp): Add parens to clarify.
23660
23661 * minibuf.c (Fall_completions): Use enum for type of table.
23662
23663 * emacs.c (USAGE2): Improve text.
23664
236652007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23666
23667 * term.c (tty_default_color_capabilities): Declare static
23668 variables in file scope, to avoid HPUX compiler problem.
23669
236702007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23671
23672 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23673 to gtk_toolbar_insert.
23674
236752007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23676
23677 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23678
23679 * insdel.c (reset_var_on_error): New fun.
23680 (signal_before_change, signal_after_change):
23681 Use it to reset (after|before)-change-functions to nil in case of error.
23682 Bind inhibit-modification-hooks to t.
23683 Don't bind (after|before)-change-functions to nil while they run.
23684
236852007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23686
23687 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23688 filling pixmap with stippled background.
23689
236902007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23691
23692 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23693 Don't use invisible frame as parent window for repositioning.
23694
236952007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23696
23697 * print.c (new_backquote_output): Rename from old_backquote_output.
23698 (print): Inverse its logic (according to its name) so as to match the
23699 behavior of new_backquote_flag in lread.c.
23700
237012007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23702
23703 * gmalloc.c (posix_memalign): New function.
23704
23705 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23706 ActivateControl/DeactivateControl here.
23707 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23708 frame-notice-user-settings is non-nil.
23709 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23710 for kEventParamFMFontStyle.
23711 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23712 mac_pass_command_to_system and mac_pass_control_to_system here.
23713 (XTread_socket): Call ActivateControl/DeactivateControl here.
23714 (XTread_socket) [TARGET_API_MAC_CARBON]:
23715 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23716 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23717 for window repositioning.
23718
237192007-08-08 Glenn Morris <rgm@gnu.org>
23720
23721 * Replace `iff' in doc-strings and comments.
23722
237232007-08-07 Chong Yidong <cyd@stupidchicken.com>
23724
23725 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23726
237272007-08-07 Martin Rudalics <rudalics@gmx.at>
23728
23729 * fileio.c (Finsert_file_contents): Run format-decode and
23730 after_insert_file_functions on entire buffer when REPLACE is
23731 non-nil and inhibit modification_hooks and point_motion_hooks.
23732 For consistency, run after_insert_file_functions iff something
23733 got inserted. Move signal_after_change and update_compositions
23734 after code running after_insert_file_functions. Make sure that
23735 undo_list doesn't record intermediate steps of the decoding process.
23736
237372007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23738
23739 * emacs.c (main)
23740 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23741 Call malloc_enable_thread on interactive startup.
23742
23743 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23744 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23745 [USE_PTHREAD]: Conditionalize with it.
23746 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23747 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23748 New functions.
23749
237502007-08-06 Chong Yidong <cyd@stupidchicken.com>
23751
23752 * xdisp.c (redisplay_window): When restoring original buffer
23753 position, make sure it is still valid.
23754
23755 * image.c (png_load): Ignore png-supplied background color.
23756
237572007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23758
23759 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23760 Use kCFAbsoluteTimeIntervalSince1970.
23761
23762 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23763 New variable.
23764 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23765 event loop should be quit.
23766 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23767 Quit dialog event loop if quit_dialog_event_loop is set.
23768
23769 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23770 (Selection): New typedef. Use instead of ScrapRef.
23771 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23772 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23773 (mac_clear_selection): Rename from clear_scrap.
23774 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23775 scrap_has_target_type. All uses changed.
23776 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23777 (mac_selection_has_target_p): New functions.
23778 (mac_put_selection_value): Rename from put_scrap_string.
23779 (mac_get_selection_value): Rename from get_scrap_string.
23780 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23781 (put_scrap_private_timestamp, scrap_has_target_type)
23782 (get_scrap_private_timestamp): Remove functions.
23783 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23784 (x_own_selection, x_get_local_selection):
23785 Use mac_valid_selection_value_p.
23786 (x_own_selection): Don't use put_scrap_private_timestamp.
23787 Record OWNERSHIP-INFO into Vselection_alist instead.
23788 (x_get_local_selection): Don't check type if request is local.
23789 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23790 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23791
237922007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23793
23794 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23795 add comment explaining why.
23796
237972007-08-03 Richard Stallman <rms@gnu.org>
23798
23799 * fileio.c (Fvisited_file_modtime): Use make_time.
23800
238012007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23802
23803 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23804 build.
23805
238062007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23807
23808 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23809
238102007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23811
23812 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23813
238142007-07-30 Richard Stallman <rms@gnu.org>
23815
23816 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23817
238182007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23819
23820 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23821
238222007-07-28 Nick Roberts <nickrob@snap.net.nz>
23823
23824 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23825 remote default-directory.
23826
23827 * buffer.c (mode-line-format): Update doc string.
23828
238292007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23830
23831 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23832 scroll bar gap.
23833 (x_scroll_bar_create): Set bar->fringe_extended_p.
23834 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23835 on frame edge. Check fringe background extension. Don't clear
23836 extended fringe background area.
23837
23838 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23839 (w32_fill_area): Enclose multiple statements with do ... while (0).
23840
23841 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23842 Extend fringe background to scroll bar gap.
23843 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23844 Set bar->fringe_extended_p.
23845 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23846 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23847 background extension. Don't clear extended fringe background area.
23848
23849 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23850 New member fringe_extended_p.
23851
238522007-07-25 Glenn Morris <rgm@gnu.org>
23853
23854 * Relicense all FSF files to GPLv3 or later.
23855
23856 * COPYING: Switch to GPLv3.
23857
238582007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23859
23860 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23861
23862 * data.c (Finteractive_form): Check for the presence of an
23863 `interactive-form' symbol property more thoroughly.
23864
23865 * data.c (Finteractive_form): Use an `interactive-form' property if
23866 present, analogous to the function-documentation property.
23867
238682007-07-24 Jason Rumney <jasonr@gnu.org>
23869
23870 * w32fns.c (x_real_positions): Get real position from OS instead of
23871 calculating it.
23872
238732007-07-23 Jason Rumney <jasonr@gnu.org>
23874
23875 * filelock.c (current_lock_owner): Allow for @ sign in username.
23876
238772007-07-22 Nick Roberts <nickrob@snap.net.nz>
23878
23879 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23880 remote default-directory.
23881
23882 * buffer.c (mode-line-format): Describe above case in doc string.
23883
238842007-07-20 Eli Zaretskii <eliz@gnu.org>
23885
23886 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23887 Define if not defined.
23888
238892007-07-18 Jason Rumney <jasonr@gnu.org>
23890
23891 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23892
238932007-07-18 Richard Stallman <rms@gnu.org>
23894
23895 * data.c (Fsetq_default): Doc fix.
23896
23897 * eval.c (Fsetq): Doc fix.
23898
238992007-07-18 Juanma Barranquero <lekktu@gmail.com>
23900
23901 * coding.c (Ffind_operation_coding_system):
23902 * eval.c (For, Fand): Doc fixes.
23903 Reported by Johan Bockgård.
23904
239052007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23906
23907 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23908
23909 * xterm.h: Declare x_ewmh_activate_frame.
23910
23911 * xterm.c (x_ewmh_activate_frame): New function.
23912 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23913
239142007-07-17 Martin Rudalics <rudalics@gmx.at>
23915
23916 * window.c (Fdisplay_buffer): If largest or LRU window is the
23917 only window, split it even if it is not eligible for splitting.
23918 This restores the original behavior broken by the 2007-07-15
23919 change.
23920
239212007-07-17 Glenn Morris <rgm@gnu.org>
23922
23923 * abbrev.c (abbrev_check_chars): New function.
23924 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23925 Call abbrev_check_chars to check abbrev characters are word
23926 constituents. Doc fix.
23927
239282007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23929
23930 * process.c (Fstart_process, Fmake_network_process)
23931 (read_process_output): Fix up last changes.
23932
239332007-07-16 Eli Zaretskii <eliz@gnu.org>
23934
23935 * makefile.w32-in (clean): Don't delete *~.
23936
239372007-07-16 Andreas Schwab <schwab@suse.de>
23938
23939 * window.c (Fdisplay_buffer): Use NILP.
23940 (Fset_window_scroll_bars): Likewise.
23941
239422007-07-15 Martin Rudalics <rudalics@gmx.at>
23943
23944 * window.c (window_min_size_2): New function.
23945 (window_min_size_1, size_window, Fdisplay_buffer)
23946 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23947 windows without mode- or header-lines when window-min-height is
23948 too small.
23949 (size_window): Reset nodelete_p after testing it, following an
23950 earlier note by Kim F. Storm.
23951 (display_buffer): Do not set split_height_threshold to twice the
23952 value of window_min_height to avoid changing the value of a
23953 customizable variable. Rather explicitly check whether the
23954 height of the window that shall be splitted is at least as large
23955 as split_height_threshold.
23956 (Fwindow_full_width_p): New defun.
23957 (syms_of_window): Defsubr it.
23958
23959 * window.h: Add EXFUN for Fwindow_full_width_p.
23960
239612007-07-14 Jason Rumney <jasonr@gnu.org>
23962
23963 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23964
239652007-07-14 Richard Stallman <rms@gnu.org>
23966
23967 * eval.c (maybe_call_debugger): New function.
23968 (find_handler_clause): Use maybe_call_debugger.
23969 Call it when the handler says `debug'.
23970 Eliminate DEBUGGER_VALUE_PTR.
23971 (Fsignal): Eliminate debugger_value.
23972 (Qdebug): New variable.
23973 (syms_of_eval): Initialize it.
23974
239752007-07-14 Juanma Barranquero <lekktu@gmail.com>
23976
23977 * eval.c (Fprogn):
23978 * keyboard.c (Ftrack_mouse):
23979 * print.c (Fwith_output_to_temp_buffer):
23980 * window.c (Fsave_window_excursion): Doc fix.
23981
239822007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23983
23984 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23985
239862007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23987
23988 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23989 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23990 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23991 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23992 Remove unused encoding_carryover.
23993 * process.c: Adjust all functions accordingly.
23994
239952007-07-12 Richard Stallman <rms@gnu.org>
23996
23997 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23998
239992007-07-11 Jason Rumney <jasonr@gnu.org>
24000
24001 * makefile.w32-in (LIBS): Include OLE32.
24002
24003 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24004 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24005
240062007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24007
24008 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24009 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24010 from a Lisp_Object into a bare pointer.
24011 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24012 Adjust the code correspondingly.
24013
24014 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24015
24016 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24017 (term_show_mouse_face): Remove unused var `j'.
24018 (handle_one_term_event): Remove unused vars `i' and `j'.
24019 Don't cast return value of ttyname since it's not necessary.
24020
240212007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24022
24023 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24024 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24025
24026 * fns.c (map_char_table): Use an array of int for `indices' rather than
24027 an array of Lisp_Objects (which are only ever integers anyway).
24028 (Fmap_char_table): Update caller.
24029 * lisp.h: Update prototype.
24030 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24031 * fontset.c (Ffontset_info):
24032 * casetab.c (set_case_table): Update callers.
24033
24034 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24035
24036 * keymap.c (struct accessible_keymaps_data)
24037 (struct where_is_internal_data): New structures.
24038 (accessible_keymaps_1, where_is_internal_1): Use them to change
24039 interface to adhere to the one used by map_keymap.
24040 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24041 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24042
24043 * keymap.h (map_keymap_function_t): More informative prototype.
24044
240452007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24046
24047 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24048 (looking_at_1): Don't change search_regs and last_thing_searched
24049 if `inhibit-changing-match-data' is non-nil.
24050 (string_match_1, search_buffer, set_search_regs): Likewise.
24051 (syms_of_search): Add Lisp level definition for
24052 `inhibit-changing-match-data' and set it to nil.
24053 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24054 start and end of the match, instead of using values in search_regs.
24055
240562007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24057
24058 * minibuf.c (Fcompleting_read): New value `confirm-only'
24059 for `require-match'.
24060
240612007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24062
24063 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24064 part of the 2007-06-27 change to syms_of_fileio.
24065
240662007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24067
24068 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24069 Check WINDOWP before using XWINDOW. Consolidate return statements.
24070
240712007-06-27 Richard Stallman <rms@gnu.org>
24072
24073 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24074
240752007-06-27 Juanma Barranquero <lekktu@gmail.com>
24076
24077 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24078
240792007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24080
24081 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24082 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24083 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24084 (_free_internal, memalign): Use them.
24085 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24086 Initialize to PTHREAD_MUTEX_INITIALIZER.
24087 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24088 (morecore_nolock): Rename from morecore. All uses changed.
24089 Use only nolock versions of internal allocation functions.
24090 (_malloc_internal_nolock, _realloc_internal_nolock)
24091 (_free_internal_nolock): New functions created from
24092 _malloc_internal, _realloc_internal, and _free_internal.
24093 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24094 Copy hook value to automatic variable before its use.
24095 (memalign): Copy hook value to automatic variable before its use.
24096
240972007-06-26 Kenichi Handa <handa@m17n.org>
24098
24099 * coding.c (Ffind_operation_coding_system): Docstring improved.
24100 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24101
241022007-06-25 David Kastrup <dak@gnu.org>
24103
24104 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24105 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24106 cater for additional parameter.
24107
24108 * keymap.h: Adjust number of parameters to `current-active-maps'.
24109
24110 * doc.c (Fsubstitute_command_keys): Adjust call of
24111 `current-active-maps'.
24112
241132007-06-25 David Kastrup <dak@gnu.org>
24114
24115 * callint.c (Fcall_interactively): Make the parsing of interactive
24116 specs somewhat more readable.
24117
241182007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24119
24120 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24121 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24122 if extended background has already been filled.
24123
241242007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24125
24126 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24127 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24128
24129 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24130 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24131 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24132 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24133 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24134 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24135 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24136 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24137 Run timers during dialog popup.
24138 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24139
241402007-06-21 Jason Rumney <jasonr@gnu.org>
24141
24142 * image.c (convert_mono_to_color_image): Swap fore and background.
24143
241442007-06-20 Jason Rumney <jasonr@gnu.org>
24145
24146 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24147 (w32_free_bdf_font): Unmap memory not handle.
24148
241492007-06-20 Sam Steingold <sds@gnu.org>
24150
24151 * gmalloc.c (__morecore): Fix the declaration to comply with the
24152 definition.
24153
241542007-06-20 Juanma Barranquero <lekktu@gmail.com>
24155
24156 * w32term.c (w32_delete_display): Remove leftover declaration.
24157 (w32_define_cursor, w32_initialize): Make static.
24158
24159 * w32.c (_wsa_errlist): Fix typo in error message.
24160 (init_environment): Ignore any environment variable from the
24161 registry having a null value.
24162
241632007-06-20 Glenn Morris <rgm@gnu.org>
24164
24165 * Makefile.in (LIBGIF): Default to -lgif.
24166
241672007-06-17 Jason Rumney <jasonr@gnu.org>
24168
24169 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24170 unicode strings.
24171
241722007-06-16 Juanma Barranquero <lekktu@gmail.com>
24173
24174 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24175 Fix typo in docstring.
24176
241772007-06-16 Eli Zaretskii <eliz@gnu.org>
24178
24179 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24180 and their keybindings.
24181
241822007-06-15 Chong Yidong <cyd@stupidchicken.com>
24183
24184 * composite.c (update_compositions): Fix last fix.
24185
241862007-06-14 Jason Rumney <jasonr@gnu.org>
24187
24188 * w32.c (get_process_times_fn): New function pointer.
24189 (globals_of_w32): Intialize it if present in kernel32.dll.
24190 (w32_get_internal_run_time): New function.
24191
24192 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24193
241942007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24195
24196 * composite.c (update_compositions): Check the validness of
24197 compositions.
24198
241992007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24200
24201 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24202 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24203
24204 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24205 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24206
24207 * macgui.h (USE_MAC_TOOLBAR): New define.
24208
24209 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24210 Return immediately unless popup is activated.
24211
24212 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24213 background to scroll bar gap.
24214 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24215 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24216 scroll bars on frame edge. Check fringe background extension.
24217 Don't clear extended fringe background area.
24218 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24219 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24220 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24221 [USE_MAC_TOOLBAR]: New macros.
24222 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24223 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24224 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24225 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24226 [USE_MAC_TOOLBAR]: New functions.
24227 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24228 manually if previous repositioning has failed.
24229 (mac_handle_keyboard_event): Use precomputed event kind.
24230 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24231 as tool bar item click. Handle mouse movement over tool bar items.
24232
24233 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24234 toolbar_win_gravity.
24235 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24236 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24237 Add externs.
24238
24239 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24240 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24241
242422007-06-14 Chong Yidong <cyd@stupidchicken.com>
24243
24244 * image.c (search_image_cache): Remove unused variable.
24245
242462007-06-13 Chong Yidong <cyd@stupidchicken.com>
24247
24248 * xfns.c, xmenu.c: Link to xaw3d if available.
24249
242502007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24251
24252 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24253 frame_foreground and frame_background.
24254
24255 * image.c (lookup_image): Save frame foreground and background colors.
24256 (search_image_cache): Check if saved and current frame colors match.
24257
242582007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24259
24260 * regex.c (regex_compile): Remove the `regnum' counter.
24261 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24262
242632007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24264
24265 * term.c: Include intervals.h to declare Fget_text_property.
24266
242672007-06-10 Jason Rumney <jasonr@gnu.org>
24268
24269 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24270
242712007-06-08 Juanma Barranquero <lekktu@gmail.com>
24272
24273 * callint.c (Fcall_interactively):
24274 * editfns.c (Fdelete_and_extract_region):
24275 * fileio.c (Fread_file_name):
24276 * fns.c (Fmapconcat):
24277 * keyboard.c (cmd_error_internal):
24278 * keymap.c (Fkey_description):
24279 * lread.c (openp):
24280 * minibuf.c (read_minibuf):
24281 * search.c (wordify):
24282 * sunfns.c (sel_read):
24283 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24284 * xfns.c (x_default_scroll_bar_color_parameter):
24285 * xmenu.c (menu_help_callback):
24286 * xselect.c (Fx_get_atom_name):
24287 * xterm.c (x_term_init): Use empty_unibyte_string.
24288
242892007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24290
24291 * alloc.c (init_strings): Initialize canonical empty strings.
24292 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24293 canonical empty string when the requested size is 0.
24294
24295 * emacs.c (empty_unibyte_string): Rename from empty_string.
24296 (empty_multibyte_string): New canonical empty string.
24297 (syms_of_emacs): Don't initialize empty_string.
24298
24299 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24300 string, if appropriate.
24301 (empty_unibyte_string, empty_multibyte_string): New externs.
24302 (empty_string): Remove extern.
24303
24304 * lread.c (syms_of_lread): Use empty_unibyte_string.
24305
243062007-06-07 Jason Rumney <jasonr@gnu.org>
24307
24308 * s/ms-w32.h: Don't define HAVE_TZNAME.
24309
24310 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24311
243122007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24313
24314 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24315
24316 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24317 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24318
24319 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24320 Don't call next handler.
24321 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24322 Remove argument. Install handler to application.
24323 (set_frame_menubar): Don't change deep_p.
24324 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24325 FRAME_OUTER_TO_INNER_DIFF_Y.
24326 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24327 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24328 [HAVE_DIALOGS]: New macros.
24329 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24330 Use them.
24331 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24332
24333 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24334 init_service_handler. All callers changed. Return OSStatus value.
24335
24336 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24337 All callers changed so as not to call SetPortWindowPort.
24338 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24339 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24340 mac_draw_string_common.
24341 (mac_draw_image_string_qd): Likewise.
24342 (mac_draw_string_common): Use them. Add INLINE.
24343 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24344 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24345 GetGlobalMouse.
24346 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24347 and FRAME_OUTER_TO_INNER_DIFF_Y.
24348 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24349 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24350 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24351 repositioning window to mac_handle_window_event.
24352 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24353 saving window location to mac_handle_window_event
24354 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24355 (install_menu_target_item_handler): Remove argument in extern.
24356 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24357 Also accept command events.
24358 (do_keystroke): New function created from XTread_socket.
24359 (init_command_handler): Remove functions.
24360 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24361 and save window location by kEventWindowShowing and kEventWindowHiding
24362 handlers here. Don't call next handler for window state change and
24363 focus events.
24364 (mac_handle_application_event, mac_handle_keyboard_event)
24365 [TARGET_API_MAC_CARBON]: New functions.
24366 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24367 kEventWindowShowing and kEventWindowHiding events. Move installation
24368 of mouse, font, text input and menu target item handlers to
24369 install_application_handler.
24370 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24371 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24372 New function.
24373 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24374 Register it.
24375 (XTread_socket) [TARGET_API_MAC_CARBON]:
24376 Consolidate SendEventToEventTarget calls.
24377 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24378 Move application activation handler to mac_handle_application_event.
24379 Move keyboard handler to mac_handle_keyboard_event.
24380 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24381 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24382 init_command_handler. Call install_application_handler.
24383
24384 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24385 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24386
243872007-06-07 Glenn Morris <rgm@gnu.org>
24388
24389 * emacs.c (main): Use `emacs-copyright' in --version output.
24390
243912007-06-06 Chong Yidong <cyd@stupidchicken.com>
24392
24393 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24394
243952007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24396
24397 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24398
24399 * macgui.h: Replace WindowPtr with WindowRef.
24400
24401 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24402 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24403 Replace ControlHandle with ControlRef.
24404 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24405
24406 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24407 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24408 Replace ControlHandle with ControlRef.
24409 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24410 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24411
24412 * macterm.h (struct scroll_bar): Rename member control_handle_low
24413 and control_handle_high to control_ref_low and control_ref_high.
24414 All uses changed.
24415 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24416 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24417 respectively. All uses changed.
24418 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24419 (install_window_handler, remove_window_handler): Replace WindowPtr
24420 with WindowRef in externs.
24421
244222007-06-05 Juanma Barranquero <lekktu@gmail.com>
24423
24424 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24425
244262007-06-03 Nick Roberts <nickrob@snap.net.nz>
24427
24428 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24429
24430 * frame.c (Fmouse_position, Fmouse_pixel_position):
24431 Condition on HAVE_GPM too.
24432
24433 * term.c (term_mouse_highlight): Remove unused variables.
24434 (Fterm_open_connection): Set gpm_zerobased to 1.
24435 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24436 Use zero based co-ordinates.
24437 (handle_one_term_event): Report a drag as mouse movement too.
24438
24439 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24440
244412007-06-03 Chong Yidong <cyd@stupidchicken.com>
24442
24443 * image.c (search_image_cache): New function. Require background
24444 color match if background color is unspecified in the image spec.
24445 (uncache_image, lookup_image): Use it.
24446
244472007-06-01 Juanma Barranquero <lekktu@gmail.com>
24448
24449 * window.c (Fshrink_window): Reflow docstring.
24450
244512007-06-02 Chong Yidong <cyd@stupidchicken.com>
24452
24453 * Version 22.1 released.
24454
244552007-06-01 Richard Stallman <rms@gnu.org>
24456
24457 * xfns.c (x_encode_text): Add GCPRO.
24458
244592007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24460
24461 * xfns.c (x_set_name_internal): Save encoded name before
24462 x_encode_text in case string data is relocated.
24463
244642007-05-31 Richard Stallman <rms@gnu.org>
24465
24466 * buffer.c (syms_of_buffer): Doc fix.
24467
244682007-05-30 Nick Roberts <nickrob@snap.net.nz>
24469
24470 * sysdep.c (init_sys_modes): Add rather than replace with
24471 O_NONBLOCK.
24472
24473 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24474 term_mouse_moveto.
24475
24476 * termhooks.h (term_mouse_moveto): New extern.
24477
24478 * term.c (mouse_face_window): Rename...
24479 (Qmouse_face_window): ...to this.
24480 (term_show_mouse_face, term_clear_mouse_face)
24481 (term_mouse_highlight): Use Qmouse_face_window.
24482 (term_mouse_moveto): New function.
24483 (term_mouse_position): Make it work.
24484 (syms_of_term): Uncomment assignment to mouse_position_hook.
24485 Staticpro Qmouse_face_window.
24486
244872007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24488
24489 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24490 around current_column call.
24491
244922007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24493
24494 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24495 * xdisp.c (next_element_from_buffer):
24496 * window.c (delete_window):
24497 * term.c (term_mouse_highlight):
24498 * msdos.c (getdefdir):
24499 * macterm.c (mac_create_bitmap_from_bitmap_data)
24500 (init_font_name_table):
24501 * fns.c (Fsxhash):
24502 * data.c (Fmake_local_variable):
24503 * ccl.c (ccl_driver): Likewise.
24504
245052007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24506
24507 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24508 Call mac_wakeup_from_rne on window size change.
24509
245102007-05-25 Chong Yidong <cyd@stupidchicken.com>
24511
24512 * image.c (uncache_image): Fix typo.
24513
245142007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24515
24516 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24517
245182007-05-22 Richard Stallman <rms@gnu.org>
24519
24520 * xterm.c (x_connection_closed): Remove NO_RETURN.
24521
245222007-05-22 Martin Rudalics <rudalics@gmx.at>
24523
24524 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24525
245262007-05-21 Chong Yidong <cyd@stupidchicken.com>
24527
24528 * image.c (uncache_image): New function.
24529 (Fimage_refresh): New function.
24530
245312007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24532
24533 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24534
245352007-05-20 Nick Roberts <nickrob@snap.net.nz>
24536
24537 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24538 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24539
245402007-05-20 Nick Roberts <nickrob@snap.net.nz>
24541
24542 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24543 conditional on [HAVE_GPM_H].
24544
245452007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24546
24547 * syntax.c (skip_chars): Update syntax-table only after we checked that
24548 the new location is valid.
24549
245502007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24551
24552 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24553 mac_get_window_bounds.
24554
245552007-05-20 Nick Roberts <nickrob@snap.net.nz>
24556
24557 * Makefile.in (LIBGPM): Allow it to be set from configure.
24558 If set then link Emacs with it.
24559
24560 * config.in: Regenerate.
24561
24562 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24563 New externs.
24564
24565 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24566 Include gpm.h.
24567 (handle_one_term_event, term_gpm): New externs.
24568
24569 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24570 and allow it to be interrupted by SIGIO.
24571
24572 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24573 (wait_reading_process_output): Wait on gpm_fd too.
24574 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24575 (add_gpm_wait_descriptor_called_flag): New variable.
24576 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24577
24578 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24579 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24580 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24581 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24582 (make_lispy_event): Add case GPM_CLICK_EVENT.
24583 (read_avail_input): Handle mouse input.
24584
24585 * term.c (write_glyphs_with_face): New function.
24586 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24587 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24588 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24589 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24590 (last_mouse_x, last_mouse_y): New variables.
24591 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24592 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24593 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24594 (Fterm_close_connection): New functions.
24595 (term_init): Initialise mouse_face_window.
24596
245972007-05-19 Chong Yidong <cyd@stupidchicken.com>
24598
24599 * xdisp.c (redisplay_window): If first window line is a
24600 continuation line, recompute the new window start instead of
24601 recentering.
24602
246032007-05-18 Glenn Morris <rgm@gnu.org>
24604
24605 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24606 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24607
246082007-05-17 Glenn Morris <rgm@gnu.org>
24609
24610 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24611
246122007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24613
24614 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24615 dead key repeat and up events.
24616
246172007-05-14 Chong Yidong <cyd@stupidchicken.com>
24618
24619 * image.c (pbm_load): Check image size for monochrome pbm.
24620
246212007-05-13 Chong Yidong <cyd@stupidchicken.com>
24622
24623 * xterm.c (XTread_socket): Revert last change.
24624
246252007-05-12 Chong Yidong <cyd@stupidchicken.com>
24626
24627 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24628
24629 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24630
246312007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24632
24633 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24634 mixup (YAILOM).
24635
246362007-05-07 Andreas Schwab <schwab@suse.de>
24637
24638 * keymap.c (Flookup_key): Fix typo in last change.
24639
246402007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24641
24642 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24643 mapping for unibyte strings.
24644
246452007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24646
24647 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24648 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24649
246502007-04-29 Richard Stallman <rms@gnu.org>
24651
24652 * insdel.c (replace_range): For undo, record insertion first.
24653
246542007-04-29 Andreas Schwab <schwab@suse.de>
24655
24656 * lisp.h (VECSIZE): Use OFFSETOF.
24657
246582007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24659
24660 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24661 disabled lines.
24662
246632007-04-28 Richard Stallman <rms@gnu.org>
24664
24665 * lread.c (read_escape): In a string, \s is always space.
24666
246672007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24668
24669 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24670
24671 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24672 submenu for menu bar items.
24673
24674See ChangeLog.10 for earlier changes.
24675
24676;; Local Variables:
24677;; coding: utf-8
24678;; add-log-time-zone-rule: t
aac0c6e3
MR
24679;; End:
24680
e3eb1dae 24681 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24682
24683 This file is part of GNU Emacs.
24684
24685 GNU Emacs is free software: you can redistribute it and/or modify
24686 it under the terms of the GNU General Public License as published by
24687 the Free Software Foundation, either version 3 of the License, or
24688 (at your option) any later version.
24689
24690 GNU Emacs is distributed in the hope that it will be useful,
24691 but WITHOUT ANY WARRANTY; without even the implied warranty of
24692 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24693 GNU General Public License for more details.
24694
24695 You should have received a copy of the GNU General Public License
24696 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24697
24698;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40