* coding.c: Use SPECPDL_INDEX, DOS_NT.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
1a4990fb
JB
12010-07-07 Juanma Barranquero <lekktu@gmail.com>
2
3 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
4 (encode_coding_object): Use SPECPDL_INDEX.
5 (syms_of_coding): Use DOS_NT.
6
c0f2f16b
DN
72010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
8
48fb6855
DN
9 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
10
c0f2f16b
DN
11 Make the function member of Lisp_Subr use standard C prototypes.
12 * lisp.h (struct Lisp_Subr): Use a union for the function member.
13 (DECL_ALIGN): Add a cast for the function.
14 * eval.c (Feval, Ffuncall): Use the proper type for each type
15 function call.
16
67aecef9
CY
172010-07-06 Chong Yidong <cyd@stupidchicken.com>
18
19 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
20 fringe face id, so face-remapping-alist works (Bug#6091).
21
b56ceb92
JB
222010-07-06 Juanma Barranquero <lekktu@gmail.com>
23
24 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
25 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
26 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
27
7af07b96
AS
282010-07-06 Andreas Schwab <schwab@linux-m68k.org>
29
30 * xterm.c (x_get_keysym_name): Change type of parameter to int.
31 * lisp.h: Declare x_get_keysym_name.
32 * keyboard.c (modify_event_symbol): Don't declare
33 x_get_keysym_name here.
34
69e24e34
DN
352010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
36
37 * ecrt0.c: Revert conversion to standard C.
38
d3da34e0 392010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
40
41 * vm-limit.c (memory_warnings):
42 * keyboard.c (modify_event_symbol):
43 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
44 (round2, emacs_rint):
45 * process.c (send_process, old_sigpipe): Convert function
46 definitions and declarations to standard C.
47
482010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
49
50 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
51 * xdisp.c: Convert function definitions to standard C.
52
53 * cm.c (cmputc): Arg C is now int, not char.
54 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
55
00be444c
J
562010-07-05 James Cloos <cloos@jhcloos.com>
57
58 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
59
60 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
61 _NET_WM_ICON_NAME atoms.
62
63 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
64 and _NET_WM_ICON_NAME properties, too, matching what is
65 done in the Gtk+ case.
66
e4c8d29a
J
672010-07-05 Jan Djärv <jan.h.d@swipnet.se>
68
ff919460
J
69 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
70
e4c8d29a
J
71 * xsmfns.c (SSDATA): New macro.
72 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
73 passed to strlen/strcpy/strcat.
74 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
75 7:th arg to XChangeProperty to (unsigned char *)
76
77 * xsettings.c (something_changedCB, parse_settings)
78 (apply_xft_settings): Reformat prototype.
79 (something_changedCB, init_gconf): Remove unused variable i.
80 (read_settings): Remove unused variable long_len.
81
82 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
83 (xg_get_image_for_pixmap, create_dialog)
84 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
85 (menuitem_highlight_callback, make_menu_item)
86 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
87 (xg_create_scroll_bar, xg_update_scrollbar_pos)
88 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
89 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
90 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
91 (xg_tool_bar_item_expose_callback): Reformat prototype.
92 (xg_update_menubar): GList *group => GSList *group.
93 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
94 before use.
95 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
96 to GTK_IMAGE (wimage).
97
dd4c5104
DN
982010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
99
898b4c5c
DN
100 * atimer.c: Use "" instead of <> for local includes for
101 consistency with the rest of the code.
102
dd4c5104
DN
103 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
104 * xrdb.c (get_system_name):
105 * window.c (shrink_windows):
106 * syntax.c (forw_comment):
107 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
108 (ins_del_costs):
109 * mem-limits.h (start_of_data):
110 * lread.c (readevalloop):
111 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
112 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
113 * frame.c (x_get_focus_frame):
114 * floatfns.c (fmod_float):
115 * fileio.c (choose_write_coding_system):
116 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
117 (malloc_initialize_hook, sort_args, synchronize_locale):
118 * doprnt.c (doprnt):
119 * dired.c (compile_pattern):
120 * data.c (fmod_float):
121 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
122 (map_char_table_for_charset):
123 * charset.c (define_charset_internal):
124 * alloc.c (Fgarbage_collect): Convert declarations or definitions
125 to standard C.
126
9a39b306 1272010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 128 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
129
130 * lread.c (read1): Fix up last change to not mess up `c'.
131
e6cb2cbb
JB
1322010-07-04 Juanma Barranquero <lekktu@gmail.com>
133
134 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
135
438105ed
JB
1362010-07-04 Juanma Barranquero <lekktu@gmail.com>
137
138 Fix prototypes.
139
e5447b22 140 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 141 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
142 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
143 arg, as required by internal_condition_case_1.
dcc7404b 144 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
145 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
146 (analyse_first): Fix "const const".
e5447b22 147 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 148 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 149 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 150
971de7fb
DN
1512010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
152
153 * alloc.c: Convert function definitions to standard C.
154 * atimer.c:
155 * bidi.c:
156 * bytecode.c:
157 * callint.c:
158 * callproc.c:
159 * casefiddle.c:
160 * casetab.c:
161 * category.c:
162 * ccl.c:
163 * character.c:
164 * charset.c:
165 * chartab.c:
166 * cmds.c:
167 * coding.c:
168 * composite.c:
169 * data.c:
170 * dbusbind.c:
171 * dired.c:
172 * dispnew.c:
173 * doc.c:
174 * doprnt.c:
175 * ecrt0.c:
176 * editfns.c:
177 * fileio.c:
178 * filelock.c:
179 * filemode.c:
180 * fns.c:
181 * font.c:
182 * fontset.c:
183 * frame.c:
184 * fringe.c:
185 * ftfont.c:
186 * ftxfont.c:
187 * gtkutil.c:
188 * indent.c:
189 * insdel.c:
190 * intervals.c:
191 * keymap.c:
192 * lread.c:
193 * macros.c:
194 * marker.c:
195 * md5.c:
196 * menu.c:
197 * minibuf.c:
198 * prefix-args.c:
199 * print.c:
200 * ralloc.c:
201 * regex.c:
202 * region-cache.c:
203 * scroll.c:
204 * search.c:
205 * sound.c:
206 * strftime.c:
207 * syntax.c:
208 * sysdep.c:
209 * termcap.c:
210 * terminal.c:
211 * terminfo.c:
212 * textprop.c:
213 * tparam.c:
214 * undo.c:
215 * unexelf.c:
216 * window.c:
217 * xfaces.c:
218 * xfns.c:
219 * xfont.c:
220 * xftfont.c:
221 * xgselect.c:
222 * xmenu.c:
223 * xrdb.c:
224 * xselect.c:
225 * xsettings.c:
226 * xsmfns.c:
227 * xterm.c: Likewise.
228
ae492bec
EZ
2292010-07-03 Eli Zaretskii <eliz@gnu.org>
230
76ea4cc9
EZ
231 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
232 frames other than the initial one. Fix reversal of colors when
233 `reverse' is specified in the frame parameters. Call
234 update_face_from_frame_parameter instead of
235 internal-set-lisp-face-attribute. Initialize screen colors from
236 initial_screen_colors[] when f->default_face_done_p is zero,
237 instead of depending on being called with default-frame-alist as
238 the alist argument.
239
240 * xfaces.c (update_face_from_frame_parameter): Move out of
241 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
242 with HAVE_WINDOW_SYSTEM.
243
1e6255ae
EZ
244 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
245 to menu-bar-mode, if not set in the frame parameters or in
246 default-frame-alist.
247
ae492bec
EZ
248 * w32console.c (sys_tputs): Adjust argument list to prototype in
249 term.c.
250
3a35a84c
JB
2512010-07-03 Juanma Barranquero <lekktu@gmail.com>
252
253 * lisp.h (memory_warnings): Fix prototype.
254
255 * cm.h (evalcost): Fix prototype.
256
257 * cm.c (evalcost): Fix arg type.
258
c532d349
DN
2592010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
260
261 * term.c (term_clear_mouse_face, Fidentity):
262 * syssignal.h (signal_handler_t):
263 * lisp.h (memory_warnings):
264 * coding.h (preferred_coding_system):
265 * cm.h (evalcost):
266 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
267
c0b36d46
EZ
2682010-07-02 Eli Zaretskii <eliz@gnu.org>
269
270 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
271 from prototypes.
272
273 * msdos.h (load_pixmap): Don't define away.
274
383e0970
J
2752010-07-02 Jan Djärv <jan.h.d@swipnet.se>
276
f57e2426
J
277 * lisp.h:
278 * atimer.h: Remove define for P_.
279
280 * alloc.c: Remove __P and P_ from .c and .m files.
281 * atimer.c:
282 * buffer.c:
283 * callint.c:
284 * category.c:
285 * charset.c:
286 * chartab.c:
287 * cm.c:
288 * coding.c:
289 * composite.c:
290 * data.c:
291 * dired.c:
292 * dispnew.c:
293 * doc.c:
294 * editfns.c:
295 * emacs.c:
296 * eval.c:
297 * fileio.c:
298 * filelock.c:
299 * fns.c:
300 * font.c:
301 * fontset.c:
302 * frame.c:
303 * ftfont.c:
304 * ftxfont.c:
305 * gmalloc.c:
306 * gtkutil.c:
307 * image.c:
308 * indent.c:
309 * intervals.c:
310 * keyboard.c:
311 * keymap.c:
312 * lread.c:
313 * marker.c:
314 * menu.c:
315 * minibuf.c:
316 * print.c:
317 * process.c:
318 * scroll.c:
319 * search.c:
320 * sound.c:
321 * strftime.c:
322 * syntax.c:
323 * sysdep.c:
324 * term.c:
325 * terminal.c:
326 * textprop.c:
327 * unexalpha.c:
328 * w32console.c:
329 * w32fns.c:
330 * w32font.c:
331 * w32menu.c:
332 * w32term.c:
333 * w32uniscribe.c:
334 * window.c:
335 * xdisp.c:
336 * xfaces.c:
337 * xfns.c:
338 * xfont.c:
339 * xftfont.c:
340 * xmenu.c:
341 * xselect.c:
342 * xterm.c: Likewise.
343
383e0970 344 Remove P_ and __P macros.
f57e2426
J
345 * atimer.h: Remove P_ and __P macros.
346 * buffer.h:
383e0970
J
347 * category.h:
348 * ccl.h:
349 * character.h:
350 * charset.h:
351 * cm.h:
352 * coding.h:
353 * composite.h:
354 * dispextern.h:
355 * disptab.h:
9e892c8d 356 * dosfns.h:
383e0970
J
357 * font.h:
358 * fontset.h:
359 * frame.h:
360 * gtkutil.h:
361 * indent.h:
362 * intervals.h:
363 * keyboard.h:
364 * keymap.h:
365 * lisp.h:
366 * macros.h:
367 * md5.h:
368 * menu.h:
369 * msdos.h:
370 * nsterm.h:
371 * puresize.h:
372 * region-cache.h:
373 * syntax.h:
374 * syssignal.h:
375 * systime.h:
376 * termhooks.h:
9e892c8d 377 * w32font.h:
383e0970
J
378 * w32term.h:
379 * widget.h:
380 * window.h:
381 * xgselect.h:
382 * xsettings.h:
383 * xterm.h: Likewise.
384
98601119
DN
3852010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
386
d9170db5
DN
387 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
388
98601119
DN
389 Cleanup old code.
390 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
391 * syssignal.h: Remove code for Lynx, not supported anymore.
392 * vm-limit.c: Remove unused code the depends on emacs not being
393 defined and NO_LIM_DATA being defined.
394 * mem-limits.h: Remove dead code.
395
1f984e12
J
3962010-07-01 Jan Djärv <jan.h.d@swipnet.se>
397
c49d071a
J
398 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
399
9d5405ec
J
400 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
401 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
402
7a18115b
J
403 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
404 parameters, they are already absolute.
405
581a8100
J
406 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
407 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
408
409 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
410
411 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
412 FRAME_TOOLBAR_HEIGHT.
413
1f984e12
J
414 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
415 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
416
c1ef4455
CY
4172010-06-30 Chong Yidong <cyd@stupidchicken.com>
418
419 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
420 check default-frame-alist.
421
ce8f5a9a
AS
4222010-06-30 Andreas Schwab <schwab@linux-m68k.org>
423
424 * process.c (create_process): Avoid using invalid file descriptors.
425
426 * callproc.c (child_setup): Avoid closing a file descriptor twice.
427
bf935339
J
4282010-06-30 Jan Djärv <jan.h.d@swipnet.se>
429
430 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
431 Improve documentation. Return font regardless of use_system_font.
432 (syms_of_xsettings): Improve documentation for font-use-system-font.
433
769e9d47
KH
4342009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
435
436 * xftfont.c (xftfont_open): Check font width one by one also when
437 spacing is dual.
438
439 * ftfont.c (ftfont_open): Ditto.
440
6259c2ec
GM
4412010-06-30 Glenn Morris <rgm@gnu.org>
442
a46007e9
GM
443 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
444
6259c2ec
GM
445 * Makefile.in (CANNOT_DUMP): Update for configure name change.
446
447 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
448 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
449 * s/darwin.h (SYSTEM_MALLOC):
450 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
451
5d1d3d04
J
4522010-06-29 Jan Djärv <jan.h.d@swipnet.se>
453
454 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
455 (ns_get_screen): Don't assign integer to f.
456 (Fx_display_color_cells): Declarations before statements.
457
e547b051
J
4582010-06-28 Jan Djärv <jan.h.d@swipnet.se>
459
5fc8e5bc
J
460 * xfns.c (x_default_font_parameter): Remove got_from_system
461 (Bug#6526).
462
e547b051
J
463 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
464 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
465 defines based on what configure finds.
466
467 * xterm.c (XTflash): Use gtk_widget_get_window.
468 (xg_scroll_callback): Use gtk_adjustment_get_upper and
469 gtk_adjustment_get_page_size.
470 (handle_one_xevent): Use gtk_widget_get_mapped.
471 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
472 messages.
473
474 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
475
476 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
477 HAVE_GTK_FILE_SELECTION_NEW.
478
479 * gtkutil.c (xg_display_open, xg_display_close): Remove
480 HAVE_GTK_MULTIDISPLAY, it is always defined.
481 (xg_display_open): Return type is void.
482 (gtk_widget_set_has_window)
483 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
484 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
485 (gtk_adjustment_set_page_increment)
486 (gtk_adjustment_get_step_increment): #define these if not found
487 by configure.
488 (remove_submenu): New define based on Gtk+ version.
489 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
490 gtk_widget_get_window.
491 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
492 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
493 (create_dialog): Use gtk_dialog_get_action_area and
494 gtk_dialog_get_content_area.
495 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
496 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
497 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
498 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
499 g_object_ref and g_object_unref.
500 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
501 gtk_widget_get_sensitive.
502 (xg_update_submenu): Use remove_submenu.
503 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
504 properties instead to get old x and y position.
505 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
506 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 507 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
508 (xg_get_tool_bar_widgets): New function.
509 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
510 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
511 (toolbar_set_orientation): New #define based on if configure
512 finds gtk_orientable_set_orientation.
513 (xg_create_tool_bar): Call toolbar_set_orientation.
514 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
515 instead of gtk_box_pack_start_defaults.
516
b9229673
CY
5172010-06-28 Chong Yidong <cyd@stupidchicken.com>
518
519 * cmds.c (Fdelete_backward_char): Move into Lisp.
520
bbc803b0
DN
5212010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
522
523 * s/freebsd.h (BSD4_2): Remove redundant definition.
524 bsd-common.h defines it already.
525
6431f2e6
CY
5262010-06-27 Chong Yidong <cyd@stupidchicken.com>
527
528 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
529 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
530 tool-bar-mode, which are now set using these X resources at
531 startup, to determine the defaults (Bug#2249).
532
533 * w32fns.c (Fx_create_frame):
534 * nsfns.m (Fx_create_frame): Likewise.
535
536 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
537
8c079ebb
JB
5382010-06-24 Juanma Barranquero <lekktu@gmail.com>
539
540 * gtkutil.c (xg_update_scrollbar_pos):
541 Avoid C99 mid-block variable declaration.
542
e9b7ab96
JD
5432010-06-22 Jan Djärv <jan.h.d@swipnet.se>
544
bc869eca
JD
545 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
546
2b7e356a 547 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
548
549 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
550 if height is less than scroll bar min size.
551 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
552
e9b7ab96
JD
553 * xfns.c (x_default_font_parameter): Try to open font from system
554 before using it (bug#6478). Rename got_from_gconf to got_from_system.
555
32a679fd
JD
5562010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
557
558 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
559
70c4cfbb
EZ
5602010-06-20 Eli Zaretskii <eliz@gnu.org>
561
562 * xdisp.c (try_scrolling): When scroll-conservatively is set to
563 most-positive-fixnum, be extra accurate when scrolling window
564 start, to avoid missing the cursor line.
565
ad5a12b5
EZ
5662010-06-19 Eli Zaretskii <eliz@gnu.org>
567
568 * xdisp.c (try_scrolling): Compute the limit for searching point
569 in forward scroll from scroll_max, instead of an arbitrary limit
570 of 10 screen lines. See
571 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
572 and
573 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
574 for details.
575
2a64315a 5762010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
577
578 * editfns.c (Fbyte_to_string): Pacify compiler.
579
288cf4e9
SM
5802010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
581
582 * lread.c (read1): Phase out old-style backquotes a bit more.
583
6e6e5760
EZ
5842010-06-12 Eli Zaretskii <eliz@gnu.org>
585
cbc4fd20
EZ
586 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
587 bidimirror.h.
588
589 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
590
317fbf33
EZ
591 * bidi.c (bidi_initialize): Remove explicit initialization of
592 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 593 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 594 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
595
596 * biditype.h: New file.
597
cbc4fd20
EZ
598 * bidimirror.h: New file.
599
6e6e5760
EZ
600 * window.c (syms_of_window): Doc fix (bug#6409).
601
4176cba2
RF
6022010-06-12 Romain Francoise <romain@orebokech.com>
603
604 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
605 ediff-hook.
606
cb4bfcb5
GM
6072010-06-10 Glenn Morris <rgm@gnu.org>
608
64c60c2f
GM
609 * editfns.c (Fbyte_to_string): Pacify compiler.
610
cb4bfcb5
GM
611 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
612
e454a4a3
SM
6132010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
614
615 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
616 Check `object's type before accessing its guts.
617
c1b1acc2
DN
6182010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
619
620 * s/usg5-4.h: Fix previous change.
621 Suggested by Lawrence Mitchell <wence@gmx.li>
622
657d4c0b
AS
6232010-06-08 Andreas Schwab <schwab@linux-m68k.org>
624
625 * minibuf.c (Fall_completions): Add more checks.
626
9b27fd9f
JB
6272010-06-08 Juanma Barranquero <lekktu@gmail.com>
628
629 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
630
a99ebb40
DN
6312010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
632
d7c5d87d
DN
633 * lread.c (X_OK): Remove, unused.
634
0263a941
DN
635 * dispnew.c: Remove obsolete comment.
636
a99ebb40
DN
637 Remove INCLUDED_FCNTL.
638 * xterm.c (INCLUDED_FCNTL):
639 * callproc.c (INCLUDED_FCNTL):
640 * alloc.c (INCLUDED_FCNTL):
641 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
642 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
643
13b5221f
MR
6442010-06-07 Martin Rudalics <rudalics@gmx.at>
645
646 * window.c (Fselect_window): Move `record_buffer' up to the
647 beginning of this function, so the buffer gets recorded
648 even if the selected window does not change.
649 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
650
5220357f
JB
6512010-06-07 Juanma Barranquero <lekktu@gmail.com>
652
653 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
654 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
655
3085237c
DN
6562010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
657
658 Remove BSTRING related code, all platforms define it.
659 * s/usg5-4.h (BSTRING): Remove definition.
660 * s/template.h (BSTRING):
661 * s/msdos.h (BSTRING):
662 * s/ms-w32.h (BSTRING):
663 * s/hpux10-20.h (BSTRING):
664 * s/gnu-linux.h (BSTRING):
665 * s/darwin.h (BSTRING):
666 * s/cygwin.h (BSTRING):
667 * s/bsd-common.h (BSTRING):
668 * s/aix4-2.h (BSTRING): Likewise.
669 * sysdep.c: Remove code depending on BSTRING not being defined.
670
409f2919
JB
6712010-06-05 Juanma Barranquero <lekktu@gmail.com>
672
673 Remove obsolete macro BASE_LEADING_CODE_P.
674 * character.h (BASE_LEADING_CODE_P): Remove.
675 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
676 * buffer.c (Fset_buffer_multibyte):
677 * indent.c (scan_for_column, compute_motion):
678 * insdel.c (count_combining_before, count_combining_after):
679 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
680
087fc47a
JB
6812010-06-04 Juanma Barranquero <lekktu@gmail.com>
682
683 Turn `directory-sep-char' into a noop.
684
685 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
686 (DIRECTORY_SEP): Define unconditionally.
687
688 * s/ms-w32.h (DIRECTORY_SEP): Remove.
689
690 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
691 call dostounix_filename directly.
692
693 * fileio.c (CORRECT_DIR_SEPS): Remove.
694 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
695 (Fsubstitute_in_file_name): Use dostounix_filename instead.
696 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
697 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
698
699 * w32proc.c (CORRECT_DIR_SEPS): Remove.
700 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
701
0eb7675e
AS
7022010-06-03 Andreas Schwab <schwab@linux-m68k.org>
703
704 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 705 address. (Bug#6346)
0eb7675e 706
78edd3b7
JB
7072010-06-03 Juanma Barranquero <lekktu@gmail.com>
708
709 * ccl.c (Fccl_program_p): Fix typo in docstring.
710
eb697db5
DN
7112010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
712
713 Move UNEXEC definition to autoconf.
714 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
715 * s/sol2-10.h (UNEXEC):
716 * s/irix6-5.h (UNEXEC):
717 * s/hpux10-20.h (UNEXEC):
718 * s/gnu-linux.h (UNEXEC):
719 * s/darwin.h (UNEXEC):
720 * s/cygwin.h (UNEXEC):
721 * s/bsd-common.h (UNEXEC):
722 * s/aix4-2.h (UNEXEC):
723 * m/alpha.h (UNEXEC): Likewise.
724 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
725
aa3830c4
JB
7262010-06-03 Juanma Barranquero <lekktu@gmail.com>
727
728 Remove obsolete pre-unicode2 macros.
729 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
730 * composite.c (composition_reseat_it):
731 * data.c (Faset):
732 * fns.c (Ffillarray):
733 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
734 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
735
d234d13e
JL
7362010-06-03 Juri Linkov <juri@jurta.org>
737
738 * buffer.c (Fother_buffer): Add CHECK_FRAME.
739 (Fswitch_to_buffer): Remove unused variable `err'.
740
0d4bcf4d
GM
7412010-06-03 Glenn Morris <rgm@gnu.org>
742
e23dc1e2
GM
743 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
744
05b09564
GM
745 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
746 now that AH_BOTTOM does it.
747
824e2978
GM
748 * m/hp800.h (HAVE_ALLOCA):
749 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
750
0d4bcf4d
GM
751 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
752 Remove NOT_C_CODE tests, it is always true now.
753
c55d2abf
DN
7542010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
755
08a494a3
DN
756 Fix config.h includes.
757 * xsettings.c:
758 * xgselect.c:
759 * nsterm.m:
760 * nsselect.m:
761 * nsimage.m:
762 * nsfont.m:
763 * nsfns.m:
764 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
765 other files do.
766
75934b1d
DN
767 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
768
9f32a766
DN
769 * s/sol2-6.h: Remove obsolete comments.
770
c55d2abf
DN
771 Remove unnecessary alloca.h includes.
772 * keymap.c: Do not include alloca.h, config.h does that.
773 * sysdep.c: Likewise. Do not define fwrite, not used.
774
06ac62b4
SM
7752010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
776
777 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
778 the HAVE_TERMIO where it belongs (bug#6149).
779
1ab8293c
SM
7802010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
781
782 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
783 of bug#6305).
784
6dcfd253
EZ
7852010-05-30 Eli Zaretskii <eliz@gnu.org>
786
787 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
788 state is always cached (bug#6306).
789
6d26bbb2
EZ
7902010-05-29 Eli Zaretskii <eliz@gnu.org>
791
06fa4a23
EZ
792 Fix cursor motion in bidi-reordered continued lines.
793 * xdisp.c (try_cursor_movement): Backup to non-continuation line
794 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
795 over continuation lines in bidi-reordered buffers. Return
796 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
797 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
798
f5783df3
MA
7992010-05-28 Michael Albinus <michael.albinus@gmx.de>
800
801 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
802
7d56b2dd
KH
8032010-05-28 Kenichi Handa <handa@m17n.org>
804
805 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
806 Don't sheck SPEC if it is nil.
807 (font_list_entities): Call font_delete_unmatched if
b925d231 808 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 809
e58d4ff7
GM
8102010-05-28 Glenn Morris <rgm@gnu.org>
811
812 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
813
f1a5d776
CY
8142010-05-27 Chong Yidong <cyd@stupidchicken.com>
815
816 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
817 whether to trash.
818 (internal_delete_file, Frename_file): Callers changed.
819 (delete_by_moving_to_trash): Doc fix.
820 (Fdelete_directory_internal): Don't move to trash.
821
822 * callproc.c (delete_temp_file):
823 * buffer.c (Fkill_buffer): Callers changed.
824
825 * lisp.h: Update prototype.
826
f44a59e6
CY
8272010-05-27 Chong Yidong <cyd@stupidchicken.com>
828
829 * xdisp.c (redisplay_window): After redisplay, check if point is
830 still valid before setting it (Bug#6177).
831
81ac4f35
GM
8322010-05-27 Glenn Morris <rgm@gnu.org>
833
834 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
835 Convert comments to Makefile format.
836
837 * Makefile.in (bootstrap-clean): No more Makefile.c.
838
ccd89fb3
GM
8392010-05-26 Glenn Morris <rgm@gnu.org>
840
90278cb6
GM
841 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
842 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
843
ccd89fb3
GM
844 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
845 Remove.
846 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
847
b7050583
KH
8482010-05-26 Kenichi Handa <handa@m17n.org>
849
850 * composite.c (composition_compute_stop_pos): Fix condition for
851 backward scanning.
852
e5458003
GM
8532010-05-25 Glenn Morris <rgm@gnu.org>
854
c345fe90
GM
855 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
856 Move before TEMACS_LDFLAGS.
857 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
858 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
859
2e0689ab
GM
860 * Makefile.in (NOT_C_CODE): No longer define.
861 (config.h): No longer include.
862
8009a5e8
GM
863 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
864 variables it may reference.
865
e5458003
GM
866 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
867 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
868
10f72a37
KH
8692010-05-25 Kenichi Handa <handa@m17n.org>
870
871 * dispextern.h (struct composition_it): New members rule_idx and
872 charpos.
873
874 * xdisp.c (set_iterator_to_next): While scanning backward, assume
875 that the character positions of IT point the last character of the
876 current grapheme cluster.
877 (next_element_from_composition): Don't change character positions
878 of IT.
879 (append_composite_glyph): Set glyph->charpos to
880 it->cmp_it.charpos.
881
882 * composite.c (autocmp_chars): Change the first argument to RULE,
883 and try composition with RULE only.
884 (composition_compute_stop_pos): Record the index number of the
885 composition rule in CMP_IT->rule_idx.
886 (composition_reseat_it): Call autocmp_chars repeatedly until the
887 correct rule of the composition is found.
888 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
889 is at the last character of the current grapheme cluster when
890 CMP_IT->reversed_p is nonzero.
891
171eda53 8922010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 893
171eda53
SM
894 * editfns.c (Fbyte_to_string): New function.
895
66a9f7f4
SM
8962010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
897
898 * process.c (Fmake_network_process): Set :host to nil if it's not used.
899 Suggested by Masatake YAMATO <yamato@redhat.com>.
900
d8c315d1
EZ
9012010-05-23 Eli Zaretskii <eliz@gnu.org>
902
171eda53 903 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 904
f5b416d2 9052010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
906
907 * s/netbsd.h: If terminfo is found, use it in preference to
908 termcap. (Bug#6190) [Backport from trunk]
909
0416466c
EZ
9102010-05-19 Eli Zaretskii <eliz@gnu.org>
911
11117830 912 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
913
914 * dispextern.h (struct glyph_row): New members minpos and maxpos.
915 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
916 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
917 and maxpos members instead of start.pos and end.pos, respectively.
918
919 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
920 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
921 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
922 (try_window_reusing_current_matrix, try_window_id):
923 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
924 (init_from_display_pos, init_iterator): Use EMACS_INT for
925 character and byte positions.
66a9f7f4 926 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
927 arguments for minimum and maximum buffer positions seen by
928 display_line for this row. Don't use iterator to find the
929 position following the maximum one; instead, increment the
11117830
EZ
930 position found by display_line directly. Fix logic; eol_pos
931 should be tested before the rest. Handle the case of characters
932 delivered from display vector (bug#6036). Fix tests related to
933 it->method. Handle the truncated_on_right_p rows.
934 (RECORD_MAX_MIN_POS): New macro.
935 (display_line): Use it to record the minimum and maximum buffer
936 positions for glyphs in the row being assembled. Record the
937 position of the newline that terminates the line. If word wrap is
938 in effect, restore minimum and maximum positions seen up to the
939 wrap point, when iterator returns to it.
940 (try_window_reusing_current_matrix): Give up if in bidi-reordered
941 row and cursor not already at point. Restore original pre-bidi
942 code for unidirectional buffers.
d36fe237
EZ
943
944 * dispnew.c (increment_row_positions, check_matrix_invariants):
945 Increment and check row->start.pos and row->end.pos, in addition
946 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
947
11117830
EZ
948 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
949 Display truncated_on_left_p and truncated_on_right_p flags.
950 Formatting fixes.
951 (pmtxrows): Display the ordinal number of each row. Don't display
952 rows beyond the last one.
953
954 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
955 it is not copied by bidi_copy_it.
956
6e83d800
EZ
9572010-05-22 Eli Zaretskii <eliz@gnu.org>
958
959 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
960 (Bug#6237)
961
110683ad
CY
9622010-05-22 Chong Yidong <cyd@stupidchicken.com>
963
964 * image.c (Fimage_flush): Rename from image-refresh.
965
98fe5161
CY
9662010-05-21 Chong Yidong <cyd@stupidchicken.com>
967
968 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
969 just one window.
970
971 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
972 (clear_image_cache): If the number of cached images is unusually
973 large, decrease the cache eviction delay (Bug#6230).
974
e8752c66
GM
9752010-05-21 Glenn Morris <rgm@gnu.org>
976
66dbf213
GM
977 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
978 Move these rules to ns.mk.
979 * ns.mk: New file.
980
04384b2d
GM
981 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
982
e8752c66
GM
983 * Makefile.in (CANNOT_DUMP): New, set by configure.
984 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
985
2e2bbddb
JL
9862010-05-20 Juri Linkov <juri@jurta.org>
987
988 * fileio.c (Fdelete_file): Change interative spec to use
989 `read-file-name' like in `find-file-read-args' where the default
990 value is `default-directory' instead of `buffer-file-name'.
991 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
992
31c4aaf6
KR
9932010-05-20 Kevin Ryde <user42@zip.com.au>
994
995 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
996 (Voverriding_terminal_local_map, Vsystem_key_alist)
997 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
998
9d5cf9b6
GM
9992010-05-20 Glenn Morris <rgm@gnu.org>
1000
1001 * Makefile.in (DEPDIR): New constant.
1002 (DEPFLAGS): Set with configure, not cpp.
1003 (MKDEPDIR): New, set by configure.
1004 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1005 (clean): Use $DEPDIR.
1006 (deps_frag): Include from configure.
1007 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1008 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1009
ead6f8f5
EZ
1010 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1011 reallocation of the cache. (Bug#6210)
1012
7f34aec3
GM
10132010-05-19 Glenn Morris <rgm@gnu.org>
1014
d494e8f2
GM
1015 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1016
c1d0dcfd
GM
1017 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1018 (GNULIB_VAR): Remove.
1019 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1020
1021 * m/ibms390x.h (LINKER):
1022 * m/macppc.h (LINKER) [GNU_LINUX]:
1023 * s/aix4-2.h (ORDINARY_LINK):
1024 * s/cygwin.h (LINKER):
1025 * s/darwin.h (ORDINARY_LINK):
1026 * s/gnu.h (ORDINARY_LINK):
1027 * s/netbsd.h (LINKER):
1028 * s/usg5-4.h (ORDINARY_LINK):
1029 Move to configure.
1030
7f34aec3
GM
1031 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1032
754790b6
CY
10332010-05-18 Chong Yidong <cyd@stupidchicken.com>
1034
1035 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1036 prevent stack overflow if number of arguments is too large
1037 (Bug#6214).
1038
161e44d1
JB
10392010-05-18 Juanma Barranquero <lekktu@gmail.com>
1040
1041 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1042
be4ff9da
GM
10432010-05-18 Glenn Morris <rgm@gnu.org>
1044
9539dc5d
GM
1045 * s/gnu-linux.h: Combine two conditionals.
1046
1047 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1048 $(POST_ALLOC_OBJ).
1049
40dc6bf4
GM
1050 * Makefile.in (RALLOC_OBJ): New, set by configure.
1051 (rallocobj): Replace with the previous variable.
1052 (otherobj): Use $RALLOC_OBJ.
1053
1054 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1055 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1056
be4ff9da
GM
1057 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1058 (gmallocobj, vmlimitobj): Replace with previous two variables.
1059 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1060
16455a85
GM
10612010-05-17 Glenn Morris <rgm@gnu.org>
1062
1063 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1064 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1065
5fdb7468
GM
10662010-05-16 Glenn Morris <rgm@gnu.org>
1067
7ca1f3f9
GM
1068 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1069
7541dad5
GM
1070 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1071
da53fab9
GM
1072 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1073 trailing "/".
1074
b02a6645
GM
1075 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1076 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1077
8877ca0f
GM
1078 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1079 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1080 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1081 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1082 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1083
5fdb7468
GM
1084 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1085 Remove ${STARTFLAGS}, nothing ever sets it.
1086
95adb4b1
DN
10872010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1088
1089 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1090
676b6304
GM
10912010-05-16 Glenn Morris <rgm@gnu.org>
1092
9beab9ce
GM
1093 * Makefile.in (LIBX_BASE): Always define.
1094
8a95f0e7
GM
1095 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1096
676b6304
GM
1097 * Makefile.in (LIBXT): Always define.
1098
6e546d18
GM
10992010-05-15 Glenn Morris <rgm@gnu.org>
1100
4235ca47 1101 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1102
6e546d18
GM
1103 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1104 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1105
8c5ff6dd
KR
11062010-05-15 Ken Raeburn <raeburn@raeburn.org>
1107
560bb7ae 1108 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1109 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1110
8b4eb796
KR
1111 * emacs.c (main): Initialize initial-environment and
1112 process-environment before generating from env, not after.
1113
8c5ff6dd
KR
1114 Handle --version reasonably in CANNOT_DUMP configuration.
1115 * emacs.c (emacs_version, emacs_copyright): New string variables.
1116 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1117 (syms_of_emacs): Defvar them, and initialize them from the C
1118 string variables.
1119 (main): If initialization hasn't been done, print initial version
1120 info from the C strings, instead of starting an interactive session.
1121
dbd3f723
EZ
11222010-05-15 Eli Zaretskii <eliz@gnu.org>
1123
d20e1419
EZ
1124 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1125 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1126 (bidi_paragraph_init): Remove redundant assertion that we are at
1127 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1128
1129 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1130 (syms_of_xdisp): Defsubr it.
1131
d36fe237
EZ
1132 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1133
dbd3f723
EZ
1134 * Makefile.in: Fix MSDOS-related comments.
1135
02be533b
GM
11362010-05-15 Glenn Morris <rgm@gnu.org>
1137
1a82cca9
GM
1138 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1139 (really-lwlib, really-oldXMenu): Always define.
1140 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1141
3df7b338
GM
1142 * Makefile.in: Simplify cpp conditional.
1143
2b5f541b
GM
1144 * Makefile.in (${ns_appdir}): Simplify using umask.
1145
02be533b
GM
1146 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1147
4e2db1fe
SM
11482010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1149
1150 * eval.c (specbind): Remove left-over duplicate test.
1151 Disallow let-binding frame-local vars. Add comment.
1152
4b292a22
EZ
11532010-05-14 Eli Zaretskii <eliz@gnu.org>
1154
2fe72643 1155 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1156 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1157 (bidi_init_it): Call it.
1158 (bidi_cache_iterator_state): Enlarge the cache if needed.
1159
4e2db1fe 1160 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1161 bidi_get_next_char_visually. All callers changed.
1162
82ebc97b
KH
11632010-05-14 Kenichi Handa <handa@m17n.org>
1164
1165 * dispextern.h (struct composition_it): New member reversed_p.
1166
1167 * composite.c (composition_compute_stop_pos): Search backward if
1168 ENDPOS < CHARPOS.
1169 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1170 Set CMP_IT->reversed_p.
b4b6e17e 1171 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1172
4e2db1fe
SM
1173 * xdisp.c (set_iterator_to_next):
1174 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1175 scanning backward. Call composition_compute_stop_pos if scan
1176 direction is changed.
1177 (next_element_from_buffer): Call composition_compute_stop_pos with
1178 negative ENDPOS if we are scanning backward.
1179 (next_element_from_composition): Pay attention to
1180 IT->cmp_it.reversed_p.
1181
0e5d7800
KH
11822010-05-14 Kenichi Handa <handa@m17n.org>
1183
560bb7ae 1184 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1185
cb027b32
GM
11862010-05-14 Glenn Morris <rgm@gnu.org>
1187
177b0288
GM
1188 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1189
fbc00890
GM
1190 * Makefile.in (mktime, X11, register): Move undefs to configure.
1191
f14d1dfd
GM
1192 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1193 (MSDOS_X_OBJ): New variable.
1194 (MSDOS_SUPPORT_REAL): New constant.
1195 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1196 (obj): Use MSDOS_X_OBJ.
1197 (lisp): Use MSDOS_SUPPORT as a variable.
1198
11842bd8
GM
1199 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1200 (GPM_MOUSE_SUPPORT): Now it's a constant.
1201 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1202 not cpp.
1203
489d31a4 1204 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1205 (ns_appresdir): Remove, unused.
e20f1f07 1206
489d31a4
GM
1207 * Makefile.in (SHELL): Move outside cpp section.
1208
cb027b32
GM
1209 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1210
5a903aa9
GM
12112010-05-13 Glenn Morris <rgm@gnu.org>
1212
3369c79f
GM
1213 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1214 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1215
d5e982a6
GM
1216 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1217 HAVE_WINDOW_SYSTEM must be too.
1218
6192e163
GM
1219 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1220 (lisp): Remove WINNT_SUPPORT.
1221
472c5d6b
GM
1222 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1223 Let configure set these variables (to empty) in this case as well.
1224
0116466b
GM
1225 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1226 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1227
5a903aa9
GM
1228 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1229 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1230 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1231 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1232 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1233 the values output by configure.
5a903aa9
GM
1234 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1235
1a0d7c06
GM
12362010-05-12 Glenn Morris <rgm@gnu.org>
1237
b5457f14
GM
1238 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1239 (LINKER_WAS_SPECIFIED): Remove.
1240
1a0d7c06
GM
1241 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1242 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1243 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1244 * s/cygwin.h (LIB_GCC):
1245 * s/freebsd.h (LIB_GCC):
1246 * s/gnu-linux.h (LIB_GCC):
1247 * s/msdos.h (LIB_GCC):
1248 * s/netbsd.h (LIB_GCC):
1249 Move to configure.
1250
3ffd4615 12512010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1252
1253 * ftfont.c: Fix incorrect parentheses of #if condition for
1254 definining M17N_FLT_USE_NEW_FEATURE.
1255
acddf8ae
GM
12562010-05-11 Glenn Morris <rgm@gnu.org>
1257
1258 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1259 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1260
ae5e04fa
EZ
12612010-05-10 Eli Zaretskii <eliz@gnu.org>
1262
1263 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1264 unibyte buffers. See
1265 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1266
7490175b
GM
12672010-05-10 Glenn Morris <rgm@gnu.org>
1268
97efb629
GM
1269 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1270 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1271 (LIBES): Use LIBS_SYSTEM as a variable.
1272 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1273 * s/aix4-2.h (LIBS_SYSTEM):
1274 * s/freebsd.h (LIBS_SYSTEM):
1275 * s/hpux10-20.h (LIBS_SYSTEM):
1276 * s/sol2-6.h (LIBS_SYSTEM):
1277 * s/unixware.h (LIBS_SYSTEM):
1278 Move to configure.
1279
7490175b
GM
1280 * s/aix4-2.h (MAIL_USE_LOCKF):
1281 * s/bsd-common.h (MAIL_USE_FLOCK):
1282 * s/darwin.h (MAIL_USE_FLOCK):
1283 * s/gnu-linux.h (MAIL_USE_FLOCK):
1284 * s/irix6-5.h (MAIL_USE_FLOCK):
1285 * s/template.h (MAIL_USE_FLOCK):
1286 Move to configure.
1287
0235128c 12882010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1289
1290 * Version 23.2 released.
1291
0235128c 12922010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1293
1294 * composite.c (autocmp_chars): Save point as marker before calling
1295 auto-composition-function (Bug#5984).
1296
1297 * lisp.h (restore_point_unwind): Add prototype.
1298
1299 * fileio.c (restore_point_unwind): Remove static attribute.
1300
0235128c 13012010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1302
1303 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1304 new feature of libotf and m17n-flt.
0235128c
SM
1305 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1306 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1307 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1308 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1309 that OUT is NULL. Use OTF_drive_gsub_with_log and
1310 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1311 OTF_drive_gpos.
1312 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1313 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1314 Setup mflt_enable_new_feature and mflt_try_otf.
1315
4721152c
J
13162010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1317
1318 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1319
1320 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1321 box and toolbar (Bug #6139).
1322 (xg_create_tool_bar): Remove comment (Bug #6139).
1323 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1324 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1325
ee0a16cf
JB
13262010-05-08 Juanma Barranquero <lekktu@gmail.com>
1327
1328 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1329 Update dependencies.
1330
96d79611
EZ
13312010-05-08 Eli Zaretskii <eliz@gnu.org>
1332
1333 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1334 R2L lines.
1335
40c17879
GM
13362010-05-08 Glenn Morris <rgm@gnu.org>
1337
7b42b29f
GM
1338 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1339
40c17879
GM
1340 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1341 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1342 (termcapobj): Replace with TERMCAP_OBJ.
1343 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1344 (LIBES): Use LIBS_TERMCAP as a variable.
1345
1346 * s/freebsd.h (osreldate.h): No longer include, since this file
1347 does not use __FreeBSD_version any more.
1348
1349 * s/aix4-2.h (TERMINFO):
1350 * s/cygwin.h (TERMINFO):
1351 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1352 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1353 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1354 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1355 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1356 * s/irix6-5.h (TERMINFO):
1357 * s/netbsd.h (LIBS_TERMCAP):
1358 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1359 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1360 * s/usg5-4.h (TERMINFO):
1361 Move to configure.
1362
94b612ad
SM
13632010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1364
1365 * eval.c (unbind_to): Don't unbind a local binding into the global
1366 binding when the local binding disappeared. Inversely, don't unbind
1367 a global binding into a newly created local binding.
1368 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1369 can specify the frame to use, when applicable. Adjust callers.
1370
15e12598 13712010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1372 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1373
1374 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1375
f724825e
EZ
13762010-05-07 Eli Zaretskii <eliz@gnu.org>
1377
5cba3209
EZ
1378 * w32fns.c: Include w32.h.
1379 (Fw32_shell_execute): Decode the error message before passing it
1380 to `error'. (Bug#6126)
1381
d16bdfc3
EZ
1382 * msdos.c (dos_set_window_size):
1383 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1384 instead of `XSYMBOL (foo)->value'.
1385
59d93e87
EZ
13862010-05-07 Eli Zaretskii <eliz@gnu.org>
1387
9fdec8bc
EZ
1388 Fix the MS-DOS build, broken by autoconfiscation.
1389
1390 * Makefile.in: Don't use Make-style comments past the "start of
1391 cpp stuff" line.
1392 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1393
1394 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1395 edited directly by msdos/sed1v2.inp).
f724825e 1396
2f86b22b
GM
13972010-05-07 Glenn Morris <rgm@gnu.org>
1398
1399 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1400 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1401 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1402 move out of cpp section.
1403 * s/freebsd.h (LD_SWITCH_SYSTEM):
1404 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1405 * s/netbsd.h (LD_SWITCH_SYSTEM):
1406 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1407
49ebbd65
DN
14082010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1409
1410 Define LIB_STANDARD and START_FILES using autoconf.
1411 * s/usg5-4.h (LIB_STANDARD):
1412 * s/netbsd.h (START_FILES):
1413 * s/irix6-5.h (LIB_STANDARD):
1414 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1415 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1416 * s/freebsd.h (START_FILES):
1417 * s/darwin.h (START_FILES):
1418 * s/cygwin.h (START_FILES):
1419 * s/aix4-2.h (LIB_STANDARD):
1420 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1421 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1422 autoconf, not cpp.
1423
d43c06d6
DN
14242010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1425
28823648
DN
1426 Remove NEED_BSDTTY and NEED_UNISTD_H.
1427 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1428 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1429 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1430 <sys/ptyio.h> and <unistd.h>.
1431
aca00430
DN
1432 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1433
d43c06d6
DN
1434 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1435 * s/gnu.h (START_FILES): Remove empty definition.
1436
3e56b11d
JD
14372010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1438
1439 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1440
e3cf0cde
GM
14412010-05-06 Glenn Morris <rgm@gnu.org>
1442
1443 * Makefile.in (CPP, LN_S): Remove unused variables.
1444
774b9a60
SM
14452010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1446
1447 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1448
4ab92842
LM
14492010-05-05 Lawrence Mitchell <wence@gmx.li>
1450
1451 * m/sparc.h: Fix typo in earlier change.
1452
178f2507
SM
14532010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1454
1455 Misc tweaks.
1456 * eval.c (Fdefvaralias): Remove unintended nested if.
1457 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1458
80f00217 14592010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1460
1461 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1462
ef03a4e6
DN
14632010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1464
58eb6cf0
DN
1465 Remove BSD_PGRPS.
1466 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1467 * s/gnu-linux.h (BSD_PGRPS): Remove.
1468 * term.c (dissociate_if_controlling_tty):
1469 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1470 (init_sys_modes, reset_sys_modes):
1471 * emacs.c (main):
1472 * callproc.c (Fcall_process, child_setup): Remove code depending
1473 on BSD_PGRPS.
1474
ef03a4e6
DN
1475 Remove POSIX_SIGNALS.
1476 * s/usg5-4.h (POSIX_SIGNALS):
1477 * s/netbsd.h (POSIX_SIGNALS):
1478 * s/msdos.h (POSIX_SIGNALS):
1479 * s/ms-w32.h (POSIX_SIGNALS):
1480 * s/hpux11.h (POSIX_SIGNALS):
1481 * s/gnu.h (POSIX_SIGNALS):
1482 * s/gnu-linux.h (POSIX_SIGNALS):
1483 * s/freebsd.h (POSIX_SIGNALS):
1484 * s/darwin.h (POSIX_SIGNALS):
1485 * s/cygwin.h (POSIX_SIGNALS):
1486 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1487 * s/unixware.h:
1488 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1489 * process.c (create_process):
1490 * syssignal.h:
1491 * sysdep.c (wait_for_termination, init_signals):
1492 * process.c (create_process):
1493 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1494 remove all code that assumes the contrary.
1495
49628785
GM
14962010-05-04 Glenn Morris <rgm@gnu.org>
1497
27a2cdfc
GM
1498 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1499 variable.
1500 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1501 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1502 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1503 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1504 LD_SWITCH_SYSTEM_tmp.
1505 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1506 New variables, set by configure.
1507
eb21eab5
GM
1508 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1509 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1510 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1511 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1512 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1513
49628785
GM
1514 * s/aix4-2.h (C_SWITCH_SYSTEM):
1515 * m/alpha.h (C_SWITCH_MACHINE):
1516 Move to configure.in.
1517 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1518 New variables, set by configure.
1519 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1520 $c_switch_machine and $c_switch_system.
1521
7dff330b
DN
15222010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1523
1524 * s/hpux10-20.h (LIB_STANDARD): New definition.
1525 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1526 on it, not used anymore.
1527
53967e09
CY
15282010-05-03 Chong Yidong <cyd@stupidchicken.com>
1529
1530 * eval.c (internal_condition_case_n): Rename from
1531 internal_condition_case_2.
1532 (internal_condition_case_2): New function.
1533
1534 * xdisp.c (safe_call): Use internal_condition_case_n.
1535
1536 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1537 (internal_delete_file, Frename_file): Callers changed.
1538
1539 * buffer.c (Fkill_buffer):
1540 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1541
1542 * lisp.h: Update prototypes.
1543
3dee6fdb
GM
15442010-05-03 Glenn Morris <rgm@gnu.org>
1545
1546 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1547 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1548 (LIBXT): Set with configure, not cpp.
1549 (LIBX): Remove.
1550 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1551
a101e0fb
DN
15522010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1553
1554 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1555 The FreeBSD is not needed, the default works, Solaris version is
1556 not needed, and the remaining case is not supported by configure.
1557
f63d0028
JD
15582010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1559
1560 * xsmfns.c (CHDIR_OPT): New define.
1561 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1562 restarting emacs.
1563
1564 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1565 shut_down_emacs.
1566
1567 * emacs.c (USAGE1): Mention --chdir.
1568 (main): Handle --chdir.
1569 (standard_args): Add --chdir.
1570 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1571 #5552).
1572
e4814a9f
DN
15732010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1574
cd03c74a
DN
1575 Remove LD_SWITCH_MACHINE.
1576 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1577 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1578
c3a398a1
DN
1579 Clean up IRIX code.
1580 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1581 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1582
87e7285c
DN
1583 Clean up AIX code.
1584 * m/ibmrs6000.inp: Remove file, unused.
1585 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1586 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1587 definition ...
1588 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1589
80f00217
JB
1590 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1591 unused.
e4814a9f 1592
59ca28de
EZ
15932010-05-01 Eli Zaretskii <eliz@gnu.org>
1594
197daef4
EZ
1595 Emulate POSIX_SIGNALS on MS-Windows.
1596
1597 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1598 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1599
1600 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1601 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1602 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1603
80f00217
JB
1604 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1605 New stubs.
197daef4 1606
af7c7572
EZ
1607 Miscellaneous fixes of bidi display.
1608
59ca28de
EZ
1609 * xdisp.c (find_row_end): New function, refactored from display_line.
1610 (display_line): Use it.
017ea819
EZ
1611 (extend_face_to_end_of_line): In almost-filled rows, extend only
1612 if the row is R2L and not continued.
166e930d 1613 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1614 Preserve overlay and string info in row->end.
166e930d
EZ
1615 (insert_left_trunc_glyphs): Support addition of left truncation
1616 glyphs to R2L rows.
b47e0dcf 1617 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1618 glyph between adjacent windows. Fix a crash when a display string
1619 is continued to the next line. Don't return zero if cursor was
1620 found by `cursor' property of a display string.
b47e0dcf
EZ
1621 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1622 test for that explicitly.
59ca28de 1623
7acac9f4
GM
16242010-05-01 Glenn Morris <rgm@gnu.org>
1625
1626 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1627 for clarity.
1628 (OTHER_OBJ): Remove.
1629 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1630 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1631
45841e65
KK
16322010-05-01 Karel Klíč <kklic@redhat.com>
1633
1634 * fileio.c (Ffile_selinux_context): Context functions may return null.
1635
afc61943
DN
16362010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1637
80f00217 1638 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1639
5a1bb006
GM
16402010-04-30 Glenn Morris <rgm@gnu.org>
1641
1642 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1643 (OTHER_OBJ): Define as a separate variable, for clarity.
1644
210af043
J
16452010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1646
1647 * xsettings.c: include limits.h and update file comment.
1648
0a7df391
GM
16492010-04-30 Glenn Morris <rgm@gnu.org>
1650
d5096f16
GM
1651 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1652 Set with configure, not cpp.
1653 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1654
7eb1ac33
GM
1655 * Makefile.in (mallocobj): Remove.
1656 (otherobj): Simplify using @OTHER_OBJ@.
1657
517d086b
GM
1658 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1659 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1660 Don't bother making nsgui.h dependency platform-specific.
1661
0a7df391
GM
1662 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1663
d6d23852
SM
16642010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1665
d2630aef
SM
1666 * process.c (read_process_output, exec_sentinel): Don't burp if the
1667 sentinel/filter kills the current buffer (bug#6060).
1668
f9dddf52 1669 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1670 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1671 Remove unused var `args'.
1672 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1673 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1674 * doc.c (store_function_docstring): Use XSETCAR.
1675
f1e3642a
GM
16762010-04-28 Glenn Morris <rgm@gnu.org>
1677
faf535f8
GM
1678 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1679 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1680
c40f9449
GM
1681 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1682
658f86ca
GM
1683 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1684 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1685
bc0b5f61
GM
1686 * Makefile.in (FONT_OBJ): New, set by configure.
1687 (FONT_DRIVERS): Use $FONT_OBJ.
1688
294c50a0
GM
1689 * Makefile.in (LIBXMU): Set with configure, not cpp.
1690 * s/aix4-2.h (LIBXMU):
1691 * s/hpux10-20.h (LIBXMU):
1692 Remove definition, now set in configure.
1693
e6ec4e99
GM
1694 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1695
f1e3642a
GM
1696 * m/amdx86-64.h [i386]: Move this test to configure.in.
1697
c6ea2936
GM
16982010-04-27 Glenn Morris <rgm@gnu.org>
1699
8fdac2c3
GM
1700 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1701 * s/unixware.h (NEED_LIBW): Remove definition.
1702
986fb647
GM
1703 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1704 (TOOLKIT_LIBW): New, set by configure.
1705 (@X_TOOLKIT_TYPE@): No longer define it.
1706
c6ea2936
GM
1707 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1708 (MOTIF_LIBW): Set with configure, not cpp.
1709 * s/aix4-2.h (LIB_MOTIF):
1710 * s/gnu-linux.h (LIB_MOTIF):
1711 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1712
aaa36002
DN
17132010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1714
1715 Reduce CPP usage.
1716 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1717 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1718 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1719 definitions and undefs. Inline definitions in the only user.
1720 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1721
b678dd8b
GM
17222010-04-27 Glenn Morris <rgm@gnu.org>
1723
76cda504
GM
1724 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1725 since the defaults (set by the system file) are fine in most cases.
1726 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1727 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1728 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1729 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1730 Remove definitions, since they are set correctly in s/gnu-linux.h.
1731 * s/freebsd.h (START_FILES, LIB_STANDARD):
1732 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1733 * s/hpux10-20.h (START_FILES):
1734 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1735 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1736
b678dd8b
GM
1737 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1738 (MOTIF_LIBW): Use $LIBXP.
1739 (otherobj): Use $WIDGET_OBJ.
1740
9452ded1
DN
17412010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1742
7e10844c
DN
1743 * Makefile.in (LIBS_MACHINE): Remove, unused.
1744
9452ded1
DN
1745 Use autoconf instead of cpp for LIB_MATH.
1746 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1747 * s/cygwin.h (LIB_MATH): Likewise.
1748 * Makefile.in (LIB_MATH): Do not define with cpp.
1749 (LIBES): Use autoconf for LIB_MATH.
1750
fcebfc6a
KH
17512010-04-26 Kenichi Handa <handa@m17n.org>
1752
1753 * composite.c (Ffind_composition_internal): Fix the return value
1754 for an automatic composition.
1755
39e2ad1b
DN
17562010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1757
1758 Remove all NO_ARG_ARRAY uses.
1759 * fns.c (concat2, concat3, nconc2):
1760 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1761 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1762 * m/xtensa.h (NO_ARG_ARRAY):
1763 * m/template.h (NO_ARG_ARRAY):
1764 * m/sparc.h (NO_ARG_ARRAY):
1765 * m/sh3.h (NO_ARG_ARRAY):
1766 * m/mips.h (NO_ARG_ARRAY):
1767 * m/macppc.h (NO_ARG_ARRAY):
1768 * m/iris4d.h (NO_ARG_ARRAY):
1769 * m/intel386.h (NO_ARG_ARRAY):
1770 * m/ibms390x.h (NO_ARG_ARRAY):
1771 * m/ibms390.h (NO_ARG_ARRAY):
1772 * m/ibmrs6000.h (NO_ARG_ARRAY):
1773 * m/ia64.h (NO_ARG_ARRAY):
1774 * m/hp800.h (NO_ARG_ARRAY):
1775 * m/arm.h (NO_ARG_ARRAY):
1776 * m/amdx86-64.h (NO_ARG_ARRAY):
1777 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1778
adf4f59c
EZ
17792010-04-25 Eli Zaretskii <eliz@gnu.org>
1780
6bdf5d65
EZ
1781 * xdisp.c (display_line): Don't assume 2nd call to
1782 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1783 (iterate_out_of_display_property): New function, body from pop_it.
1784 (pop_it): Use it.
adf4f59c 1785
dfbbda83
GM
17862010-04-24 Glenn Morris <rgm@gnu.org>
1787
1788 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1789 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1790 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1791 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1792
2d4018aa
EZ
17932010-04-24 Eli Zaretskii <eliz@gnu.org>
1794
a49884a6
EZ
1795 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1796 use `get_next_display_element' and `set_iterator_to_next' to
1797 advance to the next character, when looking for the character that
1798 begins the next row.
1799
76db6fcc 1800 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1801 definition of "struct Lisp_Symbol".
1802
70eab5c1
GM
18032010-04-24 Glenn Morris <rgm@gnu.org>
1804
1805 * Makefile.in (CRT_DIR): New variable, set by configure.
1806 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1807 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1808
1ad4cc3d
DN
18092010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1810
e769f484
DN
1811 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1812
4196ff33
DN
1813 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1814
879b0ee4
DN
1815 Remove redundant flags.
1816 * s/freebsd.h (C_SWITCH_SYSTEM):
1817 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1818 * s/netbsd.h (C_SWITCH_SYSTEM):
1819 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1820 of these.
1821
03cbbcb8
DN
1822 Simplify m/intel386.h.
1823 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1824 user: ecrt0.c.
1825 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1826 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1827 the only user: s/unixware.h.
1828 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1829 from m/intel386.h.
1830 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1831 moved here from m/intel386.h.
1832
1ad4cc3d
DN
1833 * m/mips.h: Remove #if 0 code.
1834
8785b888
EZ
18352010-04-23 Eli Zaretskii <eliz@gnu.org>
1836
728588cc
EZ
1837 Fix display of composed characters from L2R scripts in bidi buffers.
1838 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1839 After advancing IT past the composition, resync the bidi iterator
1840 with IT's position. (Bug#5977)
1841
a63f80b4
DN
18422010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1843
1844 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1845 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1846
ff5dec5c
SM
18472010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1848
1849 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1850
8785b888
EZ
18512010-04-23 Eli Zaretskii <eliz@gnu.org>
1852
58ccf243 1853 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1854 * xdisp.c (pop_it): When the stack is popped after displaying
1855 from a string, bidi-iterate to exit from the text portion covered
1856 by the `display' property or overlay. (Bug#5988, bug#5920)
1857
feeb1604
DN
18582010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1859
8e324eb6
DN
1860 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1861 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1862
809fcaba
DN
1863 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1864 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1865
ed710380
DN
1866 Simplify STARTFILES definition.
1867 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1868 relying on Makefile.in to define it.
1869 * s/cygwin.h (START_FILES): Likewise.
1870 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1871
feeb1604
DN
1872 Clean up Solaris code.
1873 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1874 (LIB_MOTIF): Remove, configure takes care of this.
1875 (NOT_USING_MOTIF): Remove, unused.
1876 * xrdb.c: Remove #if 0-ed #include.
1877 (SYSV): Remove conditional for old SysV.
1878 * sysdep.c (closedir): Remove conditional code for Solaris,
1879 Solaris has closedir.
1880
a0d0b563
JD
18812010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1882
1883 * xsettings.c (read_and_apply_settings): Check if current_font is
1884 NULL before strcmp (Bug#6001).
1885
56bae7c7
DN
18862010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1887
1888 Clean up HP-UX files.
1889 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1890 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1891 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1892 * s/hpux10-20.h: ... to the only user, here.
1893
372b7a95
EZ
18942010-04-21 Eli Zaretskii <eliz@gnu.org>
1895
1896 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1897 use buffer-local values of paragraph-start and paragraph-separate.
1898 <paragraph_start_re, paragraph_separate_re>: Rename from
1899 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1900 (Bug#5992)
1901
f904c0f9
JD
19022010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1903
1904 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1905 current_tool_bar_style are new.
1906 (store_config_changed_event): Rename from store_font_changed_event.
1907 (XSETTINGS_TOOL_BAR_STYLE): New define.
1908 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1909 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1910 HAVE_XFT.
1911 (something_changedCB): store_font_changed_event is now
1912 store_config_changed_event
1913 (parse_settings): Rename from parse_xft_settings. Read
1914 non-xft xsettings outside #ifdef HAVE_XFT.
1915 (read_settings): Renamed from read_xft_settings.
1916 (apply_xft_settings): Take current settings as parameter. Do not
1917 call read_(xft)_settings.
1918 (read_and_apply_settings): New function.
1919 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1920 read_and_apply_settings if there are settings to be read.
1921 (init_xsettings): Renamed from init_xfd_settings.
1922 Call read_and_apply_settings unconditionally.
1923 (xsettings_initialize): Call init_xsettings.
1924 (Ftool_bar_get_system_style): New function.
1925 (syms_of_xsettings): Define Qmonospace_font_name and
1926 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1927 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1928 dynamic-setting.
31a01b90 1929 Move misplaced HAVE_GCONF
f904c0f9
JD
1930
1931 * xsettings.h (Ftool_bar_get_system_style): Declare.
1932
1933 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1934 Qtext, Qboth, Qboth_horiz are new.
1935 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1936 Vtool_bar_style, tool_bar_max_label_size.
1937
1938 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1939
1940 * keyboard.c: QClabel is new.
1941 (parse_tool_bar_item): Take out QClabel from tool bar items.
1942 Try to construct a label if ther is no QClabel.
1943 (syms_of_keyboard): Intern :label as QClabel.
1944
1945 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1946 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1947 New.
1948
1949 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1950 dynamic-setting.el.
1951
1952 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1953 (xg_make_tool_item, xg_show_toolbar_item): New function.
1954 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1955 Call xg_make_tool_item to make a tool bar item.
1956 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1957
1958 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1959 into account for toolbars.
1960
c632dfda
JD
19612010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1962
1963 * data.c (make_blv): Declarations before code (Bug#5993).
1964
10efe302
GM
19652010-04-21 Glenn Morris <rgm@gnu.org>
1966
1967 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1968 Define using autoconf, not cpp.
1969 (LIBXSM): New variable, set by autoconf.
1970 (LIBXT): Use $LIBXSM.
1971
4285ac5a
DN
19722010-04-21 Dan Nicolaescu <local_user@dannlt>
1973
3ec759e7
DN
1974 Remove NOMULTIPLEJOBS, unused.
1975 * s/template.h (NOMULTIPLEJOBS):
1976 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1977
4285ac5a
DN
1978 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1979 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1980 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1981 detects -znocombreloc and passes it to the linker
1982 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1983
2807228d
GM
19842010-04-21 Glenn Morris <rgm@gnu.org>
1985
1986 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1987
574c05e2
KK
19882010-04-21 Karel Klíč <kklic@redhat.com>
1989
1990 * Makefile.in (LIBSELINUX_LIBS): New.
1991 (LIBES): Add $LIBSELINUX_LIBS.
1992 * eval.c, lisp.h (call7): New function.
1993 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1994 (Ffile_selinux_context, Fset_file_selinux_context):
1995 New functions.
1996 (Fcopy_file): New parameter preserve-selinux-context.
1997 (Frename_file): Preserve selinux context when renaming by copy-file.
1998
91eac4bb 19992010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2000 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2001
50426a04
JB
2002 Don't depend on cm.c or termcap.c on Windows, use stubs.
2003 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2004 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2005 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2006 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2007 (sys_tputs, sys_tgetstr): New stubs.
2008 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2009 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2010
938efb77
JB
20112010-04-20 Juanma Barranquero <lekktu@gmail.com>
2012
2013 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2014
b4bf28b7
SM
20152010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2016
8b1e1112
SM
2017 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2018 Just signal a warning rather than an error when inside a let.
2019 (Fmake_variable_frame_local): Add the same test.
2020
933ac235
SM
2021 * font.c (syms_of_font): Make the style table vars read-only.
2022
b4bf28b7
SM
2023 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2024 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2025
2026 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2027
93d68d0c
EZ
20282010-04-20 Eli Zaretskii <eliz@gnu.org>
2029
2030 Fix R2L paragraph display on TTY.
2031
2032 * xdisp.c (unproduce_glyphs): New function.
2033 (display_line): Use it when produced glyphs are discarded from R2L
2034 glyph rows.
2035 (append_composite_glyph): In R2L rows, prepend the glyph rather
2036 than appending it.
2037
2038 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2039 rather than append it. Set up the resolved_level and bidi_type
2040 attributes of the appended glyph.
283ccc18
EZ
2041 (produce_special_glyphs): Mirror the backslash continuation
2042 character in R2L lines.
93d68d0c 2043
283ccc18 2044 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2045
283ccc18
EZ
2046 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2047 append_stretch_glyph.
2048 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2049 off-by-one error in computing x at end of text in the row.
2050 (append_stretch_glyph): In reversed row, prepend the glyph rather
2051 than append it. Set resolved_level and bidi_type of the glyph.
2052 (extend_face_to_end_of_line): If the row is reversed, prepend a
2053 stretch glyph whose width is such that the rightmost glyph will be
2054 drawn at the right margin of the window. Fix off-by-one error on
2055 TTY frames in testing whether a line needs face extension. Fix
2056 face extension at ZV. If this is the last glyph row, use
2057 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2058 region face.
2059 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2060 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2061 row->continuation_lines_width.
283ccc18
EZ
2062 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2063 are at ZV. Fixes a crash when reseated to ZV by
2064 try_window_reusing_current_matrix.
45903529
EZ
2065 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2066 which happens with R2L glyph rows. Fixes a crash when inserting a
2067 character at end of an R2L line.
283ccc18
EZ
2068 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2069 treat them as having zero-width characters. Improve comments.
2070 Don't reverse pos_before and pos_after for reversed glyph rows.
2071 Set cursor.x to negative value when the cursor might be on the
2072 left fringe.
2073 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2074 left fringe, not the right one.
f951a506
EZ
2075 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2076 (erase_phys_cursor): For reversed cursor_row, support cursor on
2077 the left fringe.
2078
283ccc18
EZ
2079 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2080 of continuation indicators on the fringes.
2081 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2082 left fringe.
2083
f951a506
EZ
2084 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2085 draw cursor on the left fringe.
2086
2087 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2088 cursor on the left fringe.
2089
f951a506
EZ
2090 * dispnew.c (update_text_area): Handle reversed desired rows when
2091 the cursor is on the left fringe.
2092 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2093 below, not by 0, for when the cursor is on the left fringe.
2094
3bb49aaf
JD
20952010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2096
2097 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2098 widget is a scrollbar.
2099
c0be27fd
KH
21002010-04-20 Kenichi Handa <handa@m17n.org>
2101
2102 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2103 only when the arg CHARSET_LIST is nil.
2104
ce5b453a
SM
21052010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2106
2107 Make variable forwarding explicit rather the using special values.
2108 Basically, this makes the structure of buffer-local values and object
2109 forwarding explicit in the type of Lisp_Symbols rather than use
2110 special Lisp_Objects for that. This tends to lead to slightly more
2111 verbose code, but is more C-like, simpler, and makes it easier to make
2112 sure we handled all cases, among other things by letting the compiler
2113 help us check it.
2114 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2115 Removing forwarding objects.
2116 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2117 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2118 explicit rather than hiding them inside Lisp_Object "values".
2119 (XFWDTYPE): New macro.
2120 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2121 (XBUFFER_LOCAL_VALUE): Remove.
2122 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2123 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2124 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2125 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2126 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2127 Remove the Lisp_Misc_* header.
2128 (struct Lisp_Buffer_Local_Value): Redefine.
2129 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2130 (struct Lisp_Misc_Any): Add filler to get the right size.
2131 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2132 Lisp_Intfwd.
2133 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2134 (DEFVAR_KBOARD): Allocate a forwarding object.
2135 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2136 (let_shadows_global_binding_p): New function.
2137 (union Lisp_Val_Fwd): New type.
2138 (make_blv): New function.
2139 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2140 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2141 (swap_in_symval_forwarding, find_symbol_value, Fset)
2142 (let_shadows_buffer_binding_p, set_internal, default_value)
2143 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2144 (Fkill_local_variable, Fmake_variable_frame_local)
2145 (Flocal_variable_p, Flocal_variable_if_set_p)
2146 (Fvariable_binding_locus):
2147 * xdisp.c (select_frame_for_redisplay):
2148 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2149 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2150 * frame.c (store_frame_param):
2151 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2152 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2153 value structure.
2154 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2155 (clone_per_buffer_values): Only adjust markers into the current buffer.
2156 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2157 (Fbuffer_local_value, set_buffer_internal_1)
2158 (swap_out_buffer_local_variables):
2159 Adapt to the new symbol value structure.
2160 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2161 (defvar_per_buffer): Take a new arg for the fwd object.
2162 (buffer_lisp_local_variables): Return a proper alist (different fix
2163 for bug#4138).
2164 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2165 (Fgarbage_collect): Don't handle buffer_defaults specially.
2166 (mark_object): Handle new symbol value structure rather than the old
2167 special Lisp_Misc_* objects.
2168 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2169 * term.c (set_tty_color_mode):
2170 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2171 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2172 a buffer_local_flags.
2173 * print.c (print_object): Get rid of impossible forwarding objects.
2174
fd3998ff
EZ
21752010-04-19 Eli Zaretskii <eliz@gnu.org>
2176
2177 * bidi.c (bidi_get_type, bidi_get_category)
2178 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2179 (bidi_type_of_next_char, bidi_level_of_next_char):
2180 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2181
e42cd1a7
JB
21822010-04-19 Juanma Barranquero <lekktu@gmail.com>
2183
2184 * dired.c (Ffile_attributes): Fix typo in docstring.
2185
6e104790 21862010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2187
2188 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2189 NSInteger (Bug#5811).
2190
6e104790 21912010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2192
2193 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2194 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2195
6e104790 21962010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2197
2198 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2199
6e104790
SM
22002010-04-19 Chong Yidong <cyd@stupidchicken.com>
2201
2202 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2203 terminal frames (Bug#5837).
2204
37dcfea0
EZ
22052010-04-19 Eli Zaretskii <eliz@gnu.org>
2206
d1da276f
EZ
2207 * .gdbinit (xsubchartable): New command.
2208
37dcfea0
EZ
22092010-04-19 Eli Zaretskii <eliz@gnu.org>
2210
2211 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2212 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2213 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2214 and
2215 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2216
e9515805
SM
22172010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2218
2219 * alloc.c (Fpurecopy): Hash-cons if requested.
2220 (syms_of_alloc): Update purify-flag docstring.
2221
22aa44a8
JD
22222010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2223
2224 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2225 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2226
ebb5722e
EZ
22272010-04-17 Eli Zaretskii <eliz@gnu.org>
2228
2229 Fix a crash when an NSM character is inserted at BEGV.
2230
2231 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2232 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2233 NEUTRAL_B or UNKNOWN_BT.
2234
0f4442ef
EZ
22352010-04-16 Eli Zaretskii <eliz@gnu.org>
2236
2237 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2238 other rows with cursor unless they are different from this row and
2239 this row is part of a continued line. (Bug#5943)
2240
7d4e45f8
DN
22412010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2242
2243 * s/freebsd.h: Restore osreldate.h include.
2244 Suggested by Naohiro Aota.
2245
5ba5ec85
J
22462010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2247
2248 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2249
20af301d
CY
22502010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2251
2252 * s/cygwin.h: Avoid linking against static libgcc.
2253
a4b000fb
JL
22542010-04-15 Juri Linkov <juri@jurta.org>
2255
2256 * window.c: Add Qscroll_command.
2257 Remove Vscroll_preserve_screen_position_commands.
2258 (window_scroll_pixel_based, window_scroll_line_based): Check the
2259 `scroll-command' property on the last command instead of searching
2260 the last command in Vscroll_preserve_screen_position_commands.
2261 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2262 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2263 (scroll-preserve-screen-position): Doc fix.
2264 (Vscroll_preserve_screen_position_commands): Remove variable.
2265
bc319ba4
DN
22662010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2267
6bb24457
DN
2268 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2269
19d4c244
DN
22702010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2271
2272 Reduce cpp use in Makefile.in.
2273 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2274 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2275 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2276 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2277 (CRT0_COMPILE): Remove, inline it in the only user.
2278
32129746
JL
22792010-04-14 Juri Linkov <juri@jurta.org>
2280
2281 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2282 `scroll-up-command' and `M-v' from `scroll-down' to
2283 `scroll-down-command'.
2284
9013a7f8
JL
22852010-04-14 Juri Linkov <juri@jurta.org>
2286
2287 * window.c (Vscroll_preserve_screen_position_commands): New variable
2288 with the default value as the list of Qscroll_down and Qscroll_up.
2289 (window_scroll_pixel_based, window_scroll_line_based): Search the
2290 last command in the list Vscroll_preserve_screen_position_commands
2291 instead of comparing with Qscroll_up and Qscroll_down.
2292
4bef8d26
JD
22932010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2294
92848133
JD
2295 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2296 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2297 does that.
2298
4bef8d26
JD
2299 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2300 to zero.
2301
58b963f7
SM
23022010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2303
84164a0d
SM
2304 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2305
2b0a91e7
SM
2306 Try to solve the problem of spurious EOF chars in long lines of text
2307 sent to interactive subprocesses.
2308 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2309 (system_process_attributes): Remove unused var `ttotal'.
2310 * process.c (send_process): Don't bother breaking long line with EOF
2311 chars when talking to ttys any more.
2312 (wait_reading_process_output): Output a warning when called in such
2313 a way that it could block without being interruptible.
2314
58b963f7
SM
2315 Try to detect file modification within the same second.
2316 * buffer.h (struct buffer): New field modtime_size.
2317 * buffer.c (reset_buffer): Initialize it.
2318 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2319 (Fverify_visited_file_modtime): Check it.
2320 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2321 (Fset_visited_file_modtime): Set (or clear) it.
2322
01f5787b
SM
23232010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2324
2325 * process.c (status_notify): Remove unused var `ro'.
2326
83725342
JD
23272010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2328
2329 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2330 more than one visual (Bug#5938).
2331
b9465836
DN
23322010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2333
50426a04
JB
2334 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2335 Undefine.
b9465836 2336
8d9c8ece
DN
23372010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2338
b1f52161
DN
2339 Remove C_SWITCH_SYSTEM_TEMACS.
2340 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2341 (malloc, realloc, free): Use emacs, not temacs for conditional
2342 definition.
2343
2344 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2345 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2346
8d9c8ece
DN
2347 Use autoconf, not cpp for some variables.
2348 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2349 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2350 (ALL_CFLAGS): Use them as make variables.
2351 (really-lwlib, really-oldXMenu): Do not pass them.
2352
1ecb2d3f
JD
23532010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2354
2355 * xmenu.c (apply_systemfont_to_dialog): New.
2356 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2357
3a4fa2f2
SM
23582010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2359
97e53006
SM
2360 * process.c (exec_sentinel): Preserve current-buffer.
2361
3a4fa2f2
SM
2362 * process.c (read_process_output): Move the save-current-buffer to
2363 apply to both the filter and the non-filter branches.
2364
88df7221
DN
23652010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2366
2367 * s/msdos.h (UNEXEC): New definition.
2368
5634ff85
YM
23692010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2370
6eff5c3d
YM
2371 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2372 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2373
2374 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2375 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2376 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2377 TRY_WINDOW_CHECK_MARGINS.
2378
2379 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2380 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2381 width only when it is for padding.
5634ff85 2382
b13aef54
J
23832010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2384
2385 * xfns.c (Fx_show_tip): Call try_window in a loop until
2386 fonts_changed_p is zero (Bug#2423).
2387
21d28484
EZ
23882010-04-08 Eli Zaretskii <eliz@gnu.org>
2389
2390 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2391 the end of TEXT_AREA. (Bug#5856)
2392
0269ef77
JD
23932010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2394
2395 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2396 HAVE_GCONF.
2397
5930fe97
EZ
23982010-04-08 Eli Zaretskii <eliz@gnu.org>
2399
2400 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2401 prev.orig_type, for resolving type of NSM. (Bug#5858)
2402
99852628
JD
24032010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2404
2405 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2406 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2407 in current_font.
2408 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2409 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2410 New functions.
2411 (syms_of_xsettings): Initialize current_font.
2412 defsubr Sfont_get_system_normal_font.
99852628
JD
2413
2414 * xsettings.h (Ffont_get_system_normal_font,
2415 xsettings_get_system_normal_font): Declare.
2416
2417 * xfns.c (extern xlwmenu_default_font): Remove.
2418 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2419 to xlwmenu.c.
2420
2421 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2422 menu items in UTF-8.
2423
2424 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2425 (apply_systemfont_to_menu): New function.
2426 (set_frame_menubar, create_and_show_popup_menu): Call
2427 apply_systemfont_to_menu.
2428
7fc874c4
J
24292010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2430
2431 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2432 FRAME_LINE_TO_PIXEL_Y.
2433
2434 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2435 pixelwidth/height.
2436
863bf481
DN
24372010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2438
5e5a3b92
DN
2439 Simplify code for HP machines.
2440 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2441 for GNU_LINUX, not needed.
2442 (UNEXEC, NEED_BSDTTY): Move definitions...
2443 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2444
863bf481
DN
2445 * m/iris4d.h (UNEXEC): Move definition ...
2446 * s/irix6-5.h (UNEXEC): ... here.
2447
3e6bec3b
JD
24482010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2449
2450 * xfns.c (set_machine_and_pid_properties): New function.
2451 (Fx_create_frame): Call set_machine_and_pid_properties.
2452
2912322b
SM
24532010-04-03 Eli Zaretskii <eliz@gnu.org>
2454
1502b819
EZ
2455 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2456 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2457 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2458
2912322b
SM
2459 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2460 in this function. (Bug#5703)
2461
24622010-04-03 Chong Yidong <cyd@stupidchicken.com>
2463
2464 * nsterm.h: Fix last change.
2465
c435b432
DN
24662010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2467
a568f507
DN
2468 * m/intel386.h (NO_REMAP): Move definition ...
2469 * s/msdos.h (NO_REMAP): ... here.
2470
4cd9f6c2
DN
2471 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2472
c435b432
DN
2473 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2474 used on those platforms.
2475
42a2c622
DN
24762010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2477
2478 Remove extern errno declarations.
2479 * xterm.c:
2480 * xrdb.c:
2481 * w32term.c:
2482 * unexec.c:
2483 * unexaix.c:
2484 * sysdep.c:
2485 * process.c:
2486 * lread.c:
2487 * keyboard.c:
2488 * floatfns.c:
2489 * filelock.c:
2490 * fileio.c:
2491 * emacs.c (main):
2492 * ecrt0.c:
2493 * dispnew.c:
2494 * callproc.c:
2495 * buffer.c: Remove errno extern declarations.
2496 * s/netbsd.h (NEED_ERRNO): Remove.
2497
8224f93d
DN
24982010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2499
2500 Remove all uses of LIBX11_SYSTEM.
2501 * Makefile.in (LIBX11_SYSTEM): Remove.
2502 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2503 instead.
2504
814062c7
EZ
25052010-04-01 Eli Zaretskii <eliz@gnu.org>
2506
ed68db4d
EZ
2507 Remove support for DJGPP v1.x (bug#5813).
2508
2509 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2510 * s/msdos.h:
2511 * unexec.c (make_hdr, copy_text_and_data):
2512 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2513 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2514 (IT_set_terminal_modes, __write, _rename, gethostname)
2515 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2516 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2517 the value of __DJGPP__.
ed68db4d
EZ
2518 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2519 compatibility code.
8224f93d
DN
2520 * lread.c:
2521 * gmalloc.c (memalign):
2522 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2523 * emacs.c (main):
2524 * dosfns.c (init_dosfns):
ed68db4d
EZ
2525 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2526
52f4d8d5
EZ
25272010-04-01 Eli Zaretskii <eliz@gnu.org>
2528
814062c7
EZ
2529 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2530 string with `cursor' property comes from an `after-string'
2531 overlay. (Bug#5816)
2532
0dc2e11d
GM
25332010-04-01 Glenn Morris <rgm@gnu.org>
2534
2535 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2536 Define as Makefile variables.
2537 (LIBX): Use above variables rather than directly using autoconf.
2538
1d29df59
DN
25392010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2540
2541 Clean up BSD_SYSTEM use.
2542 * xterm.c:
2543 * process.c:
2544 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2545 for including <sys/ioctl.h>.
2546 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2547 code is only used for MSDOS.
2548
1546c559
JL
25492010-03-31 Juri Linkov <juri@jurta.org>
2550
2551 * image.c: Add `Qextension_data'.
2552 (syms_of_image): Initialize and staticpro `Qextension_data'.
2553 (Fimage_metadata): Rename from `Fimage_extension_data'.
2554 (gif_load): Put GIF extension data to the property
2555 `Qextension_data'.
2556
6521c534
CY
25572010-03-31 Chong Yidong <cyd@stupidchicken.com>
2558
2559 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2560 * nsterm.h: Fix prototype.
2561
52c30783
EZ
25622010-03-31 Eli Zaretskii <eliz@gnu.org>
2563
2564 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2565 trailing whitespace in right-to-left rows.
2566
855a0da7
SM
25672010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2568
2569 Get rid of the direct_output optimizations.
2570 * keyboard.c (nonundocount): Remove extern declaration.
2571 (command_loop_1): Remove brittle optimisation for cheap and
2572 common operations.
2573 * xdisp.c (redisplay_internal): Don't bother checking
2574 redisplay_performed_directly_p any more.
2575 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2576 any more.
2577 * dispnew.c (redisplay_performed_directly_p)
2578 (direct_output_for_insert, direct_output_forward_char):
2579 * dispextern.h (redisplay_performed_directly_p)
2580 (direct_output_for_insert, direct_output_forward_char): Remove.
2581 * cmds.c (nonundocount): Make it static.
2582
85738751 25832010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2584
2585 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2586
85738751 25872010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2588
2589 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2590 invisible (Bug#5766).
2591
85738751 25922010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2593
855a0da7
SM
2594 * xdisp.c (x_consider_frame_title, update_window_cursor):
2595 Remove HAVE_NS conditionals.
194d44e7 2596 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2597
2598 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2599 filename for the title.
2600 (ns_set_doc_edited): Do nothing if the selected window is a
2601 minibuffer window.
2602
2603 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2604 ns_set_doc_edited.
2605
2606 * nsterm.m: Remove unneeded prototype.
2607
85738751 26082010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2609
2610 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2611 in the DOC file. (Bug#5336)
2612
85738751 26132010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2614
2615 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2616
75d1428c
SM
26172010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2618
2619 * window.c (keys_of_window): Remove redundant/overridden bindings.
2620
82043cfb
EZ
26212010-03-30 Eli Zaretskii <eliz@gnu.org>
2622
2623 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2624 Restore original behavior when the iterator is not bidi_p.
2625
b5dd0ae7
DN
26262010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2627
2628 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2629
bd924a5d
EZ
26302010-03-30 Eli Zaretskii <eliz@gnu.org>
2631
2632 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2633 are outside the range of cached character positions.
2634
3580374b
JB
26352010-03-30 Juanma Barranquero <lekktu@gmail.com>
2636
2637 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2638
a7b02820
EZ
26392010-03-30 Eli Zaretskii <eliz@gnu.org>
2640
2641 Initial support for bidirectional editing.
2642
2643 * Makefile.in (obj): Include bidi.o.
2644 (bidi.o): New target.
2645
2646 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2647 ($(BLD)/bidi.$(O)): New target.
2648
2649 * bidi.c: New file.
2650
2651 * buffer.h (struct buffer): New members bidi_display_reordering
2652 and bidi_paragraph_direction.
2653
2654 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2655 and bidi_paragraph_direction.
2656 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2657 and bidi-paragraph-direction.
2658 (Fbuffer_swap_text): Swap the values of
2659 bidi_display_reordering and bidi_paragraph_direction.
2660
2661 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2662 (bidi_type_t, bidi_dir_t): New types.
2663 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2664 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2665 prev_stop, base_level_stop, and eol_pos.
2666 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2667 (IT_STACK_SIZE): Enlarge to 5.
2668 (struct glyph_row): New member reversed_p.
2669 <string_buffer_position>: Update prototype.
2670 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2671 glyph_row if bidi_it.paragraph_dir == R2L.
2672 (struct glyph): New members resolved_level and bidi_type.
2673
2674 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2675 processing or buffer's direction is right-to-left.
2676 (prepare_desired_row): Preserve the reversed_p flag.
2677 (row_equal_p): Compare the reversed_p attributes as well.
2678
2679 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2680 bidi_init_it and set it->paragraph_embedding from the current
2681 buffer's value of bidi_paragraph_direction.
2682 (reseat_1): Initialize bidi_it.first_elt.
2683 (set_iterator_to_next, next_element_from_buffer): Use the value of
2684 paragraph_embedding to determine the paragraph direction.
2685 (set_iterator_to_next): Under bidi reordering, call
2686 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2687 new_paragraph flag is set in the bidi iterator.
2688 (next_element_from_buffer): If bidi_it.first_elt is set,
2689 initialize paragraph direction and find the first character to
2690 display in the visual order. If reseated to a middle of a line,
2691 prime the bidi iterator starting at the line's beginning. Handle
2692 the situation where we overstepped stop_charpos due to
2693 non-linearity of the bidi iteration. Likewise for when we back up
2694 beyond the previous stop_charpos. When moving across stop_charpos,
2695 record it in prev_stop.
2696 (display_line): Set row->end and it->start for the next row to the
2697 next character in logical order. Always extend reversed_p rows to
2698 the end of line, even if they end at ZV. Copy the reversed_p flag
2699 to the next glyph row. Keep calling set_cursor_from_row for
2700 bidi-reordered rows even if we already have a possible candidate
2701 for cursor position. Set row_end after all the row's glyphs have
2702 been produced, by looping over the glyphs. Record the position
2703 after EOL in it->eol_pos, and use it to set end_pos of the last
2704 row produced for a continued line.
2705 <Qright_to_left, Qleft_to_right>: New variables.
2706 (syms_of_xdisp): Initialize and staticpro them.
2707 (string_buffer_position_lim): New function.
2708 (string_buffer_position): Most of code moved to
2709 string_buffer_position_lim. Last argument and return value are
2710 now EMACS_INT; all callers changed.
2711 (set_cursor_from_row): Rewritten to support bidirectional text and
2712 reversed glyph rows.
2713 (text_outside_line_unchanged_p, try_window_id): Disable
2714 optimizations if we are reordering bidirectional text and the
2715 paragraph direction can be affected by the change.
2716 (append_glyph, append_composite_glyph)
2717 (produce_image_glyph, append_stretch_glyph): Set the
2718 resolved_level and bidi_type members of each glyph.
2719 (append_glyph): If the glyph row is reversed, prepend the glyph
2720 rather than appending it.
2721 (handle_stop_backwards): New function.
2722 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2723 (reseat): call handle_stop_backwards to recompute prev_stop and
2724 base_level_stop for the new position.
2725 (handle_invisible_prop): Under bidi iteration, skip invisible text
2726 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2727 paragraph direction. Update IT->prev_stop after skipping
2728 invisible text.
2729 (move_it_in_display_line_to): New variables prev_method
2730 and prev_pos. Compare for strict equality in
2731 BUFFER_POS_REACHED_P.
2732 (try_cursor_movement): Examine all the candidate rows that occlude
2733 point, to return the best match. If rows are bidi-reordered
2734 and point moved backwards, back up to the row that is not a
2735 continuation line, and start looking for a suitable row from
2736 there.
2737
2738 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2739 rather than appending, if the glyph_row's reversed_p flag is set.
2740 Set the resolved_level and bidi_type members of each glyph.
2741
2742 * .gdbinit (pbiditype): New command.
2743 (pgx): Use it to display bidi level and type of the glyph.
2744 (pitx): Display some bidi information about the iterator.
2745 (prowlims, pmtxrows): New commands.
2746
32a8894e
DN
27472010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2748
2749 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2750 * s/usg5-4.h (LIBS_DEBUG):
2751 * s/irix6-5.h (C_DEBUG_SWITCH):
2752 * s/gnu-linux.h (LIBS_DEBUG):
2753 * s/darwin.h (LIBS_DEBUG):
2754 * s/bsd-common.h (LIBS_DEBUG):
2755 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2756 * m/iris4d.h (LIBS_DEBUG):
2757 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2758
2759 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2760 (LIBS_DEBUG): Remove definition.
2761
649dbf36
CY
27622010-03-27 Chong Yidong <cyd@stupidchicken.com>
2763
2764 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2765 Windows.
2766
cad4261f
YM
27672010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2768
2769 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2770 `connect' (Bug#5723).
2771
cd591dbc
HE
27722010-03-25 Helmut Eller <eller.helmut@gmail.com>
2773
2774 * process.c (Fmake_network_process): Call `select' for interrupted
2775 `connect' rather than creating new socket (Bug#5173).
2776
e867cb5d 27772010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2778
2779 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2780
2781 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2782
2783 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2784
e867cb5d 27852010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2786
2787 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2788 XLoadQueryFont.
2789
e867cb5d 27902010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2791
2792 * coding.c (decode_coding_ccl): Fix previous change for the
2793 multibyte case.
fb608df3
KH
2794 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2795 case that the output buffer is fullfilled.
2796 (encode_coding): Setup ccl program here.
fbdc1721 2797
5845f0ed
DN
27982010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2799
814fb708
DN
2800 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2801
5845f0ed
DN
2802 Simplify LIBS_MACHINE definitions.
2803 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2804 * m/iris4d.h (LIBS_MACHINE): Likewise.
2805 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2806 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2807 * s/netbsd.h: Remove commented out code.
5845f0ed 2808
b7064064
DN
28092010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2810
df7734b2
DN
2811 Remove dead code dealing with POSIX_SIGNALS.
2812 * atimer.c (set_alarm): Remove dead code, all USG systems define
2813 POSIX_SIGNALS.
2814 * data.c (arith_error): Likewise.
2815 * keyboard.c (input_available_signal, handle_user_signal)
2816 (interrupt_signal): Likewise.
2817 * process.c (sigchld_handler): Likewise.
2818 (create_process): Remove if 0 code. Remove HPUX conditional when
2819 !defined (POSIX_SIGNALS), it cannot be true.
2820 * syssignal.h: Remove USG5_4 and USG conditionals when
2821 !POSIX_SIGNALS, they cannot be true.
2822
b7064064
DN
2823 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2824 NO_SOCK_SIGIO, not used anymore.
2825
55da5ee3
DN
28262010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2827
0be96e3a
DN
2828 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2829 support vax on BSDs.
2830
55da5ee3
DN
2831 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2832 * s/aix4-2.h (ORDINARY_LINK): ... here.
2833
c0282183
AS
28342010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2835
82c3d67a
AS
2836 * Makefile.in (abs_builddir): Define.
2837 (bootstrap_exe): Use it.
2838 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2839
3613edce
SM
28402010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2841
2842 * Makefile.in (bootstrap_exe): Use an absolute name.
2843
7f110ddc
DN
28442010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2845
22e87574
DN
2846 Remove support for old GNU/Linux using libc version 5.
2847 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2848 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2849
05a670e6
DN
2850 Consolidate redundant definitions in s/bsd-common.h.
2851 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2852 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2853 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2854 doing it in all files that include this one.
2855 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2856 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2857 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2858 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2859 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2860 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2861 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2862 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2863 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2864
2968f561
DN
2865 Consolidate redundant definitions.
2866 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2867 it's undefined in all files that include this one.
2868 (POSIX_SIGNALS): Define here instead of doing it in all files that
2869 include this one.
2870 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2871 (POSIX_SIGNALS): Do not define.
2872 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2873 (POSIX_SIGNALS): Do not define.
2874 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2875 (POSIX_SIGNALS): Do not define.
2876
15d25dc0
DN
2877 Remove support for old UNIX System V systems.
2878 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2879 * s/usg-5-4-2.h: Remove.
2880
07e339e4
DN
2881 Remove support for Solaris on PPC and for old versions.
2882 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2883 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2884 that cancel each other.
2885 * s/sol2-3.h:
2886 * s/sol2-4.h:
2887 * s/sol2-5.h: Remove.
2888 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2889 (NO_REMAP): Remove, unused.
2890 (UNEXEC): Move definition ...
2891 * s/aix4-2.h (UNEXEC): ... here.
2892
7f110ddc
DN
2893 * s/openbsd.h: Remove support for non-ELF and for systems that do
2894 not support shared libraries.
2895 * s/netbsd.h:
2896 * s/freebsd.h: Likewise.
2897
605f35cd
DN
28982010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2899
2900 Remove non-working support for lynxos 3.0.
2901 * s/lynxos.h: Remove file.
2902
2903 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2904 COFF_BSD_SYMBOLS, nothing defines it anymore.
2905
aed71cf4
DN
29062010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2907
2908 Remove obsolete uses of HAVE_SHM.
2909 * emacs.c (standard_args):
2910 (Fdump_emacs):
2911 (syms_of_emacs): Remove code depending on HAVE_SHM.
2912
2913 * alloc.c: Remove HAVE_SHM dependent definition.
2914
2915 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2916
aded53ff
GM
29172010-03-18 Glenn Morris <rgm@gnu.org>
2918
17284745
GM
2919 * emacs.c (USAGE4): Hard-code bug address.
2920 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2921 (bug_reporting_address): Remove.
2922 (main): Don't call bug_reporting_address.
2923
aded53ff
GM
2924 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2925 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2926
303500aa
CY
29272010-03-15 Chong Yidong <cyd@stupidchicken.com>
2928
2929 * xfns.c (Fx_create_frame):
2930 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2931 on left.
2932
cef3058f
CY
29332010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2934
2935 * editfns.c (Fformat): Account for string precision when computing
2936 field width (Bug#5710).
2937
a647d59d
CY
29382010-03-12 Chong Yidong <cyd@stupidchicken.com>
2939
4fa42018
CY
2940 * xfns.c (Fx_create_frame): Set default to Qright.
2941
a647d59d
CY
2942 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2943 all window systems.
2944
6da23aaa
EZ
29452010-03-12 Eli Zaretskii <eliz@gnu.org>
2946
a96f6398 2947 These changes remove termcap.c from the build on Posix platforms.
83d02def 2948 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2949 (MSDOS_OBJ): ...to here.
2950 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2951 now identical to when LIBS_TERMCAP is defined.
2952
2953 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2954
2955 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2956
a96f6398 2957 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2958
288f9fc0
CY
29592010-03-10 Chong Yidong <cyd@stupidchicken.com>
2960
2961 * Branch for 23.2.
2962
d48cd3f4
SM
29632010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2964
2965 Cleanup setup of gl_state in various parts of the code.
2966 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2967 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2968 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2969 (skip_chars):
2970 * regex.c (regex_compile): Use it.
2971 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2972 it's now set in regex_compile when/if we need it.
2973
618db430
SM
29742010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2975
c0335e02
SM
2976 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2977 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2978 (QUIT): Use it to consolidate code and remove redundancy.
2979 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2980
254c06a8
SM
2981 * regex.c (regex_compile): Setup gl_state as well.
2982
618db430
SM
2983 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2984 (in_classes): Use CONSP before XCAR/XCDR.
2985
233f0c9f
CY
29862010-03-03 Chong Yidong <cyd@stupidchicken.com>
2987
2988 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2989 definitions, so that keyboard macros are correctly handled
2990 (Bug#5481).
2991
75f80e63
EZ
29922010-03-02 Eli Zaretskii <eliz@gnu.org>
2993
2994 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2995 text that could be relocated inside the call to emacs_mule_char.
2996 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2997 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2998
dcfb9bc4
KH
29992010-03-02 Kenichi Handa <handa@m17n.org>
3000
fc9a17bc
KH
3001 * character.c (parse_str_as_multibyte): Fix handling of the
3002 multibyte form of raw-bytes.
3003 (str_as_multibyte): Likewise.
3004
dcfb9bc4
KH
3005 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3006 form of raw-bytes.
3007
412c01b6
CY
30082010-02-28 Chong Yidong <cyd@stupidchicken.com>
3009
3010 * charset.c (load_charset_map_from_file)
3011 (load_charset_map_from_vector): Zero out allocated
3012 charset_map_entries before using them.
3013
df7e1ea0
AS
30142010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3015
3016 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3017
fe69a722
CY
30182010-02-27 Chong Yidong <cyd@stupidchicken.com>
3019
4ed28cf4
CY
3020 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3021 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3022
7379cfce
KH
30232010-02-26 Kenichi Handa <handa@m17n.org>
3024
f88cc4d6
KH
3025 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3026
7379cfce
KH
3027 * xdisp.c (reseat_to_string): Fix previous change.
3028
cf2fdcfb
CY
30292010-02-26 David Reitter <david.reitter@gmail.com>
3030
3031 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3032 Lisp_Object (Bug#4736).
3033
cc6c7c75
KH
30342010-02-25 Kenichi Handa <handa@m17n.org>
3035
3036 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3037
32e737d7
JD
30382010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3039
3040 * xterm.c (XTflash): Move declarations before statements.
3041
3042 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3043 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3044 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3045 (xg_create_tool_bar): Remove unused variables.
3046 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3047 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3048
676cae9f
CY
30492010-02-21 Chong Yidong <cyd@stupidchicken.com>
3050
3051 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3052
886cc2b8
SM
30532010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3054
3055 * term.c (fatal): Add a final \n if needed (bug#5596).
3056
ddb2d8e2
CY
30572010-02-18 Chong Yidong <cyd@stupidchicken.com>
3058
3059 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3060
2a4f8d3d
GM
30612010-02-18 Glenn Morris <rgm@gnu.org>
3062
3063 * callint.c (Finteractive): Doc fix.
3064
ebaf11b6
KH
30652010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3066
886cc2b8
SM
3067 * coding.c (record_conversion_result):
3068 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3069 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3070 memory allocation error.
3071
d0396581
KH
30722010-02-17 Kenichi Handa <handa@m17n.org>
3073
886cc2b8
SM
3074 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3075 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3076 (decode_coding): Setup ccl program here. Keep looping when the
3077 decoder stopped because the output buffer is
3078 fullfilled (bug#5534).
3079
3080 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3081
98599f74
JD
30822010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3083
471e4f04 3084 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3085 bug #5571.
886cc2b8 3086 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3087 overdrawn.
98599f74 3088
182659ae
JD
30892010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3090
3091 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3092 doing_interact here.
3093 (ice_connection_closed): New function.
3094 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3095 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3096 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3097 returns I/O error.
3098 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3099 bug #5512.
3100
9be32c4e 31012010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3102
3103 * nsfont.m (nsfont_open): The system's value for the font descent
3104 is negative, so round it down to avoid clipping.
3105
a2f3eb19
CY
31062010-02-06 Chong Yidong <cyd@stupidchicken.com>
3107
3108 * charset.c (load_charset_map_from_file)
3109 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3110 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3111
3088147c
CY
31122010-02-05 Chong Yidong <cyd@stupidchicken.com>
3113
3114 * charset.c (load_charset_map_from_file): Allocate large
3115 charset_map_entries structure on the heap rather than the stack.
3116 (Bug#5526).
3117
b57d9029
KH
31182010-01-31 Kenichi Handa <handa@m17n.org>
3119
3120 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3121 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3122
c67d885b
CY
31232010-01-31 Chong Yidong <cyd@stupidchicken.com>
3124
3125 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3126 <deactivated@gmail.com> (Bug#3605).
3127
8fab2362
CY
31282010-01-31 David De La Harpe Golden <david@harpegolden.net>
3129
3130 * fileio.c (Frename_file): Correctly rename symlinks to
3131 directories (Bug#5496).
3132
cb2a62f2
CY
31332010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3134
3135 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3136
944c7a26
AS
31372010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3138
3139 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3140
c024ac08
CY
31412010-01-29 Chong Yidong <cyd@stupidchicken.com>
3142
3143 * frame.c (DEFAULT_ROWS): Change default to 35.
3144
3145 * xfns.c (x_default_font_parameter): Change default XFT font to
3146 monospace-10 (Bug#3643).
3147
af93af83
EZ
31482010-01-29 Eli Zaretskii <eliz@gnu.org>
3149
3150 * w32inevt.c (key_event): Remove unnecessary comparison of
3151 event->uChar.AsciiChar with 128.
3152
ca0eb708
CY
31532010-01-28 Chong Yidong <cyd@stupidchicken.com>
3154
b242dbfc
CY
3155 * fileio.c (Frename_file): Fix last change (Bug#5487).
3156
ca0eb708
CY
3157 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3158
3159 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3160
45d45af5
JD
31612010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3162
3163 * xfns.c (Fx_create_frame): Remove window size matching code from
3164 2010-01-15.
a73f9c9d 3165 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3166
7e233730
JR
31672010-01-27 Jason Rumney <jasonr@gnu.org>
3168
3169 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3170 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3171
86e893e3
KH
31722010-01-27 Kenichi Handa <handa@m17n.org>
3173
3174 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3175 pattern string (Bug#4209).
86e893e3 3176
8719abec
CY
31772010-01-27 David De La Harpe Golden <david@harpegolden.net>
3178
3179 * fileio.c (Frename_file): Call copy-directory and
3180 delete-directory for directories, in order to handle cross-device
3181 renaming (Bug#3353).
3182
844794c8
JD
31832010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3184
aa3e13b5 3185 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3186 sizes 24 and 10. Bug #3643.
844794c8 3187
bd4b5750
SM
31882010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3189
8dc1adf6 3190 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3191 * keymap.c (shadow_lookup): Add `remap' arg.
3192 (describe_map, describe_vector): Update calls to shadow_lookup.
3193 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3194 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3195 perform remapping during shadow_lookup check of remapped_sequences.
3196
285d07e2
CY
31972010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3198
3199 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3200 png_check_sig, which has been removed in libpng 1.4.
3201
c6d09b8d
CY
32022010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3203
3204 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3205 lacks this header file).
3206
3d782998
YM
32072010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3208
3209 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3210 as in Emacs 22.
3211
2aff7c53
YM
32122010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3213
3214 * lisp.h (make_pure_string): String pointer arg now points to const.
3215
3216 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3217 args now point to const.
3218
74327f7a
EZ
32192010-01-22 Eli Zaretskii <eliz@gnu.org>
3220
3221 * lread.c (Fload): Don't treat files without .elc extension as
3222 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3223 them. (bug#5303)
3224
4d1e6632
KH
32252010-01-20 Kenichi Handa <handa@m17n.org>
3226
3227 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3228 treat the source as actual byte sequence.
3229
1fdede8f
AM
32302010-01-19 Alan Mackenzie <acm@muc.de>
3231
3232 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3233 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3234 `signal_after_change_p' to `coherent_change_p', and make the
3235 invocation of `modify_region' conditional on it.
3236
67477f30
JD
32372010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3238
3239 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3240 for debug purpose.
3241 (syms_of_xsettings): Declare xft-settings.
3242
244b023e
CY
32432010-01-18 Chong Yidong <cyd@stupidchicken.com>
3244
3245 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3246
617364fe
CY
32472010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3248
3249 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3250
4fe22cdf
CY
32512010-01-16 Chong Yidong <cyd@stupidchicken.com>
3252
3253 * emacs.c (standard_args): Adjust arg priorities to reflect how
3254 they are processed in startup.el.
3255
e118d2be
AS
32562010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3257
3258 * Makefile.in (lisp, shortlisp): Update.
3259
523ae620
SM
32602010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3261
3262 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3263 code, link the new kboard into all_kboard before running Lisp code,
3264 and protect the new terminal with GCPRO (Bug#5365).
3265 (x_term_init): Remove unused var `atom'.
3266 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3267
f0d13888
JD
32682010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3269
3270 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3271 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3272 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3273 this. Bug #3643.
f0d13888 3274
cc320f07
KH
32752010-01-15 Kenichi Handa <handa@m17n.org>
3276
3277 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3278
7ffdf101
CY
32792010-01-15 Chong Yidong <cyd@stupidchicken.com>
3280
3281 * nsterm.m (Qnone): Define.
3282
3283 * nsfns.m (Qnone): Move definition to nsterm.m.
3284
d12bd917
KH
32852010-01-14 Kenichi Handa <handa@m17n.org>
3286
3287 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3288 systems.
3289
d9a7c140
KH
32902010-01-14 Kenichi Handa <handa@m17n.org>
3291
3292 Make auto-composition work on all buffers even if they are
3293 fundamental mode.
3294
3295 * composite.c (Vauto_composition_mode): New variable.
3296 (composition_compute_stop_pos): Check Vauto_composition_mode
3297 instead of Vauto_composition_function.
3298 (composition_adjust_point, Ffind_composition_internal): Likewise.
3299 (syms_of_composite): Declare Lisp variable
3300 "auto-composition-mode" here.
3301
63286bb2
CY
33022010-01-13 Chong Yidong <cyd@stupidchicken.com>
3303
3304 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3305 during call to vendor-specific-keysyms (Bug#5365).
3306
c2623ee7
YM
33072010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3308
3309 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3310 Call SIGNAL_THREAD_CHECK (Bug#5333).
3311
3312 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3313 Call SIGNAL_THREAD_CHECK.
3314
0b5397c2
SM
33152010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3316
3317 Try to fix bug#5314. This is probably not the final word, tho.
3318 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3319 recent-auto-save-p as a side-effect.
3320 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3321 * buffer.c (Fkill_buffer, reset_buffer):
3322 * editfns.c (Fsubst_char_in_region):
3323 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3324 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3325
dc954cb2
KH
33262010-01-13 Kenichi Handa <handa@m17n.org>
3327
3328 Display buffer name, etc. in mode line by composing correctly.
3329
3330 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3331 STRING is not nil.
0b5397c2 3332 (display_mode_element): Adjust for the change of
dc954cb2
KH
3333 decode_mode_spec and display_line.
3334 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3335 (display_string): Handle the case that STRING is non-null and
3336 LISP_STRING is not nil.
3337
0b5397c2
SM
3338 * xterm.c (x_draw_composite_glyph_string_foreground):
3339 Pay attention to s->face->overstrike.
dc954cb2
KH
3340
3341 * composite.c (composition_reseat_it): Don't check PT if STRING is
3342 non nil.
3343
4a00eaca
YM
33442010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3345
3346 * keyboard.c (read_char): Don't apply previous change when current
3347 buffer is unchanged by command execution.
3348
60abb287
JD
33492010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3350
3351 * keyboard.c (read_char): Return after executing from special map.
3352
893db5bc
GM
33532010-01-12 Glenn Morris <rgm@gnu.org>
3354
3355 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3356 bug-gnu-emacs rather than emacs-pretest-bug.
3357
4d03ece0
CY
33582010-01-11 Chong Yidong <cyd@stupidchicken.com>
3359
3360 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3361 initializing the Lisp variables that depend on them.
3362
1df47e38
YM
33632010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3364
3365 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3366 Clear areas that will not be updated after change of menu bar lines.
3367 Clear the menu bar window's current matrix when the window gets empty.
3368
2f1c6384
CY
33692010-01-09 Chong Yidong <cyd@stupidchicken.com>
3370
e398c61c
CY
3371 * intervals.h, textprop.c (extend_property_ranges): Return value
3372 and args changed. Discard properties that begin at or after the
3373 new end (Bug#5306).
3374
3375 * editfns.c (Fformat): Caller changed.
3376
e5a29a10
CY
3377 * nsterm.m (ns_set_default_prefs): Delete function.
3378 (syms_of_nsterm): Initialize ns_command_modifier,
3379 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3380 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3381
2f1c6384
CY
3382 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3383 position (Bug#4040).
3384
d427a9fa
EZ
33852010-01-09 Eli Zaretskii <eliz@gnu.org>
3386
3387 * editfns.c (Ffloat_time): Doc fix.
3388
21b9df2f
JD
33892010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3390
3391 * xfns.c (Fx_create_frame): Don't create frame larger than display
3392 by default bug#3643.
3393
4b00d3b1
YM
33942010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3395
3396 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3397 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3398 windows above internal border.
3399
3400 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3401 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3402 windows above internal border.
3403
3404 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3405 tool bar windows specially.
3406
3407 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3408
3409 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3410 specially.
3411 (XTflash): Take account of menu bar height.
3412
3413 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3414 specially.
3415
5075d853
JD
34162010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3417
ac146f82 3418 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3419 also be true before we can return early (bug #5339).
3420
474217c8
CY
34212010-01-06 David Reitter <david.reitter@gmail.com>
3422
3423 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3424 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3425 (Bug#3233).
3426
c0e6d47d
JD
34272010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3428
d0cf45b7
JD
3429 * font.c (font_open_entity): Enable chache and call cached_font_ok
3430 for the driver if defined.
3431 (QCuser_spec): New symbol.
3432 (font_spec_from_name): Save name as user-spec.
3433 (font_load_for_lface): Keep user-spec instead of name.
3434 (font_open_by_name): Save name as user-spec.
3435 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3436 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3437
3438 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3439 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3440 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3441
3442 * font.h (struct font_driver): Add cached_font_ok.
3443
c0e6d47d
JD
3444 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3445
7c583cd8
JD
34462010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3447
3448 * xterm.c (x_new_font): Move code for setting rows/cols before
3449 resizing ...
ac146f82 3450 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3451
3452 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3453 (xg_frame_resized, xg_frame_set_char_size):
3454 Call xg_clear_under_internal_border.
7c583cd8 3455 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3456
03f77f0a
CY
34572010-01-05 Chong Yidong <cyd@stupidchicken.com>
3458
3459 * keyboard.c (read_key_sequence): Catch keyboard switch after
3460 making a new tty frame (Bug#5095).
3461
2a1ef5be
KH
34622010-01-05 Kenichi Handa <handa@m17n.org>
3463
3464 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3465
e3eb1dae
SM
34662010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3467
3468 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3469 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3470 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3471
777013f2
MA
34722010-01-03 Michael Albinus <michael.albinus@gmx.de>
3473
3474 * dbusbind.c (xd_add_watch): Improve debug message.
3475 (xd_remove_watch): Improve debug message. If DATA is the session
3476 bus, unset D-Bus session environment.
3477 (Fdbus_init_bus): Pass the bus as argument to
3478 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3479
8932b1c2
CY
34802010-01-01 Chong Yidong <cyd@stupidchicken.com>
3481
87231e2c
CY
3482 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3483
4801c5fa
CY
3484 * lread.c (syms_of_lread): Make it clearer that these are the
3485 names of loaded files (Bug#5068).
3486
8932b1c2
CY
3487 * eval.c (run_hook_with_args): Handle the case where the global
3488 value has the obsolete single-function form (Bug#5026).
3489
11e3c684
CY
34902009-12-27 Chong Yidong <cyd@stupidchicken.com>
3491
3492 * minibuf.c (Fall_completions): Minor optimization.
3493
5b28ce35
EZ
34942009-12-26 Eli Zaretskii <eliz@gnu.org>
3495
5ce6e4f4
JB
3496 * .gdbinit (pgx): Fix display of composite glyphs.
3497 Display cmp.from and cmp.to as well.
3498 (pitx): Fix last change.
5b28ce35 3499
bcffff46
KH
35002009-12-25 Kenichi Handa <handa@m17n.org>
3501
3502 * composite.h (composition_adjust_point): Update prototype.
3503
3504 * composite.c (composition_reseat_it): Don't make a composition
3505 spanning over point.
3506 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3507 composable characters.
3508 (composition_adjust_point): New arg NEW_PT. Callers changed.
3509
3510 * keyboard.c (command_loop_1): Force redisplay if the last point
3511 was within a composition.
3512 (adjust_point_for_property): Don't adjust point for automatic
3513 composition when called after buffer modification.
3514
3f670e9a
EZ
35152009-12-19 Eli Zaretskii <eliz@gnu.org>
3516
5ce6e4f4
JB
3517 * .gdbinit (pitx): Don't use enum names, use their values.
3518 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3519 (pgx): Don't use enum names, use their values.
3520 (pitmethod): New helper command.
3521 (pitx): Use it to display iteration method.
3522 (pgrowit): New command.
3523
ad903955
EZ
3524 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3525
3f670e9a
EZ
3526 Update dependencies in Makefile.in.
3527
3528 * Makefile.in (alloc.o): Depend on termhooks.h.
3529 (atimer.o): Depend on blockinput.h.
3530 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3531 and frame.h.
3532 (callint.o): Depend on systime.h, coding.h, and composite.h.
3533 (callproc.o): Depend on buffer.h.
3534 (casefiddle.o): Don't depend on charset.h.
3535 (casetab.o): Depend on character.h.
3536 (ccl.o): Depend on composite.h.
3537 (chartab.o): Depend on ccl.h.
3538 (cm.o): Depend on dispextern.h.
3539 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3540 (coding.o): Don't depend on $(INTERVALS_H).
3541 (composite.o): Don't depend on dispextern.h explicitly (it's in
3542 $(INTERVALS_H)). Depend on ccl.h.
3543 (data.o): Depend on systime.h, coding.h, composite.h,
3544 dispextern.h, font.h, and ccl.h.
3545 (dired.o): Depend on composite.h.
3546 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3547 composite.h (it's in $(INTERVALS_H)).
3548 (doc.o): Depend on systime.h, coding.h, and composite.h.
3549 (editfns.o): Don't depend explicitly on dispextern.h.
3550 (emacs.o): Depend on frame.h and coding.h.
3551 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3552 (fileio.o): Depend on frame.h and commands.h. Don't depend
3553 explicitly on dispextern.h.
3554 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3555 composite.h.
3556 (fns.o): Don't depend on termhooks.h.
3557 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3558 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3559 coding.h, $(INTERVALS_H), window.h, xterm.h.
3560 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3561 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3562 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3563 fontset.h, ccl.h, and ftfont.h.
3564 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3565 (gtkutil.o): Depend on dispextern.h and composite.h.
3566 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3567 termhooks.h, and ccl.h.
3568 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3569 (intervals.o): Depend on systime.h and coding.h.
3570 (keyboard.o): Depend on composite.h and coding.h.
3571 (keymap.o): Depend on coding.h and frame.h.
3572 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3573 (macros.o): Depend on systime.h, coding.h, and composite.h.
3574 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3575 and atimer.h.
3576 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3577 dispextern.h explicitly.
0b5397c2
SM
3578 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3579 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3580 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3581 (regex.o): Don't depend on charset.h.
3582 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3583 (search.o): Don't depend explicitly on composite.h.
3584 (sound.o): Depend on atimer.h and systime.h.
3585 (syntax.o): Don't depend explicitly on composite.h.
3586 (sysdep.o): Depend on coding.h and composite.h.
3587 (term.o): Depend on xterm.h and buffer.h.
3588 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3589 (textprop.o): Don't depend on dispextern.h explicitly.
3590 (undo.o): Depend on dispextern.h.
3591 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3592 dispextern.h and composite.h explicitly.
3593 (xdisp.o): Depend on ccl.h.
3594 (xfaces.o): Depend on coding.h and ccl.h.
3595 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3596 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3597 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3598 ftfont.h.
3599 (xgselect.o): New dependency.
3600 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3601 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3602 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3603 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3604 (xsmfns.o): Depend on frame.h and dispextern.h.
3605 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3606 sysselect.h.
3607
7a6f7fea
AS
36082009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3609
3610 * font.c (Fclear_font_cache): Pass correct cache argument to
3611 font_clear_cache.
3612
f4c21026
AS
36132009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3614
3615 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3616 twice.
3617
f7ab0997
CY
36182009-12-15 Chong Yidong <cyd@stupidchicken.com>
3619
3620 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3621 calling file-remote-p. Reported by Jim Meyering.
3622
fa8e045a
MA
36232009-12-15 Michael Albinus <michael.albinus@gmx.de>
3624
3625 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3626 avoid compiler warnings. (Bug #5217)
fa8e045a 3627
a63dba42
KH
36282009-12-14 Kenichi Handa <handa@m17n.org>
3629
3630 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3631 in 8-bit encoding.
3632
5ce6e4f4 36332009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3634
3635 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3636 tooltip windows.
3637
223e5fc6
JD
36382009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3639
36acb2a7
JD
3640 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3641 Xatom_net_window_type.
3642
3643 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3644 Xatom_net_window_type.
3645
b8f00677
JD
3646 * xterm.c (my_log_handler): New function.
3647 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3648 so we can filter out buggy messages. (Bug #5120).
b8f00677 3649
e5f0bc9a
JD
3650 * xterm.c (xg_scroll_callback): Parameter list changed,
3651 use parameter GtkScrollType to determine scroll/line/page.
3652 Only allow dragging if a button < 4 is grabbed (bug #5177).
3653 (xg_end_scroll_callback): New function.
3654 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3655 xg_create_scroll_bar.
3656
3657 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3658 (scroll_end_callback): Remove.
3659 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3660 button-release-event. Replace value-changed event with change-value,
3661 bug #5177,
3662 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3663 bug #5177.
3664
3665 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3666 (xg_create_scroll_bar): Add GCallback end_callback.
3667
223e5fc6
JD
3668 * xftfont.c (QClcdfilter): New variable.
3669 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3670 (syms_of_xftfont): Initialize QClcdfilter.
3671
3c055b77
JD
36722009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3673
3674 * xsettings.c (struct xsettings): Add member seen.
3675 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3676 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3677 (apply_xft_settings): Only update Xft settings with what member seen
3678 indicates as new.
3679
05fe33ff
EZ
36802009-12-12 Eli Zaretskii <eliz@gnu.org>
3681
3682 * dispextern.h (struct text_pos): Use EMACS_INT;
3683 (struct glyph): Use EMACS_INT for charpos.
3684 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3685 region_beg_charpos, region_end_charpos,
3686 redisplay_end_trigger_charpos, and also for
3687 iterator_stack_entry.end_charpos and
3688 iterator_stack_entry.stop_charpos.
3689
e8d7886a
JD
36902009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3691
5ce6e4f4 3692 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3693 (xg_create_scroll_bar): Call scroll_end_callback on button release
3694 event (bug #5177).
3695 (xg_event_is_for_scrollbar): != replaced with ==.
3696
d0db2ec8
KH
36972009-12-12 Kenichi Handa <handa@m17n.org>
3698
3699 * ftfont.c (struct ftfont_info): New member matrix.
3700 (ftfont_open): Setup xftfont_info->matrix.
3701 (MFLTFontFT): New member matrix.
3702 (FLOOR, CEIL, ROUND): New macros.
3703 (ftfont_get_metrics): Handle matrix transformation.
3704 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3705
3706 * xftfont.c (struct xftfont_info): New member matrix.
3707 (xftfont_open): Setup xftfont_info->matrix.
3708
37092009-12-10 Kenichi Handa <handa@m17n.org>
3710
3711 * xdisp.c (append_space_for_newline): Consider face-remapping.
3712
2cc7b62f
AS
37132009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3714
b87dd913
AS
3715 * xsettings.c: Include "keyboard.h".
3716
eba5eb94
AS
3717 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3718
2cc7b62f
AS
3719 Fix implicit function declarations.
3720 * cmds.c: Include "frame.h".
3721 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3722 * frame.h: Move declaration of delete_frame outside of
3723 HAVE_WINDOW_SYSTEM.
3724
a4ef73c8
CY
37252009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3726
3727 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3728
3729 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3730 GTK builds.
3731
944a300c
AS
37322009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3733
3734 * unexelf.c (unexec): Don't search for .data twice.
3735
022eef62
CY
37362009-12-05 Chong Yidong <cyd@stupidchicken.com>
3737
426ac949
CY
3738 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3739 if push failed.
3740 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3741 of push_display_prop (Bug#5000).
3742
022eef62
CY
3743 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3744 value of font_list_entities (Bug#5085).
3745
be95bee9
JB
37462009-12-04 Juanma Barranquero <lekktu@gmail.com>
3747
3748 Fix `string-to-number' to deal consistently with integers and floats.
3749 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3750 trailing characters, not just whitespace.
3751 (read1): Pass new arg 0 to keep old behavior.
3752 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3753 trailing chars, as it is already done for integers. Doc fixes.
3754 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3755
24c2d7ce
EZ
37562009-12-04 Eli Zaretskii <eliz@gnu.org>
3757
0b5397c2
SM
3758 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3759 Delete unused enumeration value.
24c2d7ce 3760
7e694795
EZ
37612009-12-03 Eli Zaretskii <eliz@gnu.org>
3762
3763 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3764
84b31826
SM
37652009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3766
3767 * process.c (Fmake_network_process): Fix up the tests for
3768 "connectionless socket", so they DTRT for seqpacket sockets as well.
3769
f00c449b
SM
37702009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3771
3772 * process.c (Qseqpacket): New symbol.
3773 (HAVE_SEQPACKET): New macro.
3774 (Fmake_network_process): Accept new :type `seqpacket'.
3775 (init_process): Add `seqpacket' feature when applicable.
3776 (syms_of_process): Initialize Qseqpacket.
3777
8096a0ff
YM
37782009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3779
3780 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3781 if entity is Qnil.
3782
3e0de07f
SM
37832009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3784
3785 * print.c (print_preprocess): Preprocess the key_and_value table of
3786 hashtables, even tho they're "hidden" (bug#5082).
3787
abeafb2a
JD
37882009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3789
3790 * frame.c (frame_make_pointer_invisible)
3791 (frame_make_pointer_visible): Declare f before statements.
3792
4bf47195
EZ
37932009-11-28 Eli Zaretskii <eliz@gnu.org>
3794
3795 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3796 omitted dependencies on lisp.h.
3797
c525b3f2
JD
37982009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3799
ece2d4ed
JD
3800 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3801 is NULL.
3802
3803 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3804
3805 * frame.c (frame_make_pointer_invisible)
3e0de07f 3806 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3807 frame.
3808
c525b3f2
JD
3809 * search.c (simple_search): Remove warning by making *p const.
3810
2f00e299
DN
38112009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3812
3813 * xdisp.c (power_letter): Remove duplicate const.
3814
084b049b
JD
38152009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3816
a1fadc6f
JD
3817 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3818
5ce6e4f4 3819 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3820 defaults (bug #5025).
3821
28259cac
SM
38222009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3823
3824 * insdel.c (adjust_markers_for_delete): Move it in the
3825 right direction! (bug#4803)
3826
e8e14166
YM
38272009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3828
3829 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3830
3831 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3832
86677b58
GM
38332009-11-24 Glenn Morris <rgm@gnu.org>
3834
3835 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3836
581e51e8
JD
38372009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3838
cfc86c7a
JD
3839 * Makefile.in: Must create deps for ecrt0.o in its rule.
3840
581e51e8
JD
3841 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3842 because that is what Gtk+ font dialog understands.
3843
3844 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3845 of Fcopy_sequence.
3846 (font_open_by_name): Put name given into QCname for font-object returned.
3847
3848 * frame.c (x_set_font): Save original font name as frame parameter
3849 font-parameter.
3850
3851 * xsettings.c (set_default_xft_settings): New function.
3852 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3853 is found.
3854
8b264ecb
AS
38552009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3856
3857 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3858 searching backwards through multibyte buffer.
3859
872870b2
JD
38602009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3861
3862 * xterm.c: #include xgselect.h.
3863 (x_initialize): Call xgselect_initialize.
3864
3865 * xsettings.c (something_changedCB): C++ comments => C comments.
3866 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3867 does that now.
3868
3869 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3870 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3871 (scroll_bar_button_cb): Remove.
5ce6e4f4 3872 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3873 event.
3874 (xg_create_scroll_bar): Don't bind button-press-event and
3875 button-release-event.
3876
3877 * process.c: Include xgselect.h if defined (USE_GTK) ||
3878 defined (HAVE_GCONF).
3879 (wait_reading_process_output): Call xg_select for the same condition.
3880
3881 * xgselect.c (xg_select): New function to better integrate with
3882 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3883
3884 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3885
3886 * Makefile.in (XOBJ): Add xgselect.o.
3887
62a6e103
AS
38882009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3889
0b5397c2
SM
3890 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3891 Remove ignored second argument. All callers changed.
62a6e103
AS
3892 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3893 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3894 * xdisp.c (string_char_and_length): Likewise.
3895
b0ca0f33
DN
38962009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3897
3898 * xterm.c (x_new_font):
3899 * print.c (print_object):
3900 * cmds.c (Fself_insert_command): Move declarations before statements.
3901
dd5a6279
CY
39022009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3903
3904 * s/cygwin.h: Remove unneeded linker flags.
3905
4a8e097d
JD
39062009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3907
0d1d0d26
JD
3908 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3909
3910 * xsettings.h: Declare xsettings_get_system_font.
3911
3912 * xsettings.c (xsettings_get_system_font): New function.
3913 (init_gconf): No use initiating gconf unless we have Xft also.
3914 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3915 HAVE_GCONF.
3916
4a8e097d
JD
3917 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3918 add a blank entry so it doesn't collapse into nothing.
3919
8ab1650e
SM
39202009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3921
3922 * lread.c (Funintern): Comment out last change.
3923
82c602f0
RS
39242009-11-19 Richard Stallman <rms@gnu.org>
3925
3926 * lread.c (Funintern): Error if symbol is t or nil.
3927
87e32266
SM
39282009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3929
3930 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3931 representation of Lisp integers.
3932 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3933
1b9ac145
AS
39342009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3935
3936 * lisp.h: Remove declaration of Ffont_get_system_font.
3937 * xfns.c: Move include of "xsettings.h".
3938 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3939
dfb3c4c6
JD
39402009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3941
87e32266
SM
3942 * xsettings.c (something_changedCB, Ffont_get_system_font):
3943 Check use_system_font.
dfb3c4c6
JD
3944 (syms_of_xsettings): DEFVAR font-use-system-font.
3945
9370c1d8
AS
39462009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3947
25fe851a
AS
3948 * xfns.c (x_default_font_parameter): Remove dead assignment.
3949
9370c1d8
AS
3950 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3951
637fa988
JD
39522009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3953
87e32266 3954 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3955 not have FC_LCD_*. #define them if not there.
a6eb20d8 3956
87e32266 3957 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3958
637fa988
JD
3959 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3960
3961 * xterm.c (handle_one_xevent): Call xft_settings_event for
3962 ClientMessage, PropertyNotify and DestroyNotify.
3963 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3964 Call xsettings_initialize.
3965
3966 * xftfont.c (xftfont_fix_match): New function.
3967 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3968 Call xftfont_fix_match after XftFontMatch.
3969
3970 * xfont.c (xfont_driver): Initialize all members.
3971
87e32266
SM
3972 * xfns.c (x_default_font_parameter):
3973 Try font from Ffont_get_system_font.
637fa988
JD
3974 Do not get font from x_default_parameter if we got one from
3975 Ffont_get_system_font.
87e32266 3976 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3977
3978 * w32font.c (w32font_driver): Initialize all members.
3979
3980 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3981
3982 * lisp.h: Declare syms_of_xsettings.
3983
87e32266
SM
3984 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3985 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3986
3987 * ftfont.c (ftfont_filter_properties): New function.
3988
3989 * frame.c (x_set_font): Remove unused variable lval.
3990
87e32266 3991 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3992
3993 * font.c (font_put_extra): Don't return if val is nil, it means
3994 boolean option is off.
3995 (font_parse_fcname): Collect all extra properties in extra_props
3996 and call filter_properties for all drivers with extra_props and
3997 font as parameter.
87e32266
SM
3998 (font_open_entity): Do not use cache, it does not pick up new
3999 fontconfig settings like hinting.
637fa988
JD
4000 (font_load_for_lface): If spec had a name in it, store it in entity.
4001
a73f9c9d 4002 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4003
4004 * config.in: HAVE_GCONF is new.
4005
4006 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4007 xsettings.o is new.
4008
5a942932
KH
40092009-11-17 Kenichi Handa <handa@m17n.org>
4010
4011 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4012 back to the default font in case that no suitable font is found.
4013
b7c7a4d1
SM
40142009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4015
4016 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4017 Suggested by Chad Brown <yandros@mit.edu>.
4018 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4019
072f1e39
JD
40202009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4021
4022 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4023
5d1e70a2
AS
40242009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4025
87e32266 4026 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4027
a53cfbe5
JD
40282009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4029
473a99b7
JD
4030 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4031 has a parent.
4032
a53cfbe5 4033 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4034 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4035
4036 * config.in: Generated (AUTO_DEPEND).
4037
f04bb9b2
MA
40382009-11-13 Michael Albinus <michael.albinus@gmx.de>
4039
b7c7a4d1 4040 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4041 Vdbus_registered_functions_table, because it contains also
4042 properties. Fix docstring.
b7c7a4d1 4043 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4044
8f11f7ec
SM
40452009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4046
4047 * alloc.c (mark_object): Don't reprocess marked strings.
4048 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4049 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4050
8a605fe8
KH
40512009-11-13 Kenichi Handa <handa@m17n.org>
4052
8f11f7ec 4053 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4054 semantics of Vword_combining_categories.
4055 (Vword_combining_categories): Describe the slight change of the
4056 semantics.
4057
241c4680
EZ
40582009-11-13 Eli Zaretskii <eliz@gnu.org>
4059
4060 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4061
4062 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4063
5d58e44c
SM
40642009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4065
4066 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4067
5e13f9d3
JB
40682009-11-12 Juanma Barranquero <lekktu@gmail.com>
4069
4070 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4071
cf54c754
DR
40722009-11-11 David Reitter <david.reitter@gmail.com>
4073
4074 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4075 variables to fix 2009-11-09 change.
4076
a4ada374
DN
40772009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4078
91433552
DN
4079 * process.c (ifflag_def): Make flag_sym constant.
4080 (Fnetwork_interface_info): Use a constant pointer.
4081 (ifflag_table):
4082 * xfns.c (cursor_bits):
4083 * xdisp.c (power_letter):
4084 * termcap.c (speeds, esctab):
4085 * sysdep.c (baud_convert):
4086 * keyboard.c (lispy_accent_codes, modifier_names):
4087 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4088 (jpeg_format, tiff_format, gif_format, svg_format)
4089 (interlace_start, interlace_increment, gs_format):
4090 * gtkutil.c (separator_names):
4091 * fringe.c (swap_nibble):
4092 * fns.c (base64_value_to_char, base64_char_to_value):
4093 * fileio.c (make_temp_name_tbl):
4094 * coding.c (suffixes): Make constant.
4095
f4265f6c
DN
4096 * frame.c (make_initial_frame):
4097 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4098 build_string.
4099 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4100
04420943
DN
4101 * s/freebsd.h:
4102 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4103
0a5d24ae
DN
4104 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4105 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4106
a4ada374
DN
4107 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4108 * xterm.c (syms_of_xterm):
4109 * xfaces.c (syms_of_xfaces):
4110 * xdisp.c (syms_of_xdisp):
4111 * lread.c (syms_of_lread):
4112 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4113 build_string.
91433552 4114
a4ada374
DN
4115 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4116
af98fc7f
SM
41172009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4118
8ab1650e 4119 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4120
e90292a9
JD
41212009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4122
4123 * keyboard.h: Declare timer_check.
4124
4125 * keyboard.c (timer_check_2): New function that does what the old
4126 timer_check did.
4127 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4128 returned, i.e. don't return -1 with timers pending.
4129
4130 * process.c: Remove extern declaration of timer_check.
4131
4132 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4133 even if timer_check returned -1.
4134
af98fc7f
SM
4135 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4136 xg_dialog_data.
e90292a9
JD
4137 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4138 the event loop.
4139 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4140 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4141 Destroy the dialog after xg_dialog_run.
4142
045b83c0
SM
41432009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4144
4145 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4146
1fb99a3a
JD
41472009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4148
4149 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4150
04e452cb
JB
41512009-11-09 Juanma Barranquero <lekktu@gmail.com>
4152
4153 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4154
ef7417fd
SM
41552009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4156
4157 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4158 w32menu.c, and nsmenu.m.
4159 Simplify the obsolete case where position is nil.
4160 (cleanup_popup_menu): New function, moved from nsmenu.m.
4161 (struct skp): Remove slot `notreal'.
4162 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4163 adjust callers.
4164 (single_menu_item): Adjust call to parse_menu_item.
4165 (syms_of_menu): Defsubr x-popup-menu.
4166 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4167 (keymap_panes): Don't export any more.
4168 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4169 (xmenu_show): Declare.
4170 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4171 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4172 * keyboard.h (parse_menu_item): Update declaration.
4173 * xmenu.c (Fx_popup_menu): Remove.
4174 (syms_of_xmenu): Don't defsubr x-popup-menu.
4175 * w32menu.c (Fx_popup_menu): Remove.
4176 (syms_of_w32menu): Don't defsubr x-popup-menu.
4177 * nsmenu.m (cleanup_popup_menu): Remove.
4178 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4179 moved to menu.c's Fx_popup_menu.
4180 (Fx_popup_menu): Remove.
4181 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4182 menu_items (it's done in menu.c already).
4183
424d6179
SM
41842009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4185
4186 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4187 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4188
c0df13a6 41892009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4190
4191 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4192 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4193 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4194 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4195
2de9f71c
SM
41962009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4197
4198 Let integers use up 2 tags to give them one extra bit and thus double
4199 their range.
4200 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4201 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4202 New macros.
4203 (enum Lisp_Type): Use them. Give explicit values.
4204 (Lisp_Type_Limit): Remove.
4205 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4206 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4207 Pay attention to USE_2_TAGS_FOR_INTS.
4208 (INTEGERP): Use LISP_INT_TAG_P.
4209 * fns.c (internal_equal): Simplify the default case.
4210 (sxhash): Use case_Lisp_Int.
4211 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4212 any more.
4213 (Ftype_of): Use case_Lisp_Int.
4214 (store_symval_forwarding): Take into account the fact that Ints can
4215 now have more than one tag.
4216 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4217 buffer_slot_type_mismatch):
4218 * xfaces.c (face_attr_equal_p):
4219 * print.c (print_object):
4220 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4221 Use case_Lisp_Int.
4222
323637a2
EZ
42232009-11-06 Eli Zaretskii <eliz@gnu.org>
4224
7ac65b38
EZ
4225 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4226
323637a2
EZ
4227 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4228 warning.
4229
e511451f
JD
42302009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4231
4232 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4233
4234 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4235
4236 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4237 ButtonPressRelease and MotionNotify (bug#4870).
4238
5e2327cf
DN
42392009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4240
5adc433e
DN
4241 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4242
d67b4f80
DN
4243 * xterm.c (syms_of_xterm):
4244 * xselect.c (syms_of_xselect):
4245 * xmenu.c (syms_of_xmenu):
4246 * xfns.c (syms_of_xfns):
4247 * xfaces.c (syms_of_xfaces):
4248 * xdisp.c (syms_of_xdisp):
4249 * window.c (syms_of_window):
4250 * w32fns.c (syms_of_w32fns):
4251 * undo.c (syms_of_undo):
4252 * textprop.c (syms_of_textprop):
4253 * terminal.c (syms_of_terminal):
4254 * syntax.c (syms_of_syntax):
4255 * sound.c (syms_of_sound):
4256 * search.c (syms_of_search):
4257 * print.c (syms_of_print):
4258 * minibuf.c (syms_of_minibuf):
4259 * macros.c (syms_of_macros):
4260 * keymap.c (syms_of_keymap, initial_define_key)
4261 (initial_define_lispy_key):
4262 * keyboard.c (syms_of_keyboard):
4263 * insdel.c (syms_of_insdel):
4264 * image.c (syms_of_image):
4265 * fringe.c (syms_of_fringe):
4266 * frame.c (syms_of_frame):
4267 * fontset.c (syms_of_fontset):
4268 * fns.c (syms_of_fns):
4269 * fns.c (syms_of_fns):
4270 * fileio.c (syms_of_fileio):
4271 * fileio.c (syms_of_fileio):
4272 * eval.c (syms_of_eval):
4273 * doc.c (syms_of_doc):
4274 * dispnew.c (syms_of_display):
4275 * dired.c (syms_of_dired):
4276 * dbusbind.c (syms_of_dbusbind):
4277 * data.c (syms_of_data):
4278 * composite.c (syms_of_composite):
4279 * coding.c (syms_of_coding):
4280 * cmds.c (syms_of_cmds):
4281 * charset.c (define_charset_internal, syms_of_character):
4282 * ccl.c (syms_of_ccl):
4283 * category.c (syms_of_category, init_category_once):
4284 * casetab.c (syms_of_casetab):
4285 * casefiddle.c (syms_of_casefiddle):
4286 * callint.c (syms_of_callint):
4287 * bytecode.c (syms_of_bytecode):
4288 * buffer.c (keys_of_buffer, syms_of_buffer):
4289 * alloc.c (syms_of_alloc):
4290 * process.c (syms_of_process, init_process):
4291 * lread.c (syms_of_lread, init_obarray):
4292 * font.c (build_style_table):
4293 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4294 intern_c_string, calls to make_pure_string with
4295 make_pure_c_string. Use pure_cons instead of Fcons.
4296
5e2327cf
DN
4297 * process.c (socket_options): Make it const.
4298 (set_socket_option, init_process): Use a const pointer.
4299
4300 * lread.c (intern_c_string): New function.
4301 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4302 (defvar_int): Uset it. Make the name const char*.
4303
4304 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4305 (defvar_int): Update prototypes.
4306 (DEFUN, EXFUN): Support for prototypes is now required.
4307 (intern_c_string): New prototype.
4308 (struct Lisp_Subr): Make symbol_name constant.
4309
4310 * font.c (struct table_entry): Remove unused member. Make NAMES
4311 constant.
4312 (weight_table, slant_table, width_table): Make constant.
4313
4314 * emacs.c (struct standard_args): Make name and longname constant.
4315
4316 * character.h (DEFSYM): Use intern_c_string.
4317
a56eaaef
DN
43182009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4319
4320 * alloc.c (make_pure_c_string): New function.
4321
4322 * eval.c (Fautoload): Purecopy all arguments.
4323
f6a07420
KH
43242009-11-05 Kenichi Handa <handa@m17n.org>
4325
4326 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4327 the buffer in case of replace.
4328
5d28d4b1
DN
43292009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4330
4331 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4332
b349d111
SM
43332009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4334
d528b1ce
SM
4335 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4336 when applicable (bug#4851).
4337
b349d111
SM
4338 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4339 (P_): Support for prototypes is now required.
4340
c38eb027
CY
43412009-10-31 Chong Yidong <cyd@stupidchicken.com>
4342
4343 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4344 (Bug#4827).
4345
0405f8d9
EZ
43462009-10-30 Eli Zaretskii <eliz@gnu.org>
4347
d528b1ce 4348 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4349
ca0a881a
DN
43502009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4351
4352 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4353
d528b1ce
SM
4354 * lread.c (Fload): Purecopy the file name when building
4355 Vpreloaded_file_list.
ca0a881a 4356
47e0e0e4
JR
43572009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4358
4359 * w32fns.c (syms_of_w32fns): Change default value of
4360 w32-scroll-lock-modifier to nil. (Bug#2827)
4361
057bce6f
JB
43622009-10-26 Juanma Barranquero <lekktu@gmail.com>
4363
782a943e 4364 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4365
242bc74c
AS
43662009-10-26 Andreas Schwab <schwab@redhat.com>
4367
4368 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4369
522d013a
JB
43702009-10-26 Juanma Barranquero <lekktu@gmail.com>
4371
4372 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4373 For delta < 0, skip check that only makes sense when the mini-window
4374 is going to be enlarged. (Bug#4534)
4375
18060980
CY
43762009-10-25 Chong Yidong <cyd@stupidchicken.com>
4377
4378 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4379 string in menu maps (Bug#4471).
4380
fec8f0fe
CY
43812009-10-24 Chong Yidong <cyd@stupidchicken.com>
4382
4383 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4384 FRAME_NS_VIEW on terminal frames (Bug#4765).
4385
10d66ec0
AS
43862009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4387
1cae01f7
AS
4388 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4389 DBUS_TYPE_UINTnn separately to get proper sign extension.
4390
58a12889
AS
4391 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4392 can properly handle unsigned types.
d528b1ce 4393 (make_uid, make_gid): Remove.
58a12889 4394
987c9327
AS
4395 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4396 types again.
4397
522d013a 4398 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4399 (system_process_attributes): Likewise.
4400
905a9ed3
DN
44012009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4402
4403 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4404
4405 * eval.c (Fautoload): Purecopy the filename. Simplify.
4406
4407 * category.c (Fdefine_category): Purecopy docstring.
4408
a599b3e8
AS
44092009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4410
7b792fc9
AS
4411 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4412
a599b3e8
AS
4413 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4414
b35ac83e
CY
44152009-10-23 Chong Yidong <cyd@stupidchicken.com>
4416
4417 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4418 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4419 (Bug#4775).
4420
e8903e00
SM
44212009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4422
4423 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4424 (init_fileio_once):
4425 * lisp.h (init_fileio_once): Remove.
4426 * emacs.c (main): Don't call init_fileio_once.
4427
8f43cbf3
DN
44282009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4429
4430 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4431
26898943
AS
44322009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4433
4434 * doprnt.c (doprnt): Fix overflow check.
4435
5c646d5a
JD
44362009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4437
3132a7ea
JD
4438 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4439
5c646d5a
JD
4440 * xterm.h (x_wait_for_event): Declare it.
4441
4442 * xterm.c (pending_event_wait): New variable.
4443 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4444 see pending_event_wait.eventtype.
4445 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4446 (x_new_font): Call change_frame_size with new rows/columns before we
4447 try to resize the frame.
5c646d5a 4448 (x_wait_for_event): New function.
d528b1ce
SM
4449 (x_set_window_size_1): Don't change gravity unless change_gravity
4450 is set.
5c646d5a
JD
4451 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4452 don't change frame size, instead wait for the ConfigureNotify.
4453 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4454 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4455 (x_initialize): Initialize pending_event_wait.
4456
4457 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4458 size.
4459
4460 * widget.c (EmacsFrameSetValues): Add comment.
4461 (EmacsFrameSetCharSize): Just call x_set_window_size.
4462
4463 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4464 x_wait_for_event.
d528b1ce 4465 (flush_and_sync): Remove again.
5c646d5a
JD
4466 (xg_get_font_name): Suggest monospace if no previous font is known.
4467
e9c1637d
SM
44682009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4469
4470 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4471 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4472
5a72cccb
YM
44732009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4474
4475 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4476 processing pending events when event is filtered for input method.
ab04798f 4477 (Bug#3681)
5a72cccb 4478
2629aa37
JB
44792009-10-20 Juanma Barranquero <lekktu@gmail.com>
4480
4481 * fns.c: Add #endif accidentally removed in previous change.
4482
c3417a74
DN
44832009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4484
4485 * fns.c: Remove code for unsupported system: MAC_OS.
4486 * image.c: Likewise. Include setjmp.h.
4487
9685cef2
JD
44882009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4489
4490 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4491 pixel -1 (bug #4742).
4492
d7306fe6
DN
44932009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4494
019d2c4c
DN
4495 * process.c (create_pty): Remove conditionals for no longer
4496 supported systems: UNIPLUS and RTU.
4497
ee6bacd4
DN
4498 * xterm.c:
4499 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4500
d7306fe6
DN
4501 * alloc.c: Do not define struct catchtag.
4502 * eval.c: Move struct catchtag definition ...
4503 * lisp.h: ... here.
4504
4505 * image.c: Move png.h #include earlier to avoid warnings.
4506
4507 * xterm.c:
4508 * xsmfns.c:
4509 * xselect.c:
4510 * xrdb.c:
4511 * xmenu.c:
4512 * xftfont.c:
4513 * xfont.c:
4514 * xfns.c:
4515 * xfaces.c:
4516 * xdisp.c:
4517 * window.c:
4518 * widget.c:
4519 * w32xfns.c:
4520 * w32uniscribe.c:
4521 * w32term.c:
4522 * w32select.c:
4523 * w32reg.c:
4524 * w32proc.c:
4525 * w32menu.c:
4526 * w32inevt.c:
4527 * w32heap.c:
4528 * w32font.c:
4529 * w32fns.c:
4530 * w32console.c:
4531 * w32.c:
4532 * w16select.c:
4533 * vm-limit.c:
4534 * unexsol.c:
4535 * unexec.c:
4536 * unexcw.c:
4537 * unexaix.c:
4538 * undo.c:
4539 * tparam.c:
4540 * textprop.c:
4541 * terminfo.c:
4542 * terminal.c:
4543 * termcap.c:
4544 * term.c:
4545 * syntax.c:
4546 * sound.c:
4547 * sheap.c:
4548 * search.c:
4549 * scroll.c:
4550 * region-cache.c:
4551 * regex.c:
4552 * ralloc.c:
4553 * process.c:
4554 * print.c:
b024548b
DN
4555 * nsterm.m:
4556 * nsselect.m:
4557 * nsmenu.m:
4558 * nsimage.m:
4559 * nsfont.m:
4560 * nsfns.m:
d7306fe6
DN
4561 * msdos.c:
4562 * minibuf.c:
4563 * menu.c:
4564 * marker.c:
4565 * macros.c:
4566 * keymap.c:
4567 * keyboard.c:
4568 * intervals.c:
4569 * insdel.c:
4570 * indent.c:
4571 * gtkutil.c:
4572 * ftxfont.c:
4573 * ftfont.c:
4574 * fringe.c:
4575 * frame.c:
4576 * fontset.c:
4577 * font.c:
4578 * fns.c:
4579 * floatfns.c:
4580 * filelock.c:
4581 * fileio.c:
4582 * emacs.c:
4583 * editfns.c:
4584 * dosfns.c:
4585 * doprnt.c:
4586 * doc.c:
4587 * dispnew.c:
4588 * dired.c:
4589 * dbusbind.c:
4590 * data.c:
4591 * composite.c:
4592 * coding.c:
4593 * cmds.c:
4594 * cm.c:
4595 * chartab.c:
4596 * charset.c:
4597 * character.c:
4598 * ccl.c:
4599 * category.c:
4600 * casetab.c:
4601 * casefiddle.c:
4602 * callproc.c:
4603 * callint.c:
4604 * bytecode.c:
4605 * buffer.c:
4606 * atimer.c: Include setjmp.h. (Bug#4643)
4607
fd5f21e6
SM
46082009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4609
4c0354d7
SM
4610 Remove leftover table unibyte_to_multibyte_table.
4611 * character.c (unibyte_to_multibyte_table): Remove.
4612 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4613 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4614 * character.h (UNIBYTE_TO_CHAR): New macro.
4615 (MAKE_CHAR_MULTIBYTE): Use it.
4616 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4617 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4618 (message_dolog, set_message_1):
4619 * search.c (Freplace_match):
4620 * editfns.c (Fcompare_buffer_substrings):
4621 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4622 (concat):
4623 * insdel.c (copy_text, count_size_as_multibyte):
4624 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4625 * term.c (produce_glyphs):
4626 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4627 * regex.c (RE_CHAR_TO_MULTIBYTE):
4628 * cmds.c (internal_self_insert):
4629 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4630
fd5f21e6
SM
4631 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4632
4418646e
DN
46332009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4634
4635 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4636
35f5c1d2
JB
46372009-10-16 Juanma Barranquero <lekktu@gmail.com>
4638
4639 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4640
a0cd8f6b
AR
46412009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4642
4643 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4644 still needed under Tiger.
4645
4646 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4647
4648 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4649 __Apple__.
4650
4651 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4652
01a8d3fa
KH
46532009-10-15 Kenichi Handa <handa@m17n.org>
4654
4655 * print.c (print_object): Escape a symbol like "2E10" too.
4656
bf6c75c9 46572009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4658
4659 Cleanups and changes for 64-bit compile under Snow Leopard.
4660 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4661
4662 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4663
c5959062 4664 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4665 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4666 cast argument.
4667 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4668 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4669
4670 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4671
4672 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4673 where appropriate.
4674
4675 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4676 where appropriate.
6e4780c5
JB
4677 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4678 Use stringWithUTF8String.
bf6c75c9
AR
4679 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4680
6e4780c5
JB
4681 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4682 Add formal protocol mention to inheritance.
bf6c75c9
AR
4683 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4684
6e4780c5
JB
4685 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4686 Fix printf format.
bf6c75c9
AR
4687 (ns_query_color): Use CGFloat where appropriate.
4688 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4689 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4690 argument.
4691
3d87f118
AR
4692 * config.in (NS_HAVE_NSINTEGER): Drop.
4693
a95c8102
AR
4694 * dbusbind.c (dbus-method-return-internal)
4695 (dbus-method-error-internal): Use long format in printf, and cast
4696 argument.
4697
4698 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4699 in printf, and cast argument.
4700
6873acca 4701 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4702 cast argument.
4703
9ec6f100
GM
47042009-10-11 Glenn Morris <rgm@gnu.org>
4705
4706 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4707
5be883cd
JD
47082009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4709
4710 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4711 menu bar with a small width so it doesn't enlarge the frame.
4712
d7a39b51
JB
47132009-10-08 Juanma Barranquero <lekktu@gmail.com>
4714
4715 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4716
0c2b6f8e
GM
47172009-10-06 Glenn Morris <rgm@gnu.org>
4718
4719 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4720 SOME_MACHINE_LISP (this enters indirectly via DOC).
4721
e02131a2
EZ
47222009-10-05 Eli Zaretskii <eliz@gnu.org>
4723
4724 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4725
b4744254
EZ
47262009-10-04 Eli Zaretskii <eliz@gnu.org>
4727
4728 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4729 Doc fix.
4730
dbf64827
JB
47312009-10-03 Martin Rudalics <rudalics@gmx.at>
4732
4733 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4734
e9a0aef8
MA
47352009-10-02 Michael Albinus <michael.albinus@gmx.de>
4736
d528b1ce 4737 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4738 used anymore outside fileio.c.
4739
4740 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4741
64eb2b56
JB
47422009-10-01 Juanma Barranquero <lekktu@gmail.com>
4743
4744 * lisp.h (Qdelete_directory_internal):
4745 Declare, instead of Qdelete_directory.
4746
4747 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4748
9d28c33e
SM
47492009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4750
4751 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4752
9d8f3bd9
MA
47532009-10-01 Michael Albinus <michael.albinus@gmx.de>
4754
9d28c33e 4755 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4756 Fdelete_directory. It is not a command anymore. It has no file
4757 name handler.
4758
9694740b
SM
47592009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4760
4761 * xdisp.c (get_next_display_element): Use an enum in last change.
4762
748e162f
KH
47632009-09-28 Kenichi Handa <handa@m17n.org>
4764
9694740b 4765 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4766 unibyte_display_via_language_environment in handling
4767 Vnobreak_char_display.
4768
17efd58d
AR
47692009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4770
4771 * nsterm.h (ns_app_name): New extern variable.
4772
4773 * nsterm.m (ns_app_name): New variable.
4774 (ns_term_init): Set and use it.
4775 (ns_term_shutdown): Use it.
4776
4777 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4778 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4779
4780 * nsfns.m (ns_set_name_iconic, ns_set_name)
4781 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4782 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4783
9694740b
SM
4784 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4785 Remove double-casting in client_data comparison.
31c2d412 4786
3208cb35
YM
47872009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4788
4789 * keyboard.c (make_lispy_event): Remember last wheel direction.
4790 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4791
b7d552d6
GM
47922009-09-26 Glenn Morris <rgm@gnu.org>
4793
4794 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4795 internal.elc. Add term/pc-win.elc.
4796 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4797 term/x-win.elc.
4798 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4799 term/w32-win.elc.
4800 (NS_SUPPORT): New.
4801 (lisp): Add NS_SUPPORT.
4802 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4803
4ff670a8
DR
48042009-09-25 David Reitter <david.reitter@gmail.com>
4805
4806 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4807 on Mac OS X 10.6+ (bug#4513).
4808
feabfb6c
JB
48092009-09-24 Juanma Barranquero <lekktu@gmail.com>
4810
4811 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4812 some parts of Emacs code (like font selection) don't grok them.
4813 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4814
de59072a
AS
48152009-09-24 Andreas Schwab <schwab@redhat.com>
4816
4817 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4818
a489517b
JB
48192009-09-24 Juanma Barranquero <lekktu@gmail.com>
4820
4821 * dired.c (Fdirectory_files): Fix typo in docstring.
4822
0592970c
AR
48232009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4824
4825 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4826 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4827 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4828 under GNUstep.
4829 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4830
4831 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4832 glyph advancement.
4833
48e8a88b
AR
48342009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4835
4836 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4837 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4838
4839 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4840 deleted (bug #4492).
4841
e14f0a78
AR
4842 * nsfont.m (Vns_reg_to_script): New lisp variable.
4843 (syms_of_nsfont): Declare it.
4844 (ns_registry_to_script): New function.
4845 (ns_get_req_script): Call it.
4846 (ns_findfonts): Don't give up on non-unicode registry.
4847
4848 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4849
5b650faa
SM
48502009-09-20 Tom Tromey <tromey@redhat.com>
4851
4852 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4853 batch mode (bug#4228).
4854
a489517b 48552009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4856
4857 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4858 carefully. (Bug #4339)
0bae4e09 4859
fcfe06f3
CY
48602009-09-18 Chong Yidong <cyd@stupidchicken.com>
4861
d798ba87 4862 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4863
31642728
AR
48642009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4865
4866 * emacs.c (inhibit_x_resources): Update doc string for NS.
4867 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4868 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4869
4870 * nsterm.h (ns_no_defaults): Remove.
4871
4872 * nsterm.m (ns_no_defaults): Remove.
4873 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4874 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4875 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4876 don't update the NSWindow itself.
4877 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4878 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4879
4880 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4881 ns_use_qd_smoothing.
4882
4883 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4884 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4885 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4886 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4887
8686ac71
JB
48882009-09-17 Juanma Barranquero <lekktu@gmail.com>
4889
4890 * emacs.c (inhibit_x_resources): New variable.
4891 (main) [HAVE_NS]: Don't process --quick command line option.
4892 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4893
4894 * lisp.h (inhibit_x_resources): Declare it extern.
4895
4896 * w32reg.c (x_get_string_resource):
4897 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4898
e227ba05
EZ
48992009-09-17 Eli Zaretskii <eliz@gnu.org>
4900
362654a6
JB
4901 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4902 Add lisp/term/internal.elc.
e227ba05 4903
742d40e8
SM
49042009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4905
4906 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4907 (bug#4461).
4908
005bd5a2
DN
49092009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4910
4911 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4912
4913 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4914 (OBJECTS_MACHINE): Remove, unused.
4915
f9af9719
SM
49162009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4917
4918 * frame.c (x_get_resource_string): Remove unused.
4919
0307c7d2
JD
49202009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4921
4922 * xterm.c (x_new_font): Call change_frame_size before calling
4923 x_set_window_size, in case frame size won't change.
4924
4925 * frame.c (x_set_font): Remove dead code.
4926
428b13d6
SM
49272009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4928
4929 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4930
5766c380
SM
49312009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4932
4933 * lread.c (Fload): Don't output a message after loading an obsolete
4934 package any more (done in Lisp now).
4935
2fd0161b
CY
49362009-09-12 Chong Yidong <cyd@stupidchicken.com>
4937
4938 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4939
bc5e75b6
SM
49402009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4941
4942 * keymap.c (Fwhere_is_internal): Use nconc2.
4943
c31c985e
AM
49442009-09-11 Alan Mackenzie <acm@muc.de>
4945
4946 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4947 batch mode.
4948
78012bd2
AS
49492009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4950
4951 * xdisp.c (display_mode_element): Detect cycles.
4952
9d889332
SM
49532009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4954
4955 * keymap.c (where_is_internal): Don't erroneously return nil right after
4956 filling the cache.
4957 (where_is_internal_1): Fix up typo.
4958
7ab5d780
GM
49592009-09-11 Glenn Morris <rgm@gnu.org>
4960
4961 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4962 share a common doc-string.
4963
5238a749
SM
49642009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4965
66d77eda
SM
4966 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4967 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4968
5238a749
SM
4969 * keymap.c (QCadvertised_binding): New constant.
4970 (syms_of_keymap): Initialize it.
4971 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4972 if applicable.
4973
19f48442
SM
49742009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4975
50d4ba39
SM
4976 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4977 (parse_menu_item): Streamline since bindings are recomputed all the
4978 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4979 more and don't support lmenu's menu-alias any more either.
4980
a88a5372
SM
4981 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4982 (where_is_internal): Strip it down to only traverse the keymaps.
4983 Move the cache handling from Fwhere_is_internal to here.
4984 (Fwhere_is_internal): Move the handling of remapping and the choice of
4985 the best binding from where_is_internal to here.
4986 Unify the cached/noncached paths, so remapping is also handled
4987 correctly when the cache is used, and so the cache can be used to
4988 speed up remap-handling when applicable.
4989 Give preference to non-remapped bindings.
4990 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4991 non-remapped bindings.
4992 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4993 command remapping.
4994
19f48442
SM
4995 * xdisp.c (display_mode_element): Move list length limit from 50 to
4996 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4997
599498c3 49982009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4999
5000 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5001
f9b7b5ac
SM
50022009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5003
a53af587
JB
5004 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5005 (Bug#4334)
5006
f9b7b5ac
SM
5007 * keymap.c (where_is_internal): Filter out shadowed remappings.
5008 Assume that where_is_internal returns unshadowed bindings to simplify
5009 the code and get rid of the gotos. Use ASIZE.
5010
04f4b72d
JD
50112009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5012
4da146f2
JD
5013 * xterm.c (x_focus_changed): If we get a focusout and pointer
5014 is invisible, make it visible.
5015
04f4b72d
JD
5016 * xterm.h: Remove condition for declaration of
5017 x_*_window_to_frame.
5018
7cef7ce3
SM
50192009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5020
5021 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5022 initial terminal as well.
5023
a54fa5b7
JD
50242009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5025
5026 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5027 x_menubar_window_to_frame.
a54fa5b7 5028
50426a04 5029 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5030 (XTmouse_position): Do not return valid positions
5031 for clicks in the menubar and the toolbar for Gtk+.
5032
5033 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5034 if the widget for the event has the same top level as a frame,
5035 return the frame.
5036 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5037 internal windows, bug #4122.
5038 (x_non_menubar_window_to_frame): Remove.
5039
5a021dd0
GM
50402009-09-02 Glenn Morris <rgm@gnu.org>
5041
5042 * buffer.c (default-major-mode): Move most of the doc from here...
5043 (major-mode): ... to here.
5044
548fe2f3
NR
50452009-08-30 Nick Roberts <nickrob@snap.net.nz>
5046
5047 * process.c (wait_reading_process_output): Keep the descriptor
5048 when pty is used by a non-child process, e.g., in I/O buffer of
5049 GDB this allows inferior to be restarted.
5050
e0840eef
EZ
50512009-08-29 Eli Zaretskii <eliz@gnu.org>
5052
5053 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5054 both branches into one.
5055
82e98df4
SM
50562009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5057
5058 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5059 (main): Use enable-multibyte-characters rather than
5060 default-enable-multibyte-characters. Output a warning message when
5061 running a unibyte session.
5062
890617cb
YM
50632009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5064
5065 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5066 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5067 (copy_data_segment): Also copy __program_vars section.
5068 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5069 (dump_it) [LC_DYLD_INFO]: Use it.
5070
5071 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5072
e7adeadc
EZ
50732009-08-28 Eli Zaretskii <eliz@gnu.org>
5074
5075 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5076 $(SRC)/buildobj.h.
5077 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5078 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5079 $(SRC)/buildobj.h.
5080 (clean): Add buildobj.h.
5081
3ed8bbdc
TZ
50822009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5083
5084 * print.c (print_object): Set escapeflag to 1 when printing
5085 hashtable keys and values.
5086
155a6764
SM
50872009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5088
5089 * lread.c (read_integer): Use doubles (and potentially return a float
5090 number) as we do in string-to-number.
5091 (read1): Use strtol to read integers, signal errors on strtol's
5092 overflow and use floats if strtol's output is too large for
5093 Elisp integers.
5094
877610de
EZ
50952009-08-27 Eli Zaretskii <eliz@gnu.org>
5096
5097 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5098 (make-buildobj-SH): Fix last change.
5099 (SRC): Move to before where it's first used.
5100
ef73e7be
KH
51012009-08-27 Kenichi Handa <handa@m17n.org>
5102
550c8289
KH
5103 * process.c (send_process): Use encode_coding_object instead of
5104 encode_coding_string to perform eol-conversion even if the string
5105 is unibyte.
5106
60afa08d
KH
5107 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5108 character.
5109
ef73e7be 5110 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5111 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5112
7b3a82d7
DN
51132009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5114
5654bf63
DN
5115 * callproc.c (Fcall_process): Remove always true #if.
5116
7b3a82d7
DN
5117 * lisp.h: Replace #if 0 code for checking with text pointing to
5118 the --enable-checking configure flag.
5119
5120 * emacs.c (main): Mention the --enable-profiling configure flag
5121 instead of using CFLAGS.
5122
878bde49
KR
51232009-08-26 Ken Raeburn <raeburn@raeburn.org>
5124
5125 * Makefile.in (buildobj.h): New target.
5126 (doc.o): Depend on it.
5127 (temacs${EXEEXT}): Don't generate buildobj.lst.
5128 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5129 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5130 ($(BLD)/doc.$(O)): Depend on it.
5131 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5132 provided by Eli Zaretskii.)
5133 ($(TEMACS)): Don't generate buildobj.lst.
5134 * doc.c: Include buildobj.h.
5135 (buildobj): New static variable.
5136 (Fsnarf_documentation): Use it, instead of opening and reading
5137 buildobj.lst.
5138
1574224c
MA
51392009-08-25 Michael Albinus <michael.albinus@gmx.de>
5140
5141 * dbusbind.c (Fdbus_call_method)
5142 (Fdbus_call_method_asynchronously): Use English numeric format for
5143 timeout values in doc string.
5144
d9da2f45
KH
51452009-08-25 Kenichi Handa <handa@m17n.org>
5146
ef73e7be
KH
5147 * alloc.c (mark_char_table): New function.
5148 (mark_object): Use mark_char_table for a char-table.
5149
d9da2f45
KH
5150 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5151 (CHAR_TABLE_REF): Use it.
5152
c8edcc01
KR
51532009-08-23 Ken Raeburn <raeburn@raeburn.org>
5154
5155 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5156 before invoking the newly build emacs to check for load-path
5157 shadowing.
5158
7763401b
GM
51592009-08-22 Glenn Morris <rgm@gnu.org>
5160
5161 * Makefile.in (bootstrap_exe): New variable.
5162 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5163 Use ${bootstrap_exe}.
5164
729eadda
EZ
51652009-08-22 Eli Zaretskii <eliz@gnu.org>
5166
5167 * coding.h (encode_coding_string): Don't encode unibyte strings.
5168 (Bug#4047)
5169
eb4c6ace
MA
51702009-08-22 Michael Albinus <michael.albinus@gmx.de>
5171
5172 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5173
5174 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5175 intended as hotfix only.
5176 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5177
36e34d1b
AR
51782009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5179
5180 * nsterm.m (ns_get_color): Update documentation properly for last
5181 change, and clean up loose ends in the code left by it. Fix
5182 longstanding bug with 16-bit hex parsing, and add support for
5183 yet another X11 format (rgb:r/g/b) for compatibility.
5184 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5185 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5186
f983eb8a
SM
51872009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5188
5189 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5190
3f56d3c6
MA
51912009-08-20 Michael Albinus <michael.albinus@gmx.de>
5192
5193 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5194 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5195 (xd_initialize, xd_pending_messages): Check, whether
5196 $DBUS_SESSION_BUS_ADDRESS is set.
5197
fb641d68
YM
51982009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5199
5200 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5201
5202 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5203
cf59a374
GM
52042009-08-20 Glenn Morris <rgm@gnu.org>
5205
5206 * emacs.c (system-type): Doc fix.
5207
1373f3be
SM
52082009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5209
5210 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5211 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5212
058ed861
MA
52132009-08-18 Michael Albinus <michael.albinus@gmx.de>
5214
1373f3be
SM
5215 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5216 New functions.
058ed861
MA
5217 (xd_initialize): Revert change from 2009-08-16.
5218
563a866e 52192009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5220
5221 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5222 font-group vector, return nil.
5fc05db0 5223
e42bdf01
CY
52242009-08-17 Chong Yidong <cyd@stupidchicken.com>
5225
5226 * process.c (status_notify): Don't perform redisplay.
5227 (Fdelete_process, list_processes_1, process_send_signal):
5228 Expliticly perform redisplay.
5229 (wait_reading_process_output): Always check process status, but
5230 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5231
4230ab74
KR
52322009-08-17 Ken Raeburn <raeburn@raeburn.org>
5233
1373f3be 5234 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5235 (XFLOAT_INIT): New macro for storing a float value.
5236 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5237 * fns.c (sxhash): Copy out the value of a float in order to
5238 examine its bytes.
5239 * dbusbind.c (xd_append_arg): Likewise.
5240
4230ab74
KR
5241 * emacs.c (main): Don't call syms_of_data twice.
5242
a0645cdd
MA
52432009-08-16 Michael Albinus <michael.albinus@gmx.de>
5244
5245 * dbusbind.c (xd_initialize): Add connection file descriptor to
5246 input_wait_mask, in order to let select() detect, whether a new
5247 message has been arrived.
ca4f31ea 5248 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5249
485db0ba
MA
52502009-08-15 Michael Albinus <michael.albinus@gmx.de>
5251
1373f3be
SM
5252 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5253 New functions.
485db0ba
MA
5254
5255 * lisp.h (xd_pending_messages): Declare.
5256
5257 * keyboard.c (readable_events): Call xd_pending_messages.
5258
b5b98ff4
CY
52592009-08-15 Chong Yidong <cyd@stupidchicken.com>
5260
1373f3be 5261 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5262
f8354c6e
CY
5263 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5264
b5b98ff4
CY
5265 * buffer.c (set_buffer_internal_1)
5266 (swap_out_buffer_local_variables): Check for unbound local
5267 variables (Bug#4138).
5268
8b9fc636
EZ
52692009-08-14 Eli Zaretskii <eliz@gnu.org>
5270
5271 * process.c (create_pty): Fix last change.
5272
ce959360
CY
52732009-08-13 Chong Yidong <cyd@stupidchicken.com>
5274
5275 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5276 (xbm_load_image): Caller changed.
64b807c9 5277 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5278
c7baf7e9
NR
52792009-08-13 Nick Roberts <nickrob@snap.net.nz>
5280
5281 * process.c (create_pty): New function.
5282 (Fstart_process): Use it to allow Emacs to just associate a pty
5283 with the buffer. See associated change in gdb-mi.el.
5284 (list_processes_1): Deal with no program name.
5285 (start_process_unwind): Use pid == -2 to mean no process.
5286
1ac9108a
SM
52872009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5288
5289 * cmds.c (nonundocount): New global variable.
5290 (keys_of_cmds): Initialize it.
5291 (Fself_insert_command): Use it to combine upto 20 sequential chars
5292 into a single undo entry, just like the Qself_insert_command code in
5293 keyboard.c does.
5294 Call frame_make_pointer_invisible, also like the Qself_insert_command
5295 code in keyboard.c does.
5296 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5297 than its own local replacement for it.
5298
e267324c
KR
52992009-08-10 Ken Raeburn <raeburn@raeburn.org>
5300
1ac9108a 5301 * fns.c (concat): Don't re-set string length to its current value.
77437343 5302
1ac9108a
SM
5303 * coding.h (decode_coding_string, encode_coding_string):
5304 Use SBYTES macro.
f0bed503 5305
1ac9108a 5306 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5307 (doprnt): Merge with doprnt1, discarding lispstrings code.
5308 * lisp.h (doprnt_lisp): Don't declare.
5309
416e006d
JL
53102009-08-07 Juri Linkov <juri@jurta.org>
5311
5312 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5313
6f7d5780
DN
53142009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5315
5316 * print.c (syms_of_print): Undo previous change.
5317
f19a0f5b
TZ
53182009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5319
5320 * lread.c (read1, syms_of_lread): Read hashtables back from the
5321 readable format.
5322
5323 * print.c (print_preprocess, print_object): Print hashtables fully
5324 and readably.
5325 (syms_of_print): Provide 'hashtable-print-readable.
5326
b9173dc2
AR
53272009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5328
5329 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5330 no family set.
5331 (nsfont_open): Handle case when entity has no family.
5332
1586503c
AR
53332009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5334
5335 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5336 element, not a list, for match case.
5337
087048cd
KH
53382009-07-28 Kenichi Handa <handa@m17n.org>
5339
5340 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5341 rigidly.
5342
5343 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5344 font_parse_xlfd. Check font properties more rigidly.
5345
780c2506
DN
53462009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5347
31fd7c5c
JB
5348 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5349 bsd-common.h.
780c2506 5350
a8c0cc18
KH
53512009-07-27 Kenichi Handa <handa@m17n.org>
5352
5353 * xfaces.c (face_with_height): Call font_clear_prop.
5354
4fbe2306
CY
53552009-07-26 Chong Yidong <cyd@stupidchicken.com>
5356
111d9af3
CY
5357 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5358
5359 * xterm.c (x_term_init): Use Qx.
5360
4fbe2306
CY
5361 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5362
1ac9108a 5363 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5364 (ns_get_color): Revert 2009-07-16 change.
5365
beb0b7f9
EZ
53662009-07-25 Eli Zaretskii <eliz@gnu.org>
5367
5368 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5369 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5370
2baf5e76
KR
53712009-07-25 Ken Raeburn <raeburn@raeburn.org>
5372
1ac9108a
SM
5373 * coding.h (decode_coding_string, encode_coding_string):
5374 Use SCHARS macro.
8890e5f5 5375
2baf5e76 5376 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5377 (load_depth): Delete.
2baf5e76
KR
5378 (Qload_in_progress): New variable.
5379 (load_unwind): Don't reference load_depth or load_in_progress.
5380 (Fload): Likewise; specbind Qload_in_progress instead.
5381 (init_lread): Don't initialize load_depth.
5382 (syms_of_lread): Initialize and protect Qload_in_progress.
5383
1395c6f5
AR
53842009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5385
5386 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5387
4e2f36cf
AR
53882009-07-23 Yavor Doganov <yavor@gnu.org>
5389
5390 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5391
5dd9a6f7
AR
53922009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5393
5394 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5395 Bugs 3792, 3720, 2402.
5396 (ns_lookup_indexed_color): Check for bad index.
5397 (ns_index_color): Init unused slot to 0.
5398 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5399 Bug 3714, possibly 3082.
5dd9a6f7 5400
c902b920
JR
54012009-07-22 Jason Rumney <jasonr@gnu.org>
5402
1ac9108a
SM
5403 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5404 Position IME window at cursor (Bug#2570).
c902b920
JR
5405 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5406 (globals_of_w32fns): Dynamically load functions required above.
5407
5408 * w32term.c (w32_draw_window_cursor): Send message to reposition
5409 any IME window.
5410
090101cf
CY
54112009-07-21 Chong Yidong <cyd@stupidchicken.com>
5412
5413 * fileio.c: Revert 2009-07-16 changes.
5414 (Vauto_save_include_big_deletions): New variable.
5415 (Fdo_auto_save): Disable auto-save only if
5416 auto-save-include-big-deletions is nil.
5417
e6583e3d
CY
54182009-07-21 Chong Yidong <cyd@stupidchicken.com>
5419
5420 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5421 the overflowed pixels into account (Bug#3879).
5422
ece435a5
KR
54232009-07-21 Ken Raeburn <raeburn@raeburn.org>
5424
5425 * lread.c (load_depth): New variable.
5426 (Fload, load_unwind, init_lread): Set it to the load recursion
5427 depth; set load_in_progress as a simple boolean based on the
5428 current load_depth. (Bug#3892)
5429
40b2d973
AR
54302009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5431
5432 * nsfont.m (ns_has_attribute): Remove.
5433 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5434
10be7e0d
JL
54352009-07-18 Juri Linkov <juri@jurta.org>
5436
5437 * process.c (Fset_process_query_on_exit_flag): Mention killing
5438 a buffer in docstring.
5439
fa055055
KH
54402009-07-17 Kenichi Handa <handa@m17n.org>
5441
5442 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5443
042f7b69
YM
54442009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5445
5446 * nsfns.m (Fns_set_alpha): Remove function.
5447 (syms_of_nsfns): Don't defsubr it.
5448
5449 * nsterm.m (ns_get_color): Remove incompatible color formats.
5450 (ns_color_to_lisp): Generate #rrggbb color format string.
5451
4be941e3
RS
54522009-07-16 Richard Stallman <rms@gnu.org>
5453
5454 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5455 (Fset_buffer_auto_saved): Handle save_length = -2.
5456
4e6b227d
CY
54572009-07-16 Chong Yidong <cyd@stupidchicken.com>
5458
5459 * xterm.c (Qx_gtk_map_stock): New var.
5460
5461 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5462 of calling intern each time.
5463
a1856973
YM
54642009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5465
5466 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5467 does tiling.
5468
5469 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5470
497e54d8
KH
54712009-07-14 Kenichi Handa <handa@m17n.org>
5472
72d36834
KH
5473 * font.c (font_vconcat_entity_vectors): New function.
5474 (struct font_sort_data): New member font_driver_preference.
5475 (font_compare): Check font_driver_preference.
5476 (font_sort_entities): The format of the first argument changed.
5477 (font_delete_unmatched): Likewise.
5478 (font_list_entities): The return type changed.
5479 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5480 (font_find_for_lface): Adjuste for the above changes.
5481 Don't suppress the checking of C even if the repertory supports it.
5482 (Flist_fonts): Adjust for the above changes.
72d36834 5483
1ac9108a
SM
5484 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5485 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5486 Reject a font who has adstyle property that is different from a
5487 langname derived from registry property.
1ac9108a 5488 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5489
b6046155
EZ
54902009-07-13 Eli Zaretskii <eliz@gnu.org>
5491
5492 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5493 local copy of dirfilename.
5494
fb6b6049
KH
54952009-07-13 Kenichi Handa <handa@m17n.org>
5496
e2402a5e
KH
5497 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5498 against max_char.
5499
fb6b6049
KH
5500 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5501 calling XSYMBOL (sym).
5502
65156807
EZ
55032009-07-11 Eli Zaretskii <eliz@gnu.org>
5504
1ac9108a
SM
5505 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5506 New function.
5507 (directory_files_internal) [WINDOWSNT]:
5508 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5509 the filesystem of the directory is fast or slow.
5510
5511 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5512 file name.
5513 (is_slow_fs): New function.
5514 (stat): Use it to determine whether to issue more system calls to
5515 get accurate file attributes, when w32-get-true-file-attributes is
5516 `local'.
5517
e0ab5fcf
JD
55182009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5519
5520 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5521 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5522 parameter font-parameter as default to the font dialog.
5523
784ceded
KH
55242009-07-10 Kenichi Handa <handa@m17n.org>
5525
5526 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5527
fb8edc0b
EZ
55282009-07-09 Eli Zaretskii <eliz@gnu.org>
5529
1ac9108a 5530 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5531
fb8edc0b
EZ
5532 * w32.c (stat): Treat UNC file names as residing on remote
5533 drives. (Bug#3542)
5534
635c75b1
KH
55352009-07-09 Kenichi Handa <handa@m17n.org>
5536
5537 * fontset.c (fontset_find_font): Fix previous change.
5538
c1d5ce94
MA
55392009-07-08 Michael Albinus <michael.albinus@gmx.de>
5540
5541 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5542 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5543 error flag.
5544
edb61b39
KH
55452009-07-08 Kenichi Handa <handa@m17n.org>
5546
374bf7e4
KH
5547 * fontset.c (fontset_find_font): Fix the logic of handling
5548 charset_matched.
5549 (font_for_char): Delete unused var.
5550 (generate_ascii_font_name): Delete it.
5551
edb61b39
KH
5552 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5553
5554 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5555 (encode_coding_sjis): Fix the code range check.
5556
0f3f018c
CY
55572009-07-07 Chong Yidong <cyd@stupidchicken.com>
5558
5559 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5560 (Fexpand_file_name): Copy string data properly (Bug#3772).
5561
fcaf6f3a
JD
55622009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5563
5564 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5565 first MapNotify.
5566
6809ca75
KH
55672009-07-07 Kenichi Handa <handa@m17n.org>
5568
5569 * character.h (unibyte_has_multibyte_table): Delete extern.
5570 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5571
5572 * charset.c (Fset_charset_priority): Update charset_unibyte.
5573 (syms_of_charset): Initialize charset_unibyte.
5574
5575 * character.c (unibyte_has_multibyte_table): Delete it.
5576 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5577 charset_unibyte.
5578 (multibyte_char_to_unibyte_safe): Likewise.
5579 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5580
1ac9108a 5581 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5582 (x_produce_glyphs): Likewise.
5583
5584 * .gdbinit (xcharset): Fix the treating $arg0.
5585
ad9e2d54
EZ
55862009-07-04 Eli Zaretskii <eliz@gnu.org>
5587
5588 Emulation of `getloadavg' on MS-Windows.
50426a04 5589 * w32.c: Include float.h.
ad9e2d54
EZ
5590 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5591 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5592 (get_native_system_info, get_system_times): New functions.
5593 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5594 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5595 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5596 g_b_init_get_system_times, and num_of_processors.
5597
0a3472c7
JR
55982009-07-03 Jason Rumney <jasonr@gnu.org>
5599
5600 * w32term.c (w32_initialize): Use standard types.
5601
80904120
EZ
56022009-07-03 Eli Zaretskii <eliz@gnu.org>
5603
5604 * dired.c (Ffile_attributes): Decode user and group names by the
5605 locale's encoding. (Bug#3443)
5606
6978862d
DN
56072009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5608
f8d23104
DN
5609 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5610 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5611
5612 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5613
5614 * term.c (init_tty): Remove spurious #ifdef.
5615
6978862d
DN
5616 * m/mips.h: Mention this file is also used for netbsd.
5617 * m/pmax.h: Remove file.
5618
e044e4fc
JD
56192009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5620
5621 * xterm.h (struct x_display_info): Add invisible_cursor.
5622 (struct x_output): Add current_cursor.
5623
5624 * xterm.c (XTtoggle_invisible_pointer): New function.
5625 (x_define_frame_cursor): Don't define cursor if invisible or the
5626 same as before. Set current_cursor.
5627 (x_create_terminal): Set toggle_invisible_pointer_hook.
5628
5629 * xfns.c (make_invisible_cursor): New function.
5630 (x_set_mouse_color): Call make_invisible_cursor.
5631 Set current_cursor.
5632 (x_window): Set current_cursor.
5633
5634 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5635
5636 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5637 inserting a character.
5638 (read_avail_input): Call frame_make_pointer_visible.
5639
5640 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5641 (frame_make_pointer_invisible, frame_make_pointer_visible):
5642 New functions.
e044e4fc
JD
5643 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5644
5645 * frame.h: Declare frame_make_pointer_invisible and
5646 frame_make_pointer_visible.
5647 (struct frame): Add pointer_invisible.
5648
574c8efa
JD
56492009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5650
7b507248
JD
5651 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5652 frame isn't visible.
5653 (xg_frame_resized): If width/height is -1, get size of window
5654 from X server.
5655
5656 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5657 for MapNotify.
5658
835bdaa7 5659 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5660 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5661 (flush_and_sync): Reintroduce.
574c8efa 5662
3f1c6666 56632009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5664
31fd7c5c 5665 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5666
5667 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5668 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5669
5670 * frame.h: Declare Qsticky.
5671
cad9ef74
JD
5672 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5673
5674 * nsfns.m (ns_frame_parm_handlers): Ditto.
5675
5676 * frame.c: Declare Qsticky.
5677 (frame_parms): Add sticky.
5678
5679 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5680
5681 * xterm.h: Declare x_set_sticky.
5682
5683 * xterm.c (x_set_sticky): New function.
5684
69b16610
JD
5685 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5686 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5687 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5688
5689 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5690
5691 * frame.c: Qmaximized is new.
5692 (x_set_frame_parameters): Do not handle fullscreen specially.
5693 Only set width and height if explicitly set.
5694 (x_set_fullscreen): Handle Qmaximized.
5695 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5696 (syms_of_frame): Initialize Qmaximized.
5697
1ac9108a
SM
5698 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5699 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5700
5701 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5702 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5703 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5704 set gravity to NorthWestGravity when USE_GTK.
5705 (set_wm_state): New function.
31fd7c5c 5706 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5707 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5708 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5709 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5710 to x_real_positions and x_fullscreen_adjust.
5711
5712 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5713 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5714 flush_and_sync.
5715 (xg_height_changed): New function.
5716 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5717 and gtk_window_set_policy. Set frame gravity after parsing the
5718 geometry string.
3f1c6666
JD
5719 (xg_update_frame_menubar, free_frame_menubar)
5720 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5721 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5722 Remove calls to xg_frame_set_char_size.
5723
fd503d99
KH
57242009-07-01 Kenichi Handa <handa@m17n.org>
5725
5726 * keyboard.c (decode_keyboard_code): New function.
5727 (tty_read_avail_input): Decode the input bytes if necessary.
5728
1ac9108a
SM
5729 * coding.c (setup_coding_system):
5730 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5731 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5732 use Qno_conversion.
5733
24ed93fb
YM
57342009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5735
5736 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5737
99061dfc
CY
57382009-06-30 Chong Yidong <cyd@stupidchicken.com>
5739
1ac9108a 5740 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5741
ff90fbde
JR
57422009-06-30 Jason Rumney <jasonr@gnu.org>
5743
5744 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5745 is already loaded.
5746 Set user model ID if supported (bug#1849).
5747
5f445726
JM
57482009-06-29 Jim Meyering <meyering@redhat.com>
5749
5750 Remove useless if-before-xfree test.
5751 * nsfont.m (nsfont_close): Remove useless test.
5752 * term.c (delete_tty): Likewise.
5753 * w32.c (system_process_attributes): Likewise.
5754 * w32font.c (w32font_close): Likewise.
5755 * xfaces.c (x_free_gc): Likewise.
5756 * xselect.c (buffer): Likewise.
5757
b9607587
AS
57582009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5759
5760 * process.c (send_process): Keep decoded string in a local
5761 variable and protect it from GC. (Bug#3521)
5762
89ba96f4
EZ
57632009-06-28 Eli Zaretskii <eliz@gnu.org>
5764
5765 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5766 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5767
098a1589
CY
57682009-06-28 Chong Yidong <cyd@stupidchicken.com>
5769
485422be
CY
5770 * xdisp.c (start_display, handle_face_prop)
5771 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5772 (redisplay_window, try_window_id, produce_image_glyph):
5773 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5774
098a1589
CY
5775 * xterm.c (x_update_window_begin, x_new_focus_frame)
5776 (x_scroll_bar_handle_click, handle_one_xevent)
5777 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5778 (x_make_frame_visible, x_make_frame_invisible)
5779 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5780 code chunks that are now obsolete.
5781
78c38319
MA
57822009-06-28 Michael Albinus <michael.albinus@gmx.de>
5783
5784 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5785 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5786 for hours, when optimzation is enabled.
5787 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5788 (xd_read_message): Make them static.
5789
4189ed40
CY
57902009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5791
5792 * term.c (turn_on_face): Allow simultaneously bold and dim
5793 terminal faces (Bug#3530).
5794
cd9b5e16
CY
57952009-06-27 Chong Yidong <cyd@stupidchicken.com>
5796
4e23bedb
CY
5797 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5798
cd9b5e16
CY
5799 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5800 truncation glyphs (Bug#3686).
5801
07cc3c35
GM
58022009-06-27 Glenn Morris <rgm@gnu.org>
5803
5804 * m/pmax.h: Restore file, with only netbsd portions.
5805
31fd7c5c 58062009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5807
cd9b5e16 5808 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5809
42d4a64f
KH
58102009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5811
5812 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5813 the arg FORCE_SYMBOL.
5814
930fe55b 58152009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5816
5817 * fontset.c (fontset_find_font): When a usable rfont_def is found
5818 in a fallback font-group, make it the first element of the group.
5819
57ebc3fd
CY
58202009-06-24 Chong Yidong <cyd@stupidchicken.com>
5821
5822 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5823
f084f942
KH
58242009-06-24 Kenichi Handa <handa@m17n.org>
5825
5826 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5827 set for C.
5828 (fontset_font): Record the availability of a font for C both in
5829 the realized fontsets of the current one and the default one.
5830
2f686c87
DN
58312009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5832
5833 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5834 conditional, it is always defined on AIX.
5835
666e158e
MB
58362009-06-23 Miles Bader <miles@gnu.org>
5837
5838 * window.c (Vrecenter_redisplay): New variable.
5839 (syms_of_window): Initialize it.
5840 (Qtty): New extern declaration.
5841 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5842
c6da7cd2
JM
58432009-06-23 Jim Meyering <meyering@redhat.com>
5844
1ac9108a
SM
5845 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5846 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5847 pointer dereferences are guaranteed to be valid.
c6da7cd2 5848
678dca3d
KH
58492009-06-23 Kenichi Handa <handa@m17n.org>
5850
74d75424
KH
5851 * emacs.c (main): Call init_font ().
5852
5853 * font.h (Vfont_log): Extern it.
5854 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5855
5856 * font.c (font_sort_entities, font_list_entities)
5857 (font_matching_entity, font_open_entity)
5858 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5859 (Vfont_log): Delete static.
5860 (font_log_env_checked): Delete this variable.
5861 (font_add_log): Don't check font_log_env_checked.
5862 (font_deferred_log): Check Vfont_log.
5863 (init_font): New function.
5864
678dca3d
KH
5865 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5866
5867 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5868
5869 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5870
5871 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5872
5873 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5874 (face_for_char): Don't call font_deferred_log here.
5875 (font_for_char): Likewise.
5876
8a668709
CY
58772009-06-22 Chong Yidong <cyd@stupidchicken.com>
5878
9a01ee33
CY
5879 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5880 rather than its background_width for drawing the overline and
5881 underline (Bug#489).
5882
5883 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5884 rather than its background_width for drawing the overline and
5885 underline (Bug#489).
ec7c9926
CY
5886 (xg_default_icon_file): New variable.
5887 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5888 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5889
8a668709
CY
5890 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5891 (load_overlay_strings): Remove externs.
5892 (fast_find_position): Function deleted.
5893 (mouse_face_from_buffer_pos): New function, based on
5894 fast_find_position. Correctly handle before-strings,
5895 display-strings, and after-strings (Bug#1220).
5896 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5897
4d4c02d8
CY
58982009-06-21 Chong Yidong <cyd@stupidchicken.com>
5899
1ac9108a 5900 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5901 (move_it_in_display_line_to, move_it_in_display_line_to)
5902 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5903
70243478
CY
59042009-06-21 Chong Yidong <cyd@stupidchicken.com>
5905
5906 * Branch for 23.1.
5907
13087e59
JR
59082009-06-21 Jason Rumney <jasonr@gnu.org>
5909
5910 * w32term.c (keyboard_codepage): New static variable.
5911 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5912 (w32_read_socket) [WM_CHAR]: Use it to decode character
5913 input (bug#3237).
5914 (w32_initialize): Initialize it.
5915 (codepage_for_locale): New function.
5916
4735b74e
KR
59172009-06-20 Ken Raeburn <raeburn@raeburn.org>
5918
5919 * process.c (status_message): Pass Faset index argument as a lisp
5920 object, so as to work with USE_LISP_UNION_TYPE.
5921
0e727afa
YM
59222009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5923
5924 * coding.c (Ffind_coding_systems_region_internal):
5925 Cache checked characters.
5926
cf299835
KH
59272009-06-18 Kenichi Handa <handa@m17n.org>
5928
1ac9108a 5929 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5930
90f20d94
AS
59312009-06-18 Andreas Schwab <aschwab@redhat.com>
5932
5933 * xdisp.c (redisplay_internal): Check that the frame is still
5934 live after redisplay of its windows.
5935 (redisplay_windows): Check that the window is still live.
5936
7f1faf1c
KH
59372009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5938
5939 * coding.c (detect_coding_utf_16): Fix previous change.
5940
cc13543e
KH
59412009-06-16 Kenichi Handa <handa@m17n.org>
5942
5943 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5944 UTF-16 by checking the dispersion of Eth and Oth bytes.
5945
977b85f4
AS
59462009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5947
5948 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5949
66bd43d1
KH
59502009-06-15 Kenichi Handa <handa@m17n.org>
5951
5952 * process.c (status_message): Fix previous change. Be sure to
5953 decode a localized string.
5954
cb5ca9c5
YM
59552009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5956
5957 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5958 add comment explaining why.
5959
ec7709ba 59602009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5961
ec7709ba 5962 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5963
4b7f335c
AR
59642009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5965
5966 * nsfont.m (ns_attribute_value): Remove.
5967 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5968 (ns_has_attribute): Shrink the normal range.
5969 (ns_findfonts): Don't worry about requested spec in determining
5970 need for synthItal.
e41820ee 5971 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5972
73b26103
SZ
59732009-06-14 Seiji Zenitani <zenitani@mac.com>
5974
5975 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5976
5753e4da
KH
59772009-06-11 Kenichi Handa <handa@m17n.org>
5978
5979 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5980 overhang for the static composition case.
5981
3561b671
KH
59822009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5983
5753e4da
KH
5984 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5985 overhang for the automatic composition case.
5986
3561b671
KH
5987 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5988 composition case.
5989
852bbd41
CY
59902009-06-10 Chong Yidong <cyd@stupidchicken.com>
5991
5992 * xdisp.c (get_next_display_element): When handling wrap-prefix
5993 and line-prefix, treat \n as a control character (bug#3502).
5994
9903d1e6
KH
59952009-06-10 Kenichi Handa <handa@m17n.org>
5996
5997 * font.c (font_parse_family_registry): Fix for one-char foundry.
5998 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5999
0bcbaaaa
CY
60002009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6001
6002 * process.c (status_message): Fix handling of multibyte signal
6003 string (Bug#3499).
6004
40aa3f13
JM
60052009-06-09 Jim Meyering <meyering@redhat.com>
6006
1f80c7e2
CY
6007 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6008 color name is missing.
40aa3f13 6009
72d51285
KH
60102009-06-09 Kenichi Handa <handa@m17n.org>
6011
6012 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6013 FROM-CODE and TO-CODE are codepoints of CHARSET.
6014
c1d04d84
AR
60152009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6016
6017 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6018
60192009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6020
6021 Changes to support :script/:lang/:otf in NS font driver.
6022 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6023 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6024 indicate not part of font driver interface, and change callers.
6025 (ns_get_family): Remove pointless null check.
6026 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6027 ns_spec_to_descriptor, ns_descriptor_to_entity.
6028 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6029 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6030 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6031 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6032 (ns_get_req_script, ns_accumulate_script_ranges)
6033 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6034 New functions.
6035 (nsfont_list, nsfont_match): Use ns_findfonts.
6036 (nsfont_open): Use font descriptor instead of traits.
6037 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6038 (dump_glyphstring): Rename to ns_dump_glyphstring.
6039
c7eb9816
AR
6040 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6041
c1d04d84
AR
6042 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6043
6044 * fontset.c (fontset_from_font): Remove NS-specific code.
6045
ec7709ba 60462009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6047
6048 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6049 nonactive windows.
6050
31fd7c5c 60512009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6052
1ac9108a 6053 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6054
68852c13 60552009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6056
6057 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6058
6756cd1d
CY
60592009-06-07 Chong Yidong <cyd@stupidchicken.com>
6060
6061 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6062 account for the overflowing of newlines into the last glyph on the
6063 display line (Bug#3482).
6064
28bf482a
DR
60652009-06-05 David Reitter <david.reitter@gmail.com>
6066
ec7709ba
JB
6067 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6068 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6069 Fns_selection_exists_p, Fns_selection_owner_p.
6070
fdb55376
JR
60712009-06-03 Jason Rumney <jasonr@gnu.org>
6072
6073 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6074 available. (Bug#3379)
6075
05129fbe
KH
60762009-05-29 Kenichi Handa <handa@m17n.org>
6077
1ac9108a
SM
6078 * coding.c (get_translation_table):
6079 Check Venable_character_translation.
05129fbe 6080
ec7709ba 60812009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6082
ec7709ba
JB
6083 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6084 (x_make_frame_visible): Move frame to front rather than calling
15891144 6085 ns_raise_frame().
ec7709ba 6086 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6087 isn't key window.
ec7709ba 6088 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6089 drawRect may be called by NSView even if the frame is hidden.
6090
ec7709ba
JB
6091 * nsfns.m (Fx_create_frame): Follow other ports in
6092 determining visibility; default to t. Ensure async_visible is set.
15891144 6093
21f73755
EZ
60942009-05-23 Eli Zaretskii <eliz@gnu.org>
6095
6096 * dired.c (Ffile_attributes): Doc fix.
6097
34001e41
CY
60982009-05-22 Chong Yidong <cyd@stupidchicken.com>
6099
6100 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6101
46306a17
SM
61022009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6103
6104 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6105 and xfont_scratch_props.
6106 (syms_of_xfont): Do it here instead.
6107 (xfont_find_ccl_program): Delete, unused.
6108 (xfont_open): Delete unused var `i'.
6109
ef6e0694
KH
61102009-05-21 Kenichi Handa <handa@m17n.org>
6111
6112 * fontset.c (Qlatin): Don't make it static.
6113
46306a17
SM
6114 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6115 New functions.
ef6e0694
KH
6116 (xfont_scripts_cache, xfont_scratch_props): New variables.
6117 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6118 (xfont_list_pattern): Argument changed. Callers changed.
6119 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6120 (xfont_list): Don't reject a font spec with :script property.
6121 (xfont_has_char): Fix setting of encoding.
6122 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6123 xfont_scratch_props.
6124
61252009-05-19 Kenichi Handa <handa@m17n.org>
6126
46306a17 6127 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6128 Callers changed.
6129
61302009-05-18 Kenichi Handa <handa@m17n.org>
6131
6132 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6133
ac71ced7
SM
61342009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6135
6136 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6137 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6138
1c6d1051
YM
61392009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6140
6141 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6142 (x_delete_terminal): Dissociate resource database from display and
6143 then call XrmDestroyDatabase before closing display.
6144
9b9b779c
AR
61452009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6146
6147 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6148 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6149 whether selected frame is viable before raising it (based on patch
6150 by David Reitter), and improve commentary.
6151 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6152
cccd42d5
KH
61532009-05-15 Kenichi Handa <handa@m17n.org>
6154
6155 * font.c (Ffont_spec): Check arguments.
6156
337fbd17
CY
61572009-05-14 Chong Yidong <cyd@stupidchicken.com>
6158
6159 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6160 weight when testing attributes (Bug#3282).
6161
47a6002f
JD
61622009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6163
6164 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6165 what we expect to get in the next ConfigureNotify event.
6166
9cb363db
YM
6167 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6168 before Xft one (Bug#1696).
6169
b9126609
CY
61702009-05-07 David Reitter <david.reitter@gmail.com>
6171
6172 * nsfns.m (Fx_display_planes): Compute bitplanes using
6173 NSBitsPerPixelFromDepth (Bug#3207).
6174
27a69fd9
CY
61752009-05-10 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6178
00f37552
TTN
61792009-05-10 Ulrich Mueller <ulm@gentoo.org>
6180
6181 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6182
2d82a920
DR
61832009-05-07 David Reitter <david.reitter@gmail.com>
6184
ec7709ba
JB
6185 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6186 Respect mouse face background.
2d82a920 6187
46b0d52d
DR
61882009-05-07 David Reitter <david.reitter@gmail.com>
6189
ec7709ba
JB
6190 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6191 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6192 in ns_update_begin and ns_update_end.
6193
ce1b23bb
SM
61942009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6195
5996e1b7
SM
6196 * nsfns.m (ns_get_screen): Rewrite.
6197 Don't presume selected-frame is of type `ns'.
6198
ba98e3a0
SM
6199 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6200 all drivers.
6201
ce1b23bb
SM
6202 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6203
bcda200f
YM
62042009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6205
6206 * keyboard.h (add_user_signal): Fix typo in extern.
6207
6208 * lisp.h (add_user_signal): Remove extern.
6209
6210 * unexelf.c (unexec): Consider a section to precede the .bss section
6211 if its addresses overlap that of .bss.
6212 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6213 instead of dumping process.
6214
864660a2
SM
62152009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6216
6217 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6218
50da4e56
SM
62192009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6220
6221 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6222
51520a1a
DN
62232009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6224
6225 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6226 any statements.
6227
409ea3a1
AS
62282009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6229
59c4c60f
AS
6230 * process.c (read_process_output): Make sure the current buffer is
6231 always restored.
6232
409ea3a1
AS
6233 * coding.c (record_conversion_result): Don't modify
6234 Vlast_code_conversion_error for successful result.
6235 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6236
56f00ed2
KH
62372009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6238
6239 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6240 (load_charset_map): Remove unnecessary code.
56f00ed2 6241
4491c9d2
DR
62422009-04-30 David Reitter <david.reitter@gmail.com>
6243
35f5b128 6244 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6245 through f24.
6246
6970f632
CY
62472009-04-30 Chong Yidong <cyd@stupidchicken.com>
6248
6249 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6250
6251 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6252 face_at_buffer_position.
6253 (face_before_or_after_it_pos, get_next_display_element)
6254 (note_mouse_highlight): Update face_at_buffer_position call.
6255
6256 * term.c (term_mouse_highlight):
6257 * msdos.c (IT_note_mouse_highlight):
6258 * fontset.c (Finternal_char_font):
35f5b128 6259 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6260
6261 * dispextern.h (face_at_buffer_position): Update prototype.
6262
0c616f63
KH
62632009-04-30 Kenichi Handa <handa@m17n.org>
6264
35f5b128 6265 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6266
ad3aaf33
AS
62672009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6268
6269 * callproc.c (Fcall_process): Fix GC protection. Make sure
6270 current buffer is always restored.
6271
c3c963a0
YM
62722009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6273
6274 * atimer.c (init_atimer): Also clear stopped_atimers.
6275
6276 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6277
7e3386cb
YM
6278 * process.c (create_process): Clean up merger residues of
6279 2008-07-17 change.
6280
91f68422
CY
62812009-04-29 Ulrich Mueller <ulm@gentoo.org>
6282
6283 * lread.c (Vread_circle): New variable.
6284 (read1): Disable recursive read if Vread_circle is nil.
6285
24b34550
KH
62862009-04-29 Kenichi Handa <handa@m17n.org>
6287
6288 * fontset.h (set_default_ascii_font): Delete extern.
6289
6290 * fontset.c (set_default_ascii_font): Delete this unused function.
6291
6292 * frame.c (x_set_font): When ARG is a font-object, check if the
6293 font-object matches with the ASCII font-spec of the frame's
9c358bda 6294 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6295
77bf07e1
AS
62962009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6297
6298 * fns.c (Flocale_info): Protect vector from GC during decoding.
6299
6300 * process.c (Fstart_process): Protect argv strings from GC during
6301 encoding.
6302
2c55aacf
AS
63032009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6304
6305 * sysdep.c: Include <ctype.h>.
6306
b892d3c9
DR
63072009-04-27 David Reitter <david.reitter@gmail.com>
6308
35f5b128 6309 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6310 Remove commented-out code.
6311
9d0644c4
JB
63122009-04-26 Johan Bockgård <bojohan@gnu.org>
6313
6314 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6315
b7053016
JR
63162009-04-25 Jason Rumney <jasonr@gnu.org>
6317
6318 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6319
4e8231f3
YM
63202009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6321
6322 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6323 Swap bytes in short integer if fringe bitmap width > 8.
6324
493dcf2c
KH
63252009-04-23 Kenichi Handa <handa@m17n.org>
6326
6327 * xfaces.c (Fx_list_fonts): If a font size is specified in
6328 PATTERN, set it in returned scalable fonts.
6329
401e9e57
CY
63302009-04-22 Chong Yidong <cyd@stupidchicken.com>
6331
708e05dc
CY
6332 * keyboard.c (Fset_input_meta_mode): Doc fix.
6333
6334 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6335
1ac9108a 6336 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6337
6338 * coding.c (Fterminal_coding_system): Doc fix.
6339
6340 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6341 (Fx_display_pixel_height, Fx_display_planes)
6342 (Fx_display_color_cells, Fx_server_max_request_size)
6343 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6344 (Fx_display_mm_height, Fx_display_mm_width)
6345 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6346 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6347 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6348 (check_x_display_info): Handle terminal objects instead of
6349 terminal ids.
6350
401e9e57
CY
6351 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6352 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6353 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6354 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6355
df80c7f0
KH
63562009-04-21 Kenichi Handa <handa@m17n.org>
6357
5a8f12af 6358 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6359 (font_score): Check AVGWIDTH too.
908567ef 6360
df80c7f0
KH
6361 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6362 worst case.
1ac9108a
SM
6363 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6364 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6365
705af33f
JR
63662009-04-19 Jason Rumney <jasonr@gnu.org>
6367
6368 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6369 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6370
6371 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6372 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6373 get_phys_cursor_geometry.
6374
b71ac3dd 6375 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6376 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6377 using get_phys_cursor_geometry.
6378
6379 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6380 correctly calculated.
6381
dc2933eb
JD
63822009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6383
1ac9108a
SM
6384 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6385 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6386 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6387 is deprecated.
6388
973e7849
AS
63892009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6390
6391 * font.c (font_put_frame_data): Use xfree instead of free.
6392
314d66f4
JB
63932009-04-17 Juanma Barranquero <lekktu@gmail.com>
6394
6395 * w32font.c (Qja, Qko): Remove declarations.
6396 (syms_of_w32font): Don't DEFSYM them.
6397
cf702558
CY
63982009-04-17 Chong Yidong <cyd@stupidchicken.com>
6399
6400 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6401
6402 * font.h (Qja, Qko): Extern them.
6403
6404 * ftfont.c (Qja, Qko): Remove declarations.
6405
6406 * xfont.c (Qja, Qko): Remove declarations.
6407
b50504f5
KH
64082009-04-17 Kenichi Handa <handa@m17n.org>
6409
bde25748
KH
6410 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6411 string from a vector to handle Latin-1 characters correctly.
6412
b50504f5
KH
6413 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6414 entity even if the cache hits.
6415
f4646fff
AS
64162009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6417
6418 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6419 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6420
e7deaab0
AS
6421 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6422 * lisp.h: Adjust prototypes.
6423
0a0e7d49
CY
64242009-04-16 Chong Yidong <cyd@stupidchicken.com>
6425
6426 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6427 change (Bug#3003).
6428
3c908a57
KH
64292009-04-16 Kenichi Handa <handa@m17n.org>
6430
1ac9108a 6431 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6432
6433 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6434 adstyle.
6435
6436 * ftfont.c (Qja, Qko): Don't make them static.
6437 (enum ftfont_cache_for): New enum.
6438 (fc_charset_table): Undo the previous change.
6439 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6440 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6441 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6442 non-scarable font, try to get AVERAGE_WIDTH.
6443 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6444 Change ft_face_cache from a list of a hash-table. Don't check
6445 `ja' and `ko' adstyle here.
6446 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6447 FTFONT_CACHE_FOR_CHARET.
6448 (ftfont_get_charset): Undo the previous change.
1ac9108a 6449 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6450 (ftfont_close): Likewise.
6451 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6452
6453 * font.c (font_sort_entites): Change the meaning of the arg
6454 BEST-ONLY. Don't optimize for VEC of lenght 1.
6455 (font_select_entity): Just return the value of font_sort_entites.
6456
6457 * xfaces.c (merge_face_vectors): Reflect font properties in
6458 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6459 font_clear_prop if a face attribute doesn't change.
6460
3c908a57
KH
6461 * charset.h (charset_ksc5601): Extern it.
6462
6463 * charset.c (charset_ksc5601): New variable.
6464 (Fdefine_charset_internal): Set charset_ksc5601.
6465 (init_charset_once): Initialize charset_ksc5601 to -1.
6466
d65859c3
DN
64672009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6468
6469 * fileio.c (history_delete_duplicates): Remove unused declaration.
6470
6471 * callint.c (history_delete_duplicates): New declaration.
6472 (Fcall_interactively): Remove command history duplicates when
6473 history_delete_duplicates is true.
6474
3ba010e5
EZ
64752009-04-14 Eli Zaretskii <eliz@gnu.org>
6476
6477 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6478
06f19b91
KH
64792009-04-14 Kenichi Handa <handa@m17n.org>
6480
6481 * font.c (Ffont_info): Fix docstring. Fix the second element of
6482 the returned value (bug#2949).
6483
2cce8bfc
CY
64842009-04-14 Chong Yidong <cyd@stupidchicken.com>
6485
6486 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6487
d156542d
KH
64882009-04-14 Kenichi Handa <handa@m17n.org>
6489
6490 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6491 encoding charset is ascii_compatible.
6492
6493 * charset.c (Fdefine_charset_internal): Make charset
6494 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6495 code_offset is 0, and covers all ASCII characters.
6496
86fa089e
SM
64972009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6498
6499 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6500 (ns_string_to_pasteboard_internal):
6501 * nsmenu.m (process_dialog):
6502 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6503 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6504 * lisp.h (Fx_load_color_file): Declare.
6505
a8a3728b
KH
65062009-04-13 Kenichi Handa <handa@m17n.org>
6507
1ac9108a 6508 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6509 (font_select_entity): Suppress the code to optimize for the same
6510 kind of fonts.
6511 (font_load_for_lface): Get a font that supports at least ASCII
6512 characters.
6513
6514 * ftfont.c (Qja, Qko): New variables.
6515 (fc_charset_table): Delete uniquifier data for iso8859-1.
6516 (ftfont_get_latin1_charset): New function.
6517 (get_adstyle_property): New function.
6518 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6519 bitmap fonts.
6520 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6521 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6522 `ko' or `ja'.
6523 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6524 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6525 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6526 property.
6527 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6528 (syms_of_ftfont): DEFSYM Qja and Qko.
6529
483670b5
KH
65302009-04-09 Kenichi Handa <handa@m17n.org>
6531
12b55765
KH
6532 * charset.c (map_charset_chars): For a charset of `superset'
6533 method, fix calculation of code range.
6534
483670b5
KH
6535 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6536 from the list of extra properties.
6537 (font_clear_prop): Be sure to delete `:name' font property.
6538
57d3b93b
KH
65392009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6540
b4b2c2ca
YM
6541 * dispnew.c (redraw_overlapping_rows): Fix detection of
6542 overlapping for topmost and bottommost rows.
6543
1ac9108a 6544 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6545
472c3609
JR
65462009-04-06 Jason Rumney <jasonr@gnu.org>
6547
6548 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6549
ab193662
KH
65502009-04-06 Kenichi Handa <handa@m17n.org>
6551
6552 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6553
6554 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6555
0c26f026
KH
65562009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6557
6558 * ftfont.c (ftfont_open): Fix checking of the return value of
6559 FT_Load_Char. Fix setting font->underline_thickness.
6560
e173bbce
CY
65612009-04-04 Chong Yidong <cyd@stupidchicken.com>
6562
6563 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6564 (Fterminal_parameters, Fterminal_parameter)
6565 (Fset_terminal_parameter): In doc string, refer to terminal
6566 objects rather than terminal ids.
6567
693a2698
EZ
65682009-04-04 Eli Zaretskii <eliz@gnu.org>
6569
6570 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6571 ret_lim_data. (Bug#2867)
6572
d5221487
CY
65732009-04-03 Chong Yidong <cyd@stupidchicken.com>
6574
6575 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6576 so they don't get wider than the window, matching 2006-01-23
6577 change to the partner function in xdisp.c (Bug#2800).
6578
223509a3
KH
65792009-04-03 Kenichi Handa <handa@m17n.org>
6580
6581 * print.c (print_object): Make each lowest sub_char_table start a
6582 new line (Bug#2866).
6583
74fcd0b1
KH
65842009-04-02 Kenichi Handa <handa@m17n.org>
6585
6586 * fontset.c (fontset_font): Record no-font when a fontset
6587 explicitly tells not to try another font-specs.
6588
c542407d
SM
65892009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6590
6591 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6592
e3869731
KH
65932009-03-30 Kenichi Handa <handa@m17n.org>
6594
d8d2f142
KH
6595 * fontset.c (fontset_from_font): Specify only registry in a
6596 font-spec for all characters supported by that registry.
6597
e3869731
KH
6598 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6599 even if HAVE_M17N_FLT is not defined.
6600
5da5f805
CY
66012009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6602
6603 * ftfont.c: Conditionalize prototyping and use of
6604 ftfont_variation_glyphs.
6605
ab226c50
SM
66062009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6607
9628fed7
SM
6608 * frame.c (delete_frame): Work around compiler bug.
6609
6610 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6611 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6612 Some more EMACS_INT.
6613 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6614
6615 * xdisp.c (dump_glyph): Fix typo.
6616
ae19ba7c
SM
6617 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6618 (adjust_markers_gap_motion, adjust_markers_for_delete)
6619 (adjust_markers_for_insert, adjust_point)
6620 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6621 (make_gap, copy_text, count_size_as_multibyte, insert)
6622 (insert_and_inherit, insert_before_markers)
6623 (insert_before_markers_and_inherit, insert_1)
6624 (count_combining_before, count_combining_after, insert_1_both)
6625 (insert_from_string, insert_from_string_before_markers)
6626 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6627 (insert_from_buffer_1, adjust_after_replace)
6628 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6629 (replace_range_2, del_range, del_range_1, del_range_byte)
6630 (del_range_both, del_range_2, modify_region)
6631 (prepare_to_modify_buffer, signal_before_change)
6632 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6633 for buffer positions and sizes.
6634 * lisp.h: Adjust prototypes accordingly.
6635
6636 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6637 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6638 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6639
ab226c50
SM
6640 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6641
46dfb8fb
JD
66422009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6643
6644 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6645 lines and columns so we keep the same pixel height and width.
6646
6647 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6648 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6649 (x_handle_net_wm_state): New function to update frame parameter
6650 fullscreen.
6651 (x_term_init): Initialize atoms for _NET_WM_STATE.
6652
6653 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6654
d347e494
SM
66552009-03-27 Kevin Ryde <user42@zip.com.au>
6656
6657 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6658 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6659 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6660 (Fgpm_mouse_stop): Pass that new parameter.
6661 * termhooks.h (close_gpm): Adjust prototype.
6662
84db11d6
SM
66632009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6664
c95a5008
SM
6665 * lisp.h (Fx_focus_frame): Declare.
6666
84db11d6
SM
6667 * callint.c (Fcall_interactively): For '^' just delegate the work to
6668 handle-shift-selection.
6669 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6670
0a1958d6
CY
66712009-03-24 Chong Yidong <cyd@stupidchicken.com>
6672
0bfdff23
CY
6673 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6674
0a1958d6
CY
6675 * data.c (Qinteractive_form): New variable.
6676 (Finteractive_form): Use it.
6677
6678 * eval.c (Fcommandp): Use Qinteractive_form.
6679
58aec0d6
JR
66802009-03-24 Jason Rumney <jasonr@gnu.org>
6681
6682 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6683 Calculate total size precisely. Decode environment variables
6684 before substituting. (Bug#38)
6685
553dd618
KH
66862009-03-24 Kenichi Handa <handa@m17n.org>
6687
6688 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6689 encoding (Bug#2722).
553dd618 6690
c39ea606
JD
66912009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6692
6693 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6694 that gdpy is set.
6695
bc9b2b5e
AM
66962009-03-22 Alan Mackenzie <acm@muc.de>
6697
6698 * callint.c (Finteractive): Clarify the doc string - even
6699 promptless elements need \n separators.
6700
9f995a76
JR
67012009-03-22 Jason Rumney <jasonr@gnu.org>
6702
6703 * w32term.c (syms_of_w32term): Doc fix for
6704 x-use-underline-position-properties.
6705
22749e9a
EZ
67062009-03-21 Eli Zaretskii <eliz@gnu.org>
6707
6708 * w32.c (getpwuid): Change argument type to unsigned.
6709 (struct w32_id): Change type of `rid' member to unsigned.
6710 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6711 argument ID to unsigned. All callers changed.
6712 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6713
e00553bf
EZ
67142009-03-20 Eli Zaretskii <eliz@gnu.org>
6715
6716 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6717 negative, produce a float value.
6718
6719 * dired.c (make_uid, make_gid): New functions.
6720 (Ffile_attributes): Use them to avoid negative UID and GID.
6721
f761d6b6
JB
67222009-03-20 Juanma Barranquero <lekktu@gmail.com>
6723
6724 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6725 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6726 Fix typos in docstrings.
6727
d507f8d7
KH
67282009-03-19 Kenichi Handa <handa@m17n.org>
6729
6730 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6731 changed, use font_load_for_lface to get a new font object.
6732 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6733
6734 * frame.c (x_set_font): Handle the case that ARG is a cons.
6735
c68845e0
GM
67362009-03-19 Glenn Morris <rgm@gnu.org>
6737
6738 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6739
bfa49dd1
CY
67402009-03-19 Chong Yidong <cyd@stupidchicken.com>
6741
6742 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6743
8458d4c1
KH
67442009-03-19 Kenichi Handa <handa@m17n.org>
6745
6746 * charset.c (load_charset_map_from_file): When a mapfile can't be
6747 loaded, signal an error.
6748
78e7d1fe
EZ
67492009-03-18 Eli Zaretskii <eliz@gnu.org>
6750
6751 * dired.c (Ffile_attributes): Make sure UID and GID are always
6752 positive, even if the value is too large for a positive EMACS_INT.
6753 Doc fix.
6754
6755 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6756
5da9fdfa
YM
67572009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6758
6759 * xmenu.c (xdialog_show): Move Fredisplay call ...
6760 (Fx_popup_dialog): ... here.
6761
7519c40d
SM
67622009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6763
6764 * dired.c (file_name_completion): Disable the first optimization just
6765 installed, since it is not implemented correctly.
6766
2cd298e2
SM
67672009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6768
6769 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6770 only if the entry can affect bestmatch.
2cd298e2
SM
6771 Stop the search early, as Ftry_completion already does.
6772
48d37adf
CY
67732009-03-17 Chong Yidong <cyd@stupidchicken.com>
6774
e10c9c93 6775 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6776
9286b16a
CY
67772009-03-15 Chong Yidong <cyd@stupidchicken.com>
6778
6779 * keyboard.c (parse_menu_item): Don't display remappings as menu
6780 equivalent bindings (Bug#788).
6781
f7b146dc
JR
67822009-03-15 Jason Rumney <jasonr@gnu.org>
6783
6784 * w32term.h (WM_EMACS_PAINT): New message.
6785 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6786 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6787 before passing to lisp thread. (Bug#950)
6788
f761d6b6 67892009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6790
d93f9575
CY
6791 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6792 variable as it was never reset.
6793 (ns_term_init): Remove initialization of Lisp-settable defaults
6794 and ns_expand_space.
6795 (-setPanelFromDefaultValues): Remove ns_expand_space.
6796 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6797 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6798 i.e. no additional spacing, similar to Carbon port.
6799
d93f9575
CY
6800 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6801 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6802
305018ec
JD
68032009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6804
6805 * sound.c (alsa_configure): Remove call to deprecated
6806 snd_pcm_sw_params_set_xfer_align.
6807
f761d6b6 68082009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6809
6810 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6811 after clicking in a detached tool bar.
6812 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6813
46e722a9
SM
68142009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6815
348db3dd
SM
6816 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6817 int/Lisp_Object mixup).
46e722a9 6818
a3d16f39
KH
68192009-03-13 Kenichi Handa <handa@m17n.org>
6820
6821 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6822 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6823 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6824 (set_fontset_font): Change ARG to a vector. Handle range_list in
6825 ARG correctly.
6826 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6827 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6828 the above change.
6829 (fontset_from_font): Fix previous change.
fe24f56a 6830 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6831 entry. If FONTSET is the default fontset, don't set the extra
6832 slot of the returning char-table.
6833
b066e6b6
JB
68342009-03-12 Juanma Barranquero <lekktu@gmail.com>
6835
6836 * nsfns.m (Fx_close_connection): Doc fix.
6837 (Fns_do_applescript): Reflow docstring.
6838 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6839 (Fx_display_pixel_width, Fx_display_pixel_height)
6840 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6841 Fix typos in docstrings.
6842 (Fns_set_alpha): Fix typos in error messages.
6843
d472514e 68442009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6845
d472514e 6846 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6847 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6848 were used for such events.
6849
d472514e
JB
6850 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6851 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6852
d472514e 6853 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6854 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6855
fb930676
KH
68562009-03-11 Kenichi Handa <handa@m17n.org>
6857
ff85581a
KH
6858 * font.h (font_open_by_spec): Extern it.
6859
c50b7e98
KH
6860 * font.c (font_open_by_spec): New function.
6861 (font_open_by_name): Use font_open_by_spec.
6862
fb930676
KH
6863 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6864 fontset of the frame.
6865
6866 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6867 modify the default font of frames that use this fontset.
6868 (num_auto_fontsets): New variable.
6869 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6870 name. Be sure to set FONTSET_ASCII to the correct font name.
6871 (update_auto_fontset_alist): New function.
6872
df4e8455
JB
68732009-03-11 Juanma Barranquero <lekktu@gmail.com>
6874
6875 * makefile.w32-in: Update dependencies.
6876
0a375797
AR
68772009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6878
6879 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6880
61313fa3
SM
68812009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6882
6883 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6884
b55103fb
CY
68852009-03-10 Chong Yidong <cyd@stupidchicken.com>
6886
6887 * lread.c (Feval_buffer): Doc fix.
6888
dde2559c
KH
68892009-03-09 Kenichi Handa <handa@m17n.org>
6890
6891 * charset.c (Qfile_name_handler_alist): Extern it.
6892 (load_charset_map_from_file): Temporarily bind
6893 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6894
df4e8455 68952009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6896
47f588bb
GM
6897 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6898 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6899
4ddf94bd
AR
69002009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6901
4c9bdfc2
AR
6902 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6903 (x_set_window_size): Change back to calculated method of setting
6904 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6905 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6906 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6907
fe41ae9e
AR
6908 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6909
4c9bdfc2
AR
6910 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6911 accelerator in parens under GNUstep.
6912
825d0875
KH
69132009-03-06 Kenichi Handa <handa@m17n.org>
6914
6915 These changes are to detect incorrect composition sequence without
f3b3be74 6916 looking ahead the source. (Bug#2370)
825d0875
KH
6917
6918 * coding.h: Include "composite.h".
6919 (enum compisition_state): New enum.
6920 (struct compisition_status): New struct.
6921 (struct iso_2022_spec): New member cmp_status.
6922 (struct emacs_mule_spec): New struct.
6923 (struct coding_system): New members ctext_extended_segment_len and
6924 embedded_utf_8. Change the union member
6925 spec.emacs_mule_full_support to spec.emacs_mule.
6926
6927 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6928 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6929 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6930 (ADD_COMPOSITION_DATA): New arg nbytes.
6931 (emacs_mule_char): New arg cmp_status.
6932 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6933 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6934 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6935 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6936 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6937 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6938 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6939 (EMACS_MULE_COMPOSITION_END): New macro.
6940 (emacs_mule_finish_composition): New function.
6941 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6942 (decode_coding_emacs_mule): Avoid long looking ahead while
6943 handling composition.
6944 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6945 (ENCODE_COMPOSITION_RULE): New macro.
6946 (finish_composition): New function.
6947 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6948 (DECODE_COMPOSITION_START): New implementation.
6949 (DECODE_COMPOSITION_END): Likewise.
6950 (STORE_COMPOSITION_RULE): New macro.
6951 (decode_coding_iso_2022): Avoid long looking ahead while handling
6952 composition, CTEXT extended segment, and embedded UTF-8.
6953 (setup_coding_system): For a coding of type iso-2022, reset
6954 CODING_ISO_EXTSEGMENT_LEN (coding) and
6955 CODING_ISO_EMBEDDED_UTF_8 (coding).
6956 (get_translation): Delete arguments last_block, from_nchars,
6957 to_nchars. Callers changed.
6958 (produce_chars): Don't modify charbuf. Adjusted for the change of
6959 get_translation.
98a326f7 6960 (produce_composition): Adjust for the new annotation sequence.
825d0875 6961 (handle_composition_annotation): Likewise.
98a326f7 6962 (consume_chars): Adjust for the change of get_translation.
825d0875 6963
ccbc4452
AR
69642009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6965
4ddf94bd 6966 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6967
988a7ddb
KH
69682009-03-05 Kenichi Handa <handa@m17n.org>
6969
6970 * font.c (font_select_entity): New function.
6971 (font_find_for_lface): Use font_select_entity to select a font.
6972
6973 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6974 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6975 font with C restriction.
6976
98a326f7 69772009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6978
be1bce46 6979 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6980
10ea2b82
JR
69812009-03-04 Jason Rumney <jasonr@gnu.org>
6982
2c93b248 6983 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6984 characters that have already been read. (Bug#2569)
2c93b248 6985
10ea2b82
JR
6986 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6987 Log an error message if check_image_size failed.
6988 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6989 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6990
71a0c011
EZ
69912009-03-02 Eli Zaretskii <eliz@gnu.org>
6992
6993 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6994 when decoding process output.
6995
2f63bba8
RS
69962009-03-01 Richard M Stallman <rms@gnu.org>
6997
6998 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6999
7000 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7001
0a9564cb
EZ
70022009-02-28 Eli Zaretskii <eliz@gnu.org>
7003
7004 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7005 (decode_coding_emacs_mule, decode_coding_iso_2022)
7006 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7007 (decode_coding_raw_text, decode_coding_charset)
7008 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7009 Honor inhibit-eol-conversion. (Bug #2186)
7010
449148b3
JR
70112009-02-28 Jason Rumney <jasonr@gnu.org>
7012
7013 * coding.c (detect_coding_charset): If not checking latin extra,
7014 fail on characters between 0x80 and 0xA0. (Bug#2354)
7015
a4aee864
EZ
70162009-02-28 Eli Zaretskii <eliz@gnu.org>
7017
7018 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7019 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7020
d88bee5a
GM
70212009-02-27 Glenn Morris <rgm@gnu.org>
7022
7023 * callint.c (Finteractive): Doc fix.
7024
a808f22d
KH
70252009-02-27 Kenichi Handa <handa@m17n.org>
7026
7027 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7028
caf8d60c
CY
70292009-02-27 Chong Yidong <cyd@stupidchicken.com>
7030
7031 * font.c (font_style_to_value): Set value for unknown symbols to
7032 100 instead of 255.
b61137ea
CY
7033 (weight_table, slant_table, width_table): Treat "unspecified" as
7034 the default value.
caf8d60c 7035
1a0de25c
JB
70362009-02-26 Juanma Barranquero <lekktu@gmail.com>
7037
7038 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7039
8fc45744
JB
70402009-02-25 Juanma Barranquero <lekktu@gmail.com>
7041
107bd7d1
JB
7042 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7043 error as soon as a recursive load is detected.
8fc45744 7044
f097e223
AR
70452009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7046
7047 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7048 before caching.
7049
8810a12f
KH
70502009-02-24 Kenichi Handa <handa@m17n.org>
7051
7052 * fontset.c (fontset_find_font): Fix the condition for checking
7053 unavailable font.
7054
2c7d1565
GM
70552009-02-24 Glenn Morris <rgm@gnu.org>
7056
7057 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7058 whitespace that confuses documentation.
7059
a20878b6
MB
70602009-02-23 Miles Bader <miles@gnu.org>
7061
7062 * process.c (Flist_system_processes, Fprocess_attributes)
7063 (syms_of_process): Rename `system-process-attributes' to
7064 `process-attributes'.
7065
b3b58c01
AS
70662009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7067
1b3b981b
AS
7068 * coding.h (struct coding_system): Make safe_charsets a pointer to
7069 unsigned char.
7070 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7071 being 255.
7072 (SAFE_CHARSET_P): Likewise.
7073 (setup_iso_safe_charsets): Properly setup safe_charsets.
7074 (Fdefine_coding_system_internal): Likewise.
7075 (setup_coding_system): Likewise. Remove unneeded casts.
7076 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7077 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7078 unneeded casts.
7079
b3b58c01
AS
7080 * insdel.c (del_range_2): Don't modify gap contents when called
7081 from decode_coding_object. (Bug#1809)
7082
0b6f228c
CY
70832009-02-21 Chong Yidong <cyd@stupidchicken.com>
7084
7085 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7086 Qfont_object.
7087 (Ftype_of): Recognize font objects.
7088
7089 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7090
7091 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7092 moved to data.c.
7093
52f8870b
AR
70942009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7095
7096 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7097 async_iconified. Based on a patch by Christian Lynbech
7098 <christian.lynbech@tieto.com>.
7099 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7100
7087d5e9
GM
71012009-02-20 Glenn Morris <rgm@gnu.org>
7102
7103 * syntax.c (Fskip_chars_forward): Fix doc typo.
7104
41d2ceef
CY
71052009-02-20 Chong Yidong <cyd@stupidchicken.com>
7106
7107 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7108
1a3b7ca6
CY
71092009-02-19 Chong Yidong <cyd@stupidchicken.com>
7110
7111 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7112
73cce38d
KH
71132009-02-19 Kenichi Handa <handa@m17n.org>
7114
7115 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7116 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7117
a51092ee
DN
71182009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7119
7120 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7121
c423ecca
KH
71222009-02-18 Kenichi Handa <handa@m17n.org>
7123
7124 * font.c (font_check_otf_features): Fix handling of `nil' element.
7125 (Ffont_spec): Describe :lang and :otf in the docstring.
7126
4c1958f4
AS
71272009-02-16 Andreas Schwab <schwab@suse.de>
7128
7129 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7130 string.
7131
5704f39a
KH
71322009-02-16 Kenichi Handa <handa@m17n.org>
7133
7134 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7135 (Bug#1723)
5704f39a 7136
8f0085aa
CY
71372009-02-14 Chong Yidong <cyd@stupidchicken.com>
7138
a057d86a 7139 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7140
7141 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7142 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7143
aff01dd9
EZ
71442009-02-14 Eli Zaretskii <eliz@gnu.org>
7145
7146 * msdos.c (MAX_SCREEN_BUF): New macro.
7147 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7148 Encode the entire run of glyphs sharing the same face, instead of
7149 doing that one glyph at a time (fixes a bug with displaying
7150 double-size characters).
7151
ba301db3
AR
71522009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7153
7154 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7155
7156 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7157 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7158 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7159
7160 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7161 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7162
51d861de
SM
71632009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7164
ac146f82 7165 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7166 invisible areas.
7167
7fed8996
JR
71682009-02-12 Jason Rumney <jasonr@gnu.org>
7169
631ea4fb
JR
7170 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7171 (add_font_entity_to_list): Call check_face_name even when family
7172 is unspecified.
7173
cb4a3e42
JR
7174 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7175 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7176 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7177
7fed8996 7178 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7179 raster fonts. (Bug#2219)
7fed8996 7180
895416e3
KH
71812009-02-12 Kenichi Handa <handa@m17n.org>
7182
7183 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7184 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7185 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7186 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7187 (find_automatic_composition): While looking forward and backward,
7188 check static composition. Fix where to stop looking forward.
7189 (composition_adjust_point): Fix checking of static composition.
7190 (Fcomposition_get_gstring): Pay attention to
1dacf998 7191 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7192
7193 * lisp.h (fast_looking_at): Extern it.
7194
7195 * search.c (fast_looking_at): New function.
7196
51d861de 7197 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7198 <struct glyph>.u.cmp.to.
7199 (append_composite_glyph): Likewise.
7200
51d861de 7201 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7202 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7203 composition.
51d861de 7204 (append_composite_glyph): Adjust for the change of
895416e3
KH
7205 <strcut glyph>.u.cmp.to.
7206
8510724d
JB
72072009-02-11 Juanma Barranquero <lekktu@gmail.com>
7208
7209 * casetab.c (init_casetab_once):
7210 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7211 * font.c (font_update_lface):
7212 * fontset.c (Fnew_fontset):
7213 * ftfont.c (ftfont_drive_otf):
7214 * xfont.c (xfont_open):
7215 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7216
294fa707
SM
72172009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7218
7219 * fileio.c (Fwrite_region): !NILP -> CONSP.
7220
b5bfebec
AS
72212009-02-10 Andreas Schwab <schwab@suse.de>
7222
7223 * process.c (send_process): Properly relocate pointer into data
adab88bd 7224 when using encoded data. (Bug#2272)
b5bfebec 7225
cb84a2be
KH
72262009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7227
7228 * coding.c (detect_coding_charset): Fix previous change.
7229
89e09428
JR
72302009-02-08 Jason Rumney <jasonr@gnu.org>
7231
7232 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7233 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7234
4470a277
AS
72352009-02-07 Andreas Schwab <schwab@suse.de>
7236
7237 * unexelf.c (unexec): Fix error message.
7238
3175b12a
AR
72392009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7240
7241 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7242 when modal window is active. (Bug #2152)
3175b12a
AR
7243 (applicationShouldTerminate:): Remove now-unneeded while loop
7244 around NSRunAlertPanel.
7245
7246 * nsmenu.m (popupSession): New file-global variable.
7247 (pop_down_menu): End the popupSession before closing dialog.
7248 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7249 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7250 don't query NSApp for events (just sleep instead).
7251
8434d0b8
EZ
72522009-02-07 Eli Zaretskii <eliz@gnu.org>
7253
51d861de
SM
7254 * coding.c (syms_of_coding) <translation-table-for-input>:
7255 Modify doc string to discourage use for character code unification.
8434d0b8 7256
aa82edfd
CY
72572009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7258
7259 * atimer.c (run_timers): Update pending_atimers.
7260
2d283c7c
CY
72612009-02-06 Chong Yidong <cyd@stupidchicken.com>
7262
eb306cab
CY
7263 * image.c (svg_load_image): Fix last change.
7264
2d283c7c
CY
7265 * xfns.c (Fx_create_frame): Signal an error if no font is
7266 found (Bug#2147).
7267
4d8e170e
JB
72682009-02-05 Juanma Barranquero <lekktu@gmail.com>
7269
7270 * character.c (syms_of_character) <script-representative-chars>:
7271 Fix typo in docstring.
7272
c96169a0
AR
72732009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7274
7275 * nsmenu.m (pop_down_menu): New function.
7276 (ns_popup_dialog): Call it on unwind.
7277 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7278 call timer_check() (Bug#2154).
7279 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7280 handling_signal is set.
7281 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7282
31fd7c5c 7283 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7284
7285 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7286
7287 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7288
51d861de
SM
7289 * keyboard.c (poll_for_input_1, handle_async_input):
7290 Set handling_signal under HAVE_NS.
c96169a0 7291
aacd8ba1
GM
72922009-02-04 Glenn Morris <rgm@gnu.org>
7293
7294 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7295
4cb75c4b
KH
72962009-02-04 Kenichi Handa <handa@m17n.org>
7297
7298 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7299
7300 * charset.c (Fchar_charset): New optional arg restriction.
7301
7302 * coding.h (coding_system_charset_list): Extern it.
7303
7304 * coding.c (coding_system_charset_list): New function.
7305
7306 * composite.c: Include coding.h and termhooks.h.
7307 (composition_gstring_p): Fix for the terminal case.
7308 (composition_gstring_width): Likewise.
7309 (fill_gstring_body): Likewise.
7310 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7311 the frame.
7312 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7313 is within a composition.
867d4bb3 7314 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7315
7316 * term.c (encode_terminal_code): Fix handling of composition.
7317 (produce_composite_glyph): For static composition, get pixel_width
7318 from struct composition.
7319
826ba17e
AS
73202009-02-02 Andreas Schwab <schwab@suse.de>
7321
7322 * unexelf.c (unexec): Handle unaligned bss offset.
7323
8ad093db
AR
73242009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7325
7326 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7327 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7328
8ad093db
AR
7329 * keyboard.c (handle_interrupt): Don't call
7330 quit_throw_to_read_char() under NS.
d0a76a6e 7331
8ad093db
AR
7332 * blockinput.h: Remove NS-specific code.
7333
4d18a7a2
DN
73342009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7335
db878925
DN
7336 * dispnew.c (window_change_signal): Don't try to get the size of a
7337 suspended tty frame.
7338 * term.c (Fresume_tty): Resize if the size has changed while the
7339 tty was suspended.
7340
4d18a7a2
DN
7341 * alloc.c (mark_stack): Properly conditionalize previous change.
7342
8984df7c
JB
73432009-01-30 Juanma Barranquero <lekktu@gmail.com>
7344
7345 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7346 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7347 Remove; this code is not used on Windows.
7348
75f4f1ac
EZ
73492009-01-30 Eli Zaretskii <eliz@gnu.org>
7350
7351 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7352 EOLs that also has stray ^M characters.
7353
07a1e794
JB
73542009-01-30 Juanma Barranquero <lekktu@gmail.com>
7355
7356 * atimer.c (run_timers, alarm_signal_handler):
7357 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7358 * w32inevt.c (w32_console_read_socket):
7359 * w32term.c (w32_read_socket):
7360 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7361
a8b11cc9
CY
73622009-01-30 Chong Yidong <cyd@stupidchicken.com>
7363
7364 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7365 Initialize it as a relative filename pattern.
7366 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7367 (Fcall_process_region): Simplify temp file creation using
7368 temporary-file-directory.
7369
c279587b
EZ
73702009-01-29 Eli Zaretskii <eliz@gnu.org>
7371
7372 * msdos.c: Rename pending_signals to msdos_pending_signals.
7373 (sig_suspender, sigprocmask): Adjust.
7374
a8fe3242
CY
73752009-01-29 Chong Yidong <cyd@stupidchicken.com>
7376
7377 * keyboard.c (pending_signals): New var.
7378 (poll_for_input, input_available_signal, init_keyboard): Set it.
7379 (process_pending_signals): New function.
7380
7381 * lisp.h (QUIT): Check pending_signals instead of
7382 interrupt_input_pending. Use process_pending_signals.
7383
51d861de 7384 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7385
51d861de 7386 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7387
7388 * sysdep.c (emacs_write): Use process_pending_signals.
7389
7390 * xterm.c (XTread_socket): Update pending_signals.
7391
7392 * w32term.c (w32_read_socket): Update pending_signals.
7393
7394 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7395
6570a1c4
KH
73962009-01-29 Kenichi Handa <handa@m17n.org>
7397
7398 * xftfont.c (xftfont_has_char): New function.
7399 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7400
d72a4afa
AR
74012009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7402
7403 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7404 under GNUstep.
7405 (ns_query_color): New declaration.
7406
7407 * nsterm.m (ns_confirm_quit): New variable.
7408 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7409 (EmacsApp-applicationShouldTerminate:): Use it.
7410 (EmacsPrefsController): Let user set it.
7411 (ns_query_color): New function.
7412 (ns_defined_color): Use it.
7413 (ns_initialize): Drop.
7414 (ns_term_init): Add two lines from ns_initialize(), and set
7415 input_interrupt_mode to nil.
7416
7417 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7418 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7419
9fe78804
KH
74202009-01-28 Kenichi Handa <handa@m17n.org>
7421
7422 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7423 (fontset_get_font_group): Remember that no font-group is specified
7424 for C.
9fe78804 7425
fa57de36
CY
74262009-01-27 Chong Yidong <cyd@stupidchicken.com>
7427
930600e9
CY
7428 * fns.c (concat): Check for string overflow (bug#1787).
7429
fa57de36
CY
7430 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7431 Quadruple undo limits (bug#1501).
7432
7179ce7b
KH
74332009-01-27 Kenichi Handa <handa@m17n.org>
7434
7435 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7436 directly use GT_Get_Char_index.
7437
7438 * xftfont.c (struct xftfont_info): New member `index'.
7439
7440 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7441 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7442
5be8fcc0
CY
74432009-01-26 Kenichi Handa <handa@m17n.org>
7444
7445 * fontset.c (fontset_find_font): Fix handling of non-cons return
7446 value of fontset_get_font_group.
7447 (fontset_font): Revert last change.
7448
19ae3e61
JR
74492009-01-26 Jason Rumney <jasonr@gnu.org>
7450
7451 * w32font.c (w32font_list_internal): Return quickly if registry is
7452 unknown. Simplify final return.
7453 (add_font_entity_to_list): Break complex logic down into more
7454 manageable chunks. Move unknown registry check to
7455 w32font_list_internal.
7456
8612b71a
AR
74572009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7458
7459 Changes to remove Feval calls from GUI under NS.
7460
d8038940
JB
7461 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7462 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7463 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7464
7465 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7466 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7467 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7468 instead of NON_ASCII_KEYSTROKE_EVENT.
7469 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7470 (EmacsApp-applicationShouldTerminate:): Query user.
7471 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7472 instead of Feval.
7473
7474 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7475
7476 * keyboard.c (kbd_buffer_get_event): Check for it.
7477 (keys_of_keyboard): Define lispy keys for
7478 ns-put/unput-working-text.
7479
7480 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7481 versions.
7482 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7483
6288ae55
CY
74842009-01-25 Chong Yidong <cyd@stupidchicken.com>
7485
7486 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7487 setting current_buffer directly. (Bug#2044)
6288ae55 7488
289e7f8f
CY
74892009-01-24 Chong Yidong <cyd@stupidchicken.com>
7490
5ce87308 7491 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7492 any work. (Bug#1952, bug#1990).
5ce87308 7493
64cc3cf6 7494 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7495
b3243e6f
AR
74962009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7497
7498 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7499 (ns_no_defaults): New declaration.
7500 (main): Use it.
e0d2e69a 7501
d900b2af 7502 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7503
d900b2af 7504 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7505
d900b2af
AR
7506 * nsterm.m (ns_no_defaults): New variable.
7507 (ns_initialize): Don't read defaults when ns_no_defaults.
7508 (EmacsView-readSelectionFromPasteboard:)
7509 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7510 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7511 (ns_dumpglyphs_stretch): New function.
7512 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7513 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7514
e0d2e69a
AR
7515 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7516
3ac71f5d
CY
75172009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7518
7519 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7520 call for Sparc64.
7521
3fe53a83
AR
75222009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7523
7524 * nsfns.m:
7525 * nsgui.h:
7526 * nsmenu.m:
7527 * nsselect.m:
7528 * nsterm.h:
7529 * nsterm.m: Remove '23' comments that indicated code added during
7530 update from emacs-20 -> emacs-23.
7531
10f87c6f 75322009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7533
7534 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7535 ns_alternate_modifier. (Bug#1217)
a3b53a85 7536
c7cef62d
AR
7537 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7538 Display all shortcuts, including those w/o super modifier.
7539
575fb8bd
AR
7540 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7541
918b848b
CY
75422009-01-22 Chong Yidong <cyd@stupidchicken.com>
7543
7544 * fileio.c (Vwrite_region_post_annotation_function)
7545 (Vwrite_region_annotation_buffers): New vars.
7546 (build_annotations_unwind): Just reset
7547 Vwrite_region_annotation_buffers.
7548 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7549 Call write-region-post-annotation-function.
7550 (build_annotations): Add to Vwrite_region_annotation_buffers if
7551 buffer changes.
7552
a39e2539
AR
75532009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7554
7555 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7556 Tiger.
51d861de
SM
7557 * nsfns.m (ns_do_applescript):
7558 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7559
35ed44db
AR
75602009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7561
7562 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7563
cbe0b5bf
AR
75642009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7565
7566 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7567
6049d3a0
AR
7568 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7569
7570 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7571 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7572 handle Ctrl-tab. (Bug#1841)
7573 (ns_get_color): Use unsigned long long for scanned hex string value.
7574 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7575 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7576 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7577 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7578 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7579 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7580 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7581
d3810c21 7582 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7583 DPI. (Bug#1316)
d3810c21
AR
7584 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7585 values in onTiger section.
4c7077c3 7586
e301e634
CY
75872009-01-19 Chong Yidong <cyd@stupidchicken.com>
7588
7f82490b
CY
7589 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7590 Check return value of font_spec_from_name.
64cc3cf6 7591 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7592
7593 * font.c (font_spec_from_name): Return Qnil if font name could not
7594 be parsed.
7595 (font_parse_name): Treat a `?' character as part of an XLFD.
7596
e301e634
CY
7597 * fns.c (Fsubstring): Doc fix.
7598
1c0db158
KH
75992009-01-19 Kenichi Handa <handa@m17n.org>
7600
51d861de 7601 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7602 (ftfont_list): Likewise.
7603
acf20901
JB
76042009-01-18 Juanma Barranquero <lekktu@gmail.com>
7605
fff4e459
JB
7606 * dbusbind.c (Fdbus_register_signal):
7607 * process.c (conv_sockaddr_to_lisp):
7608 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7609
acf20901
JB
7610 * callproc.c (Fgetenv_internal): Doc fix.
7611
e7abcdfb
CY
76122009-01-16 Chong Yidong <cyd@stupidchicken.com>
7613
7614 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7615 it is not even used.
7616
b60861e6
GM
76172009-01-16 Glenn Morris <rgm@gnu.org>
7618
7619 * font.c (Ffont_variation_glyphs): Silence compiler.
7620
8db52afe
JB
76212009-01-15 Juanma Barranquero <lekktu@gmail.com>
7622
7623 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7624 Reported by David Robinow <drobinow@gmail.com>.
7625
4cddb209
KH
76262009-01-15 Kenichi Handa <handa@m17n.org>
7627
51d861de 7628 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7629
f247f67b
JR
76302009-01-14 Jason Rumney <jasonr@gnu.org>
7631
7632 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7633 never a fontset. (Bug#1562)
f247f67b 7634
f56a4450
KH
76352009-01-14 Kenichi Handa <handa@m17n.org>
7636
7637 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7638 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7639
4e99855e
CY
76402009-01-13 Chong Yidong <cyd@stupidchicken.com>
7641
7642 * font.c (font_clear_prop): If clearing the family, clear the font
7643 width index too.
7644
fff4e459 7645 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7646
24f01470
JB
76472009-01-12 Juanma Barranquero <lekktu@gmail.com>
7648
7649 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7650 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7651 functions, use sizeof.
7652
a41240a3
MR
76532009-01-12 Martin Rudalics <rudalics@gmx.at>
7654
7655 * keyboard.c (read_char): Fix case where last_nonmenu_event
7656 returned a bad value with submenus. (Bug#447)
7657
944636b8
CY
76582009-01-12 Chong Yidong <cyd@stupidchicken.com>
7659
7660 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7661 family, clear the font width index too.
7662
0dad7c6f
JR
76632009-01-11 Jason Rumney <jasonr@gnu.org>
7664
7665 * keyboard.c (cmd_error_internal): Exit when errors occur before
7666 frame creation and not in daemon mode. (Bug#1836)
7667
7c2363af
CY
76682009-01-10 Chong Yidong <cyd@stupidchicken.com>
7669
7670 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7671 of a display vector, backtrack.
7672 (try_window_reusing_current_matrix): Check glyph type before
7673 referencing charpos member.
7674
97b1b294
EZ
76752009-01-10 Eli Zaretskii <eliz@gnu.org>
7676
7677 Fix Bug #876:
7678
7679 * coding.c (inhibit_null_byte_detection): New variable.
7680 (detect_coding, detect_coding_system): Don't pay attention to null
7681 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7682 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7683 <inhibit-iso-escape-detection>: Doc fix.
7684
4624b6e3
JR
76852009-01-09 Jason Rumney <jasonr@gnu.org>
7686
7687 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7688 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7689 Only report Unicode Plane 2 fonts as unicode-sip.
7690
323b840c
CY
76912009-01-09 Chong Yidong <cyd@stupidchicken.com>
7692
51d861de
SM
7693 * xfaces.c (Fx_font_family_list): Delete function.
7694 Move compatibility version to faces.el.
323b840c 7695
51d861de 7696 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7697
eba7400d
MR
76982009-01-09 Martin Rudalics <rudalics@gmx.at>
7699
7700 * frame.c (x_set_frame_parameters): Remember requested value for
7701 fullscreen before it's reset by the parameter handler.
7702
4b09796d
GM
77032009-01-09 Glenn Morris <rgm@gnu.org>
7704
7705 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7706 (last_command_event): ... and update all users.
4b09796d
GM
7707 (last_input_char): For clarity, rename to...
7708 (last_input_event): ... and update all users.
7709 (last-command-char, last-input-char): Move to subr.el as aliases.
7710 * cmds.c, commands.h: Update for last_command_char rename.
7711
14ccea62
CY
77122009-01-08 Chong Yidong <cyd@stupidchicken.com>
7713
51d861de 7714 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7715
5f004711
JR
77162009-01-08 Jason Rumney <jasonr@gnu.org>
7717
7718 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7719 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7720 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7721 Don't declare.
fff4e459 7722 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7723 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7724
b71f6f73
KH
77252009-01-07 Kenichi Handa <handa@m17n.org>
7726
50b06221 7727 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7728 remember the coding system used for decoding in
50b06221
KH
7729 coding_system (Bug#1039).
7730
b71f6f73 7731 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7732 breaking the loop. (Bug#870)
b71f6f73
KH
7733 (decode_coding_utf_16, decode_coding_emacs_mule)
7734 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7735 (decode_coding_charset): Likewise.
7736
56f668f7
MR
77372009-01-05 Martin Rudalics <rudalics@gmx.at>
7738
7739 * frame.c (x_set_frame_parameters): Make sure height (width) get
7740 applied when fullwidth (fullheight) is set. (Bug#1522)
7741
5da9424d
JB
77422009-01-04 Juanma Barranquero <lekktu@gmail.com>
7743
7744 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7745 (utc_base): Declare as ULONGLONG, not long double.
7746 (convert_time_raw): Delete.
7747 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7748 (initialize_utc_base): New function.
7749 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7750 (convert_from_time_t): Use initialize_utc_base; compute result with
7751 64-bit arithmetic.
7752 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7753
c4605e09
EZ
77542009-01-03 Eli Zaretskii <eliz@gnu.org>
7755
9acef61c 7756 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7757 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7758 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7759 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7760 [!subprocesses]: Define.
7761 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7762 (Flist_system_processes, Fsystem_process_attributes)
7763 [!subprocesses]: Call list_system_processes and
7764 system_process_attributes instead of returning Qnil.
7765
9acef61c
JB
7766 * dosfns.c (system_process_attributes, list_system_processes):
7767 New functions.
c4605e09
EZ
7768
7769 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7770
7771 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7772 Don't use the default (no-op) implementation.
7773
8b7d0a16
JR
77742009-01-03 Jason Rumney <jasonr@gnu.org>
7775
a6d46bc1
JR
7776 * keyboard.c (parse_modifiers_uncached): Wheel events are
7777 clicks (bug#687).
7778
8b7d0a16
JR
7779 * w32term.c (x_query_colors, x_query_color): New functions.
7780
7781 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7782 (svg_load_image): Cast returned pointers from dynamically loaded
7783 functions. Eliminate W32 specific code.
7784
bfe11752
DN
77852009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7786
89e2438a
DN
7787 * nsfns.m (x_set_foreground_color, x_set_background_color)
7788 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7789 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7790 x_ prefix instead of ns_. Update references.
7791 (syms_of_nsfns): Add a FIXME comment.
7792
7793 * nsterm.m (x_set_cursor_type): New prototype.
7794 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7795
bfe11752
DN
7796 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7797 for Solaris instead of incorrectly providing Qutime and Qcutime.
7798
031da700
EZ
77992009-01-02 Eli Zaretskii <eliz@gnu.org>
7800
7801 * w32.c (process_times): Compute sum of utime and stime.
7802 (system_process_attributes): Add Qtime to the alist.
7803
7804 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7805 and add them to the alist.
7806
7807 * process.c (top level) <Qtime, Qctime>: New variables.
7808 (syms_of_process): staticpro them.
7809 (Fsystem_process_attributes): Add their documentation to the doc
7810 string.
7811
7812 * process.h: Declare Qtime and Qctime.
7813
df23bf08
JR
78142009-01-02 Jason Rumney <jasonr@gnu.org>
7815
9acef61c 7816 * image.c (Qgobject): New symbol.
df23bf08
JR
7817 (syms_of_image): Initialize it.
7818 (init_svg_functions): Load some functions from gobject library.
7819
5bbdf7aa
DN
78202009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7821
7822 * frame.c (make_terminal_frame): Remove redundant code and useless
7823 block.
7824
63136da6
AS
78252009-01-01 Andreas Schwab <schwab@suse.de>
7826
7827 * process.c (conv_sockaddr_to_lisp): Add workaround for
7828 getsockname bug on BSD.
7829
9ef69046
CY
78302009-01-01 Chong Yidong <cyd@stupidchicken.com>
7831
d6fafbe0
CY
7832 * xfns.c (x_create_tip_frame): Set border width of the X window.
7833
51d861de 7834 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7835
f9c34147
JR
78362009-01-01 Jason Rumney <jasonr@gnu.org>
7837
9acef61c 7838 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7839 Don't block input, as per earlier xterm.c changes.
7840
f5497e45
AR
78412008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7842
7843 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7844 (ns_appkit_version_int): New function.
7845 (x-server-version): Use ns_appkit_version_int and follow 21+
7846 convention of returning 3 integers.
7847
c19cab20
KH
78482008-12-30 Kenichi Handa <handa@m17n.org>
7849
7850 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7851 (CHAR_SURROGATE_PAIR_P): New macro.
7852
7853 * font.h (struct font_driver): New member get_variation_glyphs.
7854
9acef61c 7855 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7856 (Ffont_variation_glyphs): New function.
7857 (syms_of_font): Defsubr it.
7858
7859 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7860 ftfont_variation_glyphs.
7861 (setup_otf_gstring): New function.
7862 (ftfont_drive_otf): Use it.
7863 (ftfont_shape_by_flt): Handle variation selector.
7864 (ftfont_variation_glyphs): New function.
7865
28cd591f
MR
78662008-12-30 Martin Rudalics <rudalics@gmx.at>
7867
7868 * frame.c (Vemacs_iconified): Remove.
7869
7f714baf
JR
78702008-12-30 Jason Rumney <jasonr@gnu.org>
7871
7872 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7873 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7874
9d2d22ab
CY
78752008-12-30 Chong Yidong <cyd@stupidchicken.com>
7876
7877 * indent.c (Fvertical_motion): Don't advance iterator if we have
7878 reseated to the desired position.
7879
7880 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7881 checking for pos match.
7882
545312c2
KH
78832008-12-30 Kenichi Handa <handa@m17n.org>
7884
1ede3eb6
KH
7885 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7886 just get the low 8-bit of the code.
7887
545312c2
KH
7888 * font.c (font_intern_prop): Validate str as multibyte.
7889
bd7bbf29
DN
78902008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7891
31e0750e
DN
7892 * dispextern.h (struct face): Move lface and hash from the middle
7893 of bitfields.
7894
bd7bbf29
DN
7895 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7896
b5672e7c
DN
78972008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7898
7899 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7900 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7901 instead of intervals.h.
7902
d704470f
AS
79032008-12-26 Andreas Schwab <schwab@suse.de>
7904
7905 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7906 cons.
7907
54b33868
MR
79082008-12-26 Martin Rudalics <rudalics@gmx.at>
7909
7910 * textprop.c (Qminibuffer_prompt): New variable.
7911 (syms_of_textprop): Initialize it.
7912 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7913 in minibuffer-prompt face. (Bug#1662)
7914
40b615d6
JR
79152008-12-25 Jason Rumney <jasonr@gnu.org>
7916
7917 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7918
baae5c2d
JR
79192008-12-24 Jason Rumney <jasonr@gnu.org>
7920
7921 * ralloc.c (r_alloc_reset_variable): New function.
7922
7923 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7924 record of what points where. (Bug#716)
baae5c2d 7925
a9051c88
DN
79262008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7927
7928 * minibuf.c (read_minibuf): Follow the non-interactive case when
7929 running as a daemon, before detaching.
7930
8b146312
AS
79312008-12-22 Andreas Schwab <schwab@suse.de>
7932
7933 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7934 * gtkutil.c (free_widget_value): Use xfree instead of free.
7935
56f2de10
MR
79362008-12-22 Martin Rudalics <rudalics@gmx.at>
7937
7938 * frame.c (delete_frame): New function derived from
7939 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7940 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7941 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7942 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7943 * frame.h: Extern delete_frame.
7944 * window.c (window_loop):
7945 * terminal.c (delete_terminal):
7946 * xterm.c (x_connection_closed):
7947 * xfns.c (Fx_hide_tip):
9acef61c 7948 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7949
1fc200d6
JR
79502008-12-21 Jason Rumney <jasonr@gnu.org>
7951
7952 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7953 when character maps to .notdef character.
7954
5e252df2
SM
79552008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7956
7957 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7958
99b72cc4
JR
79592008-12-20 Jason Rumney <jasonr@gnu.org>
7960
7961 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7962 a graphical frame on Windows. (Bug#1325)
99b72cc4 7963
acc49a52
JD
79642008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7965
7966 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7967
6ea15123
CY
79682008-12-20 Chong Yidong <cyd@stupidchicken.com>
7969
7970 * minibuf.c (Fread_buffer): Doc fix.
7971
b2dab6c8
JR
79722008-12-20 Jason Rumney <jasonr@gnu.org>
7973
54ea0c87 7974 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7975 server name in UNC paths. (Bug#719)
54ea0c87 7976
b2dab6c8 7977 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7978 charbuf. (Bug#1035)
b2dab6c8 7979
6d1921be
DN
79802008-12-19 Daniel Engeler <engeler@gmail.com>
7981
7982 * sysdep.c (serial_configure): Fix typo.
7983
53934c98
DN
79842008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7985
7986 * sysdep.c: Include alloca.h.
f4f634e8
DN
7987 (system_process_attributes): Add implementation for Solaris.
7988
7989 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7990
06e111a6
DN
79912008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7992
7993 Reorganize implementation of Flist_system_processes and
7994 Fsystem_process_attributes. No functional changes.
7995 * process.c: Don't #include pwd.h, grp.h and limits.h.
7996 (Flist_system_processes): Just call list_system_processes.
7997 (Fsystem_process_attributes): Just call system_process_attributes.
7998 (procfs_list_system_processes, time_from_jiffies)
7999 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8000 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8001
8002 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8003 (list_system_processes): Rename from
8004 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8005 Provide a do nothing implementation.
8006 (system_process_attributes): Rename from
8007 procfs_list_system_processes.
8008 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8009 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8010
8011 * w32.c (list_system_processes): Rename from
8012 w32_list_system_processes.
8013 (system_process_attributes): Rename from
8014 w32_system_process_attributes.
8015
8016 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8017
8018 * process.h (w32_list_system_processes)
8019 (w32_system_process_attributes): Remove.
362654a6
JB
8020 (list_system_processes, system_process_attributes):
8021 New prototypes.
06e111a6 8022
6a705b23
KH
80232008-12-19 Kenichi Handa <handa@m17n.org>
8024
8025 * xfont.c (xfont_decode_coding_xlfd): New function.
8026 (xfont_encode_coding_xlfd): New function.
8027 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8028 (xfont_list): Decode and encode XLFD by iso-8859-1.
8029 (xfont_match): Likewise.
8030 (xfont_list_family): Likewise.
8031 (xfont_open): Likewise.
8032
d66c0241 8033 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8034 names are utf-8.
8035
d66c0241 8036 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8037 names are utf-8.
8038
5a130941
JD
80392008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8040
8041 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8042 changed.
bfd20325
JD
8043 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8044 clicked on a detached tool bar button.
5a130941 8045
fd95644b
DN
80462008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8047
8048 * emacs.c (main): Print and error and exit when no data is read
8049 from the pipe.
8050
e6eee6ae
JR
80512008-12-17 Jason Rumney <jasonr@gnu.org>
8052
8053 * w32font.c (w32font_has_char): Always return -1.
8054
a35dd56b
KH
80552008-12-16 Kenichi Handa <handa@m17n.org>
8056
8057 * font.c (font_open_entity): Fix previous change.
8058
0e3635c2
DN
80592008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8060
8061 * process.c: Include <limits.h>.
8062
d4835507 80632008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8064
8065 * font.c (font_update_drivers): Fix mistake in reconstructing the
8066 driver list.
8067
80682008-12-16 Chong Yidong <cyd@stupidchicken.com>
8069
8070 * font.c (font_clear_cache): Fix format of font cache data.
8071
e2cbc401
CY
80722008-12-15 Chong Yidong <cyd@stupidchicken.com>
8073
8074 * xftfont.c (xftfont_open): Free Xft font pattern if
8075 XftFontOpenPattern fails.
8076
8077 * xterm.c (x_free_frame_resources): Remove extraneous call to
8078 free_frame_faces.
8079
b131d535
CY
80802008-12-13 Chong Yidong <cyd@stupidchicken.com>
8081
8082 * xterm.c (x_delete_display): Move xim_close_dpy call to
8083 x_delete_terminal.
8084 (x_delete_terminal): Call xim_close_dpy.
8085
e6df5336
JR
80862008-12-13 Jason Rumney <jasonr@gnu.org>
8087
8088 * w32font.c (intern_font_name): New function.
8089 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8090 (w32font_open_internal, Fx_select_font): Decode font name.
8091 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8092
8093 * w32font.h (intern_font_name): Declare new function.
8094
8095 * w32uniscribe.c (add_opentype_font_name_to_list):
8096 Use intern_font_name.
8097
20d68145
CY
80982008-12-13 Chong Yidong <cyd@stupidchicken.com>
8099
9f2554de
CY
8100 * frame.c (Fdelete_frame): Call free_font_driver_list.
8101
3d9bec9a
CY
8102 * font.c (free_font_driver_list): Implement missing function.
8103
20d68145
CY
8104 * w32term.c (w32_term_init): Don't initialize the image cache
8105 here; it will be done in init_frame_faces.
8106
8107 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8108 (struct x_display_info): Remove unused member null_pixel. New
8109 member xim_callback_data.
8110
8111 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8112 (xim_initialize): Save pointer to callback function data.
8113 (xim_close_dpy): Free callback function data. Call XCloseIM,
8114 reverting 2008-11-04 change by David Smith.
8115 (x_term_init): Don't initialize the image cache here; it will be
8116 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8117 (x_delete_display): Free x_dnd_atoms member.
8118
96f9306b
KH
81192008-12-13 Kenichi Handa <handa@m17n.org>
8120
6dec9044
JB
8121 * font.c (font_rescale_ratio): Moved from xfaces.c.
8122 Argument type changed. Handle a font-spec too.
96f9306b 8123 (font_score): Check Vface_font_rescale_alist.
6dec9044 8124 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8125
8126 * xfaces.c (font_rescale_ratio): Moved to font.c.
8127
8d5b4964
CY
81282008-12-13 Chong Yidong <cyd@stupidchicken.com>
8129
8130 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8131
e6df5336
JR
81322008-12-12 Jason Rumney <jasonr@gnu.org>
8133
8134 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8135 Vwindow_system_version to the real w32 major version.
8136
97c6058a
DN
81372008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8138
8139 * term.c (init_tty): Move setting the terminal name before the
8140 potential user: maybe_fatal.
8141
ec4e88d7
CY
81422008-12-11 Chong Yidong <cyd@stupidchicken.com>
8143
d4835507
JB
8144 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8145 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8146
b4233ec9
JR
81472008-12-11 Jason Rumney <jasonr@gnu.org>
8148
8ec71e23 8149 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8150 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8151
b4233ec9 8152 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8153 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8154
011a0143
JB
81552008-12-11 Juanma Barranquero <lekktu@gmail.com>
8156
8157 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8158
3c309f34
JB
81592008-12-11 Juanma Barranquero <lekktu@gmail.com>
8160
8161 * process.c (Fsystem_process_attributes, syms_of_process):
8162 Fix typo in name of Ssystem_process_attributes.
8163 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8164
fedc6ab5
JB
81652008-12-11 Juanma Barranquero <lekktu@gmail.com>
8166
8167 * syntax.c (Fmodify_syntax_entry): Doc fix.
8168
ba3de0e8
JB
81692008-12-10 Juanma Barranquero <lekktu@gmail.com>
8170
8171 * font.c (Ffont_spec): Move usage to end of docstring.
8172
174f1c74
JR
81732008-12-10 Jason Rumney <jasonr@gnu.org>
8174
8175 * w32font.c (Qcham): New symbol.
8176 (font_supported_scripts): Add cham, and comments for other new
8177 scripts in bitfield from OpenType spec.
9d32f818
JR
8178 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8179 contain characters beyond the bmp.
174f1c74 8180
7b649478
KH
81812008-12-10 Kenichi Handa <handa@m17n.org>
8182
8183 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8184 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8185 Qunicode_sip.
8186
2133e2d1
JB
81872008-12-10 Juanma Barranquero <lekktu@gmail.com>
8188
8189 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8190 (Fcoding_system_put): Use QCdefault_char.
8191 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8192
9af886ee
CY
81932008-12-09 Chong Yidong <cyd@stupidchicken.com>
8194
74d819eb
CY
8195 * xftfont.c (syms_of_xftfont): Fix typo.
8196
4ccfa1c0 8197 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8198
7c19d3ae
DN
81992008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8200
8201 * emacs.c (main): Close daemon_pipe on exec.
8202
567826bb
CY
82032008-12-08 Chong Yidong <cyd@stupidchicken.com>
8204
8205 * termchar.h (struct tty): New members termcap_term_buffer and
8206 termcap_strings_buffer.
8207
8208 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8209 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8210 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8211 All callers changed.
8212 (init_tty): Store termcap data and string buffers in new struct
8213 tty members termcap_term_buffer and termcap_strings_buffer.
8214 (delete_tty): Free them.
4ccfa1c0 8215 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8216
aa96c42b
SZ
82172008-12-07 Seiji Zenitani <zenitani@mac.com>
8218
8219 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8220 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8221
b7e1d896
CY
82222008-12-06 Chong Yidong <cyd@stupidchicken.com>
8223
8224 * coding.c (make_conversion_work_buffer): Disable buffer
8225 modification hooks in the work buffer.
8226
b5ec91a5
EZ
82272008-12-05 Eli Zaretskii <eliz@gnu.org>
8228
8229 * process.c (procfs_system_process_attributes): If `nread' has a
8230 negative value, assign zero to it.
8231
a5d2a52b
CY
82322008-12-05 Chong Yidong <cyd@stupidchicken.com>
8233
68c5540b 8234 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8235
7bf1bb21
KH
82362008-12-05 Kenichi Handa <handa@m17n.org>
8237
8238 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8239 second character is a combining character.
8240
2fdc7d00
EZ
82412008-12-05 Eli Zaretskii <eliz@gnu.org>
8242
8243 * process.c (procfs_system_process_attributes): Don't use cmd,
8244 cmdsize, and q without initializing them first.
8245
bf6bfba8
JR
82462008-12-04 Jason Rumney <jasonr@gnu.org>
8247
8248 * w32font.c (w32font_draw): Initialize orig_clip before getting
8249 it, and delete it when finished.
8250
a3b1a468
DN
82512008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8252
8253 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8254 case when running as a daemon before detaching.
8255
8b8be8eb
JB
82562008-12-03 Juanma Barranquero <lekktu@gmail.com>
8257
805f2638 8258 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8259
b1bde622
KH
82602008-12-03 Kenichi Handa <handa@m17n.org>
8261
e500c47d
KH
8262 * font.c (font_at): Set `multibyte' at first.
8263
ca516334
KH
8264 * coding.c (decode_coding_charset): Check type of an element of
8265 vector VALIDS.
7bf1bb21 8266 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8267
4ccfa1c0 8268 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8269 (font_for_char): Likewise.
8270
1e5ecd37
CY
82712008-12-03 Chong Yidong <cyd@stupidchicken.com>
8272
d5b01609 8273 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8274 (font_update_lface): Handle fonts with corrupted size specs,
8275 i.e. non-int and non-float.
d5b01609 8276
11e3a6e4 8277 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8278 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8279 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8280
ab06788b
CY
8281 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8282
1e5ecd37 8283 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8284 underline_minimum_offset for underline position.
1e5ecd37 8285
63c125ab
DN
82862008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8287
8288 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8289
8290 * character.c (c_string_width): Specify the type for LEN.
8291
3a8406e1
KH
82922008-12-03 Kenichi Handa <handa@m17n.org>
8293
4ccfa1c0 8294 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8295 (decode_coding_utf_8): Likewise.
4ccfa1c0 8296 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8297 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8298
651df7d9
CY
82992008-12-02 Chong Yidong <cyd@stupidchicken.com>
8300
8301 * keyboard.c (make_lispy_position): Only use PT if the selected
8302 window is current.
8303
1f625c6c
AS
83042008-12-02 Andreas Schwab <schwab@suse.de>
8305
f7741ce9
AS
8306 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8307
1f625c6c
AS
8308 * doprnt.c (doprnt1): Fix size of charbuf.
8309
92bc2678
CY
83102008-12-02 Chong Yidong <cyd@stupidchicken.com>
8311
8312 * keyboard.c (timer_check): Revert last change.
8313
93b9e8cc
JB
83142008-12-02 Juanma Barranquero <lekktu@gmail.com>
8315
8316 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8317
fd7a37d5
JB
83182008-12-01 Juanma Barranquero <lekktu@gmail.com>
8319
8320 * makefile.w32-in: Update dependencies.
8321 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8322
c115043b
AS
83232008-12-01 Andreas Schwab <schwab@suse.de>
8324
8325 * font.c (register_font_driver): Use xmalloc.
8326 (font_put_frame_data): Likewise.
8327
f5668d2a
CY
83282008-12-01 Chong Yidong <cyd@stupidchicken.com>
8329
860d96be
CY
8330 * xfaces.c (realize_x_face): Make abort condition clearer.
8331
f5668d2a
CY
8332 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8333
379c17e7
CY
83342008-11-30 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * keyboard.c (timer_check): After a timer runs, ensure that the
8337 selected window's buffer is current.
8338
35f36d65
JB
83392008-11-30 Juanma Barranquero <lekktu@gmail.com>
8340
f952c61c
JB
8341 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8342 It was accidentally restored by the Unicode merge.
8343
35f36d65
JB
8344 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8345
b23077df
JB
83462008-11-29 Juanma Barranquero <lekktu@gmail.com>
8347
8348 * w32proc.c: Include "coding.h".
8349 (Fw32_short_file_name): Encode filename passed to Windows API.
8350 (Fw32_long_file_name): Encode filename passed to Windows API and
8351 decode back the result. (Bug#1433)
8352
b8ebe9dd
KH
83532008-11-29 Kenichi Handa <handa@m17n.org>
8354
8cc53f96
KH
8355 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8356 not before accessing it.
8357
b8ebe9dd
KH
8358 * charset.c (Fdefine_charset_internal): After calculating
8359 min_char, max_char, and fastmap, copy the charset structure again.
8360 (encode_char): Fix the previous change.
8361
59bc82c0
SZ
83622008-11-28 Seiji Zenitani <zenitani@mac.com>
8363
8364 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8365
8366 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8367
8368 * nsterm.m (x_set_frame_alpha): New function.
8369
32247e3d
EZ
83702008-11-27 Eli Zaretskii <eliz@gnu.org>
8371
8372 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8373
b003e5ff
JB
83742008-11-27 Juanma Barranquero <lekktu@gmail.com>
8375
8376 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8377 pointer to check_face_name.
8378
708550f5
KH
83792008-11-27 Kenichi Handa <handa@m17n.org>
8380
8381 * category.h (SET_CATEGORY_SET): Call set_category_set.
8382 (set_category_set): Extern it.
8383
8384 * category.c (hash_get_category_set): New function.
8385 (Fmodify_category_entry): Adjusted for the change of
8386 char_table_ref_and_range. Call hash_get_category_set to get a
8387 category set to store in the table.
8388
8389 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8390 Funify_charset.
8391
2ae37cf0 8392 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8393 (DECODE_CHAR): Check if the decoder vector is ready.
8394 (ENCODE_CHAR): Check if the encoder char-table is ready.
8395 (maybe_unify_char): Extern it.
8396
8397 * charset.c (Vchar_unified_charset_table): Delete it.
8398 (inhibit_load_charset_map): New variable.
8399 (temp_charset_work): New variable.
8400 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8401 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8402 New macros.
8403 (load_charset_map): Meaning of control_flag changed. If
8404 inhibit_load_charset_map is nonzero, setup a table in
8405 temp_charset_work.
8406 (load_charset): New argument control_flag.
8407 (map_charset_for_dump): New function.
8408 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8409 map_charset_for_dump.
8410 (Fdefine_charset_internal): If the charset method is MAP, load
8411 mapping tables by calling load_charset.
8412 (Funify_charset): Don't load a mapping table but directly set
8413 Vchar_unify_table.
8414 (maybe_unify_char): New function.
8415 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8416 Handle the case of inhibit_load_charset_map being nonzero.
8417 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8418 Handle the case of inhibit_load_charset_map being nonzero.
8419 (Fclear_charset_maps): Just free temp_charset_work.
8420 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8421 variable.
8422
8423 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8424 change of char_table_ref_and_range.
8425 (char_table_ref_and_range): Change the meaning of argument FROM
8426 and TO. Now the caller must provide initial values for *FROM
8427 and *TO.
8428
8429 * fontset.c (fontset_add): Adjusted for the change of
8430 char_table_ref_and_range.
8431 (fontset_get_font_group): Likewise.
8432 (Ffontset_info): Likewise.
8433
8434 * keymap.c (describe_vector): Adjusted for the change of
8435 char_table_ref_and_range. For char-table, put boundary between
8436 non-ASCII and 8-bit characters.
8437
8438 * print.c (print_object): For bool-vector, delete unnecessary
8439 check of ASCII_BYTE_P.
8440
9196133b
JR
84412008-11-26 Jason Rumney <jasonr@gnu.org>
8442
8443 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8444 leading in font height. (Bug#879)
9196133b 8445
9f688acf
GM
84462008-11-26 Glenn Morris <rgm@gnu.org>
8447
8448 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8449 redefinition with ifdef. (Bug#1383)
8450
90d19aff
AR
84512008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8452
8453 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8454
4ccfa1c0 84552008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8456
8457 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8458 New EmacsView methods.
8459 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8460 Fixes bug #1048,1357,1414.
8461
84622008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8463
8464 Fix bug #1362.
8465 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8466 is not an indexed color.
8467 * nsterm.m (free_indexed_color): Add argument checking.
8468 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8469
e7d5ecb3
CY
84702008-11-24 Chong Yidong <cyd@stupidchicken.com>
8471
8472 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8473 Document confirm-after-completion value for
8474 minibuffer-completion-confirm.
8475
c285743c
JR
84762008-11-24 Jason Rumney <jasonr@gnu.org>
8477
8478 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8479 warning.
8480
b0857706
JR
84812008-11-23 Jason Rumney <jasonr@gnu.org>
8482
8483 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8484 restored before returning.
8485
8486 * w32font.c (check_face_name): New function.
8487 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8488 fonts. (Bug#642)
b0857706 8489
ee50ff07
MR
84902008-11-22 Martin Rudalics <rudalics@gmx.at>
8491
8492 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8493 confirm-nonexistent-file-or-buffer in doc-string.
8494
b8ff72fa
SM
84952008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8496
8497 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8498 Fix copy/paste typo. Add checks.
8499
cee53ed4
KH
85002008-11-21 Kenichi Handa <handa@m17n.org>
8501
8502 * coding.c (detect_coding_iso_2022): Reject invalid composition
8503 sequence.
8504 (DECODE_COMPOSITION_START): If the current source is the last
8505 block, and the current composition doesn't end, regard this
8506 sequence as invalid.
8507 (decode_coding_iso_2022): Handle invalid composition sequence.
8508
f6ef1e65
MR
85092008-11-20 Martin Rudalics <rudalics@gmx.at>
8510
8511 * window.c (coordinates_in_window): Don't return
8512 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8513 line when the window is not the rightmost one. (Bug#1372)
8514
e08b1705
MR
85152008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8516
8517 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8518
ad98e89f
EZ
85192008-11-15 Eli Zaretskii <eliz@gnu.org>
8520
8521 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8522 and bright_bg if noninteractive is non-zero.
8523
fb098a4b
CY
85242008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8525
8526 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8527 x_draw_glyph_string_background.
8528
8529 * w32term.c (x_draw_glyph_string): Likewise.
8530
ce952b6e
CY
85312008-11-15 Chong Yidong <cyd@stupidchicken.com>
8532
8533 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8534 the next glyph string once past the overhang width.
8535
8536 * nsterm.m (ns_draw_glyph_string): Likewise.
8537
8538 * w32term.c (x_draw_glyph_string): Likewise.
8539
26ea7079
CY
85402008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8541
8542 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8543 double file close.
8544
1c33c906
MR
85452008-11-14 Martin Rudalics <rudalics@gmx.at>
8546
8547 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8548 dedicated status of window before attempting to display another
8549 buffer in it.
8550
8fc29035
JB
85512008-11-14 Juanma Barranquero <lekktu@gmail.com>
8552
8553 * msdos.c (Fmsdos_long_file_names):
8554 (syms_of_msdos) <dos-unsupported-char-glyph>:
8555 * dosfns.c (Fint86): Fix typos in docstrings.
8556
55fb4286
EZ
85572008-11-14 Eli Zaretskii <eliz@gnu.org>
8558
8559 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8560
3fda0315
KY
85612008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8562
8563 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8564
7e849c17
CY
85652008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8566
8567 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8568
8569 * frame.h: Negative alpha means "don't touch".
8570
8571 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8572
8573 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8574
b9fd67bd
DN
85752008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8576
8577 * hftctl.c:
8578 * chpdef.h:
8579 * acldef.h: Remove files used only for systems no longer supported.
8580
8581 * Makefile.in: Fix .o alphabetical ordering.
8582 (hftctl.o): Remove dependency, file removed.
8583 (keymap.o, print.o): Depend on charset.h.
8584
d5998e03
KH
85852008-11-10 Kenichi Handa <handa@m17n.org>
8586
2ae37cf0 8587 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8588
be70e183
CY
85892008-11-08 Chong Yidong <cyd@stupidchicken.com>
8590
8591 * dired.c (file_name_completion): If completion_ignore_case is
8592 enabled, ignore case when checking completion-regexp-list.
8593
7cf94eac
EZ
85942008-11-08 Eli Zaretskii <eliz@gnu.org>
8595
8596 * vm-limit.c (get_lim_data): Fix last change.
8597
ee107a89
KH
85982008-11-08 Kenichi Handa <handa@m17n.org>
8599
8600 * character.c (Fget_byte): New function.
8601 (syms_of_character): Defsubr Fget_byte.
8602
5fd15622
CY
86032008-11-07 Chong Yidong <cyd@stupidchicken.com>
8604
8605 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8606 cursor position is valid after scrolling.
8607
13d62fad
JB
86082008-11-06 Juanma Barranquero <lekktu@gmail.com>
8609
8610 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8611
a1dd2936
GM
86122008-11-06 Glenn Morris <rgm@gnu.org>
8613
8614 * xterm.c (handle_one_xevent): Don't let popup menus cause
8615 mouse-autoselect-window related window switching. (Bug#1261)
8616
860cd236
CY
86172008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8618
8619 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8620
653a3150
AS
86212008-11-04 Andreas Schwab <schwab@suse.de>
8622
8623 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8624
870f5cac
CY
86252008-11-03 Chong Yidong <cyd@stupidchicken.com>
8626
8627 * xfns.c (Fx_wm_set_size_hint): New function.
8628
1e02f3cb
MR
86292008-11-03 Martin Rudalics <rudalics@gmx.at>
8630
8631 * textprop.c (Fprevious_single_char_property_change): Return 0
8632 when there's no change in a string. (Bug#1301)
8633
e630dfc6
MR
86342008-11-02 Martin Rudalics <rudalics@gmx.at>
8635
8636 * frame.c (do_switch_frame): New argument NORECORD passed to
8637 Fselect_window.
8638 (Fselect_frame): New argument NORECORD passed to
8639 do_switch_frame.
8640 (Fset_frame_selected_window): New argument NORECORD passed to
8641 Fselect_frame.
8642 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8643 in call of do_switch_frame.
8644 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8645 Handle NORECORD argument in call of Fselect_frame.
8646 * lisp.h (do_switch_frame, Fselect_frame)
8647 (Fset_frame_selected_window): Adjust declarations.
8648 * window.c (select_frame_norecord): New function.
8649 (run_window_configuration_change_hook): Use it and call
8650 Fselect_frame with NORECORD set.
8651 (Fselect_window): Pass NORECORD to Fselect_frame.
8652 (Fset_window_configuration): Handle NORECORD argument in call of
8653 do_switch_frame.
8654 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8655 Fset_frame_selected_window.
8656 * keyboard.c (command_loop_1): Handle NORECORD in call of
8657 Fselect_frame (currently ifdefd).
8658
9020b223
GM
86592008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8660
8661 * emacs.c (USAGE2): Untabify.
8662
793ffee8
SM
86632008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8664
8665 * composite.c (fill_gstring_header): Fix copy/paste typo.
8666
ab6d1131
MR
86672008-10-31 Martin Rudalics <rudalics@gmx.at>
8668
8669 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8670 (Fother_window): Rename argument and rewrite doc-string.
8671 (select_window_norecord): Fix return value. (Bug#1276)
8672
601a9cf1
JB
86732008-10-30 Juanma Barranquero <lekktu@gmail.com>
8674
8675 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8676 new frames overriding foreground for tooltips. Based on similar patch
8677 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8678
813b0652
CY
86792008-10-29 Chong Yidong <cyd@stupidchicken.com>
8680
8681 * emacs.c (Fdaemon_initialized): Initialize nfd.
8682
4414f58f
MR
86832008-10-29 Martin Rudalics <rudalics@gmx.at>
8684
8685 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8686 (Fwindow_text_height): Clarify doc-strings.
8687 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8688 doc-string of window-scroll-functions.
8689
ecdcaa09
RS
86902008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8691
8692 * category.c (syms_of_category): Fix typo in docstring.
8693
23fe745a
JB
86942008-10-28 Juanma Barranquero <lekktu@gmail.com>
8695
8696 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8697 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8698 Fix typos in docstrings.
8699
ff808935
DN
87002008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8701
8702 * emacs.c (daemon_pipe): Make non-static.
8703 (IS_DAEMON): Move definition ...
8704 * lisp.h (IS_DAEMON): ... here.
8705 (daemon_pipe): Declare.
8706 (is_daemon): Remove.
8707 * dispnew.c (init_display): Use IS_DAEMON.
8708
fc012771
SM
87092008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8710
8711 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8712 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8713
8714 * emacs.c (is_daemon): Remove.
8715 (main): Don't set is_daemon.
8716 (IS_DAEMON): New macro.
8717 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8718 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8719 parent exits.
8720 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8721
d8bdbe6f
CY
87222008-10-27 Chong Yidong <cyd@stupidchicken.com>
8723
d1a072bf
CY
8724 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8725 over-sized glyph, draw it with the default glyph width.
8726
e2e325aa
CY
8727 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8728 glyph, draw it with the default glyph width.
8729
8730 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8731 glyph, draw it with the default glyph width.
8732
d8bdbe6f
CY
8733 * xdisp.c (try_scrolling): When computing the distance from the
8734 scroll margin to PT, try moving some distance past the window
8735 bottom before giving up.
8736
7bfac547
MR
87372008-10-27 Martin Rudalics <rudalics@gmx.at>
8738
8739 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8740 (Fset_window_buffer): Explain in doc-string that a window can be
8741 "strongly" dedicated to its buffer.
8742
4ff029f6
DN
87432008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8744
8745 * emacs.c (daemon_name): New variable.
8746 (main): Deal with --daemon=SERVER_NAME.
8747 (Fdaemonp): Return a name if one was passed to --daemon.
8748
5790ef40
DN
87492008-10-26 Romain Francoise <romain@orebokech.com>
8750
f9bd0df9 8751 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8752 (main): Create a pipe before forking, make the parent exit only after
8753 the child has closed its end of the pipe. Move closing the
8754 descriptors ...
8755 (Fdaemon_initialized): ... here. New function.
8756
f5385255
SM
87572008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8758
4d632321
SM
8759 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8760 the previous unoptimized table.
8761
f5385255
SM
8762 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8763 the distinction between non-nil and non-t value of `dedicated'.
8764
6c56a0f3
CY
87652008-10-25 Chong Yidong <cyd@stupidchicken.com>
8766
8767 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8768 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8769
fec89261
MR
87702008-10-25 Martin Rudalics <rudalics@gmx.at>
8771
8772 * window.c (Fget_buffer_window, Fdelete_windows_on)
8773 (Freplace_buffer_in_windows): Make buffer argument optional and
8774 rename to buffer_or_name.
8775
34fcddd0
CY
87762008-10-24 Chong Yidong <cyd@stupidchicken.com>
8777
f5385255
SM
8778 * xdisp.c (handle_single_display_spec, handle_display_prop):
8779 Undo 2005-05-16 change.
34fcddd0
CY
8780 (handle_stop): Pop iterator if it's loaded with an empty string.
8781 (get_overlay_strings_1): Don't save iterator if it's loaded with
8782 an empty string (bug#1201).
8783
064766f2
KH
87842008-10-24 Kenichi Handa <handa@m17n.org>
8785
8786 * ftfont.c (ftfont_otf_features): Fix previous change.
8787 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8788 calling ftfont_otf_features.
8789
f9bd0df9 87902008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8791
8792 * font.c (font_match_p): Fix for the case that a vector of
8793 characters is in script-representative-chars.
8794
1dae9197
MA
87952008-10-24 Michael Albinus <michael.albinus@gmx.de>
8796
8797 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8798 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8799 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8800 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8801 macro. (Bug#1186)
1dae9197 8802
f9bd0df9 88032008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8804
8805 * s/sol2-10.h: New file.
8806
878a4584
JB
88072008-10-23 Juanma Barranquero <lekktu@gmail.com>
8808
8809 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8810 poor beast has survived 9+ years and the jump from xterm.c!).
8811
cd265ca6
MR
88122008-10-23 Martin Rudalics <rudalics@gmx.at>
8813
8814 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8815 Reword doc-string.
f5385255 8816 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8817
472a4dc9
JB
88182008-10-23 Juanma Barranquero <lekktu@gmail.com>
8819
8820 * character.c (syms_of_character) <script-representative-chars>:
8821 <unicode-category-table>: Doc fixes.
8822
159bd5a2
NF
88232008-10-23 Noah Friedman <friedman@splode.com>
8824
8825 * coding.c (make_conversion_work_buffer): Check that
8826 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8827 Fget_buffer_create.
8828
49f9c344
KH
88292008-10-23 Kenichi Handa <handa@m17n.org>
8830
8831 * font.c (font_add_log): Check the values of extra properties.
8832
12bb3111
MR
88332008-10-22 Martin Rudalics <rudalics@gmx.at>
8834
8835 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8836 Reword doc-string.
8837 (Fset_window_parameter): Use NILP.
8838 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8839 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8840
bbeb4e99
JB
88412008-10-22 Juanma Barranquero <lekktu@gmail.com>
8842
8843 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8844
88452008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8846
8847 * nsfns.m (ns_appkit_version): New function.
8848 (x-server-version): Use it.
8849 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8850 (x-server-vendor): Don't check_ns().
8851
8852 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8853
a9b555d3
JB
88542008-10-22 Juanma Barranquero <lekktu@gmail.com>
8855
8856 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8857 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8858
4626499f
KH
88592008-10-22 Kenichi Handa <handa@m17n.org>
8860
e3681952
KH
8861 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8862 scripts.
8863
4626499f
KH
8864 * category.c (word_boundary_p): Check scripts instead of charset.
8865 Handle nil value in word-separating-categories and
8866 word-combining-categories.
8867 (syms_of_category): Fix docstrings of word-separating-categories
8868 and word-combining-categories.
8869
1560f91a
EZ
88702008-10-21 Eli Zaretskii <eliz@gnu.org>
8871
8872 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8873 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8874
f4668441
MR
88752008-10-21 Martin Rudalics <rudalics@gmx.at>
8876
8877 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8878 Rename arg "buffer" to "buffer_or_name".
8879 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8880 it optional.
8881 (no_switch_window): Remove since the return value is not used.
a9b555d3 8882 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8883 Consider window as dedicated when Fwindow_dedicated_p returns a
8884 non-nil value.
8885 * lisp.h: Remove prototype for no_switch_window.
8886
fd75ddb2
JD
88872008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8888
8889 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8890 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8891
07295713
KH
88922008-10-21 Kenichi Handa <handa@m17n.org>
8893
8894 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8895 check Vlatin_extra_code_table.
8896
712adc82
EZ
88972008-10-20 Eli Zaretskii <eliz@gnu.org>
8898
8899 * fileio.c (Fset_file_modes): Doc fix.
8900
f549eb0b
MA
89012008-10-19 Michael Albinus <michael.albinus@gmx.de>
8902
8903 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8904 in arrays.
8905
aac0c6e3
MR
89062008-10-19 Martin Rudalics <rudalics@gmx.at>
8907
8908 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8909 Mention kill-buffer in doc-string.
8910 (Fset_window_buffer): Reinsert tem check removed in last commit.
8911 (Fenlarge_window, Fshrink_window): Have argument names and
8912 doc-string follow Elisp manual more closely.
8913
89142008-10-18 Eli Zaretskii <eliz@gnu.org>
8915
8916 * fileio.c (Fset_file_modes): Doc fix.
8917
89182008-10-18 Martin Rudalics <rudalics@gmx.at>
8919
8920 * window.c (Fwindow_width, Fset_window_start)
8921 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8922 (Fdelete_windows_on, Freplace_buffer_in_windows):
8923 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8924 (Fwindow_dedicated_p): Make window argument optional.
8925 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8926 (Fset_window_buffer): Respect any non-nil dedicated value for
8927 window. Rename "buffer" argument to "buffer_or_name".
8928
89292008-10-18 Ulrich Mueller <ulm@gentoo.org>
8930
8931 * m/sh3.h: New file, machine description for SuperH.
8932
89332008-10-17 Martin Rudalics <rudalics@gmx.at>
8934
8935 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8936
89372008-10-17 Kenichi Handa <handa@m17n.org>
8938
8939 * ftfont.c (ftfont_otf_features): Fix indexing
8940 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8941
89422008-10-16 Magnus Henoch <mange@freemail.hu>
8943
8944 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8945 (Fdbus_call_method_asynchronously): Ditto.
8946 This change makes C-h f display the argument list.
8947
89482008-10-16 Chong Yidong <cyd@stupidchicken.com>
8949
8950 * fileio.c (Fexpand_file_name): Doc fix.
8951
8952 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8953 of :foreground and :background equivalent to unspecified (20.x
8954 compatibility).
8955
89562008-10-15 Eli Zaretskii <eliz@gnu.org>
8957
8958 * buffer.c (syms_of_buffer): Doc fix.
8959
89602008-10-14 Kenichi Handa <handa@m17n.org>
8961
8962 * font.c (font_clear_prop): When clearing font width, clear the
8963 average width field too.
8964
89652008-10-12 Andreas Schwab <schwab@suse.de>
8966
8967 * ftfont.c (ftfont_shape_by_flt): Make static.
8968 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8969
8970 * font.c: Don't include <m17n-flt.h>.
8971
89722008-10-10 Eli Zaretskii <eliz@gnu.org>
8973
8974 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8975
89762008-10-09 Eli Zaretskii <eliz@gnu.org>
8977
8978 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8979 away code.
8980
89812008-10-09 Chong Yidong <cyd@stupidchicken.com>
8982
8983 * dispnew.c (update_text_area): Avoid looping due to large glyph
8984 overhangs (bug#1070).
8985
89862008-10-09 Kenichi Handa <handa@m17n.org>
8987
8988 * fontset.c (face_for_char): If face->fontset is negative, just
8989 return ascii_face.
8990
f5385255
SM
8991 * font.c (font_delete_unmatched): Fix previous change.
8992 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8993
89942008-10-09 Martin Rudalics <rudalics@gmx.at>
8995
8996 * frame.c (Fraise_frame): On text-only terminals select frame in
8997 order to make it visible. (Bug#1061)
8998
89992008-10-08 Chong Yidong <cyd@stupidchicken.com>
9000
9001 * fontset.c (fontset_find_font): Check frame validity.
9002
90032008-10-07 Chong Yidong <cyd@stupidchicken.com>
9004
a9b555d3 9005 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9006 (xg_display_close): Allow Emacs to close all displays (bug#985).
9007
90082008-10-06 Andreas Schwab <schwab@suse.de>
9009
f5385255 9010 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9011
90122008-10-06 Chong Yidong <cyd@stupidchicken.com>
9013
f5385255 9014 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9015
a9b555d3 9016 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9017
9018 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9019 during initialization.
9020
90212008-10-04 Eli Zaretskii <eliz@gnu.org>
9022
9023 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9024 whole thing on MSDOS frames as well as on a TTY.
9025
9026 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9027 well as for TTY.
9028 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9029 well as on a TTY.
9030
9031 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9032 as well as for TTY.
9033
9034 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9035
9036 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9037 MSDOS frames as well.
9038
90392008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9040
9041 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9042 correct arguments.
b71ac3dd 9043 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9044
90452008-10-03 Glenn Morris <rgm@gnu.org>
9046
9047 * emacs.c (USAGE1): Add --daemon.
9048
90492008-10-02 Eli Zaretskii <eliz@gnu.org>
9050
9051 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9052 100, so it's in percents as advertised.
9053
90542008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9055
9056 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9057 (ns_output.current_cursor, ns_output.desired_cursor)
9058 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9059 (FRAME_NEW_CURSOR_COLOR): Remove.
9060
9061 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9062 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9063 enumeration (HOLLOW_BOX_CURSOR, etc.).
9064
9065 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9066 (draw_window_cursor): Simplify code.
f5385255
SM
9067 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9068 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9069 updates manually.
a9b555d3
JB
9070 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9071 Use core Emacs cursor types.
aac0c6e3 9072
b8ff72fa 9073 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9074
90752008-10-02 Martin Rudalics <rudalics@gmx.at>
9076
9077 * process.c (Faccept_process_output): Fix doc-string.
9078
90792008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9080
9081 * gmalloc.c (__sbrk): Also define for uClibc.
9082
9083 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9084 for uClibc.
9085
90862008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9087
9088 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9089 styles.
9090 (nsfont_open): Reenable the cache.
9091
90922008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9093
9094 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9095 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9096
90972008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9098
9099 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9100 a suspended terminal.
9101
91022008-09-30 Michael Albinus <michael.albinus@gmx.de>
9103
9104 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9105
91062008-09-30 Eli Zaretskii <eliz@gnu.org>
9107
9108 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9109
91102008-09-30 Chong Yidong <cyd@stupidchicken.com>
9111
9112 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9113 in a continued line coincides with a line beginning.
9114
91152008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9116
9117 * nsfont.m (nsfont_trait_distance): Fix bug.
9118 (nsfont_list): Return a list rather than a vector (syncs with Handa
9119 changes of 2008-05-14).
9120 (nsfont_open): Improve logging.
9121
91222008-09-29 Andreas Schwab <schwab@suse.de>
9123
9124 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9125
91262008-09-28 Martin Rudalics <rudalics@gmx.at>
9127
9128 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9129 name as char-resolve-modifiers.
9130 Reported by: Markus Triska <markus.triska@gmx.at>
9131
91322008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9133
9134 * dispnew.c (init_display): Return earlier when running as a daemon.
9135
91362008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9137
9138 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9139
91402008-09-27 Eli Zaretskii <eliz@gnu.org>
9141
9142 * composite.c (Fcomposition_get_gstring)
9143 (Fcompose_region_internal, Fcompose_string_internal)
9144 (Ffind_composition_internal): Doc fix.
9145 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9146 (syms_of_composite) <auto-composition-function>: Doc fix.
9147 (syms_of_composite) <composition-function-table>: Doc fix.
9148
91492008-09-25 Chong Yidong <cyd@stupidchicken.com>
9150
9151 * search.c (wordify): New argument for lax word-ends.
9152 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9153
91542008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9155
9156 * lisp.h (is_daemon): Declare.
9157 * dispnew.c (init_display): Do not try to initialize the terminal
9158 when running as a daemon.
9159
91602008-09-22 Chong Yidong <cyd@stupidchicken.com>
9161
9162 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9163 x_display_pixel_height.
9164
91652008-09-22 Martin Rudalics <rudalics@gmx.at>
9166
9167 * undo.c (record_point): Don't call Fundo_boundary for first
9168 change. (Bug#731)
9169
91702008-09-22 Juanma Barranquero <lekktu@gmail.com>
9171
9172 * emacs.c (Fdaemonp): Doc fix.
9173
91742008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9175
9176 * emacs.c (main): Place #ifdef in the proper place.
9177
91782008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9179
9180 * emacs.c (standard_args): Add --daemon.
9181 (main): Disconnect from the terminal when --daemon is passed.
9182 (is_daemon): New variable.
9183 (Fdaemonp): New function.
9184 (syms_of_emacs): Defsubr it.
9185
91862008-09-20 Chong Yidong <cyd@stupidchicken.com>
9187
9188 * xdisp.c (get_next_display_element): Handle string display
9189 correctly when checking for the end of a box run.
9190
91912008-09-20 Glenn Morris <rgm@gnu.org>
9192
9193 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9194 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9195 (Frename_file): Avoid copying to trash if a rename involves
9196 a delete. (Bug#964).
9197
91982008-09-20 Eli Zaretskii <eliz@gnu.org>
9199
9200 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9201 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9202 frames as well as termcap frames.
9203 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9204 get_named_tty.
9205
92062008-09-19 Eli Zaretskii <eliz@gnu.org>
9207
9208 * process.c (procfs_system_process_attributes): Fix cmdline in
9209 case /proc/PID/cmdline is empty.
9210
9211 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9212 x_display_pixel_height.
9213
92142008-09-19 Juanma Barranquero <lekktu@gmail.com>
9215
9216 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9217
9218 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9219 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9220
92212008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9222
9223 * dispextern.h (struct it): Move line_wrap away from the middle of
9224 bitfields. Move voffset in struct iterator_stack_entry after the
9225 bitfields. Move tab_width near after another short.
9226
92272008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9228
9229 * frame.h (struct frame): Move alpha from the middle of bitfields.
9230
9231 * window.h (struct window): Move frozen_window_start_p after the
9232 rest of the bitfields to reduce padding.
9233
92342008-09-18 Chong Yidong <cyd@stupidchicken.com>
9235
9236 * xterm.h (x_display_info): Remove `height' and `width' members.
9237
9238 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9239
9240 * w32term.h (w32_display_info): Remove `height', `width',
9241 `height_in', and `width_in' members.
9242
b8ff72fa
SM
9243 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9244 New functions.
aac0c6e3
MR
9245 (x_calc_absolute_position): Use them.
9246 (x_term_init): Omit removed `height' and `width' members.
9247
b8ff72fa
SM
9248 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9249 New functions.
aac0c6e3
MR
9250 (w32_read_socket, x_calc_absolute_position): Use them.
9251 (w32_initialize_display_info, w32_term_init): Omit removed members
9252 of w32_display_info.
9253
b8ff72fa
SM
9254 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9255 New functions.
9256 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9257
b8ff72fa
SM
9258 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9259 New functions.
aac0c6e3
MR
9260 (x_calc_absolute_position): Use them.
9261 (x_term_init): Omit removed `height' and `width' members.
9262
9263 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9264 (compute_tip_xy):
9265 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9266 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9267 x_display_pixel_width.
9268
92692008-09-18 Kenichi Handa <handa@m17n.org>
9270
9271 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9272 (composition_compute_stop_pos): Fix handling of static composition.
9273 (Fcomposition_get_gstring): Check FROM and TO at first.
9274
92752008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9276
46e722a9 9277 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9278 mixup (YAILOM).
9279
92802008-09-17 Chong Yidong <cyd@stupidchicken.com>
9281
9282 * indent.c (Fvertical_motion): Use position reported by iterator
9283 instead of PT for determining screen motion (bug#943).
9284
92852008-09-17 Romain Francoise <romain@orebokech.com>
9286
9287 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9288
92892008-09-17 Kenichi Handa <handa@m17n.org>
9290
9291 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9292
9293 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9294 if necessary.
9295
92962008-09-16 Kenichi Handa <handa@m17n.org>
9297
9298 * coding.c (make_conversion_work_buffer): Avoid calling
9299 Fget_buffer_create if it is not necessary.
9300
93012008-09-15 Martin Rudalics <rudalics@gmx.at>
9302
9303 * window.c (Fselect_window): Don't update window_select_count and
9304 use_time when norecord is not nil.
9305
93062008-09-14 Kenichi Handa <handa@m17n.org>
9307
9308 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9309 specpdl_ptr.
9310
93112008-09-12 Kenichi Handa <handa@m17n.org>
9312
9313 * indent.c (scan_for_column): Don't handle automatic composition
9314 if the current buffer is not associated with a window.
9315
9316 * composite.c (composition_reseat_it): If the current buffer is
9317 not associated with a window, ignore the automatic composition.
9318 (find_automatic_composition): Likewise.
9319
93202008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9321
9322 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9323 (Fgpm_mouse_stop): Use it.
9324 * termhooks.h (close_gpm): Declare.
9325 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9326 connection if Gpm_GetEvent fails.
9327
9328 * window.c (set_window_buffer): Always preserve current-buffer.
9329
93302008-09-12 Glenn Morris <rgm@gnu.org>
9331
9332 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9333
93342008-09-11 Glenn Morris <rgm@gnu.org>
9335
9336 * charset.c (charset-map-path): Doc fix.
9337
93382008-09-10 Kenichi Handa <handa@m17n.org>
9339
9340 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9341
9342 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9343 compose a grapheme cluster with the preceding base glyph.
9344
9345 * composite.c (composition_compute_stop_pos): Fix previous change.
9346 Reset cmp_it->id to -1 at first.
9347
93482008-09-10 Glenn Morris <rgm@gnu.org>
9349
9350 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9351
93522008-09-09 Chong Yidong <cyd@stupidchicken.com>
9353
9354 * keyboard.c (read_key_sequence): Reapply translation maps when
9355 switching keyboards.
9356
93572008-09-09 Kenichi Handa <handa@m17n.org>
9358
9359 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9360 characters.
9361
9362 * composite.c (FORWARD_CHAR): Fix calculation
9363 of (POSITION).pos_byte.
9364 (composition_compute_stop_pos): Limit the search of composition to
9365 at most 500 characters ahead. If we reach the limit or find a
9366 newline, set cmp_it->ch to -2 and return 0.
9367 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9368
93692008-09-08 Kenichi Handa <handa@m17n.org>
9370
9371 * indent.c (Fvertical_motion): Be sure to set
9372 it_overshoot_expected if it.cmp_it.id is non-negative.
9373
93742008-09-07 Andreas Schwab <schwab@suse.de>
9375
9376 * callproc.c (Fcall_process): Don't hold references to string data
9377 across garbage collection. Move initialisation of new_argv down
9378 to avoid compiler bug.
9379
93802008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9381
9382 * process.c (Fsystem_process_attributes): Doc fix.
9383
93842008-09-07 Chong Yidong <cyd@stupidchicken.com>
9385
9386 * callproc.c (Fcall_process): Canonicalize current directory name.
9387
9388 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9389 iterator advances to the next line if the current line ends in a
9390 continued tab.
9391
93922008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9393
9394 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9395 member to point to cmp_from.
9396
9397 * xdisp.c: Doc fix for references to gidx data member.
9398
93992008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9400
9401 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9402
94032008-09-07 Kenichi Handa <handa@m17n.org>
9404
9405 * composite.c (FORWARD_CHAR): Check STOP after
9406 incrementing (POSITION).pos.
9407
94082008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9409
9410 * process.c (Fsystem_process_attributes): Doc fix.
9411
94122008-09-06 Chong Yidong <cyd@stupidchicken.com>
9413
9414 * keyboard.c (Ftop_level): Doc fix.
9415
94162008-09-06 Eli Zaretskii <eliz@gnu.org>
9417
9418 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9419 minibuffer, don't let lower part of menu invade the echo area.
9420
9421 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9422 "char *q" to access menu text and advance through it. Revert the
9423 change that displayed ">" instead of ASCII character 0x10.
9424
94252008-09-05 Eli Zaretskii <eliz@gnu.org>
9426
9427 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9428 toggle boxes and radio buttons on MS-DOS as well.
9429
94302008-09-05 Kenichi Handa <handa@m17n.org>
9431
9432 * composite.c (autocmp_chars): Check lookback count.
9433 (composition_compute_stop_pos): Set cmp_it->lookback.
9434 (composition_reseat_it): Check lookback count.
9435 (struct position_record): New struct.
9436 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9437 (find_automatic_composition): New function.
9438 (composition_adjust_point): Use find_automatic_composition.
9439
9440 * dispextern.h (struct composition_it): New member lookback.
9441
94422008-09-02 Chong Yidong <cyd@stupidchicken.com>
9443
9444 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9445 if moving by a single line.
9446
94472008-09-02 Andreas Schwab <schwab@suse.de>
9448
9449 * xterm.c (x_delete_display): Fix merge error.
9450
9451 * fileio.c (Fexpand_file_name): Remove unused variables.
9452
94532008-09-02 Eli Zaretskii <eliz@gnu.org>
9454
9455 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9456 storage on all platforms, not just on DOS_NT.
9457
94582008-09-02 Jason Rumney <jasonr@gnu.org>
9459
b8ff72fa
SM
9460 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9461 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9462
94632008-09-01 Chong Yidong <cyd@stupidchicken.com>
9464
9465 * xfaces.c (Finternal_set_alternative_font_family_alist)
9466 (Finternal_set_alternative_font_registry_alist): Properly copy
9467 entire alist structure.
9468
94692008-09-01 Kenichi Handa <handa@m17n.org>
9470
d66c0241 9471 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9472 representative chars of the script is a vector.
d66c0241
JB
9473 (ftfont_list): Handle the case where the representative chars of
9474 the script is a vector.
aac0c6e3
MR
9475
9476 * character.c (syms_of_character): Docstring of
9477 script-representative-chars fixed.
9478
94792008-08-31 Eli Zaretskii <eliz@gnu.org>
9480
9481 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9482 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9483 the menu. Allocate larger buffer for `text', to account for
9484 possible ^C characters.
9485
94862008-08-31 Martin Rudalics <rudalics@gmx.at>
9487
9488 * xdisp.c (prepare_menu_bars): Don't call
9489 Vwindow_size_change_functions with arg Qt.
9490
94912008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9492
9493 * font.h (font_range):
9494 * fileio.c (report_file_error):
46e722a9
SM
9495 * composite.c (composition_update_it): Yet another int/Lisp_Object
9496 mixup (YAILOM).
aac0c6e3
MR
9497
94982008-08-30 Glenn Morris <rgm@gnu.org>
9499
9500 * data.c (Fmake_variable_frame_local): Doc fix.
9501
9502 * frame.c (Fmodify_frame_parameters): Doc fix.
9503
95042008-08-30 Eli Zaretskii <eliz@gnu.org>
9505
9506 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9507 needed by GetTokenInformation.
9508 (w32_system_process_attributes): Check return values of all system
9509 APIs.
9510
9511 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9512 only when the state changes.
9513 (IT_update_begin, IT_update_end): Add termscript trace.
9514
9515 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9516 clipboard is unavailable. Set dst to NULL if it doesn't point to
9517 malloc'ed data.
9518 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9519 passing random values to xfree.
9520
9521 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9522 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9523
95242008-08-29 Jason Rumney <jasonr@gnu.org>
9525
9526 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9527
95282008-08-29 Eli Zaretskii <eliz@gnu.org>
9529
9530 * composite.c (fill_gstring_body): Avoid compiler warnings.
9531
9532 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9533 LGLYPH_SET_CODE to avoid compiler warnings.
9534
2ae37cf0 9535 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9536
9537 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9538
9539 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9540 LGLYPH_SET_CODE.
9541
95422008-08-29 Kenichi Handa <handa@m17n.org>
9543
9544 * fileio.c (report_file_error): Don't downcase the first character
9545 of errstring if it is still unibyte.
9546
95472008-08-29 Kenichi Handa <handa@m17n.org>
9548
9549 These changes are to re-implement the automatic composition so
9550 that it doesn't use text properties.
9551
9552 * Makefile.in (ftfont.o): Depend on composite.h.
9553 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9554
9555 * character.h (Vunicode_category_table): Extern it.
9556
9557 * character.c (Vunicode_category_table): New variable.
9558 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9559
9560 * chartab.c (optimize_sub_char_table): Perform more greedy
9561 optimization.
9562
b8ff72fa
SM
9563 * composite.h (enum composition_method):
9564 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9565 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9566 (Vcomposition_function_table): Extern it.
9567 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9568 (composition_gstring_put_cache, composition_gstring_from_id)
9569 (composition_gstring_p, composition_gstring_width)
9570 (composition_compute_stop_pos, composition_reseat_it)
9571 (composition_update_it, composition_adjust_point): Extern them.
9572 (Fcomposition_get_gstring): EXFUN it.
9573
d66c0241 9574 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9575 (Vcomposition_function_table)
9576 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9577 (gstring_hash_table, gstring_work, gstring_work_headers):
9578 New variables.
aac0c6e3
MR
9579 (gstring_lookup_cache, composition_gstring_put_cache)
9580 (composition_gstring_from_id, composition_gstring_p)
9581 (composition_gstring_width, fill_gstring_header)
9582 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9583 (composition_reseat_it, composition_update_it)
b8ff72fa 9584 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9585 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9586 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9587 Defsubr composition_get_gstring.
aac0c6e3
MR
9588
9589 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9590 cmp_id.
9591 (struct glyph_string): Delete the member gidx. New members
9592 cmp_id, cmp_from, and cmp_to.
9593 (enum it_method): Delete GET_FROM_COMPOSITION.
9594 (struct composition_it): New struct.
9595 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9596 Delete c, len, cmp_id, cmp_len in u.comp.
9597
9598 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9599 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9600 (enum lglyph_indices): Likewise.
b8ff72fa 9601 (font_range): Adjust extern.
aac0c6e3
MR
9602 (font_fill_lglyph_metrics): Extern it.
9603
9604 * font.c (QCf): New variable.
9605 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9606 (font_prepare_composition): Delete this function.
9607 (font_range): Type and arguments changed.
9608 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9609 (font_fill_lglyph_metrics): New function.
b8ff72fa 9610 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9611 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9612 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9613 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9614
9615 * fontset.h (font_for_char): Extern it.
9616
9617 * fontset.c (font_for_char): New function.
9618
9619 * ftfont.c: Include composite.h.
9620 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9621 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9622
9623 * indent.c: Include composite.h and dispextern.h.
9624 (check_composition): Delete this function.
9625 (scan_for_column): Handle composition by
9626 composition_compute_stop_pos, composition_reseat_it, and
9627 composition_update_it.
9628 (compute_motion): Likewise.
9629 (Fvertical_motion): Fix checking of composition.
9630
9631 * keyboard.c (adjust_point_for_property): Check composition by
9632 composition_adjust_point.
9633
b8ff72fa 9634 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9635 struct glyph_string.
9636
b8ff72fa
SM
9637 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9638 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9639 struct glyph.
9640 (produce_composite_glyph): Likewise.
9641
b8ff72fa
SM
9642 * w32term.c (x_draw_composite_glyph_string_foreground):
9643 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9644 (x_draw_glyph_string): Likewise.
9645
9646 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9647 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9648
9649 * xdisp.c: Include font.h.
9650 (it_props): Delete the entry for Qauto_composed.
9651 (init_iterator): Initialize it->cmp_it.id to -1.
9652 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9653 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9654 (handle_auto_composed_prop): Delete it.
9655 (handle_composition_prop): Handle only static composition.
9656 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9657 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9658 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9659 (pop_it): Likewise.
9660 (get_next_element): Delete next_element_from_composition.
9661 (CHAR_COMPOSED_P): New macro.
9662 (get_next_display_element): For automatic composition, get a face
9663 from the font in the glyph-string.
9664 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9665 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9666 (next_element_from_string): Check if the character at the current
9667 position is composed by CHAR_COMPOSED_P.
9668 (next_element_from_buffer): Likewise.
d66c0241
JB
9669 (next_element_from_composition): Adjust for the change of struct it.
9670 Update it->cmp_it.
b8ff72fa
SM
9671 (dump_glyph): Adjust for the change of struct glyph.
9672 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9673 it and struct glyph. Don't handle automatic composition here.
9674 (fill_gstring_glyph_string): New function.
9675 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9676 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9677 (BUILD_GSTRING_GLYPH_STRING): New macro.
9678 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9679 automatic composition.
b8ff72fa 9680 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9681 struct glyph.
b8ff72fa 9682 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9683
b8ff72fa 9684 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9685 the change of struct glyph_string.
9686 (x_draw_glyph_string): Likewise.
9687
96882008-08-29 Glenn Morris <rgm@gnu.org>
9689
9690 * buffer.c (word-wrap): Doc fix.
9691 * xdisp.c (truncate-partial-width-windows): Doc fix.
9692 Increase default to 50.
9693
96942008-08-29 Chong Yidong <cyd@stupidchicken.com>
9695
9696 * xdisp.c (update_tool_bar_unwind): New function.
9697 (update_tool_bar): Temporarily set selected frame before building
9698 tool-bar items.
9699
97002008-08-28 Michael Albinus <michael.albinus@gmx.de>
9701
9702 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9703 snprintf, respectively.
9704 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9705
97062008-08-28 Chong Yidong <cyd@stupidchicken.com>
9707
9708 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9709 LDFLAGS to GNUstep CC invocation.
9710
97112008-08-27 Chong Yidong <cyd@stupidchicken.com>
9712
9713 * indent.c (Fvertical_motion): Revert last change. Handle the
9714 general case where we are moving forward, and PT spans multiple
9715 screen lines.
9716
9717 * eval.c (find_handler_clause): Temporarily increase
9718 max-lisp-eval-depth while printing the backtrace buffer, to
9719 guarantee that help-mode code can run.
9720
97212008-08-27 Eli Zaretskii <eliz@gnu.org>
9722
9723 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9724 colors under -rv.
9725 (IT_set_frame_parameters): Don't swap foreground and background
9726 colors if `(reverse . t)' is present in the frame properties.
9727 (internal_terminal_init): Call init_frame_faces only for the
9728 initial frame.
9729
97302008-08-27 Andreas Schwab <schwab@suse.de>
9731
9732 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9733
97342008-08-27 Andreas Schwab <schwab@suse.de>
9735
9736 * search.c (search_buffer): Set char_base to zero only at the end.
9737
97382008-08-27 Kenichi Handa <handa@m17n.org>
9739
b8ff72fa 9740 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9741
97422008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9743
9744 * xterm.c (x_term_init): Temporarily hide the partially
9745 initialized terminal while calling vendor-specific-keysyms.
9746
97472008-08-26 Eli Zaretskii <eliz@gnu.org>
9748
9749 * msdos.c (internal_terminal_init): Most initializations done only
9750 once, especially initial_screen_colors[] and termscript open.
9751
97522008-08-26 Chong Yidong <cyd@stupidchicken.com>
9753
9754 * eval.c (Fcondition_case): Doc fix.
9755
9756 * widgetprv.h (EmacsFramePart): Change font member to the new font
9757 struct.
9758
9759 * widget.c: Include character.h and font.h for XSETFONT.
9760 (setup_frame_gcs): Compute X font id from font struct, just once.
9761
97622008-08-26 Eli Zaretskii <eliz@gnu.org>
9763
9764 * term.c (get_named_tty): Fix last change.
9765
97662008-08-26 Chong Yidong <cyd@stupidchicken.com>
9767
9768 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9769 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9770
97712008-08-25 Eli Zaretskii <eliz@gnu.org>
9772
9773 * frame.c (do_switch_frame): Mark previously displayed frame as
9774 obscured for FRAME_MSDOS_P frames as well.
9775
97762008-08-24 Eli Zaretskii <eliz@gnu.org>
9777
9778 * frame.c (make_terminal_frame): Initialize f->terminal,
9779 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9780 Set the top frame to newly created frame.
9781 (Fmake_terminal_frame): Reuse the_only_display_info.
9782
9783 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9784 estimating available memory.
9785
b97439ce 97862008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9787
9788 * nsterm.m (ns_draw_window_cursor): Don't call
9789 NSDisableScreenUpdates and NSEnableScreenUpdates on
9790 non-NS_IMPL_COCOA systems.
9791
97922008-08-23 Andreas Schwab <schwab@suse.de>
9793
9794 * process.c (procfs_system_process_attributes): Fix use of
9795 uninitialized variables.
9796
97972008-08-23 Eli Zaretskii <eliz@gnu.org>
9798
9799 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9800
9801 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9802 calling tty-set-up-initial-frame-faces.
9803
b8ff72fa
SM
9804 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9805 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9806
9807 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9808 addition to output_termcap.
9809
9810 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9811
9812 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9813 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9814 highlight.
9815
9816 * process.c [!subprocesses]: Define QCname.
9817 (syms_of_process): Intern and staticpro it.
9818
9819 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9820 Adjust for changes in encoding/decoding routines.
9821 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9822 encode_coding and decode_coding.
9823
b8ff72fa 9824 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9825
9826 * dosfns.c: Include frame.h before termhooks.h.
9827 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9828 variable termscript.
9829
9830 * s/msdos.h (USER_FULL_NAME): Define.
9831 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9832
9833 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9834 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9835 pw->pw_gecos.
9836
9837 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9838 SELECTED_FRAME as additional (1st) argument.
9839 (tty_read_avail_input): Handle output_msdos_raw in
9840 addition to output_termcap.
9841
9842 * msdos.c: Include frame.h before termhooks.h.
9843 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9844 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9845 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9846 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9847 (IT_set_terminal_modes, IT_reset_terminal_modes)
9848 (IT_set_frame_parameters): Use tty->termscript instead of a global
9849 variable termscript.
9850 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9851 global variable terminal_coding. Don't refer to
9852 Vnonascii_translation_table.
9853 (internal_terminal_init): Set Vwindow_system in current_kboard.
9854 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9855 Announce date and time of session start, if termscript is open.
9856 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9857 term.c:init_tty). Open termscript only of not already open.
9858 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9859 here instead of dos_ttraw. Don't initialize display if this is an
9860 initial tty. Don't set FRAME_FONT.
9861 (Vwindow_system_version): Bump to 23.
9862 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9863 is available, set up mouse_position_hook.
9864 (dos_ttraw, IT_set_terminal_modes): If called with initial
9865 terminal, do nothing.
9866 (IT_set_frame_parameters): Handle the Qtty_type frame
9867 parameter by calling internal_terminal_init.
9868 (dos_set_window_size, show_mouse_face)
9869 (clear_mouse_face, IT_note_mode_line_highlight)
9870 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9871 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9872 (initialize_msdos_display): New function.
9873 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9874 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9875 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9876 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9877 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9878 (request_sigio, unrequest_sigio): Don't define, now defined on
9879 sysdep.c.
9880 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9881
9882 * term.c [MSDOS]: Include msdos.h.
9883 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9884 conditional to DOS_NT. Allow only one call to this function in a
9885 session. Don't allocate a new struct tty_display_info; instead,
9886 reuse the_only_display_info. Call get_tty_size to get screen
9887 dimensions. Call init_baud_rate to set bad_rate.
9888 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9889 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9890 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9891 (get_tty_terminal, get_named_tty, Ftty_type)
9892 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9893 output_termcap.
b8ff72fa
SM
9894 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9895 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9896 only when subprocesses are supported.
aac0c6e3
MR
9897
9898 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9899 f->output_data.x.
9900 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9901 terminal devices.
9902
5582fbc7 9903 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9904 x_output.
9905 (FRAME_FONT): Use output_data.tty.
9906 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9907 (struct x_display_info): Rename from display_info. Update all users in
9908 msdos.c.
aac0c6e3 9909 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9910 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9911 (dos_ttraw): Update prototype.
9912
9913 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9914 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9915
99162008-08-23 Jason Rumney <jasonr@gnu.org>
9917
9918 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9919 (fn_TIFFSetDirectory): New library function used.
9920 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9921 (tiff_load): Use :index to select among multiple images. Set count
9922 property when multiple images exist.
9923 (gif_format): Use :index, not :image.
9924
99252008-08-23 Chong Yidong <cyd@stupidchicken.com>
9926
9927 * xdisp.c (try_scrolling): Check INT_MAX instead of
9928 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9929 to obtain INT_MAX.
9930
99312008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9932
9933 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9934
99352008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9936
9937 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9938 GNUstep library location.
9939
99402008-08-21 Chong Yidong <cyd@stupidchicken.com>
9941
9942 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9943 before using it.
9944
9945 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9946
99472008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9948
9949 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9950 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9951 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9952 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9953 (EmacsApp-cursor_blink_handler): Remove declaration.
9954 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9955 match 01 Feb 2008 changes in xterm.c.
9956 (ns_read_socket): Add cast to avoid warning.
9957 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9958 GNUstep.
9959
99602008-08-20 Chong Yidong <cyd@stupidchicken.com>
9961
9962 * xselect.c (x_get_foreign_selection): Return nil if desired
9963 selection could not be obtained, instead of signalling an error.
9964
99652008-08-20 David Reitter <david.reitter@gmail.com>
9966
9967 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9968 * nsterm.m: Remove ns-specific code for cursor blinking.
9969 (ns_draw_window_cursor): Clear cursor properly rather than
9970 redrawing the area. Respect width of bar cursors.
9971 These changes enable the use of generic blink-cursor-mode and
9972 generic cursor types in NS and support smooth cursor movements (do
9973 not blink off after command).
9974 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9975 Nextstep, too.
9976
99772008-08-19 Kenichi Handa <handa@m17n.org>
9978
9979 * font.c (Vfont_log_deferred): New variable.
9980 (font_add_log): Check Vfont_log_deferred.
9981 (font_deferred_log): New function.
9982
9983 * font.h (font_deferred_log): Extern it.
9984
9985 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9986 for sorting.
9987 (face_for_char): Use deferred log.
9988
99892008-08-18 Kenichi Handa <handa@m17n.org>
9990
9991 * fontset.c (face_for_char): Add font log.
9992
9993 * font.c (font_add_log): Add the font properties :script, :lang,
9994 and :otf in the log.
9995
99962008-08-17 Chong Yidong <cyd@stupidchicken.com>
9997
9998 * xdisp.c: Remove dead code.
9999 (handle_invisible_prop, next_overlay_string): Defer call to
10000 setup_for_ellipsis.
10001 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10002
100032008-08-15 Chong Yidong <cyd@stupidchicken.com>
10004
10005 * xfaces.c (lookup_derived_face): Properly handle possible zero
10006 return value of get_lface_attributes.
10007 (merge_faces): Don't tell lookup_derived_face to signal an error
10008 if face is not found.
10009
10010 * dired.c (Fdirectory_files): Doc fix.
10011
10012 * process.c (make_process): Initialize kill_without_query struct
10013 member.
10014
100152008-08-15 Eli Zaretskii <eliz@gnu.org>
10016
10017 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10018 Alternative calculation of totphys for Visual Studio 6.
10019
10020 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10021
10022 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10023 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10024 All users changed.
10025 (stat): Only root directory passed to GetDriveType. Allow RAM
10026 disk as well as local fixed disk when w32-get-true-file-attributes
10027 is set to `local'.
10028 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10029 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10030 (w32_cached_id, w32_add_to_cache): New functions.
10031 (get_name_and_id): Look account names in the cache before calling
10032 lookup_account_sid.
10033 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10034 New initialization flags.
10035 (globals_of_w32): Initialize them to zero.
10036 (w32_system_process_attributes): Use w32_cached_id and
10037 w32_add_to_cache.
10038
100392008-08-14 Lawrence Mitchell <wence@gmx.li>
10040
10041 * lread.c (Fread_char, Fread_char_exclusive): If no character
10042 event is read before timeout is reached, return nil, rather than
10043 converting to a number.
10044
100452008-08-14 Chong Yidong <cyd@stupidchicken.com>
10046
10047 * fns.c (use_dialog_box): Doc fix.
10048
10049 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10050 on OS X.
10051
100522008-08-13 Chong Yidong <cyd@stupidchicken.com>
10053
10054 * frame.c (Qns_parse_geometry): New var.
10055 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10056
100572008-08-11 Chong Yidong <cyd@stupidchicken.com>
10058
10059 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10060 space character in calculating tabs.
10061
100622008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10063
10064 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10065
100662008-08-10 Glenn Morris <rgm@gnu.org>
10067
10068 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10069 silence gcc "limited range of data type" warnings in some
10070 make_fixnum_or_float calls.
10071
100722008-08-09 Eli Zaretskii <eliz@gnu.org>
10073
10074 * w32.c (w32_system_process_attributes): If the process does not
10075 exist, return nil.
10076
10077 * w32.c: Include thelp32.h, psapi.h and coding.h.
10078 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10079 declarations.
10080 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10081 (Process32Next_Proc): New typedefs.
10082 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10083 (g_b_init_process32_next, g_b_init_open_thread_token)
10084 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10085 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10086 (g_b_init_get_process_working_set_size)
10087 (g_b_init_global_memory_status_ex): New static variables.
10088 (globals_of_w32): Initialize them.
10089 (create_toolhelp32_snapshot, process32_first, process32_next)
10090 (open_thread_token, impersonate_self, revert_to_self)
10091 (get_process_memory_info, get_process_working_set_size)
10092 (global_memory_status, global_memory_status_ex): New wrapper
10093 functions.
10094 (w32_list_system_processes, w32_system_process_attributes)
10095 (enable_privilege, restore_privilege, ltime, process_times):
10096 New functions.
10097 (convert_time_raw): New function.
10098 (convert_time): Remove conversion of FILETIME into time in 100
10099 nsec units, call convert_time_raw instead.
10100
10101 * process.h (w32_list_system_processes, w32_system_process_attributes):
10102 Add prototypes.
10103 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10104 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10105 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10106 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10107
10108 * process.c (Fsystem_process_attributes): Doc fix.
10109
101102008-08-08 Chong Yidong <cyd@stupidchicken.com>
10111
10112 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10113 a continued multi-char glyph; if so, advance to the actual glyph.
10114
101152008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10116
10117 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10118
10119 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10120 (.m.o): Use it.
10121 * config.in: Regenerate.
10122
101232008-08-07 Chong Yidong <cyd@stupidchicken.com>
10124
10125 * xdisp.c (redisplay_window): Revert last change.
10126 (try_window): Check bottom scroll margin too.
10127
101282008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10129
10130 * config.in: Regenerate.
10131
10132 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10133 -list-load-path-shadows'.
10134 (nsgui.h): Reduce number of things depending on it.
10135
101362008-08-06 Chong Yidong <cyd@stupidchicken.com>
10137
10138 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10139 instead of window-end which does the wrong thing at eob.
10140 (try_cursor_movement): Minor optimization.
10141 (redisplay_window): If scroll margin is defined, don't assume
10142 window doesn't need scrolling.
10143
101442008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10145
10146 * config.in: Regenerate.
10147
10148 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10149 (mostlyclean): Don't delete *.d under NS.
10150
10151 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10152
101532008-08-06 Kenichi Handa <handa@m17n.org>
10154
10155 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10156
101572008-08-06 Andreas Schwab <schwab@suse.de>
10158
10159 * config.in: Regenerate.
10160
101612008-08-05 Chong Yidong <cyd@stupidchicken.com>
10162
10163 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10164 forcing a window start.
10165
10166 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10167 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10168
101692008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10170
10171 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10172 argument.
10173
101742008-08-05 Juanma Barranquero <lekktu@gmail.com>
10175
10176 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10177 <scroll-down-aggressively, before-change-functions>:
10178 <after-change-functions>: Reflow docstrings.
10179
101802008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10181 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10182
10183 Dock menu customization, based on a patch by Ken Raeburn, plus some
10184 other fixes.
10185 * nsmenu.m (dockMenu): New variable.
10186 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10187
10188 * nsterm.h (dockMenu): Declare.
10189
10190 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10191 (ns_term_init): Initialize dockMenu.
10192 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10193 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10194 left.
10195
10196 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10197
101982008-08-04 Chong Yidong <cyd@stupidchicken.com>
10199
10200 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10201
10202 * config.in: Regenerate.
10203
102042008-08-04 Seiji Zenitani <zenitani@mac.com>
10205
10206 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10207
102082008-08-04 Chong Yidong <cyd@stupidchicken.com>
10209
10210 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10211
102122008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10213
10214 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10215
10216 * keyboard.h: Comment an #endif.
10217
10218 * lisp.h (have_menus_p): Adjust comment.
10219
10220 * menu.c (find_and_return_menu_selection): Fix comparison with
10221 client_data.
10222
10223 * nsmenu.m (popup_activated_flag): New variable.
10224 (popup_activated): New function.
10225 (menu-or-popup-active-p): New exported lisp definition.
10226 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10227 when popup done.
10228 (ns_popup_dialog): Set popup_activated_flag.
10229
10230 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10231 version for GNUstep (handled by conditional typedef in nsterm.m).
10232 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10233 in rgb.txt).
10234
10235 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10236
10237 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10238
10239 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10240
10241 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10242 shortcircuit if popup_activated like GTK and X toolkit.
10243
10244 * m/inter386.h: Change DARWIN to DARWIN_OS.
10245
10246 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10247 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10248 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10249 comment on NO_SOCK_SIGIO.
10250
102512008-08-03 Chong Yidong <cyd@stupidchicken.com>
10252
10253 * nsterm.m (windowDidResize): Remove stopModal call.
10254
102552008-08-03 Andreas Schwab <schwab@suse.de>
10256
10257 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10258 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10259
102602008-08-02 Chong Yidong <cyd@stupidchicken.com>
10261
10262 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10263 Don't use uninitialized pointer variable when using getrlimit.
10264
102652008-08-02 Jason Rumney <jasonr@gnu.org>
10266
10267 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10268
102692008-08-02 Eli Zaretskii <eliz@gnu.org>
10270
10271 * alloc.c (NSTATICS): Bump to 0x640.
10272
10273 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10274
10275 * lisp.h: Add prototype for directory_files_internal.
10276
10277 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10278 New functions.
10279 (syms_of_process): Defsubr them. Add initializations for various
10280 Q* symbols used in procfs_system_process_attributes.
10281 (procfs_list_system_processes, procfs_system_process_attributes)
10282 [HAVE_PROCFS]: New functions.
10283 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10284 (procfs_get_total_memory): New functions.
10285
102862008-08-01 Juanma Barranquero <lekktu@gmail.com>
10287
10288 * xfaces.c (Fx_load_color_file): Fix previous change;
10289 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10290
102912008-08-01 Michael Albinus <michael.albinus@gmx.de>
10292
10293 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10294
102952008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10296
10297 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10298
102992008-08-01 Chong Yidong <cyd@stupidchicken.com>
10300
10301 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10302
10303 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10304 define NSApplicationDelegateReplySuccess.
10305 (EmacsView -converstationIdentifier): Use long instead of
10306 NSInteger for GNUstep, since it doesn't have NSInteger.
10307
10308 * xmenu.c: Revert last change.
10309
10310 * keyboard.h: Fix last change.
10311
103122008-08-01 Juanma Barranquero <lekktu@gmail.com>
10313
10314 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10315 on Windows.
10316
103172008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10318
10319 Warning clearing and clean-up in NS port.
10320 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10321 Add prototypes.
10322 * nsgui.h (FACE_DEFAULT): Remove, unused.
10323 (XGCValues): Change colors to unsigned long.
10324 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10325 nsterm.m.
10326 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10327 (ns_list_fonts): Remove, unused.
10328 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10329 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10330 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10331 (nsfont_draw): Compare face colors to 0, not nil.
10332 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10333 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10334 (-addSubmenuWithTitle:): Use NSMenuItem class.
10335 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10336 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10337 (ns_clip_to_row): Make gc arg a BOOL.
10338 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10339 ns_clip_to_row() call.
10340 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10341 used). Cast FRAME_FONT assignments.
10342 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10343 (ns_string_to_lispmod): Change arg to const char.
10344 (ns_term_init): Use NSMenuItem class.
10345 (EmacsApp -openFile:): Move to different section of file.
10346 (EmacsApp -application:openFiles:): Don't return a value, call
10347 -replyToOpenOrPrint:.
10348 (EmacsView -keyDown:): Fix up cast.
10349 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10350 (EmacsView -menuDown:): Cast tag in call to
10351 find_and_call_menu_selection().
10352 (ns_list_fonts): Remove, unused.
10353 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10354 (ns_fontname_to_xlfd): Make static.
10355 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10356 Remove prototypes (now in keyboard.h).
10357 (next_menubar_widget_id): Remove, unused.
10358 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10359 Remove prototypes (now in keyboard.h).
10360 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10361
103622008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10363
10364 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10365 (floatfns.o): Depend on syssignal.h.
10366 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10367
10368 * systty.h: Fix previous change that removed BSD_TERMIOS.
10369 Add comments to #ifdefs.
10370
103712008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10372
10373 * w32fns.c (w32-load-color-file): Remove.
10374 (x-open-connection): Use renamed Fx_load_color_file.
10375 * xfaces.c (x-load-color-file): Add.
10376 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10377 Emacs.clr.
10378 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10379
103802008-07-31 Michael Albinus <michael.albinus@gmx.de>
10381
10382 * dbusbind.c (Fdbus_call_method_asynchronously)
10383 (Fdbus_method_error_internal): New defuns.
10384 (xd_read_message): Handle also reply messages.
10385 (Vdbus_registered_functions_table): Extend docstring.
10386
103872008-07-31 Juanma Barranquero <lekktu@gmail.com>
10388
10389 * keyboard.c (gobble_input): Fix previous change.
10390
103912008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10392
10393 * bitmaps/README:
10394 * xfns.c:
10395 * termcap.c:
10396 * term.c:
10397 * syswait.h:
10398 * systty.h:
10399 * systime.h:
10400 * syssignal.h:
10401 * sysdep.c:
10402 * process.h:
10403 * process.c:
10404 * print.c:
10405 * ndir.h:
10406 * lread.c:
10407 * keyboard.c:
10408 * getpagesize.h:
10409 * floatfns.c:
10410 * fileio.c:
10411 * emacs.c:
10412 * doc.c:
10413 * dispnew.c:
10414 * dired.c:
10415 * data.c:
10416 * callproc.c:
10417 * buffer.c:
10418 * README:
10419 * Makefile.in:
10420 * s/template.h:
10421 * s/msdos.h:
10422 * m/vax.h: Remove VMS support.
10423 * s/vms.h:
10424 * vlimit.h:
10425 * uaf.h:
10426 * temacs.opt:
10427 * param.h:
10428 * ioctl.h: Remove file.
10429
104302008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10431
10432 * s/ms-w32.h (MULTI_KBOARD): Remove.
10433 * xterm.c:
10434 * xselect.c:
10435 * xfns.c:
10436 * window.c:
10437 * w32term.c:
10438 * w32fns.c:
10439 * terminal.c:
10440 * termhooks.h:
10441 * term.c:
10442 * sysdep.c:
10443 * keyboard.h:
10444 * keyboard.c:
10445 * frame.h:
10446 * frame.c:
10447 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10448 * config.in: Regenerate.
10449
104502008-07-30 Jason Rumney <jasonr@gnu.org>
10451
10452 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10453
10454 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10455 (w32font_open_internal): Get unicode version of textmetrics.
10456 Don't enable or disable glyph indices here.
10457 (w32font_open): Disable use of glyph indices.
10458
10459 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10460
104612008-07-30 Chong Yidong <cyd@stupidchicken.com>
10462
10463 * minibuf.c (Vread_buffer_function): Doc fix.
10464
104652008-07-30 John Paul Wallington <jpw@pobox.com>
10466
10467 * minibuf.c (read_buffer_completion_ignore_case): New var.
10468 (Fread_buffer): Use it.
10469
104702008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10471
10472 * systty.h (sensemode): Remove empty #if. Remove reference to
10473 BSD_TERMIOS, unused.
10474
10475 * sysdep.c: Remove reference to DGUX.
10476 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10477
10478 * config.in: Regenerate.
10479
104802008-07-30 Jason Rumney <jasonr@gnu.org>
10481
10482 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10483
104842008-07-29 Jason Rumney <jasonr@gnu.org>
10485
10486 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10487 is populated.
10488 (uniscribe_encode_char): Always use uniscribe.
10489 Avoid using context if cache is populated.
10490
104912008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10492
10493 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10494 open menu.
10495
10496 * gtkutil.c (menu_nav_ended): Remove.
10497 (create_menus): Remove signal connect for menu_nav_ended.
10498
104992008-07-28 Chong Yidong <cyd@stupidchicken.com>
10500
10501 * xdisp.c (redisplay_window): Check return value of
10502 compute_window_start_on_continuation_line before forcing a window
10503 start.
10504
105052008-07-28 Jason Rumney <jasonr@gnu.org>
10506
10507 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10508
10509 * w32term.c (w32_enable_unicode_output, cleartype_active):
10510 Remove obsolete display options.
10511 (x_draw_glyph_string_background): Don't use old cleartype_active
10512 workaround.
10513 (w32_initialize): Remove cleartype_active initialization.
10514 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10515
105162008-07-28 Andreas Schwab <schwab@suse.de>
10517
10518 * lisp.h (init_weak_hash_tables, syms_of_font)
10519 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10520 (remove_hash_entry): Don't declare.
10521 * eval.c (maybe_call_debugger): Make static and move before use.
10522 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10523 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10524 * xterm.h (x_set_frame_alpha): Declare.
10525
105262008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10527
10528 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10529 (create_menus): Connect selection-done to menu_nav_ended.
10530
105312008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10532
10533 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10534 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10535 parameter with read of 'alpha' one.
10536 (Qns_frame_parameter): Remove.
5582fbc7 10537 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10538 (next-selection-coding-system, Vselection_coding_system)
10539 (Vnext_selection_coding_system): Drop.
10540
105412008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10542
10543 * nsfns.m (do-applescript, do_applescript): Rename to
10544 ns-do-applescript, ns_do_applescript, and move within file.
10545
105462008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10547
10548 Remove support for Mac Carbon.
10549 * mactoolbox.c:
10550 * macterm.h:
10551 * macterm.c:
10552 * macselect.c:
10553 * macmenu.c:
10554 * macgui.h:
10555 * macfns.c:
10556 * mac.c: Remove file.
10557 * s/darwin.h:
10558 * m/intel386.h:
10559 * xfaces.c:
10560 * xdisp.c:
10561 * window.c:
10562 * tparam.c:
10563 * termhooks.h:
10564 * termcap.c:
10565 * term.c:
10566 * syssignal.h:
10567 * sysselect.h:
10568 * sysdep.c:
10569 * process.c:
10570 * lread.c:
10571 * lisp.h:
10572 * keyboard.c:
10573 * image.c:
10574 * fringe.c:
10575 * frame.h:
10576 * frame.c:
10577 * fontset.c:
10578 * font.h:
10579 * font.c:
10580 * fns.c:
10581 * fileio.c:
10582 * emacs.c:
10583 * dispnew.c:
10584 * dispextern.h:
10585 * config.in:
10586 * atimer.c:
2ae37cf0 10587 * Makefile.in: Remove code for Carbon.
aac0c6e3 10588
f0131492 105892008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10590
10591 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10592
105932008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10594
10595 * macterm.h (kCGBitmapByteOrder32Host): New define for
10596 non-universal SDKs.
10597
10598 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10599 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10600
10601 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10602 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10603
106042008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10605
10606 * w32inevt.c: Include dispextern.h.
10607
106082008-07-26 Andreas Schwab <schwab@suse.de>
10609
10610 * print.c (print_object): Fix off-by-one in last change.
10611
106122008-07-25 Juanma Barranquero <lekktu@gmail.com>
10613
10614 * term.c (syms_of_term): Don't initialize default_orig_pair,
10615 default_set_foreground and default_set_background on Windows.
10616
106172008-07-25 Jason Rumney <jasonr@gnu.org>
10618
10619 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10620 ScriptItemize. Clean up return value checking. Remove unused
10621 variables.
10622 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10623 shaping engine.
10624
10625 * w32font.c (w32font_has_char): Handle the case where we can't
10626 determine the script for a character.
10627
106282008-07-25 Chong Yidong <cyd@stupidchicken.com>
10629
10630 * term.c (syms_of_term): Initialize default_orig_pair,
10631 default_set_foreground, and default_set_background.
10632
10633 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10634 clash (bug#86).
10635 (getloadavg): Callers changed.
10636
10637 * image.c (svg_load_image): Fix last change.
10638 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10639 image size is valid. Use g_object_unref instead of deprecated
10640 rsvg_handle_free to free rsvg handle.
10641 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10642
106432008-07-25 Jason Rumney <jasonr@gnu.org>
10644
10645 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10646 surrogates before looking up glyph index.
10647 (w32font_text_extents): Encode as surrogates if falling back to
10648 functions that need UTF-16 wide chars.
10649
10650 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10651 BMP as surrogates before looking up glyph index.
10652
106532008-07-25 Chong Yidong <cyd@stupidchicken.com>
10654
10655 * image.c (svg_load_image): Check for failure in return value of
10656 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10657
106582008-07-25 Jason Rumney <jasonr@gnu.org>
10659
10660 * w32font.c (Fx_select_font): Reverse sense of second arg.
10661
106622008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10663
10664 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10665 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10666
10667 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10668 (PURESIZE): Use it.
10669
106702008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10671
10672 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10673 * m/alpha.h (TEXT_END):
10674 * m/ibmrs6000.h (TEXT_END):
10675 * m/macppc.h (TEXT_END):
10676 * s/darwin.h (TEXT_END):
10677 * s/msdos.h (TEXT_END): Remove, unused.
10678 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10679 * s/cygwin.h: Remove comment.
10680
10681 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10682 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10683 * m/intel386.h (DOT_GLOBAL_START):
10684 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10685 (USG): Remove, file not used on USG platforms.
10686
10687 * Makefile.in (HAVE_X11): Remove empty #else.
10688
106892008-07-24 Andreas Schwab <schwab@suse.de>
10690
10691 * fileio.c (Finsert_file_contents): Properly adjust undo list
10692 after format conversion.
10693
106942008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10695
10696 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10697 (menu_nav_ended): Remove.
10698 (create_menus): Remove signal connect for menu_nav_ended.
10699 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10700 create_menus.
10701 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10702
107032008-07-23 Jason Rumney <jasonr@gnu.org>
10704
10705 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10706 with opened font.
10707 (w32font_open): Set font type to gdi.
10708
10709 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10710
107112008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10712
10713 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10714 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10715 defines it.
10716 * unexec.c (ADDR_CORRECT): Define unconditionally.
10717
10718 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10719
10720 * unexec.c: Remove code depending on !COFF and USG, the file is
10721 not used for such systems.
10722
10723 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10724 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10725 (LD_SWITCH_SYSTEM_1): Remove, update users.
10726
10727 * s/darwin.h (DATA_END):
10728 * m/intel386.h (DATA_END):
10729 * m/ibmrs6000.h (DATA_END):
10730 * m/alpha.h (DATA_END): Remove, unused.
10731
10732 * config.in: Regenerate.
10733 * s/ms-w32.h (subprocesses): Define unconditionally.
10734 * s/template.h (subprocesses): Update comment.
10735 * s/vms.h (subprocesses):
10736 * s/usg5-4.h (subprocesses):
10737 * s/hpux10-20.h (subprocesses):
10738 * s/gnu-linux.h (subprocesses):
10739 * s/cygwin.h (subprocesses):
10740 * s/bsd-common.h (subprocesses):
10741 * s/aix4-2.h (subprocesses):
10742 * s/darwin.h (subprocesses): Do not define, defined by default now.
10743
10744 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10745 Remove all references.
10746 (temacs): Add GNUstep specific ld flags.
10747
10748 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10749 similarly to what X does.
10750
107512008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10752
10753 * nsfns.m (x-list-fonts): Remove.
10754 (syms_of_nsfns): Drop the x-list-fonts declaration.
10755 * nsterm.m: Get rid of remaining "//" comments.
10756
107572008-07-22 Chong Yidong <cyd@stupidchicken.com>
10758
10759 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10760
10761 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10762 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10763 (Fns_own_selection_internal, Fx_disown_selection_internal)
10764 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10765
10766 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10767 ... */' style of docstrings. Doc fixes.
10768
107692008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10770
10771 * terminfo.c (UP, BC, PC): Undo previous change.
10772
10773 * nsfns.m: Rename ns prefixed functions/variables to the
10774 corresponding x versions. Update references.
10775
107762008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10777
10778 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10779
107802008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10781
10782 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10783 Remove forwarding functions.
10784 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10785 non-static.
10786 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10787 non-static.
10788 (ns_frame_parm_handlers): Use the new names.
10789 (syms_of_nsfns): Move to the end of file.
10790
10791 * nsterm.m (syms_of_nsterm): Move to the end of file.
10792
10793 * dispnew.c (init_display): Remove code for X10.
10794
107952008-07-22 Jason Rumney <jasonr@gnu.org>
10796
10797 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10798 bare drive.
10799
108002008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10801
10802 * nsterm.m (syms_of_nsterm): Remove debugging println.
10803
108042008-07-22 David Reitter <david.reitter@gmail.com>
10805
10806 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10807 Carbon implementation of the same functionality: execute arbitrary
10808 AppleScript code.
10809
108102008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10811
10812 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10813 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10814 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10815 (Fx_display_mm_height, Fx_display_mm_width)
10816 (Fx_display_backing_store, Fx_display_visual_class)
10817 (Fx_display_save_under, Fx_open_connection)
10818 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10819 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10820 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10821 (Fx_display_pixel_width, Fx_display_pixel_height)
10822 (Fx_display_usable_bounds, Fx_display_planes)
10823 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10824 ... */' style of docstrings.
10825
108262008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10827
10828 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10829 on this platform.
10830 (mips):
10831 * m/iris4d.h (mips): Do not define.
10832 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10833
10834 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10835
10836 * image.c:
10837 * nsfns.m:
10838 * nsselect.m:
10839 * nsterm.h:
10840 * nsterm.m: Rename ns prefixed functions/variables to the
10841 corresponding x versions. Update references.
10842
10843 * m/ibms390x.h (NO_REMAP): Do not undefine.
10844
10845 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10846
108472008-07-21 Chong Yidong <cyd@stupidchicken.com>
10848
10849 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10850 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10851 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10852 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10853 (Fns_display_mm_height, Fns_display_mm_width)
10854 (Fns_display_backing_store, Fns_display_visual_class)
10855 (Fns_display_save_under, Fns_open_connection)
10856 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10857 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10858 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10859 (Fns_display_pixel_width, Fns_display_pixel_height)
10860 (Fns_display_usable_bounds, Fx_display_planes)
10861 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10862
108632008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10864
10865 * print.c (print_object): Check print_depth before searching for
10866 circularities.
10867
108682008-07-21 Michael Albinus <michael.albinus@gmx.de>
10869
10870 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10871 only sprintf.
10872
108732008-07-21 Kenichi Handa <handa@m17n.org>
10874
10875 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10876
108772008-07-20 Andreas Schwab <schwab@suse.de>
10878
10879 * syntax.c (find_start_pos, find_start_value)
10880 (find_start_value_byte, find_start_begv, find_defun_start)
10881 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10882
108832008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10884
10885 * s/sol2-3.h: Insert contents of s/sol2.h.
10886 (LD_SWITCH_SYSTEM): Remove redundant definition.
10887 * s/sol2.h: Remove, unused.
10888
108892008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10890
10891 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10892
108932008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10894
10895 * Makefile.in (ns_appdir): Fix typo in find command.
10896
108972008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10898
10899 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10900
10901 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10902 added not supported anymore.
10903
10904 * s/usg5-4-2.h (LIBS_SYSTEM):
10905 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10906
10907 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10908 * s/lynxos.h (GETPGRP_NO_ARG):
10909 * s/hpux10-20.h (NO_SIOCTL_H):
10910 * s/gnu.h (GETPGRP_NO_ARG):
10911 * s/gnu-linux.h (NO_SIOCTL_H):
10912 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10913 * s/cygwin.h (GETPGRP_NO_ARG):
10914 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10915 (C_DEBUG_SWITCH): Remove duplicate definition.
10916
10917 * m/ibms390.h: Remove boilerplate comments.
10918
10919 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10920
10921 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10922 (wait_reading_process_output): Remove code for SunOS, platform not
10923 supported anymore. Use SOLARIS2 instead of sun.
10924
109252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10926
10927 * font.c (font_open_by_name): Under NS, default lface height to zero.
10928 (font_open_for_lface): Under NS, set size based on frame fontsize.
10929 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10930 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10931
109322008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10933
10934 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10935 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10936 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10937 YES/NO.
10938 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10939 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10940 * Makefile.in (clean): Clear out build destination dir.
10941
109422008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10943
10944 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10945 xterm, xselect.
10946 * lisp.h: Remove declaration of hash_remove.
10947 * nsgui.h: Remove redefinitions of hash_remove.
10948 * fns.c (hash_remove): Rename to hash_remove_from_table.
10949
109502008-07-19 Seiji Zenitani <zenitani@mac.com>
10951
10952 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10953 strdup() the family UTF8String before modifying it.
10954
109552008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10956
10957 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10958 NS_FACE_BACKGROUND with 0 instead of nil.
10959 * nsfont.m (nsfont_draw): Same.
10960
109612008-07-19 Chong Yidong <cyd@stupidchicken.com>
10962
10963 * nsfns.m (ns_set_background_color): Fix crash.
10964
109652008-07-18 Chong Yidong <cyd@stupidchicken.com>
10966
10967 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10968
109692008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10970
10971 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10972
109732008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10974
10975 * gtkutil.c: Include <config.h> instead of "config.h".
10976
10977 * lisp.h (Foverlay_buffer): Add EXFUN.
10978
10979 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10980 child process to complete child_setup. Undo 2005-09-21 change.
10981
10982 * s/darwin.h: Mention setsid after vfork.
10983
109842008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10985
10986 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10987 Depend on macgui.h.
10988
10989 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10990 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10991
10992 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10993 and f19.
10994 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10995
10996 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10997 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10998 Remove enumerators.
10999
11000 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11001 Check if FACE_FROM_ID returns NULL.
11002
110032008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11004
11005 * w32inevt.c (change_frame_size): Remove extern declaration.
11006 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11007 change_frame_size.
11008
110092008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11010
11011 * getloadavg.c: Revert last change (2008-07-15).
11012
110132008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11014
11015 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11016 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11017 from configure.
11018
110192008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11020
11021 * s/sol2.h:
11022 * s/sol2-4.h: Reorganize conditionals.
11023
11024 * ecrt0.c: Remove code depending on m68000, not used anymore.
11025
11026 * fns.c (hash_remove): Make static.
11027 * lisp.h (hash_remove): Don't prototype.
11028
11029 * m/ibmrs6000.h:
11030 * m/ibms390x.h:
11031 * m/macppc.h: Remove boilerplate comments.
11032
11033 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11034 Solaris, which does not need them.
11035
11036 * m/vax.h: Remove comments about unsupported systems.
11037
11038 * s/darwin.h: Reorganize ifdefs.
11039
110402008-07-17 Andreas Schwab <schwab@suse.de>
11041
11042 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11043
110442008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11045
11046 Use SDATA. Follow coding convention of placing operators at
11047 beginning of next line rather than end of previous line, and placing
11048 spaces around infix operators.
11049
11050 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11051 in case it was defined already.
11052 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11053 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11054 ns_default.
11055 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11056 Lisp_Objects.
11057 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11058 (ns_defined_color, ns_color_to_lisp): Declare.
11059 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11060 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11061 it's accepted even with USE_LISP_UNION_TYPE.
11062 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11063 (update_frame_tool_bar): Remove apparently obsolete tests for
11064 non-integerness of f->tool_bar_lines.
11065 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11066 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11067 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11068 (nsfont_open): Don't confuse NULL for Qnil.
11069 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11070 * menu.h (find_and_call_menu_selection):
11071 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11072 (find_and_return_menu_selection): Always return something.
11073 * frame.h: Include dispextern.h for Display_Info.
11074 (display_x_get_resource): Declare.
11075
110762008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11077
11078 * syntax.c: Remove stdio.h include accidentally introduced in
11079 Emacs.app commit.
11080 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11081 NS_IMPL_COCOA.
11082 * keyboard.c (handle_async_input, input_available_signal): Remove
11083 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11084
110852008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11086
11087 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11088 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11089 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11090 Use SDATA.
11091
11092 * keymap.c: Remove all NS-specific code.
11093 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11094 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11095 where_is_preferred_modifier, return a different value depending on how
11096 preferred is the binding.
11097 (where_is_internal): Adjust accordingly.
11098 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11099 Adjust to new preferred_sequence_p.
11100 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11101 * keyboard.c (parse_solitary_modifier): Not static any more.
11102 * keyboard.h (parse_solitary_modifier): Declare.
11103
111042008-07-16 Andreas Schwab <schwab@suse.de>
11105
11106 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11107 of easymenu.
11108
111092008-07-16 Chong Yidong <cyd@stupidchicken.com>
11110
11111 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11112 that we don't move off the line.
11113
111142008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11115
11116 * keyboard.c (Qsuper): Remove.
11117 (parse_menu_item): Don't call where_is_internal specially for NS.
11118
111192008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11120
11121 * s/gnu-linux.h: Remove boilerplate comments.
11122
11123 * m/alpha.h (__ELF__): Consolidate conditions.
11124
11125 * m/m68k.h (linux): Use GNU_LINUX instead.
11126 Remove boilerplate comments.
11127
11128 * m/intel386.h: Undo refactoring from previous change.
11129 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11130 too, remove dead code.
11131 (linux): Use GNU_LINUX instead.
11132
111332008-07-16 Jason Rumney <jasonr@gnu.org>
11134
11135 * w32gui.h: Repeat 26 June changes lost by last change.
11136
111372008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11138
11139 * systty.h: Remove code for Aix on 386, unsupported platform.
11140
11141 * s/ms-w32.h: Remove boilerplate comments.
11142 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11143
11144 * s/gnu-linux.h (TERM): Remove support.
11145 (HAVE_SYSVIPC): Remove, unused.
11146 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11147 for this system.
11148
11149 * process.c: Remove support for IRIS, unused.
11150 Remove support for TERM, not relevant anymore.
11151
11152 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11153 used with the definition.
11154
11155 * s/aix4-2.h (static): Do not undef.
11156
11157 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11158 only used on Aix.
11159 (HAVE_SYSVIPC): Remove, unused.
11160
11161 * m/hp800.h (CANNOT_DUMP): Do not undef.
11162
11163 * m/alpha.h: Fix comment.
11164
11165 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11166 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11167 used by this configuration.
11168 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11169 * unexec.c: Remove code depending on HPUX and
11170 USG_SHARED_LIBRARIES, not used with this file. Remove code
11171 depending on IRIS, unused. Remove if 0-ed code.
11172
11173 * s/template.h: Remove comments about static.
11174
11175 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11176 Remove if 0-ed code.
11177 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11178 were the same as the default.
11179 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11180 Remove boilerplate comments.
11181 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11182 (HAVE_SYSVIPC): Remove, unused.
11183 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11184
11185 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11186 Remove boilerplate comments.
11187 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11188 Remove boilerplate comments.
11189 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11190 Remove boilerplate comments.
11191 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11192
11193 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11194 USG systems which do not use DATA_SEG_BITS.
11195 Refactor code. Remove boilerplate comments.
11196
11197 * m/ibms390.h:
11198 * m/m68k.h:
11199 * s/bsd-common.h:
11200 * s/cygwin.h:
11201 * s/darwin.h:
11202 * s/freebsd.h:
11203 * s/gnu.h:
11204 * s/msdos.h: Remove boilerplate comments.
11205
11206 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11207 do not use this file.
aac0c6e3
MR
11208 (IRIS_4D): Remove, unused.
11209
11210 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11211 do not use this file.
aac0c6e3
MR
11212 (SIGN_EXTEND_CHAR):
11213 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11214 * unexmips.c: Remove file, unused.
11215
11216 * editfns.c (Fuser_full_name): Replace the only use of
11217 USER_FULL_NAME with its value.
11218 * config.in: Regenerate.
11219
112202008-07-16 David Reitter <david.reitter@gmail.com>
11221
11222 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11223 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11224
112252008-07-16 Glenn Morris <rgm@gnu.org>
11226
11227 * emacs.c (system-type): Doc fix.
11228
112292008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11230
11231 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11232 If the cache doesn't work, let's fix it, rather than work around it.
11233
112342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11235
11236 * Makefile.in: Correct additions for nsfont.o in last commit.
11237 * nsfont.m: New file (forgot last commit).
11238
112392008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11240
11241 * callproc.c (set_initial_environment): Initialize
11242 Vprocess_environment under CANNOT_DUMP (fixes crash when
11243 batch-compiling for bootstrap).
11244
112452008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11246 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11247
11248 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11249 fix crash due to different init order.
11250
112512008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11252
11253 Changes and additions for NeXTstep windowing system (Cocoa and
11254 GNUstep) support.
11255
11256 * Makefile.in:
11257 * config.in: Support defines and build commands for NS port.
11258 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11259 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11260 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11261 windowing.
11262 (struct face): Add synth_ital field.
11263 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11264 (init_display): Initialize Vinitial_window_system to "ns" when so
11265 compiled.
11266 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11267 (display_arg): Use under NS.
11268 (main): Under NS, allocate autorelease pool and handle command line
11269 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11270 (standard_args): Add NS-specific args.
11271 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11272 * font.c (DEFAULT_ENCODING): New variable.
11273 (font_find_for_lface): Use it.
11274 (syms_of_font): Load syms_of_nsfont under NS.
11275 * font.h: Declare nsfont_driver when compiled under NS.
11276 * fontset.c: When compiling under NS, include nsterm.h.
11277 (fontset_from_font): Autoconstruct fontset under NS.
11278 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11279 symbol, document and use it.
11280 (do_switch_frame): When for_deletion under Cocoa, add
11281 Fraise_frame(Qnil).
11282 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11283 (x_get_arg): Allow "yes" and "no" as boolean values.
11284 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11285 Qright under Cocoa.
11286 (focus-follows-mouse): Default to 0 under NS.
11287 * frame.h (enum output_method): Add output_ns.
11288 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11289 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11290 (FRAME_WINDOW_P): NS-specific definition.
11291 * fringe.c (max_used_fringe_bitmap): Make public.
11292 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11293 (getloadavg): Use NeXT code under descendant OS's.
11294 * image.c (includes and header section, x_create_bitmap_from_data)
11295 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11296 (image_background_transparent, x_clear_image_1)
11297 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11298 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11299 (x_to_xcolors, x_from_xcolors, x_disable_image)
11300 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11301 other GUIs, including XPM support using code originally written for
11302 Carbon GUI.
11303 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11304 using NS API.
11305 (image_ascent): Use font metrics macros instead of direct struct field
11306 access.
11307 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11308 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11309 Also, handle NS as GTK for menu bar purposes.
11310 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11311 toolkit where they differ.
11312 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11313 use cachelist, still needed under NS.
11314 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11315 (struct widget_value): Define it here for menu.c.
11316 * keymap.c (includes): Include modifier internals.
11317 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11318 NS.
11319 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11320 support for preferring sequences using certain modifiers, specified by
11321 the FIRSTONLY argument.
11322 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11323 under NS GNUstep implementation.
11324 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11325 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11326 * menu.c: Include nsterm.h under NS.
11327 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11328 (free_menubar_widget_tree_value, update_submenu_strings)
11329 (find_and_call_menu_selection): Treat NS as X and NT.
11330 (find_and_return_menu_selection): New function, used for popup menus.
11331 * nsgui.h:
11332 * nsterm.h:
11333 * nsfns.m:
11334 * nsimage.m:
11335 * nsmenu.m:
11336 * nsselect.m:
11337 * nsterm.m: New files.
11338 * process.c (wait_reading_process_output): Under NS, call ns_select()
11339 instead of plain select().
11340 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11341 beginning of buffer.
11342 * sysselect.h (init_process): Rename when compiling under Cocoa to
11343 avoid name conflict.
11344 * termhooks.h (display_info): Add ns_display_info to union.
11345 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11346 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11347 COCOA environment.
11348 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11349 unexec() signature. (Note, this will dump, but the resulting file
11350 crashes; unexosx is used instead; keeping around for reference and
11351 possible aid in getting dump working under GNUstep.)
11352 * w32gui.h (button_type, widget_value): Remove definitions (now in
11353 keyboard.h).
11354 * window.c: Include nsterm.h when compiling under NS.
11355 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11356 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11357 other GUI windowing systems.
11358 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11359 GTK.
11360 (x_consider_frame_title): Under NS, set icon type and frame
11361 modified-state indicator; use ns_set_name_as_filename() when using
11362 formatted title.
11363 (update_window_cursor): Make public when compiling under NS.
11364 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11365 (hourglass_atimer, Vhourglass_delay
11366 * xfaces.c (header section, init_frame_faces, clear_font_table)
11367 (defined_color, unload_color, x_face_list_fonts)
11368 (prepare_face_for_display): Add NS support parallel to other GUIs.
11369 Emulate GCs like other non-X GUIs.
11370 (split_font_name): Don't lowercase font name under NS.
11371 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11372 under NS.
11373 * s/darwin.h: Add support for compilation under NS.
11374
113752008-07-15 Jason Rumney <jasonr@gnu.org>
11376
11377 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11378 (w32_show_hourglass): Rename from show_hourglass.
11379 (w32_hide_hourglass): Rename from hide_hourglass.
11380 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11381 (Vhourglass_delay): Declare extern.
11382 (hourglass_started): Remove.
11383
11384 * xdisp.c (Vhourglass_delay): Remove static.
11385 (hourglass_started, start_hourglass, cancel_hourglass):
11386 Don't include these versions on WINDOWSNT.
11387
113882008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11389
11390 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11391 variables (formerly in xfns.c).
11392 (show_hourglass, hide_hourglass): New prototypes (same).
11393 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11394 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11395 in xfns.c).
11396 (syms_of_xdisp): Declare/initialize display-hourglass,
11397 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11398 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11399 formerly in xfns.c.
11400 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11401 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11402 (start_hourglass, cancel_hourglass): Remove.
11403 (show_hourglass, hide_hourglass): Remove prototypes and static
11404 modifiers.
11405 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11406 hourglass_atimer, hourglass_shown_p declaration/initialization.
11407 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11408 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11409 (start_hourglass, cancel_hourglass): Remove.
11410 (show_hourglass, hide_hourglass): Remove prototypes and static
11411 modifiers.
11412 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11413 hourglass_atimer, hourglass_shown_p declaration/initialization.
11414 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11415 (DEFAULT_HOURGLASS_DELAY): Remove.
11416 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11417 hourglass_shown_p declaration/initialization.
11418
114192008-07-14 Jason Rumney <jasonr@gnu.org>
11420
11421 * w32fns.c (w32_get_arg): Remove wrapper function.
11422 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11423 directly.
11424 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11425
114262008-07-14 Kenichi Handa <handa@m17n.org>
11427
11428 * xfont.c (xfont_open): Add workaround for X's bug.
11429
114302008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11431
11432 * fontset.c: Include <stdio.h> unconditionally.
11433
114342008-07-13 Michael Albinus <michael.albinus@gmx.de>
11435
11436 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11437 for filtering.
11438
114392008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11440
11441 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11442
11443 * m/macppc.h:
11444 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11445
11446 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11447 (SPECIAL_EMACS_INT):
11448 * m/ia64.h (SPECIAL_EMACS_INT):
11449 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11450 * s/gnu.h (NLIST_STRUCT):
11451 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11452 * s/gnu-linux.h (LINUX):
11453 * s/msdos.h (HAVE_FACES):
11454 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11455
11456 * systty.h:
11457 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11458 anymore.
11459
114602008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11461
11462 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11463 always defined as int.
11464
11465 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11466 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11467 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11468 * s/freebsd.h (HAVE_WAIT_HEADER):
11469 * s/bsd-common.h (HAVE_UNION_WAIT):
11470 * s/aix4-2.h (HAVE_WAIT_HEADER):
11471 * m/mips.h (HAVE_UNION_WAIT):
11472 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11473 (COFF, static): Do not define, they are undefined later in the file.
11474
11475 * process.c (update_status): Don't use a union.
11476 (status_convert):
11477 (sigchld_handler): Use int instead of WAITTYPE.
11478
114792008-07-12 Chong Yidong <cyd@stupidchicken.com>
11480
11481 * indent.c (Fvertical_motion): Restore hscroll before moving to
11482 goal column.
11483
114842008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11485
11486 * lisp.h: Remove left over code.
11487
114882008-07-11 Andreas Schwab <schwab@suse.de>
11489
11490 * lisp.h: Fix logic in last change.
11491
11492 * menu.h: New file.
11493 * menu.c: Include it.
11494 * xmenu.c: Likewise.
11495 * Makefile.in: Update dependencies.
11496
114972008-07-11 Kenichi Handa <handa@m17n.org>
11498
11499 * fontset.c (fontset_from_font): Cancel the previous change.
11500
115012008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11502
11503 * lisp.h:
11504 * w32heap.c:
11505 * emacs.c:
11506 * alloc.c: Replace all references of NO_UNION_TYPE with
11507 USE_LISP_UNION_TYPE.
11508
11509 * m/xtensa.h (NO_UNION_TYPE):
11510 * m/vax.h (NO_UNION_TYPE):
11511 * m/template.h (NO_UNION_TYPE):
11512 * m/sparc.h (NO_UNION_TYPE):
11513 * m/mips.h (NO_UNION_TYPE):
11514 * m/macppc.h (NO_UNION_TYPE):
11515 * m/m68k.h (NO_UNION_TYPE):
11516 * m/iris4d.h (NO_UNION_TYPE):
11517 * m/intel386.h (NO_UNION_TYPE):
11518 * m/ibms390x.h (NO_UNION_TYPE):
11519 * m/ibms390.h (NO_UNION_TYPE):
11520 * m/ibmrs6000.h (NO_UNION_TYPE):
11521 * m/ia64.h (NO_UNION_TYPE):
11522 * m/hp800.h (NO_UNION_TYPE):
11523 * m/arm.h (NO_UNION_TYPE):
11524 * m/amdx86-64.h (NO_UNION_TYPE):
11525 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11526 defining it the same.
11527
115282008-07-10 Chong Yidong <cyd@stupidchicken.com>
11529
11530 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11531
115322008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11533
11534 * fileio.c:
50426a04 11535 * sysdep.c:
aac0c6e3
MR
11536 * systty.h:
11537 * m/ibmrs6000.h:
11538 * m/iris4d.h:
11539 * s/aix4-2.h:
11540 * s/freebsd.h:
11541 * s/gnu-linux.h:
11542 * s/hpux10-20.h:
11543 * s/hpux11.h:
11544 * s/netbsd.h:
11545 * s/sol2-3.h:
11546 * s/sol2-4.h:
11547 * s/sol2.h:
11548 * s/usg5-4.h:
11549 * s/vms.h: Remove references to unused variables.
11550
115512008-07-10 Andreas Schwab <schwab@suse.de>
11552
11553 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11554 pattern before matching the generic family.
11555
115562008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11557
11558 * unexec.c:
11559 * s/vms.h:
11560 * s/usg5-4-2.h:
11561 * s/sol2-5.h:
11562 * s/freebsd.h:
11563 * s/darwin.h: Remove dead code.
11564
11565 * m/template.h:
11566 * m/sparc.h:
11567 * m/mips.h:
11568 * m/m68k.h:
11569 * m/iris4d.h:
11570 * m/intel386.h:
11571 * m/ibms390x.h:
11572 * m/ibms390.h:
11573 * m/ia64.h:
11574 * m/hp800.h:
11575 * m/arm.h:
11576 * m/amdx86-64.h: Remove dead code and references to unused
11577 and compiler defined symbols.
11578
11579 * unexmips.c:
11580 * unexelf.c: Remove references to desupported systems.
11581
11582 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11583
11584 * m/powermac.h: Remove boilerplate comments.
11585 (NO_REMAP): Remove unused definition.
11586
11587 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11588 define them.
11589
115902008-07-10 Kenichi Handa <handa@m17n.org>
11591
11592 * xfont.c (xfont_open): Log the reason of failure.
11593
115942008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11595
11596 * fontset.c (fontset_get_font_group):
11597 * font.c (font_check_otf): Specify argument types.
11598
115992008-07-09 Kenichi Handa <handa@m17n.org>
11600
11601 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11602 non-ASCII char is found.
11603
11604 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11605 (reorder_font_vector): Change the arg preferred_family to font.
11606 Prefer the spec matching with font.
11607 (fontset_get_font_group): New function.
11608 (fontset_find_font): Change the format of an element of a realized
11609 fontset. Use fontset_get_font_group.
11610 (fontset_font): Try the current fontset, the default fontset, the
11611 fallbacks of the current fontset, and the fallbacks of the default
11612 fontset in this order.
11613 (face_for_char): Delete the shortcut to use the current font.
11614 (fontset_from_font): Don't set fonts for Latin in the fontset.
11615
11616 * font.h (font_make_object, font_match_p): Adjust prototypes.
11617
11618 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11619
11620 * font.c (font_make_object): New arg entity and pixelsize.
11621 (font_check_otf_features, font_check_otf): New functions.
11622 (font_match_p): Check :lang, :script, and :otf properties.
11623
11624 * xfont.c (xfont_open): Adjust it for the change of
11625 font_make_object.
11626 (xfont_text_extents): Fix initial setting of metrics.
11627
11628 * ftfont.c (struct ftfont_info): New member index, delete member
11629 fc_charset_idx. Make the member order compatible with struct
11630 xftfont_info.
11631 (fc_charset_table): Change charset names to registry names.
11632 (ftfont_pattern_entity): Delete the args registry and
11633 fc_charset_idx. Change the value of :font-entity property
11634 to (FONTNAME . INDEX). Always set :registry property to
11635 `iso10646-1'.
11636 (struct ftfont_cache_data): New struct.
11637 (ftfont_lookup_cache): New arg for_face.
11638 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11639 (ftfont_driver): Set the member otf_capability.
11640 (ftfont_get_charset): Adjust it for the change of
11641 fc_charset_table.
11642 (OTF_TAG_SYM): New macro.
11643 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11644 for the change of fc_charset_table.
11645 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11646 ftfont_pattern_entity. Add FC_INDEX to objset.
11647 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11648 and ftfont_pattern_entity.
11649 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11650 font_make_object, struct ftfont_info.
11651 (ftfont_has_char): Use ftfont_get_fc_charset.
11652 (ftfont_otf_features, ftfont_otf_capability): New functions.
11653 (ftfont_shape): Use ftfont_get_otf.
11654 (ftfont_text_extents): Fix initial setting of metrics.
11655
11656 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11657 member order compatible with struct ftfont_info.
11658 (xftfont_open): Add FC_CHARSET to the pattern. Set
11659 xftfont_info->ft_size. Don't unlock the face. Check BDF
11660 properties if appropriate.
11661 (xftfont_close): Unlock the face.
11662 (xftfont_anchor_point, xftfont_shape): Deleted.
11663 (syms_of_xftfont): Don't set members anchor_point and shape of
11664 xftfont_driver.
11665
11666 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11667 font_make_object.
11668
11669 * w32font.c (w32font_open): Adjust it for the change of
11670 font_make_object.
11671 (w32font_open_internal): Don't set properties of font_object here.
11672
116732008-07-08 Chong Yidong <cyd@stupidchicken.com>
11674
11675 * macfns.c (x_create_tip_frame):
11676 * w32fns.c (x_create_tip_frame):
11677 * xfns.c (x_create_tip_frame): Pass parameter argument to
11678 face-set-after-frame-default.
11679
11680 * xfaces.c (Finternal_merge_in_global_face): Save merged
11681 attributes for the default face back into the face vector.
11682
116832008-07-08 Andreas Schwab <schwab@suse.de>
11684
11685 * fontset.h: Declare fontset_from_font. Don't declare
11686 new_fontset_from_font and fontset_from_font_name.
11687 * xterm.c: Include "fontset.h".
11688 * Makefile.in (xterm.o): Update dependencies.
11689
116902008-07-08 Glenn Morris <rgm@gnu.org>
11691
11692 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11693 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11694
116952008-07-07 Chong Yidong <cyd@stupidchicken.com>
11696
11697 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11698 (x_set_frame_parameters): Don't bind it.
11699
117002008-07-07 Juanma Barranquero <lekktu@gmail.com>
11701
11702 * w32fns.c (map_w32_filename): Declare extern.
11703
117042008-07-07 Jason Rumney <jasonr@gnu.org>
11705
11706 * w32term.c (WS_EX_LAYERED): Define if not already.
11707
117082008-07-06 Chong Yidong <cyd@stupidchicken.com>
11709
11710 * xfaces.c (set_font_frame_param): Don't try to set the font
11711 parameter if it is still unspecified in the lface.
11712
117132008-07-05 Chong Yidong <cyd@stupidchicken.com>
11714
11715 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11716 face if it didn't already exist.
11717
11718 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11719
117202008-07-05 Andreas Schwab <schwab@suse.de>
11721
11722 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11723
117242008-07-05 Chong Yidong <cyd@stupidchicken.com>
11725
11726 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11727 word-wrapping.
11728 (IT_DISPLAYING_WHITESPACE): New macro.
11729 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11730 when word-wrapping. Simplify word-wrapping logic. Use correct
11731 pixel positions when saving copies of the iterator.
11732 (display_line): Use proper wrap point if the last character on a
11733 line was preceded by whitespace.
11734
117352008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11736
11737 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11738
117392008-07-04 Kenichi Handa <handa@m17n.org>
11740
11741 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11742
11743 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11744
117452008-07-02 Jason Rumney <jasonr@gnu.org>
11746
11747 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11748 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11749
11750 * xdisp.c (next_element_from_display_vector): Move assignment out
11751 of if statement.
11752
117532008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11754
11755 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11756
11757 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11758 (syms_of_fileio): Initialize and export them.
11759 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11760
11761 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11762 (Fsystem_move_file_to_trash): New function.
11763 (syms_of_w32fns): Export it to lisp.
11764
117652008-07-01 Jason Rumney <jasonr@gnu.org>
11766
11767 * w32font.c (w32font_text_extents): Don't count overhang as part
11768 of width.
11769
117702008-06-30 Miles Bader <miles@gnu.org>
11771
11772 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11773 Add `avoid_cursor_p' field.
11774
11775 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11776 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11777 (append_glyph, append_composite_glyph, produce_image_glyph)
11778 (append_stretch_glyph): Initialize avoid_cursor_p.
11779 (get_it_property): Rename from `get_line_height_property'.
11780 (x_produce_glyphs): Use get_it_property.
11781 (handle_line_prefix, push_display_prop): New functions.
11782 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11783 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11784 New variables.
11785 (syms_of_xdisp): Initialize them.
11786
117872008-06-30 Kenichi Handa <handa@m17n.org>
11788
11789 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11790 XftDefaultSubstitute (they are called in XftFontMatch).
11791 (xftfont_open): Fix args to ftfont_font_format.
11792
11793 * ftfont.c (fc_charset_table): New member lang.
11794 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11795 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11796 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11797 (ftfont_open): Fix args to ftfont_font_format.
11798 (ftfont_font_format): New arg filename.
11799
118002008-06-30 Chong Yidong <cyd@stupidchicken.com>
11801
11802 * xfaces.c (Finternal_merge_in_global_face): If default face was
11803 modified, realize it again. Update the font face attribute.
11804
118052008-06-29 Jason Rumney <jasonr@gnu.org>
11806
11807 * w32term.c (x_set_frame_alpha): Fix logic.
11808
118092008-06-29 Kenichi Handa <handa@m17n.org>
11810
11811 * fontset.c (Finternal_char_font): Return font-object instead of
11812 font-name.
11813
11814 * composite.c (get_composition_id): Fix the width calculation for TAB.
11815
118162008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11817
11818 * indent.c (Fvertical_motion): Properly handle float column arg.
11819
118202008-06-28 Jason Rumney <jasonr@gnu.org>
11821
11822 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11823 (pfnSetLayeredWindowAttributes): New function pointer.
11824 (w32_initialize): Initialize it when supported.
11825 (x_set_frame_alpha): New function.
11826
11827 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11828 (w32_frame_parm_handlers): Set alpha handler.
11829
11830 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11831
118322008-06-27 Jason Rumney <jasonr@gnu.org>
11833
11834 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11835 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11836 (w32_to_x_charset, x_to_w32_charset)
11837 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11838 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11839 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11840 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11841 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11842 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11843 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11844 (Qw32_charset_unicode): Remove.
11845 (syms_of_w32fns): Update for above changes.
11846
11847 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11848 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11849 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11850 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11851 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11852 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11853 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11854 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11855 (syms_of_w32font): Update for above changes.
11856
118572008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11858
11859 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11860 removed #if.
11861 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11862
118632008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11864 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11865
11866 * makefile.w32-in (LOCAL_FLAGS):
11867 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11868
11869 * sysdep.c (_spawnlp, _getpid):
11870 Declare with explicit _cdecl instead of _CRTAPI1.
11871
11872 * editfns.c (Fget_internal_run_time):
11873 Check for WINDOWSNT with #ifdef, not #if.
11874
118752008-06-26 Jason Rumney <jasonr@gnu.org>
11876
11877 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11878
11879 * w32term.c (x_draw_glyph_string_foreground)
11880 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11881 Use FONT_HANDLE macro.
11882 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11883
11884 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11885 (uniscribe_encode_char): Use FONT_HANDLE macro.
11886
11887 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11888 (w32font_text_extents): Use precast w32_font.
11889 (w32font_close): Free cached metrics.
11890 (w32font_open_internal): Allocate space for name on stack.
11891
118922008-06-26 Chong Yidong <cyd@stupidchicken.com>
11893
11894 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11895
118962008-06-26 Jason Rumney <jasonr@gnu.org>
11897
11898 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11899 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11900
119012008-06-26 Juanma Barranquero <lekktu@gmail.com>
11902
11903 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11904
119052008-06-26 Jason Rumney <jasonr@gnu.org>
11906
11907 * w32bdf.c, w32bdf.h: Remove obsolete files.
11908
11909 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11910
11911 * w32gui.h: Don't include w32bdf.h.
11912 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11913 Remove obsolete font support.
11914
11915 * w32font.h (struct w32font_info): Remove compat_w32_font.
11916 Add hfont member.
11917 (FONT_COMPAT): Remove obsolete macro.
11918
11919 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11920 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11921 (w32font_open_internal): Remove compat code. Set new hfont member.
11922 (Fx_select_font): Use new hfont member.
11923
11924 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11925 (uniscribe_encode_char): Use new hfont member.
11926
11927 * w32term.c (x_draw_glyph_string_foreground)
11928 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11929 (x_draw_glyph_string): Use metrics in w32font_info.
11930
119312008-06-26 Kenichi Handa <handa@m17n.org>
11932
11933 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11934
119352008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11936
11937 * unexnext.c:
11938 * m/ews4800.h:
11939 * m/hp9000s300.h:
11940 * m/ibm370aix.h:
11941 * m/mips-siemens.h:
11942 * m/ncr386.h:
11943 * m/next.h:
11944 * m/pmax.h:
11945 * m/powerpcle.h:
11946 * m/tandem-s2.h:
11947 * s/386bsd.h:
11948 * s/bsd386.h:
11949 * s/bsd4-1.h:
11950 * s/bsd4-2.h:
11951 * s/bsdos2-1.h:
11952 * s/bsdos2.h:
11953 * s/bsdos3.h:
11954 * s/bsdos4.h:
11955 * s/nextstep.h:
11956 * s/ultrix4-3.h:
11957 * s/usg5-0.h:
11958 * s/usg5-2-2.h:
11959 * s/usg5-2.h:
11960 * s/usg5-4-3.h:
11961 * s/ux4800.h:
11962 * s/uxpds.h:
11963 * s/uxpv.h: Remove support for obsolete systems.
11964 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11965 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11966 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11967 Remove, insert contents in s/aix4-2.h.
11968 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11969 * s/bsd4-3.h: Rename to ...
11970 * s/bsd-common.h: ... this.
11971 * data.c:
11972 * doc.c:
11973 * ecrt0.c:
11974 * emacs.c:
11975 * fileio.c:
11976 * floatfns.c:
11977 * keyboard.c:
11978 * mem-limits.h:
11979 * print.c:
11980 * process.c:
11981 * sysdep.c:
11982 * syssignal.h:
11983 * systty.h:
11984 * syswait.h:
11985 * term.c:
11986 * unexec.c:
11987 * unexelf.c:
11988 * unexhp9k800.c:
11989 * m/hp800.h:
11990 * m/ibmrs6000.h:
11991 * m/mips.h:
11992 * m/vax.h:
11993 * s/darwin.h:
11994 * s/freebsd.h:
11995 * s/gnu.h:
11996 * s/ms-w32.h:
11997 * s/msdos.h:
11998 * s/netbsd.h:
11999 * s/template.h: Remove references to obsolete variables.
12000
12001 * Makefile.in: Add dependencies for all unexec files.
12002 (admindir): Remove unused variable.
12003 (UNEXEC_SRC): Remove references.
12004
120052008-06-25 Chong Yidong <cyd@stupidchicken.com>
12006
12007 * xfns.c (x_default_font_parameter): If Xft is available, first
12008 try Monospace-12 for the default font.
12009
120102008-06-25 Jason Rumney <jasonr@gnu.org>
12011
12012 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12013
120142008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12015
12016 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12017
12018 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12019
120202008-06-25 Juanma Barranquero <lekktu@gmail.com>
12021
12022 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12023 <scroll-conservatively>: Fix typo in docstring.
12024
12025 * xselect.c (Fx_send_client_event): Doc fix.
12026
120272008-06-25 Kenichi Handa <handa@m17n.org>
12028
12029 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12030
12031 * font.c (font_parse_fcname): Remove unused variables.
12032 (font_sort_entites): Delete the arg SPEC. Caller changed.
12033 Fix for the case of ! best_only.
12034 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12035
12036 * lisp.h (Fstring_to_unibyte): EXFUN it.
12037
12038 * character.h (str_to_unibyte): Extern it.
12039
12040 * character.c (str_to_unibyte): New function.
12041
12042 * fns.c (Fstring_to_unibyte): New function.
12043 (syms_of_fns): Defsubr it.
12044
120452008-06-24 Kenichi Handa <handa@m17n.org>
12046
12047 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12048 DPI too.
12049 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12050
120512008-06-24 Andreas Schwab <schwab@suse.de>
12052
12053 * Makefile.in (${lispsource}loaddefs.el): Rename from
12054 ../lisp/loaddefs.el.
12055 (bootstrap-clean): Do what distclean does but don't remove
12056 Makefile.
12057 (distclean): Depend on bootstrap-clean and remove Makefile.
12058
120592008-06-24 Chong Yidong <cyd@stupidchicken.com>
12060
12061 * buffer.h (struct buffer): New member word_wrap.
12062
12063 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12064 word-wrap.
12065 (init_buffer_once): Initialize them.
12066
12067 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12068 line_wrap enum possessing three possible values.
12069
12070 * termopts.h: Replace truncate_partial_width_windows with
12071 Vtruncate_partial_width_windows.
12072
12073 * dispnew.c (direct_output_for_insert): Avoid direct output when
12074 inserting a space with word wrap on.
12075
12076 * indent.c (compute_motion): Obey integer values of
12077 truncate-partial-width-windows.
12078
12079 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12080 replacing truncate_partial_width_windows.
12081 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12082 truncate only if the window width is below that integer.
12083 (start_display, resize_mini_window, produce_stretch_glyph)
12084 (display_string, move_it_in_display_line_to): Use line_wrap.
12085 (back_to_previous_visible_line_start, reseat_1): Reset
12086 string_from_display_prop_p.
12087 (display_line): Extend default face to end of line when wrapping.
12088
120892008-06-24 Kim F. Storm <storm@cua.dk>
12090
12091 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12092 to wrap continued lines at word boundaries.
12093
120942008-06-24 Jason Rumney <jasonr@gnu.org>
12095
12096 * font.c (Ffont_face_attributes): Multiply pixel size before point
12097 conversion to avoid multiplying rounding error.
12098
120992008-06-23 Jason Rumney <jasonr@gnu.org>
12100
12101 * w32term.c (x_draw_glyph_string_background)
12102 (x_draw_glyph_string): Remove old bdf font code.
12103
12104 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12105
121062008-06-22 Kenichi Handa <handa@m17n.org>
12107
12108 * font.c (font_find_for_lface): Try the adstyle specified in
12109 the property of LFACE_FONT of LFACE (if any).
12110
121112008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12112 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12113
12114 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12115
121162008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12117
12118 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12119 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12120 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12121 (witness-emacs): Remove.
12122 (lisp, shortlisp): Move loaddefs.el earlier.
12123 (mostlyclean): Forget about witness-emacs.
12124
121252008-06-22 Glenn Morris <rgm@gnu.org>
12126
12127 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12128 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12129
121302008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12131
12132 * Makefile.in (PRECOMP): Remove.
12133 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12134 (witness-emacs): Run `compile-first'.
12135 (.el.elc): Use the new compile-onefile target.
12136
121372008-06-21 Kenichi Handa <handa@m17n.org>
12138
12139 * xftfont.c (xftfont_open): Handle QCembolden only when
12140 FC_EMBOLDEN is defined.
12141
121422008-06-21 Andreas Schwab <schwab@suse.de>
12143
12144 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12145 (.el.elc): Likewise.
12146
121472008-06-21 Miles Bader <miles@gnu.org>
12148
12149 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12150 build dir, not the lisp source dir.
12151
121522008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12153
12154 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12155 (bootstrapclean): Remove.
12156 (.el.elc): New rule.
12157 (PRECOMP): New var.
12158 (../lisp/subdirs.el): Remove.
12159 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12160 (witness-emacs): New target.
12161 (mostlyclean): Remove witness-emacs as well.
12162 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12163 Add witness-emacs dependency.
12164
121652008-06-20 Chong Yidong <cyd@stupidchicken.com>
12166
12167 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12168 defined by the font.
12169
121702008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12171
12172 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12173 (bootstrap-clean): New target that keeps TAGS around.
12174 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12175 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12176
121772008-06-20 Jason Rumney <jasonr@gnu.org>
12178
12179 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12180 Remove obsolete font code.
12181
12182 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12183 to determine language support.
12184
121852008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12186
12187 * sysdep.c (cfsetspeed): New fun extracted from the code.
12188 (cfmakeraw): Move before first use.
12189
121902008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12191
12192 * sysdep.c (cfmakeraw): Provide fallback implementation.
12193 (serial_configure): Provide fallback implementation of cfsetspeed.
12194
121952008-06-20 Kenichi Handa <handa@m17n.org>
12196
12197 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12198 the pattern.
12199
12200 * fontset.c (fontset_from_font): Copy font_spec before changing
12201 the elements.
12202
12203 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12204
122052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12206
12207 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12208 for explicit `font' parameters.
12209
12210 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12211
122122008-06-19 Kenichi Handa <handa@m17n.org>
12213
12214 * frame.c: Include <ctype.h>.
12215 (x_set_font_backend): Allow spacing characters in the X resource
12216 for FontBackend.
12217
122182008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12219
12220 * w32fns.c, xfns.c (Qfont_param): New var.
12221 (syms_of_w32fns): Initialize it.
12222 (x_default_font_parameter): Record explicit `font' into
12223 `font-parameter'.
12224
122252008-06-18 Kenichi Handa <handa@m17n.org>
12226
12227 * font.c (font_parse_xlfd): Fix previous change.
12228 (font_parse_fcname): Don't use :fc-unknown-spec.
12229 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12230 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12231 (font_add_log): Prepend the driver name to the resulting fonts.
12232
12233 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12234 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12235 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12236
12237 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12238 (QCembolden): New variables.
12239 (syms_of_xftfont): DEFSYM them.
12240 (xftfont_open): Call XftFontMatch. Don't trust the result of
12241 XftTextExtents8 if the pixel_size is less than 5.
12242
122432008-06-18 Andreas Schwab <schwab@suse.de>
12244
12245 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12246 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12247
122482008-06-18 Jason Rumney <jasonr@gnu.org>
12249
12250 * w32font.c (w32font_list, w32font_match): Add logging.
12251
12252 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12253
122542008-06-17 Chong Yidong <cyd@stupidchicken.com>
12255
12256 * font.c (font_parse_fcname): Store divider characters for
12257 unknown-spec list. For known key symbols, intern using correct
12258 symbol name.
12259
122602008-06-17 Kenichi Handa <handa@m17n.org>
12261
12262 * xfaces.c (realize_default_face): If the frame is not on window
12263 system, set the fontset of face to nil.
12264
122652008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12266
12267 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12268
122692008-06-16 Juanma Barranquero <lekktu@gmail.com>
12270
12271 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12272 (build_font_name_from_vector): Delete externs.
12273
12274 * xfaces.c (struct font_name): Don't declare.
12275
122762008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12277
12278 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12279
122802008-06-16 Chong Yidong <cyd@stupidchicken.com>
12281
12282 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12283
122842008-06-16 Juanma Barranquero <lekktu@gmail.com>
12285
12286 * font.c (Ffont_spec): Fix usage in docstring.
12287 (Ffont_face_attributes): Doc fix.
12288
122892008-06-16 Andreas Schwab <schwab@suse.de>
12290
12291 * font.c (Ffont_face_attributes): Fix definition.
12292
122932008-06-16 Jason Rumney <jasonr@gnu.org>
12294
12295 * font.h (font_style_symbolic_from_value): Remove.
12296
12297 * font.c (font_style_symbolic_from_value): Remove.
12298 (font_style_symbolic): Revert to pre 2008-06-13 version.
12299
12300 * w32font.c (w32_to_fc_weight): New function.
12301 (w32font_full_name, logfont_to_fcname): Use it.
12302
123032008-06-16 Kenichi Handa <handa@m17n.org>
12304
12305 * font.c (font_check_object): Delete it.
12306 (font_clear_cache): Check if a font-object is alive.
12307 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12308 font-object to nil.
12309 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12310 (font_at): Don't call font_check_object.
12311 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12312
123132008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12314
12315 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12316
123172008-06-16 Chong Yidong <cyd@stupidchicken.com>
12318
12319 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12320
123212008-06-15 Chong Yidong <cyd@stupidchicken.com>
12322
12323 * font.c (font_parse_fcname): Only one decimal point.
12324 (font_unparse_fcname): Handle data in family and foundry indices
12325 as symbols, not strings.
12326 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12327
12328 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12329
12330 * font.h (font_unparse_gtkname): Add prototype.
12331
123322008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12333
12334 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12335
123362008-06-15 Andreas Schwab <schwab@suse.de>
12337
12338 * font.c (font_update_drivers): Fix crash when no drivers match.
12339
123402008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12341
12342 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12343 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12344
123452008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12346
12347 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12348
123492008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12350
12351 * process.c (Fserial_process_configure, Fprocess_send_eof):
12352 Use EQ to compare Lisp_Objects.
12353
123542008-06-13 Jason Rumney <jasonr@gnu.org>
12355
12356 * w32fns.c (Fw32_select_font): Remove old font API function.
12357
12358 * w32font.c (logfont_to_fcname): New function.
12359 (Fx_select_font): New font dialog function compatible with
12360 GTK/fontconfig version.
12361
12362 * font.c (font_style_symbolic_from_value): New function.
12363 (font_style_symbolic): Use it.
12364
12365 * font.h (font_style_symbolic_from_value): Declare new function.
12366
123672008-06-13 Juanma Barranquero <lekktu@gmail.com>
12368
12369 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12370 <font-width-table>: Fix typos in docstrings.
12371
123722008-06-13 Daniel Engeler <engeler@gmail.com>
12373
12374 These changes add serial port access.
12375 * process.c: Add HAVE_SERIAL.
12376 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12377 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12378 (list_processes_1, select_wrapper, Fstop_process)
12379 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12380 (status_notify): Modify to handle serial processes.
12381 [HAVE_SERIAL] (Fserial_process_configure)
12382 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12383 New functions.
12384 * process.h (struct Lisp_Process): Add `type'.
12385 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12386 New functions.
12387 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12388 serial ports.
b71ac3dd 12389 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12390 * w32.h: Add FILE_SERIAL.
12391 (struct _child_process): Add ovl_read, ovl_write.
12392
123932008-06-13 Kenichi Handa <handa@m17n.org>
12394
12395 * dispextern.h (enum lface_attribute_index): New member
12396 LFACE_FOUNDRY_INDEX.
12397
12398 * font.c (font_score): Delete arg alternate_families. Check only
12399 weight, slant, width, and size. Ignore the difference of alias
12400 style symbols.
12401 (font_sort_entites): Adjust for the above change. Reflect the
12402 order of font-driver to scores.
12403 (font_list_entities): Don't check alternate_familes here.
12404 (font_clear_prop): Handle foundry.
12405 (font_update_lface): Don't parse "foundry-family" form here.
12406 Handle FONT_FOUNDRY_INDEX.
12407 (font_find_for_lface): Likewise. Handle alternate families here.
12408 If registry is nil, try iso8859-1 and ascii-0.
12409 (font_open_for_lface): Pay attention to size in ENTITY.
12410 (font_open_by_name): Simplify by calling font_load_for_lface.
12411 (free_font_driver_list): Delete it.
12412 (font_update_drivers): Preserve the order of backends.
12413 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12414 of font_score and font_sort_entites.
12415 (font_update_sort_order): Likewise.
12416
12417 * xfaces.c (LFACE_FOUNDRY): New macro.
12418 (check_lface_attrs): Check foundry.
12419 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12420 (merge_face_vectors): Check foundry.
12421 (merge_face_ref): Likewise.
12422 (Finternal_set_lisp_face_attribute): Likewise.
12423 (x_update_menu_appearance): Likewise.
12424 (Finternal_get_lisp_face_attribute): Likewise.
12425 (lface_hash): Likewise.
12426 (lface_same_font_attributes_p): Likewise.
12427 (x_supports_face_attributes_p): Likewise.
12428 (tty_supports_face_attributes_p): Likewise.
12429 (Finternal_set_alternative_font_family_alist): Intern strings.
12430 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12431 (realize_default_face): Set LFACE_FOUNDRY (lface).
12432
12433 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12434 font-driver at first.
12435
12436 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12437
124382008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12439
12440 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12441
124422008-06-12 Jim Meyering <meyering@redhat.com>
12443
12444 Make unexec_free handle NULL the same way free does.
12445 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12446
124472008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12448
12449 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12450 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12451 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12452 (WEAK_ALIAS): Simplify.
12453 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12454 when searching a unibyte buffer.
12455
124562008-06-12 Chong Yidong <cyd@stupidchicken.com>
12457
12458 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12459
124602008-06-12 Juanma Barranquero <lekktu@gmail.com>
12461
12462 * w32font.c: Include ctype.h.
12463
124642008-06-11 Jason Rumney <jasonr@gnu.org>
12465
12466 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12467 misreported as space.
12468 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12469 as aliases for registry iso10646-1.
12470
124712008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12472
12473 * buffer.c (clone_per_buffer_values): Skip `name'.
12474
124752008-06-11 Chong Yidong <cyd@stupidchicken.com>
12476
12477 * font.c (font_parse_fcname): Fix last change; accept decimal
12478 points in font size.
12479
124802008-06-10 Jason Rumney <jasonr@gnu.org>
12481
12482 * w32uniscribe.c (add_opentype_font_name_to_list):
12483 Skip non unicode fonts.
12484
124852008-06-10 Chong Yidong <cyd@stupidchicken.com>
12486
12487 * xfns.c (Fx_font_dialog): New function.
12488
12489 * gtkutil.c (xg_dialog_response_cb): Rename from
12490 xg_file_response_callback.
12491 (pop_down_dialog): Rename from pop_down_file_dialog.
12492 (xg_get_file_name): Callers changed.
12493 (xg_get_font_name): New function.
12494
12495 * gtkutil.h (xg_get_font_name): Insert prototype.
12496
124972008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12498
12499 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12500 x_underline_minimum_display_offset.
12501 (syms_of_xdisp): Declare it here rather than in xterm.c.
12502 * dispextern.h (underline_minimum_offset): Declare it.
12503 * w32term.c (x_draw_glyph_string): Use it.
12504 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12505 (syms_of_xterm): Don't declare it any more.
12506 (x_draw_glyph_string): Adjust to the new name.
12507
8719abec 125082008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12509
12510 * xterm.c (x_underline_minimum_display_offset): New var.
12511 (x_draw_glyph_string): Use it.
12512 (syms_of_xterm): Declare it.
12513
125142008-06-10 Chong Yidong <cyd@stupidchicken.com>
12515
12516 * font.c (font_parse_fcname): Accept GTK-style font names too.
12517
125182008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12519
12520 * dired.c (file_name_completion): Don't return t if the match is exact
12521 but with different capitalization.
12522 * minibuf.c (Ftry_completion): Simplify.
12523
12524 * window.c (Vwindow_point_insertion_type): New var.
12525 (set_window_buffer): Use it.
12526 (syms_of_window): Init and export it to Lisp.
12527
125282008-06-10 Kenichi Handa <handa@m17n.org>
12529
12530 * font.h (font_intern_prop): Prototype adjusted.
12531
12532 * font.c (font_intern_prop): New arg force_symbol.
12533 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12534 Adjust for the change of font_intern_prop.
12535
12536 * ftfont.c (ftfont_pattern_entity):
12537 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12538 (w32_registry):
12539 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12540 the change of font_intern_prop.
12541
125422008-06-09 Juanma Barranquero <lekktu@gmail.com>
12543
12544 * w32menu.c (digest_single_submenu): Declare extern.
12545
125462008-06-09 Jason Rumney <jasonr@gnu.org>
12547
12548 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12549
12550 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12551 (parse_single_submenu): Remove.
12552 (digest_single_submenu): Remove.
12553 (syms_of_w32menu): Don't initialise variables that have moved
12554 to menu.c.
12555 (set_frame_menubar): Sync with version in xmenu.c.
12556 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12557
12558 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12559 Make static again.
12560
125612008-06-09 Jason Rumney <jasonr@gnu.org>
12562
12563 Changes to w32 files related to the move of common menu code
12564 to menu.c on 2008-06-08 by Chong Yidong.
12565
12566 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12567 defs to w32gui.h.
12568 (single_keymap_panes, push_menu_item, push_menu_pane):
12569 Make globally visible.
12570
12571 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12572 (local_free, malloc_widget_value, free_widget_value)
12573 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12574 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12575 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12576 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12577 (menu_items, menu_items_allocated, menu_items_used)
12578 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12579 (init_menu_items, finish_menu_items, discard_menu_items)
12580 (grow_menu_items, push_submenu_start, push_submenu_end)
12581 (push_left_right_boundary, push_menu_pane, push_menu_item)
12582 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12583 (free_menubar_widget_tree_value, parse_single_submenu)
12584 (update_submenu_strings): Remove functions.
12585 (xmalloc_widget_value): Remove and declare extern.
12586
12587 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12588 (OBJ1): Build it.
12589
12590 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12591 (local_heap, local_alloc, local_free, malloc_widget_value)
12592 (free_widget_value): Define here.
12593
125942008-06-09 Kenichi Handa <handa@m17n.org>
12595
12596 * font.h (Qascii_0): Extern it.
12597
12598 * font.c (Qascii_0): New variable.
12599 (syms_of_font): DEFSYM it.
12600 (font_open_by_name): If the registry "iso8859-1" fails, try also
12601 "ascii-0".
12602
12603 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12604
126052008-06-08 Kenichi Handa <handa@m17n.org>
12606
12607 * .gdbinit (xfont): New command.
12608
126092008-06-08 Andreas Schwab <schwab@suse.de>
12610
12611 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12612 * Makefile.in (menu.o): Update dependencies.
12613
12614 * Makefile.in (obj): Always add menu.o.
12615 * emacs.c (main): Always call syms_of_menu.
12616 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12617
126182008-06-08 Chong Yidong <cyd@stupidchicken.com>
12619
12620 * Makefile.in: Compile menu.c.
12621
12622 * lisp.h: Declare syms_of_menu.
12623
12624 * emacs.c (main): Call syms_of_menu.
12625
12626 * keyboard.h: Relocate platform-independent menu definitions from
12627 xmenu.c.
12628
12629 * menu.c: New file. Relocate platform-independent menu
12630 definitions from xmenu.c. Suggested by Adrian Robert.
12631
12632 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12633 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12634 (menu_items_used, menu_items_n_panes)
12635 (menu_items_submenu_depth): Move to keyboard.h.
12636 (init_menu_items, finish_menu_items, unuse_menu_items)
12637 (discard_menu_items, restore_menu_items, save_menu_items)
12638 (grow_menu_items, push_submenu_start, push_submenu_end)
12639 (push_left_right_boundary, push_menu_pane, push_menu_item)
12640 (keymap_panes, single_keymap_panes, single_menu_item)
12641 (list_of_panes, list_of_items, find_and_call_menu_selection)
12642 (xmalloc_widget_value, free_menubar_widget_value_tree)
12643 (parse_single_submenu, digest_single_submenu)
12644 (update_submenu_strings): Move to menu.c.
12645
126462008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12647
12648 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12649
126502008-06-06 Miles Bader <miles@gnu.org>
12651
12652 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12653 face, not frame default.
12654
126552008-06-05 Martin Rudalics <rudalics@gmx.at>
12656
12657 * window.c (pop_up_windows, pop_up_frames)
12658 (display_buffer_reuse_frames, Vpop_up_frame_function)
12659 (Vdisplay_buffer_function, Veven_window_heights)
12660 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12661 (Vspecial_display_function, Vsame_window_buffer_names)
12662 (Vsame_window_regexps, split_height_threshold)
12663 (Vsplit_window_preferred_function): Move those vars to window.el.
12664 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12665 (Fdisplay_buffer): Move those functions to window.el.
12666 (syms_of_window): Remove corresponding declarations.
12667 (display_buffer): New function.
12668 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12669 * dispnew.c (Flast_nonminibuf_frame): New function.
12670 * buffer.c (Fpop_to_buffer): Move to window.el.
12671
126722008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12673
12674 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12675
126762008-06-05 Kenichi Handa <handa@m17n.org>
12677
12678 * coding.c (detect_coding): Fix previous change.
12679 (detect_coding_system): Likewise.
12680
126812008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12682
12683 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12684
12685 * keymap.c (Vminibuffer_local_filename_must_match_map):
12686 Rename from Vminibuffer_local_must_match_filename_map.
12687 (syms_of_keymap):
12688 * minibuf.c (Fcompleting_read): Adjust accordingly.
12689 * commands.h: Rename declaration as well.
12690
126912008-06-05 Kenichi Handa <handa@m17n.org>
12692
12693 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12694 family name.
12695 (Ffont_put): Likewise.
12696
12697 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12698 current font-spec.
12699
12700 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12701 is unspecified.
12702
12703 * xfaces.c (realize_x_face): If the font-related face attributes
12704 are the same as those of default face, realize a new fontset from
12705 default->fontset.
12706 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12707
127082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12709
12710 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12711 (move_it_in_display_line): New wrapper.
12712
12713 * window.c (window_scroll_pixel_based_preserve_x)
12714 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12715 (window_scroll_pixel_based, window_scroll_line_based):
12716 Use them to preserve column positions.
12717 (syms_of_window): Initialize them.
12718
12719 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12720 (HPOS . VPOS) pair.
12721
12722 * dispextern.h (move_it_in_display_line): Declare.
12723
127242008-06-05 Juanma Barranquero <lekktu@gmail.com>
12725
12726 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12727 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12728 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12729
127302008-06-04 Juanma Barranquero <lekktu@gmail.com>
12731
12732 * window.c (Fset_window_parameter): Doc fix.
12733 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12734
127352008-06-04 Joakim Verona <joakim@verona.se>
12736
12737 * window.h (struct window): Add new member window_parameters.
12738
12739 * window.c (Fwindow_parameters, Fwindow_parameter)
12740 (Fset_window_parameter): New defuns.
12741 (syms_of_window): Defsubr the new defuns.
12742 (make_window): Initialize window_parameters to nil.
12743
127442008-06-04 John Paul Wallington <jpw@pobox.com>
12745
12746 * eval.c (Fdefmacro): Doc fix.
12747
127482008-06-04 Kenichi Handa <handa@m17n.org>
12749
12750 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12751 Be sure to call setup_coding_system when we find a proper coding system.
12752 (detect_coding_system): Fix handling of coding->head_ascii.
12753
127542008-06-03 Andreas Schwab <schwab@suse.de>
12755
12756 * font.c (font_prop_validate_spacing): Fix last change.
12757
127582008-06-03 Kenichi Handa <handa@m17n.org>
12759
12760 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12761 (font_parse_fcname): Fix handling of unknown key.
12762
12763 * xfont.c (xfont_list): Try an alias.
12764
12765 * charset.c (char_charset): Return NULL if the arg charset_list is
12766 specified and C doesn't belong to any of them.
12767
127682008-06-02 Chip Coldwell <coldwell@redhat.com>
12769
12770 * font.c (font_pixel_size): Don't take cdr of an integer.
12771
127722008-06-02 Jim Meyering <meyering@redhat.com>
12773
12774 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12775 * alloc.c (xfree): Return right away for a NULL arg.
12776 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12777 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12778 * mac.c (create_apple_event_from_event_ref): Likewise.
12779 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12780 Likewise.
12781 * doprnt.c (doprnt1): Likewise.
12782 * frame.c (frame): Likewise.
12783 * keyboard.c (wipe_kboard): Likewise.
12784 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12785 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12786 * term.c (tty_default_color_capabilities, maybe_fatal)
12787 (delete_tty): Likewise.
12788 * w16select.c (string): Likewise.
12789 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12790 * w32bdf.c (w32_free_bdf_font): Likewise.
12791 * w32fns.c (w32_unload_font): Likewise.
12792 * w32font.c (w32font_close): Likewise.
12793 * window.c (size_window): Likewise.
12794 * xselect.c (receive_incremental_selection): Likewise.
12795 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12796 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12797 * w32.c (stat): Likewise.
12798
12799 Remove useless if-before-free tests.
12800 * editfns.c (Fset_time_zone_rule): Likewise.
12801 * lread.c (nosuffix): Likewise.
12802 * ralloc.c (get_bloc): Likewise.
12803 * regex.c (reg_free): Likewise.
12804 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12805 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12806 * xsmfns.c (smc_save_yourself_CB): Likewise.
12807
128082008-06-02 Kenichi Handa <handa@m17n.org>
12809
12810 * font.c (font_find_for_lface): Handle float font size.
12811 (font_open_for_lface): Likewise.
12812
12813 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12814 comparing the properties.
12815
128162008-06-01 Jason Rumney <jasonr@gnu.org>
12817
12818 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12819 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12820 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12821 Don't add empty script list.
12822 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12823
128242008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12825
12826 * Makefile.in (dot, dotdot): Remove, update users.
12827 ".." has been used elsewhere in the file for a long time.
12828 (LIBXT_STATIC): Remove conditional based on unused variable.
12829
128302008-06-01 Miles Bader <miles@gnu.org>
12831
12832 * xfaces.c (Vface_remapping_alist): New variable.
12833 (syms_of_xfaces): Initialize it.
12834 (enum named_merge_point_kind): New type.
12835 (struct named_merge_point): Add `named_merge_point_kind' field.
12836 (push_named_merge_point): Make cycle detection respect different
12837 named-merge-point kinds.
12838 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12839 Remove face-name alias resolution.
12840 (lface_from_face_name): New definition using
12841 `lface_from_face_name_no_resolve'.
12842 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12843 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12844 (get_lface_attributes): New definition that layers face-remapping on
12845 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12846 (lookup_basic_face): New function.
12847 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12848 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12849 `get_lface_attributes'.
12850 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12851 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12852 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12853
12854 * xdisp.c (init_iterator): Pass base_face_id through
12855 `lookup_basic_face' when we actually use it as a face-id.
12856 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12857 DEFAULT_FACE_ID.
12858
12859 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12860 lookup the initial face-id.
12861
12862 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12863
128642008-06-01 Juanma Barranquero <lekktu@gmail.com>
12865
12866 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12867 (Fremove_text_properties): Fix typos in docstrings.
12868
128692008-05-31 Kenichi Handa <handa@m17n.org>
12870
12871 * font.c (font_list_entities): Fix the car part of data to be
12872 stored in the cache.
12873
12874 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12875
128762008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12877
12878 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12879 Add a `test' argument so another predicate than `equal' can be used.
12880 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12881 (map_char_table): Remove unused vars `c' and `i'.
12882 * lisp.h (Foptimize_char_table): Adjust declaration.
12883 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12884
128852008-05-30 Kenichi Handa <handa@m17n.org>
12886
12887 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12888 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12889 defined.
12890
128912008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12892
12893 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12894 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12895 frame-local settings for the same variable.
12896
128972008-05-30 Kenichi Handa <handa@m17n.org>
12898
12899 * fontset.c (Ffont_info): Move to font.c.
12900 (syms_of_fontset): Delete defsubr of Sfont_info.
12901
12902 * font.c (font_style_to_value, font_score): Delete casting of the
12903 args to xstcasecmp.
12904 (register_font_driver): Increment num_font_drivers only when
12905 registering the driver globally.
12906 (Ffont_info): Move from fontset.c. Handle a font object too.
12907 (syms_of_font): Defsubr Sfont_info.
12908
129092008-05-29 Kenichi Handa <handa@m17n.org>
12910
12911 * coding.h (enum define_coding_utf8_arg_index): New enum.
12912 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12913 coding_attr_utf_bom.
12914 (enum utf_bom_type): Rename from utf_16_bom_type.
12915 (struct utf_16_spec): Adjust for the above change.
12916 (struct coding_system): Add utf_8_bom in `spec' union.
12917
12918 * coding.c (CODING_UTF_8_BOM): New macro.
12919 (enum coding_category): Delete coding_category_utf_8, add
12920 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12921 coding_category_utf_8_sig.
12922 (CATEGORY_MASK_UTF_8): Delete it.
12923 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12924 (CATEGORY_MASK_UTF_8_SIG): New macros.
12925 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12926 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12927 CATEGORY_MASK_UTF_8_SIG.
12928 (CATEGORY_MASK_UTF_8): New macro.
12929 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12930 (detect_coding_utf_8): Check BOM.
12931 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12932 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12933 (encode_coding_utf_16): Likewise.
12934 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12935 (detect_coding, detect_coding_system): Handle utf-8-auto.
12936 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12937 (syms_of_coding): Fix setting up of Vcoding_category_table.
12938
129392008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12940
12941 * process.c (Faccept_process_output): If `millisec' is non-nil,
12942 `seconds' default to 0.
12943 (wait_reading_process_output): Also return non-nil if we read output
12944 from a non-running process.
12945
129462008-05-29 Jason Rumney <jasonr@gnu.org>
12947
12948 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12949 `raster' specified.
12950 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12951 in the uniscribe backend, but disallow any font that has no
12952 unicode subrange support.
12953
129542008-05-29 Juanma Barranquero <lekktu@gmail.com>
12955
12956 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12957 Fix typos in docstrings.
12958
129592008-05-29 Kenichi Handa <handa@m17n.org>
12960
12961 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12962 (Fx_family_fonts): Set frame correctly.
12963
129642008-05-28 Jason Rumney <jasonr@gnu.org>
12965
12966 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12967
129682008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12969
12970 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12971 calling build_annotations.
12972
129732008-05-28 Juanma Barranquero <lekktu@gmail.com>
12974
12975 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12976 (Fencode_coding_string):
12977 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12978 <latin-extra-code-table>: Fix typos in docstrings.
12979 (syms_of_coding) <coding-system-alist>: Doc fix.
12980 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12981
129822008-05-28 Kenichi Handa <handa@m17n.org>
12983
12984 * fontset.c (Ffont_info): Don't call font_close_object.
12985
12986 * font.c (font_parse_family_registry): Use Ffont_put to validate
12987 foundry and family.
12988 (font_delete_unmatched): Don't check spacing.
12989 (font_list_entities): Add spacing to the spec to list fonts.
12990
12991 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12992 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12993
12994 * coding.c (encode_coding_raw_text): Fix previous change.
12995 (encode_coding_object): When the dst_object is a buffer and is
12996 different from src_object, move gap to PT.
12997
129982008-05-27 Chong Yidong <cyd@stupidchicken.com>
12999
13000 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13001
130022008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13003
13004 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13005 all branches. Compute it differently.
13006
13007 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13008
130092008-05-27 Juanma Barranquero <lekktu@gmail.com>
13010
13011 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13012 into "else if () ... else ...".
13013
130142008-05-27 Jason Rumney <jasonr@gnu.org>
13015
13016 * w32font.c (w32font_open_internal): Determine if glyph indices
13017 are likely to work here.
13018
130192008-05-27 Chong Yidong <cyd@stupidchicken.com>
13020
13021 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13022 draw overlap glyphs with appropriate highlighting.
13023
130242008-05-27 Kenichi Handa <handa@m17n.org>
13025
13026 * xfont.c (xfont_open): Fix calculation of font->average_width.
13027
130282008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13029
13030 * casefiddle.c (casify_object): Try to guess better whether the
13031 argument is a byte or a char.
13032
130332008-05-26 Andreas Schwab <schwab@suse.de>
13034
13035 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13036 Always send multiples of format size.
13037
13038 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13039
130402008-05-26 Jason Rumney <jasonr@gnu.org>
13041
13042 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13043 (compute_metrics): Don't set failure if we just cleared the cache.
13044 (w32_weight_table): Remove unused variable.
13045 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13046 backwards compatibility.
13047
130482008-05-25 Kenichi Handa <handa@m17n.org>
13049
13050 * w32term.c (x_draw_glyph_string):
13051 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13052
13053 * xfaces.c: Delete unused function prototypes.
13054 (xstrlwr, font_frame): Delete them.
13055 (clear_face_cache): Delete unused variable.
13056
13057 * xftfont.c (xftfont_open): Delete unused variable.
13058 If underline_thickness is not 1, adjust underline_position.
13059
13060 * ftxfont.c (ftxfont_open): Delete unused variable.
13061
13062 * fontset.c (face_for_char): Optimize for the case of no charset
13063 property.
13064
13065 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13066 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13067 (otf_open, font_otf_capability, generate_otf_features)
13068 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13069 Comment out by surrounding "#if 0" and "#endif" for the moment.
13070 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13071 (syms_of_font): Codes for accessing above commented out.
13072
130732008-05-24 Eli Zaretskii <eliz@gnu.org>
13074
13075 * w32proc.c: Include dispextern.h.
13076
13077 * w32.c: Include dispextern.h.
13078
130792008-05-23 Juanma Barranquero <lekktu@gmail.com>
13080
13081 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13082 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13083 Fix typos in docstrings.
13084
130852008-05-23 Jason Rumney <jasonr@gnu.org>
13086
13087 * xsmfns.c: Remove includes that are already included by config.h.
13088
130892008-05-23 Kenichi Handa <handa@m17n.org>
13090
13091 * charset.c (Qemacs, charset_emacs): New variables.
13092 (char_charset): Fix for non-Unicode characters.
13093 (syms_of_charset): Define charset_emacs.
13094
13095 * w32term.c (x_draw_glyph_string): Be sure to update
13096 s->underline_thickness and s->underline_position. Be sure to draw
13097 underline within the current line area.
13098
13099 * xterm.c (x_draw_glyph_string): Be sure to update
13100 s->underline_thickness and s->underline_position. Be sure to draw
13101 underline within the current line area.
13102
13103 * fontset.c: Delete unused variables and add casting for char *
13104 throughout the file.
13105 (fontset_font): Try the fallback fonts of the current fontset
13106 before consulting the default fontset.
13107
13108 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13109
13110 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13111
131122008-05-22 Jason Rumney <jasonr@gnu.org>
13113
13114 * font.c: Don't include strings.h.
13115
13116 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13117
13118 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13119 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13120 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13121 to call xstrcasecmp.
13122
13123 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13124
13125 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13126
13127 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13128
13129 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13130
131312008-05-22 Kenichi Handa <handa@m17n.org>
13132
13133 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13134
13135 * font.c (font_prop_validate_style): Adjust for the format
13136 change of font_style_table.
13137
13138 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13139 two args.
13140
13141 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13142 two args.
13143
131442008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13145
13146 * minibuf.c (keys_of_minibuf): Delete.
13147 * lisp.h (keys_of_minibuf): Delete.
13148 * emacs.c (main): Don't call keys_of_minibuf.
13149
131502008-05-22 Kenichi Handa <handa@m17n.org>
13151
13152 * ftfont.c (ftfont_resolve_generic_family): Rename from
13153 ftfont_list_generic_family. Return a single family for each
13154 generic family.
13155 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13156 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13157 Call font_add_log.
13158 (ftfont_match): Call font_add_log.
13159
13160 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13161 (FONT_DEBUG): Define it.
13162 (font_add_log): Extern it.
13163 (font_assert): Rename from xassert.
13164
13165 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13166 (xfont_list_family): Call font_add_log.
13167 (xfont_match): Likewise.
13168 (memq_no_quit): Delete.
13169
13170 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13171 call of Ffont_xlfd_name.
13172
13173 * xfaces.c (struct table_entry, slant_table, weight_table)
13174 (swidth_table): Move to font.c.
13175
13176 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13177 xassert are changed to font_assert. Delete many unused variables.
13178 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13179 New variables.
13180 (struct table_entry): Move from xfaces.c and modified.
13181 (weight_table, slant_table, width_table): Move from xfaces.c and
13182 contents adjusted for the change of struct table_entry.
13183 (font_style_to_value, font_style_symbolic): Adjust for the
13184 format change of font_style_table.
13185 (font_parse_family_registry): Don't overwrite existing foundry and
13186 family of font_spec.
13187 (font_score): Fix calculation of diff for sizes.
13188 (font_sort_entites): Call font_add_log.
13189 (font_delete_unmatched): Return a newly created list.
13190 (font_list_entities): Fix previous change. Call font_add_log.
13191 (font_matching_entity, font_open_entity, font_close_entity):
13192 Call font_add_log.
13193 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13194 (Finternal_set_font_style_table): Delete.
13195 (BUILD_STYLE_TABLE): New macro.
13196 (build_style_table): New function.
13197 (Vfont_log, font_log_env_checked): New variables.
13198 (font_add_log): New function.
13199 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13200 Declare Lisp variables "font-weight-table", "font-slant-table",
13201 "font-width-table", and "font-log". Initialize font_style_table.
13202
132032008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13204
13205 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13206
132072008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13208 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13209
13210 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13211 (Vframe_alpha_lower_limit): New variable.
13212 (x_set_alpha): New function.
13213
13214 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13215
13216 * xfns.c (x-create-frame, Qalpha):
13217 Initialize the frame parameter `alpha'.
13218 * xterm.c (OPAQUE, OPACITY): New.
13219 (x_set_frame_alpha): New function.
13220 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13221
13222 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13223 * w32fns.c (w32_frame_parm_handlers): Likewise.
13224
132252008-05-20 Jason Rumney <jasonr@gnu.org>
13226
13227 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13228 truetype fonts to opentype list.
13229
132302008-05-20 Juanma Barranquero <lekktu@gmail.com>
13231
13232 * fontset.c (Ffontset_info): Doc fix.
13233 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13234 <ignore-relative-composition>: Fix typos in docstrings.
13235
13236 * font.c (syms-of-font) <font-encoding-alist>:
13237 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13238 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13239 (Ffont_otf_alternates): Doc fixes.
13240
132412008-05-20 Kenichi Handa <handa@m17n.org>
13242
13243 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13244 font.h through out the file.
13245 (FONT_DRIVERS): Rename from FONTOBJ.
13246 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13247 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13248
13249 * emacs.c (main): Call syms_of_font unconditionally.
13250
13251 * font.h (find_font_encoding): Extern it.
13252
13253 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13254 fontset.c.
194d44e7 13255 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13256 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13257 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13258 only when HAVE_WINDOW_SYSTEM is defined.
13259 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13260 when HAVE_WINDOW_SYSTEM is defined.
13261
13262 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13263 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13264
13265 * xfaces.c: Include font.h unconditionally.
13266 (merge_face_ref, merge_face_vectors)
13267 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13268
132692008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13270
13271 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13272 indirect_variable.
13273 * eval.c (lisp_indirect_variable): New fun.
13274 (Fuser_variable_p): Use it.
13275
132762008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13277
13278 * lisp.h (indirect_variable):
13279 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13280 Use Lisp_Symbol pointers rather than Lisp_Object.
13281 Adjust callers.
13282 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13283 To this end, change calling-convention.
13284
13285 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13286 if some non-hidden buffers are selected by string&pred.
13287
132882008-05-19 Chong Yidong <cyd@stupidchicken.com>
13289
13290 * process.c (wait_reading_process_output): Always check status
13291 when in batch mode.
13292
132932008-05-19 Kenichi Handa <handa@m17n.org>
13294
13295 * font.c (font_list_entities): Fix handling of cache.
13296 (font_matching_entity): Likewise.
13297
13298 * ftfont.c (cs_iso8859_1): Delete.
13299 (ft_face_cache): New variable.
13300 (struct ftfont_info): New member fc_charset_idx.
13301 (ftfont_build_basic_charsets): Delete.
13302 (fc_charset_table): New variable.
13303 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13304 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13305 Callers changed.
13306 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13307 (ftfont_spec_pattern): New argument fc_charset_idx.
13308 Check registry more rigidly. Change callers.
13309 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13310 change of :font-entity property of the font.
13311
13312 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13313 property of the font.
13314
133152008-05-18 Juanma Barranquero <lekktu@gmail.com>
13316
13317 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13318 (Funencodable_char_position, Fcheck_coding_systems_region)
13319 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13320 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13321 (Ffind_operation_coding_system, Fset_coding_system_priority)
13322 (Fcoding_system_eol_type): Doc fixes.
13323
133242008-05-17 Glenn Morris <rgm@gnu.org>
13325
13326 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13327
133282008-05-16 Eli Zaretskii <eliz@gnu.org>
13329
13330 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13331 and st_gid.
13332
13333 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13334 HAVE_WINDOW_SYSTEM is not defined.
13335
13336 * xfaces.c (merge_face_ref, merge_face_vectors)
13337 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13338 HAVE_WINDOW_SYSTEM is defined.
13339 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13340
133412008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13342
13343 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13344
133452008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13346
13347 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13348
133492008-05-15 Kenichi Handa <handa@m17n.org>
13350
13351 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13352 preference.
13353
133542008-05-15 Glenn Morris <rgm@gnu.org>
13355
13356 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13357
133582008-05-15 Chong Yidong <cyd@stupidchicken.com>
13359
13360 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13361 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13362
13363 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13364
133652008-05-15 Kenichi Handa <handa@m17n.org>
13366
13367 * ftfont.c (ftfont_list): Downcase family name to check generic
13368 families.
13369
13370 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13371 font-spec for QCfont value.
13372
13373 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13374 buffer. Check the return value of it.
13375
133762008-05-14 Jason Rumney <jasonr@gnu.org>
13377
13378 * w32term.c (w32_get_glyph_overhangs): Remove.
13379 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13380
133812008-05-14 Kenichi Handa <handa@m17n.org>
13382
13383 * font.c (font_prop_validate): Make nil a valid value.
13384 (font_clear_cache): Check if the cached vector of entities is nil
13385 or not.
13386
133872008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13388
13389 * emacs.c (main_thread): Conditionalize on
13390 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13391 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13392
13393 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13394 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13395 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13396
133972008-05-14 Kenichi Handa <handa@m17n.org>
13398
13399 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13400 has no corresponding coding system.
13401
134022008-05-14 Jason Rumney <jasonr@gnu.org>
13403
13404 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13405
13406 * w32font.h (w32font_open_internal): Update declaration.
13407
13408 * w32font.c (w32font_open_internal): Change last argument from
13409 w32font_info struct to font object. Fill in font object from
13410 font_entity. Get Outline metrics if possible. Use them to
13411 calculate underline position and thickness. Use xlfd name as name
13412 property. Don't set codepage.
13413 (w32font_open): Pass font_object to w32font_open_internal. Don't
13414 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13415 (w32font_draw): Use s->font.
13416 (clear_cached_metrics): Don't clear non-existent blocks.
13417
13418 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13419 font was not found.
13420 (x_draw_glyph_string): Use underline position and thickness from font.
13421
13422 * w32uniscribe.c (uniscribe_open): Pass font_object to
13423 w32font_open_internal.
13424
134252008-05-14 Kenichi Handa <handa@m17n.org>
13426
13427 These changes are to delete all legacy font-handling codes, and
13428 make Emacs use only font-backends.
13429
13430 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13431 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13432
13433 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13434
13435 * charset.h (Vcharset_non_preferred_head)
13436 (Vcurrent_iso639_language): Extern them.
13437
13438 * charset.c (Vcharset_non_preferred_head): New variable.
13439 (Vcurrent_iso639_language): New variable.
13440 (syms_of_charset): Declare it as a Lisp variable.
13441 (char_charset): Don't check non preferred charsets. As a last
13442 resort, return charset_unicode.
13443 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13444
13445 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13446 conditionals. Don't check enable_font_backend. Delete all codes
13447 used only when USE_FONT_BACKEND is not defined.
13448
13449 * dispextern.h (struct glyph_string): Change type of `font' to
13450 `struct font *'.
13451 (struct glyph_string): New member underline_position and
13452 underline_thickness.
13453 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13454 (struct face): Change type of `font' to `struct font *'. Remove
13455 members `font_name', `font_info_id'.
13456 (per_char_metric, encode_char): Delete externs.
13457 (calc_pixel_width_or_height): Adjust the prototype.
13458
13459 * emacs.c (enable_font_backend): Delete extern.
13460 (main): Don't set enable_font_backend. Don't check the command
13461 line argument "-disable-font-backend".
13462
13463 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13464 (enum font_property_index): New members FONT_DPI_INDEX,
13465 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13466 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13467 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13468 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13469 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13470 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13471 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13472 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13473 (struct font_spec, struct font_entity): New structs.
13474 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13475 (struct font): Many members from old "struct font_info" moved to
13476 here. Members font and entity deleted.
13477 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13478 the new font-related objects.
13479 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13480 (CHECK_FONT_GET_OBJECT): Likewise.
13481 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13482 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13483 (struct font_driver): New members case_sensitive anc check. Type
13484 of the member list and open changed.
13485 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13486 (font_symbolic_width, font_find_object, font_get_spec)
13487 (font_set_lface_from_name): Delete extern.
13488 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13489
13490 * font.c: Include <strings.h>.
13491 (enable_font_backend): Delete it.
13492 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13493 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13494 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13495 (null_string): Delete it.
13496 (null_vector): Make it static.
13497 (font_family_alist): Delete it.
13498 (Qnormal): Extern it.
13499 (QCextra, QClanguage): Delete it.
13500 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13501 (font_make_spec, font_make_entity, font_make_object)
13502 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13503 the string. Callers changed.
13504 (font_pixel_size): Adjusted for the format change of font-related
13505 objects.
13506 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13507 (font_style_to_value, font_style_symbolic): New function.
13508 (build_font_family_alist): Delete it.
13509 (font_registry_charsets): Use Fassoc_string instead of
13510 assq_no_quit.
13511 (font_prop_validate_symbol): Don't return null_string.
13512 (font_prop_validate_style): Adjusted for the change of
13513 style-related values in a font vector.
13514 (font_property_table): Delete entries for QClanguage and
13515 QCantialias, add entries for QCavgwidth.
13516 (get_font_prop_index): Delete the 2nd argument FROM.
13517 (font_prop_validate): Arguments changed.
13518 (font_put_extra): Adjusted for the change of font-related objects.
13519 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13520 (font_parse_fcname, font_unparse_fcname)
13521 (font_prepare_composition): Likewise.
13522 (font_parse_family_registry): Renamed from font_merge_old_spec.
13523 (otf_open): Delete the 1st arg entity.
13524 (font_otf_capability): Adjusted for the above change.
13525 (font_score): New arg alternate_families. Adjusted for the change
13526 of font-related objects.
13527 (font_sort_entites): New arg best_only.
13528 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13529 Delete them.
13530 (font_match_p): Check alternate families.
13531 (font_find_object): Delete it.
13532 (font_check_object): New function.
13533 (font_clear_cache): Adjusted for the change of font-related objects.
13534 (font_delete_unmatched): New arg.
13535 (font_list_entities): Call font_driver->list with a spec that
13536 doesn't specify style-related properties.
13537 (font_matching_entity): Arguments changed. Caller changed.
13538 (font_open_entity): Adjusted for the change of font-related objects.
13539 (font_close_object, font_has_char, font_encode_char)
13540 (font_get_name, font_get_spec): Likewise.
13541 (font_spec_from_name, font_clear_prop, font_update_lface):
13542 New functions.
13543 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13544 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13545 (font_at): Adjusted for the change of font-related objects.
13546 (font_range): New function.
13547 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13548 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13549 (Fcopy_font_spec, Fmerge_font_spec): New function.
13550 (Ffont_family_list): Renamed from list-families.
13551 (Finternal_set_font_style_table): Arguments changed.
13552 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13553 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13554 change of font-related objects.
13555 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13556
13557 * fontset.h (struct font_info): Delete it. Most members go to
13558 struct font.
13559 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13560 (enum FONT_SPEC_INDEX): Delete it.
13561 (font_info, list_fonts_func, load_font_func, query_font_func)
13562 (set_frame_fontset_func, find_ccl_program_func)
13563 (get_font_repertory_func, new_fontset_from_font_name): Delete
13564 externs.
13565 (fontset_from_font_name): Extern it.
13566 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13567 (FONT_INFO_FROM_FACE): Deleted.
13568 (face_for_font): Adjust prototype.
13569
13570 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13571 conditionals. Don't check enable_font_backend. Delete all codes
13572 used only when USE_FONT_BACKEND is not defined.
13573 (get_font_info_func, list_font_func, load_font_func)
13574 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13575 (get_font_repertory_func): Delete them.
13576 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13577 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13578 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13579 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13580 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13581 (fontset_compare_rfontdef): New function.
13582 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13583 rfont-defs by qsort. Adjusted for the change of font-group vector.
13584 (load_font_get_repertory): Deleted.
13585 (fontset_find_font): Use new macros to ref/set elements of
13586 font-def and rfont-def.
13587 (fontset_font): Fix the timing of remembering that no font for C.
13588 (free_face_fontset): Do nothing if the face has no fontset.
13589 (face_suitable_for_char_p): Use new macros to ref/set elements of
13590 rfont-def.
13591 (face_for_char): Likewise. Call face_for_char with font_object.
13592 (fs_load_font): Delete. Delete #pragma surrounding it.
13593 (fs_query_fontset): Use strcasecmp instead of strcmp.
13594 (generate_ascii_font_name): Adjusted for the format change of
13595 font-spec.
13596 (Fset_fontset_font): Likewise. Use new macros to set elements of
13597 font-def.
13598 (Fnew_fontset): Use font_unparse_xlfd to generate
13599 FONTSET_ASCII (fontset).
13600 (new_fontset_from_font_name): Deleted.
13601 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13602 a fontset is already created for the font. FIx updating of
13603 Vfontset_alias_alist.
13604 (fontset_ascii_font): Deleted.
13605 (Ffont_info): Adjusted for the format change of font-spec.
13606 (Finternal_char_font): Likewise.
13607 (Ffontset_info): Likewise.
13608 (syms_of_fontset): Don't check load_font_func.
13609
13610 * fns.c (internal_equal): Handle PREV_FONT.
13611
13612 * frame.h: Delete USE_FONT_BACKEND conditional.
13613
13614 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13615 conditionals. Don't check enable_font_backend. Delete all codes
13616 used only when USE_FONT_BACKEND is not defined.
13617 (x_set_font): Call x_new_font, not x_new_fontset2.
13618 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13619 already set for the frame.
13620
13621 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13622 a font-entity by font_make_entity. Use font_intern_prop instead
13623 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13624 font property. If a font is scalable, set avgwidth property to 0.
13625 Set font-entity property by font_put_extra.
13626 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13627 (ffont_driver): Adjusted for the change of struct font_driver.
13628 (ftfont_spec_pattern): New function.
13629 (ftfont_list): Return a list, not vector.
13630 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13631 (ftfont_list_family): Don't downcase names.
13632 (ftfont_free_entity): Deleted.
13633 (ftfont_open): Return a font-object. Adjusted for the change of
13634 struct font. Get underline_thickness and underline_position from
13635 font property. Don't update dpyinfo->smallest_font_height and
13636 dpyinfo->smallest_char_width.
13637 (ftfont_close): Don't free `struct font'.
13638 (ftfont_has_char): Adjusted for the format change of font-entity.
13639 (ftfont_encode_char, ftfont_text_extents): Likewise.
13640
13641 * ftxfont.c (ftxfont_list): Return a list, not vector.
13642 (ftxfont_open): Return a font-object. Adjusted for the change of
13643 struct font. Get underline_thickness and underline_position from
13644 font property. Don't update dpyinfo->smallest_font_height and
13645 dpyinfo->smallest_char_width.
13646 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13647 (ftxfont_draw): Adjusted for the change of struct font.
13648
13649 * image.c (image_ascent): Don't include "charset.h". Include
13650 "character.h" and "font.h".
13651
13652 * lisp.h (enum pvec_type): New member PREV_FONT.
13653 (Fassoc_string): EXFUN it.
13654
13655 * print.c: Include font.h.
13656 (print_object): Handle font-related objects.
13657
13658 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13659 conditionals. Don't check enable_font_backend. Delete all codes
13660 used only when USE_FONT_BACKEND is not defined.
13661 (handle_auto_composed_prop): Do nothing if it->f is not on a
13662 window system. Check how many following characters can be
13663 displayed by the same font.
13664 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13665 'struct font *'.
13666 (get_char_face_and_encoding): Assign the whole encoding task to
13667 the `encode-char' method of a font driver.
13668 (fill_composite_glyph_string): Adjusted for the change of `struct
13669 face' and `struct glyph_string'.
13670 (fill_glyph_string): Likewise.
13671 (get_per_char_metric): Arguments changed.
13672 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13673 and `struct glyph_string'.
13674 (produce_stretch_glyph, calc_line_height_property)
13675 (x_produce_glyphs): Likewise.
13676
13677 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13678 conditionals. Don't check enable_font_backend. Delete all codes
13679 used only when USE_FONT_BACKEND is not defined. Use
13680 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13681 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13682 (Qp): Extern them.
13683 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13684 Deleted.
13685 (struct font_name): Deleted.
13686 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13687 (compare_fonts_by_sort_order): New function.
13688 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13689 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13690 Deleted.
13691 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13692 compare_fonts_by_sort_order.
13693 (Fx_font_family_list): Call Ffont_family_list.
13694 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13695 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13696 (face_symbolic_slant, face_symbolic_swidth)
13697 (split_font_name_into_vector, build_font_name_from_vector)
13698 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13699 (font_rescale_ratio, split_font_name, build_font_name)
13700 (free_font_names, sort_fonts, x_face_list_fonts)
13701 (face_font_available_p, sorted_font_list, cmp_font_names)
13702 (font_list_1, concat_font_list, font_list, remove_duplicates):
13703 Deleted.
13704 (Fx_list_fonts): Use Ffont_list.
13705 (LFACE_AVGWIDTH): Deleted.
13706 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13707 by FONTP.
13708 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13709 (set_lface_from_font_name): Delete it.
13710 (set_lface_from_font): Renamed from
13711 set_lface_from_font_and_fontset. Caller changed. Don't set
13712 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13713 for face.
13714 (merge_face_vectors): Copy font-spec if necessary.
13715 Clear properties of the font-spec if necessary.
13716 (merge_face_ref): Clear properties of the font-spec if necessary.
13717 (Finternal_set_lisp_face_attribute): Likewise.
13718 (set_font_frame_param): Use font_load_for_lface to load a
13719 font-object, and call Fmodify_frame_parameters with it.
13720 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13721 font name by Ffont_xlfd_name.
13722 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13723 QCslant, and QCwidth.
13724 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13725 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13726 Compare fonts by EQ.
13727 (lookup_non_ascii_face): Deleted.
13728 (face_for_font): The 2nd argument changed.
13729 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13730 Check atomic font properties by case insensitive.
13731 (realize_non_ascii_face): Set face->overstrike correctly.
13732 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13733 (dump_realized_face): Get font name from
13734 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13735
13736 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13737 conditionals. Don't check enable_font_backend. Delete all codes
13738 used only when USE_FONT_BACKEND is not defined.
13739 (xic_create_xfontset): Original code deleted and renamed from
13740 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13741 (x_make_gc): Don't set GCFont in GCs.
13742 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13743 opened by "fixed".
13744 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13745 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13746 get_font_repertory_func.
13747
13748 * xfont.c: Include <stdlib.h> and "ccl.h".
13749 (struct xfont_info): New structure.
13750 (xfont_query_font): Deleted.
13751 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13752 moved from xterm.c.
13753 (xfont_driver): Adjusted for the change of struct font_driver.
13754 (compare_font_names): New function.
13755 (xfont_list_pattern): Sort font names case insensitively. Make
13756 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13757 (xfont_list): Return a list, not vector.
13758 (xfont_match): If the font doesn't have QCname property, generate
13759 a name from the other font properties.
13760 (xfont_open): Return a font-object. Adjusted for the change of
13761 struct font. Get underline_thickness and underline_position from
13762 font property. Don't update dpyinfo->smallest_font_height and
13763 dpyinfo->smallest_char_width.
13764 (xfont_close): Don't free struct font.
13765 (xfont_prepare_face): Adjusted for the change of struct font.
13766 (xfont_done_face): Deleted.
13767 (xfont_has_char): Adjusted for the change of struct font.
13768 (xfont_encode_char, xfont_draw): Likewise.
13769 (xfont_check): New function.
13770
13771 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13772 callback function.
13773 (xftfont_match): Adjusted for the format change of font-entity.
13774 (xftfont_open): Adjusted for the format change of font-entity and
13775 font-object. Adjusted for the change of struct font. Return a
13776 font-object. Don't update dpyinfo->smallest_font_height and
13777 dpyinfo->smallest_char_width.
13778 (xftfont_close): Block input while calling XftFontClose.
13779 (xftfont_prepare_face): Don't block input while calling
13780 xftfont_get_colors. Adjusted for the change of struct font.
13781 (xftfont_shape): Return value of error case fixed.
13782
13783 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13784
13785 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13786 conditionals.
13787 (FONT_WIDTH): Return (f)->max_width.
13788 (struct x_display_info): Delete member `font'.
13789 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13790 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13791 (struct x_output): Change type of `font' to `struct font *'.
13792
13793 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13794 conditionals. Don't check enable_font_backend. Delete all codes
13795 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13796 (x_per_char_metric, x_encode_char): Deleted.
13797 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13798 (x_compute_glyph_string_overhangs): Adjusted for the change of
13799 `struct face'.
13800 (x_draw_glyph_string_foreground)
13801 (x_draw_composite_glyph_string_foreground): Likewise.
13802 (x_draw_glyph_string): Likewise. Use font->underline_position and
13803 font->underline_thickness.
13804 (x_new_font): Renamed from x_new_fontset2.
13805 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13806 (x_check_font): Call `check' method of a font driver.
13807 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13808 (x_query_font, x_get_font_repertory): Deleted.
13809 (x_find_ccl_program): Renamed and moved to xfont.c.
13810 (x_redisplay_interface): Adjusted for the change of `struct
13811 redisplay_interface'.
13812
13813 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13814 conditionals. Don't check enable_font_backend. Delete all codes
13815 used only when USE_FONT_BACKEND is not defined. Surround non-used
13816 code by "#ifdef OLD_FONT" and "endif".
13817 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13818
13819 * w32font.h (struct w32font_info): New member.
13820 (FONT_COMPAT): New macro.
13821 (w32font_open_internal): Prototype adjusted.
13822
13823 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13824 OLD_FONT" and "endif".
13825
13826 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13827 conditionals. Don't check enable_font_backend. Delete all codes
13828 used only when USE_FONT_BACKEND is not defined.
13829 (w32font_open): Return a font-object. Make a font-object by
13830 font_make_object. Adjusted for the change of struct w32font_info.
13831 (w32font_close): Don't free struct font. Adjusted for the change
13832 of struct w32font_info.
13833 (w32font_encode_char, w32font_text_extents, w32font_draw):
13834 Adjusted for the change of struct w32font_info.
13835 (w32font_draw): Likewise.
13836 (w32font_list_internal): Return a list, not vector.
13837 (w32font_open_internal): Change the 4th arg to font-object.
13838 Adjusted for the change of struct w32font_info and font-object format.
13839 (add_font_name_to_list): Don't downcase names.
13840 (w32_enumfont_pattern_entity): Make a font-entity by
13841 font_make_entity. Adjusted for the format change of font-entity.
13842 Use FONT_SET_STYLE to set a style-related font property. If a
13843 font is scalable, set avgwidth property to 0. Set font-entity
13844 property by font_put_extra.
13845 (font_matches_spec): Adjusted for the format change of font-entity.
13846 (w32_weight_table, w32_decode_weight): New variables.
13847 (w32_encode_weight): New function.
13848 (fill_in_logfont): Adjusted for the format change of font-spec.
13849 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13850 weight value.
13851 (w32font_driver): Adjusted for the change of struct font_driver.
13852
13853 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13854 conditionals. Don't check enable_font_backend. Surround non-used
13855 code by "#ifdef OLD_FONT" and "endif".
13856 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13857 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13858
13859 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13860 conditionals. Don't check enable_font_backend. Delete all codes
13861 used only when USE_FONT_BACKEND is not defined. Surround non-used
13862 code by "#ifdef OLD_FONT" and "endif".
13863
13864 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13865 (uniscribe_open): Return value changed to font-object.
13866 Adjusted for the format change of font-object.
13867 (uniscribe_otf_capability): Adjusted for the change of struct font.
13868 (add_opentype_font_name_to_list): Don't downcase names.
13869 (uniscribe_font_driver): Adjusted for the change of struct
13870 font_driver.
13871
138722008-05-13 Chong Yidong <cyd@stupidchicken.com>
13873
13874 * dispnew.c (update_frame_1): Check if tty output is still valid
13875 before flushing it.
13876
138772008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13878
13879 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13880 to Gtk+ menus.
13881
138822008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13883
13884 * dired.c (file_name_completion): Tweak the code so as to always do it
13885 in a single pass. Tighten the scope of some variables.
13886
13887 * dired.c (Qdefault_directory): New var.
13888 (file_name_completion): Use it instead of Fexpand_file_name.
13889 (syms_of_dired): Initialize it.
13890
138912008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13892
13893 * fileio.c (double_dollars): Remove dead code.
13894
138952008-05-10 Eli Zaretskii <eliz@gnu.org>
13896
13897 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13898 Mention w32-get-true-file-attributes in doc string.
13899
13900 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13901
139022008-05-09 Glenn Morris <rgm@gnu.org>
13903
13904 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13905 2008-04-23.
13906
139072008-05-09 Eli Zaretskii <eliz@gnu.org>
13908
13909 Support for reporting owner and group of each file on MS-Windows:
13910 * dired.c (stat_uname, stat_gname): New functions, with special
13911 implementation for w32.
13912 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13913
13914 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13915 (dflt_group_name): New static variable.
13916 (dflt_group): Rename from the_group.
13917 (init_user_info): Init dflt_group fields. Get user's group name
13918 from LookupAccountSid.
13919 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13920 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13921 New initialization states.
13922 (globals_of_w32): Initialize them to zero. Initialize the default
13923 group name to "None".
13924 (GetFileSecurity_Name): New global var, the name of the function
13925 to call for GetFileSecurity.
13926 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13927 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13928 (get_file_security, get_security_descriptor_owner)
13929 (get_security_descriptor_group, is_valid_sid)
13930 (get_file_security_desc, get_rid, get_name_and_id)
13931 (get_file_owner_and_group): New functions.
13932 (stat): Use get_file_security_desc and get_file_owner_and_group to
13933 report the owner and primary group of each file. Don't ignore the
13934 high 32 bits of file's size, now that st_size is 64-bit wide.
13935 Fix test when to get true file attributes.
13936 (init_user_info): Use get_rid instead of equivalent inline code.
13937 (fstat): Don't ignore the high 32 bits of file's size.
13938
139392008-05-09 Chong Yidong <cyd@stupidchicken.com>
13940
13941 * image.c (png_load): Use correct bit-depth for setting background
13942 color.
13943
139442008-05-08 Eli Zaretskii <eliz@gnu.org>
13945
13946 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13947 epa-hook.elc.
13948
139492008-05-08 Juanma Barranquero <lekktu@gmail.com>
13950
13951 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13952
139532008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13954
13955 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13956 because the original parameters are in pure storage now.
13957 (mac_window): Remove unused params. Update callers.
13958
139592008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13960
13961 * lread.c (substitute_object_recurse): Use lower-level primitives.
13962 Don't signal errors when traversing sub-char-tables.
13963 Don't loop over all the possible characters when traversing char-tables.
13964
13965 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13966 just like we do in print.c.
13967
139682008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13969
13970 * minibuf.c (Ftry_completion): Remove code left over from when we used
13971 scmp instead of Fcompare_strings.
13972
139732008-05-04 Juanma Barranquero <lekktu@gmail.com>
13974
13975 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13976
139772008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13978
13979 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13980 Create bitmap context in native byte order.
13981
13982 * macterm.c (XDrawLine)
13983 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13984 context in native byte order.
13985
139862008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13987
13988 * config.in: Regenerate.
13989
13990 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13991 New definitions for Image I/O support.
13992 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13993 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13994 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13995 (mac_data_provider_release_data, image_load_image_io)
13996 [USE_MAC_IMAGE_IO]: New functions.
13997 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13998 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13999 (init_image_func_pointer) [MAC_OSX]: Remove function.
14000 (image_load_quartz2d) [MAC_OSX]: Check availability of
14001 CGImageCreateWithPNGDataProvider at compile time.
14002 Use lowercase `false' for boolean constant.
14003 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14004 Use image_load_image_io.
14005 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14006 Don't check MyCGImageCreateWithPNGDataProvider.
14007 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14008 Don't call init_image_func_pointer.
14009
14010 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14011
14012 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14013 Make variable non-static.
14014 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14015 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14016
14017 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14018 (RED_FROM_ULONG): Mask off higher bits.
14019 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14020
14021 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14022 Include AvailabilityMacros.h.
14023 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14024 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14025
140262008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14027
14028 * chartab.c (Fset_char_table_range): If range is t, really set all
14029 chars to that value.
14030
140312008-05-03 Eli Zaretskii <eliz@gnu.org>
14032
14033 * dired.c (Ffile_attributes): Don't allow the device number become
14034 negative.
14035
140362008-05-02 Daiki Ueno <ueno@unixuser.org>
14037
14038 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14039
140402008-05-02 Juri Linkov <juri@jurta.org>
14041
14042 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14043 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14044 DEFAULT argument as a list of default values in docstrings.
14045
140462008-05-01 Chong Yidong <cyd@stupidchicken.com>
14047
14048 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14049
140502008-05-01 Martin Rudalics <rudalics@gmx.at>
14051
14052 * dispnew.c (change_frame_size_1): Preserve small windows when
14053 shrinking frames by calling set_window_height|width with third
14054 arg 2.
14055
14056 * window.h (struct window): Replace field too_small_ok by field
14057 resize_proportionally.
14058
14059 * window.c (make_window): Initialize resize_proportionally.
14060 (enlarge_window): Temporarily set resize_proportionally to make
14061 sure that shrink_windows does scale the window proportionally.
14062 (shrink_windows): When window has resize_proportionally set try
14063 to shrink it proportionally by stealing from other windows.
14064 (struct saved_window, Fset_window_configuration)
14065 (compare_window_configurations): Handle resize_proportionally.
14066 (WINDOW_TOTAL_SIZE): New macro.
14067 (window_min_size, shrink_windows, size_window): Use it.
14068 (check_min_window_sizes): Remove. Invalid values of
14069 window-min-height|width are handled by window_min_size_2 now.
14070 (size_window, Fsplit_window, enlarge_window)
14071 (adjust_window_trailing_edge, grow_mini_window): Don't call
14072 check_min_window_sizes.
14073 (window_min_size_2, window_min_size_1, window_min_size):
14074 New argument safe_p for retrieving "safe" minimum sizes.
14075 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14076 (adjust_window_trailing_edge, grow_mini_window):
14077 Adjust arguments of window_min_size... functions.
14078 (shrink_windows): Argument min_size removed. New argument
14079 safe_p allows shrinking windows to their safe minimum sizes.
14080 Calculate minimum size and decide whether a window shall be
14081 deleted for each window individually.
14082 (size_window): When nodelete_p equals 2, tell shrink_windows to
14083 delete windows only if their new minimum size is no more safe.
14084 (shrink_window_lowest_first): Call window_min_size_1 to make
14085 sure to preserve modeline of bottom-most window when resizing
14086 the minibuffer.
14087 (Fset_window_configuration, Fcurrent_window_configuration)
14088 (compare_window_configurations): Do not handle
14089 window-min-height|width any more.
14090 (syms_of_window): Clarify window-min-height|width doc-strings.
14091
140922008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14093
14094 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14095 some more. Copy some of the code from Ftry_completions.
14096 Remove special case code that dates back to initial revision when the
14097 slash was only added when necessary and that can't trigger nowadays.
14098
140992008-04-27 Kenichi Handa <handa@m17n.org>
14100
14101 * font.c (font_prop_validate): Signal `error' instead of `font'.
14102
141032008-04-29 Jason Rumney <jasonr@gnu.org>
14104
14105 * w32fns.c (Fw32_battery_status): New defun.
14106 (syms_of_w32fns): Defsubr it.
14107
141082008-04-28 Andreas Schwab <schwab@suse.de>
14109
14110 * dired.c (file_name_completion): Fix another mixing of encoded
14111 and decoded names.
14112
141132008-04-28 Juanma Barranquero <lekktu@gmail.com>
14114
14115 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14116
141172008-04-27 Juanma Barranquero <lekktu@gmail.com>
14118
14119 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14120
141212008-04-27 Andreas Schwab <schwab@suse.de>
14122
14123 * dired.c (file_name_completion): Fix inappropriate mixing of
14124 encoded and decoded names.
14125
14126 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14127
14128 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14129
141302008-04-26 Eli Zaretskii <eliz@gnu.org>
14131
14132 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14133 2008-03-31, it's not needed anymore with `struct stat' definition
14134 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14135 for the same reasons.
14136
141372008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14138
14139 * m/sparc.h: Additional redefinitions for GNU/Linux.
14140
141412008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14142
14143 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14144 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14145 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14146 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14147 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14148 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14149 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14150 Likewise.
14151
14152 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14153 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14154 (mac_ax_number_of_characters): Add externs.
14155 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14156 [USE_MAC_TSM]: Likewise.
14157 (mac_handle_text_input_event) [MAC_OSX]:
14158 Handle kEventTextInputOffsetToPos for no active input area case.
14159 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14160 (mac_handle_document_access_event)
14161 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14162 (install_application_handler) [MAC_OSX]: Register handlers for
14163 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14164 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14165 Register mac_handle_document_access_event.
14166
14167 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14168 Make functions non-static.
14169
141702008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14171
14172 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14173 (read_file_name_completion_ignore_case, insert_default_directory)
14174 (Qdefault_directory): Move to minibuffer.el.
14175 (Fread_file_name): Call the new `read-file-name' instead.
14176
141772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14178
14179 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14180 Make function non-static.
14181 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14182 Remove function.
14183 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14184 Move to mactoolbox.c.
14185 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14186
14187 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14188 (mac_rect_make): New macro.
14189
14190 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14191 instead of float.
14192 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14193 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14194 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14195 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14196 CGRectMake.
14197 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14198 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14199 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14200 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14201 instead of WindowRef in argument type.
14202 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14203 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14204 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14205 instead of DISPLAY. All uses changed.
14206 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14207 (x_calc_absolute_position): Simplify so as not to use
14208 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14209
14210 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14211 instead of WindowRef in argument type.
14212 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14213 [TARGET_API_MAC_CARBON]: Remove externs.
14214 (create_apple_event, mac_event_parameters_to_lisp)
14215 [TARGET_API_MAC_CARBON]: Add externs.
14216
14217 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14218 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14219 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14220 is clicked.
14221 (x_activate_menubar): Remove extern for saved_menu_event_location.
14222 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14223 Move from mac.c.
14224
142252008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14226
14227 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14228 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14229
142302008-04-23 Jason Rumney <jasonr@gnu.org>
14231
14232 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14233 attributes only for local files.
14234
14235 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14236 default to Qlocal.
14237
142382008-04-22 Juri Linkov <juri@jurta.org>
14239
14240 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14241 read-buffer-to-switch instead of using the letter "B".
14242
142432008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14244
14245 * fileio.c (Qdefault_directory): New variable.
14246 (Fread_file_name): Use it to pass `dir' to the completion functions.
14247
142482008-04-20 Chong Yidong <cyd@stupidchicken.com>
14249
14250 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14251
142522008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14253
14254 * keyboard.c (Vpre_help_message): Remove.
14255 (show_help_echo): Remove default C code.
14256
14257 * dired.c (directory_files_internal, file_name_completion):
14258 Only call ENCODE_FILE if the string is indeed decoded.
14259
142602008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14261
14262 * Makefile.in (TOOLKIT_DEFINES): Remove.
14263 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14264
142652008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14266
14267 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14268 (mactoolbox.o): New target.
14269
14270 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14271 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14272
14273 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14274 Use mac_set_frame_window_background instead of XSetWindowBackground.
14275 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14276 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14277 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14278 instead of SetWindowTitleWithCFString.
14279 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14280 Move function to mactoolbox.c.
14281 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14282 Use mac_set_window_modified instead of SetWindowModified.
14283 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14284 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14285 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14286 FrontNonFloatingWindow. Use mac_activate_window instead of
14287 ActivateWindow. Use mac_active_non_floating_window instead of
14288 ActiveNonFloatingWindow.
14289 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14290 Use mac_show_hourglass and mac_hide_hourglass.
14291 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14292 instead of GetGlobalMouse.
14293 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14294 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14295 Use mac_bring_window_to_front instead of BringToFront.
14296 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14297 mactoolbox.c.
14298 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14299 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14300 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14301 mactoolbox.c.
14302
14303 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14304 (XtPointer): Move typedef from macmenu.c.
14305 (enum button_type): Move enum from macmenu.c.
14306 (widget_value): Move typedef from macmenu.c.
14307 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14308 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14309 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14310 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14311 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14312 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14313 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14314 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14315 (Selection): Move typedef from macselect.c.
14316 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14317 macterm.c.
14318 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14319 (mac_is_window_collapsed, mac_bring_window_to_front)
14320 (mac_send_window_behind, mac_hide_window, mac_show_window)
14321 (mac_collapse_window, mac_front_non_floating_window)
14322 (mac_active_non_floating_window, mac_activate_window)
14323 (mac_move_window_structure, mac_move_window, mac_size_window)
14324 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14325
14326 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14327 (enum mac_menu_kind): Move enum to mactoolbox.c.
14328 (min_menu_id): Move variable to mactoolbox.c.
14329 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14330 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14331 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14332 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14333 [TARGET_API_MAC_CARBON]: Likewise.
14334 (XtPointer): Move typedef to macgui.h.
14335 (enum button_type): Move enum to macgui.h.
14336 (widget_value): Move typedef to macgui.h.
14337 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14338 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14339 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14340 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14341 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14342 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14343 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14344 (popup_activated_flag): Make variable non-static.
14345 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14346 (add_menu_item, fill_menu, dispose_menus):
14347 Move functions to mactoolbox.c.
14348 (restore_show_help_function, menu_target_item_handler)
14349 (install_menu_target_item_handler, mac_handle_dialog_event)
14350 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14351 [TARGET_API_MAC_CARBON]: Likewise.
14352 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14353 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14354 (find_and_call_menu_selection, name_is_separator): Make function
14355 non-static.
14356 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14357 to mactoolbox.c.
14358 (set_frame_menubar): Don't call install_menu_quit_handler.
14359 (menu_item_selection): New variable.
14360 (mac_menu_show): Use create_and_show_popup_menu.
14361 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14362 selection but set variable menu_item_selection. All uses changed.
14363 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14364 Call install_menu_quit_handler. Move to mactoolbox.c.
14365
14366 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14367 (Selection): Move typedef to macgui.h.
14368 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14369 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14370 Make variables non-static.
14371 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14372 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14373 Make functions non-static.
14374 (Vmac_service_selection) [MAC_OSX]: Likewise.
14375 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14376 (mac_valid_selection_target_p, mac_clear_selection)
14377 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14378 (mac_put_selection_value, mac_selection_has_target_p)
14379 (mac_get_selection_value, mac_get_selection_target_list)
14380 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14381 Move functions to mactoolbox.c.
14382 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14383 Likewise.
14384 (copy_scrap_flavor_data, mac_handle_service_event)
14385 (install_service_handler) [MAC_OSX]: Likewise.
14386 (syms_of_macselect) <Vmac_dnd_known_types>:
14387 Use mac_dnd_default_known_types.
14388
14389 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14390 Move to mactoolbox.c.
14391 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14392 (Fx_selection_owner_p): Add EXFUN.
14393 (install_window_handler, remove_window_handler, XSetWindowBackground):
14394 Remove externs.
14395 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14396 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14397 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14398 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14399 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14400 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14401 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14402 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14403 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14404 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14405 (mac_valid_selection_target_p, mac_clear_selection)
14406 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14407 (mac_put_selection_value, mac_selection_has_target_p)
14408 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14409 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14410 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14411 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14412 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14413 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14414 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14415 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14416 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14417
14418 * mactoolbox.c: New file.
14419
144202008-04-18 Jason Rumney <jasonr@gnu.org>
14421
14422 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14423
144242008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14425
14426 * character.c (Fmultibyte_char_to_unibyte):
14427 Return latin1 chars unchanged.
14428
14429 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14430 relocated if it points to `name'.
14431
144322008-04-17 Kenichi Handa <handa@m17n.org>
14433
14434 * data.c (Faset): Allow setting a multibyte character in an
14435 ASCII-only unibyte string.
14436
14437 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14438
144392008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14440
14441 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14442 done in config.h.
14443
144442008-04-16 Juanma Barranquero <lekktu@gmail.com>
14445
14446 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14447 (Fchar_direction): Add usage in the docstring.
14448
144492008-04-15 Chong Yidong <cyd@stupidchicken.com>
14450
14451 * keyboard.c (read_key_sequence): Remove always-true checks.
14452
144532008-04-14 Jason Rumney <jasonr@gnu.org>
14454
14455 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14456 compatibility struct, for better underline positioning.
14457
144582008-04-13 David Hansen <david.hansen@gmx.net>
14459
14460 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14461 string.
14462
144632008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14464
14465 * m/hp800.h (XUINT, XSET): Remove.
14466
144672008-04-12 Juanma Barranquero <lekktu@gmail.com>
14468
14469 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14470 previous change.
14471
144722008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14473
14474 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14475 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14476
144772008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14478
14479 * keymap.h (map_keymap_canonical): Declare.
14480 * xmenu.c (single_keymap_panes): Use it.
14481
144822008-04-11 Glenn Morris <rgm@gnu.org>
14483
14484 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14485 set the target's value to that of the alias.
14486
144872008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14488
14489 * term.c (set_tty_color_mode): Left over typo.
14490
144912008-04-10 Michael Albinus <michael.albinus@gmx.de>
14492
14493 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14494 only after check for file name handler functions. Signal, when
14495 native functionality is not supported.
14496 (syms_of_fileio): Declare it unconditionally.
14497
144982008-04-10 Jason Rumney <jasonr@gnu.org>
14499
14500 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14501 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14502
14503 * w32.c (logon_network_drive): Also logon to remote drives that
14504 are mapped to drive letters.
14505
145062008-04-10 Glenn Morris <rgm@gnu.org>
14507
14508 * xdisp.c (truncate-partial-width-windows): Doc fix.
14509
145102008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14511
14512 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14513 Move functions to minibuffer.el.
14514 (syms_of_fileio): Don't declare them.
14515
145162008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14517
14518 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14519 (syms_of_minibuf): Remove its initialization.
14520
14521 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14522
145232008-04-09 Juanma Barranquero <lekktu@gmail.com>
14524
14525 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14526
145272008-04-09 Jason Rumney <jasonr@gnu.org>
14528
14529 * makefile.w32-in (distclean): Delete makefile too.
14530 (maintainer-clean): New target.
14531
14532 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14533
14534 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14535 for new font backend and composite cases.
14536
145372008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14538
14539 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14540 Most of the code moved to run_timers.
14541 (do_pending_atimers): Call run_timers.
14542 (run_timers): New function.
14543
14544 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14545 run atimers.
14546
14547 * process.c (wait_reading_process_output): The same as above.
14548
145492008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14550
14551 * minibuf.c (last_exact_completion): Remove variable.
14552 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14553 (complete_and_exit_1, complete_and_exit_2)
14554 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14555 (Fdisplay_completion_list, display_completion_list_1)
14556 (Fminibuffer_completion_help, Fself_insert_and_exit)
14557 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14558 minibuffer.el.
14559 (syms_of_minibuf): Remove corresponding initializations.
14560
14561 * keyboard.c (Qdeactivate_mark): New var.
14562 (command_loop_1): Use it to call `deactivate-mark'.
14563 (syms_of_keyboard): Initialize it.
14564
14565 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14566 to another frame.
14567 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14568 Don't call set_tty_color_mode.
14569 (store_frame_param): Reset previous_frame rather than call
14570 set_tty_color_mode.
14571 * term.c (set_tty_color_mode): Rewrite.
14572 * dispextern.h (set_tty_color_mode): New type.
14573 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14574
145752008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14576
14577 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14578 for generic chars, which do not exist any more in emacs-unicode.
14579
145802008-04-08 Michael Albinus <michael.albinus@gmx.de>
14581
14582 * coding.c (detect_coding_emacs_mule)
14583 (Ffind_operation_coding_system): Fix typo.
14584
145852008-04-08 Jason Rumney <jasonr@gnu.org>
14586
14587 * w32uniscribe.c (SNAME): Extract only symbol name.
14588
14589 * w32font.h (struct w32_metric_cache): New struct.
14590 (w32font_info): Use it.
14591 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14592 (CACHE_BLOCKSIZE): New constants.
14593
14594 * w32font.c (Qja, Qko, Qzh): New symbols.
14595 (syms_of_w32font): Initialise them.
14596 (font_matches_spec): Use them to filter by language.
14597 (recompute_cached_metrics): Remove function.
14598 (compute_metrics, clear_cached_metrics): New functions.
14599 (w32font_encode_char): Use them to manage metric cache.
14600 (w32font_text_extents): Cache metrics for all glyphs on demand.
14601 Delay converting glyph indices to WORD until needed.
14602 (w32font_open_internal): Initialize metric cache to empty.
14603 (registry_to_w32_charset): Charset should always be a symbol.
14604 (fill_in_logfont, list_all_matching_fonts): Family should
14605 always be a symbol.
14606
146072008-04-06 Jason Rumney <jasonr@gnu.org>
14608
14609 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14610 Give up if glyph indices not supported. Use uniscribe obtained
14611 ABC widths for individual metrics. Map glyph clusters back to
14612 characters using fClusterStart flag. Return number of glyphs
14613 produced, not chars processed.
14614 (uniscribe_shape): Map char at FROM to current glyph.
14615
146162008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14617
14618 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14619 Use SetMenuItemHierarchicalMenu.
14620
146212008-04-05 Jason Rumney <jasonr@gnu.org>
14622
14623 * image.c (pbm_load): Allow color values up to 65535.
14624 Throw an error if max_color_idx is outside the supported range.
14625 Report an error when image size is invalid.
14626 Read two bytes at a time when raw images have max_color_idx above 255.
14627
aac0c6e3
MR
146282008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14629
14630 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14631 append "CCL: Quitted" when the CCL program is quitted.
14632 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14633
14634 * ccl.h (struct ccl_program): New member quit_silently.
14635
146362008-04-05 Chong Yidong <cyd@stupidchicken.com>
14637
14638 * search.c (compile_pattern_1): Treat non-nil and non-string of
14639 search-spaces-regexp as nil.
14640
14641 * minibuf.c (Fassoc_string): Tweak docstring.
14642
146432008-04-05 Eli Zaretskii <eliz@gnu.org>
14644
14645 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14646 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14647 2008-03-14 to force inode be positive.
14648
14649 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14650 _S_* ones, since we now use our own sys/stat.h.
14651 (stat, fstat): Don't mangle the inode number.
14652 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14653
146542008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14655
14656 * frame.h (struct frame): Give one more bit to `visible' since we use
14657 values larger than 1 to indicate obscured frames on ttys.
14658
14659 * keymap.c (Qkeymap_canonicalize): New var.
14660 (Fmap_keymap_internal): New fun.
14661 (describe_map): Use keymap-canonicalize.
14662
14663 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14664 (Fundo_boundary): Set them.
14665 (syms_of_undo): Initialize them.
14666 (record_point): Use them instead of last_point_position*.
14667 (last_undo_buffer): Change type.
14668
146692008-04-04 Jason Rumney <jasonr@gnu.org>
14670
14671 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14672 (recompute_cached_metrics): Don't set ascent and descent per char.
14673
14674 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14675 (uniscribe_check_otf): Add GC protection before consing.
14676 Rearrange loop for counting features.
14677
146782008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14679
14680 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14681 buffer with byte-size of source buffer.
14682
146832008-04-03 Chong Yidong <cyd@stupidchicken.com>
14684
14685 * callint.c (Fcall_interactively): Handle temporary region even
14686 when shift-select-mode is off.
14687
146882008-04-03 Jason Rumney <jasonr@gnu.org>
14689
14690 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14691
146922008-04-03 Kenichi Handa <handa@m17n.org>
14693
14694 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14695 (CATEGORY_MASK_UTF_16): Likewise.
14696 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14697 binary file.
14698 (detect_coding): Add null-byte detection for a binary file.
14699 (detect_coding_system): Likewise.
14700
147012008-04-03 Jason Rumney <jasonr@gnu.org>
14702
14703 * w32uniscribe.c: New file.
14704
14705 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14706
14707 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14708
14709 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14710 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14711 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14712 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14713 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14714 (Qphonetic): New symbols.
14715 (syms_of_w32font): Initialize them.
14716 (font_supported_scripts): Use them.
14717 (w32font_list_family): List all charsets.
14718 (w32font_text_extents, recompute_cached_metrics): Fix metric
14719 calculations.
14720 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14721 Give opentype fonts their own format.
14722 (font_matches_spec): New arguments backend and logfont.
14723 Handle :otf spec for uniscribe backend.
14724 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14725 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14726
14727 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14728 font backend.
14729 (globals_of_w32fns): Initialize uniscribe font backend.
14730
14731 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14732 dependencies.
14733 (w32uniscribe.$(O)): New file to build.
14734 (FONT_OBJ): Include w32uniscribe.$(O).
14735 (LIBS): Add uniscribe libraries.
14736
14737 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14738
147392008-04-02 Chong Yidong <cyd@stupidchicken.com>
14740
14741 * callint.c (Vshift_select_mode): New var.
14742 (Finteractive): Document new ^ spec.
14743 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14744 is present.
14745
14746 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14747 (command_loop_1): Avoid running the direct display versions of
14748 forward-char and backward-char if shift-selection may occur.
14749 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14750 shift-translation takes place.
14751
14752 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14753 avoid clobbering by define-minor-mode.
14754
14755 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14756 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14757
14758 * syntax.c (Fforward_word): Add ^ interactive spec.
14759
14760 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14761 (Fscroll_right): Add ^ interactive spec.
14762
147632008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14764
14765 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14766
14767 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14768
14769 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14770
147712008-03-31 Juri Linkov <juri@jurta.org>
14772
14773 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14774
147752008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14776
14777 * gtkutil.c (xg_set_geometry): Fix indentation.
14778 (xg_resize_outer_widget): Remove.
14779 (x_wm_size_hint_off): Fix indentation.
14780 (xg_frame_set_char_size): Call flush_and_sync after
14781 gtk_window_resize.
14782 (x_wm_set_size_hint): Pass NULL as geometry window to
14783 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14784 Add menu bar and tool bar height to base height.
14785 (xg_update_frame_menubar, free_frame_menubar)
14786 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14787 (update_frame_tool_bar, free_frame_tool_bar):
14788 Change xg_resize_outer_widget to xg_frame_set_char_size.
14789
147902008-03-30 Michael Albinus <michael.albinus@gmx.de>
14791
14792 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14793 (Fdbus_call_method): New parameter TIMEOUT.
14794 (dbus-send-signal): Optimize UNGCPRO call.
14795
147962008-03-29 Juri Linkov <juri@jurta.org>
14797
14798 * window.c (Fdisplay_buffer): Move call to
14799 Vsplit_window_preferred_function out of conditions that check
14800 if window is eligible for vertical splitting.
14801 When Vsplit_window_preferred_function is non-nil, call it and use
14802 its non-nil return value as window. Otherwise, continue doing
14803 vertical splitting using Fsplit_window with arg horflag=nil.
14804 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14805 default value from `split-window' to nil.
14806
148072008-03-29 Juri Linkov <juri@jurta.org>
14808
14809 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14810 for interactive code letters 'b' and 'B'.
14811
148122008-03-29 Eli Zaretskii <eliz@gnu.org>
14813
14814 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14815 multibyte string.
14816
148172008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14818
14819 * keyboard.c (pending_funcalls): New var.
14820 (timer_check): Run it.
14821 (syms_of_keyboard): Initialize it.
14822 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14823 (Vdelete_terminal_functions): New vars.
14824 (syms_of_terminal): Initialize them.
14825 (Fdelete_terminal): Run delete-terminal-functions.
14826 * xdisp.c (safe_eval): Rewrite.
14827 (safe_call2): New fun.
14828 * frame.c (Qdelete_frame_functions): New var.
14829 (syms_of_frame): Initialize it.
14830 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14831 * lisp.h (safe_call2, pending_funcalls): Declare.
14832
148332008-03-28 Andreas Schwab <schwab@suse.de>
14834
14835 * indent.c (Fmove_to_column): Move declaration before statements.
14836
148372008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14838
14839 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14840 (struct frame): Use bit fields for boolean vars.
14841
14842 * process.c (server_accept_connection): Simplify naming.
14843 (emacs_get_tty_pgrp): Use SDATA.
14844
14845 * coding.c (decode_coding_object): Fix last change.
14846
148472008-03-27 Jason Rumney <jasonr@gnu.org>
14848
14849 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14850
148512008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14852
14853 * charset.c (Fdefine_charset_internal): Change the way of
14854 registering charsets in Vcharset_order_list.
14855 (syms_of_charset): Make the charset `eight-bit' supplementary.
14856
148572008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14858
14859 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14860 operations, to avoid having the difference between pointers
14861 overflow.
14862
148632008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14864
14865 * indent.c (check_display_width): New fun.
14866 (scan_for_column): Use it.
14867
14868 * data.c (syms_of_data): Mark most-positive-fixnum and
14869 most-negative-fixnum as constants.
14870
14871 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14872
14873 * indent.c (scan_for_column): Extract from current_column_1.
14874 Merge with the same code from Fmove_to_column.
14875 (current_column_1, Fmove_to_column): Use it.
14876
148772008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14878
14879 * keymap.c (map_keymap_internal): New fun.
14880 (map_keymap): Use it.
14881 (Fmap_keymap_internal): New fun.
14882 (Fmap_keymap): Remove left-out test from before make_save_value.
14883
14884 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14885
14886 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14887 Use XCAR/XCDR.
14888
14889 * process.h (struct Lisp_Process): Remove filter_multibyte.
14890 * process.c (QCfilter_multibyte): Remove.
14891 (setup_process_coding_systems): Don't use filter_multibyte.
14892 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14893 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14894 (Fset_process_filter_multibyte): Change the coding-system to
14895 approximate the previous behavior.
14896 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14897 coding-system.
14898
14899 * coding.c (decode_coding_object): When not decoding into a buffer,
14900 obey the coding system's preference of (uni|multi)byte.
14901
149022008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14903
14904 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14905 every char is changed and has a different byte-length.
14906 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14907 Fix int -> EMACS_INT.
14908
149092008-03-23 David Hansen <david.hansen@gmx.net>
14910
14911 * dbusbind.c (xd_read_message): Remove extra copying of message
14912 strings. Check for NULL `interface' or `member'.
14913
149142008-03-22 Eli Zaretskii <eliz@gnu.org>
14915
14916 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14917 cFileName a file name that includes `?' characters, use the 8+3
14918 alias in cAlternateFileName instead.
14919
149202008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14921
14922 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14923
149242008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14925
14926 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14927 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14928 work on current_buffer only instead (that was already the case
14929 for some of the code anyway).
14930 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14931 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14932 (SET_PT, SET_PT_BOTH): Adjust.
14933 * intervals.h (set_point, temp_set_point, set_point_both)
14934 (temp_set_point_both): Remove redundant declarations.
14935
149362008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14937
14938 * fileio.c (Finsert_file_contents):
14939 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14940 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14941 when buffer != current_buffer anyway.
14942
149432008-03-20 Andreas Schwab <schwab@suse.de>
14944
14945 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14946 as default.
14947
149482008-03-19 Jason Rumney <jasonr@gnu.org>
14949
14950 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14951 (syms_of_w32fns): Initialize them.
14952 (HOURGLASS_ID): New constant.
14953 (x_window_to_frame): Don't check hourglass_window.
14954 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14955 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14956 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14957 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14958 Only change the cursor if hourglass is not active.
14959 (Fx_create_frame): Initialize frame's current_cursor.
14960 (hourglass_atimer): Remove.
14961 (hourglass_started): New function.
14962 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14963 (show_hourglass): Adapt to w32, changing argument to frame.
14964
14965 * w32term.h (struct w32_output): Remove hourglass_window.
14966 Add current_cursor.
14967
14968 * eval.c (call_debugger, Fsignal):
14969 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14970 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14971 (Fexecute_extended_command, cancel_hourglass_unwind):
14972 * minibuf.c (read_minibuf):
14973 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14974
149752008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14976
14977 * window.c (run_funs): New fun.
14978 (run_window_configuration_change_hook): Use it to run the buffer-local
14979 and the global part of the hook.
14980
14981 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14982 (unwind_format_mode_line): Restore selected window.
14983 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14984
149852008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14986
14987 * editfns.c (Fchar_equal): Check they are valid characters.
14988
14989 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14990
149912008-03-17 Andreas Schwab <schwab@suse.de>
14992
14993 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14994 against a charset.
14995
14996 * lisp.h (Fbuffer_list): Declare.
14997
149982008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14999
aac0c6e3
MR
15000 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15001 handlebox_widget is != 0.
15002
150032008-03-16 Juri Linkov <juri@jurta.org>
15004
15005 * callint.c (Fcall_interactively): For interactive code letters
15006 'b' and 'B' put the buffer list into the list of default "future"
15007 values of the minibuffer.
15008
150092008-03-16 Andreas Schwab <schwab@suse.de>
15010
15011 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15012 modifiers.
15013
15014 * regex.c (re_match_2_internal): Correct matching of a charset
15015 against latin-1 characters.
15016
150172008-03-16 Kenichi Handa <handa@m17n.org>
15018
15019 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15020 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15021 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15022 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15023 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15024 CHAR_STRING_ADVANCE.
15025 (produce_chars): Fix for the case that the source and the
15026 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15027 instead of CHAR_STRING_ADVANCE.
15028 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15029 STRING_CHAR_ADVANCE.
15030
150312008-03-15 Andreas Schwab <schwab@suse.de>
15032
15033 * regex.c (re_match_2_internal): Correct matching of eight bit
15034 characters in unibyte strings.
15035
150362008-03-15 Martin Rudalics <rudalics@gmx.at>
15037
15038 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15039 at end of range when it coincides with the end of the buffer.
15040
150412008-03-14 Eli Zaretskii <eliz@gnu.org>
15042
15043 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15044
15045 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15046
150472008-03-14 Jason Rumney <jasonr@gnu.org>
15048
15049 * editfns.c (initial_tz): New variable.
15050 (syms_of_editfns): Initialize it.
15051 (Fset_time_zone_rule): Set it when first called.
15052 Use it when TZSTRING is nil.
15053
15054 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15055 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15056 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15057 (globals_of_w32fns): Initialize them.
15058 (compute_tip_xy): Use them to position tooltips.
15059
150602008-03-14 Glenn Morris <rgm@gnu.org>
15061
15062 * emacs.c (main): Revert previous change.
15063 (standard_args): Revert -internal-script back to -scriptload,
15064 and remove the long-option form.
15065
150662008-03-13 Glenn Morris <rgm@gnu.org>
15067
15068 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15069 Remove option -enable-font-backend.
15070
150712008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15072
15073 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15074
150752008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15076
15077 * xterm.c (x_connection_closed): For GTK: If this is the last
15078 terminal just exit without closing the display.
15079
150802008-03-11 Jason Rumney <jasonr@gnu.org>
15081
15082 * w32font.c (w32font_full_name): Use floor to round.
15083
f0131492 150842008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15085
15086 * sound.c (alsa_configure): Declare vol at beginning of block.
15087
15088 * fontset.c (Ffontset_info): Remove extra semicolon.
15089
150902008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15091
15092 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15093 size of resulting string.
15094
150952008-03-10 Jason Rumney <jasonr@gnu.org>
15096
15097 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15098
150992008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15100
15101 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15102 Don't pretend as if characters with display property haven't been
15103 consumed for string-replacing-string case.
15104
151052008-03-08 Kim F. Storm <storm@cua.dk>
15106
15107 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15108 (get_next_display_element, next_element_from_string)
15109 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15110
151112008-03-08 Andreas Schwab <schwab@suse.de>
15112
15113 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15114
151152008-03-06 Jason Rumney <jasonr@gnu.org>
15116
15117 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15118 when charset not specified. Only translate ANSI to unicode when
15119 font_type is truetype.
15120 (w32font_coverage_ok): New function.
15121 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15122
151232008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15124
15125 * lread.c (Fread_char): Resolve modifiers.
15126 (Fread_char_exclusive): Likewise.
15127
15128 * character.c (char_resolve_modifier_mask): New function.
15129 (char_string): Use char_resolve_modifier_mask.
15130 (Fchar_resolve_modifiers): New function.
15131 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15132 function.
15133
151342008-03-04 Jason Rumney <jasonr@gnu.org>
15135
15136 * makefile.w32-in: Always include w32font.c in the build.
15137 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15138
151392008-03-04 Andreas Schwab <schwab@suse.de>
15140
15141 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15142 (versionclean): Likewise.
15143
151442008-03-04 Juanma Barranquero <lekktu@gmail.com>
15145
15146 * .cvsignore: Add oo.
15147
151482008-03-03 Andreas Schwab <schwab@suse.de>
15149
15150 * coding.c (decode_coding_object): Inhibit gap shrinking while
15151 decoding in place.
15152
151532008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15154
15155 * w32term.c: Remove unused include "gnu.h".
15156 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15157
15158 * gnu.h: Rename to ...
15159 * emacs-icon.h: ... this.
15160 * xterm.c: Use emacs-icon.h instead of gnu.h.
15161 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15162
151632008-03-03 Juanma Barranquero <lekktu@gmail.com>
15164
15165 * w32font.c: Include math.h.
15166
151672008-03-03 Jason Rumney <jasonr@gnu.org>
15168
15169 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15170 Compute options separately.
15171 (w32font_open_internal): Set glyph_idx before caching metrics.
15172
15173 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15174 Define if system headers don't.
15175 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15176 (w32font_encode_char): Don't declare here.
15177
15178 * w32font.c (Quniscribe, QCformat): New symbols.
15179 (syms_of_w32font): Define them.
15180 (w32font_has_char): Indicate uncertainty.
15181 (w32font_encode_char): Encode as glyph point. Make static.
15182 (recompute_cached_metrics): New function.
15183 (w32font_open_internal): Use it. Set font to use glyph points
15184 initially. Set format based on type of font.
15185 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15186 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15187 on it. Set format based on information available here.
15188 (add_font_entity_to_list): Identify backend based on opentype_only.
15189
151902008-03-02 Andreas Schwab <schwab@suse.de>
15191
15192 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15193
15194 * coding.c (decode_coding_big5, produce_chars):
15195 Fix typos in last change.
15196
151972008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15198
15199 * gnu.h: New icon.
15200
152012008-03-02 Kenichi Handa <handa@m17n.org>
15202
15203 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15204 `dos', don't decode '\r' if that is the last in the source.
15205 (decode_coding_utf_16, decode_coding_emacs_mule)
15206 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15207 (decode_coding_raw_text, decode_coding_charset): Likewise.
15208 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15209
152102008-03-01 Jason Rumney <jasonr@gnu.org>
15211
15212 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15213
152142008-03-01 Kim F. Storm <storm@cua.dk>
15215
15216 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15217
152182008-03-01 Jason Rumney <jasonr@gnu.org>
15219
15220 * w32font.c (w32font_full_name): New function.
15221 (w32font_open_internal): Use it.
15222
152232008-03-01 Kim F. Storm <storm@cua.dk>
15224
15225 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15226
152272008-03-01 Jason Rumney <jasonr@gnu.org>
15228
15229 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15230
152312008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15232
15233 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15234 xg_frame_resized when the event is for the edit widget.
15235
15236 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15237
15238 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15239 set_char_size.
15240 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15241 operations on widgets here. Just set frame size if needed.
15242 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15243 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15244 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15245 the whole frame.
15246 (xg_create_tool_bar): Move attachment of the tool bar to
15247 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15248 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15249
152502008-03-01 Jason Rumney <jasonr@gnu.org>
15251
15252 * w32fns.c (w32_msg_pump): Disable debug code.
15253
152542008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15255
15256 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15257
152582008-02-29 Chong Yidong <cyd@stupidchicken.com>
15259
15260 * xdisp.c (next_overlay_string): Don't set
15261 overlay_strings_at_end_processed_p if we're currently reading from
15262 a display string.
15263
152642008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15265
15266 * xdisp.c (get_overlay_strings_1): Fix typo.
15267
152682008-02-29 Chong Yidong <cyd@stupidchicken.com>
15269
15270 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15271
152722008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15273
15274 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15275
15276 * xdisp.c (display_mode_element): Cancel the previous change.
15277 (decode_mode_spec): Likewise.
15278 (handle_auto_composed_prop): Don't make composition if it->string
15279 is a string.
15280
152812008-02-27 Kim F. Storm <storm@cua.dk>
15282
15283 * lisp.h (GLYPH): Change type from int to struct with separate char
15284 and face_id members.
15285 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15286 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15287 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15288 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15289 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15290 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15291 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15292 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15293 handle new Lisp glyph code encoding, either an integer or a cons.
15294
15295 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15296 (GLYPH_ALIAS): Delete.
15297 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15298 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15299 (GLYPH_FROM_CHAR): Replace macro by ...
15300 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15301
15302 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15303 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15304 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15305 (GLYPH_INVALID_P): New macro.
15306 (spec_glyph_lookup_face): Update prototype.
15307
15308 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15309 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15310 new glyph code encoding.
15311 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15312 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15313
15314 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15315 Adapt to new glyph type and new glyph code encoding.
15316
15317 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15318
15319 * indent.c (current_column, current_column_1, Fmove_to_column)
15320 (compute_motion): Adapt to new glyph code encoding.
15321
15322 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15323
153242008-02-27 Chong Yidong <cyd@stupidchicken.com>
15325
15326 * process.c (wait_reading_process_output): Check for window
15327 changes caused by timers.
15328 Suggested by Johan Bockgård.
15329
153302008-02-27 Glenn Morris <rgm@gnu.org>
15331
15332 * emacs.c (USAGE1): Add `--disable-font-backend'.
15333
153342008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15335
15336 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15337 is made to the buffer.
15338
153392008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15340
15341 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15342 (face_at_string_position):
15343 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15344 (face_at_string_position):
15345 * xdisp.c (display_string, next_overlay_change):
15346 * buffer.h (overlays_at):
15347 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15348 Update callers.
15349
153502008-02-26 Chong Yidong <cyd@stupidchicken.com>
15351
15352 * editfns.c (Fformat): Doc fix.
15353
153542008-02-26 Juanma Barranquero <lekktu@gmail.com>
15355
15356 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15357 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15358 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15359
153602008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15361
15362 * buffer.c (Fbuffer_swap_text): New function.
15363 (syms_of_buffer): Defsubr it.
15364
153652008-02-25 Chong Yidong <cyd@stupidchicken.com>
15366
15367 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15368
153692008-02-25 Jason Rumney <jasonr@gnu.org>
15370
15371 * w32font.c (w32font_draw): Draw one character at a time when padding.
15372
153732008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15374
15375 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15376 Handle a nil arg. Use run_window_configuration_change_hook.
15377 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15378 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15379 Use run_window_configuration_change_hook.
15380
153812008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15382
15383 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15384 1-pixel width.
15385
153862008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15387
15388 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15389 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15390 if the glyph in the font is zero pixel with.
15391
15392 * dispextern.h (struct glyph_string): New member padding_p.
15393
15394 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15395
15396 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15397
15398 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15399
15400 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15401
15402 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15403
154042008-02-25 Jason Rumney <jasonr@gnu.org>
15405
15406 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15407
154082008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15409
15410 Allow fine-grained image-cache flushing.
15411 * dispextern.h (struct image): Add `dependencies' field.
15412 (clear_image_caches): Change arg to Lisp_Object.
15413 * image.c (make_image): Initialize `dependencies' field.
15414 (clear_image_cache): Change arg to allow fine-grained flushing.
15415 Perform the flush even if image-cache-eviction-delay is nil.
15416 (clear_image_caches): Change arg to Lisp_Object.
15417 (Fclear_image_cache): Expand meaning of the argument.
15418 (mark_image): Mark `dependencies' field.
15419 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15420 (lface_hash): Use XHASH rather than XFASTINT.
15421 (face_at_buffer_position): Fix int -> EMACS_INT position.
15422 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15423 (select_frame_for_redisplay): Remove code duplication.
15424 (redisplay_internal): Adapt arg to call to clear_image_caches.
15425
154262008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15427
15428 * s/vms4-0.h:
15429 * s/vms4-2.h:
15430 * s/vms4-4.h:
15431 * s/vms5-5.h: Remove, unused.
15432
15433 * s/irix5-2.h:
15434 * s/irix6-0.h:
15435 * s/riscos5.h:
15436 * s/mach-bsd4-3.h:
15437 * m/mips4.h: Remove files for obsolete systems.
15438
15439 * Makefile.in:
15440 * filelock.c:
15441 * unexmips.c:
15442 * m/hp9000s300.h:
15443 * m/iris4d.h:
15444 * s/aix3-1.h:
15445 * s/hpux.h:
15446 * s/msdos.h:
15447 * s/usg5-0.h:
15448 * s/usg5-2-2.h:
15449 * s/usg5-2.h:
15450 * s/usg5-3.h: Remove references to obsolete variables.
15451
15452 * s/irix5-0.h: Remove, move all the contents ...
15453 * s/irix6-5.h: ... here. Simplify.
15454 * config.in: Regenerate.
15455
154562008-02-24 Jason Rumney <jasonr@gnu.org>
15457
15458 * w32term.c (x_draw_glyph_string_background): Clear the background
15459 manually when cleartype is in use.
15460 (x_draw_glyph_string_foreground): Draw text transparently when
15461 cleartype is in use.
15462
15463 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15464 a font into it unless we have to.
15465
154662008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15467
15468 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15469 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15470
aac0c6e3
MR
154712008-02-18 Jason Rumney <jasonr@gnu.org>
15472
15473 * w32fns.c (Fw32_shell_execute): Encode parameters.
15474
154752008-02-09 Eli Zaretskii <eliz@gnu.org>
15476
15477 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15478
154792008-02-05 Juanma Barranquero <lekktu@gmail.com>
15480
15481 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15482
154832008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15484
15485 * xterm.c (x_set_offset): Don't change the gravity if
15486 CHANGE_GRAVITY is -1.
15487
154882008-02-23 Chong Yidong <cyd@stupidchicken.com>
15489
15490 * fileio.c (auto_save_error_occurred): New var.
15491 (auto_save_error): Set it.
15492 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15493 error occurred.
15494
154952008-02-23 Eli Zaretskii <eliz@gnu.org>
15496
15497 * w32.c (globals_of_w32): Add initializations for
15498 g_b_init_get_sid_sub_authority and
15499 g_b_init_get_sid_sub_authority_count.
15500
155012008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15502
15503 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15504 (font_parse_xlfd): Use them for sanity check.
15505 (Finternal_set_font_style_table): Make sure the table is bijective.
15506
15507 Consolidate the image_cache to the terminal struct.
15508 * termhooks.h (P_): Remove redundant def.
15509 (struct terminal): New field `image_cache'.
15510 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15511 of FRAME_X_IMAGE_CACHE.
15512 * xterm.h (struct x_display_info): Remove image_cache field.
15513 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15514 * w32term.h (struct w32_display_info): Remove image_cache field.
15515 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15516 * macterm.h (struct mac_display_info): Remove image_cache field.
15517 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15518 * xterm.c (x_term_init):
15519 * w32term.c (w32_term_init):
15520 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15521 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15522 Remove declarations.
15523 (clear_image_caches, mark_image_cache): New declarations.
15524 * xfaces.c (clear_face_cache):
15525 * xdisp.c (redisplay_internal): Use clear_image_caches.
15526 * image.c (clear_image_cache): Don't check that a frame is on
15527 a window-system before checking if it shares the same cache.
15528 (clear_image_caches): New function.
15529 (Fclear_image_cache): Use it.
15530 (mark_image): Move from allo.c.
15531 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15532 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15533 (mark_object): Don't call mark_image_cache for frames.
15534 (mark_terminals): Call mark_image_cache.
15535
15536 * lisp.h (Fdelete_terminal): Declare.
15537
15538 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15539 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15540 wrong_type_argument.
15541
155422008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15543
15544 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15545 malayalam.el, and tamil.el. Add sinhala.el.
15546
155472008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15548
15549 * xterm.c (x_connection_closed): Consolidate identical tests.
15550 (x_delete_terminal): Don't crash if called via x_connection_closed.
15551
155522008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15553
15554 * xdisp.c (decode_mode_spec): New arg string.
15555 (display_mode_element): Adjust for the above change.
15556
155572008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15558
15559 * callint.c (Fcall_interactively): Use AREF.
15560
155612008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15562
15563 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15564
155652008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15566
15567 * xfns.c (Fx_show_tip): Set string to " " if empty.
15568
155692008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15570
15571 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15572 with Qt.
15573
155742008-02-17 Kenichi Handa <handa@m17n.org>
15575
15576 * ftfont.c (ftfont_shape): Return Lispy number.
15577
15578 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15579 for GCs.
15580 (Finternal_set_font_selection_order): Call font_update_sort_order
15581 only when enable_font_backend is set.
15582 (realize_x_face): Set face->font_info to that of default face only
15583 when enable_font_backend is set.
15584
15585 * xdisp.c (handle_composition_prop): Set it->c to the fist
15586 character of the composed region.
15587 (fill_composite_glyph_string): Set base_face->font_info to
15588 s->font_info. Get a face for ascii from base_face->ascii_face.
15589 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15590 with a face already decided.
15591 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15592 non-negative.
15593 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15594 call font_prepare_composition unconditionally.
15595
15596 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15597
15598 * xterm.h (struct x_display_info): New member font.
15599
15600 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15601 (x_set_mouse_face_gc, x_new_font): Likewise.
15602 (x_term_init): Setup display_info->font.
15603 (x_delete_terminal): Free display_info->font.
15604
15605 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15606
15607 * ftxfont.c (ftxfont_default_fid): Delete it.
15608 (ftxfont_open): Set xfont->fid to 0.
15609 (ftxfont_end_for_frame): Clear data specific to the frame and the
15610 font-driver.
15611
15612 * xftfont.c (xftfont_default_fid): Delete it.
15613 (xftfont_open): Set xfont->fid to 0.
15614
15615 * fontset.c (FONTSET_OBJLIST): New macro.
15616 (fontset_find_font): Update font-object list of the fontset.
15617 (free_realized_fontset): New function.
15618 (free_face_fontset): Call free_realized_fontset.
15619 (Ffont_info): Call font_close_object only when enable_font_backend
15620 is set.
15621
15622 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15623 [HAVE_NTGUI]: Include w32term.h.
15624 [MAC_OS]: Include macterm.ch.
15625 (font_otf_ValueRecord): Use make_number.
15626 (font_finish_cache): Fix handling of reference count.
15627 (font_clear_cache): Update num_fonts.
15628 (font_open_entity): Update smallest_char_width and
15629 smallest_font_height of the frame.
15630 (font_close_object): Update num_fonts.
15631 (Fclear_font_cache): Fix finding the target cache data.
15632
156332008-02-16 Glenn Morris <rgm@gnu.org>
15634
15635 * fontset.c (Finternal_char_font): Fix compilation warning.
15636
156372008-02-16 Eli Zaretskii <eliz@gnu.org>
15638
15639 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15640 instead of char arrays. Enlarge the size of array passed to
15641 get_token_information.
15642
15643 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15644 warnings.
15645
156462008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15647
15648 * .gdbinit: Don't set `args', it breaks gdb --args.
15649
156502008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15651
15652 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15653 within a narrowed buffer.
15654
156552008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15656
15657 * coding.c (decode_coding_object, encode_coding_object):
15658 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15659
156602008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15661
15662 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15663 hardcoding 1.
15664 (detect_coding_system):
15665 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15666 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15667 * insdel.c (insert_from_gap):
15668 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15669 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15670 (string_to_multibyte):
15671 * character.c (chars_in_text, multibyte_chars_in_text):
15672 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15673
15674 * character.h (FETCH_STRING_CHAR_ADVANCE)
15675 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15676 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15677 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15678
15679 * casefiddle.c (casify_region): Only call after-change and composition
15680 functions on the part of the region that was changed.
15681
15682 * keyboard.c (read_avail_input):
15683 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15684
156852008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15686
15687 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15688 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15689
156902008-02-11 Juanma Barranquero <lekktu@gmail.com>
15691
15692 * w32menu.c (push_submenu_start, push_submenu_end)
15693 (push_left_right_boundary, push_menu_pane, push_menu_item):
15694 * keyboard.c (read_key_sequence): Don't pass args with side effects
15695 to AREF, it fails when compiling with -DENABLE_CHECKING.
15696
156972008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15698
15699 * Makefile.in (${lispsource}international/charprop.el):
15700 Delete this target.
15701
15702 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15703 emacs-unicode-2.
15704
157052008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15706
15707 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15708
157092008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15710
15711 * frame.c (Qnoelisp): New symbol.
15712 (syms_of_frame): Initialize it.
15713 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15714 harmless Elisp code, from a strong `force' from x_connection_closed.
15715 * frame.h (Qnoelisp): Declare.
15716 * xterm.c (x_connection_closed): Pass `noelisp'.
15717
15718 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15719 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15720 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15721 rather than `int' for the type of `type'.
15722
157232008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15724
15725 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15726
15727 * Makefile.in (GNUC): Remove support for gcc-1.x.
15728
157292008-02-10 Richard Stallman <rms@gnu.org>
15730
15731 * lisp.h (ASET): Use AREF, not ASLOT.
15732
157332008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15734
15735 * lisp.h (ASET): Check bounds.
15736
157372008-02-10 Glenn Morris <rgm@gnu.org>
15738
15739 * buffer.c (mode-name): Doc fix.
15740
157412008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15742
15743 * Makefile.in:
15744 * emacs.c:
15745 * gmalloc.c:
15746 * keyboard.c:
15747 * lisp.h:
15748 * m/ibm370aix.h:
15749 * process.c:
15750 * regex.c:
15751 * s/hpux.h:
15752 * sysdep.c:
15753 * sysselect.h:
15754 * systty.h:
15755 * unexec.c:
15756 * w32term.c:
15757 * xsmfns.c:
15758 * xterm.c: Remove code that deals with obsolete variables.
15759
15760 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15761
15762 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15763 nothing else needs it anymore.
15764
157652008-02-09 Eli Zaretskii <eliz@gnu.org>
15766
15767 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15768 instead of unibyte_char_to_multibyte.
15769
157702008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15771
15772 * s/gnu-linux.h: Remove commented out code.
15773
15774 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15775
15776 * Makefile.in: Update what RMS says about using autoconf.
15777 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15778 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15779 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15780 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15781
157822008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15783
15784 * keymap.c (Fkey_description): Move side effect outside of macro call.
15785
15786 * xfaces.c (Finternal_make_lisp_face):
15787 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15788
15789 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15790 (syms_of_fontset): Use ASET.
15791
15792 * fns.c (concat): Move side effect outside of macro call.
15793 (hash_clear): Use ASET.
15794
157952008-02-08 Richard Stallman <rms@gnu.org>
15796
15797 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15798 If FORCE, and frame has a surrogate minibuffer for another frame,
15799 delete the other frame first.
15800
158012008-02-07 Timo Savola <timo.savola@iki.fi>
15802
15803 * xterm.c (x_detect_focus_change): Handle embed client message.
15804 (handle_one_xevent): Ditto.
15805 (handle_one_xevent): If embedded and we get a button press/release,
15806 request focus.
15807 (xembed_set_info, xembed_send_message): New functions.
15808 (x_make_frame_visible): Call xembed_set_info if embedded.
15809 (x_make_frame_invisible): Call xembed_set_info if embedded.
15810 (x_term_init): Initialize Xatom_XEMBED.
15811 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15812 (x_iconify_frame): Ditto.
15813
15814 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15815 (enum xembed_info, enum xembed_message, enum xembed_focus)
15816 (enum xembed_modifier, enum xembed_accelerator): New.
15817 (xembed_set_info, xembed_send_message): Declare.
15818 (FRAME_X_EMBEDDED_P): New.
15819
15820 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15821 gtk_plug_new.
15822
15823 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15824 window ID of a frame.
15825 (x_window): Reparent frame if embedded.
15826 (Fx_create_frame): Don't set border width if embedded.
15827
15828 * emacs.c (USAGE3): Add --parent-id.
15829 (standard_args): Ditto.
15830
158312008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15832
15833 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15834
158352008-02-07 Jim Meyering <meyering@redhat.com>
15836
15837 Use "do...while (0)", not "if (1)...else" in macro definitions.
15838 The latter provokes a warning from gcc about the empty else, when
15839 followed by ";". Also, without that trailing semicolon, it would
15840 silently swallow up any following statement.
15841 * syntax.h (SETUP_SYNTAX_TABLE)
15842 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15843 * buffer.h (DECODE_POSITION): Likewise.
15844 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15845 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15846 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15847 (FETCH_CHAR_ADVANCE): Likewise.
15848 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15849
158502008-02-07 Jim Meyering <meyering@redhat.com>
15851
15852 * lread.c [lint]: Don't include <sys/inode.h>.
15853
158542008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15855
15856 * xselect.c (x_handle_dnd_message):
15857 * xmenu.c (digest_single_submenu, xmenu_show):
15858 * xdisp.c (with_echo_area_buffer_unwind_data)
15859 (format_mode_line_unwind_data, unwind_format_mode_line)
15860 (display_menu_bar):
15861 * eval.c (Ffetch_bytecode):
15862 * doc.c (store_function_docstring):
15863 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15864 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15865 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15866
158672008-02-07 Kenichi Handa <handa@m17n.org>
15868
15869 * ftxfont.c (ftxfont_open): Don't set
15870 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15871
15872 * ftfont.c (ftfont_open): Fix previous change.
15873
158742008-02-06 Jason Rumney <jasonr@gnu.org>
15875
15876 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15877 Use cached metrics for ASCII characters.
15878 (w32font_open_internal): Don't set font's owning_frame.
15879 Cache metrics for ASCII characters.
15880
15881 * w32font.h (struct w32font_info): Add ascii_metrics.
15882 Remove owning_frame.
15883
158842008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15885
15886 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15887 to negative value.
15888
15889 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15890
15891 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15892
15893 * charset.c (syms_of_charset): Set QCtest and Qeq.
15894
158952008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15896
15897 * process.c (Fstart_process):
15898 * callproc.c (Fcall_process): Handle the case where
15899 Funhandled_file_name_directory returns nil.
15900
15901 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15902 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15903 * font.c (check_gstring): Use them and AREF to access the vector before
15904 we know it's really a gstring.
15905 (Ffont_shape_text): Fix typo.
46e722a9 15906 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15907
15908 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15909 Declare.
15910
15911 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15912
159132008-02-05 Jason Rumney <jasonr@gnu.org>
15914
15915 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15916 Set smallest_font_height and smallest_char_width in display info.
15917
159182008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15919
15920 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15921
159222008-02-05 Miles Bader <miles@gnu.org>
15923
15924 * xfaces.c (get_lface_attributes, merge_named_face)
15925 (lookup_named_face, lookup_derived_face, realize_named_face):
15926 Revert 2008-02-01 change by cyd@stupidchicken.com.
15927
159282008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15929
15930 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15931 fallback fonts.
15932 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15933
159342008-02-04 Jason Rumney <jasonr@gnu.org>
15935
15936 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15937 set full_name.
15938 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15939
159402008-02-03 Jason Rumney <jasonr@gnu.org>
15941
15942 * makefile.w32-in (OBJ1): Include font.o here.
15943 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15944
159452008-02-02 Jason Rumney <jasonr@gnu.org>
15946
15947 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15948
159492008-02-01 Jason Rumney <jasonr@gnu.org>
15950
15951 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15952
15953 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15954
159552008-02-01 Andreas Schwab <schwab@suse.de>
15956
15957 * Makefile.in (shortlisp, lisp): Update for rename of
15958 ../lisp/language/myanmar.el.
15959
159602008-02-01 Chong Yidong <cyd@stupidchicken.com>
15961
15962 * xfaces.c (get_lface_attributes): Delete function.
15963 (merge_named_face, lookup_named_face, lookup_derived_face)
15964 (realize_named_face): Call lface_from_face_name directly, and use
15965 the fact that merge_face_vectors does not alter its FROM argument.
15966
159672008-02-01 Jason Rumney <jasonr@gnu.org>
15968
15969 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15970 input in the default locale. Handle non-Unicode multibyte input.
15971
159722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15973
15974 * fontset.c (reorder_font_vector): Exclude nil elements from the
15975 font group. Don't try multiple fonts.
15976 (fontset_font): Adjust for the above change.
15977 (Finternal_char_font): Return nil if the found font doesn't
15978 contain the character ch.
15979
15980 * Makefile.in (lisp, shortlisp): Add cham.el.
15981
159822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15983
15984 * font.h (FONTP): Make it return 1 also for a font-object.
15985
15986 * .gdbinit (xfontset): New function.
15987
15988 * font.c (font_find_for_lface): Check if the character C is
15989 supported or not only for the first font.
15990
15991 * fontset.c (reorder_font_vector): Fix typo.
15992 (fontset_find_font): Don't add a font-spec specifying a script.
15993 Use 0 (not Qt) for the indication of empty font-group. Change the
15994 format of RFONT-DEF. Return Qt if no font in the font-group
15995 support the character.
15996 (fontset_font): Adjust for the above change. If no font was
15997 found the character, remember that.
15998 (face_for_char): Adjust for the change of RFONT-DEF.
15999 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16000 no font for the target.
16001 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16002
160032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16004
16005 * font.c (font_load_for_face): Handle the case that the font in
16006 face->lface is a string.
16007
160082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16009
16010 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16011
160122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16013
16014 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16015 Fix previous change. If the frame is not on a window system,
16016 signal an error.
16017
160182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16019
16020 * coding.c (decode_coding_object, encode_coding_object): Adjust
16021 marker positions after conversion.
16022
16023 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16024
160252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16026
16027 * font.c (font_find_for_lface): Fix the handling of the return
16028 value of font_has_char.
16029 (Ffont_shape_text): Fix previous change.
16030
16031 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16032 (fontset_ref_and_range): Delete it.
16033 (fontset_find_font): Call char_table_ref_and_range instead of
16034 FONTSET_REF_AND_RANGE.
16035 (make_fontset): Don't setup font groups of Latin here.
16036 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16037 (new_fontset_from_font): Make the specified font the default for
16038 all Latin characters.
16039
160402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16041
16042 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16043 is on a window system before accessing the fontset of the frame.
16044
160452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16046
16047 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16048
16049 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16050 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16051
16052 * font.c (Ffont_shape_text): If the font driver doesn't have a
16053 shaper function, make zero-width glyphs to have at least one-pixel
16054 width. Fix setting of `to' field of glyphs.
16055
160562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16057
16058 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16059 glyphs.
16060
16061 * font.h (struct font_driver): Improve docstring of member `shape'.
16062
160632008-02-01 Kenichi Handa <handa@m17n.org>
16064
16065 * composite.c (syms_of_composite): Fix docstring of
16066 auto-composition-function.
16067
16068 * font.h (LGLYPH_SIZE): New macro.
16069
16070 * font.c (Ffont_fill_gstring): Stop filling when a character not
16071 supported by the font is found.
16072 (Ffont_shape_text): When a shape callback function returns nil,
16073 try at most two more times with larger gstring.
16074 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16075
16076 * xdisp.c (handle_auto_composed_prop): Change the argument to
16077 auto-composition-function.
16078
16079 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16080 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16081 Lispy glyph and store it in the lgstring.
16082
16083 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16084
16085 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16086
160872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16088
16089 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16090
16091 * fontset.c (Vfont_encoding_charset_alist): New variable.
16092 (syms_of_fontset): DEFVAR it.
16093 (reorder_font_vector, fontset_find_font): Optimize for the case of
16094 no need of reordering.
16095 (face_for_char): Map the charset property by
16096 Vfont_encoding_charset_alist.
16097
160982008-02-01 Jason Rumney <jasonr@gnu.org>
16099
16100 * w32font.c (logfonts_match): Don't check adstyle here.
16101 (font_matches_spec): Check here against physical font instead.
16102 (add_font_entity_to_list): Avoid some substitutions.
16103
16104 * font.c (font_parse_fcname): Default weight and slant to normal.
16105 (font_score): Prefer normal fonts if weight or slant unspecified.
16106 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16107 match freetype scores.
16108
161092008-02-01 Jason Rumney <jasonr@gnu.org>
16110
16111 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16112 font, as it may have been deleted.
16113 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16114 most common hyphenless variation.
16115 (logfonts_match): Check generic family.
16116 (font_matches_spec): Don't check generic family here.
16117 (fill_in_logfont): Set generic family based on adstyle.
16118
16119 * w32font.h (w32font_get_cache): Update declaration.
16120
161212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16122
16123 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16124
16125 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16126 If none of the new drivers are available, call font_update_drivers
16127 with the old drivers.
16128
16129 * w32font.c (w32font_get_cache): Adjust the argument type.
16130
16131 * xfont.c (xfont_get_cache): Adjust the argument type.
16132
16133 * font.h (struct font_driver): Change argument type of get_cache.
16134
16135 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16136
16137 * font.c (Ffont_get): Fix arguments to Fassoc.
16138 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16139 (font_clear_cache): New function.
16140 (font_list_entities, font_matching_entity): Use font_get_cache.
16141 (font_update_drivers): Call font_clear_cache when finishing a driver.
16142
16143 * fontset.c (fontset_find_font): Fix previous change.
16144
161452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16146
16147 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16148 dpyinfo->font_table.
16149 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16150 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16151
16152 * font.c (font_at): Handle the case that the arg C is negative.
16153 Handle the unibyte case.
16154 (Ffont_at): Call font_at with the arg C -1.
16155
16156 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16157 the position here, and call font_at with the arg C -1.
16158 Don't check the range of the existing composition at the point.
16159
161602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16161
16162 * fontset.c (fontset_add): New args charset_id and family.
16163 Change caller.
16164 (load_font_get_repertory, fontset_find_font): Assume that
16165 font_spec is always a font-spec object.
16166 (Fset_fontset_font): Always store a font-spec object in a fontset.
16167
16168 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16169 instead of get_property_and_range.
16170
161712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16172
16173 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16174 (xftfont_open): Don't keep locking face.
16175 (xftfont_close): Don't unlock face.
16176 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16177
16178 * fontset.c (fontset_find_font): Don't prefer a font of
16179 supplementary charset.
16180
161812008-02-01 Kenichi Handa <handa@m17n.org>
16182
16183 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16184 script, langsys_tag to langsys, new member script.
16185 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16186 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16187 listing to the script specified in that property. Fix arg to
16188 OTF_check_features.
16189
161902008-02-01 Jason Rumney <jasonr@gnu.org>
16191
16192 * w32font.h: New file.
16193
16194 * w32font.c: Include it.
16195 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16196 (w32font_open): Set owning_frame.
16197 (w32font_text_extents): Use owning_frame.
16198 (struct font_callback_data): Add opentype_only field.
16199 (add_font_entity_to_list): Use it to filter fonts.
16200 Don't check against full name.
16201 (w32font_list_internal): New function.
16202 (w32font_list): Use it.
16203 (w32font_match_internal): New function.
16204 (w32font_match): Use it.
16205 (w32font_open_internal): New function.
16206 (w32font_open): Use it.
16207 (w32font_get_cache, w32font_close, w32font_has_char)
16208 (w32font_encode_char, w32font_text_extents, w32font_draw):
16209 Make non-static.
16210
16211 * makefile.w32-in (w32font.o): Depend on w32font.h.
16212
162132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16214
16215 * charset.c (Fdefine_charset_internal): Record a supplementary
16216 charset at the tail of Vcharset_order_list.
16217
16218 * font.c (Ffont_shape_text): Fix the return value.
16219
16220 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16221
16222 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16223
162242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16225
16226 * ftfont.c (struct OpenTypeSpec): New struct.
16227 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16228 (ftfont_get_open_type_spec): New function.
16229 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16230
16231 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16232
162332008-02-01 Jason Rumney <jasonr@gnu.org>
16234
16235 * w32font.c (add_font_entity_to_list): Compare only the beginning
16236 of full name.
16237
162382008-02-01 Kenichi Handa <handa@m17n.org>
16239
16240 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16241 Never return HANDLED_RECOMPUTE_PROPS.
16242
162432008-02-01 Kenichi Handa <handa@m17n.org>
16244
16245 * font.c (font_gstring_produce): Delete it.
16246
16247 * composite.h (COMPOSITION_METHOD):
16248 Handle COMPOSITION_WITH_GLYPH_STRING.
16249
162502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16251
16252 * xfont.c (Qx): Delete.
16253 (syms_of_xfont): Don't initialize Qx.
16254
16255 * composite.h (enum composition_method):
16256 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16257
162582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16259
16260 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16261 (choose_face_font): Accept new form of font-spec.
16262
16263 * frame.h (font_driver_list): Declare it unconditionally.
16264 (struct frame): Define members font_driver_list and font_data_list
16265 unconditionally.
16266
16267 * fontset.c: Include "font.h" unconditionally.
16268 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16269 (Fset_fontset_font): Accept a font-spec object.
16270
16271 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16272 PIXEL_SIZE part a wild card.
16273
16274 * dispextern.h (struct glyph_string): Define members clip and
16275 num_clips unconditionally.
16276 (struct face): Define members font_info and extra unconditionally.
16277
16278 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16279 ftfont_info only when HAVE_LIBOTF is defined.
16280
162812008-02-01 Andreas Schwab <schwab@suse.de>
16282
16283 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16284 and end.
16285
162862008-02-01 Jason Rumney <jasonr@gnu.org>
16287
16288 * w32font.c (w32font_driver): Add new fields.
16289
162902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16291
16292 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16293 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16294 (LIBES): Add @M17N_FLT_CFLAGS@.
16295
16296 * composite.c (compose_text): Don't treat the new style
16297 composition specially.
16298
16299 * emacs.c (main): Call syms_of_font unconditionally.
16300
16301 * font.h (FONT_ENTITY_NOT_LOADABLE)
16302 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16303 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16304 (struct font_driver): New member shape.
16305 (font_registry_charsets): Extern it.
16306 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16307 (font_otf_capability, font_drive_otf): Delete their externs.
16308
16309 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16310 (font_charset_alist, font_registry_charsets): Move from xfont.c
16311 and rename.
16312 (font_prop_validate_otf): New function.
16313 (font_property_table): Register it for QCotf.
16314 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16315 (font_drive_otf): Delete.
16316 (font_prepare_composition): New arg F. Adjust for the change of
16317 lispy gstring.
16318 (font_find_for_lface): New arg C.
16319 (font_load_for_face): Adjust for the change of font_find_for_lface.
16320 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16321 lispy gstring.
16322 (Ffont_shape_text): New function.
16323 (Fopen_font): If the font size is not given, use 12-pixel.
16324 (Ffont_at): New arg STRING.
16325 (syms_of_font): Initalize font_charset_alist.
16326 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16327 conditionally.
16328
16329 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16330 fonts of the same font-spec. Change the format of RFONT-DEF.
16331 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16332 Adjust for the change of RFONT-DEF.
16333 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16334
16335 * ftfont.h: New file.
16336
16337 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16338 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16339 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16340 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16341 font_otf_capability and font_drive_otf, set ftfont_shape.
16342 (ftfont_list): Adjust for the change of :otf property value.
16343 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16344 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16345 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16346 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16347 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16348 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16349
16350 * w32term.c (x_draw_composite_glyph_string_foreground):
16351 Adjust for the change of lispy gstring.
16352
16353 * xdisp.c (handle_composition_prop): Adjust for the change of
16354 lispy gstring. Call a function for auto-composition with the
16355 third arg it->window.
16356 (fill_composite_glyph_string): Adjust for the change of lispy string.
16357 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16358
16359 * xfaces.c (set_font_frame_param): Adjust for the change of
16360 font_find_for_lface.
16361
16362 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16363 (xfont_registry_charsets): Likewise. Change caller.
16364 (syms_of_xfont): Don't handle x_font_charset_alist.
16365
16366 * xftfont.c: Include "ftfont.h".
16367 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16368 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16369 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16370 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16371 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16372 Set xftfont_driver.shape to xftfont_shape.
16373
16374 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16375 the change of lispy gstring.
16376
163772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16378
16379 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16380
163812008-02-01 Jason Rumney <jasonr@gnu.org>
16382
16383 * w32font.c (w32font_draw): Fill background manually.
16384
163852008-02-01 Jason Rumney <jasonr@gnu.org>
16386
16387 * font.c (Qfontp): Remove unused symbol.
16388 (QCantialias): New symbol.
16389 (syms_of_font): Define it.
16390 (font_property_table): Set a validator for QCantialias.
16391
16392 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16393 Define if not already.
16394 (QCfamily): Share with xfaces.c.
16395 (Qstandard, Qsubpixel, Qnatural): New symbols.
16396 (syms_of_w32font): Define them. Don't define QCfamily here.
16397 (w32_antialias_type, lispy_antialias_type): New functions.
16398 (w32_enumfont_pattern_entity): New arg requested_font.
16399 Set antialias parameter if non-default was requested.
16400 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16401
164022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16403
16404 * lread.c (read1): Undo the previous change.
16405
164062008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16407
16408 * frame.c (Fdelete_frame): Call font_update_drivers only when
16409 USE_FONT_BACKEND is defined.
16410
164112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16412
16413 * font.h (struct font_bitmap): New member bits_per_pixel.
16414 (struct font_driver): New members start_for_frame and end_for_frame.
16415 (struct font_data_list): New struct.
16416 (font_put_frame_data, font_get_frame_data): Extern them.
16417
16418 * frame.h (struct frame): New member font_data_list.
16419
16420 * font.c (font_update_drivers): Call driver->start_for_frame and
16421 driver->end_for_frame at proper timings.
16422 (font_put_frame_data, font_get_frame_data): New functions.
16423 (Ffont_spec): Add usage in the docstring.
16424
16425 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16426 (Fdelete_frame): Call font_update_drivers.
16427
16428 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16429 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16430 (xftfont_get_xft_draw): New function.
16431 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16432 (xftfont_end_for_frame): New function.
16433 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16434
16435 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16436 Change argument. Cache GCs in the per-frame data.
16437 (struct ftxfont_frame_data): New struct.
16438 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16439 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16440 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16441 (ftxfont_end_for_frame): New function.
16442 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16443
16444 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16445
164462008-02-01 Kenichi Handa <handa@m17n.org>
16447
16448 * xselect.c (Vselection_coding_system)
16449 (Vnext_selection_coding_system): Delete them.
16450 (syms_of_xselect): Don't declare selection-coding-system and
16451 next-selection-coding-system. They are declared in select.el.
16452
164532008-02-01 Jason Rumney <jasonr@gnu.org>
16454
16455 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16456
16457 * w32fns.c: Include imm.h.
16458 (get_composition_string_fn, get_ime_context_fn): New optional
16459 system functions.
16460 (globals_of_w32fns): Load them from imm32.dll.
16461 (ignore_ime_char): New flag.
16462 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16463 WM_IME_ENDCOMPOSITION messages.
16464
16465 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16466 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16467
164682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16469
16470 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16471 (READCHAR_REPORT_MULTIBYTE): New macro.
16472 (readchar): New 2nd arg MULTIBYTE.
16473 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16474 Make symbol's name multibyte according to the multibyteness of the
16475 source.
16476
164772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16478
16479 * xfaces.c (face_for_overlay_string): Call lookup_face with
16480 correct arguments (fix of synching with the trunk).
16481
164822008-02-01 Kenichi Handa <handa@m17n.org>
16483
16484 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16485 (font_prop_validate_non_neg, font_prop_validate_spacing):
16486 Delete argument prop_index.
16487 (font_property_table): Change arguments to validater. Change Callers.
16488 (font_lispy_object): Delete.
16489 (font_at): Use font_find_object instead fo font_lispy_object.
16490
164912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16492
16493 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16494 and file names.
16495
164962008-02-01 Jason Rumney <jasonr@gnu.org>
16497
16498 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16499 (font_matches_spec): Remove debug output.
16500 (add_font_entity_to_list): Avoid using substituted fonts.
16501
165022008-02-01 Jason Rumney <jasonr@gnu.org>
16503
16504 * doc.c (Fsnarf_documentation):
16505 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16506
165072008-02-01 Miles Bader <miles@gnu.org>
16508
16509 * dispextern.h (struct glyph_row): Only define "clip" field if
16510 HAVE_WINDOW_SYSTEM is defined.
16511
165122008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16513
16514 Fix up multi-tty merge.
16515
16516 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16517 and indentation.
16518
16519 * xfaces.c (free_realized_face, clear_face_gcs):
16520 Include font_done_for_face in the input_blocked section, just in case.
16521
16522 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16523 (get_char_face_and_encoding): Undo last change and remove the *other*
16524 duplicate definition (i.e. keep the one that's better scoped and that
16525 includes code for the font-backend).
16526
16527 * terminal.c (create_terminal): Default keyboard_coding to
16528 `no-conversion' and terminal_coding to `undecided'.
16529
16530 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16531
16532 * fontset.c (free_realized_fontsets): Check that the table entry does
16533 contain a fontset before trying to compare it to `base'.
16534
16535 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16536 syms_of_charset, and syms_of_coding earlier because init_window_once
16537 now needs Vcoding_system_hash_table to be setup.
16538
16539 * coding.h (default_buffer_file_coding): Remove.
16540
16541 * coding.c (default_buffer_file_coding): Remove.
16542 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16543 than ->symbol, and use the terminal-local coding system.
16544 (syms_of_coding): Don't setup the coding-systems that are not
16545 terminal-local.
16546 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16547
16548 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16549 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16550
16551 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16552 in chartab.c and were re-added here by mistake.
16553 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16554
16555 * doc.c (Fsnarf_documentation):
16556 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16557 src to etc.
16558
16559 * ChangeLog.10: Add mistakenly removed entry.
16560
165612008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16562
16563 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16564
165652008-02-01 Miles Bader <miles@gnu.org>
16566
16567 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16568 Add extra args to FACE_FOR_CHAR.
16569
165702008-02-01 Kenichi Handa <handa@m17n.org>
16571
16572 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16573 in sequence.
16574
16575 * chartab.c (map_sub_char_table, map_char_table): If the range
16576 contains just one character, call the function with that character
16577 even if the depth is not 3.
16578
165792008-02-01 Jason Rumney <jasonr@gnu.org>
16580
16581 * w32font.c (w32font_text_extents): Calculate metrics for the
16582 whole string.
16583
165842008-02-01 Jason Rumney <jasonr@gnu.org>
16585
16586 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16587
165882008-02-01 Jason Rumney <jasonr@gnu.org>
16589
16590 * w32term.c (x_set_glyph_string_clipping): Use
16591 get_glyph_string_clip_rects.
16592 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16593 Adjust for the change of struct glyph_string.
16594
16595 * w32font.c (w32font_draw): Do clipping here.
16596
165972008-02-01 Kenichi Handa <handa@m17n.org>
16598
16599 * xftfont.c (xftfont_draw): Adjust for the change of struct
16600 glyph_string.
16601
16602 * xterm.c (x_set_glyph_string_clipping): Use
16603 get_glyph_string_clip_rects.
16604 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16605 Adjust for the change of struct glyph_string.
16606
16607 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16608 the resulting clip(s}.
16609 (expose_overlaps): Add arg r. Change callers. Set it to
16610 row->clip temporarily.
16611 (expose_window): Redraw rows overlapping the exposed area.
16612
16613 * dispextern.h (struct glyph_row): New member clip.
16614 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16615 clip_height, new member clip, and num_clips.
16616
166172008-02-01 Kenichi Handa <handa@m17n.org>
16618
16619 * data.c (Fchar_or_string_p): Fix docstring.
16620
166212008-02-01 Kenichi Handa <handa@m17n.org>
16622
16623 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16624 create a temporary XftDraw object.
16625
166262008-02-01 Kenichi Handa <handa@m17n.org>
16627
16628 * font.c (Ffontp): Fix docstring.
16629
16630 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16631 strong evidence of ISO-2022.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16636 SYNTAX_ENTRY_FOLLOW_PARENT.
16637
166382008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16639
16640 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16641 its type.
16642 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16643 Update to the new type of weak_hash_tables and next_weak.
16644
16645 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16646 a plain C pointer to Lisp_Hash_Table.
16647
16648 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16649 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16650 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16651 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16652 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16653 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16654 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16655 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16656 (GC_EQ): Remove since they've been identical to their non-GC_
16657 alter-egos ever since the markbit was eradicated.
16658
16659 * alloc.c:
16660 * buffer.c:
16661 * buffer.h:
16662 * data.c:
16663 * fileio.c:
16664 * filelock.c:
16665 * fns.c:
16666 * frame.h:
16667 * lisp.h:
16668 * macterm.c:
16669 * print.c:
16670 * process.c:
16671 * w32fns.c:
16672 * w32menu.c:
16673 * w32term.c:
16674 * xfns.c:
16675 * xmenu.c:
16676 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16677
166782008-02-01 Kenichi Handa <handa@m17n.org>
16679
16680 * chartab.c (map_sub_char_table): Make it work for the top-level
16681 char-table. Fix handling of parent char-table.
16682 (map_char_table): Adjust for the above change.
16683
166842008-02-01 Jason Rumney <jasonr@gnu.org>
16685
16686 * w32font.c (Qgdi): Rename from Qw32.
16687
166882008-02-01 Jason Rumney <jasonr@gnu.org>
16689
16690 * w32bdf.c (get_quoted_string): Make function static.
16691
166922008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16695 bigger ascent and descent than those of the font, use them as
16696 font's ascent and descent.
16697
166982008-02-01 Kenichi Handa <handa@m17n.org>
16699
16700 * Makefile.in (${lispsource}international/charprop.el): Move this
16701 target within "#ifdef HAVE_UNIDATA" and "#endif".
16702
167032008-02-01 Kenichi Handa <handa@m17n.org>
16704
16705 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16706 (shortlisp): Add ../lisp/language/tai-viet.el.
16707
167082008-02-01 Ulrich Mueller <ulm@gentoo.org>
16709
16710 * Makefile.in (${lispsource}international/charprop.el): Depend on
16711 temacs${EXEEXT}.
16712
167132008-02-01 Jason Rumney <jasonr@gnu.org>
16714
16715 * w32font.c (w32font_close): Delete the GDI font object.
16716
16717 * w32menu.c: Include character.h.
16718
16719 * w32proc.c: Likewise.
16720
16721 * w32select.c: Likewise.
16722
16723 * makefile.w32-in (w32proc.o): Depend on character.h.
16724
167252008-02-01 Jason Rumney <jasonr@gnu.org>
16726
16727 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16728
16729 * w32menu.c (syms_of_w32menu): Likewise.
16730
16731 * w32proc.c (syms_of_ntproc): Likewise.
16732
16733 * w32select.c (syms_of_w32select): Likewise.
16734
16735 * w32term.c (syms_of_w32term): Likewise.
16736
167372008-02-01 Jason Rumney <jasonr@gnu.org>
16738
16739 * w32font.c (w32font_draw): Delete brush after using it.
16740
167412008-02-01 Jason Rumney <jasonr@gnu.org>
16742
16743 * w32font.c (w32font_open): Don't set font_idx.
16744 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16745 to font settings.
16746 (w32font_draw): Fill background explicitly.
16747
167482008-02-01 Jason Rumney <jasonr@gnu.org>
16749
16750 * w32term.c (w32_initialize): Don't call w32font_initialize.
16751
16752 * w32font.c (w32font_info): Remove subranges.
16753 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16754 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16755 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16756 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16757 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16758 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16759 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16760 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16761 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16762 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16763 New symbols.
16764 (font_callback_data): New struct.
16765 (w32font_list, w32font_match): Use it.
16766 (w32font_open): Don't populate subranges.
16767 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16768 (w32font_encode_char): Always return unicode code-point as-is.
16769 (w32font_text_extents): Supply a transformation matrix to
16770 GetGlyphOutline. Never look up by glyph index. Avoid looping
16771 twice. Use unicode version of GetTexExtentPoint32 instead of
16772 glyph index version.
16773 (set_fonts_frame): Remove.
16774 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16775 set frame parameter. Use backward compatible fake foundries.
16776 Save generic family in extra slot under QCfamily. Make width slot
16777 constant. Save QCspacing value. Save list of scripts instead of
16778 binary subranges.
16779 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16780 (add_font_entity_to_list): Use font_callback_data struct. Filter
16781 unwanted fonts.
16782 (add_one_font_entity_to_list): Use font_callback_data struct.
16783 (w32_registry): Default to iso10646_1.
16784 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16785 string font registries. Don't fill in font name if it is a generic
16786 family name, fill family instead. Use spacing, family and script
16787 extra info to fill pitch, family and charset fields.
16788 (list_all_matching_fonts): Use font_callback_data struct.
16789 (unicode_range_for_char): Remove.
16790 (font_supported_scripts): New function.
16791 (w32font_initialize): Remove.
16792 (syms_of_w32font): Update which symbols are defined.
16793
167942008-02-01 Jason Rumney <jasonr@gnu.org>
16795
16796 * font.c (font_pixel_size): Reverse assq_no_quit args.
16797
16798 * w32term.h (FONT_WIDTH): Report max width, not average.
16799 (FONT_MAX_WIDTH): Remove.
16800 (FONT_AVG_WIDTH): New macro.
16801
16802 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16803 redefinition of FONT_WIDTH.
16804
16805 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16806 (w32_cache_char_metrics): Use FONT_WIDTH.
16807
16808 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16809
168102008-02-01 Jason Rumney <jasonr@gnu.org>
16811
16812 * w32font.c (w32font_open): Make lfHeight negative.
16813
16814 * w32fns.c (x_default_font_parameter): Use new style font name.
16815 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16816
168172008-02-01 Jason Rumney <jasonr@gnu.org>
16818
16819 * w32font.c (QCsubranges): New symbol.
16820 (w32font_open, w32font_has_char): Get subranges from subproperty
16821 of extra.
16822 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16823 (syms_of_w32font): Define :subranges symbol.
16824
16825 * font.c (font_put_extra): Expose externally.
16826
16827 * font.h (font_put_extra): Move declaration from font.c.
16828
16829 * font.c (Ffont_get): Use font driver to determine otf capability.
16830 (adjust_anchor): Check if driver defines anchor_point before using.
16831
16832 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16833 (w32font_draw): Use options.
16834 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16835 Fix detection of truetype fonts.
16836 (registry_to_w32_charset): Handle charsets other than iso8859-1
16837 expressed as lisp symbols.
16838 (w32_registry): Express charset as lisp symbol.
16839 (fill_in_logfont): Reverse pixel and point height logic.
16840 Don't set width here. Set quality to default.
16841
16842 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16843 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16844
16845 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16846 Remove redundant loop and allocation.
16847
16848 * makefile.w32-in (font.o, w32font.o): New objects.
16849 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16850 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16851
16852 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16853 STORE_XCHARB a valid l-value.
16854
16855 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16856 calculations for non-Truetype fonts.
16857 (x_draw_glyph_string): Sync with xterm.c.
16858 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16859 Remove redundant code.
16860 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16861
16862 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16863 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16864
16865 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16866 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16867
16868 * w32font.c: New file for w32 font backend.
16869
168702008-02-01 Kenichi Handa <handa@m17n.org>
16871
16872 * term.c: Don't include "buffer.h" twice.
16873
168742008-02-01 Kenichi Handa <handa@m17n.org>
16875
16876 * character.c (Funibyte_string): New function.
16877 (syms_of_character): Defsubr it.
16878
168792008-02-01 Jason Rumney <jasonr@gnu.org>
16880
16881 * w32term.c [USE_FONT_BACKEND]:
16882 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16883 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16884 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16885 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16886 (x_free_frame_resources): Sync with xterm.c.
16887
168882008-02-01 Andreas Schwab <schwab@suse.de>
16889
16890 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16891 char-table size.
16892
168932008-02-01 Kenichi Handa <handa@m17n.org>
16894
16895 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16896
168972008-02-01 Kenichi Handa <handa@m17n.org>
16898
16899 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16900 font_otf_gpos, add font_drive_otf.
16901
16902 * fontset.c (fontset_find_font): Pay attention to font size
16903 specified for a font.
16904 (reorder_font_vector): Check contents of font_def.
16905
16906 * font.c (struct otf_list): Delete it.
16907 (otf_list): Make it a lisp variable.
16908 (otf_open): Use lispy otf_list.
16909 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16910 (check_otf_features): New function.
16911 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16912 New functions.
16913 (font_drive_otf): New function merging font_otf_gsub and
16914 font_otf_gpos.
16915 (font_open_for_lface): New arg spec. Change argument order.
16916 (font_load_for_face): Adjust for the change of font_open_for_lface.
16917 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16918 Ffont_otf_gpos.
16919 (syms_of_font): Staticpro otf_list. Delete defsubr of
16920 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16921
16922 * xfaces.c (set_font_frame_param): Adjust for the change of
16923 font_open_for_lface.
16924
16925 * font.h (font_open_for_lface): Adjust prototype.
16926 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16927 member otf_drive.
16928 (font_otf_gsub, font_otf_gpos): Delete externs.
16929 (font_drive_otf): Extern it.
16930
169312008-02-01 Kenichi Handa <handa@m17n.org>
16932
16933 * font.c (font_at): If the window W is not on a window system,
16934 return Qnil.
16935
16936 * coding.c (produce_chars, encode_coding): Don't call
16937 insert_from_gap if no characters to produce.
16938
169392008-02-01 Kenichi Handa <handa@m17n.org>
16940
16941 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16942 Fclear_face_cache.
16943
16944 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16945
169462008-02-01 Miles Bader <miles@gnu.org>
16947
16948 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16949 Parse "--disable-font-backend" option.
16950 (standard_args): Add "--disable-font-backend" option.
16951
169522008-02-01 Kenichi Handa <handa@m17n.org>
16953
16954 * fontset.c (fontset_find_font): New function.
16955 (fontset_font): Use fontset_find_font.
16956 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16957 Register the specified font for all Latin characters.
16958 (new_fontset_from_font): Register the specified font for all Latin
16959 characters.
16960 (dump_fontset): For a realized fontset, include the base fontset
16961 name in the returned vector.
16962
169632008-02-01 Kenichi Handa <handa@m17n.org>
16964
16965 * character.h (CHAR_STRING): Cast C to unsigned on calling
16966 char_string.
16967
16968 * character.c (char_string): Type of arg C changed to unsigned.
16969 Signal an error if C is an invalid character code.
16970
16971 * editfns.c (general_insert_function, Fchar_to_string):
16972 Use CHARACTERP, not INTEGERP.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16977 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16978
16979 * regex.c (analyse_first): Fix for multibyte characters in "case
16980 charset:" and "case categoryspec:".
16981
169822008-02-01 Andreas Schwab <schwab@suse.de>
16983
16984 * Makefile.in (LIBES): Move standard libraries to the end.
16985
169862008-02-01 Kenichi Handa <handa@m17n.org>
16987
16988 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16989 nonzero, don't shrink the buffer nextb.
16990
16991 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16992
16993 * coding.c (coding_alloc_by_making_gap): New arg offset.
16994 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16995 offset.
16996 (decode_coding_iso_2022): Update coding->safe_charsets.
16997 (decode_coding_gap): Temporarily set
16998 current_buffer->text->inhibit_shrinking to 1.
16999
170002008-02-01 Kenichi Handa <handa@m17n.org>
17001
17002 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17003 indexing into elements of s->cmp and s->char2b.
17004
170052008-02-01 Juanma Barranquero <lekktu@gmail.com>
17006
17007 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17012 target_multibyte instead of multibyte.
17013 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17014 (bcmp_translate): Change the argument name from multibyte to
17015 target_multibyte.
17016
170172008-02-01 Kenichi Handa <handa@m17n.org>
17018
17019 These changes are to compile a regexp into a pattern that can be
17020 used both for multibyte and unibyte targets.
17021
17022 * Makefile.in (search.o): Depend on charset.h.
17023
17024 * character.c (multibyte_char_to_unibyte_safe): New function.
17025
17026 * search.c: Include "charset.h".
17027 (compile_pattern_1): Delete argument multibyte. Don't set
17028 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17029 (compile_pattern): Don't compare cp->buf.target_multibyte.
17030 Compare cp->buf.charset_unibyte.
17031 (compile_pattern): Set cp->buf.target_multibyte.
17032
17033 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17034
17035 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17036
17037 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17038 multibyte. Change callers.
17039 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17040 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17041 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17042 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17043 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17044 (regex_compile): Make the compiled pattern usable both for
17045 multibyte and unibyte targets.
17046 (analyse_first): Make the fastmap usable both for multibyte and
17047 unibyte targets.
17048 (TRANSLATE_VIA_MULTIBYTE): Delete.
17049 (re_match_2_internal): Pay attention to the case that the
17050 multibyteness of bufp and target may be different.
17051
170522008-02-01 Kenichi Handa <handa@m17n.org>
17053
17054 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17055 empty box occupy at least one column width.
17056
170572008-02-01 Miles Bader <miles@gnu.org>
17058
17059 * Makefile.in: Remove redundant HAVE_XFT clause.
17060
170612008-02-01 Kenichi Handa <handa@m17n.org>
17062
17063 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17064
170652008-02-01 Kenichi Handa <handa@m17n.org>
17066
17067 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17068 being nil.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17073
170742008-02-01 Kenichi Handa <handa@m17n.org>
17075
17076 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17077
170782008-02-01 Kenichi Handa <handa@m17n.org>
17079
17080 * search.c (simple_search): Fix previous change.
17081
170822008-02-01 Kenichi Handa <handa@m17n.org>
17083
17084 * xftfont.c (ftfont_font_format): Extern declaration.
17085
17086 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17087
17088 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17089 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17090
17091 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17092 (ftfont_font_format): Fix previous change.
17093
17094 * font.h (Ffont_xlfd_name): EXFUN it.
17095
17096 * font.c (font_parse_xlfd): Fix the array size of `f'.
17097 (register_font_driver): Use EQ to compare driver->type.
17098
17099 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17100 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17101 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17102
171032008-02-01 Kenichi Handa <handa@m17n.org>
17104
17105 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17106 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17107
171082008-02-01 Kenichi Handa <handa@m17n.org>
17109
17110 * xfont.c (xfont_open): Set font->format.
17111
17112 * xftfont.c (xftfont_open): Set font->format.
17113
17114 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17115 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17116 (ftfont_open): Set font->format.
17117 (ftfont_font_format): New function.
17118
17119 * font.h (struct font): New member format.
17120
17121 * font.c (Qopentype): New variable.
17122 (syms_of_font): Defsym it.
17123 (Fquery_font): Change the format of the last element of the return
17124 value.
17125
171262008-02-01 Kenichi Handa <handa@m17n.org>
17127
17128 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17129 last resort.
17130
171312008-02-01 Kenichi Handa <handa@m17n.org>
17132
17133 * coding.c (detect_coding_charset): Fix detection of multi-byte
17134 charset.
17135
171362008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17137
17138 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17139
171402008-02-01 Kenichi Handa <handa@m17n.org>
17141
17142 * xdisp.c (get_next_display_element): Set it->face_id for the
17143 first component of a composition.
17144 (x_produce_glyphs): Check if the font is changed or not for composition.
17145
171462008-02-01 Kenichi Handa <handa@m17n.org>
17147
17148 * fontset.c (Qlatin): New variable.
17149 (syms_of_fontset): Define it as a lisp symbol.
17150 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17151
171522008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * font.c (font_unparse_fcname): Pay attention to the case that
17155 some of font property is a null string.
17156
171572008-02-01 Kenichi Handa <handa@m17n.org>
17158
17159 * term.c: Include "composite.h".
17160 (encode_terminal_code): Output all components of composition.
17161 Check the size of encode_terminal_src.
17162 (produce_glyphs): For composition, call produce_composite_glyph.
17163 (append_composite_glyph, produce_composite_glyph): New functions.
17164
17165 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17166 is not found, get font_info from the current ascii face.
17167
171682008-02-01 Kenichi Handa <handa@m17n.org>
17169
17170 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17171 buffer-file-name to Qnil before calling insert_from_buffer.
17172
17173 * font.c (font_unparse_fcname): Pay attention to the case that
17174 foundry is a null string.
17175
171762008-02-01 Kenichi Handa <handa@m17n.org>
17177
17178 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17179
17180 * font.c (Qunicode_sip): New variable.
17181 (syms_of_font): Declare it as a Lisp symbol.
17182
17183 * font.h (Qunicode_sip): Extern it.
17184
171852008-02-01 Kenichi Handa <handa@m17n.org>
17186
17187 * composite.c (get_composition_id): Pay attention to TAB component.
17188
17189 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17190 TAB. Adjust for the change of s->char2b which always points to
17191 the first element of allocated memory.
17192
17193 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17194
17195 * xdisp.c (handle_composition_prop): Set it->c to the first
17196 non-TAB component.
17197 (fill_composite_glyph_string): Change argument.
17198 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17199 (x_produce_glyphs): Fix handling of left/right padding.
17200
172012008-02-01 Kenichi Handa <handa@m17n.org>
17202
17203 * coding.c (detect_coding_system): Fix for handling off
17204 inhibit_iso_escape_detection. Fix for the case that no coding
17205 system is defined for a specific coding category.
17206
172072008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * font.c (font_matching_entity): Delete unused local var.
17210
17211 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17212 opening a font.
17213
17214 * fileio.c (Finsert_file_contents): On recovering a file, assume
17215 Unix-like eol.
17216 (choose_write_coding_system): On auto-saving a file, force
17217 Unix-like eol.
17218
17219 * coding.c (setup_coding_system): Fix setting of
17220 coding->common_flags based on eol_type.
17221 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17222 inherit from it.
17223
172242008-02-01 Kenichi Handa <handa@m17n.org>
17225
17226 * alloc.c (NSTATICS): Increas to 0x600.
17227
172282008-02-01 Kenichi Handa <handa@m17n.org>
17229
17230 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17231 (ftfont_list): Don't check :name property.
17232 (ftfont_match): New function.
17233 (ftfont_pattern_entity): If the pattern doesn't contain
17234 FC_SPACING, don't assume FC_MONO.
17235
17236 * font.h (struct font_driver): New member `match'.
17237 (font_update_drivers): Adjust prototype.
17238
17239 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17240 property of FONT.
17241 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17242 them unconditionally.
17243 (font_matching_entity): New function.
17244 (font_open_by_name): Try font_matching_entity if exact match is
17245 not found.
17246 (font_update_drivers): Delete the arg FONT. Return a list of
17247 actually used backends. Don't free faces, font caches here.
17248 Don't store data in frame parameters. Don't call x_set_font.
17249 (Ffont_spec): Store :name property as is.
17250 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17251 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17252 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17253 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17254 Call font->driver->otf_gsub instead of font_otf_gsub.
17255
17256 * frame.c (x_set_font_backend): Do more works that were done in
17257 font_update_drivers before.
17258
17259 * xfont.c (xfont_match): New function.
17260 (xfont_driver): Set xfont_driver.match to xfont_match.
17261 (xfont_draw): Set font in GC if necessary.
17262
17263 * ftxfont.c (ftxfont_match): New function.
17264 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17265
17266 * xftfont.c (xftfont_match): New function.
17267 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17268
172692008-02-01 Kenichi Handa <handa@m17n.org>
17270
17271 * font.h (struct font): New member scalable.
17272 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17273 (font_otf_gsub): Adjust prototype.
17274
17275 * font.c (font_otf_capability): Fix handling of the default langsys.
17276 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17277 Check the contents of SPEC.
17278 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17279 (check_gstring): New function.
17280 (REPLACEMENT_CHARACTER): New macro.
17281 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17282 glyph codes of GSTRING.
17283 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17284 (font_prepare_composition): Set cmp->glyph_len.
17285 (font_open_entity): Set font->scalable.
17286 (Ffont_get): Handle :otf property.
17287 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17288 functions.
17289 (Fquery_font): Use font->font.full_name.
17290 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17291 Sfont_otf_alternates.
17292
17293 * ftfont.c (ftfont_open): Set font->font.full_name and
17294 font->font.name properly. Fix calculation of font->font.height
17295 and font->min_width.
17296
17297 * ftxfont.c (ftxfont_create_gcs): New function.
17298 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17299 (ftxfont_draw_backgrond): Fix filling region.
17300 (ftxfont_default_fid): New function.
17301 (ftxfont_open): Set xfont->fid to the return value of
17302 ftxfont_default_fid.
17303 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17304 (ftxfont_done_face): Free only GCs that are created by
17305 ftxfont_create_gcs.
17306 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17307
17308 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17309 Clip to src->width, etc (not src->clip_XXX).
17310
17311 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17312 FontBackend frame parameter.
17313
173142008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * font.h (struct font_driver_list): New member `on'.
17317 (Fclear_font_cache): EXFUN it.
17318 (font_update_drivers): Extern it.
17319
17320 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17321 (font_list_entities): Check driver_list->on.
17322 (register_font_driver): Initalize `on' member to 0.
17323 (font_update_drivers): New function.
17324 (Fclear_font_cache): Check driver_list->on.
17325
17326 * frame.h (Qfont_backend): Extern it.
17327 (x_set_font_backend): Extern it.
17328
17329 * frame.c (Qfont_backend): New variable.
17330 (frame_parms): New element for font-backend.
17331 (x_set_font_backend): New function.
17332
17333 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17334 FontBackend frame parameter.
17335 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17336 x_set_font_backend.
17337
17338 * xfont.c (xfont_list): Don't try listing by :name property if the
17339 name is not for XLFD.
17340
173412008-02-01 Kenichi Handa <handa@m17n.org>
17342
17343 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17344 (LGLYPH_SET_TO): New macros.
17345 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17346 element of G is vector or not.
17347 (font_at): Extern it.
17348
17349 * font.c: Include window.h.
17350 (font_lispy_object): New function.
17351 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17352 end of valid glyph.
17353 (font_close_object): Fix getting (struct font *).
17354 (font_at): New function.
17355 (Ffont_get): If FONT is a font-object, get entity from it.
17356 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17357 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17358 range check.
17359 (Ffont_at): New function.
17360 (syms_of_font): Defsubr Sfont_at.
17361
17362 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17363 before the entry for Qcomposition.
17364 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17365 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17366 the font in gstring.
17367 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17368 LGLYPH_FORM (g) to detect the end of valid glyph.
17369 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17370 we are composing with gstring.
17371
17372 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17373 Check if adjustment is vector or not.
17374
17375 * Makefile.in (font.o): Make it depends on window.h.
17376
173772008-02-01 Kenichi Handa <handa@m17n.org>
17378
17379 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17380 adjustment is vector or not.
17381
173822008-02-01 Miles Bader <miles@gnu.org>
17383
17384 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17385
173862008-02-01 Kenichi Handa <handa@m17n.org>
17387
17388 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17389 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17390 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17391
17392 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17393 (DEVICE_DELTA): Fix typo.
17394 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17395 LGLYPH format.
17396
17397 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17398 the change of LGLYPH format.
17399
174002008-02-01 Kenichi Handa <handa@m17n.org>
17401
17402 * ftfont.c (ftfont_list): Fix typo.
17403 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17404
174052008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17406
17407 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17408
17409 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17410 xftface_info is non-NULL.
17411
174122008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17413
17414 * ftfont.c (ftfont_list): Move misplaced #endif.
17415
174162008-02-01 Kenichi Handa <handa@m17n.org>
17417
17418 * ftfont.c (ftfont_list): Pay attention to the case that
17419 FC_CAPABILITY is not defined.
17420
174212008-02-01 Kenichi Handa <handa@m17n.org>
17422
17423 * xftfont.c (xftfont_open): Set charset related members to -1.
17424
17425 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17426 QCname.
17427 (ftfont_open): Set charset related members to -1.
17428
17429 * fontset.c (Votf_script_alist): New variable.
17430 (syms_of_fontset): Initialize it.
17431 (fontset_font): Delete unused variable.
17432
17433 * fontset.h (Votf_script_alist): Extern it.
17434
17435 * font.c (font_find_for_lface): Optimize code.
17436
17437 * font.h (font_close_object, font_merge_old_spec): Extern them.
17438
174392008-02-01 Kenichi Handa <handa@m17n.org>
17440
17441 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17442 (syms_of_font): Initialize them.
17443 (font_pixel_size): Allow float value in dpi.
17444 (font_prop_validate_type): Delete.
17445 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17446 Change caller.
17447 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17448 (font_prop_validate_extra): Delete.
17449 (font_prop_validate_spacing): New function.
17450 (font_property_table): Add elements for all known properties.
17451 (get_font_prop_index): Rename from check_font_prop_name. New
17452 argument FROM. Change caller.
17453 (font_prop_validate): Validate all known properties.
17454 (font_put_extra): Delete argument force. Change caller.
17455 (font_expand_wildcards): Make it static. Fix the way of shrinking
17456 the possible range.
17457 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17458 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17459 Change caller.
17460 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17461 (font_parse_fcname): Delete argument merge. Fix parsing of point
17462 size. Don't validate properties values here. Change caller.
17463 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17464 (font_open_by_name): Delete unused variable.
17465 (Ffont_spec): Likewise. Validate property values.
17466 (Ffont_match_p): New function.
17467
17468 * font.h (QCscalable): Extern it.
17469 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17470
17471 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17472
17473 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17474 (xfont_list_pattern): New function.
17475 (xfont_list): Use xfont_list_pattern.
17476
174772008-02-01 Kenichi Handa <handa@m17n.org>
17478
17479 * font.h (Flist_fonts): EXFUN it.
17480
174812008-02-01 Jason Rumney <jasonr@gnu.org>
17482
17483 * w32term.c (w32_initialize): Add back smoothing_type and
17484 smoothing_enabled definitions.
17485
174862008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17489 s->face->font on determining underline position.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17494 (font_has_char): Accept font-object too.
17495 (font_find_for_lface): Try at first with a size specified in face.
17496
174972008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17500 font_open_by_name.
17501
175022008-02-01 Kenichi Handa <handa@m17n.org>
17503
17504 * font.h (QCspacing, QCdpi): Extern them.
17505 (enum font_spacing): New enum.
17506 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17507
17508 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17509 (QCspacing, QCdpi): New variables.
17510 (syms_of_font): Initialize them.
17511 (font_pixel_size): New function.
17512 (font_put_extra): New function.
17513 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17514 in FONT_EXTRA.
17515 (font_parse_fcname): Handle enumerated values (e.g. bold).
17516 Fix handling font size. Add QCname property that contains only
17517 unknown properties.
17518 (font_score): Change argument. Change caller. Pay attention to
17519 FONT_PIXEL_SIZE_QUANTUM.
17520 (font_sort_entites, font_list_entities, font_find_for_lface)
17521 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17522 (Ffont_spec): Add QCname property that contains only unknown properties.
17523
17524 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17525 include weight in listing pattern, instead check weight of each
17526 listed font. Don't include scalable in pattern. Pay attention to
17527 FONT_PIXEL_SIZE_QUANTUM.
17528
175292008-02-01 Kenichi Handa <handa@m17n.org>
17530
17531 * font.c (font_parse_fcname): Fix parsing of point-size.
17532 (font_unparse_fcname): Produce symbolic names for style properties.
17533 (font_list_entities): Handle float size correctly.
17534 (font_open_by_name): Prefer `normal' property values if the name
17535 doesn't specify them.
17536
17537 * fontset.c (Finternal_char_font): Use font_get_name, not
17538 Ffont_xlfd_name.
17539
17540 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17541 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17542 pattern. Don't force scalable.
17543
17544 * xftfont.c (xftfont_open): For generating a name, start from
17545 96-byte buffer.
17546
175472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17548
17549 * frame.h (x_new_fontset2): Fix prototype.
17550
175512008-02-01 Kenichi Handa <handa@m17n.org>
17552
17553 * font.h (struct font_driver): Delete member parse_name.
17554 (font_match_p, font_get_spec, font_parse_fcname)
17555 (font_unparse_fcname): Extern them.
17556 (font_get_name): Adjust prototype.
17557
17558 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17559 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17560 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17561 unnecessary checks for weight, slant, and swidth.
17562 (font_parse_fcname): New function.
17563 (font_unparse_fcname): New function.
17564 (font_parse_name): New function.
17565 (font_match_p): New function.
17566 (font_get_name): Change return value to Lisp string.
17567 (font_get_spec): New function.
17568 (Qunspecified, Qignore_defface): Don't extern them.
17569 (font_find_for_lface): Assume that LFACE is fully specified.
17570 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17571 object, use it for FACE.
17572 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17573 driver->parse_name.
17574 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17575
17576 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17577 prototype.
17578
17579 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17580 argument F. Don't call Fnew_fontset. Instead, directly call
17581 make_fontset.
17582
17583 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17584
17585 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17586 of x_new_fontset2.
17587
17588 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17589 (Qsans__serif): New variables.
17590 (ftfont_generic_family_list): New variable.
17591 (syms_of_ftfont): Initialize the above variables.
17592 (ftfont_pattern_entity): Delete argument NAME.
17593 (ftfont_list_generic_family): New function.
17594 (ftfont_parse_name): Delete this function.
17595 (ftfont_list): Try generic family only when FcFontList found no font.
17596 (ftfont_list_family): Fix args to FcObjectSetBuild.
17597
17598 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17599 object in attrs[LFACE_FONT_INDEX].
17600 (set_lface_from_font_name): Cancel all changes for font-backend.
17601 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17602 function.
17603 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17604 font object in QCfont attribute.
17605 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17606 (realize_default_face) [USE_FONT_BACKEND]: Call
17607 set_lface_from_font_and_fontset.
17608
17609 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17610 "fixed", and signal error here if no suitable font was found.
17611
17612 * xfont.c (xfont_parse_name): Delete this function.
17613
17614 * xftfont.c (xftfont_open): Change coding style of error
17615 handling. Generate fontconfig's fontname pattern.
17616
17617 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17618 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17619
17620 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17621 Both args FONTSET and FONT_OBJECT must be existing ones.
17622
176232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17624
17625 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17626
176272008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17630
17631 * font.h (struct font): Fix typo.
17632
17633 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17634 XLFD_XXX_INDEX.
17635 (enum xlfd_field_mask): New enum.
17636 (intern_font_field): Changed argument. Change caller. If digits
17637 are followed by non-digits, return a symbol.
17638 (font_expand_wildcards): New function.
17639 (font_parse_xlfd): Fix wildcard handling.
17640 (Ffont_spec): If :name is specified, reflect the info in the other
17641 properties.
17642
17643 * ftfont.c (ftfont_pattern_entity): Fix typo.
17644 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17645 locale.
17646
176472008-02-01 Kenichi Handa <handa@m17n.org>
17648
17649 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17650
17651 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17652 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17653 registry doesn't specify encoding part.
17654 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17655 (font_open_by_name): At first try parsing the name.
17656 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17657 as Lisp symbols.
17658
17659 * fontset.c (reorder_font_vector): Pay attention to the case that
17660 the 3rd element of font_def is nil.
17661 (fontset_font): For the default fontset, append one more fontset
17662 elements for a script-based font specification. Don't add script
17663 attribute on finding a font.
17664 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17665 font name.
17666 (fontset_ascii_font): If a font can't be opened, return nil.
17667
17668 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17669 (ftfont_pattern_entity): New function.
17670 (ftfont_get_cache): Assume that freetype_font_cache is already
17671 initialized.
17672 (ftfont_list): Handle the case that a file is specified in font
17673 name. Use ftfont_pattern_entity to generate entities.
17674 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17675 (syms_of_ftfont): Initialize freetype_font_cache.
17676
17677 * xftfont.c (xftfont_open): Make the font name fontconfig's
17678 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17679 (xftfont_close): Free font->font.name if not NULL.
17680
17681 * xfont.c (xfont_list): If script is specified for a font, return
17682 null_vector.
17683 (xfont_list_family): Declare argument type.
17684
17685 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17686 name, set LFACE_FONT (lface) to nil.
17687
17688 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17689 return Qnil.
17690
176912008-02-01 Kenichi Handa <handa@m17n.org>
17692
17693 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17694 (standard_args): Add "-enable-font-backend".
17695
176962008-02-01 Kenichi Handa <handa@m17n.org>
17697
17698 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17699 (struct xftdraw_list, xftdraw_list): Delete them.
17700 (register_xftdraw, check_xftdraw): Delete them.
17701 (xftfont_prepare_face): Don't call register_xftdraw.
17702 (xftfont_done_face): Don't call check_xftdraw.
17703 (xftfont_draw): Get background color only when with_background is
17704 nonzero.
17705
17706 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17707
177082008-02-01 Kenichi Handa <handa@m17n.org>
17709
17710 These changes are for the new font handling codes.
17711
17712 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17713 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17714 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17715 (FONTSRC, FONTOBJ): New variables.
17716 (obj): Add $(FONTOBJ).
17717 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17718 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17719 @LIBOTF_LIBS@.
17720 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17721 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17722
17723 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17724
17725 * character.h (Vscript_representative_chars): Extern it.
17726
17727 * character.c (Vscript_representative_chars): New variable.
17728 (syms_of_character): Declare it as a Lisp variable.
17729
17730 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17731 enable_font_backend is nonzero, accept the composition method
17732 COMPOSITION_WITH_GLYPH_STRING.
17733
17734 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17735 enumeration COMPOSITION_WITH_GLYPH_STRING.
17736
17737 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17738 members clip_x, clip_y, clip_width, and clip_height.
17739 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17740
17741 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17742 --enable-font-backend. Call syms_of_font.
17743
17744 * fns.c (assoc_no_quit): New function.
17745
17746 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17747 (face_for_font, new_fontset_from_font)
17748 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17749
17750 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17751 (fontset_font, fontset_ascii, face_for_char)
17752 (make_fontset_for_ascii_face, Ffont_info)
17753 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17754 is nonzero, use font-backend mechanism.
17755 (find_font_encoding): Make it non-static.
17756 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17757 New functions.
17758
17759 * frame.h (struct frame): New members resx and resy.
17760 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17761 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17762
17763 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17764 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17765
17766 * lisp.h (assoc_no_quit): Extern it.
17767
17768 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17769 Through out the file, use FONT_INFO_FROM_FACE instead of
17770 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17771 rif->per_char_metric.
17772 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17773 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17774 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17775 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17776 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17777 nonzero, use font-backend mechanism.
17778 (get_per_char_metric): New function.
17779
17780 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17781 (set_lface_from_font_name)
17782 (set_font_frame_param, free_realized_face)
17783 (prepare_face_for_display, clear_face_gcs)
17784 (Finternal_set_font_selection_order, realize_x_face)
17785 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17786 font-backend mechanism.
17787 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17788 (load_face_font) [USE_FONT_BACKEND]: Abort.
17789 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17790 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17791
17792 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17793 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17794 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17795 nonzero, register all available font drivers. Call
17796 x_default_font_parameter for deciding a font.
17797 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17798
17799 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17800 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17801 (x_set_glyph_string_clipping_exactly)
17802 (x_compute_glyph_string_overhangs)
17803 (x_draw_glyph_string_foreground)
17804 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17805 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17806 enable_font_backend is nonzero, use font-backend mechanism.
17807 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17808
178092008-02-01 Kenichi Handa <handa@m17n.org>
17810
17811 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17812 system_eol_type.
17813 (syms_of_coding): Initialize system_eol_type.
17814
17815 * process.c (Fset_process_coding_system): Inherit system's eol
17816 format if necessary.
17817
178182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17819
17820 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17821
178222008-02-01 Kenichi Handa <handa@m17n.org>
17823
17824 * coding.c (decode_eol): Pay attention to buffer relocation in
17825 del_range_2.
17826 (decode_coding): Call decode_eol before restoring undo_list.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * charset.c (Fdefine_charset_internal): Fix setting of
17831 emacs_mule_bytes.
17832
178332008-02-01 Kenichi Handa <handa@m17n.org>
17834
17835 * keyboard.c (read_char): Check if C is a character or not before
17836 looking up Vkeyboard_translate_table.
17837
178382008-02-01 Kenichi Handa <handa@m17n.org>
17839
17840 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17841 condition to terminate the loop.
17842
178432008-02-01 Kenichi Handa <handa@m17n.org>
17844
17845 * coding.c (produce_composition): Compare charbuf[i] instead of
17846 args[i] against 0.
17847 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17848
178492008-02-01 Kenichi Handa <handa@m17n.org>
17850
17851 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17852 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17853 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17854 detect_coding.
17855 (emacs_mule_char): Handle old style (Emacs 20) component character
17856 of a composition.
17857 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17858 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17859 composition rule.
17860 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17861
178622008-02-01 Kenichi Handa <handa@m17n.org>
17863
17864 * coding.c (encode_coding_ccl): Allocate destination dynamically
17865 when necessary.
17866
178672008-02-01 Kenichi Handa <handa@m17n.org>
17868
17869 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17870 the loop. When quitted, show a proper error message.
17871
178722008-02-01 Kenichi Handa <handa@m17n.org>
17873
17874 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17875 src->clip_head and src->clip_tail temporarily instead of src->hl.
17876
17877 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17878 character sequence.
17879 (Fccl_execute_on_string): Use ASET, not XSET.
17880
178812008-02-01 Kenichi Handa <handa@m17n.org>
17882
17883 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17884
178852008-02-01 Kenichi Handa <handa@m17n.org>
17886
17887 * coding.c (decode_coding): Fix the condition of terminating the
17888 decoding loop.
17889
178902008-02-01 Kenichi Handa <handa@m17n.org>
17891
17892 * data.c (Faset): On setting a character bigger than 255 in a
17893 unibyte string, signal an error instead of make the string multibyte.
17894
178952008-02-01 Kenichi Handa <handa@m17n.org>
17896
17897 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17898 made by a mapping table.
17899
179002008-02-01 Kenichi Handa <handa@m17n.org>
17901
17902 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17903 not.
17904 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17905 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17906
17907 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17908 s->face is NULL or not.
17909
179102008-02-01 Kenichi Handa <handa@m17n.org>
17911
17912 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17913 (x_draw_glyph_string): Fix drawing of right_overhang and
17914 left_overhang around/on cursor.
17915
17916 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17917
179182008-02-01 Kenichi Handa <handa@m17n.org>
17919
17920 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17921
179222008-02-01 Kenichi Handa <handa@m17n.org>
17923
17924 * coding.c (Fdefine_coding_system_internal)
17925 (Fdefine_coding_system_alias): Avoid a duplicated element in
17926 Vcoding_system_alist.
17927
179282008-02-01 Kenichi Handa <handa@m17n.org>
17929
17930 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17931
17932 * coding.c (Qcoding_system_define_form): New variable.
17933 (syms_of_coding): Intern and staticpro it.
17934 (Fcoding_system_p): Check Qcoding_system_define_form.
17935 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17936
17937 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17938 Fcoding_system_p.
17939 (CHECK_CODING_SYSTEM): If ID is not available, call
17940 Fcheck_coding_system.
17941 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17942 Try also Fcheck_coding_system.
17943
179442008-02-01 Kenichi Handa <handa@m17n.org>
17945
17946 * coding.c (code_conversion_restore): GCPRO arg.
17947
179482008-02-01 Kenichi Handa <handa@m17n.org>
17949
17950 * character.c (lisp_string_width): Check multibyteness of STRING.
17951
179522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17953
17954 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17955 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17956 (decode_mac_font_name): Use decode_coding_c_string instead of
17957 decode_coding.
17958 (x_load_font): Initialize fontp->fontset to -1. Set
17959 fontp->encoding_type.
17960
179612008-02-01 Kenichi Handa <handa@m17n.org>
17962
17963 * search.c (search_buffer): Give up BM search on case-fold-search
17964 if one of a target character has a case-equivalence of different
17965 byte length even if that target charcter is an ASCII.
17966 (simple_search): Fix calculation of byte length of matched text.
17967 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17968
179692008-02-01 Kenichi Handa <handa@m17n.org>
17970
17971 * coding.c (decode_coding): Fix handling of invalid bytes.
17972
179732008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17976 Unicode characters.
17977
179782008-02-01 Kenichi Handa <handa@m17n.org>
17979
17980 * coding.c (encode_coding_object): If a pre-write-conversion
17981 function makes a new buffer, kill it.
17982
179832008-02-01 Kenichi Handa <handa@m17n.org>
17984
17985 * coding.c (QCascii_compatible_p): New variable.
17986 (syms_of_coding): Initialize it.
17987 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17988 calling string_char.
17989 (record_conversion_result): Add `default:' case.
17990 (coding_charset_list): Delete unused variable `coding_type'.
17991 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17992 property in the plist of the coding system.
17993 (Fcoding_system_put): Check QCascii_compatible_p.
17994
179952008-02-01 Miles Bader <miles@gnu.org>
17996
17997 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17998 removed calculation of frame `f', as it's now used.
17999
180002008-02-01 Kenichi Handa <handa@m17n.org>
18001
18002 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18003 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18004 (UNIDATA): New variable.
18005 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18006 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18007 $(RUN_TEMACS) unconditionally.
18008
180092008-02-01 Kenichi Handa <handa@m17n.org>
18010
18011 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18012 (admindir): New variable.
18013 ($(lispsource)international/charprop.el): New target.
18014
180152008-02-01 Miles Bader <miles@gnu.org>
18016
18017 * character.c (chars-in-region): Remove obsolete function.
18018 (syms_of_character): Remove its initialization.
18019
180202008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18021
18022 * w32select.c (validate_coding_system)
18023 (setup_windows_coding_system): New functions.
18024 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18025 setup_windows_coding_system.
18026 (setup_config, Fw32_get_clipboard_data): Use
18027 validate_coding_system.
18028 (Fx_selection_exists): Move call to setup_config to a place
18029 where signals are allowed.
18030
18031 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18032 (Fcheck_coding_system): Add declarations.
18033
180342008-02-01 Kenichi Handa <handa@m17n.org>
18035
18036 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18037
180382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18039
18040 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18041 string as the second argument for x_new_fontset.
18042
180432008-02-01 Kenichi Handa <handa@m17n.org>
18044
18045 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18046 (encode_coding_object): Use safe_call instead of call2.
18047
180482008-02-01 Kenichi Handa <handa@m17n.org>
18049
18050 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18051
18052 * Makefile.in (lisp): Include charprop.el.
18053
180542008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18055
18056 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18057 Not sure if it's unnecessary.
18058
180592008-02-01 Steven Tamm <steventamm@mac.com>
18060
18061 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18062 some possibly unnecessary fontset checking code that crashed
18063 when creating a new frame.
18064
180652008-02-01 Kenichi Handa <handa@m17n.org>
18066
18067 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18068 lookup_face.
18069
18070 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18071
18072 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18073
180742008-02-01 Kenichi Handa <handa@m17n.org>
18075
18076 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18077 (coding_charset_list): New function.
18078
18079 * coding.h (coding_charset_list): Extern it.
18080
180812008-02-01 Kenichi Handa <handa@m17n.org>
18082
18083 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18084 concatenation of family and registry.
18085
180862008-02-01 Kenichi Handa <handa@m17n.org>
18087
18088 * character.h (BYTE8_STRING): Fix typo.
18089
18090 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18091 string to multibyte (sync to HEAD).
18092
18093 * casefiddle.c (casify_region): Handle changes in byte-length
18094 using replace_range_2 (sync to HEAD).
18095
180962008-02-01 Andreas Schwab <schwab@suse.de>
18097
18098 * chartab.c (map_char_table): GCPRO table and arg.
18099
181002008-02-01 Kenichi Handa <handa@m17n.org>
18101
18102 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18103 already at limit.
18104
181052008-02-01 Kenichi Handa <handa@m17n.org>
18106
18107 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18108 instead of fast_c_string_match_ignore_case.
18109 (find_font_encoding): Change argument to Lisp_Object. Use
18110 fast_string_match_ignore_case instead of
18111 fast_c_string_match_ignore_case. Change caller.
18112
181132008-02-01 Kenichi Handa <handa@m17n.org>
18114
18115 * xdisp.c (get_next_display_element): In unibyte case, decide to
18116 display in octal form by checking a character by
18117 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18118
18119 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18120
18121 * character.c (unibyte_has_multibyte_table): New variable.
18122
18123 * character.h (unibyte_has_multibyte_table): Extern it.
18124 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18125
181262008-02-01 Kenichi Handa <handa@m17n.org>
18127
18128 * coding.c (encode_coding_iso_2022): Fix handling of charset
18129 annotation.
18130
181312008-02-01 Kenichi Handa <handa@m17n.org>
18132
18133 * coding.c (setup_coding_system): If coding_system is nil, use
18134 Qundecided.
18135 (Fterminal_coding_system): Return nil if terminal coding system is
18136 `undecided'.
18137 (syms_of_coding): Define coding-system `undecided' here. Setup
18138 terminal_coding as `undecided'.
18139
181402008-02-01 Kenichi Handa <handa@m17n.org>
18141
18142 * xdisp.c (message_dolog, set_message_1): Call
18143 unibyte_char_to_multibyte with arg type int.
18144
18145 * lread.c (read1): Fix reading of a char-table.
18146
18147 * print.c (print_object): Include sub char-table in circularities
18148 detection.
18149
181502008-02-01 Kenichi Handa <handa@m17n.org>
18151
18152 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18153 Append the found sequences in car of ARGS instead of prepending.
18154
181552008-02-01 Kenichi Handa <handa@m17n.org>
18156
18157 * fileio.c (report_file_error): Make a unibyte string from
18158 strerror (errorno).
18159 (Fsubstitute_in_file_name): Fix the arg to
18160 unibyte_char_to_multibyte. It is evaluated twice.
18161
181622008-02-01 Kenichi Handa <handa@m17n.org>
18163
18164 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18165
181662008-02-01 Kenichi Handa <handa@m17n.org>
18167
18168 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18169 BOM is not found.
18170 (detect_coding, detect_coding_system): Optimization for ISO-2022
18171 when no 8-bit data is found.
18172
181732008-02-01 Jason Rumney <jasonr@gnu.org>
18174
18175 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18176
181772008-02-01 Kenichi Handa <handa@m17n.org>
18178
18179 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18180 CHARS.
18181
181822008-02-01 Steven Tamm <steventamm@mac.com>
18183
18184 * macterm.c (mac_encode_char): Add charset argument and update
18185 to use encoding_type.
18186 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18187 switch to pure fontset.
18188 (decode_mac_font_name): Temporarily remove decoding.
18189 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18190 (x_load_font): Temporarily remove encoding.
18191
181922008-02-01 Kenichi Handa <handa@m17n.org>
18193
18194 * xfaces.c (Fface_font): If frame is not on a window system,
18195 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18196 refer to face->font.
18197 (split_font_name_into_vector, build_font_name_from_vector)
18198 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18199 when HAVE_WINDOW_SYSTEM is defined.
18200
182012008-02-01 Kenichi Handa <handa@m17n.org>
18202
18203 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18204 (x_produce_glyphs): Fix setting of members of cmp in case
18205 cmp->glyph_len is zero.
18206
18207 * fontset.c (Fset_fontset_font): Fix docstring.
18208 (Ffontset_info): Make it backward compatible. New arg ALL.
18209
182102008-02-01 Kim F. Storm <storm@cua.dk>
18211
18212 * process.c (read_process_output): Grow decoding_buf when needed;
18213 this could cause a crash in allocate_string and compact_small_strings.
18214
182152008-02-01 Kenichi Handa <handa@m17n.org>
18216
18217 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18218
182192008-02-01 Kenichi Handa <handa@m17n.org>
18220
18221 * coding.c (setup_coding_system): Set coding->common_flags
18222 correctly for raw-text.
18223 (consume_chars): On encoding unibyte text by raw-text, don't check
18224 multibyte form.
18225 (encode_coding): On encoding by raw-text, never use translation tables.
18226
18227 * fileio.c (e_write): Short cut for the case of no encoding.
18228
182292008-02-01 Kenichi Handa <handa@m17n.org>
18230
18231 * coding.c (detect_coding, detect_coding_system): Delete unused
18232 variables.
18233
182342008-02-01 Kenichi Handa <handa@m17n.org>
18235
18236 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18237 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18238
182392008-02-01 Kenichi Handa <handa@m17n.org>
18240
18241 * coding.c (Ffind_coding_systems_region_internal): Include
18242 raw-text and no-conversion in the result.
18243
182442008-02-01 Kenichi Handa <handa@m17n.org>
18245
18246 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18247 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18248 FONT_DEF.
18249 (font_def_arg, add_arg, from_arg, to_arg): New args.
18250 (set_fontset_font): Change argument.
18251 (Fset_fontset_font): Fix for the case that TARGET is a script
18252 name and charset name.
18253 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18254
182552008-02-01 Kenichi Handa <handa@m17n.org>
18256
18257 * fontset.c (fontset_font): Rename from fontset_face. Change return
18258 value.
18259 (face_suitable_for_char_p, face_for_char): Adjust for the change
18260 of fontset_font.
18261 (make_fontset_for_ascii_face): Fix setting of the fontset element
18262 for ASCII.
18263 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18264 to get a font name.
18265 (Ffontset_info): Adjust for the change of fontset_font.
18266
18267 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18268
18269 * character.h (LEADING_CODE_LATIN_1_MIN)
18270 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18271
182722008-02-01 Kenichi Handa <handa@m17n.org>
18273
18274 * editfns.c (check_translation): New function.
18275 (Ftranslate_region_internal): Handle M:N mapping.
18276
182772008-02-01 Kenichi Handa <handa@m17n.org>
18278
18279 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18280
182812008-02-01 Kenichi Handa <handa@m17n.org>
18282
18283 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18284 goto invalid_code.
18285 (decode_coding_iso_2022): Fix handling of invalid designation.
18286
18287 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18288 after calling code_conversion_save.
18289
182902008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18293
18294 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18295
18296 * fontset.c: Include "intervals.h".
18297 (fontset_face): Fix comparing of Lisp_Objects.
18298 (free_face_fontset, new_fontset_from_font_name): Fix
18299 Lisp_Object/int mixup.
18300
18301 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18302
18303 * coding.c: Add many prototypes for static functions.
18304 (get_translation_table): Allow max_lookup to be NULL.
18305 (decode_coding, Ffind_coding_systems_region_internal)
18306 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18307 get_translation_table with max_lookup NULL.
18308
183092008-02-01 Kenichi Handa <handa@m17n.org>
18310
18311 * coding.c (get_translation_table): Declare it as Lisp_Object.
18312 (LOOKUP_TRANSLATION_TABLE): New macro.
18313 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18314 instead of CHAR_TABLE_REF.
18315
183162008-02-01 Kenichi Handa <handa@m17n.org>
18317
18318 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18319 annotation data format.
18320 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18321 Change arguments FROM and TO to single argument NCHARS. Change caller.
18322 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18323 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18324 (decode_coding_ccl, decode_coding_charset): Pay attention to
18325 coding->charbuf_used.
18326 (get_translation): New function.
18327 (produce_chars): New arguments translation_table and last_block.
18328 Translate characters here. Return number of carryover chars.
18329 Change caller.
18330 (produce_composition): New argument pos. Change caller.
18331 Adjust for the change of annotation data format.
18332 (produce_charset, produce_annotation): Likewise.
18333 (decode_coding, encode_coding): Don't call translate_chars.
18334 (consume_chars): New arg translation_table. Change caller.
18335 (translate_chars): Delete.
18336 (syms_of_coding): Make translation-table's number of extra slots 2.
18337
183382008-02-01 Kenichi Handa <handa@m17n.org>
18339
18340 * search.c (simple_search): Fix setting this_pos_byte in backward
18341 search.
18342
18343 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18344 byte sequence.
18345 (detect_coding_ccl): Fix setting of the variable valids.
18346
183472008-02-01 Kenichi Handa <handa@m17n.org>
18348
18349 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18350
18351 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18352
18353 * editfns.c (Ftranslate_region_internal): Rename from
18354 Ftranslate_region. Accept a char-table in TABLE.
18355 (syms_of_editfns): Defsubr Stranslate_region_internal.
18356
18357 * xfaces.c (set_lface_from_font_name): If a font is specified for
18358 a frame, generate a fontset from the font.
18359 (build_scalable_font_name): If the scalable font is requested for
18360 a specific size, don't change that size.
18361 (try_font_list): Try a scalable font also in the case that a
18362 pattern string is specified.
18363
183642008-02-01 Kenichi Handa <handa@m17n.org>
18365
18366 * xfaces.c (Fface_font): New optional arg CHARACTER.
18367
183682008-02-01 Kenichi Handa <handa@m17n.org>
18369
18370 * charset.h (CHARSET_OFFSET): New macro.
18371
183722008-02-01 Kenichi Handa <handa@m17n.org>
18373
18374 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18375
18376 * fontset.c (fontset_face): Handle the case that repertory is a
18377 char-table.
18378 (find_font_encoding): Return nil for unknown encoding.
18379 (Fset_fontset_font): Ignore a font of unknown encoding.
18380
183812008-02-01 Kenichi Handa <handa@m17n.org>
18382
18383 * keymap.c (describe_vector): Handle default value of a char table.
18384
18385 * fontset.c (fontset_face): Handle fallback fonts correctly.
18386 (Ffontset_info): Return infomation about fallback fonts.
18387
183882008-02-01 Kenichi Handa <handa@m17n.org>
18389
18390 * fontset.c (FONTSET_DEFAULT): New macro.
18391 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18392 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18393 the case that it is nil.
18394 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18395 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18396
18397 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18398 subset or superset.
18399
184002008-02-01 Kenichi Handa <handa@m17n.org>
18401
18402 * emacs.c (main): Call init_charset after syms_of_XXX.
18403
18404 * charset.c (Vcharset_map_directory): Delete.
18405 (Vcharset_map_path): New variable.
18406 (load_charset_map_from_file): Use Vcharset_map_path instead.
18407 (init_charset): Initialize Vcharset_map_path.
18408 (syms_of_charset): Delete declaration of "charset-map-directory",
18409 add declaration of "charset-map-path".
18410
184112008-02-01 Kenichi Handa <handa@m17n.org>
18412
18413 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18414 ASCII only string.
18415
18416 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18417
18418 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18419 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18424
18425 * coding.c (QCmnemonic, QCdefalut_char)
18426 (QCdecode_translation_table, QCencode_translation_table)
18427 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18428 (get_translation_table): Return a list of translation tables if
18429 necessary.
18430 (decode_coding): Call get_translation_table with ENCODEP 0.
18431 (char_encodable_p): If translation_table is non-nil, always call
18432 translate_char.
18433 (Fdefine_coding_system_internal): Accept list of translation
18434 tables as :encode-translation-table and :decode-translation-table.
18435 (Fcoding_system_put): New function.
18436 (syms_of_coding): Declare new symbols. Defsubr
18437 Scoding_system_put.
18438 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18439 typically JISX0212.
18440
18441 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18442 when the charset is superset type.
18443
18444 * character.c (translate_char): Accept list of translation tables.
18445
184462008-02-01 Kenichi Handa <handa@m17n.org>
18447
18448 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18449 (CODING_ATTR_TRANS_TBL): New macro.
18450
18451 * coding.c (get_translation_table): New function.
18452 (translate_chars): Fix the bug of skipping annotation data.
18453 (decode_coding, encode_coding): Utilize get_translation_table.
18454 (char_encodable_p, Funencodable_char_position): Translate char if
18455 necessary.
18456 (Ffind_coding_systems_region_internal)
18457 (Fcheck_coding_systems_region): Setup translation table for encode
18458 in a coding system attribute vector in advance.
18459 (Fdefine_coding_system_internal): Allow a symbol as translation
18460 table. For shift-jis type coding system, allow 4th charset.
18461
184622008-02-01 Kenichi Handa <handa@m17n.org>
18463
18464 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18465
18466 * xdisp.c (get_next_display_element): Pass -1 as POS to
18467 FACE_FOR_CHAR if displaying a C-string.
18468
184692008-02-01 Kenichi Handa <handa@m17n.org>
18470
18471 * composite.c (get_composition_id): Handle xoff and yoff in a
18472 composition rule.
18473
18474 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18475 (struct composition): New member lbearing and rbearing.
18476
18477 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18478 (x_get_glyph_overhangs): Handle a composition glyph.
18479 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18480
18481 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18482 composition glyph.
18483
184842008-02-01 Kenichi Handa <handa@m17n.org>
18485
18486 * print.c: Include charset.h.
18487 (Vprint_charset_text_property): New variable.
18488 (Qdefault): Extern it.
18489 (PRINT_STRING_NON_CHARSET_FOUND)
18490 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18491 (print_check_string_result): New variable.
18492 (print_check_string_charset_prop): New function.
18493 (print_prune_charset_plist): New variable.
18494 (print_prune_string_charset): New function.
18495 (print_object): Call print_prune_string_charset if
18496 Vprint_charset_text_property is not t.
18497 (print_interval): Print nothing if interval->plist is nil.
18498 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18499 variable. Init and staticpro print_prune_charset_plist.
18500
185012008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 * fontset.c (new_fontset_from_font_name): Use the specified font
18504 for all characters in the new fontset.
18505
18506 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18507 OBJECT args.
18508
18509 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18510 OBJECT args for composition too.
18511
18512 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18513 OBJECT args.
18514
185152008-02-01 Kenichi Handa <handa@m17n.org>
18516
18517 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18518
18519 * fontset.c (reorder_font_vector): Adjust for the change of
18520 FONT_DEF format.
18521 (fontset_face): New arg id. Change caller.
18522 (face_for_char): New args pos and object.
18523 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18524 (fs_query_fontset): Check NAME by Fassoc too.
18525 (Fset_fontset_font): Allow non-XLFD font name.
18526 (Ffontset_info): Adjust for the change of FONT_DEF format.
18527
18528 * fontset.h (face_for_char): Adjust prototype.
18529
18530 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18531 (append_space, extend_face_to_end_of_line)
18532 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18533 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18534
18535 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18536 POS and OBJECT args.
18537
18538 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18539 POS and OBJECT args.
18540
185412008-02-01 Jason Rumney <jasonr@gnu.org>
18542
18543 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18544 of GlobalAlloc'ed memory.
18545
185462008-02-01 Kenichi Handa <handa@m17n.org>
18547
18548 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18549
18550 * charset.h (charset_table_used): Delete extern.
18551
18552 * charset.c (charset_table_used): Make it static.
18553 (map_charset_chars): Fix args to c_function with.
18554
18555 * chartab.c (map_sub_char_table_for_charset): Fix args to
18556 c_function with.
18557
18558 * coding.h (enum coding_result_code): Delete
18559 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18560
18561 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18562 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18563 (Vlast_code_conversion_error): New variables.
18564 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18565 (ONE_MORE_BYTE): Record error if any instead of signaling an
18566 error. If non-ASCII multibyte char is found, return the negative
18567 value of the code. All callers changed to check it.
18568 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18569 (record_conversion_result): New function. Change all codes setting
18570 coding->result to call this function.
18571 (detect_coding_utf_8, decode_coding_utf_8)
18572 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18573 Don't use the local variable incomplete.
18574 (emacs_mule_char): Change the second arg to `const'.
18575 (decode_coding): Fix of flushing out unprocessed data.
18576 (make_conversion_work_buffer): Fix making of a work buffer.
18577 (decode_coding_object): Return coding->dst_object.
18578
18579 * fontset.c (set_fontset_font): Fix args.
18580
18581 * lisp.h (CHARACTERBITS): Define as 22.
18582
18583 * process.c (send_process): Be sure to set coding->src_multibyte.
18584
18585 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18586
185872008-02-01 Kenichi Handa <handa@m17n.org>
18588
18589 * xdisp.c (handle_auto_composed_prop): Give limit to
18590 Fnext_single_char_property_change.
18591
185922008-02-01 Kenichi Handa <handa@m17n.org>
18593
18594 * composite.c (syms_of_composite): Don't make the composition hash
18595 table weak.
18596
18597 * fontset.c (Fset_fontset_font): Fix docstring.
18598
18599 * lisp.h (detect_coding_system): Adjust prototype.
18600
18601 * fileio.c (kill_workbuf_unwind): Delete this function.
18602 (Finsert_file_contents): Adjust the call of detect_coding_system.
18603 Get conversion_buffer by code_conversion_save. Use the macro
18604 CODING_MAY_REQUIRE_DECODING. After decoding, update
18605 coding_system.
18606
18607 * coding.h (make_conversion_work_buffer): Delete extern.
18608 (code_conversion_save): Extern it.
18609
18610 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18611 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18612 (decode_coding_utf_8): Don't do eol converion.
18613 (detect_coding_utf_16): Check coding->src_chars, not
18614 coding->src_bytes. Add heuristics for those that have no signature.
18615 (decode_coding_emacs_mule, decode_coding_iso_2022)
18616 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18617 Don't do eol converion.
18618 (adjust_coding_eol_type): Return a new coding system.
18619 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18620 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18621 each change.
18622 (decode_coding): Pay attention to undo_list. Do eol conversion for
18623 all types of coding-systems (if necessary).
18624 (Vcode_conversion_work_buf_list): Delete it.
18625 (Vcode_conversion_reused_workbuf): Rename from
18626 Vcode_conversion_reused_work_buf.
18627 (Vcode_conversion_workbuf_name): New variable.
18628 (reused_workbuf_in_use): New variable.
18629 (make_conversion_work_buffer): Delete the arg DEPTH.
18630 (code_conversion_restore): Change argument to cons.
18631 (code_conversion_save): Delete the argument BUFFER. Change callers.
18632 (detect_coding_system): New argument src_chars. Change callers.
18633 Fix for utf-16 detection.
18634 (init_coding_once): Don't use ISO_carriage_return.
18635 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18636 reused_workbuf_in_use.
18637
186382008-02-01 Kenichi Handa <handa@m17n.org>
18639
18640 * keymap.c (store_in_keymap): Pay attention to the case that idx
18641 is a cons specifying a character range.
18642
186432008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18646 HANDLED_RECOMPUTE_PROPS.
18647
18648 * coding.c (Fdefine_coding_system_internal): Fix checking of
18649 ascii compatibility.
18650
186512008-02-01 Kenichi Handa <handa@m17n.org>
18652
18653 * charset.c (find_charsets_in_text): Delete unused locale variable.
18654 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18655
18656 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18657 Resync charset_list to Vemacs_mule_charset_list.
18658
18659 * keymap.c (store_in_keymap): Pay attention to the case that idx
18660 is a cons specifying a character range.
18661
186622008-02-01 Kenichi Handa <handa@m17n.org>
18663
18664 * composite.c (update_compositions): Bind inhibit-read-only, etc
18665 to t before calling remove-list-of-text-properties.
18666
18667 * print.c (print_object): Always print ASCII chars as is.
18668
186692008-02-01 Kenichi Handa <handa@m17n.org>
18670
18671 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18672
18673 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18674 is a char table.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18679
186802008-02-01 Kenichi Handa <handa@m17n.org>
18681
18682 * xfaces.c (set_lface_from_font_name): Fix for the case that
18683 FONTNAME is not fontset name.
18684
186852008-02-01 Kenichi Handa <handa@m17n.org>
18686
18687 * fns.c (base64_encode_1): Fix previous change.
18688
186892008-02-01 Kenichi Handa <handa@m17n.org>
18690
18691 * fontset.c (set_fontset_font): New function.
18692 (Fset_fontset_font): If a font is specified for a charset, use
18693 map_charset_chars to store the font spec in a fontset.
18694
186952008-02-01 Kenichi Handa <handa@m17n.org>
18696
18697 * fontset.c (fontset_face): Create a fallback fontset on demand.
18698 (make_fontset): Don't create a fallback fontset here.
18699 (free_face_fontset): Free a fallback fontset (if any) too.
18700 (n_auto_fontsets): Delete this variable.
18701 (auto_fontset_alist): New variable.
18702 (new_fontset_from_font_name): Check auto_fontset_alist.
18703 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18704 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18705 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18706 Defsubr Sfontset_list_all.
18707
187082008-02-01 Kenichi Handa <handa@m17n.org>
18709
18710 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18711
187122008-02-01 Kenichi Handa <handa@m17n.org>
18713
18714 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18715
187162008-02-01 Kenichi Handa <handa@m17n.org>
18717
18718 * editfns.c (Fgoto_char): Fix docstring.
18719
187202008-02-01 Kenichi Handa <handa@m17n.org>
18721
18722 * insdel.c (insert_from_gap): Adjust intervals correctly.
18723
187242008-02-01 Jason Rumney <jasonr@gnu.org>
18725
18726 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18727 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18728 (w32_initialize): Try to load it.
18729 (x_get_font_repertory): Use it if available.
18730 (w32_encode_char): Add shortcut for unicode output.
18731
18732 * w32fns.c (w32_load_system_font): Default charset to -1.
18733 (x_to_w32_charset): Match all fonts for unicode.
18734 (w32_to_x_charset): New parameter matching. Don't return partial
18735 or wildcard charsets.
18736 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18737 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18738 (w32_to_x_font): Match charset to real charset.
18739 (enum_font_cb2): Always list unicode versions.
18740
18741 * makefile.w32-in (temacs): Increase EMHEAP.
18742
187432008-02-01 Jason Rumney <jasonr@gnu.org>
18744
18745 * w32term.c (w32_encode_char): New charset parameter.
18746 font_info.encoding becomes encoding_type.
18747 (x_get_font_repertory): New function. Warning: stub only!
18748 (x_new_font): Return quickly if font already set.
18749 (x_new_fontset): fontsetname parameter is Lisp_Object.
18750 Use new fs_query_fontset. Try new_fontset_from_font_name.
18751 Use fontset_name for return value.
18752
18753 * w32term.h: Declare x_get_font_repertory.
18754
18755 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18756 place of find_charset_in_text. Use encode_coding_object in place
18757 of encode_coding.
18758 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18759 decode_coding.
18760
18761 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18762 of x_new_fontset.
18763 (w32_load_system_font): Initialize charset as unicode.
18764 font_info.encoding becomes encoding_type.
18765 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18766 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18767 (syms_of_w32fns): Set get_font_repertory_func.
18768
18769 * w32console.c: Include character.h. Use terminal_encode_buffer
18770 from term.c.
18771 (write_glyphs): Use new version of encode_terminal_code. Use
18772 encode_coding_object in place of encode_coding.
18773
18774 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18775 encoding becomes encoding_type.
18776
18777 * term.c (terminal_encode_buffer): Make externally visible.
18778
18779 * makefile.w32-in: Add character.h dependancies.
18780 (character.o, chartab.o): New targets.
18781
187822008-02-01 Kenichi Handa <handa@m17n.org>
18783
18784 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18785 CODING_ID_EOL_TYPE.
18786
187872008-02-01 Andreas Schwab <schwab@suse.de>
18788
18789 * coding.c (produce_chars): Revert last change.
18790
187912008-02-01 Kenichi Handa <handa@m17n.org>
18792
18793 * charset.h (charset_unicode): Extern it.
18794
18795 * charset.c (string_xstring_p): Check by (C >= 0x100).
18796 (find_charsets_in_text): Change format of the arc CHARSETS. New
18797 arg MULTIBYTE.
18798 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18799 change of find_charsets_in_text.
18800 (Fsplit_char): Fix doc. Never return unknown.
18801
18802 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18803
18804 * coding.c (Fdefine_coding_system_alias): Update
18805 Vcoding_system_list.
18806
18807 * fontset.c (load_font_get_repertory): Pay attention to the case
18808 that ENCODING of a font is specified by a char-table.
18809
18810 * xterm.c (x_get_font_repertory): Handle the case that the
18811 encoding of font is other than Unicode.
18812
188132008-02-01 Kenichi Handa <handa@m17n.org>
18814
18815 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18816 if a character is encodable by the terminal coding system. If
18817 not, produces proper number of `?'s. Update
18818 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18819 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18820
188212008-02-01 Kenichi Handa <handa@m17n.org>
18822
18823 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18824 variables.
18825 (encode_terminal_code): Change argument. Encode multiple
18826 characters at once. Store the result of encoding in
18827 terminal_encode_buffer.
18828 (write_glyphs, insert_glyphs): Adjust for the change of
18829 encode_terminal_code.
18830 (term_init): Initialize terminal_encode_buffer and
18831 terminal_encode_buf_size.
18832
18833 * coding.c (consume_chars): If coding->src_object is nil, don't
18834 check annotation.
18835
188362008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * character.c (char_string): Use ASCII_CHAR_P instead of
18839 SINGLE_BYTE_CHAR_P.
18840
188412008-02-01 Kenichi Handa <handa@m17n.org>
18842
18843 * xdisp.c (handle_auto_composed_prop): Check if the last
18844 characters of auto-composed region is newly composed with the
18845 following characters.
18846 (handle_composition_prop): Fix checking of point being inside
18847 composition.
18848
188492008-02-01 Kenichi Handa <handa@m17n.org>
18850
18851 * fns.c (concat): Don't change multibyteness of the result by
18852 concatenating an 8-bit character.
18853
18854 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18855 multibyteness of the result when newelt is an 8-bit character.
18856
188572008-02-01 Dave Love <fx@gnu.org>
18858
18859 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18860 EMACS_INT.
18861
18862 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18863
18864 * xfaces.c (face_numeric_value): Declare dim size_t.
18865 (Finternal_lisp_face_equal_p): Remove unused f.
18866
18867 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18868 (MATRIX_ROW): Remove unused vars.
18869 (draw_glyphs, x_insert_glyphs, fast_find_position)
18870 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18871 byte/char counts.
18872
18873 * regex.c (regex_compile): Remove unused var.
18874
18875 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18876
18877 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18878 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18879
18880 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18881
18882 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18883
18884 * fileio.c (Fwrite_region): Remove unused var.
18885
18886 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18887 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18888
18889 * composite.c (Fremove_list_of_text_properties): Declare.
18890
18891 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18892 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18893 (coding_inherit_eol_type): Remove unused attrs.
18894 (detect_coding): Cast arg of detect_eol.
18895
18896 * charset.c (syms_of_charset): Remove unused var p.
18897 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18898 byte/char counts.
18899
18900 * casetab.c (set_case_table): Remove unused var.
18901
18902 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18903 unused vars.
18904
189052008-02-01 Dave Love <fx@gnu.org>
18906
18907 * xterm.c (x_bitmap_mask): Declare.
18908
189092008-02-01 Dave Love <fx@gnu.org>
18910
18911 * xterm.c (x_term_init): Fix type error.
18912
18913 * lisp.h: Add Funibyte_char_to_multibyte.
18914
18915 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18916 (Fset_coding_system_priority): Doc fix.
18917
18918 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18919
18920 * indent.c (check_composition): Make start and end EMACS_INT.
18921
18922 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18923
18924 * xdisp.c (handle_composition_prop, check_point_in_composition):
18925 Make buffer positions EMACS_INT.
18926
18927 * composite.c (find_composition, run_composition_function)
18928 (update_compositions, Ffind_composition_internal): Make buffer
18929 positions EMACS_INT.
18930
18931 * composite.h (find_composition, update_compositions): Make
18932 position args EMACS_INT.
18933
18934 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18935
18936 * intervals.c (get_property_and_range):
18937 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18938
18939 * unexalpha.c: Don't include varargs.h.
18940
189412008-02-01 Dave Love <fx@gnu.org>
18942
18943 * coding.h (ENCODE_UTF_8): New.
18944
18945 * Makefile.in (gtkutil.o): Depend on coding.h.
18946
18947 * coding.c (Fset_coding_system_priority): Doc fix.
18948
189492008-02-01 Kenichi Handa <handa@m17n.org>
18950
18951 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18952 the case of auto saving.
18953
189542008-02-01 Andreas Schwab <schwab@suse.de>
18955
18956 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18957 `range' from GC.
18958
189592008-02-01 Kenichi Handa <handa@m17n.org>
18960
18961 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18962
189632008-02-01 Kenichi Handa <handa@m17n.org>
18964
18965 * fileio.c (choose_write_coding_system): Return a decided coding system.
18966 (Fwrite_region): Set Vlast_coding_system_used to the return value
18967 of choose_write_coding_system.
18968
189692008-02-01 Kenichi Handa <handa@m17n.org>
18970
18971 * charset.c (Fset_charset_priority): Pay attention to duplicated
18972 arguments.
18973
18974 * coding.c (QCcategory): New variable.
18975 (syms_of_coding): Defsym it. Set all elements of
18976 Vcoding_category_table and their symbol values.
18977 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18978 coding-category-XXX, and coding-category-list.
18979 (Fdefine_coding_system_internal): Add category in the plist.
18980
189812008-02-01 Kenichi Handa <handa@m17n.org>
18982
18983 * callproc.c (Fcall_process): Handle carryover correctly.
18984
18985 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18986 (raw_text_coding_system): Check NILP (coding_system).
18987 (coding_inherit_eol_type): Check NILP (coding_system) and
18988 NILP (parent).
18989 (consume_chars): Fix for the case of raw-text.
18990
18991 * process.c (read_process_output): Handle carryover correctly.
18992
189932008-02-01 Dave Love <fx@gnu.org>
18994
18995 * regex.c (re_search_2): Fix last change.
18996
189972008-02-01 Kenichi Handa <handa@m17n.org>
18998
18999 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19000 target_multibyte. Even in a unibyte case, return a converted
19001 multibyte char.
19002 (GET_CHAR_AFTER): New macro.
19003 (PATFETCH): Translate via multibyte char.
19004 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19005 (SETUP_MULTIBYTE_RANGE): New macro.
19006 (regex_compile): Setup compiled code so that its multibyteness
19007 matches that of a target. Fix the handling of "[X-YZ]" using
19008 SETUP_MULTIBYTE_RANGE.
19009 (analyse_first) <charset>: For filling fastmap for all multibyte
19010 characters, don't check by BASE_LEADING_CODE_P.
19011 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19012 the same as RE_MULTIBYTE_P (bufp) now.
19013 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19014 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19015 (TRANSLATE_VIA_MULTIBYTE): New macro.
19016 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19017 It is the same as RE_MULTIBYTE_P (bufp) now.
19018 <exactn>: Translate via multibyte.
19019 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19020 translate it.
19021 <charset, charset_not>: Fetch a character by
19022 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19023 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19024 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19025 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19026 by GET_CHAR_AFTER.
19027 (bcmp_translate): Likewise.
19028
19029 * search.c (compile_pattern): Check the member target_multibyte,
19030 not the member multibyte of buf.
19031
19032 * lread.c (read1): While reading a string, set force_singlebyte
19033 and force_multibyte correctly.
19034
19035 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19036 up of unibyte_to_multibyte_table.
19037
190382008-02-01 Kenichi Handa <handa@m17n.org>
19039
19040 * coding.c (setup_coding_system): If coding has
19041 post-read-conversion or pre-write-conversion, set
19042 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19043 respectively.
19044 (decode_coding_gap): Run post-read-conversion if any.
19045
19046 * fileio.c (Finsert_file_contents): Even if we read into a
19047 unibyte buffer, check if we must decode the result or not.
19048
190492008-02-01 Kenichi Handa <handa@m17n.org>
19050
19051 * coding.c (make_conversion_work_buffer): Change the work buffer
19052 name to the same one as that of Emacs 21.
19053
190542008-02-01 Kenichi Handa <handa@m17n.org>
19055
19056 * coding.h (make_conversion_work_buffer): Adjust prototype.
19057 (code_conversion_restore): Don't extern it.
19058
19059 * coding.c (detected_mask): Delete unused variable.
19060 (decode_coding_iso_2022): Pay attention to the byte sequence of
19061 CTEXT extended segment, and retain those bytes as is.
19062 (decode_coding_ccl): Delete unused variable `valids'.
19063 (setup_coding_system): Delete unused variable `category'.
19064 (consume_chars): Delete unused variable `category'. Make it work
19065 for non-multibyte case.
19066 (make_conversion_work_buffer): Change argument.
19067 (saved_coding): Delete unused variable.
19068 (code_conversion_restore): Don't check saved_coding->destination.
19069 (code_conversion_save): New function.
19070 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19071 instead of record_unwind_protect.
19072 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19073 (detect_coding_system): Delete unused variable `mask'.
19074 (Fdefine_coding_system_internal): Delete unused variable id.
19075
19076 * fileio.c (kill_workbuf_unwind): New function.
19077 (Finsert_file_contents): On replacing, call
19078 make_conversion_work_buffer with correct args, and call
19079 record_unwind_protect with the first arg kill_workbuf_unwind.
19080
19081 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19082
190832008-02-01 Kenichi Handa <handa@m17n.org>
19084
19085 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19086 (fontset_add): Fix for the case that TO is less than TO1.
19087 (Ffontset_info): Don't use fallback fontset on checking the
19088 default fontset.
19089 (dump_fontset): New function for debugging.
19090
19091 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19092 coding_type is Qcharset.
19093
190942008-02-01 Kenichi Handa <handa@m17n.org>
19095
19096 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19097 (map_char_table): Don't inherit the value from the parent on
19098 initializing VAL. Adjust for the above change.
19099
191002008-02-01 Kenichi Handa <handa@m17n.org>
19101
19102 * coding.c (Qsignature, Qendian): Delete these variables.
19103 (syms_of_coding): Don't initialize them.
19104 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19105 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19106 detect_info->found.
19107 (decode_coding_utf_16): Don't detect BOM here.
19108 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19109 is NOT utf_16_without_bom.
19110 (setup_coding_system): For a coding system of type utf-16, check
19111 if the attribute :endian is Qbig or not (not nil or not), and set
19112 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19113 (detect_coding): If coding type is utf-16 and BOM detection is
19114 required, detect it.
19115 (Fdefine_coding_system_internal): For a coding system of type
19116 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19117
191182008-02-01 Kenichi Handa <handa@m17n.org>
19119
19120 * coding.c (coding_set_source): Fix for the case that the current
19121 buffer is different from coding->src_object.
19122 (decode_coding_object): Don't use the conversion work buffer if
19123 DST_OBJECT is a buffer.
19124
191252008-02-01 Dave Love <fx@gnu.org>
19126
19127 * lread.c (read_emacs_mule_char) [len==2]: Index
19128 emacs_mule_charset correctly.
19129
191302008-02-01 Dave Love <fx@gnu.org>
19131
19132 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19133 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19134 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19135 treated specially.)
19136 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19137 (detected_mask): Remove Big5 bits.
19138
191392008-02-01 Kenichi Handa <handa@m17n.org>
19140
19141 The following changes are to make the font rescaling facility
19142 compatible with Emacs 21.
19143
19144 * xfaces.c (Vface_font_rescale_alist): Rename from
19145 Vface_resizing_fonts.
19146 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19147 (font_rescale_ratio): Rename from font_resizing_ratio.
19148 (split_font_name): Set font->rescale_ratio.
19149 (better_font_p): Pay attention to font->rescale_ratio.
19150 (build_scalable_font_name): Likewise. Change RESX, and RESY
19151 fields.
19152 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19153
191542008-02-01 Kenichi Handa <handa@m17n.org>
19155
19156 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19157 (Qutf_16_le): Remove these variables.
19158 (syms_of_coding): Don't DEFSYM them.
19159 (decode_coding_utf_16): Fix handling of BOM.
19160 (encode_coding_utf_16): Fix handling of BOM.
19161
191622008-02-01 Kenichi Handa <handa@m17n.org>
19163
19164 * fileio.c (Finsert_file_contents): On replacing, before decoding
19165 the file into the work buffer, set point of the work buffer to the end.
19166
191672008-02-01 Dave Love <fx@gnu.org>
19168
19169 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19170
191712008-02-01 Dave Love <fx@gnu.org>
19172
19173 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19174 and fix C types.
19175
191762008-02-01 Kenichi Handa <handa@m17n.org>
19177
19178 * xdisp.c (SKIP_GLYPHS): New macro.
19179 (set_cursor_from_row): Pay attention to string display properties.
19180
19181 * category.c (copy_category_entry): Fix for the case that RANGE
19182 is an integer.
19183
19184 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19185
19186 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19187
191882008-02-01 Kenichi Handa <handa@m17n.org>
19189
19190 * charset.c (Fcharset_id_internal): New function.
19191 (syms_of_charset): Defsubr it.
19192
19193 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19194 with the last arg charset_list acquired from coding.
19195 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19196 the attribute coding_attr_ccl_valids.
19197
19198 * coding.h (enum define_coding_ccl_arg_index): Set the first
19199 member coding_arg_ccl_decoder to coding_arg_max.
19200
19201 * ccl.h (ccl_driver): Adjust prototype.
19202
19203 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19204 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19205 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19206 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19207 last arg Qnil.
19208
192092008-02-01 Kenichi Handa <handa@m17n.org>
19210
19211 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19212 call encode_char.
19213
19214 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19215
192162008-02-01 Dave Love <fx@gnu.org>
19217
19218 * composite.c (syms_of_composite): Make composition_hash_table weak.
19219
192202008-02-01 Kenichi Handa <handa@m17n.org>
19221
19222 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19223 (font_name_registry): Don't extern them.
19224 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19225
19226 * fontset.h (Qfontset): Don't extern it.
19227 (new_fontset_from_font_name): Extern it.
19228
19229 * fontset.c: Give 8 extra slots to fontset objects.
19230 (Qfontset_info): New variable.
19231 (syms_of_fontset): Defsym it.
19232 (FONTSET_FALLBACK): New macro.
19233 (fontset_face): Try also the default fontset.
19234 (make_fontset): Realize a fallback fontset from the default fontset.
19235 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19236 using split_font_name_into_vector and build_font_name_from_vector.
19237 (Fset_fontset_font): Access the elements of font_spec by enum
19238 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19239 name by using split_font_name_into_vector.
19240 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19241 generate a proper font name from the fontset name. Update
19242 Vfontset_alias_alist.
19243 (n_auto_fontsets): New variable.
19244 (new_fontset_from_font_name): New function.
19245 (Ffont_info): Store the information about fonts generated from the
19246 default fontset in the first extra slot of the returned char-table.
19247
19248 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19249 (font_name_registry): Delete function.
19250 (split_font_name_into_vector): New function.
19251 (build_font_name_from_vector): New function.
19252 (font_list): The argument REGISTRY is now a list of registry names.
19253 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19254 specifies an explicit font name, return the name as is. Make a
19255 list of registy names.
19256
19257 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19258 of x_new_fontset.
19259 (Fx_create_frame): Don't call x_new_fontset here. Just use
19260 x_list_fonts to check the existence of fonts.
19261
19262 * xterm.h (x_new_fontset): Adjust prototype.
19263
19264 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19265 string. Use new_fontset_from_font_name to create a fontset from a
19266 font name.
19267
192682008-02-01 Kenichi Handa <handa@m17n.org>
19269
19270 * syntax.c (Vfind_word_boundary_function_table): New name for
19271 Vnext_word_boundary_function_table.
19272 (find-word-boundary-function-table): New name for
19273 next-word-boundary-function-table.
19274
192752008-02-01 Dave Love <fx@gnu.org>
19276
19277 * Makefile.in: Fix some dependencies.
19278
19279 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19280 set it to nil before returning.
19281
19282 * composite.c (update_compositions): Fix type error.
19283
19284 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19285
192862008-02-01 Kenichi Handa <handa@m17n.org>
19287
19288 * xterm.c (x_new_font): Optimize for the case that the font is
19289 already set for the frame.
19290
192912008-02-01 Kenichi Handa <handa@m17n.org>
19292
19293 * chartab.c (char_table_ascii): Check if the char table contents
19294 is sub-char-table or not.
19295 (char_table_set, char_table_set_range): Fix argument to
19296 char_table_ascii.
19297
19298 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19299 (detect_coding_utf_8, detect_coding_utf_16)
19300 (detect_coding_emacs_mule, detect_coding_iso_2022)
19301 (detect_coding_sjis, detect_coding_big5)
19302 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19303 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19304 sequence is valid in this coding system. Change callers.
19305 (MAX_ANNOTATION_LENGTH): New macro.
19306 (ADD_ANNOTATION_DATA): New macro.
19307 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19308 ADD_ANNOTATION_DATA. Change the format of annotation data.
19309 (ADD_CHARSET_DATA): New macro.
19310 (emacs_mule_char): New argument ID. Change callers.
19311 (decode_coding_emacs_mule, decode_coding_iso_2022)
19312 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19313 Produce charset annotation data in coding->charbuf.
19314 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19315 to charset annotation data in coding->charbuf.
19316 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19317 coding->common_flags if the coding system is iso-2022 based and
19318 uses designation.
19319 (produce_composition): Adjust for the new annotation data format.
19320 (produce_charset): New function.
19321 (produce_annotation): Handle charset annotation.
19322 (handle_composition_annotation, handle_charset_annotation): New
19323 functions.
19324 (consume_chars): Handle charset annotation. Utilize the above two
19325 functions.
19326 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19327 buffer, get the deleted text as a string and set
19328 coding->src_object to that string.
19329 (detect_coding, detect_coding_system): Use the new struct
19330 coding_detection_info.
19331
19332 * coding.h (struct coding_detection_info): New structure.
19333 (struct coding_system): Adjust prototype of the member `detector'.
19334 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19335
193362008-02-01 Kenichi Handa <handa@m17n.org>
19337
19338 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19339
193402008-02-01 Dave Love <fx@gnu.org>
19341
19342 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19343 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19344 to new local and nullify apropos_accumulate before returning.
19345 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19346
193472008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19350 correctly.
e3eea1fc 19351
aac0c6e3
MR
193522008-02-01 Dave Love <fx@gnu.org>
19353
19354 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19355
193562008-02-01 Kenichi Handa <handa@m17n.org>
19357
19358 The following changes are to make character composition happen
19359 automatically on displaying.
19360
19361 * Makefile.in (lisp, shortlisp): Add composite.elc.
19362
19363 * composite.h (Qauto_composed, Vauto_composition_function)
19364 (Qauto_composition_function): Extern them.
19365
19366 * composite.c (Vcomposition_function_table)
19367 (Qcomposition_function_table): Delete variables.
19368 (Qauto_composed, Vauto_composition_function)
19369 (Qauto_composition_function): New variables.
19370 (run_composition_function): Don't call
19371 compose-chars-after-function.
19372 (update_compositions): Clear `auto-composed' text property.
19373 (compose_chars_in_text): Delete this function.
19374 (syms_of_composite): Staticpro Qauto_composed and
19375 Qauto_composition_function. Declare Vauto_composition_function as
19376 a Lisp variable.
19377
19378 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19379
19380 * xdisp.c (it_props): Add an entry for Qauto_composed.
19381 (handle_auto_composed_prop): New function.
19382
19383 * xselect.c (selection_data_to_lisp_data): Don't call
19384 compose_chars_in_text.
19385
193862008-02-01 Dave Love <fx@gnu.org>
19387
19388 * keyboard.c (read_char): Modify checking around use of
19389 Vkeyboard_translate_table.
19390
19391 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19392 and fix C types.
19393
193942008-02-01 Kenichi Handa <handa@m17n.org>
19395
19396 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19397 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19398 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19399 the case that the last byte is '\r' correctly.
19400 (decode_coding): Flush out the unprocessed data correctly.
19401 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19402
194032008-02-01 Dave Love <fx@gnu.org>
19404
19405 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19406 Add XK_ISO... case.
19407 (xaw_scroll_callback): Revert last change.
19408
194092008-02-01 Kenichi Handa <handa@m17n.org>
19410
19411 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19412
194132008-02-01 Kenichi Handa <handa@m17n.org>
19414
19415 * xfaces.c (Vface_resizing_fonts): New variable.
19416 (struct font_name): New member `resizing_ratio'.
19417 (font_resizing_ratio): New function.
19418 (split_font_name): Set font->resizing_ratio.
19419 (better_font_p): Pay attention to font->resizing_ratio.
19420 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19421 RESX, and RESY fields.
19422 (try_alternative_families): Try scalable fonts if
19423 Vscalable_fonts_allowed is not Qt.
19424 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19425
194262008-02-01 Dave Love <fx@gnu.org>
19427
19428 * xterm.c (xaw_scroll_callback): Cast correctly.
19429
194302008-02-01 Dave Love <fx@gnu.org>
19431
19432 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19433 (lispy_kana_keys): Comment out.
19434 (make_lispy_event) [XK_kana_A]: Comment out.
19435
19436 * xterm.c (xaw_scroll_callback): Cast call_data.
19437 (XTread_socket): Deal with ASCII keysyms.
19438 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19439
194402008-02-01 Dave Love <fx@gnu.org>
19441
19442 * xterm.c (Vx_keysym_table): New.
19443 (syms_of_xterm): Initialize it.
19444 (XTread_socket): Use it.
19445 From head: Eliminate incorrect optimization that tried to avoid
19446 decoding the output of X*LookupString.
19447 (x_get_font_repertory): Delete charset declaration.
19448
194492008-02-01 Kenichi Handa <handa@m17n.org>
19450
19451 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19452 return 0.
19453 (Fdefine_coding_system_internal): Setup
19454 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19455
194562008-02-01 Dave Love <fx@gnu.org>
19457
19458 * coding.c (Fcheck_coding_system): Doc fix.
19459
19460 * editfns.c (Finsert_byte): Return a proper value.
19461
194622008-02-01 Kenichi Handa <handa@m17n.org>
19463
19464 * coding.c (decode_coding): Fix args to translate_chars. Pay
19465 attention to Vstandard_translation_table_for_decode.
19466 (encode_coding): Fix args to translate_chars. Pay attention to
19467 Vstandard_translation_table_for_encode.
19468
19469 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19470 SINGLE_BYTE_CHAR_P.
19471
19472 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19473 not by SINGLE_BYTE_CHAR_P.
19474
19475 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19476 SINGLE_BYTE_CHAR_P.
19477
19478 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19479 SINGLE_BYTE_CHAR_P.
19480
19481 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19482 by SINGLE_BYTE_CHAR_P.
19483
19484 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19485 SINGLE_BYTE_CHAR_P.
19486
194872008-02-01 Dave Love <fx@gnu.org>
19488
19489 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19490
194912008-02-01 Dave Love <fx@gnu.org>
19492
19493 * fns.c (Flanginfo): Fix typo.
19494
19495 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19496
194972008-02-01 Kenichi Handa <handa@m17n.org>
19498
19499 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19500 (detect_coding_emacs_mule, detect_coding_iso_2022)
19501 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19502 incomplete byte sequence. Don't update *mask when correctly detected.
19503 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19504 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19505 (detect_coding, detect_coding_system): Adjust for the changes above.
19506
195072008-02-01 Kenichi Handa <handa@m17n.org>
19508
19509 * character.c (char_string): Rename from
19510 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19511 (string_char): Rename from string_char.
19512
19513 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19514 if C is greater than MAX_3_BYTE_CHAR.
19515 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19516 string_char instead of string_char_with_unification.
19517
195182008-02-01 Dave Love <fx@gnu.org>
19519
19520 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19521
195222008-02-01 Kenichi Handa <handa@m17n.org>
19523
19524 * keymap.c (push_key_description): Pay attention to force_multibyte.
19525
19526 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19527
195282008-02-01 Dave Love <fx@gnu.org>
19529
19530 * charset.c (define_charset_internal): Rename `supprementary'.
19531
19532 * Makefile.in (lisp, shortlisp): Remove latin-N.
19533
195342008-02-01 Dave Love <fx@gnu.org>
19535
19536 * xfns.c (x_window, x_window): Use use_xim.
19537
19538 * xterm.c (use_xim): Initialize.
19539 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19540 (x_term_init): Maybe set use_xim.
19541
19542 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19543
195442008-02-01 Kenichi Handa <handa@m17n.org>
19545
19546 * search.c (search_buffer): Fix case-fold-search of multibyte
19547 characters.
19548 (boyer_moore): Rename the last argument to char_high_bits.
19549
195502008-02-01 Kenichi Handa <handa@m17n.org>
19551
19552 * xdisp.c (display_string): Fix for the case of zero width glyph.
19553
19554 * xfns.c (x_set_font): Change the error message of the case that
19555 x_new_fontset returns Qt.
19556
19557 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19558 (Finternal_set_lisp_face_attribute): Use signal_error for the
19559 error of invalid fontset.
19560
19561 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19562 fontset, return Qt.
19563
195642008-02-01 Dave Love <fx@gnu.org>
19565
19566 * unexelf.c (unexec): Make .got handling not SGI-specific.
19567
19568 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19569
19570 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19571
19572 * keyboard.c (read_key_sequence): Fix type error.
19573
19574 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19575 type error.
19576
19577 * fontset.c (fontset_add): Return Lisp_Object.
19578
195792008-02-01 Dave Love <fx@gnu.org>
19580
19581 * charset.h (charset_ordered_list_tick): Declare extern.
19582
195832008-02-01 Kenichi Handa <handa@m17n.org>
19584
19585 The following changes (and some of 2008-02-01 changes of mine) are
19586 for handling syntax, category, and case conversion for unibyte
19587 characters by converting them to multibyte on the fly. With these
19588 changes, we don't have to setup syntax and case tables for unibyte
19589 characters in each language environment.
19590
19591 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19592 multibyte if necessary.
19593
19594 * bytecode.c (Fbyte_code): Likewise.
19595
19596 * character.h (LEADING_CODE_LATIN_1_MIN)
19597 (LEADING_CODE_LATIN_1_MAX): New macros.
19598 (unibyte_to_multibyte_table): Extern it.
19599 (unibyte_char_to_multibyte): New macro.
19600 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19601 (CHAR_LEADING_CODE): New macro.
19602 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19603
19604 * character.c (unibyte_to_multibyte_table): New variable.
19605 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19606 (multibyte_char_to_unibyte): If C is an eight-bit character,
19607 convert it to the corresponding byte value.
19608
19609 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19610 not 1, signals an error. Update the elements of
19611 unibyte_to_multibyte_table.
19612 (init_charset_once): Initialize unibyte_to_multibyte_table.
19613 (syms_of_charset): Define the charset `iso-8859-1'.
19614
19615 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19616 as is without converting it to unibyte. In a unibyte buffer,
19617 convert C to multibyte before checking the syntax.
19618
19619 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19620
19621 * minibuf.c (Fminibuffer_complete_word): Use the macro
19622 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19623
19624 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19625
19626 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19627 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19628 that is zero, convert an eight-bit char to multibyte.
19629 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19630 non-emacs case.
19631 (PATFETCH): Convert an eight-bit char to multibyte.
19632 (HANDLE_UNIBYTE_RANGE): New macro.
19633 (regex_compile): Setup the compiled pattern for multibyte chars
19634 even if the given regex string is unibyte. Use PATFETCH_RAW
19635 instead of PATFETCH in many places. To handle `charset'
19636 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19637 only for ASCII chars.
19638 (analyse_first) <exactn>: Simplify because the compiled pattern
19639 is multibyte.
19640 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19641 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19642 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19643 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19644 multibyte always 1.
19645 (re_search_2): In emacs, set the locale variable multibyte to 1,
19646 otherwise to 0. New local variable target_multibyte. Check it
19647 to decide the multibyteness of STR1 and STR2. If
19648 target_multibyte is zero, convert unibyte chars to multibyte
19649 before translating and checking fastmap.
19650 (TARGET_CHAR_AND_LENGTH): New macro.
19651 (re_match_2_internal): In emacs, set the locale variable multibyte
19652 to 1, otherwise to 0. New local variable target_multibyte. Check
19653 it to decide the multibyteness of STR1 and STR2. Use
19654 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19655 <charset, charset_not>: If multibyte is nonzero, check fastmap
19656 only for ASCII chars. Call bcmp_translate with
19657 target_multibyte, not with multibyte.
19658 <begline>: Declare the local variable C as `unsigned'.
19659 (bcmp_translate): Change the last arg name to target_multibyte.
19660
19661 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19662 the regexp pattern and the matching target. Set cp->buf.multibyte
19663 to the multibyteness of the regexp pattern. Set
19664 cp->but.target_multibyte to the multibyteness of the matching target.
19665 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19666 FETCH_STRING_CHAR_ADVANCE.
19667 (Freplace_match): Convert unibyte chars to multibyte.
19668
19669 * syntax.c (char_quoted, back_comment, scan_words)
19670 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19671 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19672 unibyte chars to multibyte.
19673 (skip_chars): Delete the arg syntaxp, and move the code for
19674 handling syntaxes to skip_syntaxes. Change callers.
19675 Fix the case that the multibyteness of STRING and the current
19676 buffer doesn't match.
19677 (skip_syntaxes): New function.
19678 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19679 SINGLE_BYTE_CHAR_P.
19680
196812008-02-01 Kenichi Handa <handa@m17n.org>
19682
19683 * xfaces.c (QCfontset): New variable.
19684 (LFACE_FONTSET): New macro.
19685 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19686 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19687 (Finternal_set_lisp_face_attribute)
19688 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19689 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19690 check also LFACE_FONTSET_INDEX.
19691 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19692 attrs[LFACE_FONT_INDEX].
19693 (syms_of_xfaces): Intern and staticpro QCfontset.
19694
19695 * dispextern.h (enum lface_attribute_index): New member
19696 LFACE_FONTSET_INDEX.
19697
19698 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19699
197002008-02-01 Kenichi Handa <handa@m17n.org>
19701
19702 * coding.c (coding_set_destination): Fix coding->destination for
19703 the case converting a region.
19704 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19705 (encode_coding_object): Fix coding->dst_pos and
19706 coding->dst_pos_byte for the case converting a region.
19707
19708 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19709
19710 * character.h (BYTE8_STRING): New macro.
19711
19712 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19713
197142008-02-01 Kenichi Handa <handa@m17n.org>
19715
19716 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19717 characters by octal form.
19718
19719 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19720
19721 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19722 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19723 _fetch_multibyte_char_len.
19724 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19725
19726 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19727
19728 * casefiddle.c (casify_object): Simplify. Handle the case that
19729 the case conversion change the byte length.
19730 (casify_region): Likewise.
19731
19732 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19733
19734 * character.c (_fetch_multibyte_char_len): Delete this variable.
19735 (syms_of_character): Setup Vprintable_chars.
19736
19737 * editfns.c (Fchar_equal): Fix for the unibyte case.
19738 (Finsert_byte): New function.
19739 (syms_of_editfns): Defsubr it.
19740
19741 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19742 of direct code 0x3ffff.
19743
19744 * search.c (Freplace_match): Fix for the unibyte case.
19745
197462008-02-01 Kenichi Handa <handa@m17n.org>
19747
19748 * lread.c (safe_to_load_p): Fix the logic.
19749
19750 * syntax.c (scan_words): Don't treat characters belonging to
19751 different scripts as constituting a word.
19752
19753 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19754
19755 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19756
19757 * emacs.c (main): In the case of --unibyte, instead of aborting on
19758 finding non-empty buffer, make it unibyte.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19763 to create a fontset.
19764
197652008-02-01 Dave Love <fx@gnu.org>
19766
19767 * character.c (Funibyte_char_to_multibyte): Doc fix.
19768
19769 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19770
197712008-02-01 Kenichi Handa <handa@m17n.org>
19772
19773 * fontset.c (fontset_add): Make the type `int'.
19774 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19775
19776 * character.c (unibyte_char_to_multibyte)
19777 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19778 charset_unibyte, not charset_primary.
19779
19780 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19781
19782 * charset.c (charset_unibyte): Rename from charset_primary.
19783 (Funibyte_charset): Rename from Fprimary_charset.
19784 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19785 (syms_of_charset): Adjust for the above changes.
19786
19787 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19788 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19789 it->multibyte_p is zero.
19790
19791 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19792 Delete extern.
19793
197942008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * coding.c (Fdefine_coding_system_internal): Fix category setting
19797 for a coding system of type iso-2022.
19798
197992008-02-01 Kenichi Handa <handa@m17n.org>
19800
19801 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19802
198032008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 * syntax.c (Vnext_word_boundary_function_table): New variable.
19806 (next-word-boundary-function-table): Declare it as a Lisp variable
19807 in syms_of_syntax.
19808 (scan_words): Call functions in Vnext_word_boundary_function_table
19809 if any.
19810
19811 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19812
19813 * fontset.c (fs_load_font): If fontp->charset is not negative,
19814 return fontp without setting its members.
19815
198162008-02-01 Dave Love <fx@gnu.org>
19817
19818 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19819
19820 * m/sparc.h (HAVE_ALLOCA): Delete.
19821
19822 * s/irix6-5.h: Don't include strings.h.
19823 (bcopy, bzero, bcmp): Don't undef.
19824
19825 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19826
19827 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19828 (TIOCSIGSEND): Don't test IRIX6.
19829 (bcopy, bzero, bcmp): Define conditionally.
19830
198312008-02-01 Kenichi Handa <handa@m17n.org>
19832
19833 * buffer.c (Qas, Qmake, Qto): New variables.
19834 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19835 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19836
19837 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19838 we are inserting a process output into a multibyte buffer.
19839
19840 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19841 multibyte_char_to_unibyte.
19842
19843 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19844 by the primary charset, make it eight-bit char.
19845 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19846
19847 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19848 (charset_8_bit__control, charset_8_bit_graphic)
19849 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19850 (define_charset_internal): New function.
19851 (syms_of_charset): Call define_charset_internal for pre-defined
19852 charsets.
19853
19854 * charset.h (charset_8_bit): Extern it.
19855
19856 * coding.c (make_conversion_work_buffer): Adjust for the change
19857 of Fset_buffer_multibyte.
19858 (encode_coding_raw_text): Increment p0 in the loop.
19859
19860 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19861
19862 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19863 for the change of Fset_buffer_multibyte.
19864
19865 * fns.c (Fstring_to_multibyte): New function.
19866 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19867
198682008-02-01 Dave Love <fx@gnu.org>
19869
19870 * xfns.c (x_put_x_image): Declare args.
19871
19872 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19873 (try_font_list): Declare an arg.
19874
19875 * xdisp.c (message2_nolog, set_message): Declare an arg.
19876
19877 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19878
19879 * syntax.c (scan_sexps_forward): Declare an arg.
19880
19881 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19882 Declare an arg.
19883
19884 * lisp.h (Fnew_fontset): Declare.
19885
19886 * keymap.c (push_key_description): Call CHARACTERP correctly.
19887
19888 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19889 (face_for_char): Delete unused vars.
19890 (Fset_fontset_font): Doc fix. Delete unused vars.
19891
19892 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19893
19894 * composite.c (update_compositions): Declare arg.
19895
19896 * cm.c (calccost, cmgoto): Declare args.
19897
19898 * charset.c: Remove `emacs' conditional. Doc fixes.
19899 (map_char_table_for_charset): Declare.
19900
19901 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19902
19903 * ccl.c: Remove `emacs' conditional.
19904
199052008-02-01 Kenichi Handa <handa@m17n.org>
19906
19907 The following changes are to allow specifying multiple font
19908 patterns for a character range (specified by script or charset).
19909
19910 * Makefile.in (abbrev.o): Depend on syntax.h.
19911 (xfaces.o): Depend on charset.h.
19912
19913 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19914 SINGLE_BYTE_CHAR_P.
19915
19916 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19917
19918 * character.h (Vchar_script_table): Extern it.
19919
19920 * character.c (Vscript_alist): Delete.
19921 (Vchar_script_table, Qchar_script_table): New variable.
19922 (syms_of_character): Declare Vchar_script_table as a lisp variable
19923 and initialize it.
19924
19925 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19926 have property char-table-extra-slots, make no extra slot.
19927
19928 * dispextern.h (struct face): Delete member `charset'.
19929 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19930 SINGLE_BYTE_CHAR_P.
19931 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19932 Add prototypes.
19933 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19934 (generate_ascii_font_name): Rename from generate_ascii_font.
19935
19936 * fontset.h (get_font_repertory_func): New prototype.
19937 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19938 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19939
19940 * fontset.c (Qprepend, Qappend): New variables.
19941 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19942 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19943 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19944 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19945 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19946 (load_font_get_repertory): New functions.
19947 (fontset_set): Delete.
19948 (fontset_face): New arg FACE. Return face ID, not face.
19949 Complete re-write to handle new fontset structure. Change caller.
19950 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19951 (face_for_char): Don't call lookup_face.
19952 (make_fontset_for_ascii_face): New arg FACE.
19953 (fs_load_font): New arg CHARSET_ID. Don't check
19954 Vfont_encoding_alist here.
19955 (find_font_encoding): New function.
19956 (list_fontsets): Use STRINGP, not ! NILP.
19957 (accumulate_script_ranges): New function.
19958 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19959 re-written to handle new fontset structure.
19960 (Ffontset_font): Return a copy of element.
19961 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19962 docstring of font-encoding-alist.
19963
19964 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19965 (Fset_fotset_font): Fix arguments to 5.
19966
19967 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19968
19969 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19970 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19971 (highlight_trailing_whitespace): Adjust for the change of
19972 lookup_named_face.
19973
19974 * xfaces.c: Include charset.h.
19975 (load_face_font): Delete argument C. Change caller.
19976 (generate_ascii_font_name): Rename from generate_ascii_font.
19977 (font_name_registry): New function.
19978 (cache_face): Store ascii faces before non-ascii faces in buckets.
19979 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19980 Lookup only ascii faces.
19981 (lookup_non_ascii_face): New function.
19982 (lookup_named_face): Delete argument C. Change caller.
19983 (lookup_derived_face): Delete argument C. Change caller.
19984 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19985 a string, just call font_list with it.
19986 (choose_face_font): Delete arguments FACE and C. New arg
19987 FONT_SPEC. Change caller.
19988 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19989 Change caller.
19990 (realize_non_ascii_face): New function.
19991 (realize_x_face): Call load_face_font here.
19992 (realize_tty_face): Delete argument C. Change caller.
19993 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19994 get a face ID.
19995 (dump_realized_face): Don't print charset of FACE.
19996
19997 * xfns.c (x_set_font): Always call x_new_fontset and
19998 store_frame_parameter.
19999 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20000 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20001
20002 * xterm.h (x_get_font_repertory): Extern it.
20003
20004 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20005 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20006 it->multibyte_p is zero.
20007 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20008 (x_new_fontset): If FONTSETNAME doesn't match any existing
20009 fontsets, create a new one.
20010 (x_get_font_repertory): New function.
20011
200122008-02-01 Kenichi Handa <handa@m17n.org>
20013
20014 * coding.c (Ffind_coding_systems_region_internal): Detect an
20015 ASCII only string correctly.
20016
20017 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20018 version is 0.
20019
200202008-02-01 Kenichi Handa <handa@m17n.org>
20021
20022 * lread.c: Include "coding.h".
20023 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20024 (load_each_byte, unread_char): New variables.
20025 (readchar_backlog): Delete.
20026 (readchar): Return a character unless load_each_byte is nonzero.
20027 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20028 cons. If unread_char is not -1, simply return it.
20029 (unreadchar): Handle the case that readcharfun is
20030 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20031 (read_multibyte): Delete.
20032 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20033 (read_emacs_mule_char): New functions.
20034 (Fload): Even if the file doesn't have the extension ".elc", if
20035 safe_to_load_p returns a positive version number, assume that the
20036 file contains bytecompiled code. If the version is less than 22,
20037 load the file while decoding multibyte sequences by emacs-mule.
20038 (readevalloop): Don't use readchar_backlog.
20039 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20040 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20041 (read_escape): Delete the arg BYTEREP.
20042 (read1): Set load_each_byte to 1 temporarily while handling
20043 #@NUMBER. Don't call read_multibyte.
20044 (read_vector): Call Fread with a cons. If readcharfun is
20045 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20046 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20047 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20048 and Qload_force_doc_strings.
20049
200502008-02-01 Kenichi Handa <handa@m17n.org>
20051
20052 * xdisp.c (face_before_or_after_it_pos): Call
20053 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20054
200552008-02-01 Kenichi Handa <handa@m17n.org>
20056
20057 * character.h (TRAILING_CODE_P): New macro.
20058 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20059 (string_char_with_unification): Fix prototype.
20060 (Vscript_alist): Extern it.
20061
20062 * character.c (Vscript_alist): New variable.
20063 (string_char_with_unification, str_as_unibyte)
20064 (string_escape_byte8): Add `const' to local variables.
20065 (syms_of_character): Declare script-alist as a Lisp variable.
20066
20067 * charset.h (Vcharset_ordered_list): Extern it.
20068 (charset_ordered_list_tick): Extern it.
20069 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20070 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20071 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20072 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20073 (Funify_charset): Adjust for the change of Funify_charset.
20074
20075 * charset.c (charset_ordered_list_tick): New variable.
20076 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20077 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20078 deunify intead of unify a charset.
20079 (string_xstring_p): Add `const' to local variables.
20080 (find_charsets_in_text): Add `const' to arguments and local variables.
20081 (encode_char): Adjust for the change of Funify_charset. Fix
20082 detecting of invalid code.
20083 (Fset_charset_priority): Increment charset_ordered_list_tick.
20084 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20085 and TO_CODE.
20086
20087 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20088 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20089 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20090 (decode_coding_ccl, consume_chars)
20091 (Ffind_coding_systems_region_internal)
20092 (Fcheck_coding_systems_region): Add `const' to local variables.
20093
20094 * print.c (print_object): Use octal form for printing the
20095 contents of a bool vector.
20096
200972008-02-01 Dave Love <fx@gnu.org>
20098
20099 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20100 <version == 20>: Refuse to load.
20101
201022008-02-01 Dave Love <fx@gnu.org>
20103
20104 * fns.c: Move coding.h.
20105 (Qcodeset, Qdays, Qmonths): New.
20106 (concat): Use CHARACTERP instead of INTEGERP.
20107 (Flocale_codeset): Delete.
20108 (Flanginfo): New function.
20109 (syms_of_fns): Change accordingly.
20110
20111 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20112
201132008-02-01 Dave Love <fx@gnu.org>
20114
20115 * casetab.c (init_casetab_once, init_casetab_once): Fix
20116 CHAR_TABLE_SET call.
20117
20118 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20119
20120 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20121
20122 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20123 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20124 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20125
20126 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20127
20128 * coding.c (ENCODE_DESIGNATION, decode_eol)
20129 (make_conversion_work_buffer, code_conversion_restore)
20130 (Fdefine_coding_system_internal): Convert Lisp types.
20131 (code_conversion_restore): Use EQ, not ==.
20132 (Fencode_coding_string): Fix code_convert_string call.
20133
20134 * coding.h (code_convert_region): Fix prototype.
20135
20136 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20137
20138 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20139 (Ffontset_info): Convert Lisp types.
20140
20141 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20142
20143 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20144
20145 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20146
20147 * chartab.c: Include "...h", not <...h> in some cases.
20148
20149 * callproc.c (Fcall_process): Remove unused variables.
20150
201512008-02-01 Dave Love <fx@gnu.org>
20152
20153 * coding.c (Fset_coding_system_priority): Allow null arg list.
20154
201552008-02-01 Dave Love <fx@gnu.org>
20156
20157 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20158 (Fself_insert_and_exit): Use CHARACTERP.
20159
20160 * callproc.c (Fcall_process): Remove unused vars.
20161
20162 * xterm.c (XTread_socket): Add extra dead keysyms.
20163
20164 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20165
20166 * dispextern.h: Remove prototypes for redraw_frame,
20167 redraw_garbaged_frames.
20168
20169 * cmds.c (Fself_insert_command): Use CHARACTERP.
20170
20171 * chartab.c (make_sub_char_table): Remove unused var.
20172 (Fset_char_table_default, Fmap_char_table): Doc fix.
20173
20174 * keymap.c (access_keymap): Remove generic char code.
20175 (push_key_description): Use CHARACTERP.
20176
201772008-02-01 Dave Love <fx@gnu.org>
20178
20179 * charset.c: Doc fixes.
20180 (Funify_charset): Extra checking.
20181
201822008-02-01 Dave Love <fx@gnu.org>
20183
20184 * lread.c: Remove some unused variables.
20185 (safe_to_load_p): If safe, return the magic number version byte.
20186 (Fload): Maybe use load-with-code-conversion.
20187
201882008-02-01 Kenichi Handa <handa@m17n.org>
20189
20190 * category.c (Fmodify_category_entry): Don't modify the contents
20191 of category_set for characters out of the range. Avoid
20192 unnecessary modification.
20193
20194 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20195 Vchar_unify_table. The default value of the table is now nil.
20196
20197 * character.c (syms_of_character): Setup Vchar_width_table for
20198 eight-bit-control and raw-byte chars.
20199
20200 * charset.h (enum define_charset_arg_index): Delete
20201 charset_arg_parents and add charset_arg_subset and
20202 charset_arg_superset.
20203 (enum charset_attr_index): Delete charset_parents and add
20204 charset_subset and charset_superset.
20205 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20206 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20207 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20208 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20209 (CHARSET_SUPERSET): New macros.
20210 (charset_work): Extern it.
20211 (ENCODE_CHAR): Use charset_work.
20212 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20213 (map_charset_chars): Extern it.
20214
20215 * charset.c (load_charset_map): Set the default value of encoder
20216 and deunifier char-tables to nil.
20217 (map_charset_chars): Change argument. Change callers. Use
20218 map_char_table_for_charset instead of map_char_table.
20219 (Fmap_charset_chars): New optional args from_code and to_code.
20220 (Fdefine_charset_internal): Adjust for the change of
20221 `define-charset' (:parents -> :subset or :superset).
20222 (charset_work): New variable.
20223 (encode_char, syms_of_charset): Adjust for the change of
20224 Fdefine_charset_internal.
20225 (Ffind_charset_string): Setup the vector `charsets' correctly.
20226
20227 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20228 the previous change.
20229 (char_table_ref_and_range): Adjust for the above change.
20230 (map_sub_char_table_for_charset): New function.
20231 (map_char_table_for_charset): New function.
20232
20233 * keymap.c (describe_vector): Handle a char-table directly here.
20234 (describe_char_table): Delete.
20235
20236 * lisp.h (map_charset_chars): Delete.
20237
202382008-02-01 Dave Love <fx@gnu.org>
20239
20240 * fns.c (count_combining): Comment out (unused).
20241 (Flocale_codeset): New.
20242 (syms_of_fns): Defsubr it.
20243
20244 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20245 (size_t): Remove.
20246
202472008-02-01 Dave Love <fx@gnu.org>
20248
20249 * Makefile.in (chartab.o): Depend on charset.h.
20250
202512008-02-01 Kenichi Handa <handa@m17n.org>
20252
20253 * character.c (syms_of_character): Set the default value of
20254 Vprintable_chars to Qnil.
20255
202562008-02-01 Dave Love <fx@gnu.org>
20257
20258 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20259
202602008-02-01 Kenichi Handa <handa@m17n.org>
20261
20262 * charset.c (load_charset_map): Handle the case that from < to
20263 correctly.
20264
20265 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20266 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20267 Pay attention to raw-8-bit chars.
20268
202692008-02-01 Kenichi Handa <handa@m17n.org>
20270
20271 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20272 It is not bytecompiled now.
20273
20274 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20275 (charset_jisx0208): New variables.
20276 (Fdefine_charset_internal): Setup them if appropriate.
20277 (init_charset_once): Initialize them to -1.
20278
20279 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20280 (charset_jisx0208): Extern them.
20281
20282 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20283 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20284 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20285 (setup_iso_safe_charsets): Fix arguments to Fassq.
20286 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20287 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20288 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20289 (encode_coding_iso_2022): Change the 1st arg to
20290 ENCODE_ISO_CHARACTER to a variable.
20291
202922008-02-01 Kenichi Handa <handa@m17n.org>
20293
20294 * charset.h (enum define_charset_arg_index): New enums
20295 charset_arg_min_code and charset_arg_max_code.
20296 (struct charset): New member char_index_offset.
20297
20298 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20299 Take charset->char_index_offset into account.
20300 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20301 args[charset_arg_max_code]. Setup charset.char_index_offset.
20302 (syms_of_charset): Fix args to Fdefine_charset_internal.
20303
203042008-02-01 Dave Love <fx@gnu.org>
20305
20306 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20307
203082008-02-01 Dave Love <fx@gnu.org>
20309
20310 * coding.c: Doc fixes.
20311 (Fcoding_system_aliases): Fix return value.
20312 (Qmac): Remove (duplicated) definition.
20313
203142008-02-01 Dave Love <fx@gnu.org>
20315
362654a6
JB
20316 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20317 New functions.
aac0c6e3
MR
20318
20319 * character.c (Fstring): Doc fix.
20320
20321 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20322
362654a6 20323 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20324 (font-encoding-alist): Doc fix.
20325
203262008-02-01 Dave Love <fx@gnu.org>
20327
20328 * term.c (costs_set): Declare static, non-initialized for pcc.
20329 (encode_terminal_code): Remove unused var.
20330
20331 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20332 for K&R.
20333
20334 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20335
20336 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20337 (suffixes): Move out of make_subsidiaries for K&R.
20338
20339 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20340
20341 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20342
203432008-02-01 Dave Love <fx@gnu.org>
20344
20345 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20346
20347 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20348
203492008-02-01 Yong Lu <lyongu@asia-infonet.com>
20350
20351 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20352
20353 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20354
203552008-02-01 Kenichi Handa <handa@m17n.org>
20356
20357 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20358 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20359
203602008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * coding.c (decode_coding_charset): Adjust for the change of
20363 Fdefine_coding_system_internal.
20364 (Fdefine_coding_system_internal): For a coding system of
20365 `charset' type, store a list of charset IDs in
20366 `charset_attr_charset_valids' element of coding attributes.
20367
203682008-02-01 Kenichi Handa <handa@m17n.org>
20369
20370 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20371 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20372 caller. Handle 2-byte and 3-byte charsets correctly.
20373 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20374 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20375 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20376 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20377 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20378 sequence.
20379 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20380 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20381 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20382 and alt&rule composition.
20383 (decode_coding_iso_2022): Handle composition correctly.
20384 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20385
20386 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20387 re-defining a charset. If the charset has :emacs-mule-id, setup
20388 emacs_mule_bytes.
20389 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20390
203912008-02-01 Kenichi Handa <handa@m17n.org>
20392
20393 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20394 (encode_coding_big5, encode_coding_charset): If coding requires safe
20395 encoding, produce a character specified by
20396 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20397
203982008-02-01 Dave Love <fx@gnu.org>
20399
20400 * xterm.c (XSetIMValues): Declare.
20401
20402 * process.c: Conditionally include sys/wait.h, pty.h.
20403
20404 * print.c (print_object): Fix print format for 64-bit systems.
20405
20406 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20407
20408 * buffer.c (emacs_strerror): Declare.
20409
20410 * fontset.c (Fclear_face_cache): Declare.
20411 (accumulate_font_info): Comment-out (unused).
20412 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20413 variables.
20414
20415 * character.h (string_escape_byte8): Declare.
20416
20417 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20418 unused vars.
20419 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20420 (Fmap_charset_chars): Doc fix.
20421
20422 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20423 (Fset_coding_system_priority, Fset_coding_system_priority)
20424 (Fdefine_coding_system_internal): Doc fix.
20425
204262008-02-01 Dave Love <fx@gnu.org>
20427
20428 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20429
204302008-02-01 Kenichi Handa <handa@m17n.org>
20431
20432 * character.c (string_escape_byte8): Make multibyte string with
20433 correct size.
20434
20435 * charset.c (Fmake_char): Delete unnecessary code.
20436
204372008-02-01 Kenichi Handa <handa@m17n.org>
20438
20439 * xfns.c (x_encode_text): Allocate coding.destination here, and
20440 call encode_coding_object with dst_object Qnil.
20441
20442 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20443 multibyte form correctly.
20444
20445 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20446 against Vfont_encoding_alist.
20447
20448 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20449 handling of charset list.
20450 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20451 (decode_coding_object): Move point to coding->dst_pos before
20452 calling post-read-conversion function.
20453 (encode_coding_object): Give correct arguments to
20454 pre-write-conversion. Ignore the return value of
20455 pre-write-conversion function. Pay attention to the case that
20456 pre-write-conversion changes the current buffer. If dst_object is
20457 Qt, even if coding->src_bytes is zero, allocate at least one byte
20458 to coding->destination.
20459
20460 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20461
20462 * charset.c (Fmake_char): Make it more backward compatible.
20463 (Fmap_charset_chars): Fix docstring.
20464
204652008-02-01 Dave Love <fx@gnu.org>
20466
20467 * coding.c: Doc fixes.
20468 (Fdefine_coding_system_alias): Use names, not symbols, in
20469 coding-system-alist.
20470
204712008-02-01 Kenichi Handa <handa@m17n.org>
20472
20473 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20474 of calling free_realized_face.
20475
204762008-02-01 Yong Lu <lyongu@asia-infonet.com>
20477
20478 * charset.c (read_hex): Don't treat SPC as a comment starter.
20479 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20480 (Fdecode_char): Fix typo.
20481
204822008-02-01 Kenichi Handa <handa@m17n.org>
20483
20484 * charset.h (struct charset): New member `code_space_mask'.
20485
20486 * coding.c (coding_set_source): Delete the local variable beg_byte.
20487 (encode_coding_charset, Fdefine_coding_system_internal):
20488 Delete the local variable charset.
20489 (Fdefine_coding_system_internal): Setup
20490 attrs[coding_attr_charset_valids] correctly.
20491
20492 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20493 member to check if CODE is valid or not.
20494 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20495 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20496 is within the range of charset->min_code and carset->max_code.
20497
204982008-02-01 Dave Love <fx@gnu.org>
20499
20500 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20501
20502 * dispextern.h (generate_ascii_font): Fix return type.
20503
20504 * xfaces.c (generate_ascii_font): Fix arg declaration.
20505
20506 * coding.c (coding_inherit_eol_type)
20507 (Fset_terminal_coding_system_internal)
20508 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20509
205102008-02-01 Kenichi Handa <handa@m17n.org>
20511
20512 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20513 multiple charsets correctly.
20514
205152008-02-01 Kenichi Handa <handa@m17n.org>
20516
20517 * search.c (boyer_moore): Fix handling of multibyte character
20518 translation.
20519
20520 * xdisp.c (display_mode_element): When the variable `elt' is
20521 changed, update `this' and `lisp_string'.
20522
205232008-02-01 Kenichi Handa <handa@m17n.org>
20524
20525 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20526
20527 * callproc.c (Fcall_process): Be sure to give the current buffer
20528 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20529
20530 * charset.c (struct charset_map_entries): New struct.
20531 (load_charset_map): Rename from parse_charset_map. New args
20532 entries and n_entries. Change caller.
20533 (load_charset_map_from_file): Rename from load_charset_map.
20534 Change caller. New arg control_flag. Call load_charset_map at
20535 the tail.
20536 (load_charset_map_from_vector): New function.
20537 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20538 (encode_char): If the charset is compact, change a character index
20539 to a code point.
20540
20541 * coding.c (coding_alloc_by_making_gap): Check the case that the
20542 source and destination are the same correctly.
20543 (decode_coding_raw_text): Set coding->consumed_char and
20544 coding->consumed to 0.
20545 (produce_chars): If coding->chars_at_source is nonzero, update
20546 coding->consumed_char and coding->consumed before calling
20547 alloc_destination.
20548 (Fdefine_coding_system_alias): Register ALIAS in
20549 Vcoding_system_alist.
20550 (syms_of_coding): Define `no-conversion' coding system at the tail.
20551
20552 * fileio.c (Finsert_file_contents): Set coding_system instead of
20553 val. If the current buffer is multibyte, always call
20554 decode_coding_gap.
20555
20556 * xfaces.c (try_font_list): Give higher priority to fontset's
20557 family than face's family.
20558
205592008-02-01 Kenichi Handa <handa@m17n.org>
20560
20561 * callproc.c (Fcall_process): Be sure to give the current buffer
20562 to decode_coding_c_string.
20563
20564 * xfaces.c (try_font_list): Give a family specified in a fontset
20565 higher priority than a family specified in a face.
20566
205672008-02-01 Kenichi Handa <handa@m17n.org>
20568
20569 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20570 Fix arguments to insert_from_buffer.
20571
20572 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20573
205742008-02-01 Kenichi Handa <handa@m17n.org>
20575
20576 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20577 (decode_coding_gap): Set coding->dst_multibyte correctly.
20578
205792008-02-01 Kenichi Handa <handa@m17n.org>
20580
20581 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20582 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20583 (encode_coding_utf_16): Substitute coding->default_char for
20584 non-Unicode characters.
20585 (decode_coding): Don't call record_insert here.
20586 (setup_coding_system): Initialize `surrogate' of
20587 coding->spec.utf_16 to 0.
20588 (EMIT_ONE_BYTE): Fix for multibyte case.
20589
20590 * insdel.c (insert_from_gap): Call record_insert.
20591
205922008-02-01 Kenichi Handa <handa@m17n.org>
20593
20594 * casefiddle.c (casify_region): Fix multibyte case.
20595
20596 * character.c (c_string_width): Add return type `int'.
20597 (char_string_with_unification): Delete arg ADVANCED.
20598
20599 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20600 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20601 (CHAR_STRING_ADVANCE): Make it do-while statement.
20602
20603 * chartab.c (sub_char_table_set_range): Optimize for the case
20604 DEPTH == 3. Add workaround code for a GCC optimization bug.
20605
20606 * charset.c (parse_charset_map): Remove an unused variable.
20607
20608 * coding.c: Delete unused variables.
20609
20610 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20611 earlier. If inserted is zero and the coding system doesn't
20612 require flushing, don't call decode_coding_gap.
20613
20614 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20615
206162008-02-01 Kenichi Handa <handa@m17n.org>
20617
20618 The following changes are for using Unicode as an internal
20619 character model, and use UTF-8 format for buffer/string
20620 representation.
20621
20622 * .gdbinit (xchartable): Adjust for the change of char table structure.
20623 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20624
20625 * Makefile.in (obj): Add character.o and chartab.o.
20626 (lisp, shortlisp): Remove utf-8.elc.
20627 (*.o): For many files, change dependency on charset.h to
20628 character.h, and add dependency on character.h.
20629 (character.o, chartab.o): New targets.
20630
20631 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20632 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20633 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20634 of "charset.h".
20635
20636 * dired.c, filelock.c: Include "character.h".
20637
20638 * alloc.c: Include "character.h" instead of "charset.h".
20639 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20640 (syms_of_alloc): Remove defsubr for Smake_char_table.
20641
20642 * buffer.c: Include "character.h" instead of "charset.h", don't
20643 include "coding.h".
20644 (Fset_buffer_multibyte): Adjust for UTF-8.
20645
20646 * buffer.h: EXFUN Fbuffer_live_p.
20647
20648 * callproc.c: Include "character.h" instead of "charset.h".
20649 (Fcall_process): Big change for the new code-conversion APIs.
20650
20651 * casetab.c: Include "character.h" instead of "charset.h".
20652 (set_canon, set_identity, shuffle): Adjust for the new
20653 map_char_table spec.
20654 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20655 accessing the char table structure.
20656
20657 * chartab.c: New file that implements char table.
20658
20659 * category.c: Include "character.h".
20660 (copy_category_entry): New function.
20661 (copy_category_table): Call map_char_table and copy_category_entry.
20662 (Fmake_category_table): Initialize all top-level slots.
20663 (char_category_set): New function.
20664 (modify_lower_category_set): Delete.
20665 (Fmodify_category_entry): Call char_table_ref_and_range.
20666
20667 * category.h (CATEGORY_SET): Just call char_category_set.
20668
20669 * ccl.c: Include "character.h".
20670 (Qccl, Qcclp): New variables.
20671 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20672 it's less than 256.
20673 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20674 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20675 and DST type.
20676 (ccl_driver): Change types of argument, adjust code accordingly.
20677 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20678 ccl_driver.
20679 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20680
20681 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20682 New members src_multibyte, dst_multibyte, consumed, and produced.
20683 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20684 (CODING_SPEC_CCL_PROGRAM): New macro.
20685 (ccl_driver): Update prototype.
20686 (Qccl, Qcclp, Fccl_program_p): Extern them.
20687 (CHECK_CCL_PROGRAM): New macro.
20688
20689 * character.c, character.h, chartab.c: New files.
20690
20691 * charset.c: Mostly re-written. Move character and multibyte sequence
20692 handling codes to character.c.
20693
20694 * charset.h: Mostly re-written. Move character and multibyte sequence
20695 handling codes to character.h.
20696
20697 * coding.c, coding.h: Mostly re-written.
20698
20699 * composite.c: Include "character.h" instead of "charset.h".
20700 (CHAR_WIDTH): Move to character.h.
20701 (HASH_KEY, HASH_VALUE): Delete.
20702
20703 * composite.h (enum composition_method): Change order of enumeration
20704 symbols.
20705
20706 * data.c: Include "character.h" instead of "charset.h".
20707 (Faref): Call CHAR_TABLE_REF for a char table.
20708 (Faset): Call CHAR_TABLE_SET for a char table.
20709
20710 * dispextern.h (free_realized_face, check_face_attribytes)
20711 (generate_ascii_font): Extern them.
20712 (free_realized_multibyte_face): Delete extern.
20713
20714 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20715 table structure.
20716
20717 * editfns.c: Include "character.h" instead of "charset.h".
20718 (Fchar_to_string): Always call CHAR_STRING.
20719
20720 * emacs.c (main): Call init_charset_once, init_charset,
20721 syms_of_chartab, and syms_of_character.
20722
20723 * fileio.c: Include "character.h" instead of "charset.h".
20724 (Finsert_file_contents): Big change for the new code-conversion API.
20725 (choose_write_coding_system, Fwrite_region): Likewise.
20726 (build_annotations_2): Delete.
20727 (e_write): Big change for the new code-conversion API.
20728
20729 * fns.c: Include "character.h" instead of "charset.h".
20730 (copy_sub_char_table): Move to chartab.c.
20731 (Fcopy_sequence): Call copy_char_table for a char table.
20732 (concat): Delete codes calling count_multibyte.
20733 (string_char_to_byte, string_byte_to_char): Adjust for the new
20734 multibyte form.
20735 (internal_equal): Adjust for the change of char table structure.
20736 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20737 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20738 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20739 (char_table_translate, optimize_sub_char_table)
20740 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20741 chartab.c.
20742 (char_table_ref_and_index): Delete.
20743 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20744 (Fmd5): Call preferred_coding_system instead of accessing
20745 Vcoding_category_list. Adjust for the new code-conversion API.
20746 (syms_of_fns): Move defsubr for char table related functions to
20747 chartab.c.
20748
20749 * fontset.c: Mostly re-written.
20750
20751 * fontset.h (struct font_info): Change type of the member encoding_type.
20752 (enum FONT_SPEC_INDEX): New enum.
20753 (fontset_font_pattern, fs_load_font): Update prototype.
20754 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20755
20756 * indent.c: Include "character.h" instead of "charset.h".
20757 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20758
20759 * insdel.c: Include "character.h" instead of "charset.h".
20760 (copy_text): Don't refer to Vnonascii_translation_table.
20761 (insert_from_gap): New function.
20762
20763 * keyboard.c: Include "character.h" instead of "charset.h".
20764 (command_loop_1): Never call direct_output_forward_char before
20765 a non-ASCII character.
20766 (read_char): If Vkeyboard_translate_table is a char table, always
20767 translate a character.
20768
20769 * keymap.c: Include "character.h".
20770 (store_in_keymap): Handle the case that IDX is a cons.
20771 (Fdefine_key): Handle the case that KEY is a cons and the car part
20772 is also a cons (range).
20773 (push_key_description): Adjust for the new character code.
20774 (describe_vector): Call describe_char_table for a char table.
20775 (describe_char_table): New function.
20776
20777 * keymap.h (describe_char_table): Extern it.
20778
20779 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20780 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20781 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20782 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20783 Delete.
20784 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20785 structure.
20786 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20787 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20788 (CHARTAB_SIZE_BITS_3): New macros.
20789 (chartab_size): Extern it.
20790 (struct Lisp_Char_Table): Re-design.
20791 (struct Lisp_Sub_Char_Table): New structure.
20792 (HASH_KEY, HASH_VALUE): Move from fns.c.
20793 (CHARACTERBITS): Define as 22.
20794 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20795 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20796 (GC_SUB_CHAR_TABLE_P): New macro.
20797 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20798 (code_convert_string_norecord): Deleted extern.
20799 (init_character_once, syms_of_character, init_charset)
20800 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20801
20802 * lread.c: Include "character.h".
20803 (read_multibyte): New arg NBYTES.
20804 (read_escape): Change the meaning of returned *BYTEREP.
20805 (to_multibyte): Delete.
20806 (read1): Adjust the handling of char table and string.
20807
20808 * print.c: Include "character.h" instead of "charset.h".
20809 (print_string): Convert 8-bit raw bytes to octal form by
20810 string_escape_byte8.
20811 (print_object): Adjust for the new multibyte form. Print 8-bit
20812 raw bytes always in octal form. Handle sub char table correctly.
20813
20814 * process.c: Include "character.h" instead of "charset.h".
20815 (read_process_output, send_process): Adjust for the new
20816 code-conversion API.
20817
20818 * puresize.h (BASE_PURESIZE): Increase.
20819
20820 * regex.c: Include "character.h" instead of "charset.h".
20821 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20822 (regex_compile): Accept a range whose starting and ending
20823 character have different leading bytes.
20824 (analyse_first): Adjust for the above change.
20825
20826 * search.c: Include "character.h" instead of "charset.h".
20827 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20828 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20829
20830 * syntax.c: Include "character.h" instead of "charset.h".
20831 (syntax_parent_lookup): Delete.
20832 (Fmodify_syntax_entry): Accept a cons as CHAR.
20833 (skip_chars): Adjust for the new multibyte form.
20834 (init_syntax_once): Call char_table_set_range instead of directly
20835 accessing the structure of a char table.
20836
20837 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20838 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20839 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20840 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20841
20842 * term.c: Include "buffer.h" and "character.h".
20843 (encode_terminal_code, write_glyphs): Adjust for the new
20844 code-conversion API.
20845 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20846
20847 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20848
20849 * xdisp.c: Include "character.h".
20850 (get_next_display_element): Adjust for the new multibyte form.
20851 (disp_char_vector): Adjust for the new char table structure.
20852 (decode_mode_spec_coding): Adjust for the new structure of
20853 coding system.
20854 (decode_mode_spec): Adjust for the new code-conversion API.
20855
20856 * xfaces.c: Include "character.h" instead of "charset.h".
20857 (load_face_font): Adjust for the change of choose_face_font and
20858 FS_LOAD_FONT.
20859 (generate_ascii_font): New function.
20860 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20861 (set_font_frame_param): Adjust for the change of choose_face_font.
20862 (free_realized_face): Make it public.
20863 (free_realized_faces_for_fontset): Rename from
20864 free_realized_multibyte_face. Free also faces realized for ASCII.
20865 (choose_face_font): Change arguments. Adjust for the change of
20866 fontset_font_pattern and FS_LOAD_FONT.
20867
20868 * xfns.c: Include "character.h".
20869 (x_encode_text): Adjust for the new code-conversion API.
20870
20871 * xselect.c: Don't include "charset.h".
20872 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20873
20874 * xterm.c: Include "character.h".
20875 (x_encode_char): New argument CHARSET. Change caller.
20876 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20877 Call ENCODE_CHAR instead of SPLIT_CHAR.
20878 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20879 CHAR_WIDTH instead of CHARSET_WIDTH.
20880 (XTread_socket): Adjust for the new code-conversion API.
20881 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20882 (x_load_font): Adjust for the change of struct font.
20883
208842008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20885
20886 * xfaces.c (face_at_buffer_position): Remove unused vars.
20887
208882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20889
20890 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20891 Fix overflow checking.
20892
208932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20894
20895 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20896 Cancel previous change.
20897
208982008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20899
20900 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20901 ccl->eight_bit_control. Fix check for buffer overflow.
20902 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20903 (ccl_driver): Initialize extra_bytes to 0.
20904
209052008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20906
20907 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20908 return it ORed with ctrl_modifier.
20909
209102008-01-29 Miles Bader <miles@gnu.org>
20911
20912 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20913
209142008-01-28 Jason Rumney <jasonr@gnu.org>
20915
20916 * w32.c (stat): Don't double check for networked drive.
20917
209182008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20919
20920 * window.c (run_window_configuration_change_hook): New function.
20921 Code extracted from set_window_buffer. Set the selected frame.
20922 (set_window_buffer): Use it.
20923 * window.h (run_window_configuration_change_hook): Declare.
20924 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20925
20926 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20927
209282008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20929
20930 * Makefile.in: Remove references to unused macros.
20931
209322008-01-26 Eli Zaretskii <eliz@gnu.org>
20933
20934 * w32.c (g_b_init_get_sid_sub_authority)
20935 (g_b_init_get_sid_sub_authority_count): New static variables.
20936 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20937 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20938 (init_user_info): Use them to retrieve uid and gid.
20939 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20940 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20941 st_uid and st_gid of the file.
20942
209432008-01-26 Jason Rumney <jasonr@gnu.org>
20944
20945 * w32.c (logon_network_drive): New function.
20946 (stat): Use it.
20947
209482008-01-26 Chong Yidong <cyd@stupidchicken.com>
20949
20950 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20951 invisible text covered with an ellipsis.
20952
209532008-01-25 Richard Stallman <rms@gnu.org>
20954
20955 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20956 jump back to beginning. Move some other initializations after that.
20957 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20958 New variables.
20959 (syms_of_xdisp): Init them.
20960
20961 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20962
20963 * buffer.c (reset_buffer_local_variables):
20964 Implement `permanent-local-hook'.
20965 (Qpermanent_local_hook): New variable.
20966 (syms_of_buffer): Init and staticpro it.
20967
209682008-01-25 Michael Albinus <michael.albinus@gmx.de>
20969
20970 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20971
209722008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20973
20974 * fns.c (Fclrhash): Return TABLE.
20975
209762008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20977
20978 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20979 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20980 is set even without positional changes.
20981 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20982
20983 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20984
209852008-01-23 Jason Rumney <jasonr@gnu.org>
20986
20987 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20988
20989 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20990 the unicode range available in MULE by locale-coding-system.
20991 Improve dbcs lead byte detection. Set event timestamp and modifiers
20992 earlier.
20993
209942008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20995
20996 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20997 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20998 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20999 when used on child processes.
21000
210012008-01-21 Michael Albinus <michael.albinus@gmx.de>
21002
21003 * dbusbind.c (Fdbus_method_return_internal): Rename from
21004 Fdbus_method_return.
21005 (Fdbus_unregister_object): Move to dbus.el.
21006 (Fdbus_call_method, Fdbus_method_return_internal)
21007 (Fdbus_send_signal): Improve debug messages.
21008
210092008-01-20 Martin Rudalics <rudalics@gmx.at>
21010
21011 * undo.c (undo_inhibit_record_point): New variable.
21012 (syms_of_undo): Initialize it.
21013 (record_point): Don't record point when undo_inhibit_record_point
21014 is set.
21015
210162008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21017
21018 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21019
21020 * xdisp.c (Qauto_hscroll_mode): New var.
21021 (syms_of_xdisp): Initialize it.
21022 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21023 window's buffer.
21024 (hscroll_windows): Don't check automatic_hscrolling_p here.
21025
21026 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21027 vscroll if we're setting window-buffer to the value it already has.
21028
210292008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21030
21031 * m/intel386.h: Remove references to XENIX.
21032
210332008-01-17 Andreas Schwab <schwab@suse.de>
21034
21035 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21036 instead of HAVE_X86_64_LIB64_DIR.
21037 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21038
210392008-01-17 Glenn Morris <rgm@gnu.org>
21040
21041 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21042 to HAVE_X86_64_LIB64_DIR.
21043
210442008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21045
21046 * s/irix3-3.h:
21047 * s/irix4-0.h:
21048 * s/386-ix.h:
21049 * s/domain.h:
21050 * s/hpux9-x11r4.h:
21051 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21052
21053 * sysdep.c: Remove code containing references to symbols defined
21054 by unsupported systems.
21055
210562008-01-16 Glenn Morris <rgm@gnu.org>
21057
21058 * coding.c (select-safe-coding-system-function): Doc fix.
21059
210602008-01-15 Glenn Morris <rgm@gnu.org>
21061
21062 * config.in: Revert 2008-01-13 change: this is a generated file.
21063
210642008-01-13 Tom Tromey <tromey@redhat.com>
21065
21066 * lisp.h: Fix typo.
21067
210682008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21069
21070 * m/sequent-ptx.h:
21071 * m/sequent.h:
21072 * s/ptx.h:
21073 * s/ptx4-2.h:
21074 * s/ptx4.h: Remove files for systems no longer supported.
21075
21076 * callproc.c (Fcall_process): Fix previous change.
21077
210782008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21079
21080 * unexsunos4.c: Remove file, system not supported anymore.
21081
21082 * m/mips.h:
21083 * m/intel386.h:
21084 * callproc.c:
21085 * config.in:
21086 * ecrt0.c:
21087 * emacs.c:
21088 * fileio.c:
21089 * frame.c:
21090 * getpagesize.h:
21091 * keyboard.c:
21092 * lread.c:
21093 * process.c:
21094 * puresize.h:
21095 * sysdep.c:
21096 * systty.h:
21097 * syswait.h:
21098 * unexec.c:
21099 * xdisp.c:
21100 * alloc.c: Remove code containing references to symbols defined by
21101 unsupported systems.
21102
211032008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21104
21105 * coding.c (detect_coding_mask): Fix previous change.
21106
211072008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21108
21109 * coding.c (detect_coding_iso2022): New arg
21110 latin_extra_code_state. Allow Latin extra codes only
21111 when *latin_extra_code_state is nonzero.
21112 (detect_coding_mask): If there is a NULL byte, detect the encoding
21113 as UTF-16 or binary. If Latin extra codes exist, detect the
21114 encoding as ISO-2022 only when there's no other proper encoding is
21115 found.
21116
211172008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21118
21119 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21120 #ifdef MAC_OS.
21121
211222008-01-08 Richard Stallman <rms@gnu.org>
21123
21124 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21125
211262008-01-06 Nick Roberts <nickrob@snap.net.nz>
21127
21128 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21129 menu bar in parentheses.
21130
211312008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21132
21133 * m/7300.h:
21134 * m/acorn.h:
21135 * m/alliant-2800.h:
21136 * m/alliant.h:
21137 * m/alliant1.h:
21138 * m/alliant4.h:
21139 * m/altos.h:
21140 * m/amdahl.h:
21141 * m/apollo.h:
21142 * m/att3b.h:
21143 * m/aviion-intel.h:
21144 * m/aviion.h:
21145 * m/celerity.h:
21146 * m/clipper.h:
21147 * m/cnvrgnt.h:
21148 * m/convex.h:
21149 * m/cydra5.h:
21150 * m/delta88k.h:
21151 * m/dpx2.h:
21152 * m/dual.h:
21153 * m/elxsi.h:
21154 * m/f301.h:
21155 * m/gould-np1.h:
21156 * m/gould.h:
21157 * m/i860.h:
21158 * m/ibmps2-aix.h:
21159 * m/ibmrt-aix.h:
21160 * m/ibmrt.h:
21161 * m/irist.h:
21162 * m/is386.h:
21163 * m/isi-ov.h:
21164 * m/mega68.h:
21165 * m/mg1.h:
21166 * m/news-r6.h:
21167 * m/news-risc.h:
21168 * m/news.h:
21169 * m/nh3000.h:
21170 * m/nh4000.h:
21171 * m/ns16000.h:
21172 * m/ns32000.h:
21173 * m/nu.h:
21174 * m/orion.h:
21175 * m/orion105.h:
21176 * m/paragon.h:
21177 * m/pfa50.h:
21178 * m/plexus.h:
21179 * m/pyramid.h:
21180 * m/pyrmips.h:
21181 * m/sh3el.h:
21182 * m/sps7.h:
21183 * m/sr2k.h:
21184 * m/stride.h:
21185 * m/sun1.h:
21186 * m/sun2.h:
21187 * m/sun3-68881.h:
21188 * m/sun3-fpa.h:
21189 * m/sun3-soft.h:
21190 * m/sun3.h:
21191 * m/sun386.h:
21192 * m/symmetry.h:
21193 * m/tad68k.h:
21194 * m/tahoe.h:
21195 * m/targon31.h:
21196 * m/tek4300.h:
21197 * m/tekxd88.h:
21198 * m/tower32.h:
21199 * m/tower32v3.h:
21200 * m/ustation.h:
21201 * m/wicat.h:
21202 * m/xps100.h:
21203 * s/cxux.h:
21204 * s/cxux7.h:
21205 * s/dgux.h:
21206 * s/dgux4.h:
21207 * s/dgux5-4-3.h:
21208 * s/dgux5-4r2.h:
21209 * s/esix.h:
21210 * s/esix5r4.h:
21211 * s/hiuxmpp.h:
21212 * s/hiuxwe2.h:
21213 * s/iris3-5.h:
21214 * s/iris3-6.h:
21215 * s/isc2-2.h:
21216 * s/isc3-0.h:
21217 * s/isc4-0.h:
21218 * s/isc4-1.h:
21219 * s/newsos5.h:
21220 * s/newsos6.h:
21221 * s/osf1.h:
21222 * s/osf5-0.h:
21223 * s/riscix1-1.h:
21224 * s/riscix12.h:
21225 * s/sco4.h:
21226 * s/sco5.h:
21227 * s/sunos4-0.h:
21228 * s/sunos4-1.h:
21229 * s/sunos413.h:
21230 * s/sunos4shr.h:
21231 * s/umax.h:
21232 * s/unipl5-2.h:
21233 * s/xenix.h:
21234 * cxux-crt0.s:
21235 * unexapollo.c:
21236 * unexconvex.c:
21237 * unexenix.c:
21238 * unexsni.c: Remove files for systems no longer supported.
21239
21240 * m/intel386.h: Remove references to unsupported systems.
21241
21242 * w32.c (get_emacs_configuration): Remove reference to i860.
21243
21244 * sysdep.c: Remove dead code.
21245
212462008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21247
21248 * s/rtu.h:
21249 * m/masscomp.h: Remove files. Platform is obsolete.
21250
212512008-01-04 Michael Albinus <michael.albinus@gmx.de>
21252
21253 * dbusbind.c (Fdbus_method_return): New function.
21254 (xd_read_message): Add the serial number to the event.
21255 (Fdbus_register_method): Activate the function.
21256
212572008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21258
21259 * keyboard.c (read_key_sequence): Fix typo.
21260
212612008-01-03 Michael Albinus <michael.albinus@gmx.de>
21262
21263 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21264 (xd_signature, xd_append_arg): Handle element type detection for
21265 empty arrays.
21266 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21267 SDATA () calls; this must be solved more general.
21268 (Fdbus_register_signal): Use SBYTES instead of strlen.
21269
212702008-01-03 Magnus Henoch <magnus@zemdatav>
21271
21272 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21273 unsigned int for byte values (necessary for big-endian platform).
21274 (Fdbus_call_method): Handle the case of no returned arguments.
21275
212762007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21277
21278 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21279
212802007-12-31 Magnus Henoch <mange@freemail.hu>
21281
21282 * dbusbind.c (xd_signature): Signature of variant is just "v".
21283
212842007-12-30 Michael Albinus <michael.albinus@gmx.de>
21285
21286 * dbusbind.c: Fix several errors and compiler warnings.
21287 Reported by Tom Tromey <tromey@redhat.com>.
21288 (XD_ERROR, XD_DEBUG_MESSAGE)
21289 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21290 (xd_append_arg): Part for basic D-Bus types rewritten.
21291 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21292 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21293 appropriate.
21294 (xd_read_message): Return Qnil. Don't signal an error; it is not
21295 useful during event reading.
21296 (Fdbus_register_signal): Signal an error if the check for
21297 FUNCTIONP fails.
21298 (Fdbus_register_method): New function. The implementation is not
21299 complete, the call of the function signals an error therefore.
21300 (Fdbus_unregister_object): New function, renamed from
21301 Fdbus_unregister_signal. The initial check signals an error, if
21302 the object is not well formed.
21303
213042007-12-30 Richard Stallman <rms@gnu.org>
21305
21306 * textprop.c (get_char_property_and_overlay):
21307 Signal error if POSITION is out of range in a buffer.
21308
213092007-12-29 Martin Rudalics <rudalics@gmx.at>
21310
21311 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21312 because the original parameters are in pure storage now.
21313
213142007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21315
21316 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21317
213182007-12-22 Eli Zaretskii <eliz@gnu.org>
21319
21320 * callint.c (syms_of_callint) <command-history>: Add reference to
21321 history-length in the doc string.
21322
213232007-12-17 Jason Rumney <jasonr@gnu.org>
21324
21325 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21326 before passing as wParam.
21327
213282007-12-22 Michael Albinus <michael.albinus@gmx.de>
21329
21330 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21331 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21332 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21333 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21334 as number.
21335 (Fdbus_call_method): Fix docstring.
21336
213372007-12-21 Michael Albinus <michael.albinus@gmx.de>
21338
21339 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21340 New macros.
21341 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21342 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21343 Simplify.
21344 (xd_signature): New function.
21345 (xd_append_arg): Compute also signatures. Major rewrite.
21346 (xd_retrieve_arg): Make debug messages friendly.
21347 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21348 Check for signatures of arguments.
21349
213502007-12-19 Michael Albinus <michael.albinus@gmx.de>
21351
21352 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21353 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21354 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21355 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21356 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21357 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21358 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21359 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21360 (xd_retrieve_value): Remove. Functionality included in ...
21361 (xd_append_arg): New function.
21362 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21363
213642007-12-16 Michael Albinus <michael.albinus@gmx.de>
21365
21366 * dbusbind.c (top): Include <stdio.h>.
21367 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21368 dbus_message_new_method_call and dbus_message_new_signal.
21369 (Fdbus_register_signal): Rename unique_name to uname.
21370 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21371 non-existing unique name. Fix typos in matching rule. Return an
21372 object which is useful in Fdbus_unregister_signal.
21373 (Fdbus_unregister_signal): Reimplementation, in order to remove
21374 only the corresponding entry.
21375 (Vdbus_registered_functions_table): Change the order of entries.
21376 Apply these changes in xd_read_message and Fdbus_register_signal.
21377
213782007-12-16 Andreas Schwab <schwab@suse.de>
21379
21380 * fileio.c (Finsert_file_contents): Fix overflow check to not
21381 depend on undefined integer overflow.
21382
213832007-12-14 Jason Rumney <jasonr@gnu.org>
21384
21385 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21386 for characters above 127.
21387
213882007-12-13 Jason Rumney <jasonr@gnu.org>
21389
21390 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21391 before dereferencing array.
21392 (lookup_vk_code): Remove zero comparison.
21393
213942007-12-14 Michael Albinus <michael.albinus@gmx.de>
21395
21396 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21397 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21398 Use `unsigned int' instead of `uint'.
21399 (xd_read_message, Fdbus_register_signal): Split expressions into
21400 multiple lines before operators "&&" and "||", according to the
21401 GNU Coding Standards.
21402
214032007-12-14 Eli Zaretskii <eliz@gnu.org>
21404
21405 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21406
214072007-12-12 Juri Linkov <juri@jurta.org>
21408
21409 * buffer.c (Frename_buffer): In interactive spec replace
21410 `read-buffer' with `read-string' that uses `buffer-name-history'
21411 as history, and the current buffer's name as default.
21412
214132007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21414
21415 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21416 manipulating the backtrace manually.
21417 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21418 (struct backtrace, backtrace_list): Remove.
21419 (command_loop_1): Remove dead var `no_direct'.
21420
21421 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21422 preserve non-built-in buffer-local variables.
21423 (Fkill_all_local_variables): Don't re-create&re-set permanent
21424 buffer-local variables.
21425
214262007-12-09 Juri Linkov <juri@jurta.org>
21427
21428 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21429 Lisp code that uses `read-buffer' with current buffer as default.
21430
214312007-12-08 Michael Albinus <michael.albinus@gmx.de>
21432
21433 * dbusbind.c (xd_read_message): Generate an event for every
21434 registered handler. There might be several handlers registered
21435 for the same signal.
21436 (Fdbus_register_signal): Don't overwrite a registration for the
21437 same signal. Add a new registration if handlers are different.
21438 (Vdbus_registered_functions_table): Rework doc string.
21439
214402007-12-07 Michael Albinus <michael.albinus@gmx.de>
21441
21442 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21443 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21444 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21445 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21446 Unify argument lists.
21447 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21448 arguments and hash table keys. Use unique name for service.
21449 (Fdbus_unregister_signal): Remove checks.
21450 (Vdbus_registered_functions_table): Fix doc string.
21451
214522007-12-05 Magnus Henoch <mange@freemail.hu>
21453
21454 * process.c (make_process): Initialize pty_flag to 0.
21455
214562007-12-05 Jason Rumney <jasonr@gnu.org>
21457
21458 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21459 specified XBMs.
21460
214612007-12-05 Richard Stallman <rms@gnu.org>
21462
21463 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21464
214652007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21466
21467 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21468 New variable.
21469 (mac_try_close_socket) [MAC_OSX]: New function.
21470 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21471 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21472
21473 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21474 Use mac_try_close_socket.
21475
214762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21477
21478 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21479 reloc_base.
21480 (copy_dysymtab): Compute relocation base here.
21481 (rebase_reloc_address) [__ppc64__]: New function.
21482 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21483 changed.
21484
214852007-12-05 Jason Rumney <jasonr@gnu.org>
21486
21487 * w32proc.c (sys_spawnve): Quote args with wildcards.
21488
214892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21490
21491 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21492 __objc_* sections.
21493 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21494
214952007-12-05 Michael Albinus <michael.albinus@gmx.de>
21496
21497 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21498 Move check for Vdbus_registered_functions_table to
21499 xd_read_queued_messages.
21500 (xd_read_queued_messages): Protect xd_read_message calls by
21501 internal_condition_case_1.
21502
215032007-12-04 Michael Albinus <michael.albinus@gmx.de>
21504
21505 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21506 Qdbus_system_bus and Qdbus_session_bus, respectively.
21507 (Vdbus_intern_symbols): Remove.
21508 (Vdbus_registered_functions_table): New hash table.
21509 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21510 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21511 Rewrite in order to manage registered functions by hash table
21512 Vdbus_registered_functions_table.
21513
215142007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21515
21516 * xterm.c: Update URL to Window Manager Specification in comment.
21517
215182007-12-02 Michael Albinus <michael.albinus@gmx.de>
21519
21520 * config.in (HAVE_DBUS): Add.
21521
21522 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21523 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21524 (obj): Add $(DBUS_OBJ).
21525 (LIBES): Add $(DBUS_LIBS).
21526 (dbusbind.o): New target.
21527
21528 * dbusbind.c: New file.
21529
21530 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21531
21532 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21533 (Qdbus_event): New Lisp symbol.
21534 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21535 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21536 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21537
21538 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21539
215402007-12-01 Richard Stallman <rms@gnu.org>
21541
21542 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21543
215442007-11-30 Jason Rumney <jasonr@gnu.org>
21545
21546 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21547 (w32con_reset_terminal_modes): Clear screen buffer.
21548 (w32_face_attributes): Don't use color indexes that are out of range.
21549 Only reverse the default colors.
21550
21551 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21552 WINDOWSNT.
21553
21554 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21555
215562007-11-29 Jason Rumney <jasonr@gnu.org>
21557
21558 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21559 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21560 if the terminal colors are initialized.
21561 (unspecified_fg, unspecified_bg): Remove unused declarations.
21562
215632007-11-29 Andreas Schwab <schwab@suse.de>
21564
21565 * keyboard.c (apply_modifiers): Fix typo.
21566
215672007-11-29 Richard Stallman <rms@gnu.org>
21568
21569 * keymap.c (Fcurrent_local_map): Doc fix.
21570
215712007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21572
21573 * s/gnu-kfreebsd.h: New file.
21574
215752007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21576
21577 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21578 Don't cast redundantly.
21579
21580 * keyboard.c (KEY_TO_CHAR): New macro.
21581 (parse_modifiers, apply_modifiers): Accept integer arguments.
21582 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21583 for chars and symbol keys.
21584 After doing such remapping, apply function-key-map again.
21585
215862007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21587
21588 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21589 compiled anymore.
21590
215912007-11-26 Andreas Schwab <schwab@suse.de>
21592
21593 * process.c (list_processes_1): Fix indentation level of the
21594 command column.
21595
215962007-11-23 Andreas Schwab <schwab@suse.de>
21597
21598 * editfns.c (Fformat): Handle %c specially since it requires the
21599 argument to be of type int.
21600
216012007-11-23 Markus Triska <markus.triska@gmx.at>
21602
21603 * emacs.c (main): Call init_editfns before init_process, since
21604 init_process sets Vprocess_connection_type depending on OS release.
21605
216062007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21607
21608 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21609 (find_symbol_value): Use do_symval_forwarding.
21610
21611 * data.c (set_internal): Set the value in the `cons-cell' (for
21612 Buffer_Local_values) not only for frame-local variables.
21613
216142007-11-22 Andreas Schwab <schwab@suse.de>
21615
21616 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21617 values to sprintf.
21618 * keymap.c (Fsingle_key_description): Likewise.
21619 * print.c (print_object): Likewise.
21620
216212007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21622
21623 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21624 file for image is nil.
21625
216262007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21627
21628 * term.c: Include stdarg.h.
21629 (fatal): Implement using varargs.
21630 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21631
216322007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21633
21634 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21635 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21636 Update call to buffer_slot_type_mismatch.
21637 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21638 (buffer_slot_type_mismatch): Update.
21639 * buffer.c (buffer_local_types): Remove.
21640 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21641 (defvar_per_buffer): Set the type in the buffer_objfwd.
21642
216432007-11-21 Jason Rumney <jasonr@gnu.org>
21644
21645 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21646 CreateFileMapping returns NULL on failure.
21647
216482007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21649
21650 * search.c (Fset_match_data): Remove the `evaporate' feature.
21651 (unwind_set_match_data): Don't use the `evaporate' feature.
21652
216532007-11-21 Jason Rumney <jasonr@gnu.org>
21654
21655 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21656
21657 * w32console.c (w32con_write_glyphs): Remove unused variables.
21658
216592007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21660
21661 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21662
21663 * s/darwin.h (MULTI_KBOARD): Remove.
21664
21665 * macfns.c (x_create_tip_frame, Fx_create_frame)
21666 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21667
216682007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21669
21670 * buffer.c (Fbuffer_local_value): Remove redundant test.
21671 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21672 than in `current-buffer' to match the comment.
21673 Do the swap using swap_in_global_binding.
21674
21675 * data.c (store_symval_forwarding, set_internal):
21676 * eval.c (specbind): Remove dead code.
21677
21678 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21679 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21680 Since we do not want to see internal Lisp_*fwd objects here.
21681
216822007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21683
21684 * sysdep.c (init_system_name): Use getaddrinfo if available.
21685
21686 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21687 (x_scroll_bar_note_movement): start, end, with, height in struct
21688 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21689
216902007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21691
21692 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21693
216942007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21695
21696 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21697 This undoes Richard's change of 14-Oct-2002.
21698
21699 * alloc.c (allocate_other_vector):
21700 * lisp.h (allocate_other_vector): Remove.
21701
21702 * window.c (struct save_window_data): Move non-lisp data to the end
21703 and make it `int' rather than Lisp_Object.
21704 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21705 Done wrap/unwrap integer values.
21706 (Fset_window_configuration, compare_window_configurations):
21707 Update use of fields to their new types.
21708
21709 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21710 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21711 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21712 (SET_SCROLL_BAR_X_WINDOW): Remove.
21713 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21714 Access the new x_window field directly.
21715 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21716 Don't wrap/unwrap integers into Lisp_Objects.
21717 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21718 (x_scroll_bar_report_motion):
21719 Don't wrap/unwrap integers into Lisp_Objects.
21720 (x_term_init): Use SDATA.
21721 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21722 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21723 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21724 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21725 * xfns.c (x_set_background_color):
21726 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21727 Access the new x_window field directly.
21728
21729 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21730 (allocate_pseudovector): Make non-static.
21731
21732 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21733 (allocate_pseudovector): Declare.
21734 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21735
217362007-11-15 Andreas Schwab <schwab@suse.de>
21737
21738 * editfns.c (Fformat): Correctly format EMACS_INT values.
21739 Also take precision into account when formatting an integer.
21740
21741 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21742
217432007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21744
21745 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21746 (syms_of_keyboard): Defsubr it.
21747
21748 * data.c (swap_in_global_binding): Fix longstanding bug where
21749 store_symval_forwarding was not called with the right second argument,
21750 thus causing objfwd-ing from being dropped.
21751
217522007-11-14 Juanma Barranquero <lekktu@gmail.com>
21753
21754 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21755 (Fx_display_pixel_height, Fx_display_planes)
21756 (Fx_display_color_cells, Fx_server_max_request_size)
21757 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21758 (Fx_display_visual_class, Fx_display_save_under):
21759 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21760 (Fx_display_pixel_height, Fx_display_planes)
21761 (Fx_display_color_cells, Fx_server_max_request_size)
21762 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21763 (Fx_display_mm_height, Fx_display_mm_width)
21764 (Fx_display_backing_store, Fx_display_visual_class)
21765 (Fw32_select_font, Fx_display_save_under):
21766 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21767 (Fx_display_pixel_height, Fx_display_planes)
21768 (Fx_display_color_cells, Fx_server_max_request_size)
21769 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21770 (Fx_display_save_under): Fix typos in docstrings.
21771
217722007-11-14 Juanma Barranquero <lekktu@gmail.com>
21773
21774 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21775 corresponding to deleted entries; they are an implementation detail.
21776 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21777 Remove variables.
21778 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21779 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21780 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21781 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21782 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21783 (Fw32_define_rgb_color, Fw32_load_color_file)
21784 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21785 Fix typos in docstrings.
21786 (Fx_server_version): Reflow docstring.
21787 (Fw32_shell_execute): Doc fixes.
21788
217892007-11-13 Juanma Barranquero <lekktu@gmail.com>
21790
21791 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21792 if w32_parse_hot_key returned nil.
21793
217942007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21795
21796 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21797
217982007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21799
aac0c6e3
MR
21800 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21801
21802 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21803
21804 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21805 Remove W32_SCROLL_BAR_CLICK_EVENT.
21806
21807 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21808 Add MULTIMEDIA_KEY_EVENT.
21809
21810 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21811 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21812 (make_lispy_event) [WINDOWSNT]: Use it to translate
21813 MULTIMEDIA_KEY_EVENT.
21814
21815 * w32term.h (WM_APPCOMMAND): Define if not already.
21816 (GET_APPCOMMAND_LPARAM): Likewise.
21817
21818 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21819 WM_APPCOMMAND.
21820
21821 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21822 (syms_of_w32fns): Export and initialize it.
21823 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21824
218252007-11-09 Chong Yidong <cyd@stupidchicken.com>
21826
21827 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21828 twice.
21829
21830 * xdisp.c (handle_face_prop): Fix last change.
21831
218322007-11-09 Richard Stallman <rms@gnu.org>
21833
21834 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21835 not just for after-strings and before-strings.
21836 Call face_for_overlay_string and pass the overlay to it.
21837 (handle_display_prop): Determine whether property came from an overlay.
21838 Pass OVERLAY arg to handle_single_display_spec.
21839 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21840 (load_overlay_strings): Fill in it->string_overlays.
21841 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21842
21843 * xfaces.c (face_for_overlay_string): Function renamed from
21844 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21845
21846 * dispextern.h (struct it): New elt string_overlays.
21847 New elt from_overlay, also in stack.
21848 Rearrange a few elements.
21849 (face_for_overlay_string): Decl renamed from
21850 face_at_buffer_position_no_overlays, and add argument.
21851
218522007-11-09 Richard Stallman <rms@gnu.org>
21853
21854 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21855 to get the base face for an overlay string.
21856
21857 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21858
21859 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21860
21861 * xdisp.c (handle_stop): Move some code out of loop.
21862
218632007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21864
21865 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21866 Fix conversion from Lisp object to ATSUFontID.
21867
218682007-11-09 Jason Rumney <jasonr@gnu.org>
21869
21870 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21871
218722007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21873
21874 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21875 Don't assume regions are aligned to page boundary.
21876 (print_load_command_name): Add LC_UUID if defined.
21877
218782007-11-09 Richard Stallman <rms@gnu.org>
21879
21880 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21881
218822007-11-07 Jason Rumney <jasonr@gnu.org>
21883
21884 * s/windows95.h: Remove.
21885
218862007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21887
21888 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21889 abort with a message on unhandled store_type values.
21890
218912007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21892
21893 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21894 Remove HAVE_X11R5 and HAVE_X11R4.
21895
218962007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21897
21898 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21899
219002007-11-01 Johan Bockgård <bojohan@gnu.org>
21901
21902 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21903 Don't set s->stippled_p here, since it has already been set by
21904 x_set_glyph_string_gc from x_draw_glyph_string.
21905
219062007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21907
21908 * sunfns.c: Remove file.
21909
21910 * m/sun386.h:
21911 * m/sun2.h:
21912 * m/sparc.h: Remove Sun windows code.
21913
219142007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21915
21916 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21917 (init_keyboard): Set current_kboard's window-system to nil.
21918 (tty_read_avail_input): Typo.
21919 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21920
219212007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21922
21923 * s/usg5-4.h:
21924 * s/usg5-3.h:
21925 * s/ptx.h:
21926 * m/is386.h:
21927 * m/ibmps2-aix.h:
21928 * Makefile.in: Remove all mentions of X10.
21929
21930 * dispnew.c (syms_of_display): Don't mention version 10.
21931
219322007-10-28 Juanma Barranquero <lekktu@gmail.com>
21933
21934 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21935 ($(BLD)/abbrev.$(O)): Remove.
21936
219372007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21938
21939 Rewrite abbrev.c in Elisp.
21940 * image.c (Qcount): Don't declare as extern.
21941 (syms_of_image): Initialize and staticpro `Qcount'.
21942 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21943 * emacs.c (main): Don't call syms_of_abbrev.
21944 * Makefile.in (obj): Remove abbrev.o.
21945 (abbrev.o): Remove.
21946 * abbrev.c: Remove.
21947
219482007-10-26 Martin Rudalics <rudalics@gmx.at>
21949
21950 * window.c (window_min_size_2): Don't count header-line.
21951
219522007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21953
21954 * frame.h (struct frame): Move all bit fields after the first bit
21955 field to take advantage of the available space. Group all the
21956 chars together to reduce wasted space due to padding.
21957
219582007-10-26 Juanma Barranquero <lekktu@gmail.com>
21959
21960 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21961
21962 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21963 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21964 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21965 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21966 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21967 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21968 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21969 (last_marked, mark_object_loop_halt): Make static.
21970
21971 * frame.c (syms_of_frame) <delete-frame-functions>:
21972 Fix typo in docstring.
21973
219742007-10-25 Juanma Barranquero <lekktu@gmail.com>
21975
21976 * w32.c (init_environment): Fix tiny memory leak.
21977 (w32_get_resource): Remove unused variable `ok'.
21978
219792007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21980
21981 Make `window-system' into a keyboard-local variable (rather than
21982 frame-local as done originally by multi-tty).
21983
21984 * keyboard.h (struct kboard): Add Vwindow_system.
21985 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21986 (mark_kboards): Mark Vwindow_system.
21987
21988 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21989 (init_display): Don't set the obsolete `window-system' frame-param.
21990
21991 * xterm.c (x_term_init):
21992 * w32term.c (w32_create_terminal):
21993 * term.c (init_tty): Set Vwindow_system.
21994 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21995 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21996
21997 * xfns.c (Fx_create_frame, x_create_tip_frame):
21998 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21999 * macfns.c (Fx_create_frame):
22000 Don't set the obsolete `window-system' frame-param.
22001
22002 * frame.h (Qwindow_system): Remove.
22003 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22004 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22005
220062007-10-24 Richard Stallman <rms@gnu.org>
22007
22008 * frame.c (x_figure_window_size): For fullscreen case,
22009 set USPosition | PPosition without clobbering rest of window_prompting.
22010
22011 * keyboard.c (Fcurrent_idle_time): Doc fix.
22012
22013 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22014
220152007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22016
22017 * process.c (unwind_request_sigio): Only define if __ultrix__.
22018
22019 * callproc.c (child_setup): Remove spurious *.
22020
22021 * lisp.h (Fget_text_property): Declare.
22022 (have_menus_p): Declare it here rather than in sys-dep header files.
22023 * macterm.h (have_menus_p):
22024 * msdos.h (have_menus_p):
22025 * xterm.h (have_menus_p): Remove.
22026
22027 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22028 (Fmake_variable_frame_local): Just check the variable's const-ness
22029 rather than checking nil or t.
22030
220312007-10-22 Jason Rumney <jasonr@gnu.org>
22032
22033 * w32fns.c: Include math.h.
22034 (w32_abort): Declaration moved to nt/config.nt.
22035
22036 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22037 (abort): Redefinition moved to nt/config.nt.
22038
22039 * m/windowsnt.h: Remove.
22040
220412007-10-22 Juanma Barranquero <lekktu@gmail.com>
22042
22043 * emacs.c (Fdump_emacs): Fix typo in message.
22044 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22045 <installation-directory>: Reflow docstring.
22046
220472007-10-22 Juri Linkov <juri@jurta.org>
22048
22049 * minibuf.c: Allow minibuffer default to be a list of default values.
22050 With empty input use the first element of this list as returned default.
22051 (string_to_object)
22052 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22053 (read_minibuf): If defalt is cons, set histstring to its car.
22054 (Fread_string): If default_value is cons, set val to its car.
22055 (Fread_buffer): If def is cons, use its car.
22056 (Fcompleting_read): If defalt is cons, set val to its car.
22057
220582007-10-21 Michael Albinus <michael.albinus@gmx.de>
22059
22060 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22061
220622007-10-20 Juanma Barranquero <lekktu@gmail.com>
22063
22064 * doc.c (Fdocumentation): Check for advice in all cases.
22065
220662007-10-19 Chong Yidong <cyd@stupidchicken.com>
22067
22068 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22069
220702007-10-19 Richard Stallman <rms@gnu.org>
22071
22072 * doc.c (Fdocumentation): Check for and handle an advised function.
22073
220742007-10-19 Juanma Barranquero <lekktu@gmail.com>
22075
22076 * process.c (Fset_process_filter): Doc fix.
22077
220782007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22079
22080 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22081 which caused key-translation-map to applied repeatedly (thus breaking
22082 double-mode).
22083
220842007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22085
22086 * xselect.c (x_own_selection, x_handle_selection_clear)
22087 (x_clear_frame_selections):
22088 * w32menu.c (list_of_panes, list_of_items):
22089 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22090 * textprop.c (validate_plist, interval_has_all_properties)
22091 (interval_has_some_properties, interval_has_some_properties_list)
22092 (add_properties, text_property_list):
22093 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22094 * minibuf.c (Fassoc_string):
22095 * macselect.c (x_own_selection, x_clear_frame_selections)
22096 (Fx_disown_selection_internal):
22097 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22098 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22099
221002007-10-17 Chong Yidong <cyd@stupidchicken.com>
22101
22102 * process.c: Link to libs for calling res_init() if available.
22103 (Fmake_network_process): Call res_init() before getaddrinfo or
22104 gethostbyname, if possible.
22105
221062007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22107
22108 * lread.c (read1): Set pvectype for char_tables.
22109
22110 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22111 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22112 Add type checks.
22113 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22114
22115 * alloc.c (free_misc): Use XMISCTYPE.
22116 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22117
221182007-10-17 Glenn Morris <rgm@gnu.org>
22119
22120 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22121 (syms_of_minibuf): Add Qcompletion_ignore_case.
22122 * dired.c (Qcompletion_ignore_case): Change to external.
22123 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22124 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22125 (Fread_file_name): Use it rather than intern'ing.
22126
22127 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22128 (Fread_coding_system): Ignore case of user input.
22129
221302007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22131
22132 * xdisp.c (handle_display_prop): Ignore display specs after
22133 replacing one when string text is being replaced.
22134 (handle_single_display_spec): Pretend as if characters with display
22135 property haven't been consumed only when buffer text is being replaced.
22136
221372007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22138
22139 * xfns.c (Fx_create_frame, Fx_display_list):
22140 * window.c (window_fixed_size_p, enlarge_window)
22141 (shrink_window_lowest_first):
22142 * macterm.c (init_font_name_table):
22143 * macfns.c (Fx_create_frame, Fx_display_list):
22144 * lread.c (close_load_descs):
22145 * keyboard.c (read_char_x_menu_prompt):
22146 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22147 * coding.c (code_convert_region_unwind): Test the type of an object
22148 rather than just !NILP before extracting data from it.
22149
22150 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22151
22152 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22153 (XMISCANY): New macro.
22154 (XMISCTYPE): Use it.
22155 (struct Lisp_Misc_Any): New type.
22156 (union Lisp_Misc): Use it.
22157 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22158 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22159 (find_symbol_value, set_internal, default_value, Fset_default)
22160 (Fmake_variable_buffer_local, Fmake_local_variable)
22161 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22162 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22163 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22164 * alloc.c (allocate_buffer): Set the size and tag.
22165 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22166 Use XMISCANY.
22167 (die): Follow the GNU convention for error messages.
22168 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22169 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22170 tag any more.
22171 (set_buffer_internal_1):
22172 * frame.c (store_frame_param):
22173 * eval.c (specbind):
22174 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22175
22176 * doc.c (Fsnarf_documentation): Simplify.
22177
221782007-10-14 Juanma Barranquero <lekktu@gmail.com>
22179
22180 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22181 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22182
221832007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22184
22185 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22186
221872007-10-14 Juanma Barranquero <lekktu@gmail.com>
22188
22189 * eval.c (do_autoload): Don't save autoloads.
22190
22191 * data.c (Ffset): Save autoload of the function being set.
22192
221932007-10-07 John Paul Wallington <jpw@pobox.com>
22194
22195 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22196 parameter before setting up faces.
22197
221982007-10-13 Eli Zaretskii <eliz@gnu.org>
22199
22200 * ccl.c (Fregister_code_conversion_map):
22201 * keyboard.c (append_tool_bar_item): Reformat last change.
22202
22203 * lisp.h (eabs): Rename from `abs'. All callers changed.
22204
222052007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22206
22207 * buffer.c (add_overlay_mod_hooklist):
22208 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22209 * fontset.c (make_fontset):
22210 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22211 (append_tool_bar_item):
22212 * macmenu.c (grow_menu_items):
22213 * w32menu.c (grow_menu_items):
22214 * xmenu.c (grow_menu_items): Use larger_vector.
22215
222162007-10-13 Eli Zaretskii <eliz@gnu.org>
22217
22218 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22219 selected frame'' on MSDOS).
22220
222212007-10-12 Martin Rudalics <rudalics@gmx.at>
22222
22223 * frame.c (Qexplicit_name): New variable.
22224 (x_report_frame_params): Report it in parameter alist.
22225 (syms_of_frame): Intern and staticpro it.
22226
222272007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22228
22229 * macfns.c (x_create_tip_frame): Set terminal for frame.
22230
222312007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22232
22233 * frame.c (Qenvironment): Remove.
22234 (syms_of_frame) <Qenvironment>: Don't initialize.
22235 (Fdelete_frame): Don't treat the `environment' param specially.
22236 * frame.h (Qenvironment): Don't declare.
22237 * callproc.c (set_initial_environment): Don't set unused frame param.
22238
22239 * frame.c (Fframe_with_environment): Remove.
22240 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22241
22242 * lisp.h (Fframe_with_environment): Don't declare.
22243
222442007-10-10 Juanma Barranquero <lekktu@gmail.com>
22245
22246 * indent.c (indent_tabs_mode, last_known_column)
22247 (last_known_column_modified): Make static.
22248 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22249
222502007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22251
22252 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22253
222542007-10-09 Jason Rumney <jasonr@gnu.org>
22255
22256 * w32term.c (x_set_window_size): Disable code that attempts to tell
22257 Lisp code about a size change before it actually happens.
22258
222592007-10-09 Richard Stallman <rms@gnu.org>
22260
22261 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22262 return HANDLED_RETURN.
22263
222642007-10-08 Martin Rudalics <rudalics@gmx.at>
22265
22266 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22267 when there's an unread command event.
22268
22269 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22270 window autoselection act appropriately when leaving selected frame.
22271 (syms_of_frame): Initialize focus_follows_mouse.
22272 * frame.h (focus_follows_mouse): Extern it.
22273 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22274 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22275 * msdos.c (dos_rawgetc): Likewise.
22276 * w32term.c (w32_read_socket): Likewise.
22277 * xterm.c (handle_one_xevent): Likewise.
22278 * xdisp.c (syms_of_xdisp): In doc-string of
22279 mouse-autoselect-window mention focus-follows-mouse.
22280
222812007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22282
22283 * macterm.c (mac_load_query_font): Fix missing return value.
22284 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22285 Add BLOCK_INPUT.
22286
222872007-10-08 Richard Stallman <rms@gnu.org>
22288
22289 * xdisp.c (get_window_cursor_type): Implement documented behavior
22290 for cursor-in-non-selected-windows = t.
22291
222922007-10-08 Jason Rumney <jasonr@gnu.org>
22293
22294 * w32.c (w32_get_resource): Always close registry keys.
22295
222962007-10-08 Jason Rumney <jasonr@gnu.org>
22297
22298 * makefile.w32-in (LIBS): Add COMCTL32.
22299
22300 * w32fns.c (globals_of_w32fns): Init common controls.
22301
223022007-10-08 Richard Stallman <rms@gnu.org>
22303
22304 * image.c (our_memory_buffer): Rename from omfib_buffer.
22305
223062007-10-08 Richard Stallman <rms@gnu.org>
22307
22308 * buffer.c (Foverlays_at): Doc fix.
22309
223102007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22311
22312 * fns.c (Fplist_put): Preserve uneven tail data.
22313
223142007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22315
22316 * termhooks.h (enum event_kind): Remove trailing comma.
22317
22318 * frame.h (enum): Remove trailing comma.
22319
223202007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22321
22322 * w32proc.c (delete_child): Don't terminate threads of zombies.
22323
223242007-10-08 Martin Rudalics <rudalics@gmx.at>
22325
22326 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22327
22328 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22329 last-repeatable-command.
22330 (init_kboard): Initialize Vlast_repeatable_command.
22331 (command_loop_1): Set it to real_this_command unless that was
22332 bound to an input event.
22333 (mark_kboards): Mark it.
22334
223352007-10-08 Richard Stallman <rms@gnu.org>
22336
22337 * eval.c (condition-case): Doc fix.
22338
223392007-10-08 Masatake YAMATO <jet@gyve.org>
22340
22341 * xfaces.c (tty_supports_face_attributes_p): Fix code
22342 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22343 was copied and not edited.
22344
223452007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22346
22347 Add new `input-decode-map' keymap and use it for terminal
22348 escape sequences.
22349 * keyboard.h (struct kboard): Add Vinput_decode_map.
22350 Remove Vlocal_key_translation_map.
22351 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22352 (init_kboard): Init input-decode-map.
22353 Replace local-key-translation-map back with key-translation-map.
22354 (syms_of_keyboard): Declare input-decode-map.
22355 Remove local-key-translation-map. Update docstrings.
22356 (mark_kboards): Mark Vinput_decode_map.
22357 Don't mark Vlocal_key_translation_map.
22358 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22359 Replace local-key-translation-map back with key-translation-map.
22360 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22361 Bind in input-decode-map rather than function-key-map.
22362
22363 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22364 This was made redundant by the previous introduction of XSETPVECTYPE.
22365
223662007-10-09 Richard Stallman <rms@gnu.org>
22367
22368 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22369
223702007-09-29 Richard Stallman <rms@gnu.org>
22371
22372 * eval.c (internal_condition_case_2, internal_condition_case_1)
22373 (internal_condition_case): Reenable abort if x_catching_errors ()
22374 to see if that really happens and why.
22375
223762007-10-06 Andreas Schwab <schwab@suse.de>
22377
22378 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22379
223802007-10-04 Juanma Barranquero <lekktu@gmail.com>
22381
22382 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22383
223842007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22385
22386 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22387
223882007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22389
22390 * window.h (struct window):
22391 * window.c (struct save_window_data, struct saved_window):
22392 * termhooks.h (struct terminal):
22393 * process.h (struct Lisp_Process):
22394 * frame.h (struct frame):
22395 * buffer.h (struct buffer):
22396 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22397 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22398 The size field of (pseudo)vectors is now unsigned.
22399 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22400
22401 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22402 Turn `count' into an integer.
22403
22404 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22405 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22406 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22407 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22408 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22409
22410 * alloc.c (allocate_pseudovector): New fun.
22411 (ALLOCATE_PSEUDOVECTOR): New macro.
22412 (allocate_window, allocate_terminal, allocate_frame)
22413 (allocate_process): Use it.
22414 (mark_vectorlike): New function.
22415 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22416 (mark_terminals): Use it.
22417 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22418 (Fmake_byte_code): Use XSETPVECTYPE.
22419
22420 * frame.c (Fframe_parameters): Minor simplification.
22421
22422 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22423
22424 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22425
22426 * buffer.c (Fget_buffer_create, init_buffer_once):
22427 * lread.c (defsubr):
22428 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22429
22430 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22431 defined differently in the m/*.h files.
22432 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22433 (XSETPVECTYPE): New macro.
22434 (XSETPSEUDOVECTOR): Use it.
22435
22436 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22437 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22438
22439 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22440 * lread.c (defvar_per_buffer):
22441 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22442
22443 * window.c (candidate_window_p): Only consider as visible frames that
22444 are on the same terminal.
22445
22446 * m/ibms390x.h (MARKBIT): Remove unused macro.
22447
224482007-10-01 Juanma Barranquero <lekktu@gmail.com>
22449
22450 * lread.c (Fload): Fix typo in docstring.
22451
224522007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22453
22454 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22455 of a non-zero value can't yield zero.
22456
224572007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22458
22459 * term.c (term_clear_mouse_face, term_mouse_highlight)
22460 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22461
22462 * print.c (safe_debug_print): Use XHASH.
22463
22464 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22465 Lisp elements such as tags.
22466 (XHASH): New macro.
22467 (EQ): Use it.
22468 (SREF, SSET, STRING_COPYIN): Use SDATA.
22469 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22470
22471 * alloc.c (mark_terminal): Remove left-over declaration.
22472 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22473 (allocate_vectorlike): Remove type argument. Adjust callers.
22474 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22475 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22476
22477 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22478 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22479 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22480 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22481 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22482 Use them.
22483
22484 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22485 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22486 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22487
224882007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22489
22490 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22491 loaded by default.
22492
224932007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22494
22495 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22496 on this tty.
22497 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22498
22499 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22500 Update all users.
22501 (handle_one_term_event): Use Gpm_DrawPointer.
22502 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22503 Signal errors instead of returning nil. Always return nil.
22504 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22505 Make it a noop if gpm-mouse was not activated.
22506 (syms_of_term): Update names.
22507
225082007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22509
22510 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22511 (init_sys_modes): Check that gpm_tty is the current tty.
22512
22513 * alloc.c (allocate_terminal): Set the vector size to only count the
22514 lisp fields. Initialize those to nil.
22515 (mark_object): Don't treat terminals specially.
22516 (mark_terminal): Remove.
22517 (mark_terminals): Use mark_object instead.
22518
22519 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22520 the GC to the beginning.
22521
22522 * indent.h:
22523 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22524
22525 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22526
225272007-09-25 Jason Rumney <jasonr@gnu.org>
22528
22529 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22530
22531 * w32console.c (create_w32cons_output): Remove.
22532
22533 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22534
22535 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22536 (reset_sys_modes): Use reset_terminal_modes_hook.
22537
225382007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22539
22540 * eval.c (do_autoload): Don't output any message.
22541
225422007-09-24 Juri Linkov <juri@jurta.org>
22543
22544 * emacs.c (standard_args): Change priority of "--no-splash"
22545 from 40 to 3. Add "--no-desktop" with the same priority.
22546
225472007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22548
22549 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22550 and optimize the case where they are all 1.
22551
225522007-09-23 Johannes Weiner <hannes@saeurebad.de>
22553
22554 * lisp.h (abs): Define if not defined.
22555 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22556 Don't define `abs', since it's defined in lisp.h.
22557
225582007-09-22 Eli Zaretskii <eliz@gnu.org>
22559
22560 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22561 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22562 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22563 (init_tty): Use DEV_TTY instead of "/dev/tty".
22564 [WINDOWSNT]: No need to protect from NAME arg being null.
22565
225662007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22567
22568 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22569 up the tty state.
22570
225712007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22572
22573 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22574 (gpm_tty): Change its type.
22575 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22576 (gpm_tty): Change its type and initialize it.
22577 (Fterm_open_connection): Check the frame is indeed a tty.
22578 Use the new gpm_tty.
22579 (Fterm_close_connection): Use the new gpm_tty.
22580 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22581 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22582
225832007-09-21 Juanma Barranquero <lekktu@gmail.com>
22584
22585 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22586 underline_color, to draw strike-through.
22587
225882007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22589
22590 * lisp.h (allocate_terminal): Declare.
22591
22592 * window.c (candidate_window_p): Consider frames that are being placed
22593 by the user as somewhere between visible and iconified.
22594 (window_loop): Prefer windows on the current frame.
22595 (Fselect_window): Move the use of select-frame to the beginning so we
22596 can just delegate all the work (it'll call us back anyway).
22597
22598 * frame.c (Qdisplay_environment_variable):
22599 * frame.h (Qdisplay_environment_variable): Delete.
22600
22601 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22602 of the first arg, since that value may be a union.
22603
22604 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22605 parameter rather than Qdisplay_environment_variable. If all else
22606 fails, look for DISPLAY in initial-environment.
22607
226082007-09-21 Glenn Morris <rgm@gnu.org>
22609
22610 * Makefile.in (emacstool): Remove target.
22611 (lisp, shortlisp): Remove termdev.elc.
22612
226132007-09-21 Markus Triska <markus.triska@gmx.at>
22614
22615 * xterm.c (x_delete_display): Compile session management conditionally.
22616
226172007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22618
22619 * callproc.c (getenv_internal_1): New function.
22620 (getenv_internal): Use it.
22621 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22622
22623 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22624 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22625 (Fset_terminal_parameter): Work with dead terminals as well.
22626 (Fmodify_terminal_parameters): Remove.
22627
22628 * terminal.c (get_terminal): Handle terminals.
22629 Make sure the terminal returned is live.
22630 (create_terminal): Use allocate_terminal.
22631 (mark_terminals): Move to alloc.c.
22632 (delete_terminal): Use terminal->name as liveness status.
22633 NULL out fields after freeing their contents.
22634 Don't deallocate the object.
22635 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22636 rather than an int.
22637 (Fterminal_live_p): Accept non-integer arguments.
22638 (Fterminal_list): Return terminal objects rather than an ints.
22639
22640 * alloc.c (enum mem_type): New member for `terminal' objects.
22641 (allocate_terminal): New function.
22642 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22643 Handle terminals.
22644 (mark_terminal): New fun.
22645 (mark_terminals): Move from terminal.c.
22646
22647 * term.c (get_tty_terminal): Don't treat output_initial specially.
22648 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22649 (delete_tty): Use terminal->name as liveness status.
22650
22651 * termhooks.h (struct terminal): Make it into a pseudovector.
22652 Remove `deleted' replaced by checking `name's nullness.
22653
22654 * print.c (print_object): Handle terminals.
22655
22656 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22657 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22658
22659 * frame.c (make_terminal_frame):
22660 * keyboard.c (tty_read_avail_input):
22661 * w32term.c (x_delete_terminal):
22662 * xfns.c (Fx_create_frame, x_create_tip_frame):
22663 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22664
226652007-09-20 Glenn Morris <rgm@gnu.org>
22666
22667 * process.c (Fmake_network_process): Doc fix.
22668
226692007-09-19 Jason Rumney <jasonr@gnu.org>
22670
22671 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22672
226732007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22674
22675 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22676 Fix a C warning regarding variable constness.
22677
22678 * xterm.c (handle_one_xevent): Fix a C warning.
22679
226802007-09-18 Jason Rumney <jasonr@gnu.org>
22681
22682 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22683
226842007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22685
22686 * gtkutil.c (gdpy_def): New variable.
22687 (xg_initialize): Initialize gdpy_def.
22688 (xg_display_close): If no other display exists, set gdpy_def to a
22689 new connection.
22690
226912007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22692
22693 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22694 when we have no file name for the icon.
22695 (xg_tool_bar_expose_callback): Remove.
22696 (xg_create_tool_bar): Don't connect expose signal to
22697 xg_tool_bar_expose_callback.
22698 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22699
227002007-09-16 Andreas Schwab <schwab@suse.de>
22701
22702 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22703 values instead of zapping them.
22704
227052007-09-14 Glenn Morris <rgm@gnu.org>
22706
22707 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22708 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22709 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22710 scope and rename to omfib_buffer for clarity.
22711 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22712
227132007-09-14 Kenichi Handa <handa@m17n.org>
22714
22715 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22716
227172007-09-13 Jason Rumney <jasonr@gnu.org>
22718
22719 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22720
22721 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22722
22723 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22724 (mac_term_init): Call here instead, passing rif.
22725
227262007-09-13 Glenn Morris <rgm@gnu.org>
22727
22728 * s/hpux.h: No longer define `static' as nothing.
22729
227302007-09-13 Johan Bockgård <bojohan@gnu.org>
22731
22732 * callint.c (Fcall_interactively): Remove unused var `fun'.
22733
227342007-09-12 Romain Francoise <romain@orebokech.com>
22735
22736 * window.c (prefer_window_split_horizontally, display_buffer):
22737 Revert 2007-09-08 change.
22738
227392007-09-12 Glenn Morris <rgm@gnu.org>
22740
22741 * alloca.c: Remove file.
22742 * Makefile.in (alloca): Do not undef.
22743 (allocaobj, alloca.o): Remove.
22744 (otherobj): Remove allocaobj.
22745 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22746 * regex.c (C_ALLOCA): Remove all references and code that was only
22747 used when this was defined.
22748 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22749 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22750 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22751
22752 * Makefile.in (SOURCES, unlock, relock): Delete.
22753
22754 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22755 (menu_grab_callback): All uses changed.
22756
22757 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22758 (x_reply_selection_request): All uses changed.
22759
227602007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22761
22762 * lread.c (load_warn_old_style_backquotes): Change message to look
22763 better when it appears in the middle of byte-compiler messages.
22764
227652007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22766
22767 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22768
22769 * xterm.c (x_create_terminal): Add comment.
22770
22771 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22772
227732007-09-10 Richard Stallman <rms@gnu.org>
22774
22775 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22776
227772007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22778
22779 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22780 (DEFUN): Document `intspec', use it instead of `prompt'.
22781
22782 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22783
22784 * data.c (Finteractive_form): If the interactive specification starts
22785 with a `(', use it as a Lisp form.
22786
22787 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22788 name and file modes.
22789
22790 * callint.c (Fcall_interactively): Comment fixes.
22791
227922007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22793
22794 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22795 and compiled functions.
22796
227972007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22798
22799 * window.c (prefer_window_split_horizontally): New variable.
22800 (display_buffer): Consider splitting window horizontally depending
22801 on prefer_window_split_horizontally.
22802
228032007-09-08 Eli Zaretskii <eliz@gnu.org>
22804
22805 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22806
228072007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22808
22809 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22810
22811 * frame.c (x_set_frame_parameters): Check number is positive before
22812 using XFASTINT.
22813
22814 * window.c (freeze_window_start): Don't presume selected_window holds
22815 a window object.
22816 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22817
228182007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22819
22820 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22821
228222007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22823
22824 * window.c (Vsplit_window_preferred_function): New var.
22825 (Fdisplay_buffer): Use it.
22826 (syms_of_window): Export, and initialize it.
22827
228282007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22829
22830 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22831
228322007-09-06 Glenn Morris <rgm@gnu.org>
22833
22834 * gtkutil.c (menu_grab_callback) <cnt>:
22835 * xselect.c (x_reply_selection_request) <cnt>: Move static
22836 variable to file scope.
22837
228382007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22839
22840 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22841 consistent values of selected_frame and selected_window.
22842
228432007-09-04 Jason Rumney <jasonr@gnu.org>
22844
22845 * w32console.c (initialize_w32_display): Zero unused hooks.
22846
228472007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22848
22849 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22850 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22851
228522007-09-04 Jason Rumney <jasonr@gnu.org>
22853
22854 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22855 in w32console.c. Set up input. Remove XXX comments that have been
22856 confirmed as correct.
22857
22858 * s/ms-w32.h (MULTI_KBOARD): Define.
22859
22860 * w32console.c (one_and_only_w32cons): Remove.
22861 (initialize_w32_display): Take terminal argument.
22862
22863 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22864 initialize_w32_display.
22865 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22866
22867 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22868
22869 * keyboard.c (discard_mouse_events): Discard it.
22870 (make_lispy_event): Translate it to a lisp event.
22871 (lispy_wheel_names): Add wheel-left and right events.
22872 (syms_of_keyboard): Enlarge wheel_syms.
22873
22874 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22875 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22876
22877 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22878
22879 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22880 from WM_MOUSEHWHEEL.
22881 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22882
22883 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22884 terminal.
22885
22886 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22887 keyboard for the terminal.
22888
228892007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22890
22891 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22892 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22893 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22894 and resume-tty-function to resume-tty-hook.
22895 (Fsuspend_tty, Fresume_tty): Use new names.
22896
228972007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22898
22899 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22900 if it starts with "n:".
22901
229022007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22903
22904 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22905
229062007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22907
22908 * frame.h:
22909 * frame.c (Qterm_environment_variable): Remove.
22910 (syms_of_frame): Don't init and staticpro it.
22911
22912 * callproc.c (getenv_internal): Remove special case for $TERM.
22913
22914 * callproc.c (Vinitial_environment): New variable.
22915 (set_initial_environment): Initialize it.
22916 (syms_of_callproc): Declare it.
22917 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22918 TERM under which a process runs is never related to the TERM in which
22919 Emacs is running.
22920
229212007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22922
22923 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22924 * s/darwin.h: ... do it here.
22925
229262007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22927
22928 * lisp.h (set_initial_environment): Rename from set_global_environment.
22929
22930 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22931 removed by mistake on the multi-tty branch.
22932
22933 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22934 (Fmodify_frame_parameters): Return a value.
22935
22936 * image.c (png_load): Comment-out var only used in commented-out code.
22937
22938 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22939 before passing it to mark_object.
22940
22941 * xfaces.c (internal_resolve_face_name): Return a value.
22942 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22943
22944 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22945 (x_icon): Comment-out var only used in commented-out code.
22946
229472007-08-29 Romain Francoise <romain@orebokech.com>
22948
22949 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22950 QUIT hasn't been provided.
22951
229522007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22953
22954 * callproc.c (child_setup, getenv_internal): Use the
22955 display-environment-variable and term-environment-variable frame params.
22956 (set_initial_environment): Initialise Vprocess_environment.
22957
22958 * config.in: Disable multi-keyboard support on a mac.
22959
22960 * frame.c (Qterm_environment_variable)
22961 (Qdisplay_environment_variable): New variables.
22962 (syms_of_frame): Intern and staticpro them.
22963 (Fmake_terminal_frame): Disable output method test.
22964
22965 * frame.h: Declare them here.
22966
22967 * macfns.c (x_set_mouse_color): Get rif from the frame.
22968 (x_set_tool_bar_lines): Don't use updating_frame.
22969 (mac_window): Add 2 new parameters for consistency with other systems.
22970 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22971 frame parameters following what is done in X11 and w32. Don't use
22972 FRAME_MAC_DISPLAY_INFO.
22973 (Fx_open_connection, start_hourglass): Remove window-system check.
22974 (x_create_tip_frame): Get the keyboard from the terminal.
22975
22976 * macmenu.c: Reorder includes.
22977 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22978
22979 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22980 terminal parameter.
22981 (x_clear_frame): Add a frame parameter.
22982 (note_mouse_movement): Get rif from the frame.
22983 (mac_term_init): Initialize the terminal.
22984 (mac_initialize): Make static and move terminal initialization ...
22985 (mac_create_terminal): ... to this new function.
22986
22987 * macterm.h (struct mac_display_info): Add terminal.
22988 (mac_initialize): Delete declaration.
22989
22990 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22991
22992 * sysdep.c: Comment out text after #endif.
22993
22994 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22995 is defined. Better initialize ttys in windows. Use terminal
22996 specific mouse_position_hook.
22997
22998 * termhooks.h (union display_info): Add mac_display_info.
22999
23000 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23001 Set the default minibuffer frame, window_system and the rest of the
23002 frame parameters following what is done in X11.
23003
23004 * w32term.c (w32_initialize): Make static.
23005
23006 * xselect.c (x_handle_selection_clear): Only access
23007 terminal->kboard when MULTI_KBOARD is defined.
23008
23009 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23010 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23011
230122007-08-29 Jason Rumney <jasonr@gnu.org>
23013
23014 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23015 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23016
23017 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23018 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23019
23020 * keyboard.c (restore_kboard_configuration): Only define when
23021 MULTI_KBOARD defined.
23022
23023 * makefile.w32-in: Update dependancies from Makefile.in.
23024 (OBJ1): Add terminal.$(O)
23025
23026 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23027 Don't define function body.
23028 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23029
23030 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23031
23032 * w32.c (request_sigio, unrequest_sigio): Remove.
23033
23034 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23035 (w32con_clear_frame, w32con_clear_end_of_line)
23036 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23037 (w32con_delete_glyphs, w32con_set_terminal_window)
23038 (scroll_line, w32_sys_ring_bell): Add frame arg.
23039 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23040 Add terminal arg.
23041 (PICK_FRAME): Remove.
23042 (w32con_write_glyphs): Use frame specific terminal coding.
23043 (one_and_only_w32cons): New global variable.
23044 (initialize_w32_display): Use it for storing hooks.
23045 (create_w32cons_output): New function.
23046
23047 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23048 arg a frame.
23049
23050 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23051 Set window_system.
23052 (x_set_tool_bar_lines): Don't use updating_frame.
23053 (Fx_create_frame): Set terminal and ref count.
23054 (Fx_open_connection): Remove window-system check.
23055
23056 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23057
23058 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23059 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23060 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23061 Add frame arg.
23062 (x_delete_terminal, w32_create_terminal): New functions.
23063 (w32_term_init): Create a terminal.
23064 (w32_initialize): Move terminal specific initialization to
23065 w32_create_terminal.
23066
23067 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23068 (w32_clear_rect, w32_clear_area): Use background from frame.
23069 (w32_display_info): Add terminal.
23070 (w32_sys_ring_bell, x_delete_display): Declare here.
23071
23072 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23073
23074 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23075
230762007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23077
23078 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23079 Fix get_named_tty calls for the controlling tty.
23080
230812007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23082
194d44e7 23083 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23084
230852007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23086
23087 * term.c (tty_insert_glyphs): Add missing first parameter.
23088
230892007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23090
23091 * buffer.c (Fbuffer_list, Fbury_buffer):
23092 Take frame->buried_buffer_list into account.
23093
23094 * cm.c (current_tty): New variable, for cmputc().
23095 (cmputc): Use it.
23096 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23097 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23098 (cmgoto): Add tty parameter. Pass it on to calccost().
23099 Use emacs_tputs() instead of tputs().
23100
23101 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23102 tputs().
23103 (current_tty): New variable, for cmputc().
23104 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23105
23106 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23107 (internal_condition_case, internal_condition_case_1)
23108 (internal_condition_case_2): Don't abort when x_catching_errors.
23109
23110 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23111 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23112 prevent crashes caused by bogus longjmps in read_char.
23113
23114 * keymap.h (Fset_keymap_parent): Add EXFUN.
23115
23116 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23117 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23118 Remove redundant definition.
23119
23120 * macfns.c (x_set_mouse_color, x_make_gc):
23121 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23122
23123 * w32term.c (x_free_frame_resources):
23124 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23125 (w32_initialize): Use the accessor macros for terminal characteristics.
23126
23127 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23128 Use the accessor macros for terminal characteristics.
23129 * msdos.c (internal_terminal_init): Use the accessor macros for
23130 terminal characteristics.
23131 (ScreenVisualBell, internal_terminal_init):
23132 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23133
23134 * termopts.h (no_redraw_on_reenter): Declare.
23135
23136 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23137 (mark_terminals, mark_ttys): Declare.
23138 (Fgarbage_collect): Call them.
23139 (mark_object): Mark buried_buffer_list.
23140
23141 * prefix-args.c: Include stdlib.h for exit.
23142
23143 * syssignal.h: Add comment.
23144
23145 * indent.c: Include stdio.h.
23146
23147 * window.h (Vinitial_window_system): Declare.
23148 (Vwindow_system): Delete declaration.
23149
23150 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23151
23152 * image.c (lookup_image): Don't initialize `c' until the xasserts
23153 have been run.
23154
23155 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23156 FRAME_FOREGROUND_PIXEL.
23157
23158 * print.c (print_preprocess): Don't lose print_depth levels while
23159 iterating.
23160
23161 * widget.c (update_from_various_frame_slots):
23162 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23163
23164 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23165 frames.
23166 (window_internal_height): Remove bogus make_number call.
23167 (init_window_once): Call make_terminal_frame with two zero parameters.
23168
23169 * fileio.c (Fread_file_name): Update comment.
23170
23171 * callint.c (Fcall_interactively):
23172 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23173 Make sure it is correctly unwound.
23174
23175 * xsmfns.c (x_session_close): New function.
23176
23177 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23178 Delete declarations.
23179
23180 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23181 (x_output): Remove background_pixel and foreground_pixel fields.
23182 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23183 (x_delete_device, x_session_close): Declare.
23184
23185 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23186 (read_filtered_event): Call `read_char' with a local
23187 `wrong_kboard_jmpbuf'.
23188
23189 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23190 Don't call single_kboard_state. Use FRAME_RIF.
23191
23192 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23193 systems.
23194
23195 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23196 (Fframe_with_environment, Fset_input_meta_mode)
23197 (Fset_quit_char): EXFUN.
23198 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23199 (init_sys_modes, reset_sys_modes): Update prototypes.
23200 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23201
23202 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23203 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23204 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23205 Delete declarations.
23206 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23207 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23208 New declarations.
23209
23210 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23211 already does that during init_display(). Call syms_of_keymap
23212 before syms_of_keyboard. Call `syms_of_terminal'.
23213 Call set_initial_environment, not set_process_environment.
23214 (shut_down_emacs): Call reset_all_sys_modes() instead of
23215 reset_sys_modes().
23216
23217 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23218 (internal_resolve_face_name, resolve_face_name_error): New functions.
23219 (resolve_face_name): Protect against loops and errors thrown by Fget.
23220 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23221 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23222
23223 * scroll.c: Replace CURTTY() with local variables throughout the
23224 file (where applicable).
23225 (calculate_scrolling, calculate_direct_scrolling)
23226 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23227 characteristics.
23228
23229 * keymap.c (Vfunction_key_map): Remove.
23230 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23231 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23232 (Vkey_translation_map): Remove.
23233 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23234 (Fdescribe_buffer_bindings)
23235 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23236 Update for terminal-local key-translation-map.
23237
23238 * Makefile.in (callproc.o): Update dependencies.
23239 (lisp, shortlisp): Add termdev.elc.
23240 (obj): Add terminal.o.
23241 (terminal.o): Add dependencies.
23242 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23243 (data.o, fns.o): Add termhooks.h dependency.
23244 (SOME_MACHINE_LISP): Add dnd.elc.
23245 (minibuf.o): Fix typo.
23246 Update dependencies.
23247
23248 * data.c (do_symval_forwarding, store_symval_forwarding)
23249 (find_symbol_value): Use the selected frame's keyboard, not
23250 current_kboard.
23251
23252 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23253 Vwindow_system.
23254
23255 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23256 Fmenu_bar_open.
23257 (syms_of_xmenu): Update defsubr.
23258 (mouse_position_for_popup, Fx_popup_menu)
23259 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23260 (set_frame_menubar, free_frame_menubar)
b97439ce 23261 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23262 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23263 an X frame.
23264
23265 * xselect.c (x_own_selection): Abort if not an X frame.
23266 (some_frame_on_display): Check if it is an X frame.
23267 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23268
23269 * coding.c: Include frame.h and termhooks.h.
23270 (terminal_coding, keyboard_coding): Delete.
23271 (Fset_terminal_coding_system_internal)
23272 (Fset_keyboard_coding_system_internal)
23273 (Fkeyboard_coding_system)
23274 (Fterminal_coding_system): Add a terminal parameter.
23275 Get terminal_coding from the terminal.
23276 (init_coding_once): Don't call setup_coding_system here.
23277
23278 * dispextern.h (set_scroll_region, turn_off_insert)
23279 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23280 (tty_clear_end_of_line, tty_setup_colors)
23281 (delete_tty, updating_frame)
23282 (produce_special_glyphs, produce_glyphs, write_glyphs)
23283 (insert_glyphs): Remove.
23284 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23285 (tty_turn_off_highlight, get_tty_size): Add declaration.
23286 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23287
23288 * frame.h (enum output_method): Add output_initial.
23289 (struct x_output): Delete.
23290 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23291 Access foreground_pixel and background_pixel directly from the frame.
23292 (tty_display): Delete.
23293 (struct frame): Add buried_buffer_list, foreground_pixel,
23294 background_pixel and terminal. Delete kboard.
23295 (union output_data): Add tty.
23296 (FRAME_KBOARD): Get the kboard from the terminal.
23297 (FRAME_INITIAL_P): New macro.
23298 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23299 (Qterm_environment_variable, Qdisplay_environment_variable)
23300 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23301 New declarations.
23302
23303 * termchar.h (tty_output, tty_display_info): New structures.
23304 (tty_list): Declare.
23305 (FRAME_TTY, CURTTY): New macros.
23306 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23307 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23308 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23309 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23310
23311 * callproc.c: Include frame.h and termhooks.h, for terminal
23312 parameters.
23313 (add_env): New function.
23314 (child_setup): Use it.
23315 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23316 (getenv_internal): Fix get_terminal_param call.
23317 (Fgetenv_internal, egetenv): Update doc.
23318 (syms_of_callproc): Initialize Vprocess_environment to nil.
23319 Register and initialize them. Remove obsolete defvars. Update doc
23320 strings.
23321 (child_setup): Handle Vlocal_environment_variables.
23322 (getenv_internal): Add terminal parameter.
23323 Handle Vlocal_environment_variables.
23324 (Fgetenv_internal): Add terminal parameter.
23325 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23326 environment in a frame (not terminal) parameter. Update doc strings.
23327 (set_initial_environment): Rename from set_global_environment.
23328 Store Emacs environment in initial frame parameter.
23329
23330 * xdisp.c (redisplay_internal): Update references to
23331 `previous_terminal_frame'.
23332 (display_mode_line, Fformat_mode_line): Replace calls to
23333 `push_frame_kboard' with `push_kboard'.
23334 (get_glyph_string_clip_rects): Add extra parentheses and
23335 braces to prevent compiler warnings.
23336 (calc_pixel_width_or_height): Add xassert to check that the
23337 frame is alive. Don't call `lookup_image' on a termcap frame.
23338 (message2_nolog, message3_nolog, redisplay_internal)
23339 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23340 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23341 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23342 (Fx_display_pixel_width, Fx_display_pixel_height)
23343 (Fx_display_planes, Fx_display_color_cells)
23344 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23345 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23346 (Fx_display_backing_store, Fx_display_visual_class)
23347 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23348 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23349
23350 * xfns.c (x_set_foreground_color x_set_background_color)
23351 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23352 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23353 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23354 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23355 terminal that is being deleted.
23356 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23357 frame parameter, and make sure it overrides any user-supplied setting.
23358 (Fx_close_connection, Fx_synchronize): Unify argument names with
23359 the rest of the DEFUNs.
23360
23361 * dispnew.c (Fsend_string_to_terminal): Update call to
23362 `get_tty_terminal'.
23363 (Fredraw_frame, Fsend_string_to_terminal)
23364 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23365 FRAME_TERMCAP_P and FRAME_TTY.
23366 (window_change_signal): Don't believe width/height values that are
23367 impossibly small.
23368 (Vinitial_window_system): Rename from Vwindow_system.
23369 (termscript, Wcm, rif): Delete.
23370
23371 * termhooks.h (struct terminal): New struct containing the
23372 previously global text display hooks and new members NAME,
23373 DELETED and PARAM_ALIST.
23374 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23375 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23376 (FRAME_RIF): New macros.
23377 (get_terminal_param, get_device): New declarations.
23378 (termscript): Delete declaration.
23379
23380 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23381 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23382 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23383 FRAME_FOREGROUND_PIXEL.
23384 (x_fully_uncatch_errors): Disable definition.
23385 (x_scroll_bar_expose): Fix reference to foreground pixel.
23386 (XTread_socket): Disable loop on all X displays.
23387 (x_delete_terminal): Don't set terminal->deleted and let
23388 delete_terminal delete the frames on the terminal.
23389 (x_delete_display): Doc update to reflect changes in
23390 delete_terminal.
23391 (x_display_info) <terminal>: Move member earlier in the struct.
23392 (deleting_tty): Remove old variable.
23393 (Fsuspend_tty): Call clear_tty_hooks.
23394 (Fresume_tty, init_tty): Call set_tty_hooks.
23395 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23396 errors on X frames.
23397 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23398 (handle_one_xevent): Initialize `f' to NULL.
23399 (x_delete_terminal, x_create_terminal): New functions.
23400 (XTset_terminal_modes, XTreset_terminal_modes)
23401 (XTread_socket, x_connection_closed, x_term_init)
23402 (x_term_init, x_delete_display): Add terminal parameter.
23403 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23404 X connections.
23405
23406 * frame.c: Include termchar.h.
23407 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23408 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23409 (Qdisplay_environment_variable): New vars.
23410 (Fframep): Deal with output_initial.
23411 (Fframe-live-p): Doc fix.
23412 (Fwindow-system): New function.
23413 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23414 (make_terminal_frame): Don't create frames on a terminal that is
23415 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23416 (store_frame_param): Check for found_for_frame before calling XFRAME.
23417 (Fmake_terminal_frame): Handle NULL tty names correctly.
23418 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23419 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23420 frames to refer to a deleted frame in their 'environment parameter.
23421 (Fframe_with_environment): New function.
23422 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23423 (get_future_frame_param): New function.
23424 (Fmake_terminal_frame): Use it.
23425 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23426
23427 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23428 * sysdep.c (reset_sys_modes): Update for renames.
23429
23430 * keyboard.c (tty_read_avail_input): New function.
23431 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23432 (syms_of_keyboard): Defsubr them.
23433 (Fset_input_meta_mode, Fset_quit_char): New functions.
23434 (Fset_input_mode): Split to above functions.
23435 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23436 parameter. Use it in call to `read_char'.
23437 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23438 Set wrong_kboard_jmpbuf correctly in recursive calls.
23439 Use current_kboard to access Vkeyboard_translate_table.
23440 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23441 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23442 Update longjmp invocations. Remember the original current_kboard,
23443 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23444 changes it. Comment out unnecessary calls to
23445 `record_single_kboard_state' and `any_kboard_state'.
23446 Update recursive calls.
23447 (wrong_kboard_jmpbuf): Remove global variable.
23448 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23449 Handle deleted interrupted_kboards correctly; that is a legal
23450 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23451 and read_char calls. Abort if interrupted_kboard died in read_char.
23452 (any_kboard_state, single_kboard_state)
23453 (push_frame_kboard): Remove function.
23454 (pop_kboard): Switch out of single_kboard mode if the kboard has
23455 been deleted. Remove unused variable. Help debugging by not
23456 changing current_kboard unnecessarily. Set current_kboard to the
23457 kboard of the selected frame when the stored kboard object has
23458 been deleted before pop_kboard.
23459 (temporarily_switch_to_single_kboard): Change first parameter to a
23460 frame pointer. Throw an error when caller wants to change kboards
23461 while in single_kboard mode. Don't push_kboard if we weren't in
23462 single kboard state. Don't pop_kboard if we popped into any
23463 kboard state.
23464 (restore_kboard_configuration): Abort if pop_kboard changed the
23465 kboard in single_kboard mode. Call pop_kboard only after setting
23466 up single_kboard mode.
23467 (Frecursive_edit): Switch to single_kboard mode only in nested
23468 command loops.
23469 (cmd_error, command_loop, command_loop_1, timer_check):
23470 Comment out unnecessary call to `any_kboard_state' and
23471 `record_single_kboard_state'.
23472 (delete_kboard): Exit single_kboard mode if we have just deleted
23473 that kboard. Use FRAME_KBOARD.
23474 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23475 `fatal_error_signal'.
23476 (record_single_kboard_state): Don't push_kboard if we weren't in
23477 single kboard state. Don't pop_kboard if we popped into any
23478 kboard state.
23479 (push_frame_kboard): Rename to push_kboard.
23480 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23481 (read_avail_input): Read input from all terminals.
23482 (mark_kboards): Also mark Vkeyboard_translate_table.
23483 (kbd_buffer_store_event_hold): Simplify condition.
23484 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23485 (Vkeyboard_translate_table): Move to struct kboard.
23486 (init_kboard): Initialize Vkeyboard_translate_table.
23487 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23488 Vkeyboard_translate_table. Update doc strings. Update docs of
23489 local-function-key-map and function-key-map.
23490
23491 * terminal.c: New file.
23492
23493 * term.c: Include errno.h.
23494 (Vring_bell_function, device_list, initial_device)
23495 (next_device_id, ring_bell, update_begin, update_end)
23496 (set_terminal_window, cursor_to, raw_cursor_to)
23497 (clear_to_end, clear_frame, clear_end_of_line)
23498 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23499 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23500 (syms_of_term): Move their initialization to terminal.c.
23501 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23502 (Ftty_display_color_cells)
23503 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23504 (clear_tty_hooks, set_tty_hooks)
23505 (init_tty, maybe_fatal): New functions.
23506 (Ftty_type): Return nil if terminal is not on a tty instead of
23507 throwing an error. Doc update.
23508 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23509 Doc update. Initialize new subrs and variables.
23510 (delete_tty): Use terminal->deleted.
23511 (tty_set_terminal_modes): Rename from set_terminal_modes.
23512 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23513 (set_scroll_region): Rename to `tty_set_scroll_region'.
23514 (turn_on_insert): Rename to `tty_turn_on_insert'.
23515 (turn_off_insert): Rename to `tty_turn_off_insert'.
23516 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23517 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23518 (toggle_highligh): Rename to `tty_toggle_highlight'.
23519 (background_highlight): Rename to `tty_background_highlight'.
23520 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23521 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23522 (tty_set_scroll_region, tty_background_highlight)
23523 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23524 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23525 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23526 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23527 Add static modifier.
23528 (tty_reset_terminal_modes, tty_set_terminal_window)
23529 (tty_set_scroll_region, tty_background_highlight)
23530 (tty_highlight_if_desired, tty_cursor_to)
23531 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23532 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23533 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23534 renames.
23535
235362007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23537
23538 * keyboard.c: Qrtl is new.
23539 (parse_tool_bar_item): Handle :rtl keyword.
23540 (syms_of_keyboard): Intern :rtl keyword.
23541
23542 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23543
23544 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23545 so no Lisp code is executed.
23546 (file_for_image, find_rtl_image): New functions.
23547 (xg_get_image_for_pixmap): Use file_for_image.
23548 (update_frame_tool_bar): If direction is RTL, use RTL image if
23549 defined. Use Gtk stock images if defined.
23550
235512007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23552
23553 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23554 for nonexistent or zero-width glyph in composition glyph.
23555
235562007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23557
23558 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23559
23560 * xdisp.c (Finvisible_p): New function.
23561 (syms_of_xdisp): defsubr it.
23562
235632007-08-24 Juanma Barranquero <lekktu@gmail.com>
23564
23565 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23566 Doc fixes.
23567
235682007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23569
23570 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23571
235722007-08-24 Martin Rudalics <rudalics@gmx.at>
23573
23574 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23575 whether decoding has modified buffer contents.
23576
235772007-08-24 Jason Rumney <jasonr@gnu.org>
23578
23579 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23580 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23581 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23582 (init_svg_functions) [HAVE_NTGUI]: New function.
23583 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23584 (svg_load_image): Use them.
23585 (svg_load_image) [HAVE_NTGUI]: Implement background.
23586
235872007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23588
23589 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23590 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23591 (LIBX): Remove @RSVG_LIBS@.
23592 (LIBES): Add $(RSVG_LIBS).
23593
23594 * image.c (svg_load_image): Blend with specified background if exists.
23595 Use IMAGE_BACKGROUND. Add Mac OS Support.
23596
23597 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23598 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23599 Remove macros.
23600 [MAC_OSX] (socket_callback): Do nothing.
23601 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23602 ReceiveNextEvent.
23603 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23604 socket_callback.
23605 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23606
236072007-08-22 Glenn Morris <rgm@gnu.org>
23608
23609 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23610
236112007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23612
23613 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23614
23615 * image.c: Add support for SVG images. Some additional comments
23616 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23617 (svg_image_p): New function to test for SVG image.
23618 (svg_load): New function to load SVG image.
23619 (svg_load_image): New function, helper for svg_load.
23620 (Qsvg): New Lisp_object.
23621 (svg_keyword_index): New enum.
23622 (svg_format): New static `image_keyword' struct.
23623 (svg_type): New static `image_type' struct.
23624 (librsvg/rsvg.h): Include it.
23625
236262007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23627
23628 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23629
236302007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23631
23632 * lread.c (Qold_style_backquotes): New var.
23633 (syms_of_lread): Init and staticpro it.
23634 (load_warn_old_style_backquotes): New fun.
23635 (Fload): Use them to warn about old style backquotes.
23636 (end_of_file_error, Fload): Remove unused vars.
23637
23638 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23639
23640 * lread.c (Vold_style_backquotes): New var.
23641 (syms_of_lread): Init and export it to Elisp.
23642 (read1): Set it when we find an old-style (back)quote.
23643
236442007-08-22 Jason Rumney <jasonr@gnu.org>
23645
23646 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23647
236482007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23649
23650 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23651
236522007-08-19 Richard Stallman <rms@gnu.org>
23653
23654 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23655
236562007-08-19 Andreas Schwab <schwab@suse.de>
23657
23658 * alloc.c (pure): Round PURESIZE up.
23659
236602007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23661
23662 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23663 active frame.
23664
236652007-08-16 Richard Stallman <rms@gnu.org>
23666
23667 * eval.c (Fcommandp): Add parens to clarify.
23668
23669 * minibuf.c (Fall_completions): Use enum for type of table.
23670
23671 * emacs.c (USAGE2): Improve text.
23672
236732007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23674
23675 * term.c (tty_default_color_capabilities): Declare static
23676 variables in file scope, to avoid HPUX compiler problem.
23677
236782007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23679
23680 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23681 to gtk_toolbar_insert.
23682
236832007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23684
23685 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23686
23687 * insdel.c (reset_var_on_error): New fun.
23688 (signal_before_change, signal_after_change):
23689 Use it to reset (after|before)-change-functions to nil in case of error.
23690 Bind inhibit-modification-hooks to t.
23691 Don't bind (after|before)-change-functions to nil while they run.
23692
236932007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23694
23695 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23696 filling pixmap with stippled background.
23697
236982007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23699
23700 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23701 Don't use invisible frame as parent window for repositioning.
23702
237032007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23704
23705 * print.c (new_backquote_output): Rename from old_backquote_output.
23706 (print): Inverse its logic (according to its name) so as to match the
23707 behavior of new_backquote_flag in lread.c.
23708
237092007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23710
23711 * gmalloc.c (posix_memalign): New function.
23712
23713 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23714 ActivateControl/DeactivateControl here.
23715 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23716 frame-notice-user-settings is non-nil.
23717 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23718 for kEventParamFMFontStyle.
23719 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23720 mac_pass_command_to_system and mac_pass_control_to_system here.
23721 (XTread_socket): Call ActivateControl/DeactivateControl here.
23722 (XTread_socket) [TARGET_API_MAC_CARBON]:
23723 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23724 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23725 for window repositioning.
23726
237272007-08-08 Glenn Morris <rgm@gnu.org>
23728
23729 * Replace `iff' in doc-strings and comments.
23730
237312007-08-07 Chong Yidong <cyd@stupidchicken.com>
23732
23733 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23734
237352007-08-07 Martin Rudalics <rudalics@gmx.at>
23736
23737 * fileio.c (Finsert_file_contents): Run format-decode and
23738 after_insert_file_functions on entire buffer when REPLACE is
23739 non-nil and inhibit modification_hooks and point_motion_hooks.
23740 For consistency, run after_insert_file_functions iff something
23741 got inserted. Move signal_after_change and update_compositions
23742 after code running after_insert_file_functions. Make sure that
23743 undo_list doesn't record intermediate steps of the decoding process.
23744
237452007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23746
23747 * emacs.c (main)
23748 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23749 Call malloc_enable_thread on interactive startup.
23750
23751 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23752 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23753 [USE_PTHREAD]: Conditionalize with it.
23754 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23755 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23756 New functions.
23757
237582007-08-06 Chong Yidong <cyd@stupidchicken.com>
23759
23760 * xdisp.c (redisplay_window): When restoring original buffer
23761 position, make sure it is still valid.
23762
23763 * image.c (png_load): Ignore png-supplied background color.
23764
237652007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23766
23767 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23768 Use kCFAbsoluteTimeIntervalSince1970.
23769
23770 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23771 New variable.
23772 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23773 event loop should be quit.
23774 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23775 Quit dialog event loop if quit_dialog_event_loop is set.
23776
23777 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23778 (Selection): New typedef. Use instead of ScrapRef.
23779 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23780 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23781 (mac_clear_selection): Rename from clear_scrap.
23782 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23783 scrap_has_target_type. All uses changed.
23784 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23785 (mac_selection_has_target_p): New functions.
23786 (mac_put_selection_value): Rename from put_scrap_string.
23787 (mac_get_selection_value): Rename from get_scrap_string.
23788 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23789 (put_scrap_private_timestamp, scrap_has_target_type)
23790 (get_scrap_private_timestamp): Remove functions.
23791 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23792 (x_own_selection, x_get_local_selection):
23793 Use mac_valid_selection_value_p.
23794 (x_own_selection): Don't use put_scrap_private_timestamp.
23795 Record OWNERSHIP-INFO into Vselection_alist instead.
23796 (x_get_local_selection): Don't check type if request is local.
23797 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23798 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23799
238002007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23801
23802 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23803 add comment explaining why.
23804
238052007-08-03 Richard Stallman <rms@gnu.org>
23806
23807 * fileio.c (Fvisited_file_modtime): Use make_time.
23808
238092007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23810
23811 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23812 build.
23813
238142007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23815
23816 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23817
238182007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23819
23820 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23821
238222007-07-30 Richard Stallman <rms@gnu.org>
23823
23824 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23825
238262007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23827
23828 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23829
238302007-07-28 Nick Roberts <nickrob@snap.net.nz>
23831
23832 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23833 remote default-directory.
23834
23835 * buffer.c (mode-line-format): Update doc string.
23836
238372007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23838
23839 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23840 scroll bar gap.
23841 (x_scroll_bar_create): Set bar->fringe_extended_p.
23842 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23843 on frame edge. Check fringe background extension. Don't clear
23844 extended fringe background area.
23845
23846 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23847 (w32_fill_area): Enclose multiple statements with do ... while (0).
23848
23849 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23850 Extend fringe background to scroll bar gap.
23851 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23852 Set bar->fringe_extended_p.
23853 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23854 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23855 background extension. Don't clear extended fringe background area.
23856
23857 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23858 New member fringe_extended_p.
23859
238602007-07-25 Glenn Morris <rgm@gnu.org>
23861
23862 * Relicense all FSF files to GPLv3 or later.
23863
23864 * COPYING: Switch to GPLv3.
23865
238662007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23867
23868 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23869
23870 * data.c (Finteractive_form): Check for the presence of an
23871 `interactive-form' symbol property more thoroughly.
23872
23873 * data.c (Finteractive_form): Use an `interactive-form' property if
23874 present, analogous to the function-documentation property.
23875
238762007-07-24 Jason Rumney <jasonr@gnu.org>
23877
23878 * w32fns.c (x_real_positions): Get real position from OS instead of
23879 calculating it.
23880
238812007-07-23 Jason Rumney <jasonr@gnu.org>
23882
23883 * filelock.c (current_lock_owner): Allow for @ sign in username.
23884
238852007-07-22 Nick Roberts <nickrob@snap.net.nz>
23886
23887 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23888 remote default-directory.
23889
23890 * buffer.c (mode-line-format): Describe above case in doc string.
23891
238922007-07-20 Eli Zaretskii <eliz@gnu.org>
23893
23894 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23895 Define if not defined.
23896
238972007-07-18 Jason Rumney <jasonr@gnu.org>
23898
23899 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23900
239012007-07-18 Richard Stallman <rms@gnu.org>
23902
23903 * data.c (Fsetq_default): Doc fix.
23904
23905 * eval.c (Fsetq): Doc fix.
23906
239072007-07-18 Juanma Barranquero <lekktu@gmail.com>
23908
23909 * coding.c (Ffind_operation_coding_system):
23910 * eval.c (For, Fand): Doc fixes.
23911 Reported by Johan Bockgård.
23912
239132007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23914
23915 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23916
23917 * xterm.h: Declare x_ewmh_activate_frame.
23918
23919 * xterm.c (x_ewmh_activate_frame): New function.
23920 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23921
239222007-07-17 Martin Rudalics <rudalics@gmx.at>
23923
23924 * window.c (Fdisplay_buffer): If largest or LRU window is the
23925 only window, split it even if it is not eligible for splitting.
23926 This restores the original behavior broken by the 2007-07-15
23927 change.
23928
239292007-07-17 Glenn Morris <rgm@gnu.org>
23930
23931 * abbrev.c (abbrev_check_chars): New function.
23932 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23933 Call abbrev_check_chars to check abbrev characters are word
23934 constituents. Doc fix.
23935
239362007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23937
23938 * process.c (Fstart_process, Fmake_network_process)
23939 (read_process_output): Fix up last changes.
23940
239412007-07-16 Eli Zaretskii <eliz@gnu.org>
23942
23943 * makefile.w32-in (clean): Don't delete *~.
23944
239452007-07-16 Andreas Schwab <schwab@suse.de>
23946
23947 * window.c (Fdisplay_buffer): Use NILP.
23948 (Fset_window_scroll_bars): Likewise.
23949
239502007-07-15 Martin Rudalics <rudalics@gmx.at>
23951
23952 * window.c (window_min_size_2): New function.
23953 (window_min_size_1, size_window, Fdisplay_buffer)
23954 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23955 windows without mode- or header-lines when window-min-height is
23956 too small.
23957 (size_window): Reset nodelete_p after testing it, following an
23958 earlier note by Kim F. Storm.
23959 (display_buffer): Do not set split_height_threshold to twice the
23960 value of window_min_height to avoid changing the value of a
23961 customizable variable. Rather explicitly check whether the
23962 height of the window that shall be splitted is at least as large
23963 as split_height_threshold.
23964 (Fwindow_full_width_p): New defun.
23965 (syms_of_window): Defsubr it.
23966
23967 * window.h: Add EXFUN for Fwindow_full_width_p.
23968
239692007-07-14 Jason Rumney <jasonr@gnu.org>
23970
23971 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23972
239732007-07-14 Richard Stallman <rms@gnu.org>
23974
23975 * eval.c (maybe_call_debugger): New function.
23976 (find_handler_clause): Use maybe_call_debugger.
23977 Call it when the handler says `debug'.
23978 Eliminate DEBUGGER_VALUE_PTR.
23979 (Fsignal): Eliminate debugger_value.
23980 (Qdebug): New variable.
23981 (syms_of_eval): Initialize it.
23982
239832007-07-14 Juanma Barranquero <lekktu@gmail.com>
23984
23985 * eval.c (Fprogn):
23986 * keyboard.c (Ftrack_mouse):
23987 * print.c (Fwith_output_to_temp_buffer):
23988 * window.c (Fsave_window_excursion): Doc fix.
23989
239902007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23991
23992 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23993
239942007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23995
23996 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23997 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23998 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23999 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24000 Remove unused encoding_carryover.
24001 * process.c: Adjust all functions accordingly.
24002
240032007-07-12 Richard Stallman <rms@gnu.org>
24004
24005 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24006
240072007-07-11 Jason Rumney <jasonr@gnu.org>
24008
24009 * makefile.w32-in (LIBS): Include OLE32.
24010
24011 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24012 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24013
240142007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24015
24016 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24017 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24018 from a Lisp_Object into a bare pointer.
24019 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24020 Adjust the code correspondingly.
24021
24022 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24023
24024 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24025 (term_show_mouse_face): Remove unused var `j'.
24026 (handle_one_term_event): Remove unused vars `i' and `j'.
24027 Don't cast return value of ttyname since it's not necessary.
24028
240292007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24030
24031 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24032 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24033
24034 * fns.c (map_char_table): Use an array of int for `indices' rather than
24035 an array of Lisp_Objects (which are only ever integers anyway).
24036 (Fmap_char_table): Update caller.
24037 * lisp.h: Update prototype.
24038 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24039 * fontset.c (Ffontset_info):
24040 * casetab.c (set_case_table): Update callers.
24041
24042 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24043
24044 * keymap.c (struct accessible_keymaps_data)
24045 (struct where_is_internal_data): New structures.
24046 (accessible_keymaps_1, where_is_internal_1): Use them to change
24047 interface to adhere to the one used by map_keymap.
24048 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24049 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24050
24051 * keymap.h (map_keymap_function_t): More informative prototype.
24052
240532007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24054
24055 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24056 (looking_at_1): Don't change search_regs and last_thing_searched
24057 if `inhibit-changing-match-data' is non-nil.
24058 (string_match_1, search_buffer, set_search_regs): Likewise.
24059 (syms_of_search): Add Lisp level definition for
24060 `inhibit-changing-match-data' and set it to nil.
24061 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24062 start and end of the match, instead of using values in search_regs.
24063
240642007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24065
24066 * minibuf.c (Fcompleting_read): New value `confirm-only'
24067 for `require-match'.
24068
240692007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24070
24071 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24072 part of the 2007-06-27 change to syms_of_fileio.
24073
240742007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24075
24076 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24077 Check WINDOWP before using XWINDOW. Consolidate return statements.
24078
240792007-06-27 Richard Stallman <rms@gnu.org>
24080
24081 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24082
240832007-06-27 Juanma Barranquero <lekktu@gmail.com>
24084
24085 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24086
240872007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24088
24089 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24090 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24091 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24092 (_free_internal, memalign): Use them.
24093 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24094 Initialize to PTHREAD_MUTEX_INITIALIZER.
24095 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24096 (morecore_nolock): Rename from morecore. All uses changed.
24097 Use only nolock versions of internal allocation functions.
24098 (_malloc_internal_nolock, _realloc_internal_nolock)
24099 (_free_internal_nolock): New functions created from
24100 _malloc_internal, _realloc_internal, and _free_internal.
24101 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24102 Copy hook value to automatic variable before its use.
24103 (memalign): Copy hook value to automatic variable before its use.
24104
241052007-06-26 Kenichi Handa <handa@m17n.org>
24106
24107 * coding.c (Ffind_operation_coding_system): Docstring improved.
24108 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24109
241102007-06-25 David Kastrup <dak@gnu.org>
24111
24112 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24113 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24114 cater for additional parameter.
24115
24116 * keymap.h: Adjust number of parameters to `current-active-maps'.
24117
24118 * doc.c (Fsubstitute_command_keys): Adjust call of
24119 `current-active-maps'.
24120
241212007-06-25 David Kastrup <dak@gnu.org>
24122
24123 * callint.c (Fcall_interactively): Make the parsing of interactive
24124 specs somewhat more readable.
24125
241262007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24127
24128 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24129 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24130 if extended background has already been filled.
24131
241322007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24133
24134 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24135 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24136
24137 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24138 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24139 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24140 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24141 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24142 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24143 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24144 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24145 Run timers during dialog popup.
24146 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24147
241482007-06-21 Jason Rumney <jasonr@gnu.org>
24149
24150 * image.c (convert_mono_to_color_image): Swap fore and background.
24151
241522007-06-20 Jason Rumney <jasonr@gnu.org>
24153
24154 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24155 (w32_free_bdf_font): Unmap memory not handle.
24156
241572007-06-20 Sam Steingold <sds@gnu.org>
24158
24159 * gmalloc.c (__morecore): Fix the declaration to comply with the
24160 definition.
24161
241622007-06-20 Juanma Barranquero <lekktu@gmail.com>
24163
24164 * w32term.c (w32_delete_display): Remove leftover declaration.
24165 (w32_define_cursor, w32_initialize): Make static.
24166
24167 * w32.c (_wsa_errlist): Fix typo in error message.
24168 (init_environment): Ignore any environment variable from the
24169 registry having a null value.
24170
241712007-06-20 Glenn Morris <rgm@gnu.org>
24172
24173 * Makefile.in (LIBGIF): Default to -lgif.
24174
241752007-06-17 Jason Rumney <jasonr@gnu.org>
24176
24177 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24178 unicode strings.
24179
241802007-06-16 Juanma Barranquero <lekktu@gmail.com>
24181
24182 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24183 Fix typo in docstring.
24184
241852007-06-16 Eli Zaretskii <eliz@gnu.org>
24186
24187 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24188 and their keybindings.
24189
241902007-06-15 Chong Yidong <cyd@stupidchicken.com>
24191
24192 * composite.c (update_compositions): Fix last fix.
24193
241942007-06-14 Jason Rumney <jasonr@gnu.org>
24195
24196 * w32.c (get_process_times_fn): New function pointer.
24197 (globals_of_w32): Intialize it if present in kernel32.dll.
24198 (w32_get_internal_run_time): New function.
24199
24200 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24201
242022007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24203
24204 * composite.c (update_compositions): Check the validness of
24205 compositions.
24206
242072007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24208
24209 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24210 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24211
24212 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24213 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24214
24215 * macgui.h (USE_MAC_TOOLBAR): New define.
24216
24217 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24218 Return immediately unless popup is activated.
24219
24220 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24221 background to scroll bar gap.
24222 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24223 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24224 scroll bars on frame edge. Check fringe background extension.
24225 Don't clear extended fringe background area.
24226 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24227 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24228 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24229 [USE_MAC_TOOLBAR]: New macros.
24230 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24231 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24232 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24233 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24234 [USE_MAC_TOOLBAR]: New functions.
24235 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24236 manually if previous repositioning has failed.
24237 (mac_handle_keyboard_event): Use precomputed event kind.
24238 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24239 as tool bar item click. Handle mouse movement over tool bar items.
24240
24241 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24242 toolbar_win_gravity.
24243 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24244 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24245 Add externs.
24246
24247 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24248 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24249
242502007-06-14 Chong Yidong <cyd@stupidchicken.com>
24251
24252 * image.c (search_image_cache): Remove unused variable.
24253
242542007-06-13 Chong Yidong <cyd@stupidchicken.com>
24255
24256 * xfns.c, xmenu.c: Link to xaw3d if available.
24257
242582007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24259
24260 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24261 frame_foreground and frame_background.
24262
24263 * image.c (lookup_image): Save frame foreground and background colors.
24264 (search_image_cache): Check if saved and current frame colors match.
24265
242662007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24267
24268 * regex.c (regex_compile): Remove the `regnum' counter.
24269 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24270
242712007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24272
24273 * term.c: Include intervals.h to declare Fget_text_property.
24274
242752007-06-10 Jason Rumney <jasonr@gnu.org>
24276
24277 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24278
242792007-06-08 Juanma Barranquero <lekktu@gmail.com>
24280
24281 * callint.c (Fcall_interactively):
24282 * editfns.c (Fdelete_and_extract_region):
24283 * fileio.c (Fread_file_name):
24284 * fns.c (Fmapconcat):
24285 * keyboard.c (cmd_error_internal):
24286 * keymap.c (Fkey_description):
24287 * lread.c (openp):
24288 * minibuf.c (read_minibuf):
24289 * search.c (wordify):
24290 * sunfns.c (sel_read):
24291 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24292 * xfns.c (x_default_scroll_bar_color_parameter):
24293 * xmenu.c (menu_help_callback):
24294 * xselect.c (Fx_get_atom_name):
24295 * xterm.c (x_term_init): Use empty_unibyte_string.
24296
242972007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24298
24299 * alloc.c (init_strings): Initialize canonical empty strings.
24300 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24301 canonical empty string when the requested size is 0.
24302
24303 * emacs.c (empty_unibyte_string): Rename from empty_string.
24304 (empty_multibyte_string): New canonical empty string.
24305 (syms_of_emacs): Don't initialize empty_string.
24306
24307 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24308 string, if appropriate.
24309 (empty_unibyte_string, empty_multibyte_string): New externs.
24310 (empty_string): Remove extern.
24311
24312 * lread.c (syms_of_lread): Use empty_unibyte_string.
24313
243142007-06-07 Jason Rumney <jasonr@gnu.org>
24315
24316 * s/ms-w32.h: Don't define HAVE_TZNAME.
24317
24318 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24319
243202007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24321
24322 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24323
24324 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24325 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24326
24327 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24328 Don't call next handler.
24329 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24330 Remove argument. Install handler to application.
24331 (set_frame_menubar): Don't change deep_p.
24332 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24333 FRAME_OUTER_TO_INNER_DIFF_Y.
24334 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24335 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24336 [HAVE_DIALOGS]: New macros.
24337 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24338 Use them.
24339 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24340
24341 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24342 init_service_handler. All callers changed. Return OSStatus value.
24343
24344 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24345 All callers changed so as not to call SetPortWindowPort.
24346 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24347 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24348 mac_draw_string_common.
24349 (mac_draw_image_string_qd): Likewise.
24350 (mac_draw_string_common): Use them. Add INLINE.
24351 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24352 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24353 GetGlobalMouse.
24354 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24355 and FRAME_OUTER_TO_INNER_DIFF_Y.
24356 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24357 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24358 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24359 repositioning window to mac_handle_window_event.
24360 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24361 saving window location to mac_handle_window_event
24362 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24363 (install_menu_target_item_handler): Remove argument in extern.
24364 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24365 Also accept command events.
24366 (do_keystroke): New function created from XTread_socket.
24367 (init_command_handler): Remove functions.
24368 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24369 and save window location by kEventWindowShowing and kEventWindowHiding
24370 handlers here. Don't call next handler for window state change and
24371 focus events.
24372 (mac_handle_application_event, mac_handle_keyboard_event)
24373 [TARGET_API_MAC_CARBON]: New functions.
24374 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24375 kEventWindowShowing and kEventWindowHiding events. Move installation
24376 of mouse, font, text input and menu target item handlers to
24377 install_application_handler.
24378 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24379 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24380 New function.
24381 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24382 Register it.
24383 (XTread_socket) [TARGET_API_MAC_CARBON]:
24384 Consolidate SendEventToEventTarget calls.
24385 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24386 Move application activation handler to mac_handle_application_event.
24387 Move keyboard handler to mac_handle_keyboard_event.
24388 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24389 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24390 init_command_handler. Call install_application_handler.
24391
24392 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24393 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24394
243952007-06-07 Glenn Morris <rgm@gnu.org>
24396
24397 * emacs.c (main): Use `emacs-copyright' in --version output.
24398
243992007-06-06 Chong Yidong <cyd@stupidchicken.com>
24400
24401 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24402
244032007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24404
24405 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24406
24407 * macgui.h: Replace WindowPtr with WindowRef.
24408
24409 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24410 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24411 Replace ControlHandle with ControlRef.
24412 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24413
24414 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24415 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24416 Replace ControlHandle with ControlRef.
24417 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24418 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24419
24420 * macterm.h (struct scroll_bar): Rename member control_handle_low
24421 and control_handle_high to control_ref_low and control_ref_high.
24422 All uses changed.
24423 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24424 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24425 respectively. All uses changed.
24426 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24427 (install_window_handler, remove_window_handler): Replace WindowPtr
24428 with WindowRef in externs.
24429
244302007-06-05 Juanma Barranquero <lekktu@gmail.com>
24431
24432 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24433
244342007-06-03 Nick Roberts <nickrob@snap.net.nz>
24435
24436 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24437
24438 * frame.c (Fmouse_position, Fmouse_pixel_position):
24439 Condition on HAVE_GPM too.
24440
24441 * term.c (term_mouse_highlight): Remove unused variables.
24442 (Fterm_open_connection): Set gpm_zerobased to 1.
24443 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24444 Use zero based co-ordinates.
24445 (handle_one_term_event): Report a drag as mouse movement too.
24446
24447 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24448
244492007-06-03 Chong Yidong <cyd@stupidchicken.com>
24450
24451 * image.c (search_image_cache): New function. Require background
24452 color match if background color is unspecified in the image spec.
24453 (uncache_image, lookup_image): Use it.
24454
244552007-06-01 Juanma Barranquero <lekktu@gmail.com>
24456
24457 * window.c (Fshrink_window): Reflow docstring.
24458
244592007-06-02 Chong Yidong <cyd@stupidchicken.com>
24460
24461 * Version 22.1 released.
24462
244632007-06-01 Richard Stallman <rms@gnu.org>
24464
24465 * xfns.c (x_encode_text): Add GCPRO.
24466
244672007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24468
24469 * xfns.c (x_set_name_internal): Save encoded name before
24470 x_encode_text in case string data is relocated.
24471
244722007-05-31 Richard Stallman <rms@gnu.org>
24473
24474 * buffer.c (syms_of_buffer): Doc fix.
24475
244762007-05-30 Nick Roberts <nickrob@snap.net.nz>
24477
24478 * sysdep.c (init_sys_modes): Add rather than replace with
24479 O_NONBLOCK.
24480
24481 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24482 term_mouse_moveto.
24483
24484 * termhooks.h (term_mouse_moveto): New extern.
24485
24486 * term.c (mouse_face_window): Rename...
24487 (Qmouse_face_window): ...to this.
24488 (term_show_mouse_face, term_clear_mouse_face)
24489 (term_mouse_highlight): Use Qmouse_face_window.
24490 (term_mouse_moveto): New function.
24491 (term_mouse_position): Make it work.
24492 (syms_of_term): Uncomment assignment to mouse_position_hook.
24493 Staticpro Qmouse_face_window.
24494
244952007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24496
24497 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24498 around current_column call.
24499
245002007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24501
24502 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24503 * xdisp.c (next_element_from_buffer):
24504 * window.c (delete_window):
24505 * term.c (term_mouse_highlight):
24506 * msdos.c (getdefdir):
24507 * macterm.c (mac_create_bitmap_from_bitmap_data)
24508 (init_font_name_table):
24509 * fns.c (Fsxhash):
24510 * data.c (Fmake_local_variable):
24511 * ccl.c (ccl_driver): Likewise.
24512
245132007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24514
24515 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24516 Call mac_wakeup_from_rne on window size change.
24517
245182007-05-25 Chong Yidong <cyd@stupidchicken.com>
24519
24520 * image.c (uncache_image): Fix typo.
24521
245222007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24523
24524 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24525
245262007-05-22 Richard Stallman <rms@gnu.org>
24527
24528 * xterm.c (x_connection_closed): Remove NO_RETURN.
24529
245302007-05-22 Martin Rudalics <rudalics@gmx.at>
24531
24532 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24533
245342007-05-21 Chong Yidong <cyd@stupidchicken.com>
24535
24536 * image.c (uncache_image): New function.
24537 (Fimage_refresh): New function.
24538
245392007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24540
24541 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24542
245432007-05-20 Nick Roberts <nickrob@snap.net.nz>
24544
24545 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24546 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24547
245482007-05-20 Nick Roberts <nickrob@snap.net.nz>
24549
24550 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24551 conditional on [HAVE_GPM_H].
24552
245532007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24554
24555 * syntax.c (skip_chars): Update syntax-table only after we checked that
24556 the new location is valid.
24557
245582007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24559
24560 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24561 mac_get_window_bounds.
24562
245632007-05-20 Nick Roberts <nickrob@snap.net.nz>
24564
24565 * Makefile.in (LIBGPM): Allow it to be set from configure.
24566 If set then link Emacs with it.
24567
24568 * config.in: Regenerate.
24569
24570 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24571 New externs.
24572
24573 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24574 Include gpm.h.
24575 (handle_one_term_event, term_gpm): New externs.
24576
24577 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24578 and allow it to be interrupted by SIGIO.
24579
24580 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24581 (wait_reading_process_output): Wait on gpm_fd too.
24582 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24583 (add_gpm_wait_descriptor_called_flag): New variable.
24584 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24585
24586 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24587 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24588 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24589 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24590 (make_lispy_event): Add case GPM_CLICK_EVENT.
24591 (read_avail_input): Handle mouse input.
24592
24593 * term.c (write_glyphs_with_face): New function.
24594 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24595 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24596 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24597 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24598 (last_mouse_x, last_mouse_y): New variables.
24599 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24600 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24601 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24602 (Fterm_close_connection): New functions.
24603 (term_init): Initialise mouse_face_window.
24604
246052007-05-19 Chong Yidong <cyd@stupidchicken.com>
24606
24607 * xdisp.c (redisplay_window): If first window line is a
24608 continuation line, recompute the new window start instead of
24609 recentering.
24610
246112007-05-18 Glenn Morris <rgm@gnu.org>
24612
24613 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24614 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24615
246162007-05-17 Glenn Morris <rgm@gnu.org>
24617
24618 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24619
246202007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24621
24622 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24623 dead key repeat and up events.
24624
246252007-05-14 Chong Yidong <cyd@stupidchicken.com>
24626
24627 * image.c (pbm_load): Check image size for monochrome pbm.
24628
246292007-05-13 Chong Yidong <cyd@stupidchicken.com>
24630
24631 * xterm.c (XTread_socket): Revert last change.
24632
246332007-05-12 Chong Yidong <cyd@stupidchicken.com>
24634
24635 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24636
24637 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24638
246392007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24640
24641 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24642 mixup (YAILOM).
24643
246442007-05-07 Andreas Schwab <schwab@suse.de>
24645
24646 * keymap.c (Flookup_key): Fix typo in last change.
24647
246482007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24649
24650 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24651 mapping for unibyte strings.
24652
246532007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24654
24655 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24656 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24657
246582007-04-29 Richard Stallman <rms@gnu.org>
24659
24660 * insdel.c (replace_range): For undo, record insertion first.
24661
246622007-04-29 Andreas Schwab <schwab@suse.de>
24663
24664 * lisp.h (VECSIZE): Use OFFSETOF.
24665
246662007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24667
24668 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24669 disabled lines.
24670
246712007-04-28 Richard Stallman <rms@gnu.org>
24672
24673 * lread.c (read_escape): In a string, \s is always space.
24674
246752007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24676
24677 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24678
24679 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24680 submenu for menu bar items.
24681
24682See ChangeLog.10 for earlier changes.
24683
24684;; Local Variables:
24685;; coding: utf-8
24686;; add-log-time-zone-rule: t
aac0c6e3
MR
24687;; End:
24688
e3eb1dae 24689 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24690
24691 This file is part of GNU Emacs.
24692
24693 GNU Emacs is free software: you can redistribute it and/or modify
24694 it under the terms of the GNU General Public License as published by
24695 the Free Software Foundation, either version 3 of the License, or
24696 (at your option) any later version.
24697
24698 GNU Emacs is distributed in the hope that it will be useful,
24699 but WITHOUT ANY WARRANTY; without even the implied warranty of
24700 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24701 GNU General Public License for more details.
24702
24703 You should have received a copy of the GNU General Public License
24704 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24705
24706;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40