If kbd_buffer is becoming full, stop reading until it drains (Bug#6571).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
cb768704
J
12010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2
3 * process.c (kbd_is_on_hold): New variable.
4 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p): New
5 functions.
6 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7 select on empty input mask.
8 (init_process): Initialize kbd_is_on_hold to 0.
9
10 * process.h (hold_keyboard_input, unhold_keyboard_input)
11 (kbd_on_hold_p): Declare.
12
13 * keyboard.c (input_available_signal): Declare.
14 (kbd_buffer_nr_stored): New function.
15 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
16 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
17 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
18 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
19 (tty_read_avail_input): If input is on hold, return.
20 Don't read more that free slots in kbd_buffer (Bug#6571).
21
3a8ce822
EZ
222010-07-07 Eli Zaretskii <eliz@gnu.org>
23
24 * msdos.h:
25 * msdos.c:
26 * dosfns.c:
27 * w16select.c: Convert function definitions to ANSI C.
28
29 * msdos.h (ctrl_break_func, install_ctrl_break_check): Remove
30 unused prototypes.
31
cf84bb53
JB
322010-07-07 Juanma Barranquero <lekktu@gmail.com>
33
34 * coding.c, sysdep.c: Convert some more functions to standard C.
35
1a4990fb
JB
362010-07-07 Juanma Barranquero <lekktu@gmail.com>
37
38 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
39 (encode_coding_object): Use SPECPDL_INDEX.
40 (syms_of_coding): Use DOS_NT.
41
c0f2f16b
DN
422010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
43
48fb6855
DN
44 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
45
c0f2f16b
DN
46 Make the function member of Lisp_Subr use standard C prototypes.
47 * lisp.h (struct Lisp_Subr): Use a union for the function member.
48 (DECL_ALIGN): Add a cast for the function.
49 * eval.c (Feval, Ffuncall): Use the proper type for each type
50 function call.
51
67aecef9
CY
522010-07-06 Chong Yidong <cyd@stupidchicken.com>
53
54 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
55 fringe face id, so face-remapping-alist works (Bug#6091).
56
b56ceb92
JB
572010-07-06 Juanma Barranquero <lekktu@gmail.com>
58
59 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
60 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
61 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
62
7af07b96
AS
632010-07-06 Andreas Schwab <schwab@linux-m68k.org>
64
65 * xterm.c (x_get_keysym_name): Change type of parameter to int.
66 * lisp.h: Declare x_get_keysym_name.
67 * keyboard.c (modify_event_symbol): Don't declare
68 x_get_keysym_name here.
69
69e24e34
DN
702010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
71
72 * ecrt0.c: Revert conversion to standard C.
73
d3da34e0 742010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
75
76 * vm-limit.c (memory_warnings):
77 * keyboard.c (modify_event_symbol):
78 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
79 (round2, emacs_rint):
80 * process.c (send_process, old_sigpipe): Convert function
81 definitions and declarations to standard C.
82
832010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
84
85 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
86 * xdisp.c: Convert function definitions to standard C.
87
88 * cm.c (cmputc): Arg C is now int, not char.
89 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
90
00be444c
J
912010-07-05 James Cloos <cloos@jhcloos.com>
92
93 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
94
95 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
96 _NET_WM_ICON_NAME atoms.
97
98 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
99 and _NET_WM_ICON_NAME properties, too, matching what is
100 done in the Gtk+ case.
101
e4c8d29a
J
1022010-07-05 Jan Djärv <jan.h.d@swipnet.se>
103
ff919460
J
104 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
105
e4c8d29a
J
106 * xsmfns.c (SSDATA): New macro.
107 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
108 passed to strlen/strcpy/strcat.
109 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
110 7:th arg to XChangeProperty to (unsigned char *)
111
112 * xsettings.c (something_changedCB, parse_settings)
113 (apply_xft_settings): Reformat prototype.
114 (something_changedCB, init_gconf): Remove unused variable i.
115 (read_settings): Remove unused variable long_len.
116
117 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
118 (xg_get_image_for_pixmap, create_dialog)
119 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
120 (menuitem_highlight_callback, make_menu_item)
121 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
122 (xg_create_scroll_bar, xg_update_scrollbar_pos)
123 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
124 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
125 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
126 (xg_tool_bar_item_expose_callback): Reformat prototype.
127 (xg_update_menubar): GList *group => GSList *group.
128 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
129 before use.
130 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
131 to GTK_IMAGE (wimage).
132
dd4c5104
DN
1332010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
134
898b4c5c
DN
135 * atimer.c: Use "" instead of <> for local includes for
136 consistency with the rest of the code.
137
dd4c5104
DN
138 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
139 * xrdb.c (get_system_name):
140 * window.c (shrink_windows):
141 * syntax.c (forw_comment):
142 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
143 (ins_del_costs):
144 * mem-limits.h (start_of_data):
145 * lread.c (readevalloop):
146 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
147 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
148 * frame.c (x_get_focus_frame):
149 * floatfns.c (fmod_float):
150 * fileio.c (choose_write_coding_system):
151 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
152 (malloc_initialize_hook, sort_args, synchronize_locale):
153 * doprnt.c (doprnt):
154 * dired.c (compile_pattern):
155 * data.c (fmod_float):
156 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
157 (map_char_table_for_charset):
158 * charset.c (define_charset_internal):
159 * alloc.c (Fgarbage_collect): Convert declarations or definitions
160 to standard C.
161
9a39b306 1622010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 163 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
164
165 * lread.c (read1): Fix up last change to not mess up `c'.
166
e6cb2cbb
JB
1672010-07-04 Juanma Barranquero <lekktu@gmail.com>
168
169 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
170
438105ed
JB
1712010-07-04 Juanma Barranquero <lekktu@gmail.com>
172
173 Fix prototypes.
174
e5447b22 175 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 176 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
177 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
178 arg, as required by internal_condition_case_1.
dcc7404b 179 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
180 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
181 (analyse_first): Fix "const const".
e5447b22 182 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 183 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 184 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 185
971de7fb
DN
1862010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
187
188 * alloc.c: Convert function definitions to standard C.
189 * atimer.c:
190 * bidi.c:
191 * bytecode.c:
192 * callint.c:
193 * callproc.c:
194 * casefiddle.c:
195 * casetab.c:
196 * category.c:
197 * ccl.c:
198 * character.c:
199 * charset.c:
200 * chartab.c:
201 * cmds.c:
202 * coding.c:
203 * composite.c:
204 * data.c:
205 * dbusbind.c:
206 * dired.c:
207 * dispnew.c:
208 * doc.c:
209 * doprnt.c:
210 * ecrt0.c:
211 * editfns.c:
212 * fileio.c:
213 * filelock.c:
214 * filemode.c:
215 * fns.c:
216 * font.c:
217 * fontset.c:
218 * frame.c:
219 * fringe.c:
220 * ftfont.c:
221 * ftxfont.c:
222 * gtkutil.c:
223 * indent.c:
224 * insdel.c:
225 * intervals.c:
226 * keymap.c:
227 * lread.c:
228 * macros.c:
229 * marker.c:
230 * md5.c:
231 * menu.c:
232 * minibuf.c:
233 * prefix-args.c:
234 * print.c:
235 * ralloc.c:
236 * regex.c:
237 * region-cache.c:
238 * scroll.c:
239 * search.c:
240 * sound.c:
241 * strftime.c:
242 * syntax.c:
243 * sysdep.c:
244 * termcap.c:
245 * terminal.c:
246 * terminfo.c:
247 * textprop.c:
248 * tparam.c:
249 * undo.c:
250 * unexelf.c:
251 * window.c:
252 * xfaces.c:
253 * xfns.c:
254 * xfont.c:
255 * xftfont.c:
256 * xgselect.c:
257 * xmenu.c:
258 * xrdb.c:
259 * xselect.c:
260 * xsettings.c:
261 * xsmfns.c:
262 * xterm.c: Likewise.
263
ae492bec
EZ
2642010-07-03 Eli Zaretskii <eliz@gnu.org>
265
76ea4cc9
EZ
266 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
267 frames other than the initial one. Fix reversal of colors when
268 `reverse' is specified in the frame parameters. Call
269 update_face_from_frame_parameter instead of
270 internal-set-lisp-face-attribute. Initialize screen colors from
271 initial_screen_colors[] when f->default_face_done_p is zero,
272 instead of depending on being called with default-frame-alist as
273 the alist argument.
274
275 * xfaces.c (update_face_from_frame_parameter): Move out of
276 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
277 with HAVE_WINDOW_SYSTEM.
278
1e6255ae
EZ
279 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
280 to menu-bar-mode, if not set in the frame parameters or in
281 default-frame-alist.
282
ae492bec
EZ
283 * w32console.c (sys_tputs): Adjust argument list to prototype in
284 term.c.
285
3a35a84c
JB
2862010-07-03 Juanma Barranquero <lekktu@gmail.com>
287
288 * lisp.h (memory_warnings): Fix prototype.
289
290 * cm.h (evalcost): Fix prototype.
291
292 * cm.c (evalcost): Fix arg type.
293
c532d349
DN
2942010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
295
296 * term.c (term_clear_mouse_face, Fidentity):
297 * syssignal.h (signal_handler_t):
298 * lisp.h (memory_warnings):
299 * coding.h (preferred_coding_system):
300 * cm.h (evalcost):
301 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
302
c0b36d46
EZ
3032010-07-02 Eli Zaretskii <eliz@gnu.org>
304
305 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
306 from prototypes.
307
308 * msdos.h (load_pixmap): Don't define away.
309
383e0970
J
3102010-07-02 Jan Djärv <jan.h.d@swipnet.se>
311
f57e2426
J
312 * lisp.h:
313 * atimer.h: Remove define for P_.
314
315 * alloc.c: Remove __P and P_ from .c and .m files.
316 * atimer.c:
317 * buffer.c:
318 * callint.c:
319 * category.c:
320 * charset.c:
321 * chartab.c:
322 * cm.c:
323 * coding.c:
324 * composite.c:
325 * data.c:
326 * dired.c:
327 * dispnew.c:
328 * doc.c:
329 * editfns.c:
330 * emacs.c:
331 * eval.c:
332 * fileio.c:
333 * filelock.c:
334 * fns.c:
335 * font.c:
336 * fontset.c:
337 * frame.c:
338 * ftfont.c:
339 * ftxfont.c:
340 * gmalloc.c:
341 * gtkutil.c:
342 * image.c:
343 * indent.c:
344 * intervals.c:
345 * keyboard.c:
346 * keymap.c:
347 * lread.c:
348 * marker.c:
349 * menu.c:
350 * minibuf.c:
351 * print.c:
352 * process.c:
353 * scroll.c:
354 * search.c:
355 * sound.c:
356 * strftime.c:
357 * syntax.c:
358 * sysdep.c:
359 * term.c:
360 * terminal.c:
361 * textprop.c:
362 * unexalpha.c:
363 * w32console.c:
364 * w32fns.c:
365 * w32font.c:
366 * w32menu.c:
367 * w32term.c:
368 * w32uniscribe.c:
369 * window.c:
370 * xdisp.c:
371 * xfaces.c:
372 * xfns.c:
373 * xfont.c:
374 * xftfont.c:
375 * xmenu.c:
376 * xselect.c:
377 * xterm.c: Likewise.
378
383e0970 379 Remove P_ and __P macros.
f57e2426
J
380 * atimer.h: Remove P_ and __P macros.
381 * buffer.h:
383e0970
J
382 * category.h:
383 * ccl.h:
384 * character.h:
385 * charset.h:
386 * cm.h:
387 * coding.h:
388 * composite.h:
389 * dispextern.h:
390 * disptab.h:
9e892c8d 391 * dosfns.h:
383e0970
J
392 * font.h:
393 * fontset.h:
394 * frame.h:
395 * gtkutil.h:
396 * indent.h:
397 * intervals.h:
398 * keyboard.h:
399 * keymap.h:
400 * lisp.h:
401 * macros.h:
402 * md5.h:
403 * menu.h:
404 * msdos.h:
405 * nsterm.h:
406 * puresize.h:
407 * region-cache.h:
408 * syntax.h:
409 * syssignal.h:
410 * systime.h:
411 * termhooks.h:
9e892c8d 412 * w32font.h:
383e0970
J
413 * w32term.h:
414 * widget.h:
415 * window.h:
416 * xgselect.h:
417 * xsettings.h:
418 * xterm.h: Likewise.
419
98601119
DN
4202010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
421
d9170db5
DN
422 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
423
98601119
DN
424 Cleanup old code.
425 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
426 * syssignal.h: Remove code for Lynx, not supported anymore.
427 * vm-limit.c: Remove unused code the depends on emacs not being
428 defined and NO_LIM_DATA being defined.
429 * mem-limits.h: Remove dead code.
430
1f984e12
J
4312010-07-01 Jan Djärv <jan.h.d@swipnet.se>
432
c49d071a
J
433 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
434
9d5405ec
J
435 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
436 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
437
7a18115b
J
438 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
439 parameters, they are already absolute.
440
581a8100
J
441 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
442 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
443
444 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
445
446 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
447 FRAME_TOOLBAR_HEIGHT.
448
1f984e12
J
449 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
450 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
451
c1ef4455
CY
4522010-06-30 Chong Yidong <cyd@stupidchicken.com>
453
454 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
455 check default-frame-alist.
456
ce8f5a9a
AS
4572010-06-30 Andreas Schwab <schwab@linux-m68k.org>
458
459 * process.c (create_process): Avoid using invalid file descriptors.
460
461 * callproc.c (child_setup): Avoid closing a file descriptor twice.
462
bf935339
J
4632010-06-30 Jan Djärv <jan.h.d@swipnet.se>
464
465 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
466 Improve documentation. Return font regardless of use_system_font.
467 (syms_of_xsettings): Improve documentation for font-use-system-font.
468
769e9d47
KH
4692009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
470
471 * xftfont.c (xftfont_open): Check font width one by one also when
472 spacing is dual.
473
474 * ftfont.c (ftfont_open): Ditto.
475
6259c2ec
GM
4762010-06-30 Glenn Morris <rgm@gnu.org>
477
a46007e9
GM
478 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
479
6259c2ec
GM
480 * Makefile.in (CANNOT_DUMP): Update for configure name change.
481
482 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
483 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
484 * s/darwin.h (SYSTEM_MALLOC):
485 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
486
5d1d3d04
J
4872010-06-29 Jan Djärv <jan.h.d@swipnet.se>
488
489 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
490 (ns_get_screen): Don't assign integer to f.
491 (Fx_display_color_cells): Declarations before statements.
492
e547b051
J
4932010-06-28 Jan Djärv <jan.h.d@swipnet.se>
494
5fc8e5bc
J
495 * xfns.c (x_default_font_parameter): Remove got_from_system
496 (Bug#6526).
497
e547b051
J
498 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
499 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
500 defines based on what configure finds.
501
502 * xterm.c (XTflash): Use gtk_widget_get_window.
503 (xg_scroll_callback): Use gtk_adjustment_get_upper and
504 gtk_adjustment_get_page_size.
505 (handle_one_xevent): Use gtk_widget_get_mapped.
506 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
507 messages.
508
509 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
510
511 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
512 HAVE_GTK_FILE_SELECTION_NEW.
513
514 * gtkutil.c (xg_display_open, xg_display_close): Remove
515 HAVE_GTK_MULTIDISPLAY, it is always defined.
516 (xg_display_open): Return type is void.
517 (gtk_widget_set_has_window)
518 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
519 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
520 (gtk_adjustment_set_page_increment)
521 (gtk_adjustment_get_step_increment): #define these if not found
522 by configure.
523 (remove_submenu): New define based on Gtk+ version.
524 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
525 gtk_widget_get_window.
526 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
527 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
528 (create_dialog): Use gtk_dialog_get_action_area and
529 gtk_dialog_get_content_area.
530 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
531 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
532 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
533 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
534 g_object_ref and g_object_unref.
535 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
536 gtk_widget_get_sensitive.
537 (xg_update_submenu): Use remove_submenu.
538 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
539 properties instead to get old x and y position.
540 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
541 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 542 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
543 (xg_get_tool_bar_widgets): New function.
544 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
545 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
546 (toolbar_set_orientation): New #define based on if configure
547 finds gtk_orientable_set_orientation.
548 (xg_create_tool_bar): Call toolbar_set_orientation.
549 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
550 instead of gtk_box_pack_start_defaults.
551
b9229673
CY
5522010-06-28 Chong Yidong <cyd@stupidchicken.com>
553
554 * cmds.c (Fdelete_backward_char): Move into Lisp.
555
bbc803b0
DN
5562010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
557
558 * s/freebsd.h (BSD4_2): Remove redundant definition.
559 bsd-common.h defines it already.
560
6431f2e6
CY
5612010-06-27 Chong Yidong <cyd@stupidchicken.com>
562
563 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
564 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
565 tool-bar-mode, which are now set using these X resources at
566 startup, to determine the defaults (Bug#2249).
567
568 * w32fns.c (Fx_create_frame):
569 * nsfns.m (Fx_create_frame): Likewise.
570
571 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
572
8c079ebb
JB
5732010-06-24 Juanma Barranquero <lekktu@gmail.com>
574
575 * gtkutil.c (xg_update_scrollbar_pos):
576 Avoid C99 mid-block variable declaration.
577
e9b7ab96
JD
5782010-06-22 Jan Djärv <jan.h.d@swipnet.se>
579
bc869eca
JD
580 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
581
2b7e356a 582 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
583
584 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
585 if height is less than scroll bar min size.
586 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
587
e9b7ab96
JD
588 * xfns.c (x_default_font_parameter): Try to open font from system
589 before using it (bug#6478). Rename got_from_gconf to got_from_system.
590
32a679fd
JD
5912010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
592
593 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
594
70c4cfbb
EZ
5952010-06-20 Eli Zaretskii <eliz@gnu.org>
596
597 * xdisp.c (try_scrolling): When scroll-conservatively is set to
598 most-positive-fixnum, be extra accurate when scrolling window
599 start, to avoid missing the cursor line.
600
ad5a12b5
EZ
6012010-06-19 Eli Zaretskii <eliz@gnu.org>
602
603 * xdisp.c (try_scrolling): Compute the limit for searching point
604 in forward scroll from scroll_max, instead of an arbitrary limit
605 of 10 screen lines. See
606 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
607 and
608 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
609 for details.
610
2a64315a 6112010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
612
613 * editfns.c (Fbyte_to_string): Pacify compiler.
614
288cf4e9
SM
6152010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
616
617 * lread.c (read1): Phase out old-style backquotes a bit more.
618
6e6e5760
EZ
6192010-06-12 Eli Zaretskii <eliz@gnu.org>
620
cbc4fd20
EZ
621 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
622 bidimirror.h.
623
624 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
625
317fbf33
EZ
626 * bidi.c (bidi_initialize): Remove explicit initialization of
627 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 628 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 629 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
630
631 * biditype.h: New file.
632
cbc4fd20
EZ
633 * bidimirror.h: New file.
634
6e6e5760
EZ
635 * window.c (syms_of_window): Doc fix (bug#6409).
636
4176cba2
RF
6372010-06-12 Romain Francoise <romain@orebokech.com>
638
639 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
640 ediff-hook.
641
cb4bfcb5
GM
6422010-06-10 Glenn Morris <rgm@gnu.org>
643
64c60c2f
GM
644 * editfns.c (Fbyte_to_string): Pacify compiler.
645
cb4bfcb5
GM
646 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
647
e454a4a3
SM
6482010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
649
650 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
651 Check `object's type before accessing its guts.
652
c1b1acc2
DN
6532010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
654
655 * s/usg5-4.h: Fix previous change.
656 Suggested by Lawrence Mitchell <wence@gmx.li>
657
657d4c0b
AS
6582010-06-08 Andreas Schwab <schwab@linux-m68k.org>
659
660 * minibuf.c (Fall_completions): Add more checks.
661
9b27fd9f
JB
6622010-06-08 Juanma Barranquero <lekktu@gmail.com>
663
664 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
665
a99ebb40
DN
6662010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
667
d7c5d87d
DN
668 * lread.c (X_OK): Remove, unused.
669
0263a941
DN
670 * dispnew.c: Remove obsolete comment.
671
a99ebb40
DN
672 Remove INCLUDED_FCNTL.
673 * xterm.c (INCLUDED_FCNTL):
674 * callproc.c (INCLUDED_FCNTL):
675 * alloc.c (INCLUDED_FCNTL):
676 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
677 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
678
13b5221f
MR
6792010-06-07 Martin Rudalics <rudalics@gmx.at>
680
681 * window.c (Fselect_window): Move `record_buffer' up to the
682 beginning of this function, so the buffer gets recorded
683 even if the selected window does not change.
684 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
685
5220357f
JB
6862010-06-07 Juanma Barranquero <lekktu@gmail.com>
687
688 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
689 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
690
3085237c
DN
6912010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
692
693 Remove BSTRING related code, all platforms define it.
694 * s/usg5-4.h (BSTRING): Remove definition.
695 * s/template.h (BSTRING):
696 * s/msdos.h (BSTRING):
697 * s/ms-w32.h (BSTRING):
698 * s/hpux10-20.h (BSTRING):
699 * s/gnu-linux.h (BSTRING):
700 * s/darwin.h (BSTRING):
701 * s/cygwin.h (BSTRING):
702 * s/bsd-common.h (BSTRING):
703 * s/aix4-2.h (BSTRING): Likewise.
704 * sysdep.c: Remove code depending on BSTRING not being defined.
705
409f2919
JB
7062010-06-05 Juanma Barranquero <lekktu@gmail.com>
707
708 Remove obsolete macro BASE_LEADING_CODE_P.
709 * character.h (BASE_LEADING_CODE_P): Remove.
710 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
711 * buffer.c (Fset_buffer_multibyte):
712 * indent.c (scan_for_column, compute_motion):
713 * insdel.c (count_combining_before, count_combining_after):
714 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
715
087fc47a
JB
7162010-06-04 Juanma Barranquero <lekktu@gmail.com>
717
718 Turn `directory-sep-char' into a noop.
719
720 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
721 (DIRECTORY_SEP): Define unconditionally.
722
723 * s/ms-w32.h (DIRECTORY_SEP): Remove.
724
725 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
726 call dostounix_filename directly.
727
728 * fileio.c (CORRECT_DIR_SEPS): Remove.
729 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
730 (Fsubstitute_in_file_name): Use dostounix_filename instead.
731 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
732 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
733
734 * w32proc.c (CORRECT_DIR_SEPS): Remove.
735 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
736
0eb7675e
AS
7372010-06-03 Andreas Schwab <schwab@linux-m68k.org>
738
739 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 740 address. (Bug#6346)
0eb7675e 741
78edd3b7
JB
7422010-06-03 Juanma Barranquero <lekktu@gmail.com>
743
744 * ccl.c (Fccl_program_p): Fix typo in docstring.
745
eb697db5
DN
7462010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
747
748 Move UNEXEC definition to autoconf.
749 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
750 * s/sol2-10.h (UNEXEC):
751 * s/irix6-5.h (UNEXEC):
752 * s/hpux10-20.h (UNEXEC):
753 * s/gnu-linux.h (UNEXEC):
754 * s/darwin.h (UNEXEC):
755 * s/cygwin.h (UNEXEC):
756 * s/bsd-common.h (UNEXEC):
757 * s/aix4-2.h (UNEXEC):
758 * m/alpha.h (UNEXEC): Likewise.
759 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
760
aa3830c4
JB
7612010-06-03 Juanma Barranquero <lekktu@gmail.com>
762
763 Remove obsolete pre-unicode2 macros.
764 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
765 * composite.c (composition_reseat_it):
766 * data.c (Faset):
767 * fns.c (Ffillarray):
768 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
769 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
770
d234d13e
JL
7712010-06-03 Juri Linkov <juri@jurta.org>
772
773 * buffer.c (Fother_buffer): Add CHECK_FRAME.
774 (Fswitch_to_buffer): Remove unused variable `err'.
775
0d4bcf4d
GM
7762010-06-03 Glenn Morris <rgm@gnu.org>
777
e23dc1e2
GM
778 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
779
05b09564
GM
780 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
781 now that AH_BOTTOM does it.
782
824e2978
GM
783 * m/hp800.h (HAVE_ALLOCA):
784 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
785
0d4bcf4d
GM
786 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
787 Remove NOT_C_CODE tests, it is always true now.
788
c55d2abf
DN
7892010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
790
08a494a3
DN
791 Fix config.h includes.
792 * xsettings.c:
793 * xgselect.c:
794 * nsterm.m:
795 * nsselect.m:
796 * nsimage.m:
797 * nsfont.m:
798 * nsfns.m:
799 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
800 other files do.
801
75934b1d
DN
802 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
803
9f32a766
DN
804 * s/sol2-6.h: Remove obsolete comments.
805
c55d2abf
DN
806 Remove unnecessary alloca.h includes.
807 * keymap.c: Do not include alloca.h, config.h does that.
808 * sysdep.c: Likewise. Do not define fwrite, not used.
809
06ac62b4
SM
8102010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
811
812 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
813 the HAVE_TERMIO where it belongs (bug#6149).
814
1ab8293c
SM
8152010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
816
817 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
818 of bug#6305).
819
6dcfd253
EZ
8202010-05-30 Eli Zaretskii <eliz@gnu.org>
821
822 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
823 state is always cached (bug#6306).
824
6d26bbb2
EZ
8252010-05-29 Eli Zaretskii <eliz@gnu.org>
826
06fa4a23
EZ
827 Fix cursor motion in bidi-reordered continued lines.
828 * xdisp.c (try_cursor_movement): Backup to non-continuation line
829 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
830 over continuation lines in bidi-reordered buffers. Return
831 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
832 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
833
f5783df3
MA
8342010-05-28 Michael Albinus <michael.albinus@gmx.de>
835
836 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
837
7d56b2dd
KH
8382010-05-28 Kenichi Handa <handa@m17n.org>
839
840 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
841 Don't sheck SPEC if it is nil.
842 (font_list_entities): Call font_delete_unmatched if
b925d231 843 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 844
e58d4ff7
GM
8452010-05-28 Glenn Morris <rgm@gnu.org>
846
847 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
848
f1a5d776
CY
8492010-05-27 Chong Yidong <cyd@stupidchicken.com>
850
851 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
852 whether to trash.
853 (internal_delete_file, Frename_file): Callers changed.
854 (delete_by_moving_to_trash): Doc fix.
855 (Fdelete_directory_internal): Don't move to trash.
856
857 * callproc.c (delete_temp_file):
858 * buffer.c (Fkill_buffer): Callers changed.
859
860 * lisp.h: Update prototype.
861
f44a59e6
CY
8622010-05-27 Chong Yidong <cyd@stupidchicken.com>
863
864 * xdisp.c (redisplay_window): After redisplay, check if point is
865 still valid before setting it (Bug#6177).
866
81ac4f35
GM
8672010-05-27 Glenn Morris <rgm@gnu.org>
868
869 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
870 Convert comments to Makefile format.
871
872 * Makefile.in (bootstrap-clean): No more Makefile.c.
873
ccd89fb3
GM
8742010-05-26 Glenn Morris <rgm@gnu.org>
875
90278cb6
GM
876 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
877 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
878
ccd89fb3
GM
879 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
880 Remove.
881 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
882
b7050583
KH
8832010-05-26 Kenichi Handa <handa@m17n.org>
884
885 * composite.c (composition_compute_stop_pos): Fix condition for
886 backward scanning.
887
e5458003
GM
8882010-05-25 Glenn Morris <rgm@gnu.org>
889
c345fe90
GM
890 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
891 Move before TEMACS_LDFLAGS.
892 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
893 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
894
2e0689ab
GM
895 * Makefile.in (NOT_C_CODE): No longer define.
896 (config.h): No longer include.
897
8009a5e8
GM
898 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
899 variables it may reference.
900
e5458003
GM
901 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
902 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
903
10f72a37
KH
9042010-05-25 Kenichi Handa <handa@m17n.org>
905
906 * dispextern.h (struct composition_it): New members rule_idx and
907 charpos.
908
909 * xdisp.c (set_iterator_to_next): While scanning backward, assume
910 that the character positions of IT point the last character of the
911 current grapheme cluster.
912 (next_element_from_composition): Don't change character positions
913 of IT.
914 (append_composite_glyph): Set glyph->charpos to
915 it->cmp_it.charpos.
916
917 * composite.c (autocmp_chars): Change the first argument to RULE,
918 and try composition with RULE only.
919 (composition_compute_stop_pos): Record the index number of the
920 composition rule in CMP_IT->rule_idx.
921 (composition_reseat_it): Call autocmp_chars repeatedly until the
922 correct rule of the composition is found.
923 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
924 is at the last character of the current grapheme cluster when
925 CMP_IT->reversed_p is nonzero.
926
171eda53 9272010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 928
171eda53
SM
929 * editfns.c (Fbyte_to_string): New function.
930
66a9f7f4
SM
9312010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
932
933 * process.c (Fmake_network_process): Set :host to nil if it's not used.
934 Suggested by Masatake YAMATO <yamato@redhat.com>.
935
d8c315d1
EZ
9362010-05-23 Eli Zaretskii <eliz@gnu.org>
937
171eda53 938 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 939
f5b416d2 9402010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
941
942 * s/netbsd.h: If terminfo is found, use it in preference to
943 termcap. (Bug#6190) [Backport from trunk]
944
0416466c
EZ
9452010-05-19 Eli Zaretskii <eliz@gnu.org>
946
11117830 947 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
948
949 * dispextern.h (struct glyph_row): New members minpos and maxpos.
950 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
951 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
952 and maxpos members instead of start.pos and end.pos, respectively.
953
954 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
955 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
956 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
957 (try_window_reusing_current_matrix, try_window_id):
958 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
959 (init_from_display_pos, init_iterator): Use EMACS_INT for
960 character and byte positions.
66a9f7f4 961 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
962 arguments for minimum and maximum buffer positions seen by
963 display_line for this row. Don't use iterator to find the
964 position following the maximum one; instead, increment the
11117830
EZ
965 position found by display_line directly. Fix logic; eol_pos
966 should be tested before the rest. Handle the case of characters
967 delivered from display vector (bug#6036). Fix tests related to
968 it->method. Handle the truncated_on_right_p rows.
969 (RECORD_MAX_MIN_POS): New macro.
970 (display_line): Use it to record the minimum and maximum buffer
971 positions for glyphs in the row being assembled. Record the
972 position of the newline that terminates the line. If word wrap is
973 in effect, restore minimum and maximum positions seen up to the
974 wrap point, when iterator returns to it.
975 (try_window_reusing_current_matrix): Give up if in bidi-reordered
976 row and cursor not already at point. Restore original pre-bidi
977 code for unidirectional buffers.
d36fe237
EZ
978
979 * dispnew.c (increment_row_positions, check_matrix_invariants):
980 Increment and check row->start.pos and row->end.pos, in addition
981 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
982
11117830
EZ
983 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
984 Display truncated_on_left_p and truncated_on_right_p flags.
985 Formatting fixes.
986 (pmtxrows): Display the ordinal number of each row. Don't display
987 rows beyond the last one.
988
989 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
990 it is not copied by bidi_copy_it.
991
6e83d800
EZ
9922010-05-22 Eli Zaretskii <eliz@gnu.org>
993
994 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
995 (Bug#6237)
996
110683ad
CY
9972010-05-22 Chong Yidong <cyd@stupidchicken.com>
998
999 * image.c (Fimage_flush): Rename from image-refresh.
1000
98fe5161
CY
10012010-05-21 Chong Yidong <cyd@stupidchicken.com>
1002
1003 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
1004 just one window.
1005
1006 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
1007 (clear_image_cache): If the number of cached images is unusually
1008 large, decrease the cache eviction delay (Bug#6230).
1009
e8752c66
GM
10102010-05-21 Glenn Morris <rgm@gnu.org>
1011
66dbf213
GM
1012 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
1013 Move these rules to ns.mk.
1014 * ns.mk: New file.
1015
04384b2d
GM
1016 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
1017
e8752c66
GM
1018 * Makefile.in (CANNOT_DUMP): New, set by configure.
1019 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
1020
2e2bbddb
JL
10212010-05-20 Juri Linkov <juri@jurta.org>
1022
1023 * fileio.c (Fdelete_file): Change interative spec to use
1024 `read-file-name' like in `find-file-read-args' where the default
1025 value is `default-directory' instead of `buffer-file-name'.
1026 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
1027
31c4aaf6
KR
10282010-05-20 Kevin Ryde <user42@zip.com.au>
1029
1030 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
1031 (Voverriding_terminal_local_map, Vsystem_key_alist)
1032 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
1033
9d5cf9b6
GM
10342010-05-20 Glenn Morris <rgm@gnu.org>
1035
1036 * Makefile.in (DEPDIR): New constant.
1037 (DEPFLAGS): Set with configure, not cpp.
1038 (MKDEPDIR): New, set by configure.
1039 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
1040 (clean): Use $DEPDIR.
1041 (deps_frag): Include from configure.
1042 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
1043 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
1044
ead6f8f5
EZ
1045 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
1046 reallocation of the cache. (Bug#6210)
1047
7f34aec3
GM
10482010-05-19 Glenn Morris <rgm@gnu.org>
1049
d494e8f2
GM
1050 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
1051
c1d0dcfd
GM
1052 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
1053 (GNULIB_VAR): Remove.
1054 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
1055
1056 * m/ibms390x.h (LINKER):
1057 * m/macppc.h (LINKER) [GNU_LINUX]:
1058 * s/aix4-2.h (ORDINARY_LINK):
1059 * s/cygwin.h (LINKER):
1060 * s/darwin.h (ORDINARY_LINK):
1061 * s/gnu.h (ORDINARY_LINK):
1062 * s/netbsd.h (LINKER):
1063 * s/usg5-4.h (ORDINARY_LINK):
1064 Move to configure.
1065
7f34aec3
GM
1066 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
1067
754790b6
CY
10682010-05-18 Chong Yidong <cyd@stupidchicken.com>
1069
1070 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
1071 prevent stack overflow if number of arguments is too large
1072 (Bug#6214).
1073
161e44d1
JB
10742010-05-18 Juanma Barranquero <lekktu@gmail.com>
1075
1076 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1077
be4ff9da
GM
10782010-05-18 Glenn Morris <rgm@gnu.org>
1079
9539dc5d
GM
1080 * s/gnu-linux.h: Combine two conditionals.
1081
1082 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1083 $(POST_ALLOC_OBJ).
1084
40dc6bf4
GM
1085 * Makefile.in (RALLOC_OBJ): New, set by configure.
1086 (rallocobj): Replace with the previous variable.
1087 (otherobj): Use $RALLOC_OBJ.
1088
1089 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1090 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1091
be4ff9da
GM
1092 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1093 (gmallocobj, vmlimitobj): Replace with previous two variables.
1094 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1095
16455a85
GM
10962010-05-17 Glenn Morris <rgm@gnu.org>
1097
1098 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1099 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1100
5fdb7468
GM
11012010-05-16 Glenn Morris <rgm@gnu.org>
1102
7ca1f3f9
GM
1103 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1104
7541dad5
GM
1105 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1106
da53fab9
GM
1107 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1108 trailing "/".
1109
b02a6645
GM
1110 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1111 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1112
8877ca0f
GM
1113 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1114 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1115 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1116 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1117 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1118
5fdb7468
GM
1119 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1120 Remove ${STARTFLAGS}, nothing ever sets it.
1121
95adb4b1
DN
11222010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1123
1124 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1125
676b6304
GM
11262010-05-16 Glenn Morris <rgm@gnu.org>
1127
9beab9ce
GM
1128 * Makefile.in (LIBX_BASE): Always define.
1129
8a95f0e7
GM
1130 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1131
676b6304
GM
1132 * Makefile.in (LIBXT): Always define.
1133
6e546d18
GM
11342010-05-15 Glenn Morris <rgm@gnu.org>
1135
4235ca47 1136 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1137
6e546d18
GM
1138 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1139 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1140
8c5ff6dd
KR
11412010-05-15 Ken Raeburn <raeburn@raeburn.org>
1142
560bb7ae 1143 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1144 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1145
8b4eb796
KR
1146 * emacs.c (main): Initialize initial-environment and
1147 process-environment before generating from env, not after.
1148
8c5ff6dd
KR
1149 Handle --version reasonably in CANNOT_DUMP configuration.
1150 * emacs.c (emacs_version, emacs_copyright): New string variables.
1151 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1152 (syms_of_emacs): Defvar them, and initialize them from the C
1153 string variables.
1154 (main): If initialization hasn't been done, print initial version
1155 info from the C strings, instead of starting an interactive session.
1156
dbd3f723
EZ
11572010-05-15 Eli Zaretskii <eliz@gnu.org>
1158
d20e1419
EZ
1159 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1160 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1161 (bidi_paragraph_init): Remove redundant assertion that we are at
1162 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1163
1164 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1165 (syms_of_xdisp): Defsubr it.
1166
d36fe237
EZ
1167 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1168
dbd3f723
EZ
1169 * Makefile.in: Fix MSDOS-related comments.
1170
02be533b
GM
11712010-05-15 Glenn Morris <rgm@gnu.org>
1172
1a82cca9
GM
1173 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1174 (really-lwlib, really-oldXMenu): Always define.
1175 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1176
3df7b338
GM
1177 * Makefile.in: Simplify cpp conditional.
1178
2b5f541b
GM
1179 * Makefile.in (${ns_appdir}): Simplify using umask.
1180
02be533b
GM
1181 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1182
4e2db1fe
SM
11832010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1184
1185 * eval.c (specbind): Remove left-over duplicate test.
1186 Disallow let-binding frame-local vars. Add comment.
1187
4b292a22
EZ
11882010-05-14 Eli Zaretskii <eliz@gnu.org>
1189
2fe72643 1190 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1191 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1192 (bidi_init_it): Call it.
1193 (bidi_cache_iterator_state): Enlarge the cache if needed.
1194
4e2db1fe 1195 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1196 bidi_get_next_char_visually. All callers changed.
1197
82ebc97b
KH
11982010-05-14 Kenichi Handa <handa@m17n.org>
1199
1200 * dispextern.h (struct composition_it): New member reversed_p.
1201
1202 * composite.c (composition_compute_stop_pos): Search backward if
1203 ENDPOS < CHARPOS.
1204 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1205 Set CMP_IT->reversed_p.
b4b6e17e 1206 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1207
4e2db1fe
SM
1208 * xdisp.c (set_iterator_to_next):
1209 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1210 scanning backward. Call composition_compute_stop_pos if scan
1211 direction is changed.
1212 (next_element_from_buffer): Call composition_compute_stop_pos with
1213 negative ENDPOS if we are scanning backward.
1214 (next_element_from_composition): Pay attention to
1215 IT->cmp_it.reversed_p.
1216
0e5d7800
KH
12172010-05-14 Kenichi Handa <handa@m17n.org>
1218
560bb7ae 1219 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1220
cb027b32
GM
12212010-05-14 Glenn Morris <rgm@gnu.org>
1222
177b0288
GM
1223 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1224
fbc00890
GM
1225 * Makefile.in (mktime, X11, register): Move undefs to configure.
1226
f14d1dfd
GM
1227 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1228 (MSDOS_X_OBJ): New variable.
1229 (MSDOS_SUPPORT_REAL): New constant.
1230 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1231 (obj): Use MSDOS_X_OBJ.
1232 (lisp): Use MSDOS_SUPPORT as a variable.
1233
11842bd8
GM
1234 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1235 (GPM_MOUSE_SUPPORT): Now it's a constant.
1236 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1237 not cpp.
1238
489d31a4 1239 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1240 (ns_appresdir): Remove, unused.
e20f1f07 1241
489d31a4
GM
1242 * Makefile.in (SHELL): Move outside cpp section.
1243
cb027b32
GM
1244 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1245
5a903aa9
GM
12462010-05-13 Glenn Morris <rgm@gnu.org>
1247
3369c79f
GM
1248 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1249 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1250
d5e982a6
GM
1251 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1252 HAVE_WINDOW_SYSTEM must be too.
1253
6192e163
GM
1254 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1255 (lisp): Remove WINNT_SUPPORT.
1256
472c5d6b
GM
1257 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1258 Let configure set these variables (to empty) in this case as well.
1259
0116466b
GM
1260 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1261 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1262
5a903aa9
GM
1263 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1264 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1265 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1266 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1267 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1268 the values output by configure.
5a903aa9
GM
1269 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1270
1a0d7c06
GM
12712010-05-12 Glenn Morris <rgm@gnu.org>
1272
b5457f14
GM
1273 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1274 (LINKER_WAS_SPECIFIED): Remove.
1275
1a0d7c06
GM
1276 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1277 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1278 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1279 * s/cygwin.h (LIB_GCC):
1280 * s/freebsd.h (LIB_GCC):
1281 * s/gnu-linux.h (LIB_GCC):
1282 * s/msdos.h (LIB_GCC):
1283 * s/netbsd.h (LIB_GCC):
1284 Move to configure.
1285
3ffd4615 12862010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1287
1288 * ftfont.c: Fix incorrect parentheses of #if condition for
1289 definining M17N_FLT_USE_NEW_FEATURE.
1290
acddf8ae
GM
12912010-05-11 Glenn Morris <rgm@gnu.org>
1292
1293 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1294 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1295
ae5e04fa
EZ
12962010-05-10 Eli Zaretskii <eliz@gnu.org>
1297
1298 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1299 unibyte buffers. See
1300 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1301
7490175b
GM
13022010-05-10 Glenn Morris <rgm@gnu.org>
1303
97efb629
GM
1304 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1305 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1306 (LIBES): Use LIBS_SYSTEM as a variable.
1307 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1308 * s/aix4-2.h (LIBS_SYSTEM):
1309 * s/freebsd.h (LIBS_SYSTEM):
1310 * s/hpux10-20.h (LIBS_SYSTEM):
1311 * s/sol2-6.h (LIBS_SYSTEM):
1312 * s/unixware.h (LIBS_SYSTEM):
1313 Move to configure.
1314
7490175b
GM
1315 * s/aix4-2.h (MAIL_USE_LOCKF):
1316 * s/bsd-common.h (MAIL_USE_FLOCK):
1317 * s/darwin.h (MAIL_USE_FLOCK):
1318 * s/gnu-linux.h (MAIL_USE_FLOCK):
1319 * s/irix6-5.h (MAIL_USE_FLOCK):
1320 * s/template.h (MAIL_USE_FLOCK):
1321 Move to configure.
1322
0235128c 13232010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1324
1325 * Version 23.2 released.
1326
0235128c 13272010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1328
1329 * composite.c (autocmp_chars): Save point as marker before calling
1330 auto-composition-function (Bug#5984).
1331
1332 * lisp.h (restore_point_unwind): Add prototype.
1333
1334 * fileio.c (restore_point_unwind): Remove static attribute.
1335
0235128c 13362010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1337
1338 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1339 new feature of libotf and m17n-flt.
0235128c
SM
1340 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1341 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1342 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1343 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1344 that OUT is NULL. Use OTF_drive_gsub_with_log and
1345 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1346 OTF_drive_gpos.
1347 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1348 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1349 Setup mflt_enable_new_feature and mflt_try_otf.
1350
4721152c
J
13512010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1352
1353 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1354
1355 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1356 box and toolbar (Bug #6139).
1357 (xg_create_tool_bar): Remove comment (Bug #6139).
1358 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1359 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1360
ee0a16cf
JB
13612010-05-08 Juanma Barranquero <lekktu@gmail.com>
1362
1363 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1364 Update dependencies.
1365
96d79611
EZ
13662010-05-08 Eli Zaretskii <eliz@gnu.org>
1367
1368 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1369 R2L lines.
1370
40c17879
GM
13712010-05-08 Glenn Morris <rgm@gnu.org>
1372
7b42b29f
GM
1373 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1374
40c17879
GM
1375 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1376 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1377 (termcapobj): Replace with TERMCAP_OBJ.
1378 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1379 (LIBES): Use LIBS_TERMCAP as a variable.
1380
1381 * s/freebsd.h (osreldate.h): No longer include, since this file
1382 does not use __FreeBSD_version any more.
1383
1384 * s/aix4-2.h (TERMINFO):
1385 * s/cygwin.h (TERMINFO):
1386 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1387 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1388 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1389 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1390 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1391 * s/irix6-5.h (TERMINFO):
1392 * s/netbsd.h (LIBS_TERMCAP):
1393 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1394 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1395 * s/usg5-4.h (TERMINFO):
1396 Move to configure.
1397
94b612ad
SM
13982010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1399
1400 * eval.c (unbind_to): Don't unbind a local binding into the global
1401 binding when the local binding disappeared. Inversely, don't unbind
1402 a global binding into a newly created local binding.
1403 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1404 can specify the frame to use, when applicable. Adjust callers.
1405
15e12598 14062010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1407 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1408
1409 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1410
f724825e
EZ
14112010-05-07 Eli Zaretskii <eliz@gnu.org>
1412
5cba3209
EZ
1413 * w32fns.c: Include w32.h.
1414 (Fw32_shell_execute): Decode the error message before passing it
1415 to `error'. (Bug#6126)
1416
d16bdfc3
EZ
1417 * msdos.c (dos_set_window_size):
1418 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1419 instead of `XSYMBOL (foo)->value'.
1420
59d93e87
EZ
14212010-05-07 Eli Zaretskii <eliz@gnu.org>
1422
9fdec8bc
EZ
1423 Fix the MS-DOS build, broken by autoconfiscation.
1424
1425 * Makefile.in: Don't use Make-style comments past the "start of
1426 cpp stuff" line.
1427 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1428
1429 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1430 edited directly by msdos/sed1v2.inp).
f724825e 1431
2f86b22b
GM
14322010-05-07 Glenn Morris <rgm@gnu.org>
1433
1434 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1435 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1436 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1437 move out of cpp section.
1438 * s/freebsd.h (LD_SWITCH_SYSTEM):
1439 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1440 * s/netbsd.h (LD_SWITCH_SYSTEM):
1441 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1442
49ebbd65
DN
14432010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1444
1445 Define LIB_STANDARD and START_FILES using autoconf.
1446 * s/usg5-4.h (LIB_STANDARD):
1447 * s/netbsd.h (START_FILES):
1448 * s/irix6-5.h (LIB_STANDARD):
1449 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1450 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1451 * s/freebsd.h (START_FILES):
1452 * s/darwin.h (START_FILES):
1453 * s/cygwin.h (START_FILES):
1454 * s/aix4-2.h (LIB_STANDARD):
1455 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1456 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1457 autoconf, not cpp.
1458
d43c06d6
DN
14592010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1460
28823648
DN
1461 Remove NEED_BSDTTY and NEED_UNISTD_H.
1462 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1463 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1464 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1465 <sys/ptyio.h> and <unistd.h>.
1466
aca00430
DN
1467 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1468
d43c06d6
DN
1469 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1470 * s/gnu.h (START_FILES): Remove empty definition.
1471
3e56b11d
JD
14722010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1473
1474 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1475
e3cf0cde
GM
14762010-05-06 Glenn Morris <rgm@gnu.org>
1477
1478 * Makefile.in (CPP, LN_S): Remove unused variables.
1479
774b9a60
SM
14802010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1481
1482 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1483
4ab92842
LM
14842010-05-05 Lawrence Mitchell <wence@gmx.li>
1485
1486 * m/sparc.h: Fix typo in earlier change.
1487
178f2507
SM
14882010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1489
1490 Misc tweaks.
1491 * eval.c (Fdefvaralias): Remove unintended nested if.
1492 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1493
80f00217 14942010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1495
1496 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1497
ef03a4e6
DN
14982010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1499
58eb6cf0
DN
1500 Remove BSD_PGRPS.
1501 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1502 * s/gnu-linux.h (BSD_PGRPS): Remove.
1503 * term.c (dissociate_if_controlling_tty):
1504 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1505 (init_sys_modes, reset_sys_modes):
1506 * emacs.c (main):
1507 * callproc.c (Fcall_process, child_setup): Remove code depending
1508 on BSD_PGRPS.
1509
ef03a4e6
DN
1510 Remove POSIX_SIGNALS.
1511 * s/usg5-4.h (POSIX_SIGNALS):
1512 * s/netbsd.h (POSIX_SIGNALS):
1513 * s/msdos.h (POSIX_SIGNALS):
1514 * s/ms-w32.h (POSIX_SIGNALS):
1515 * s/hpux11.h (POSIX_SIGNALS):
1516 * s/gnu.h (POSIX_SIGNALS):
1517 * s/gnu-linux.h (POSIX_SIGNALS):
1518 * s/freebsd.h (POSIX_SIGNALS):
1519 * s/darwin.h (POSIX_SIGNALS):
1520 * s/cygwin.h (POSIX_SIGNALS):
1521 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1522 * s/unixware.h:
1523 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1524 * process.c (create_process):
1525 * syssignal.h:
1526 * sysdep.c (wait_for_termination, init_signals):
1527 * process.c (create_process):
1528 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1529 remove all code that assumes the contrary.
1530
49628785
GM
15312010-05-04 Glenn Morris <rgm@gnu.org>
1532
27a2cdfc
GM
1533 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1534 variable.
1535 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1536 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1537 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1538 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1539 LD_SWITCH_SYSTEM_tmp.
1540 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1541 New variables, set by configure.
1542
eb21eab5
GM
1543 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1544 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1545 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1546 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1547 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1548
49628785
GM
1549 * s/aix4-2.h (C_SWITCH_SYSTEM):
1550 * m/alpha.h (C_SWITCH_MACHINE):
1551 Move to configure.in.
1552 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1553 New variables, set by configure.
1554 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1555 $c_switch_machine and $c_switch_system.
1556
7dff330b
DN
15572010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1558
1559 * s/hpux10-20.h (LIB_STANDARD): New definition.
1560 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1561 on it, not used anymore.
1562
53967e09
CY
15632010-05-03 Chong Yidong <cyd@stupidchicken.com>
1564
1565 * eval.c (internal_condition_case_n): Rename from
1566 internal_condition_case_2.
1567 (internal_condition_case_2): New function.
1568
1569 * xdisp.c (safe_call): Use internal_condition_case_n.
1570
1571 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1572 (internal_delete_file, Frename_file): Callers changed.
1573
1574 * buffer.c (Fkill_buffer):
1575 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1576
1577 * lisp.h: Update prototypes.
1578
3dee6fdb
GM
15792010-05-03 Glenn Morris <rgm@gnu.org>
1580
1581 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1582 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1583 (LIBXT): Set with configure, not cpp.
1584 (LIBX): Remove.
1585 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1586
a101e0fb
DN
15872010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1588
1589 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1590 The FreeBSD is not needed, the default works, Solaris version is
1591 not needed, and the remaining case is not supported by configure.
1592
f63d0028
JD
15932010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1594
1595 * xsmfns.c (CHDIR_OPT): New define.
1596 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1597 restarting emacs.
1598
1599 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1600 shut_down_emacs.
1601
1602 * emacs.c (USAGE1): Mention --chdir.
1603 (main): Handle --chdir.
1604 (standard_args): Add --chdir.
1605 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1606 #5552).
1607
e4814a9f
DN
16082010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1609
cd03c74a
DN
1610 Remove LD_SWITCH_MACHINE.
1611 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1612 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1613
c3a398a1
DN
1614 Clean up IRIX code.
1615 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1616 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1617
87e7285c
DN
1618 Clean up AIX code.
1619 * m/ibmrs6000.inp: Remove file, unused.
1620 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1621 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1622 definition ...
1623 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1624
80f00217
JB
1625 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1626 unused.
e4814a9f 1627
59ca28de
EZ
16282010-05-01 Eli Zaretskii <eliz@gnu.org>
1629
197daef4
EZ
1630 Emulate POSIX_SIGNALS on MS-Windows.
1631
1632 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1633 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1634
1635 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1636 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1637 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1638
80f00217
JB
1639 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1640 New stubs.
197daef4 1641
af7c7572
EZ
1642 Miscellaneous fixes of bidi display.
1643
59ca28de
EZ
1644 * xdisp.c (find_row_end): New function, refactored from display_line.
1645 (display_line): Use it.
017ea819
EZ
1646 (extend_face_to_end_of_line): In almost-filled rows, extend only
1647 if the row is R2L and not continued.
166e930d 1648 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1649 Preserve overlay and string info in row->end.
166e930d
EZ
1650 (insert_left_trunc_glyphs): Support addition of left truncation
1651 glyphs to R2L rows.
b47e0dcf 1652 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1653 glyph between adjacent windows. Fix a crash when a display string
1654 is continued to the next line. Don't return zero if cursor was
1655 found by `cursor' property of a display string.
b47e0dcf
EZ
1656 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1657 test for that explicitly.
59ca28de 1658
7acac9f4
GM
16592010-05-01 Glenn Morris <rgm@gnu.org>
1660
1661 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1662 for clarity.
1663 (OTHER_OBJ): Remove.
1664 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1665 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1666
45841e65
KK
16672010-05-01 Karel Klíč <kklic@redhat.com>
1668
1669 * fileio.c (Ffile_selinux_context): Context functions may return null.
1670
afc61943
DN
16712010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1672
80f00217 1673 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1674
5a1bb006
GM
16752010-04-30 Glenn Morris <rgm@gnu.org>
1676
1677 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1678 (OTHER_OBJ): Define as a separate variable, for clarity.
1679
210af043
J
16802010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1681
1682 * xsettings.c: include limits.h and update file comment.
1683
0a7df391
GM
16842010-04-30 Glenn Morris <rgm@gnu.org>
1685
d5096f16
GM
1686 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1687 Set with configure, not cpp.
1688 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1689
7eb1ac33
GM
1690 * Makefile.in (mallocobj): Remove.
1691 (otherobj): Simplify using @OTHER_OBJ@.
1692
517d086b
GM
1693 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1694 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1695 Don't bother making nsgui.h dependency platform-specific.
1696
0a7df391
GM
1697 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1698
d6d23852
SM
16992010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1700
d2630aef
SM
1701 * process.c (read_process_output, exec_sentinel): Don't burp if the
1702 sentinel/filter kills the current buffer (bug#6060).
1703
f9dddf52 1704 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1705 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1706 Remove unused var `args'.
1707 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1708 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1709 * doc.c (store_function_docstring): Use XSETCAR.
1710
f1e3642a
GM
17112010-04-28 Glenn Morris <rgm@gnu.org>
1712
faf535f8
GM
1713 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1714 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1715
c40f9449
GM
1716 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1717
658f86ca
GM
1718 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1719 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1720
bc0b5f61
GM
1721 * Makefile.in (FONT_OBJ): New, set by configure.
1722 (FONT_DRIVERS): Use $FONT_OBJ.
1723
294c50a0
GM
1724 * Makefile.in (LIBXMU): Set with configure, not cpp.
1725 * s/aix4-2.h (LIBXMU):
1726 * s/hpux10-20.h (LIBXMU):
1727 Remove definition, now set in configure.
1728
e6ec4e99
GM
1729 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1730
f1e3642a
GM
1731 * m/amdx86-64.h [i386]: Move this test to configure.in.
1732
c6ea2936
GM
17332010-04-27 Glenn Morris <rgm@gnu.org>
1734
8fdac2c3
GM
1735 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1736 * s/unixware.h (NEED_LIBW): Remove definition.
1737
986fb647
GM
1738 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1739 (TOOLKIT_LIBW): New, set by configure.
1740 (@X_TOOLKIT_TYPE@): No longer define it.
1741
c6ea2936
GM
1742 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1743 (MOTIF_LIBW): Set with configure, not cpp.
1744 * s/aix4-2.h (LIB_MOTIF):
1745 * s/gnu-linux.h (LIB_MOTIF):
1746 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1747
aaa36002
DN
17482010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1749
1750 Reduce CPP usage.
1751 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1752 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1753 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1754 definitions and undefs. Inline definitions in the only user.
1755 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1756
b678dd8b
GM
17572010-04-27 Glenn Morris <rgm@gnu.org>
1758
76cda504
GM
1759 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1760 since the defaults (set by the system file) are fine in most cases.
1761 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1762 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1763 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1764 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1765 Remove definitions, since they are set correctly in s/gnu-linux.h.
1766 * s/freebsd.h (START_FILES, LIB_STANDARD):
1767 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1768 * s/hpux10-20.h (START_FILES):
1769 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1770 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1771
b678dd8b
GM
1772 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1773 (MOTIF_LIBW): Use $LIBXP.
1774 (otherobj): Use $WIDGET_OBJ.
1775
9452ded1
DN
17762010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1777
7e10844c
DN
1778 * Makefile.in (LIBS_MACHINE): Remove, unused.
1779
9452ded1
DN
1780 Use autoconf instead of cpp for LIB_MATH.
1781 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1782 * s/cygwin.h (LIB_MATH): Likewise.
1783 * Makefile.in (LIB_MATH): Do not define with cpp.
1784 (LIBES): Use autoconf for LIB_MATH.
1785
fcebfc6a
KH
17862010-04-26 Kenichi Handa <handa@m17n.org>
1787
1788 * composite.c (Ffind_composition_internal): Fix the return value
1789 for an automatic composition.
1790
39e2ad1b
DN
17912010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1792
1793 Remove all NO_ARG_ARRAY uses.
1794 * fns.c (concat2, concat3, nconc2):
1795 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1796 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1797 * m/xtensa.h (NO_ARG_ARRAY):
1798 * m/template.h (NO_ARG_ARRAY):
1799 * m/sparc.h (NO_ARG_ARRAY):
1800 * m/sh3.h (NO_ARG_ARRAY):
1801 * m/mips.h (NO_ARG_ARRAY):
1802 * m/macppc.h (NO_ARG_ARRAY):
1803 * m/iris4d.h (NO_ARG_ARRAY):
1804 * m/intel386.h (NO_ARG_ARRAY):
1805 * m/ibms390x.h (NO_ARG_ARRAY):
1806 * m/ibms390.h (NO_ARG_ARRAY):
1807 * m/ibmrs6000.h (NO_ARG_ARRAY):
1808 * m/ia64.h (NO_ARG_ARRAY):
1809 * m/hp800.h (NO_ARG_ARRAY):
1810 * m/arm.h (NO_ARG_ARRAY):
1811 * m/amdx86-64.h (NO_ARG_ARRAY):
1812 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1813
adf4f59c
EZ
18142010-04-25 Eli Zaretskii <eliz@gnu.org>
1815
6bdf5d65
EZ
1816 * xdisp.c (display_line): Don't assume 2nd call to
1817 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1818 (iterate_out_of_display_property): New function, body from pop_it.
1819 (pop_it): Use it.
adf4f59c 1820
dfbbda83
GM
18212010-04-24 Glenn Morris <rgm@gnu.org>
1822
1823 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1824 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1825 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1826 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1827
2d4018aa
EZ
18282010-04-24 Eli Zaretskii <eliz@gnu.org>
1829
a49884a6
EZ
1830 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1831 use `get_next_display_element' and `set_iterator_to_next' to
1832 advance to the next character, when looking for the character that
1833 begins the next row.
1834
76db6fcc 1835 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1836 definition of "struct Lisp_Symbol".
1837
70eab5c1
GM
18382010-04-24 Glenn Morris <rgm@gnu.org>
1839
1840 * Makefile.in (CRT_DIR): New variable, set by configure.
1841 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1842 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1843
1ad4cc3d
DN
18442010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1845
e769f484
DN
1846 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1847
4196ff33
DN
1848 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1849
879b0ee4
DN
1850 Remove redundant flags.
1851 * s/freebsd.h (C_SWITCH_SYSTEM):
1852 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1853 * s/netbsd.h (C_SWITCH_SYSTEM):
1854 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1855 of these.
1856
03cbbcb8
DN
1857 Simplify m/intel386.h.
1858 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1859 user: ecrt0.c.
1860 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1861 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1862 the only user: s/unixware.h.
1863 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1864 from m/intel386.h.
1865 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1866 moved here from m/intel386.h.
1867
1ad4cc3d
DN
1868 * m/mips.h: Remove #if 0 code.
1869
8785b888
EZ
18702010-04-23 Eli Zaretskii <eliz@gnu.org>
1871
728588cc
EZ
1872 Fix display of composed characters from L2R scripts in bidi buffers.
1873 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1874 After advancing IT past the composition, resync the bidi iterator
1875 with IT's position. (Bug#5977)
1876
a63f80b4
DN
18772010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1878
1879 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1880 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1881
ff5dec5c
SM
18822010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1883
1884 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1885
8785b888
EZ
18862010-04-23 Eli Zaretskii <eliz@gnu.org>
1887
58ccf243 1888 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1889 * xdisp.c (pop_it): When the stack is popped after displaying
1890 from a string, bidi-iterate to exit from the text portion covered
1891 by the `display' property or overlay. (Bug#5988, bug#5920)
1892
feeb1604
DN
18932010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1894
8e324eb6
DN
1895 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1896 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1897
809fcaba
DN
1898 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1899 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1900
ed710380
DN
1901 Simplify STARTFILES definition.
1902 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1903 relying on Makefile.in to define it.
1904 * s/cygwin.h (START_FILES): Likewise.
1905 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1906
feeb1604
DN
1907 Clean up Solaris code.
1908 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1909 (LIB_MOTIF): Remove, configure takes care of this.
1910 (NOT_USING_MOTIF): Remove, unused.
1911 * xrdb.c: Remove #if 0-ed #include.
1912 (SYSV): Remove conditional for old SysV.
1913 * sysdep.c (closedir): Remove conditional code for Solaris,
1914 Solaris has closedir.
1915
a0d0b563
JD
19162010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1917
1918 * xsettings.c (read_and_apply_settings): Check if current_font is
1919 NULL before strcmp (Bug#6001).
1920
56bae7c7
DN
19212010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1922
1923 Clean up HP-UX files.
1924 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1925 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1926 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1927 * s/hpux10-20.h: ... to the only user, here.
1928
372b7a95
EZ
19292010-04-21 Eli Zaretskii <eliz@gnu.org>
1930
1931 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1932 use buffer-local values of paragraph-start and paragraph-separate.
1933 <paragraph_start_re, paragraph_separate_re>: Rename from
1934 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1935 (Bug#5992)
1936
f904c0f9
JD
19372010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1938
1939 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1940 current_tool_bar_style are new.
1941 (store_config_changed_event): Rename from store_font_changed_event.
1942 (XSETTINGS_TOOL_BAR_STYLE): New define.
1943 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1944 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1945 HAVE_XFT.
1946 (something_changedCB): store_font_changed_event is now
1947 store_config_changed_event
1948 (parse_settings): Rename from parse_xft_settings. Read
1949 non-xft xsettings outside #ifdef HAVE_XFT.
1950 (read_settings): Renamed from read_xft_settings.
1951 (apply_xft_settings): Take current settings as parameter. Do not
1952 call read_(xft)_settings.
1953 (read_and_apply_settings): New function.
1954 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1955 read_and_apply_settings if there are settings to be read.
1956 (init_xsettings): Renamed from init_xfd_settings.
1957 Call read_and_apply_settings unconditionally.
1958 (xsettings_initialize): Call init_xsettings.
1959 (Ftool_bar_get_system_style): New function.
1960 (syms_of_xsettings): Define Qmonospace_font_name and
1961 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1962 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1963 dynamic-setting.
31a01b90 1964 Move misplaced HAVE_GCONF
f904c0f9
JD
1965
1966 * xsettings.h (Ftool_bar_get_system_style): Declare.
1967
1968 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1969 Qtext, Qboth, Qboth_horiz are new.
1970 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1971 Vtool_bar_style, tool_bar_max_label_size.
1972
1973 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1974
1975 * keyboard.c: QClabel is new.
1976 (parse_tool_bar_item): Take out QClabel from tool bar items.
1977 Try to construct a label if ther is no QClabel.
1978 (syms_of_keyboard): Intern :label as QClabel.
1979
1980 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1981 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1982 New.
1983
1984 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1985 dynamic-setting.el.
1986
1987 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1988 (xg_make_tool_item, xg_show_toolbar_item): New function.
1989 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1990 Call xg_make_tool_item to make a tool bar item.
1991 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1992
1993 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1994 into account for toolbars.
1995
c632dfda
JD
19962010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1997
1998 * data.c (make_blv): Declarations before code (Bug#5993).
1999
10efe302
GM
20002010-04-21 Glenn Morris <rgm@gnu.org>
2001
2002 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
2003 Define using autoconf, not cpp.
2004 (LIBXSM): New variable, set by autoconf.
2005 (LIBXT): Use $LIBXSM.
2006
4285ac5a
DN
20072010-04-21 Dan Nicolaescu <local_user@dannlt>
2008
3ec759e7
DN
2009 Remove NOMULTIPLEJOBS, unused.
2010 * s/template.h (NOMULTIPLEJOBS):
2011 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
2012
4285ac5a
DN
2013 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
2014 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
2015 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
2016 detects -znocombreloc and passes it to the linker
2017 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
2018
2807228d
GM
20192010-04-21 Glenn Morris <rgm@gnu.org>
2020
2021 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
2022
574c05e2
KK
20232010-04-21 Karel Klíč <kklic@redhat.com>
2024
2025 * Makefile.in (LIBSELINUX_LIBS): New.
2026 (LIBES): Add $LIBSELINUX_LIBS.
2027 * eval.c, lisp.h (call7): New function.
2028 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
2029 (Ffile_selinux_context, Fset_file_selinux_context):
2030 New functions.
2031 (Fcopy_file): New parameter preserve-selinux-context.
2032 (Frename_file): Preserve selinux context when renaming by copy-file.
2033
91eac4bb 20342010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 2035 Eli Zaretskii <eliz@gnu.org>
91eac4bb 2036
50426a04
JB
2037 Don't depend on cm.c or termcap.c on Windows, use stubs.
2038 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
2039 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
2040 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
2041 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
2042 (sys_tputs, sys_tgetstr): New stubs.
2043 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
2044 (tputs, tgetstr): New; define to sys_*.
91eac4bb 2045
938efb77
JB
20462010-04-20 Juanma Barranquero <lekktu@gmail.com>
2047
2048 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
2049
b4bf28b7
SM
20502010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2051
8b1e1112
SM
2052 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
2053 Just signal a warning rather than an error when inside a let.
2054 (Fmake_variable_frame_local): Add the same test.
2055
933ac235
SM
2056 * font.c (syms_of_font): Make the style table vars read-only.
2057
b4bf28b7
SM
2058 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
2059 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
2060
2061 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
2062
93d68d0c
EZ
20632010-04-20 Eli Zaretskii <eliz@gnu.org>
2064
2065 Fix R2L paragraph display on TTY.
2066
2067 * xdisp.c (unproduce_glyphs): New function.
2068 (display_line): Use it when produced glyphs are discarded from R2L
2069 glyph rows.
2070 (append_composite_glyph): In R2L rows, prepend the glyph rather
2071 than appending it.
2072
2073 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2074 rather than append it. Set up the resolved_level and bidi_type
2075 attributes of the appended glyph.
283ccc18
EZ
2076 (produce_special_glyphs): Mirror the backslash continuation
2077 character in R2L lines.
93d68d0c 2078
283ccc18 2079 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2080
283ccc18
EZ
2081 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2082 append_stretch_glyph.
2083 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2084 off-by-one error in computing x at end of text in the row.
2085 (append_stretch_glyph): In reversed row, prepend the glyph rather
2086 than append it. Set resolved_level and bidi_type of the glyph.
2087 (extend_face_to_end_of_line): If the row is reversed, prepend a
2088 stretch glyph whose width is such that the rightmost glyph will be
2089 drawn at the right margin of the window. Fix off-by-one error on
2090 TTY frames in testing whether a line needs face extension. Fix
2091 face extension at ZV. If this is the last glyph row, use
2092 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2093 region face.
2094 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2095 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2096 row->continuation_lines_width.
283ccc18
EZ
2097 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2098 are at ZV. Fixes a crash when reseated to ZV by
2099 try_window_reusing_current_matrix.
45903529
EZ
2100 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2101 which happens with R2L glyph rows. Fixes a crash when inserting a
2102 character at end of an R2L line.
283ccc18
EZ
2103 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2104 treat them as having zero-width characters. Improve comments.
2105 Don't reverse pos_before and pos_after for reversed glyph rows.
2106 Set cursor.x to negative value when the cursor might be on the
2107 left fringe.
2108 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2109 left fringe, not the right one.
f951a506
EZ
2110 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2111 (erase_phys_cursor): For reversed cursor_row, support cursor on
2112 the left fringe.
2113
283ccc18
EZ
2114 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2115 of continuation indicators on the fringes.
2116 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2117 left fringe.
2118
f951a506
EZ
2119 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2120 draw cursor on the left fringe.
2121
2122 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2123 cursor on the left fringe.
2124
f951a506
EZ
2125 * dispnew.c (update_text_area): Handle reversed desired rows when
2126 the cursor is on the left fringe.
2127 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2128 below, not by 0, for when the cursor is on the left fringe.
2129
3bb49aaf
JD
21302010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2131
2132 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2133 widget is a scrollbar.
2134
c0be27fd
KH
21352010-04-20 Kenichi Handa <handa@m17n.org>
2136
2137 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2138 only when the arg CHARSET_LIST is nil.
2139
ce5b453a
SM
21402010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2141
2142 Make variable forwarding explicit rather the using special values.
2143 Basically, this makes the structure of buffer-local values and object
2144 forwarding explicit in the type of Lisp_Symbols rather than use
2145 special Lisp_Objects for that. This tends to lead to slightly more
2146 verbose code, but is more C-like, simpler, and makes it easier to make
2147 sure we handled all cases, among other things by letting the compiler
2148 help us check it.
2149 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2150 Removing forwarding objects.
2151 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2152 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2153 explicit rather than hiding them inside Lisp_Object "values".
2154 (XFWDTYPE): New macro.
2155 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2156 (XBUFFER_LOCAL_VALUE): Remove.
2157 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2158 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2159 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2160 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2161 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2162 Remove the Lisp_Misc_* header.
2163 (struct Lisp_Buffer_Local_Value): Redefine.
2164 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2165 (struct Lisp_Misc_Any): Add filler to get the right size.
2166 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2167 Lisp_Intfwd.
2168 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2169 (DEFVAR_KBOARD): Allocate a forwarding object.
2170 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2171 (let_shadows_global_binding_p): New function.
2172 (union Lisp_Val_Fwd): New type.
2173 (make_blv): New function.
2174 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2175 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2176 (swap_in_symval_forwarding, find_symbol_value, Fset)
2177 (let_shadows_buffer_binding_p, set_internal, default_value)
2178 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2179 (Fkill_local_variable, Fmake_variable_frame_local)
2180 (Flocal_variable_p, Flocal_variable_if_set_p)
2181 (Fvariable_binding_locus):
2182 * xdisp.c (select_frame_for_redisplay):
2183 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2184 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2185 * frame.c (store_frame_param):
2186 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2187 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2188 value structure.
2189 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2190 (clone_per_buffer_values): Only adjust markers into the current buffer.
2191 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2192 (Fbuffer_local_value, set_buffer_internal_1)
2193 (swap_out_buffer_local_variables):
2194 Adapt to the new symbol value structure.
2195 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2196 (defvar_per_buffer): Take a new arg for the fwd object.
2197 (buffer_lisp_local_variables): Return a proper alist (different fix
2198 for bug#4138).
2199 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2200 (Fgarbage_collect): Don't handle buffer_defaults specially.
2201 (mark_object): Handle new symbol value structure rather than the old
2202 special Lisp_Misc_* objects.
2203 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2204 * term.c (set_tty_color_mode):
2205 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2206 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2207 a buffer_local_flags.
2208 * print.c (print_object): Get rid of impossible forwarding objects.
2209
fd3998ff
EZ
22102010-04-19 Eli Zaretskii <eliz@gnu.org>
2211
2212 * bidi.c (bidi_get_type, bidi_get_category)
2213 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2214 (bidi_type_of_next_char, bidi_level_of_next_char):
2215 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2216
e42cd1a7
JB
22172010-04-19 Juanma Barranquero <lekktu@gmail.com>
2218
2219 * dired.c (Ffile_attributes): Fix typo in docstring.
2220
6e104790 22212010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2222
2223 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2224 NSInteger (Bug#5811).
2225
6e104790 22262010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2227
2228 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2229 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2230
6e104790 22312010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2232
2233 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2234
6e104790
SM
22352010-04-19 Chong Yidong <cyd@stupidchicken.com>
2236
2237 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2238 terminal frames (Bug#5837).
2239
37dcfea0
EZ
22402010-04-19 Eli Zaretskii <eliz@gnu.org>
2241
d1da276f
EZ
2242 * .gdbinit (xsubchartable): New command.
2243
37dcfea0
EZ
22442010-04-19 Eli Zaretskii <eliz@gnu.org>
2245
2246 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2247 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2248 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2249 and
2250 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2251
e9515805
SM
22522010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2253
2254 * alloc.c (Fpurecopy): Hash-cons if requested.
2255 (syms_of_alloc): Update purify-flag docstring.
2256
22aa44a8
JD
22572010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2258
2259 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2260 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2261
ebb5722e
EZ
22622010-04-17 Eli Zaretskii <eliz@gnu.org>
2263
2264 Fix a crash when an NSM character is inserted at BEGV.
2265
2266 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2267 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2268 NEUTRAL_B or UNKNOWN_BT.
2269
0f4442ef
EZ
22702010-04-16 Eli Zaretskii <eliz@gnu.org>
2271
2272 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2273 other rows with cursor unless they are different from this row and
2274 this row is part of a continued line. (Bug#5943)
2275
7d4e45f8
DN
22762010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2277
2278 * s/freebsd.h: Restore osreldate.h include.
2279 Suggested by Naohiro Aota.
2280
5ba5ec85
J
22812010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2282
2283 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2284
20af301d
CY
22852010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2286
2287 * s/cygwin.h: Avoid linking against static libgcc.
2288
a4b000fb
JL
22892010-04-15 Juri Linkov <juri@jurta.org>
2290
2291 * window.c: Add Qscroll_command.
2292 Remove Vscroll_preserve_screen_position_commands.
2293 (window_scroll_pixel_based, window_scroll_line_based): Check the
2294 `scroll-command' property on the last command instead of searching
2295 the last command in Vscroll_preserve_screen_position_commands.
2296 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2297 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2298 (scroll-preserve-screen-position): Doc fix.
2299 (Vscroll_preserve_screen_position_commands): Remove variable.
2300
bc319ba4
DN
23012010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2302
6bb24457
DN
2303 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2304
19d4c244
DN
23052010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2306
2307 Reduce cpp use in Makefile.in.
2308 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2309 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2310 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2311 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2312 (CRT0_COMPILE): Remove, inline it in the only user.
2313
32129746
JL
23142010-04-14 Juri Linkov <juri@jurta.org>
2315
2316 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2317 `scroll-up-command' and `M-v' from `scroll-down' to
2318 `scroll-down-command'.
2319
9013a7f8
JL
23202010-04-14 Juri Linkov <juri@jurta.org>
2321
2322 * window.c (Vscroll_preserve_screen_position_commands): New variable
2323 with the default value as the list of Qscroll_down and Qscroll_up.
2324 (window_scroll_pixel_based, window_scroll_line_based): Search the
2325 last command in the list Vscroll_preserve_screen_position_commands
2326 instead of comparing with Qscroll_up and Qscroll_down.
2327
4bef8d26
JD
23282010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2329
92848133
JD
2330 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2331 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2332 does that.
2333
4bef8d26
JD
2334 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2335 to zero.
2336
58b963f7
SM
23372010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2338
84164a0d
SM
2339 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2340
2b0a91e7
SM
2341 Try to solve the problem of spurious EOF chars in long lines of text
2342 sent to interactive subprocesses.
2343 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2344 (system_process_attributes): Remove unused var `ttotal'.
2345 * process.c (send_process): Don't bother breaking long line with EOF
2346 chars when talking to ttys any more.
2347 (wait_reading_process_output): Output a warning when called in such
2348 a way that it could block without being interruptible.
2349
58b963f7
SM
2350 Try to detect file modification within the same second.
2351 * buffer.h (struct buffer): New field modtime_size.
2352 * buffer.c (reset_buffer): Initialize it.
2353 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2354 (Fverify_visited_file_modtime): Check it.
2355 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2356 (Fset_visited_file_modtime): Set (or clear) it.
2357
01f5787b
SM
23582010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2359
2360 * process.c (status_notify): Remove unused var `ro'.
2361
83725342
JD
23622010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2363
2364 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2365 more than one visual (Bug#5938).
2366
b9465836
DN
23672010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2368
50426a04
JB
2369 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2370 Undefine.
b9465836 2371
8d9c8ece
DN
23722010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2373
b1f52161
DN
2374 Remove C_SWITCH_SYSTEM_TEMACS.
2375 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2376 (malloc, realloc, free): Use emacs, not temacs for conditional
2377 definition.
2378
2379 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2380 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2381
8d9c8ece
DN
2382 Use autoconf, not cpp for some variables.
2383 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2384 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2385 (ALL_CFLAGS): Use them as make variables.
2386 (really-lwlib, really-oldXMenu): Do not pass them.
2387
1ecb2d3f
JD
23882010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2389
2390 * xmenu.c (apply_systemfont_to_dialog): New.
2391 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2392
3a4fa2f2
SM
23932010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2394
97e53006
SM
2395 * process.c (exec_sentinel): Preserve current-buffer.
2396
3a4fa2f2
SM
2397 * process.c (read_process_output): Move the save-current-buffer to
2398 apply to both the filter and the non-filter branches.
2399
88df7221
DN
24002010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2401
2402 * s/msdos.h (UNEXEC): New definition.
2403
5634ff85
YM
24042010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2405
6eff5c3d
YM
2406 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2407 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2408
2409 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2410 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2411 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2412 TRY_WINDOW_CHECK_MARGINS.
2413
2414 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2415 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2416 width only when it is for padding.
5634ff85 2417
b13aef54
J
24182010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2419
2420 * xfns.c (Fx_show_tip): Call try_window in a loop until
2421 fonts_changed_p is zero (Bug#2423).
2422
21d28484
EZ
24232010-04-08 Eli Zaretskii <eliz@gnu.org>
2424
2425 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2426 the end of TEXT_AREA. (Bug#5856)
2427
0269ef77
JD
24282010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2429
2430 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2431 HAVE_GCONF.
2432
5930fe97
EZ
24332010-04-08 Eli Zaretskii <eliz@gnu.org>
2434
2435 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2436 prev.orig_type, for resolving type of NSM. (Bug#5858)
2437
99852628
JD
24382010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2439
2440 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2441 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2442 in current_font.
2443 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2444 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2445 New functions.
2446 (syms_of_xsettings): Initialize current_font.
2447 defsubr Sfont_get_system_normal_font.
99852628
JD
2448
2449 * xsettings.h (Ffont_get_system_normal_font,
2450 xsettings_get_system_normal_font): Declare.
2451
2452 * xfns.c (extern xlwmenu_default_font): Remove.
2453 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2454 to xlwmenu.c.
2455
2456 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2457 menu items in UTF-8.
2458
2459 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2460 (apply_systemfont_to_menu): New function.
2461 (set_frame_menubar, create_and_show_popup_menu): Call
2462 apply_systemfont_to_menu.
2463
7fc874c4
J
24642010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2465
2466 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2467 FRAME_LINE_TO_PIXEL_Y.
2468
2469 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2470 pixelwidth/height.
2471
863bf481
DN
24722010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2473
5e5a3b92
DN
2474 Simplify code for HP machines.
2475 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2476 for GNU_LINUX, not needed.
2477 (UNEXEC, NEED_BSDTTY): Move definitions...
2478 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2479
863bf481
DN
2480 * m/iris4d.h (UNEXEC): Move definition ...
2481 * s/irix6-5.h (UNEXEC): ... here.
2482
3e6bec3b
JD
24832010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2484
2485 * xfns.c (set_machine_and_pid_properties): New function.
2486 (Fx_create_frame): Call set_machine_and_pid_properties.
2487
2912322b
SM
24882010-04-03 Eli Zaretskii <eliz@gnu.org>
2489
1502b819
EZ
2490 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2491 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2492 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2493
2912322b
SM
2494 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2495 in this function. (Bug#5703)
2496
24972010-04-03 Chong Yidong <cyd@stupidchicken.com>
2498
2499 * nsterm.h: Fix last change.
2500
c435b432
DN
25012010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2502
a568f507
DN
2503 * m/intel386.h (NO_REMAP): Move definition ...
2504 * s/msdos.h (NO_REMAP): ... here.
2505
4cd9f6c2
DN
2506 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2507
c435b432
DN
2508 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2509 used on those platforms.
2510
42a2c622
DN
25112010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2512
2513 Remove extern errno declarations.
2514 * xterm.c:
2515 * xrdb.c:
2516 * w32term.c:
2517 * unexec.c:
2518 * unexaix.c:
2519 * sysdep.c:
2520 * process.c:
2521 * lread.c:
2522 * keyboard.c:
2523 * floatfns.c:
2524 * filelock.c:
2525 * fileio.c:
2526 * emacs.c (main):
2527 * ecrt0.c:
2528 * dispnew.c:
2529 * callproc.c:
2530 * buffer.c: Remove errno extern declarations.
2531 * s/netbsd.h (NEED_ERRNO): Remove.
2532
8224f93d
DN
25332010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2534
2535 Remove all uses of LIBX11_SYSTEM.
2536 * Makefile.in (LIBX11_SYSTEM): Remove.
2537 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2538 instead.
2539
814062c7
EZ
25402010-04-01 Eli Zaretskii <eliz@gnu.org>
2541
ed68db4d
EZ
2542 Remove support for DJGPP v1.x (bug#5813).
2543
2544 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2545 * s/msdos.h:
2546 * unexec.c (make_hdr, copy_text_and_data):
2547 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2548 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2549 (IT_set_terminal_modes, __write, _rename, gethostname)
2550 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2551 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2552 the value of __DJGPP__.
ed68db4d
EZ
2553 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2554 compatibility code.
8224f93d
DN
2555 * lread.c:
2556 * gmalloc.c (memalign):
2557 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2558 * emacs.c (main):
2559 * dosfns.c (init_dosfns):
ed68db4d
EZ
2560 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2561
52f4d8d5
EZ
25622010-04-01 Eli Zaretskii <eliz@gnu.org>
2563
814062c7
EZ
2564 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2565 string with `cursor' property comes from an `after-string'
2566 overlay. (Bug#5816)
2567
0dc2e11d
GM
25682010-04-01 Glenn Morris <rgm@gnu.org>
2569
2570 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2571 Define as Makefile variables.
2572 (LIBX): Use above variables rather than directly using autoconf.
2573
1d29df59
DN
25742010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2575
2576 Clean up BSD_SYSTEM use.
2577 * xterm.c:
2578 * process.c:
2579 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2580 for including <sys/ioctl.h>.
2581 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2582 code is only used for MSDOS.
2583
1546c559
JL
25842010-03-31 Juri Linkov <juri@jurta.org>
2585
2586 * image.c: Add `Qextension_data'.
2587 (syms_of_image): Initialize and staticpro `Qextension_data'.
2588 (Fimage_metadata): Rename from `Fimage_extension_data'.
2589 (gif_load): Put GIF extension data to the property
2590 `Qextension_data'.
2591
6521c534
CY
25922010-03-31 Chong Yidong <cyd@stupidchicken.com>
2593
2594 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2595 * nsterm.h: Fix prototype.
2596
52c30783
EZ
25972010-03-31 Eli Zaretskii <eliz@gnu.org>
2598
2599 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2600 trailing whitespace in right-to-left rows.
2601
855a0da7
SM
26022010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2603
2604 Get rid of the direct_output optimizations.
2605 * keyboard.c (nonundocount): Remove extern declaration.
2606 (command_loop_1): Remove brittle optimisation for cheap and
2607 common operations.
2608 * xdisp.c (redisplay_internal): Don't bother checking
2609 redisplay_performed_directly_p any more.
2610 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2611 any more.
2612 * dispnew.c (redisplay_performed_directly_p)
2613 (direct_output_for_insert, direct_output_forward_char):
2614 * dispextern.h (redisplay_performed_directly_p)
2615 (direct_output_for_insert, direct_output_forward_char): Remove.
2616 * cmds.c (nonundocount): Make it static.
2617
85738751 26182010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2619
2620 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2621
85738751 26222010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2623
2624 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2625 invisible (Bug#5766).
2626
85738751 26272010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2628
855a0da7
SM
2629 * xdisp.c (x_consider_frame_title, update_window_cursor):
2630 Remove HAVE_NS conditionals.
194d44e7 2631 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2632
2633 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2634 filename for the title.
2635 (ns_set_doc_edited): Do nothing if the selected window is a
2636 minibuffer window.
2637
2638 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2639 ns_set_doc_edited.
2640
2641 * nsterm.m: Remove unneeded prototype.
2642
85738751 26432010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2644
2645 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2646 in the DOC file. (Bug#5336)
2647
85738751 26482010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2649
2650 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2651
75d1428c
SM
26522010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2653
2654 * window.c (keys_of_window): Remove redundant/overridden bindings.
2655
82043cfb
EZ
26562010-03-30 Eli Zaretskii <eliz@gnu.org>
2657
2658 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2659 Restore original behavior when the iterator is not bidi_p.
2660
b5dd0ae7
DN
26612010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2662
2663 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2664
bd924a5d
EZ
26652010-03-30 Eli Zaretskii <eliz@gnu.org>
2666
2667 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2668 are outside the range of cached character positions.
2669
3580374b
JB
26702010-03-30 Juanma Barranquero <lekktu@gmail.com>
2671
2672 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2673
a7b02820
EZ
26742010-03-30 Eli Zaretskii <eliz@gnu.org>
2675
2676 Initial support for bidirectional editing.
2677
2678 * Makefile.in (obj): Include bidi.o.
2679 (bidi.o): New target.
2680
2681 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2682 ($(BLD)/bidi.$(O)): New target.
2683
2684 * bidi.c: New file.
2685
2686 * buffer.h (struct buffer): New members bidi_display_reordering
2687 and bidi_paragraph_direction.
2688
2689 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2690 and bidi_paragraph_direction.
2691 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2692 and bidi-paragraph-direction.
2693 (Fbuffer_swap_text): Swap the values of
2694 bidi_display_reordering and bidi_paragraph_direction.
2695
2696 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2697 (bidi_type_t, bidi_dir_t): New types.
2698 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2699 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2700 prev_stop, base_level_stop, and eol_pos.
2701 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2702 (IT_STACK_SIZE): Enlarge to 5.
2703 (struct glyph_row): New member reversed_p.
2704 <string_buffer_position>: Update prototype.
2705 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2706 glyph_row if bidi_it.paragraph_dir == R2L.
2707 (struct glyph): New members resolved_level and bidi_type.
2708
2709 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2710 processing or buffer's direction is right-to-left.
2711 (prepare_desired_row): Preserve the reversed_p flag.
2712 (row_equal_p): Compare the reversed_p attributes as well.
2713
2714 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2715 bidi_init_it and set it->paragraph_embedding from the current
2716 buffer's value of bidi_paragraph_direction.
2717 (reseat_1): Initialize bidi_it.first_elt.
2718 (set_iterator_to_next, next_element_from_buffer): Use the value of
2719 paragraph_embedding to determine the paragraph direction.
2720 (set_iterator_to_next): Under bidi reordering, call
2721 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2722 new_paragraph flag is set in the bidi iterator.
2723 (next_element_from_buffer): If bidi_it.first_elt is set,
2724 initialize paragraph direction and find the first character to
2725 display in the visual order. If reseated to a middle of a line,
2726 prime the bidi iterator starting at the line's beginning. Handle
2727 the situation where we overstepped stop_charpos due to
2728 non-linearity of the bidi iteration. Likewise for when we back up
2729 beyond the previous stop_charpos. When moving across stop_charpos,
2730 record it in prev_stop.
2731 (display_line): Set row->end and it->start for the next row to the
2732 next character in logical order. Always extend reversed_p rows to
2733 the end of line, even if they end at ZV. Copy the reversed_p flag
2734 to the next glyph row. Keep calling set_cursor_from_row for
2735 bidi-reordered rows even if we already have a possible candidate
2736 for cursor position. Set row_end after all the row's glyphs have
2737 been produced, by looping over the glyphs. Record the position
2738 after EOL in it->eol_pos, and use it to set end_pos of the last
2739 row produced for a continued line.
2740 <Qright_to_left, Qleft_to_right>: New variables.
2741 (syms_of_xdisp): Initialize and staticpro them.
2742 (string_buffer_position_lim): New function.
2743 (string_buffer_position): Most of code moved to
2744 string_buffer_position_lim. Last argument and return value are
2745 now EMACS_INT; all callers changed.
2746 (set_cursor_from_row): Rewritten to support bidirectional text and
2747 reversed glyph rows.
2748 (text_outside_line_unchanged_p, try_window_id): Disable
2749 optimizations if we are reordering bidirectional text and the
2750 paragraph direction can be affected by the change.
2751 (append_glyph, append_composite_glyph)
2752 (produce_image_glyph, append_stretch_glyph): Set the
2753 resolved_level and bidi_type members of each glyph.
2754 (append_glyph): If the glyph row is reversed, prepend the glyph
2755 rather than appending it.
2756 (handle_stop_backwards): New function.
2757 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2758 (reseat): call handle_stop_backwards to recompute prev_stop and
2759 base_level_stop for the new position.
2760 (handle_invisible_prop): Under bidi iteration, skip invisible text
2761 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2762 paragraph direction. Update IT->prev_stop after skipping
2763 invisible text.
2764 (move_it_in_display_line_to): New variables prev_method
2765 and prev_pos. Compare for strict equality in
2766 BUFFER_POS_REACHED_P.
2767 (try_cursor_movement): Examine all the candidate rows that occlude
2768 point, to return the best match. If rows are bidi-reordered
2769 and point moved backwards, back up to the row that is not a
2770 continuation line, and start looking for a suitable row from
2771 there.
2772
2773 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2774 rather than appending, if the glyph_row's reversed_p flag is set.
2775 Set the resolved_level and bidi_type members of each glyph.
2776
2777 * .gdbinit (pbiditype): New command.
2778 (pgx): Use it to display bidi level and type of the glyph.
2779 (pitx): Display some bidi information about the iterator.
2780 (prowlims, pmtxrows): New commands.
2781
32a8894e
DN
27822010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2783
2784 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2785 * s/usg5-4.h (LIBS_DEBUG):
2786 * s/irix6-5.h (C_DEBUG_SWITCH):
2787 * s/gnu-linux.h (LIBS_DEBUG):
2788 * s/darwin.h (LIBS_DEBUG):
2789 * s/bsd-common.h (LIBS_DEBUG):
2790 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2791 * m/iris4d.h (LIBS_DEBUG):
2792 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2793
2794 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2795 (LIBS_DEBUG): Remove definition.
2796
649dbf36
CY
27972010-03-27 Chong Yidong <cyd@stupidchicken.com>
2798
2799 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2800 Windows.
2801
cad4261f
YM
28022010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2803
2804 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2805 `connect' (Bug#5723).
2806
cd591dbc
HE
28072010-03-25 Helmut Eller <eller.helmut@gmail.com>
2808
2809 * process.c (Fmake_network_process): Call `select' for interrupted
2810 `connect' rather than creating new socket (Bug#5173).
2811
e867cb5d 28122010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2813
2814 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2815
2816 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2817
2818 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2819
e867cb5d 28202010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2821
2822 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2823 XLoadQueryFont.
2824
e867cb5d 28252010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2826
2827 * coding.c (decode_coding_ccl): Fix previous change for the
2828 multibyte case.
fb608df3
KH
2829 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2830 case that the output buffer is fullfilled.
2831 (encode_coding): Setup ccl program here.
fbdc1721 2832
5845f0ed
DN
28332010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2834
814fb708
DN
2835 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2836
5845f0ed
DN
2837 Simplify LIBS_MACHINE definitions.
2838 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2839 * m/iris4d.h (LIBS_MACHINE): Likewise.
2840 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2841 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2842 * s/netbsd.h: Remove commented out code.
5845f0ed 2843
b7064064
DN
28442010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2845
df7734b2
DN
2846 Remove dead code dealing with POSIX_SIGNALS.
2847 * atimer.c (set_alarm): Remove dead code, all USG systems define
2848 POSIX_SIGNALS.
2849 * data.c (arith_error): Likewise.
2850 * keyboard.c (input_available_signal, handle_user_signal)
2851 (interrupt_signal): Likewise.
2852 * process.c (sigchld_handler): Likewise.
2853 (create_process): Remove if 0 code. Remove HPUX conditional when
2854 !defined (POSIX_SIGNALS), it cannot be true.
2855 * syssignal.h: Remove USG5_4 and USG conditionals when
2856 !POSIX_SIGNALS, they cannot be true.
2857
b7064064
DN
2858 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2859 NO_SOCK_SIGIO, not used anymore.
2860
55da5ee3
DN
28612010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2862
0be96e3a
DN
2863 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2864 support vax on BSDs.
2865
55da5ee3
DN
2866 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2867 * s/aix4-2.h (ORDINARY_LINK): ... here.
2868
c0282183
AS
28692010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2870
82c3d67a
AS
2871 * Makefile.in (abs_builddir): Define.
2872 (bootstrap_exe): Use it.
2873 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2874
3613edce
SM
28752010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2876
2877 * Makefile.in (bootstrap_exe): Use an absolute name.
2878
7f110ddc
DN
28792010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2880
22e87574
DN
2881 Remove support for old GNU/Linux using libc version 5.
2882 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2883 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2884
05a670e6
DN
2885 Consolidate redundant definitions in s/bsd-common.h.
2886 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2887 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2888 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2889 doing it in all files that include this one.
2890 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2891 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2892 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2893 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2894 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2895 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2896 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2897 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2898 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2899
2968f561
DN
2900 Consolidate redundant definitions.
2901 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2902 it's undefined in all files that include this one.
2903 (POSIX_SIGNALS): Define here instead of doing it in all files that
2904 include this one.
2905 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2906 (POSIX_SIGNALS): Do not define.
2907 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2908 (POSIX_SIGNALS): Do not define.
2909 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2910 (POSIX_SIGNALS): Do not define.
2911
15d25dc0
DN
2912 Remove support for old UNIX System V systems.
2913 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2914 * s/usg-5-4-2.h: Remove.
2915
07e339e4
DN
2916 Remove support for Solaris on PPC and for old versions.
2917 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2918 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2919 that cancel each other.
2920 * s/sol2-3.h:
2921 * s/sol2-4.h:
2922 * s/sol2-5.h: Remove.
2923 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2924 (NO_REMAP): Remove, unused.
2925 (UNEXEC): Move definition ...
2926 * s/aix4-2.h (UNEXEC): ... here.
2927
7f110ddc
DN
2928 * s/openbsd.h: Remove support for non-ELF and for systems that do
2929 not support shared libraries.
2930 * s/netbsd.h:
2931 * s/freebsd.h: Likewise.
2932
605f35cd
DN
29332010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2934
2935 Remove non-working support for lynxos 3.0.
2936 * s/lynxos.h: Remove file.
2937
2938 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2939 COFF_BSD_SYMBOLS, nothing defines it anymore.
2940
aed71cf4
DN
29412010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2942
2943 Remove obsolete uses of HAVE_SHM.
2944 * emacs.c (standard_args):
2945 (Fdump_emacs):
2946 (syms_of_emacs): Remove code depending on HAVE_SHM.
2947
2948 * alloc.c: Remove HAVE_SHM dependent definition.
2949
2950 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2951
aded53ff
GM
29522010-03-18 Glenn Morris <rgm@gnu.org>
2953
17284745
GM
2954 * emacs.c (USAGE4): Hard-code bug address.
2955 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2956 (bug_reporting_address): Remove.
2957 (main): Don't call bug_reporting_address.
2958
aded53ff
GM
2959 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2960 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2961
303500aa
CY
29622010-03-15 Chong Yidong <cyd@stupidchicken.com>
2963
2964 * xfns.c (Fx_create_frame):
2965 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2966 on left.
2967
cef3058f
CY
29682010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2969
2970 * editfns.c (Fformat): Account for string precision when computing
2971 field width (Bug#5710).
2972
a647d59d
CY
29732010-03-12 Chong Yidong <cyd@stupidchicken.com>
2974
4fa42018
CY
2975 * xfns.c (Fx_create_frame): Set default to Qright.
2976
a647d59d
CY
2977 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2978 all window systems.
2979
6da23aaa
EZ
29802010-03-12 Eli Zaretskii <eliz@gnu.org>
2981
a96f6398 2982 These changes remove termcap.c from the build on Posix platforms.
83d02def 2983 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2984 (MSDOS_OBJ): ...to here.
2985 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2986 now identical to when LIBS_TERMCAP is defined.
2987
2988 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2989
2990 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2991
a96f6398 2992 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2993
288f9fc0
CY
29942010-03-10 Chong Yidong <cyd@stupidchicken.com>
2995
2996 * Branch for 23.2.
2997
d48cd3f4
SM
29982010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2999
3000 Cleanup setup of gl_state in various parts of the code.
3001 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
3002 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
3003 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
3004 (skip_chars):
3005 * regex.c (regex_compile): Use it.
3006 (re_compile_pattern): Don't set gl_state.current_syntax_table since
3007 it's now set in regex_compile when/if we need it.
3008
618db430
SM
30092010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
3010
c0335e02
SM
3011 Make it possible to C-g in a tight bytecode loop again (bug#5680).
3012 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
3013 (QUIT): Use it to consolidate code and remove redundancy.
3014 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
3015
254c06a8
SM
3016 * regex.c (regex_compile): Setup gl_state as well.
3017
618db430
SM
3018 * syntax.c (skip_chars): Setup gl_state (bug#3823).
3019 (in_classes): Use CONSP before XCAR/XCDR.
3020
233f0c9f
CY
30212010-03-03 Chong Yidong <cyd@stupidchicken.com>
3022
3023 * keymap.c (Fwhere_is_internal): Use Fequal to compare
3024 definitions, so that keyboard macros are correctly handled
3025 (Bug#5481).
3026
75f80e63
EZ
30272010-03-02 Eli Zaretskii <eliz@gnu.org>
3028
3029 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
3030 text that could be relocated inside the call to emacs_mule_char.
3031 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
3032 (CODING_DECODE_CHAR): Add a comment describing its purpose.
3033
dcfb9bc4
KH
30342010-03-02 Kenichi Handa <handa@m17n.org>
3035
fc9a17bc
KH
3036 * character.c (parse_str_as_multibyte): Fix handling of the
3037 multibyte form of raw-bytes.
3038 (str_as_multibyte): Likewise.
3039
dcfb9bc4
KH
3040 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
3041 form of raw-bytes.
3042
412c01b6
CY
30432010-02-28 Chong Yidong <cyd@stupidchicken.com>
3044
3045 * charset.c (load_charset_map_from_file)
3046 (load_charset_map_from_vector): Zero out allocated
3047 charset_map_entries before using them.
3048
df7e1ea0
AS
30492010-02-27 Andreas Schwab <schwab@linux-m68k.org>
3050
3051 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
3052
fe69a722
CY
30532010-02-27 Chong Yidong <cyd@stupidchicken.com>
3054
4ed28cf4
CY
3055 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
3056 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 3057
7379cfce
KH
30582010-02-26 Kenichi Handa <handa@m17n.org>
3059
f88cc4d6
KH
3060 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
3061
7379cfce
KH
3062 * xdisp.c (reseat_to_string): Fix previous change.
3063
cf2fdcfb
CY
30642010-02-26 David Reitter <david.reitter@gmail.com>
3065
3066 * nsfont.m (nsfont_draw): ns_antialias_text should be a
3067 Lisp_Object (Bug#4736).
3068
cc6c7c75
KH
30692010-02-25 Kenichi Handa <handa@m17n.org>
3070
3071 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
3072
32e737d7
JD
30732010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3074
3075 * xterm.c (XTflash): Move declarations before statements.
3076
3077 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3078 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3079 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3080 (xg_create_tool_bar): Remove unused variables.
3081 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3082 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3083
676cae9f
CY
30842010-02-21 Chong Yidong <cyd@stupidchicken.com>
3085
3086 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3087
886cc2b8
SM
30882010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3089
3090 * term.c (fatal): Add a final \n if needed (bug#5596).
3091
ddb2d8e2
CY
30922010-02-18 Chong Yidong <cyd@stupidchicken.com>
3093
3094 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3095
2a4f8d3d
GM
30962010-02-18 Glenn Morris <rgm@gnu.org>
3097
3098 * callint.c (Finteractive): Doc fix.
3099
ebaf11b6
KH
31002010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3101
886cc2b8
SM
3102 * coding.c (record_conversion_result):
3103 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3104 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3105 memory allocation error.
3106
d0396581
KH
31072010-02-17 Kenichi Handa <handa@m17n.org>
3108
886cc2b8
SM
3109 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3110 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3111 (decode_coding): Setup ccl program here. Keep looping when the
3112 decoder stopped because the output buffer is
3113 fullfilled (bug#5534).
3114
3115 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3116
98599f74
JD
31172010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3118
471e4f04 3119 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3120 bug #5571.
886cc2b8 3121 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3122 overdrawn.
98599f74 3123
182659ae
JD
31242010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3125
3126 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3127 doing_interact here.
3128 (ice_connection_closed): New function.
3129 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3130 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3131 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3132 returns I/O error.
3133 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3134 bug #5512.
3135
9be32c4e 31362010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3137
3138 * nsfont.m (nsfont_open): The system's value for the font descent
3139 is negative, so round it down to avoid clipping.
3140
a2f3eb19
CY
31412010-02-06 Chong Yidong <cyd@stupidchicken.com>
3142
3143 * charset.c (load_charset_map_from_file)
3144 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3145 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3146
3088147c
CY
31472010-02-05 Chong Yidong <cyd@stupidchicken.com>
3148
3149 * charset.c (load_charset_map_from_file): Allocate large
3150 charset_map_entries structure on the heap rather than the stack.
3151 (Bug#5526).
3152
b57d9029
KH
31532010-01-31 Kenichi Handa <handa@m17n.org>
3154
3155 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3156 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3157
c67d885b
CY
31582010-01-31 Chong Yidong <cyd@stupidchicken.com>
3159
3160 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3161 <deactivated@gmail.com> (Bug#3605).
3162
8fab2362
CY
31632010-01-31 David De La Harpe Golden <david@harpegolden.net>
3164
3165 * fileio.c (Frename_file): Correctly rename symlinks to
3166 directories (Bug#5496).
3167
cb2a62f2
CY
31682010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3169
3170 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3171
944c7a26
AS
31722010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3173
3174 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3175
c024ac08
CY
31762010-01-29 Chong Yidong <cyd@stupidchicken.com>
3177
3178 * frame.c (DEFAULT_ROWS): Change default to 35.
3179
3180 * xfns.c (x_default_font_parameter): Change default XFT font to
3181 monospace-10 (Bug#3643).
3182
af93af83
EZ
31832010-01-29 Eli Zaretskii <eliz@gnu.org>
3184
3185 * w32inevt.c (key_event): Remove unnecessary comparison of
3186 event->uChar.AsciiChar with 128.
3187
ca0eb708
CY
31882010-01-28 Chong Yidong <cyd@stupidchicken.com>
3189
b242dbfc
CY
3190 * fileio.c (Frename_file): Fix last change (Bug#5487).
3191
ca0eb708
CY
3192 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3193
3194 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3195
45d45af5
JD
31962010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3197
3198 * xfns.c (Fx_create_frame): Remove window size matching code from
3199 2010-01-15.
a73f9c9d 3200 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3201
7e233730
JR
32022010-01-27 Jason Rumney <jasonr@gnu.org>
3203
3204 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3205 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3206
86e893e3
KH
32072010-01-27 Kenichi Handa <handa@m17n.org>
3208
3209 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3210 pattern string (Bug#4209).
86e893e3 3211
8719abec
CY
32122010-01-27 David De La Harpe Golden <david@harpegolden.net>
3213
3214 * fileio.c (Frename_file): Call copy-directory and
3215 delete-directory for directories, in order to handle cross-device
3216 renaming (Bug#3353).
3217
844794c8
JD
32182010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3219
aa3e13b5 3220 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3221 sizes 24 and 10. Bug #3643.
844794c8 3222
bd4b5750
SM
32232010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3224
8dc1adf6 3225 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3226 * keymap.c (shadow_lookup): Add `remap' arg.
3227 (describe_map, describe_vector): Update calls to shadow_lookup.
3228 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3229 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3230 perform remapping during shadow_lookup check of remapped_sequences.
3231
285d07e2
CY
32322010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3233
3234 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3235 png_check_sig, which has been removed in libpng 1.4.
3236
c6d09b8d
CY
32372010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3238
3239 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3240 lacks this header file).
3241
3d782998
YM
32422010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3243
3244 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3245 as in Emacs 22.
3246
2aff7c53
YM
32472010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3248
3249 * lisp.h (make_pure_string): String pointer arg now points to const.
3250
3251 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3252 args now point to const.
3253
74327f7a
EZ
32542010-01-22 Eli Zaretskii <eliz@gnu.org>
3255
3256 * lread.c (Fload): Don't treat files without .elc extension as
3257 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3258 them. (bug#5303)
3259
4d1e6632
KH
32602010-01-20 Kenichi Handa <handa@m17n.org>
3261
3262 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3263 treat the source as actual byte sequence.
3264
1fdede8f
AM
32652010-01-19 Alan Mackenzie <acm@muc.de>
3266
3267 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3268 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3269 `signal_after_change_p' to `coherent_change_p', and make the
3270 invocation of `modify_region' conditional on it.
3271
67477f30
JD
32722010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3273
3274 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3275 for debug purpose.
3276 (syms_of_xsettings): Declare xft-settings.
3277
244b023e
CY
32782010-01-18 Chong Yidong <cyd@stupidchicken.com>
3279
3280 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3281
617364fe
CY
32822010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3283
3284 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3285
4fe22cdf
CY
32862010-01-16 Chong Yidong <cyd@stupidchicken.com>
3287
3288 * emacs.c (standard_args): Adjust arg priorities to reflect how
3289 they are processed in startup.el.
3290
e118d2be
AS
32912010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3292
3293 * Makefile.in (lisp, shortlisp): Update.
3294
523ae620
SM
32952010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3296
3297 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3298 code, link the new kboard into all_kboard before running Lisp code,
3299 and protect the new terminal with GCPRO (Bug#5365).
3300 (x_term_init): Remove unused var `atom'.
3301 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3302
f0d13888
JD
33032010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3304
3305 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3306 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3307 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3308 this. Bug #3643.
f0d13888 3309
cc320f07
KH
33102010-01-15 Kenichi Handa <handa@m17n.org>
3311
3312 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3313
7ffdf101
CY
33142010-01-15 Chong Yidong <cyd@stupidchicken.com>
3315
3316 * nsterm.m (Qnone): Define.
3317
3318 * nsfns.m (Qnone): Move definition to nsterm.m.
3319
d12bd917
KH
33202010-01-14 Kenichi Handa <handa@m17n.org>
3321
3322 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3323 systems.
3324
d9a7c140
KH
33252010-01-14 Kenichi Handa <handa@m17n.org>
3326
3327 Make auto-composition work on all buffers even if they are
3328 fundamental mode.
3329
3330 * composite.c (Vauto_composition_mode): New variable.
3331 (composition_compute_stop_pos): Check Vauto_composition_mode
3332 instead of Vauto_composition_function.
3333 (composition_adjust_point, Ffind_composition_internal): Likewise.
3334 (syms_of_composite): Declare Lisp variable
3335 "auto-composition-mode" here.
3336
63286bb2
CY
33372010-01-13 Chong Yidong <cyd@stupidchicken.com>
3338
3339 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3340 during call to vendor-specific-keysyms (Bug#5365).
3341
c2623ee7
YM
33422010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3343
3344 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3345 Call SIGNAL_THREAD_CHECK (Bug#5333).
3346
3347 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3348 Call SIGNAL_THREAD_CHECK.
3349
0b5397c2
SM
33502010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3351
3352 Try to fix bug#5314. This is probably not the final word, tho.
3353 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3354 recent-auto-save-p as a side-effect.
3355 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3356 * buffer.c (Fkill_buffer, reset_buffer):
3357 * editfns.c (Fsubst_char_in_region):
3358 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3359 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3360
dc954cb2
KH
33612010-01-13 Kenichi Handa <handa@m17n.org>
3362
3363 Display buffer name, etc. in mode line by composing correctly.
3364
3365 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3366 STRING is not nil.
0b5397c2 3367 (display_mode_element): Adjust for the change of
dc954cb2
KH
3368 decode_mode_spec and display_line.
3369 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3370 (display_string): Handle the case that STRING is non-null and
3371 LISP_STRING is not nil.
3372
0b5397c2
SM
3373 * xterm.c (x_draw_composite_glyph_string_foreground):
3374 Pay attention to s->face->overstrike.
dc954cb2
KH
3375
3376 * composite.c (composition_reseat_it): Don't check PT if STRING is
3377 non nil.
3378
4a00eaca
YM
33792010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3380
3381 * keyboard.c (read_char): Don't apply previous change when current
3382 buffer is unchanged by command execution.
3383
60abb287
JD
33842010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3385
3386 * keyboard.c (read_char): Return after executing from special map.
3387
893db5bc
GM
33882010-01-12 Glenn Morris <rgm@gnu.org>
3389
3390 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3391 bug-gnu-emacs rather than emacs-pretest-bug.
3392
4d03ece0
CY
33932010-01-11 Chong Yidong <cyd@stupidchicken.com>
3394
3395 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3396 initializing the Lisp variables that depend on them.
3397
1df47e38
YM
33982010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3399
3400 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3401 Clear areas that will not be updated after change of menu bar lines.
3402 Clear the menu bar window's current matrix when the window gets empty.
3403
2f1c6384
CY
34042010-01-09 Chong Yidong <cyd@stupidchicken.com>
3405
e398c61c
CY
3406 * intervals.h, textprop.c (extend_property_ranges): Return value
3407 and args changed. Discard properties that begin at or after the
3408 new end (Bug#5306).
3409
3410 * editfns.c (Fformat): Caller changed.
3411
e5a29a10
CY
3412 * nsterm.m (ns_set_default_prefs): Delete function.
3413 (syms_of_nsterm): Initialize ns_command_modifier,
3414 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3415 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3416
2f1c6384
CY
3417 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3418 position (Bug#4040).
3419
d427a9fa
EZ
34202010-01-09 Eli Zaretskii <eliz@gnu.org>
3421
3422 * editfns.c (Ffloat_time): Doc fix.
3423
21b9df2f
JD
34242010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3425
3426 * xfns.c (Fx_create_frame): Don't create frame larger than display
3427 by default bug#3643.
3428
4b00d3b1
YM
34292010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3430
3431 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3432 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3433 windows above internal border.
3434
3435 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3436 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3437 windows above internal border.
3438
3439 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3440 tool bar windows specially.
3441
3442 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3443
3444 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3445 specially.
3446 (XTflash): Take account of menu bar height.
3447
3448 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3449 specially.
3450
5075d853
JD
34512010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3452
ac146f82 3453 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3454 also be true before we can return early (bug #5339).
3455
474217c8
CY
34562010-01-06 David Reitter <david.reitter@gmail.com>
3457
3458 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3459 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3460 (Bug#3233).
3461
c0e6d47d
JD
34622010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3463
d0cf45b7
JD
3464 * font.c (font_open_entity): Enable chache and call cached_font_ok
3465 for the driver if defined.
3466 (QCuser_spec): New symbol.
3467 (font_spec_from_name): Save name as user-spec.
3468 (font_load_for_lface): Keep user-spec instead of name.
3469 (font_open_by_name): Save name as user-spec.
3470 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3471 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3472
3473 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3474 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3475 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3476
3477 * font.h (struct font_driver): Add cached_font_ok.
3478
c0e6d47d
JD
3479 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3480
7c583cd8
JD
34812010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3482
3483 * xterm.c (x_new_font): Move code for setting rows/cols before
3484 resizing ...
ac146f82 3485 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3486
3487 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3488 (xg_frame_resized, xg_frame_set_char_size):
3489 Call xg_clear_under_internal_border.
7c583cd8 3490 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3491
03f77f0a
CY
34922010-01-05 Chong Yidong <cyd@stupidchicken.com>
3493
3494 * keyboard.c (read_key_sequence): Catch keyboard switch after
3495 making a new tty frame (Bug#5095).
3496
2a1ef5be
KH
34972010-01-05 Kenichi Handa <handa@m17n.org>
3498
3499 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3500
e3eb1dae
SM
35012010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3502
3503 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3504 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3505 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3506
777013f2
MA
35072010-01-03 Michael Albinus <michael.albinus@gmx.de>
3508
3509 * dbusbind.c (xd_add_watch): Improve debug message.
3510 (xd_remove_watch): Improve debug message. If DATA is the session
3511 bus, unset D-Bus session environment.
3512 (Fdbus_init_bus): Pass the bus as argument to
3513 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3514
8932b1c2
CY
35152010-01-01 Chong Yidong <cyd@stupidchicken.com>
3516
87231e2c
CY
3517 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3518
4801c5fa
CY
3519 * lread.c (syms_of_lread): Make it clearer that these are the
3520 names of loaded files (Bug#5068).
3521
8932b1c2
CY
3522 * eval.c (run_hook_with_args): Handle the case where the global
3523 value has the obsolete single-function form (Bug#5026).
3524
11e3c684
CY
35252009-12-27 Chong Yidong <cyd@stupidchicken.com>
3526
3527 * minibuf.c (Fall_completions): Minor optimization.
3528
5b28ce35
EZ
35292009-12-26 Eli Zaretskii <eliz@gnu.org>
3530
5ce6e4f4
JB
3531 * .gdbinit (pgx): Fix display of composite glyphs.
3532 Display cmp.from and cmp.to as well.
3533 (pitx): Fix last change.
5b28ce35 3534
bcffff46
KH
35352009-12-25 Kenichi Handa <handa@m17n.org>
3536
3537 * composite.h (composition_adjust_point): Update prototype.
3538
3539 * composite.c (composition_reseat_it): Don't make a composition
3540 spanning over point.
3541 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3542 composable characters.
3543 (composition_adjust_point): New arg NEW_PT. Callers changed.
3544
3545 * keyboard.c (command_loop_1): Force redisplay if the last point
3546 was within a composition.
3547 (adjust_point_for_property): Don't adjust point for automatic
3548 composition when called after buffer modification.
3549
3f670e9a
EZ
35502009-12-19 Eli Zaretskii <eliz@gnu.org>
3551
5ce6e4f4
JB
3552 * .gdbinit (pitx): Don't use enum names, use their values.
3553 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3554 (pgx): Don't use enum names, use their values.
3555 (pitmethod): New helper command.
3556 (pitx): Use it to display iteration method.
3557 (pgrowit): New command.
3558
ad903955
EZ
3559 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3560
3f670e9a
EZ
3561 Update dependencies in Makefile.in.
3562
3563 * Makefile.in (alloc.o): Depend on termhooks.h.
3564 (atimer.o): Depend on blockinput.h.
3565 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3566 and frame.h.
3567 (callint.o): Depend on systime.h, coding.h, and composite.h.
3568 (callproc.o): Depend on buffer.h.
3569 (casefiddle.o): Don't depend on charset.h.
3570 (casetab.o): Depend on character.h.
3571 (ccl.o): Depend on composite.h.
3572 (chartab.o): Depend on ccl.h.
3573 (cm.o): Depend on dispextern.h.
3574 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3575 (coding.o): Don't depend on $(INTERVALS_H).
3576 (composite.o): Don't depend on dispextern.h explicitly (it's in
3577 $(INTERVALS_H)). Depend on ccl.h.
3578 (data.o): Depend on systime.h, coding.h, composite.h,
3579 dispextern.h, font.h, and ccl.h.
3580 (dired.o): Depend on composite.h.
3581 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3582 composite.h (it's in $(INTERVALS_H)).
3583 (doc.o): Depend on systime.h, coding.h, and composite.h.
3584 (editfns.o): Don't depend explicitly on dispextern.h.
3585 (emacs.o): Depend on frame.h and coding.h.
3586 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3587 (fileio.o): Depend on frame.h and commands.h. Don't depend
3588 explicitly on dispextern.h.
3589 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3590 composite.h.
3591 (fns.o): Don't depend on termhooks.h.
3592 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3593 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3594 coding.h, $(INTERVALS_H), window.h, xterm.h.
3595 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3596 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3597 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3598 fontset.h, ccl.h, and ftfont.h.
3599 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3600 (gtkutil.o): Depend on dispextern.h and composite.h.
3601 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3602 termhooks.h, and ccl.h.
3603 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3604 (intervals.o): Depend on systime.h and coding.h.
3605 (keyboard.o): Depend on composite.h and coding.h.
3606 (keymap.o): Depend on coding.h and frame.h.
3607 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3608 (macros.o): Depend on systime.h, coding.h, and composite.h.
3609 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3610 and atimer.h.
3611 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3612 dispextern.h explicitly.
0b5397c2
SM
3613 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3614 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3615 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3616 (regex.o): Don't depend on charset.h.
3617 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3618 (search.o): Don't depend explicitly on composite.h.
3619 (sound.o): Depend on atimer.h and systime.h.
3620 (syntax.o): Don't depend explicitly on composite.h.
3621 (sysdep.o): Depend on coding.h and composite.h.
3622 (term.o): Depend on xterm.h and buffer.h.
3623 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3624 (textprop.o): Don't depend on dispextern.h explicitly.
3625 (undo.o): Depend on dispextern.h.
3626 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3627 dispextern.h and composite.h explicitly.
3628 (xdisp.o): Depend on ccl.h.
3629 (xfaces.o): Depend on coding.h and ccl.h.
3630 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3631 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3632 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3633 ftfont.h.
3634 (xgselect.o): New dependency.
3635 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3636 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3637 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3638 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3639 (xsmfns.o): Depend on frame.h and dispextern.h.
3640 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3641 sysselect.h.
3642
7a6f7fea
AS
36432009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3644
3645 * font.c (Fclear_font_cache): Pass correct cache argument to
3646 font_clear_cache.
3647
f4c21026
AS
36482009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3649
3650 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3651 twice.
3652
f7ab0997
CY
36532009-12-15 Chong Yidong <cyd@stupidchicken.com>
3654
3655 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3656 calling file-remote-p. Reported by Jim Meyering.
3657
fa8e045a
MA
36582009-12-15 Michael Albinus <michael.albinus@gmx.de>
3659
3660 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3661 avoid compiler warnings. (Bug #5217)
fa8e045a 3662
a63dba42
KH
36632009-12-14 Kenichi Handa <handa@m17n.org>
3664
3665 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3666 in 8-bit encoding.
3667
5ce6e4f4 36682009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3669
3670 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3671 tooltip windows.
3672
223e5fc6
JD
36732009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3674
36acb2a7
JD
3675 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3676 Xatom_net_window_type.
3677
3678 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3679 Xatom_net_window_type.
3680
b8f00677
JD
3681 * xterm.c (my_log_handler): New function.
3682 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3683 so we can filter out buggy messages. (Bug #5120).
b8f00677 3684
e5f0bc9a
JD
3685 * xterm.c (xg_scroll_callback): Parameter list changed,
3686 use parameter GtkScrollType to determine scroll/line/page.
3687 Only allow dragging if a button < 4 is grabbed (bug #5177).
3688 (xg_end_scroll_callback): New function.
3689 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3690 xg_create_scroll_bar.
3691
3692 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3693 (scroll_end_callback): Remove.
3694 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3695 button-release-event. Replace value-changed event with change-value,
3696 bug #5177,
3697 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3698 bug #5177.
3699
3700 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3701 (xg_create_scroll_bar): Add GCallback end_callback.
3702
223e5fc6
JD
3703 * xftfont.c (QClcdfilter): New variable.
3704 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3705 (syms_of_xftfont): Initialize QClcdfilter.
3706
3c055b77
JD
37072009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3708
3709 * xsettings.c (struct xsettings): Add member seen.
3710 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3711 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3712 (apply_xft_settings): Only update Xft settings with what member seen
3713 indicates as new.
3714
05fe33ff
EZ
37152009-12-12 Eli Zaretskii <eliz@gnu.org>
3716
3717 * dispextern.h (struct text_pos): Use EMACS_INT;
3718 (struct glyph): Use EMACS_INT for charpos.
3719 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3720 region_beg_charpos, region_end_charpos,
3721 redisplay_end_trigger_charpos, and also for
3722 iterator_stack_entry.end_charpos and
3723 iterator_stack_entry.stop_charpos.
3724
e8d7886a
JD
37252009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3726
5ce6e4f4 3727 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3728 (xg_create_scroll_bar): Call scroll_end_callback on button release
3729 event (bug #5177).
3730 (xg_event_is_for_scrollbar): != replaced with ==.
3731
d0db2ec8
KH
37322009-12-12 Kenichi Handa <handa@m17n.org>
3733
3734 * ftfont.c (struct ftfont_info): New member matrix.
3735 (ftfont_open): Setup xftfont_info->matrix.
3736 (MFLTFontFT): New member matrix.
3737 (FLOOR, CEIL, ROUND): New macros.
3738 (ftfont_get_metrics): Handle matrix transformation.
3739 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3740
3741 * xftfont.c (struct xftfont_info): New member matrix.
3742 (xftfont_open): Setup xftfont_info->matrix.
3743
37442009-12-10 Kenichi Handa <handa@m17n.org>
3745
3746 * xdisp.c (append_space_for_newline): Consider face-remapping.
3747
2cc7b62f
AS
37482009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3749
b87dd913
AS
3750 * xsettings.c: Include "keyboard.h".
3751
eba5eb94
AS
3752 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3753
2cc7b62f
AS
3754 Fix implicit function declarations.
3755 * cmds.c: Include "frame.h".
3756 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3757 * frame.h: Move declaration of delete_frame outside of
3758 HAVE_WINDOW_SYSTEM.
3759
a4ef73c8
CY
37602009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3761
3762 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3763
3764 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3765 GTK builds.
3766
944a300c
AS
37672009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3768
3769 * unexelf.c (unexec): Don't search for .data twice.
3770
022eef62
CY
37712009-12-05 Chong Yidong <cyd@stupidchicken.com>
3772
426ac949
CY
3773 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3774 if push failed.
3775 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3776 of push_display_prop (Bug#5000).
3777
022eef62
CY
3778 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3779 value of font_list_entities (Bug#5085).
3780
be95bee9
JB
37812009-12-04 Juanma Barranquero <lekktu@gmail.com>
3782
3783 Fix `string-to-number' to deal consistently with integers and floats.
3784 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3785 trailing characters, not just whitespace.
3786 (read1): Pass new arg 0 to keep old behavior.
3787 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3788 trailing chars, as it is already done for integers. Doc fixes.
3789 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3790
24c2d7ce
EZ
37912009-12-04 Eli Zaretskii <eliz@gnu.org>
3792
0b5397c2
SM
3793 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3794 Delete unused enumeration value.
24c2d7ce 3795
7e694795
EZ
37962009-12-03 Eli Zaretskii <eliz@gnu.org>
3797
3798 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3799
84b31826
SM
38002009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3801
3802 * process.c (Fmake_network_process): Fix up the tests for
3803 "connectionless socket", so they DTRT for seqpacket sockets as well.
3804
f00c449b
SM
38052009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3806
3807 * process.c (Qseqpacket): New symbol.
3808 (HAVE_SEQPACKET): New macro.
3809 (Fmake_network_process): Accept new :type `seqpacket'.
3810 (init_process): Add `seqpacket' feature when applicable.
3811 (syms_of_process): Initialize Qseqpacket.
3812
8096a0ff
YM
38132009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3814
3815 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3816 if entity is Qnil.
3817
3e0de07f
SM
38182009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3819
3820 * print.c (print_preprocess): Preprocess the key_and_value table of
3821 hashtables, even tho they're "hidden" (bug#5082).
3822
abeafb2a
JD
38232009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3824
3825 * frame.c (frame_make_pointer_invisible)
3826 (frame_make_pointer_visible): Declare f before statements.
3827
4bf47195
EZ
38282009-11-28 Eli Zaretskii <eliz@gnu.org>
3829
3830 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3831 omitted dependencies on lisp.h.
3832
c525b3f2
JD
38332009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3834
ece2d4ed
JD
3835 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3836 is NULL.
3837
3838 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3839
3840 * frame.c (frame_make_pointer_invisible)
3e0de07f 3841 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3842 frame.
3843
c525b3f2
JD
3844 * search.c (simple_search): Remove warning by making *p const.
3845
2f00e299
DN
38462009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3847
3848 * xdisp.c (power_letter): Remove duplicate const.
3849
084b049b
JD
38502009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3851
a1fadc6f
JD
3852 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3853
5ce6e4f4 3854 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3855 defaults (bug #5025).
3856
28259cac
SM
38572009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3858
3859 * insdel.c (adjust_markers_for_delete): Move it in the
3860 right direction! (bug#4803)
3861
e8e14166
YM
38622009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3863
3864 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3865
3866 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3867
86677b58
GM
38682009-11-24 Glenn Morris <rgm@gnu.org>
3869
3870 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3871
581e51e8
JD
38722009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3873
cfc86c7a
JD
3874 * Makefile.in: Must create deps for ecrt0.o in its rule.
3875
581e51e8
JD
3876 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3877 because that is what Gtk+ font dialog understands.
3878
3879 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3880 of Fcopy_sequence.
3881 (font_open_by_name): Put name given into QCname for font-object returned.
3882
3883 * frame.c (x_set_font): Save original font name as frame parameter
3884 font-parameter.
3885
3886 * xsettings.c (set_default_xft_settings): New function.
3887 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3888 is found.
3889
8b264ecb
AS
38902009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3891
3892 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3893 searching backwards through multibyte buffer.
3894
872870b2
JD
38952009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3896
3897 * xterm.c: #include xgselect.h.
3898 (x_initialize): Call xgselect_initialize.
3899
3900 * xsettings.c (something_changedCB): C++ comments => C comments.
3901 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3902 does that now.
3903
3904 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3905 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3906 (scroll_bar_button_cb): Remove.
5ce6e4f4 3907 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3908 event.
3909 (xg_create_scroll_bar): Don't bind button-press-event and
3910 button-release-event.
3911
3912 * process.c: Include xgselect.h if defined (USE_GTK) ||
3913 defined (HAVE_GCONF).
3914 (wait_reading_process_output): Call xg_select for the same condition.
3915
3916 * xgselect.c (xg_select): New function to better integrate with
3917 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3918
3919 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3920
3921 * Makefile.in (XOBJ): Add xgselect.o.
3922
62a6e103
AS
39232009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3924
0b5397c2
SM
3925 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3926 Remove ignored second argument. All callers changed.
62a6e103
AS
3927 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3928 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3929 * xdisp.c (string_char_and_length): Likewise.
3930
b0ca0f33
DN
39312009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3932
3933 * xterm.c (x_new_font):
3934 * print.c (print_object):
3935 * cmds.c (Fself_insert_command): Move declarations before statements.
3936
dd5a6279
CY
39372009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3938
3939 * s/cygwin.h: Remove unneeded linker flags.
3940
4a8e097d
JD
39412009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3942
0d1d0d26
JD
3943 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3944
3945 * xsettings.h: Declare xsettings_get_system_font.
3946
3947 * xsettings.c (xsettings_get_system_font): New function.
3948 (init_gconf): No use initiating gconf unless we have Xft also.
3949 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3950 HAVE_GCONF.
3951
4a8e097d
JD
3952 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3953 add a blank entry so it doesn't collapse into nothing.
3954
8ab1650e
SM
39552009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3956
3957 * lread.c (Funintern): Comment out last change.
3958
82c602f0
RS
39592009-11-19 Richard Stallman <rms@gnu.org>
3960
3961 * lread.c (Funintern): Error if symbol is t or nil.
3962
87e32266
SM
39632009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3964
3965 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3966 representation of Lisp integers.
3967 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3968
1b9ac145
AS
39692009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3970
3971 * lisp.h: Remove declaration of Ffont_get_system_font.
3972 * xfns.c: Move include of "xsettings.h".
3973 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3974
dfb3c4c6
JD
39752009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3976
87e32266
SM
3977 * xsettings.c (something_changedCB, Ffont_get_system_font):
3978 Check use_system_font.
dfb3c4c6
JD
3979 (syms_of_xsettings): DEFVAR font-use-system-font.
3980
9370c1d8
AS
39812009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3982
25fe851a
AS
3983 * xfns.c (x_default_font_parameter): Remove dead assignment.
3984
9370c1d8
AS
3985 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3986
637fa988
JD
39872009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3988
87e32266 3989 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3990 not have FC_LCD_*. #define them if not there.
a6eb20d8 3991
87e32266 3992 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3993
637fa988
JD
3994 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3995
3996 * xterm.c (handle_one_xevent): Call xft_settings_event for
3997 ClientMessage, PropertyNotify and DestroyNotify.
3998 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3999 Call xsettings_initialize.
4000
4001 * xftfont.c (xftfont_fix_match): New function.
4002 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
4003 Call xftfont_fix_match after XftFontMatch.
4004
4005 * xfont.c (xfont_driver): Initialize all members.
4006
87e32266
SM
4007 * xfns.c (x_default_font_parameter):
4008 Try font from Ffont_get_system_font.
637fa988
JD
4009 Do not get font from x_default_parameter if we got one from
4010 Ffont_get_system_font.
87e32266 4011 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
4012
4013 * w32font.c (w32font_driver): Initialize all members.
4014
4015 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
4016
4017 * lisp.h: Declare syms_of_xsettings.
4018
87e32266
SM
4019 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
4020 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
4021
4022 * ftfont.c (ftfont_filter_properties): New function.
4023
4024 * frame.c (x_set_font): Remove unused variable lval.
4025
87e32266 4026 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
4027
4028 * font.c (font_put_extra): Don't return if val is nil, it means
4029 boolean option is off.
4030 (font_parse_fcname): Collect all extra properties in extra_props
4031 and call filter_properties for all drivers with extra_props and
4032 font as parameter.
87e32266
SM
4033 (font_open_entity): Do not use cache, it does not pick up new
4034 fontconfig settings like hinting.
637fa988
JD
4035 (font_load_for_lface): If spec had a name in it, store it in entity.
4036
a73f9c9d 4037 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
4038
4039 * config.in: HAVE_GCONF is new.
4040
4041 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
4042 xsettings.o is new.
4043
5a942932
KH
40442009-11-17 Kenichi Handa <handa@m17n.org>
4045
4046 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
4047 back to the default font in case that no suitable font is found.
4048
b7c7a4d1
SM
40492009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4050
4051 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
4052 Suggested by Chad Brown <yandros@mit.edu>.
4053 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
4054
072f1e39
JD
40552009-11-16 Jan Djärv <jan.h.d@swipnet.se>
4056
4057 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
4058
5d1e70a2
AS
40592009-11-14 Andreas Schwab <schwab@linux-m68k.org>
4060
87e32266 4061 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 4062
a53cfbe5
JD
40632009-11-14 Jan Djärv <jan.h.d@swipnet.se>
4064
473a99b7
JD
4065 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
4066 has a parent.
4067
a53cfbe5 4068 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 4069 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
4070
4071 * config.in: Generated (AUTO_DEPEND).
4072
f04bb9b2
MA
40732009-11-13 Michael Albinus <michael.albinus@gmx.de>
4074
b7c7a4d1 4075 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4076 Vdbus_registered_functions_table, because it contains also
4077 properties. Fix docstring.
b7c7a4d1 4078 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4079
8f11f7ec
SM
40802009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4081
4082 * alloc.c (mark_object): Don't reprocess marked strings.
4083 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4084 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4085
8a605fe8
KH
40862009-11-13 Kenichi Handa <handa@m17n.org>
4087
8f11f7ec 4088 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4089 semantics of Vword_combining_categories.
4090 (Vword_combining_categories): Describe the slight change of the
4091 semantics.
4092
241c4680
EZ
40932009-11-13 Eli Zaretskii <eliz@gnu.org>
4094
4095 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4096
4097 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4098
5d58e44c
SM
40992009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4100
4101 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4102
5e13f9d3
JB
41032009-11-12 Juanma Barranquero <lekktu@gmail.com>
4104
4105 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4106
cf54c754
DR
41072009-11-11 David Reitter <david.reitter@gmail.com>
4108
4109 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4110 variables to fix 2009-11-09 change.
4111
a4ada374
DN
41122009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4113
91433552
DN
4114 * process.c (ifflag_def): Make flag_sym constant.
4115 (Fnetwork_interface_info): Use a constant pointer.
4116 (ifflag_table):
4117 * xfns.c (cursor_bits):
4118 * xdisp.c (power_letter):
4119 * termcap.c (speeds, esctab):
4120 * sysdep.c (baud_convert):
4121 * keyboard.c (lispy_accent_codes, modifier_names):
4122 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4123 (jpeg_format, tiff_format, gif_format, svg_format)
4124 (interlace_start, interlace_increment, gs_format):
4125 * gtkutil.c (separator_names):
4126 * fringe.c (swap_nibble):
4127 * fns.c (base64_value_to_char, base64_char_to_value):
4128 * fileio.c (make_temp_name_tbl):
4129 * coding.c (suffixes): Make constant.
4130
f4265f6c
DN
4131 * frame.c (make_initial_frame):
4132 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4133 build_string.
4134 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4135
04420943
DN
4136 * s/freebsd.h:
4137 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4138
0a5d24ae
DN
4139 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4140 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4141
a4ada374
DN
4142 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4143 * xterm.c (syms_of_xterm):
4144 * xfaces.c (syms_of_xfaces):
4145 * xdisp.c (syms_of_xdisp):
4146 * lread.c (syms_of_lread):
4147 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4148 build_string.
91433552 4149
a4ada374
DN
4150 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4151
af98fc7f
SM
41522009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4153
8ab1650e 4154 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4155
e90292a9
JD
41562009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4157
4158 * keyboard.h: Declare timer_check.
4159
4160 * keyboard.c (timer_check_2): New function that does what the old
4161 timer_check did.
4162 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4163 returned, i.e. don't return -1 with timers pending.
4164
4165 * process.c: Remove extern declaration of timer_check.
4166
4167 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4168 even if timer_check returned -1.
4169
af98fc7f
SM
4170 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4171 xg_dialog_data.
e90292a9
JD
4172 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4173 the event loop.
4174 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4175 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4176 Destroy the dialog after xg_dialog_run.
4177
045b83c0
SM
41782009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4179
4180 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4181
1fb99a3a
JD
41822009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4183
4184 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4185
04e452cb
JB
41862009-11-09 Juanma Barranquero <lekktu@gmail.com>
4187
4188 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4189
ef7417fd
SM
41902009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4191
4192 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4193 w32menu.c, and nsmenu.m.
4194 Simplify the obsolete case where position is nil.
4195 (cleanup_popup_menu): New function, moved from nsmenu.m.
4196 (struct skp): Remove slot `notreal'.
4197 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4198 adjust callers.
4199 (single_menu_item): Adjust call to parse_menu_item.
4200 (syms_of_menu): Defsubr x-popup-menu.
4201 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4202 (keymap_panes): Don't export any more.
4203 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4204 (xmenu_show): Declare.
4205 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4206 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4207 * keyboard.h (parse_menu_item): Update declaration.
4208 * xmenu.c (Fx_popup_menu): Remove.
4209 (syms_of_xmenu): Don't defsubr x-popup-menu.
4210 * w32menu.c (Fx_popup_menu): Remove.
4211 (syms_of_w32menu): Don't defsubr x-popup-menu.
4212 * nsmenu.m (cleanup_popup_menu): Remove.
4213 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4214 moved to menu.c's Fx_popup_menu.
4215 (Fx_popup_menu): Remove.
4216 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4217 menu_items (it's done in menu.c already).
4218
424d6179
SM
42192009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4220
4221 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4222 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4223
c0df13a6 42242009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4225
4226 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4227 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4228 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4229 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4230
2de9f71c
SM
42312009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4232
4233 Let integers use up 2 tags to give them one extra bit and thus double
4234 their range.
4235 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4236 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4237 New macros.
4238 (enum Lisp_Type): Use them. Give explicit values.
4239 (Lisp_Type_Limit): Remove.
4240 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4241 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4242 Pay attention to USE_2_TAGS_FOR_INTS.
4243 (INTEGERP): Use LISP_INT_TAG_P.
4244 * fns.c (internal_equal): Simplify the default case.
4245 (sxhash): Use case_Lisp_Int.
4246 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4247 any more.
4248 (Ftype_of): Use case_Lisp_Int.
4249 (store_symval_forwarding): Take into account the fact that Ints can
4250 now have more than one tag.
4251 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4252 buffer_slot_type_mismatch):
4253 * xfaces.c (face_attr_equal_p):
4254 * print.c (print_object):
4255 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4256 Use case_Lisp_Int.
4257
323637a2
EZ
42582009-11-06 Eli Zaretskii <eliz@gnu.org>
4259
7ac65b38
EZ
4260 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4261
323637a2
EZ
4262 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4263 warning.
4264
e511451f
JD
42652009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4266
4267 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4268
4269 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4270
4271 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4272 ButtonPressRelease and MotionNotify (bug#4870).
4273
5e2327cf
DN
42742009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4275
5adc433e
DN
4276 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4277
d67b4f80
DN
4278 * xterm.c (syms_of_xterm):
4279 * xselect.c (syms_of_xselect):
4280 * xmenu.c (syms_of_xmenu):
4281 * xfns.c (syms_of_xfns):
4282 * xfaces.c (syms_of_xfaces):
4283 * xdisp.c (syms_of_xdisp):
4284 * window.c (syms_of_window):
4285 * w32fns.c (syms_of_w32fns):
4286 * undo.c (syms_of_undo):
4287 * textprop.c (syms_of_textprop):
4288 * terminal.c (syms_of_terminal):
4289 * syntax.c (syms_of_syntax):
4290 * sound.c (syms_of_sound):
4291 * search.c (syms_of_search):
4292 * print.c (syms_of_print):
4293 * minibuf.c (syms_of_minibuf):
4294 * macros.c (syms_of_macros):
4295 * keymap.c (syms_of_keymap, initial_define_key)
4296 (initial_define_lispy_key):
4297 * keyboard.c (syms_of_keyboard):
4298 * insdel.c (syms_of_insdel):
4299 * image.c (syms_of_image):
4300 * fringe.c (syms_of_fringe):
4301 * frame.c (syms_of_frame):
4302 * fontset.c (syms_of_fontset):
4303 * fns.c (syms_of_fns):
4304 * fns.c (syms_of_fns):
4305 * fileio.c (syms_of_fileio):
4306 * fileio.c (syms_of_fileio):
4307 * eval.c (syms_of_eval):
4308 * doc.c (syms_of_doc):
4309 * dispnew.c (syms_of_display):
4310 * dired.c (syms_of_dired):
4311 * dbusbind.c (syms_of_dbusbind):
4312 * data.c (syms_of_data):
4313 * composite.c (syms_of_composite):
4314 * coding.c (syms_of_coding):
4315 * cmds.c (syms_of_cmds):
4316 * charset.c (define_charset_internal, syms_of_character):
4317 * ccl.c (syms_of_ccl):
4318 * category.c (syms_of_category, init_category_once):
4319 * casetab.c (syms_of_casetab):
4320 * casefiddle.c (syms_of_casefiddle):
4321 * callint.c (syms_of_callint):
4322 * bytecode.c (syms_of_bytecode):
4323 * buffer.c (keys_of_buffer, syms_of_buffer):
4324 * alloc.c (syms_of_alloc):
4325 * process.c (syms_of_process, init_process):
4326 * lread.c (syms_of_lread, init_obarray):
4327 * font.c (build_style_table):
4328 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4329 intern_c_string, calls to make_pure_string with
4330 make_pure_c_string. Use pure_cons instead of Fcons.
4331
5e2327cf
DN
4332 * process.c (socket_options): Make it const.
4333 (set_socket_option, init_process): Use a const pointer.
4334
4335 * lread.c (intern_c_string): New function.
4336 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4337 (defvar_int): Uset it. Make the name const char*.
4338
4339 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4340 (defvar_int): Update prototypes.
4341 (DEFUN, EXFUN): Support for prototypes is now required.
4342 (intern_c_string): New prototype.
4343 (struct Lisp_Subr): Make symbol_name constant.
4344
4345 * font.c (struct table_entry): Remove unused member. Make NAMES
4346 constant.
4347 (weight_table, slant_table, width_table): Make constant.
4348
4349 * emacs.c (struct standard_args): Make name and longname constant.
4350
4351 * character.h (DEFSYM): Use intern_c_string.
4352
a56eaaef
DN
43532009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4354
4355 * alloc.c (make_pure_c_string): New function.
4356
4357 * eval.c (Fautoload): Purecopy all arguments.
4358
f6a07420
KH
43592009-11-05 Kenichi Handa <handa@m17n.org>
4360
4361 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4362 the buffer in case of replace.
4363
5d28d4b1
DN
43642009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4365
4366 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4367
b349d111
SM
43682009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4369
d528b1ce
SM
4370 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4371 when applicable (bug#4851).
4372
b349d111
SM
4373 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4374 (P_): Support for prototypes is now required.
4375
c38eb027
CY
43762009-10-31 Chong Yidong <cyd@stupidchicken.com>
4377
4378 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4379 (Bug#4827).
4380
0405f8d9
EZ
43812009-10-30 Eli Zaretskii <eliz@gnu.org>
4382
d528b1ce 4383 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4384
ca0a881a
DN
43852009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4386
4387 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4388
d528b1ce
SM
4389 * lread.c (Fload): Purecopy the file name when building
4390 Vpreloaded_file_list.
ca0a881a 4391
47e0e0e4
JR
43922009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4393
4394 * w32fns.c (syms_of_w32fns): Change default value of
4395 w32-scroll-lock-modifier to nil. (Bug#2827)
4396
057bce6f
JB
43972009-10-26 Juanma Barranquero <lekktu@gmail.com>
4398
782a943e 4399 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4400
242bc74c
AS
44012009-10-26 Andreas Schwab <schwab@redhat.com>
4402
4403 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4404
522d013a
JB
44052009-10-26 Juanma Barranquero <lekktu@gmail.com>
4406
4407 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4408 For delta < 0, skip check that only makes sense when the mini-window
4409 is going to be enlarged. (Bug#4534)
4410
18060980
CY
44112009-10-25 Chong Yidong <cyd@stupidchicken.com>
4412
4413 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4414 string in menu maps (Bug#4471).
4415
fec8f0fe
CY
44162009-10-24 Chong Yidong <cyd@stupidchicken.com>
4417
4418 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4419 FRAME_NS_VIEW on terminal frames (Bug#4765).
4420
10d66ec0
AS
44212009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4422
1cae01f7
AS
4423 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4424 DBUS_TYPE_UINTnn separately to get proper sign extension.
4425
58a12889
AS
4426 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4427 can properly handle unsigned types.
d528b1ce 4428 (make_uid, make_gid): Remove.
58a12889 4429
987c9327
AS
4430 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4431 types again.
4432
522d013a 4433 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4434 (system_process_attributes): Likewise.
4435
905a9ed3
DN
44362009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4437
4438 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4439
4440 * eval.c (Fautoload): Purecopy the filename. Simplify.
4441
4442 * category.c (Fdefine_category): Purecopy docstring.
4443
a599b3e8
AS
44442009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4445
7b792fc9
AS
4446 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4447
a599b3e8
AS
4448 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4449
b35ac83e
CY
44502009-10-23 Chong Yidong <cyd@stupidchicken.com>
4451
4452 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4453 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4454 (Bug#4775).
4455
e8903e00
SM
44562009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4457
4458 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4459 (init_fileio_once):
4460 * lisp.h (init_fileio_once): Remove.
4461 * emacs.c (main): Don't call init_fileio_once.
4462
8f43cbf3
DN
44632009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4464
4465 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4466
26898943
AS
44672009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4468
4469 * doprnt.c (doprnt): Fix overflow check.
4470
5c646d5a
JD
44712009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4472
3132a7ea
JD
4473 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4474
5c646d5a
JD
4475 * xterm.h (x_wait_for_event): Declare it.
4476
4477 * xterm.c (pending_event_wait): New variable.
4478 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4479 see pending_event_wait.eventtype.
4480 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4481 (x_new_font): Call change_frame_size with new rows/columns before we
4482 try to resize the frame.
5c646d5a 4483 (x_wait_for_event): New function.
d528b1ce
SM
4484 (x_set_window_size_1): Don't change gravity unless change_gravity
4485 is set.
5c646d5a
JD
4486 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4487 don't change frame size, instead wait for the ConfigureNotify.
4488 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4489 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4490 (x_initialize): Initialize pending_event_wait.
4491
4492 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4493 size.
4494
4495 * widget.c (EmacsFrameSetValues): Add comment.
4496 (EmacsFrameSetCharSize): Just call x_set_window_size.
4497
4498 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4499 x_wait_for_event.
d528b1ce 4500 (flush_and_sync): Remove again.
5c646d5a
JD
4501 (xg_get_font_name): Suggest monospace if no previous font is known.
4502
e9c1637d
SM
45032009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4504
4505 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4506 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4507
5a72cccb
YM
45082009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4509
4510 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4511 processing pending events when event is filtered for input method.
ab04798f 4512 (Bug#3681)
5a72cccb 4513
2629aa37
JB
45142009-10-20 Juanma Barranquero <lekktu@gmail.com>
4515
4516 * fns.c: Add #endif accidentally removed in previous change.
4517
c3417a74
DN
45182009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4519
4520 * fns.c: Remove code for unsupported system: MAC_OS.
4521 * image.c: Likewise. Include setjmp.h.
4522
9685cef2
JD
45232009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4524
4525 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4526 pixel -1 (bug #4742).
4527
d7306fe6
DN
45282009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4529
019d2c4c
DN
4530 * process.c (create_pty): Remove conditionals for no longer
4531 supported systems: UNIPLUS and RTU.
4532
ee6bacd4
DN
4533 * xterm.c:
4534 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4535
d7306fe6
DN
4536 * alloc.c: Do not define struct catchtag.
4537 * eval.c: Move struct catchtag definition ...
4538 * lisp.h: ... here.
4539
4540 * image.c: Move png.h #include earlier to avoid warnings.
4541
4542 * xterm.c:
4543 * xsmfns.c:
4544 * xselect.c:
4545 * xrdb.c:
4546 * xmenu.c:
4547 * xftfont.c:
4548 * xfont.c:
4549 * xfns.c:
4550 * xfaces.c:
4551 * xdisp.c:
4552 * window.c:
4553 * widget.c:
4554 * w32xfns.c:
4555 * w32uniscribe.c:
4556 * w32term.c:
4557 * w32select.c:
4558 * w32reg.c:
4559 * w32proc.c:
4560 * w32menu.c:
4561 * w32inevt.c:
4562 * w32heap.c:
4563 * w32font.c:
4564 * w32fns.c:
4565 * w32console.c:
4566 * w32.c:
4567 * w16select.c:
4568 * vm-limit.c:
4569 * unexsol.c:
4570 * unexec.c:
4571 * unexcw.c:
4572 * unexaix.c:
4573 * undo.c:
4574 * tparam.c:
4575 * textprop.c:
4576 * terminfo.c:
4577 * terminal.c:
4578 * termcap.c:
4579 * term.c:
4580 * syntax.c:
4581 * sound.c:
4582 * sheap.c:
4583 * search.c:
4584 * scroll.c:
4585 * region-cache.c:
4586 * regex.c:
4587 * ralloc.c:
4588 * process.c:
4589 * print.c:
b024548b
DN
4590 * nsterm.m:
4591 * nsselect.m:
4592 * nsmenu.m:
4593 * nsimage.m:
4594 * nsfont.m:
4595 * nsfns.m:
d7306fe6
DN
4596 * msdos.c:
4597 * minibuf.c:
4598 * menu.c:
4599 * marker.c:
4600 * macros.c:
4601 * keymap.c:
4602 * keyboard.c:
4603 * intervals.c:
4604 * insdel.c:
4605 * indent.c:
4606 * gtkutil.c:
4607 * ftxfont.c:
4608 * ftfont.c:
4609 * fringe.c:
4610 * frame.c:
4611 * fontset.c:
4612 * font.c:
4613 * fns.c:
4614 * floatfns.c:
4615 * filelock.c:
4616 * fileio.c:
4617 * emacs.c:
4618 * editfns.c:
4619 * dosfns.c:
4620 * doprnt.c:
4621 * doc.c:
4622 * dispnew.c:
4623 * dired.c:
4624 * dbusbind.c:
4625 * data.c:
4626 * composite.c:
4627 * coding.c:
4628 * cmds.c:
4629 * cm.c:
4630 * chartab.c:
4631 * charset.c:
4632 * character.c:
4633 * ccl.c:
4634 * category.c:
4635 * casetab.c:
4636 * casefiddle.c:
4637 * callproc.c:
4638 * callint.c:
4639 * bytecode.c:
4640 * buffer.c:
4641 * atimer.c: Include setjmp.h. (Bug#4643)
4642
fd5f21e6
SM
46432009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4644
4c0354d7
SM
4645 Remove leftover table unibyte_to_multibyte_table.
4646 * character.c (unibyte_to_multibyte_table): Remove.
4647 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4648 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4649 * character.h (UNIBYTE_TO_CHAR): New macro.
4650 (MAKE_CHAR_MULTIBYTE): Use it.
4651 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4652 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4653 (message_dolog, set_message_1):
4654 * search.c (Freplace_match):
4655 * editfns.c (Fcompare_buffer_substrings):
4656 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4657 (concat):
4658 * insdel.c (copy_text, count_size_as_multibyte):
4659 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4660 * term.c (produce_glyphs):
4661 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4662 * regex.c (RE_CHAR_TO_MULTIBYTE):
4663 * cmds.c (internal_self_insert):
4664 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4665
fd5f21e6
SM
4666 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4667
4418646e
DN
46682009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4669
4670 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4671
35f5c1d2
JB
46722009-10-16 Juanma Barranquero <lekktu@gmail.com>
4673
4674 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4675
a0cd8f6b
AR
46762009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4677
4678 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4679 still needed under Tiger.
4680
4681 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4682
4683 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4684 __Apple__.
4685
4686 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4687
01a8d3fa
KH
46882009-10-15 Kenichi Handa <handa@m17n.org>
4689
4690 * print.c (print_object): Escape a symbol like "2E10" too.
4691
bf6c75c9 46922009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4693
4694 Cleanups and changes for 64-bit compile under Snow Leopard.
4695 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4696
4697 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4698
c5959062 4699 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4700 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4701 cast argument.
4702 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4703 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4704
4705 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4706
4707 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4708 where appropriate.
4709
4710 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4711 where appropriate.
6e4780c5
JB
4712 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4713 Use stringWithUTF8String.
bf6c75c9
AR
4714 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4715
6e4780c5
JB
4716 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4717 Add formal protocol mention to inheritance.
bf6c75c9
AR
4718 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4719
6e4780c5
JB
4720 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4721 Fix printf format.
bf6c75c9
AR
4722 (ns_query_color): Use CGFloat where appropriate.
4723 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4724 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4725 argument.
4726
3d87f118
AR
4727 * config.in (NS_HAVE_NSINTEGER): Drop.
4728
a95c8102
AR
4729 * dbusbind.c (dbus-method-return-internal)
4730 (dbus-method-error-internal): Use long format in printf, and cast
4731 argument.
4732
4733 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4734 in printf, and cast argument.
4735
6873acca 4736 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4737 cast argument.
4738
9ec6f100
GM
47392009-10-11 Glenn Morris <rgm@gnu.org>
4740
4741 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4742
5be883cd
JD
47432009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4744
4745 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4746 menu bar with a small width so it doesn't enlarge the frame.
4747
d7a39b51
JB
47482009-10-08 Juanma Barranquero <lekktu@gmail.com>
4749
4750 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4751
0c2b6f8e
GM
47522009-10-06 Glenn Morris <rgm@gnu.org>
4753
4754 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4755 SOME_MACHINE_LISP (this enters indirectly via DOC).
4756
e02131a2
EZ
47572009-10-05 Eli Zaretskii <eliz@gnu.org>
4758
4759 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4760
b4744254
EZ
47612009-10-04 Eli Zaretskii <eliz@gnu.org>
4762
4763 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4764 Doc fix.
4765
dbf64827
JB
47662009-10-03 Martin Rudalics <rudalics@gmx.at>
4767
4768 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4769
e9a0aef8
MA
47702009-10-02 Michael Albinus <michael.albinus@gmx.de>
4771
d528b1ce 4772 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4773 used anymore outside fileio.c.
4774
4775 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4776
64eb2b56
JB
47772009-10-01 Juanma Barranquero <lekktu@gmail.com>
4778
4779 * lisp.h (Qdelete_directory_internal):
4780 Declare, instead of Qdelete_directory.
4781
4782 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4783
9d28c33e
SM
47842009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4785
4786 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4787
9d8f3bd9
MA
47882009-10-01 Michael Albinus <michael.albinus@gmx.de>
4789
9d28c33e 4790 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4791 Fdelete_directory. It is not a command anymore. It has no file
4792 name handler.
4793
9694740b
SM
47942009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4795
4796 * xdisp.c (get_next_display_element): Use an enum in last change.
4797
748e162f
KH
47982009-09-28 Kenichi Handa <handa@m17n.org>
4799
9694740b 4800 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4801 unibyte_display_via_language_environment in handling
4802 Vnobreak_char_display.
4803
17efd58d
AR
48042009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4805
4806 * nsterm.h (ns_app_name): New extern variable.
4807
4808 * nsterm.m (ns_app_name): New variable.
4809 (ns_term_init): Set and use it.
4810 (ns_term_shutdown): Use it.
4811
4812 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4813 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4814
4815 * nsfns.m (ns_set_name_iconic, ns_set_name)
4816 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4817 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4818
9694740b
SM
4819 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4820 Remove double-casting in client_data comparison.
31c2d412 4821
3208cb35
YM
48222009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4823
4824 * keyboard.c (make_lispy_event): Remember last wheel direction.
4825 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4826
b7d552d6
GM
48272009-09-26 Glenn Morris <rgm@gnu.org>
4828
4829 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4830 internal.elc. Add term/pc-win.elc.
4831 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4832 term/x-win.elc.
4833 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4834 term/w32-win.elc.
4835 (NS_SUPPORT): New.
4836 (lisp): Add NS_SUPPORT.
4837 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4838
4ff670a8
DR
48392009-09-25 David Reitter <david.reitter@gmail.com>
4840
4841 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4842 on Mac OS X 10.6+ (bug#4513).
4843
feabfb6c
JB
48442009-09-24 Juanma Barranquero <lekktu@gmail.com>
4845
4846 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4847 some parts of Emacs code (like font selection) don't grok them.
4848 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4849
de59072a
AS
48502009-09-24 Andreas Schwab <schwab@redhat.com>
4851
4852 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4853
a489517b
JB
48542009-09-24 Juanma Barranquero <lekktu@gmail.com>
4855
4856 * dired.c (Fdirectory_files): Fix typo in docstring.
4857
0592970c
AR
48582009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4859
4860 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4861 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4862 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4863 under GNUstep.
4864 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4865
4866 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4867 glyph advancement.
4868
48e8a88b
AR
48692009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4870
4871 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4872 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4873
4874 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4875 deleted (bug #4492).
4876
e14f0a78
AR
4877 * nsfont.m (Vns_reg_to_script): New lisp variable.
4878 (syms_of_nsfont): Declare it.
4879 (ns_registry_to_script): New function.
4880 (ns_get_req_script): Call it.
4881 (ns_findfonts): Don't give up on non-unicode registry.
4882
4883 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4884
5b650faa
SM
48852009-09-20 Tom Tromey <tromey@redhat.com>
4886
4887 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4888 batch mode (bug#4228).
4889
a489517b 48902009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4891
4892 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4893 carefully. (Bug #4339)
0bae4e09 4894
fcfe06f3
CY
48952009-09-18 Chong Yidong <cyd@stupidchicken.com>
4896
d798ba87 4897 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4898
31642728
AR
48992009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4900
4901 * emacs.c (inhibit_x_resources): Update doc string for NS.
4902 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4903 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4904
4905 * nsterm.h (ns_no_defaults): Remove.
4906
4907 * nsterm.m (ns_no_defaults): Remove.
4908 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4909 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4910 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4911 don't update the NSWindow itself.
4912 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4913 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4914
4915 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4916 ns_use_qd_smoothing.
4917
4918 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4919 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4920 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4921 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4922
8686ac71
JB
49232009-09-17 Juanma Barranquero <lekktu@gmail.com>
4924
4925 * emacs.c (inhibit_x_resources): New variable.
4926 (main) [HAVE_NS]: Don't process --quick command line option.
4927 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4928
4929 * lisp.h (inhibit_x_resources): Declare it extern.
4930
4931 * w32reg.c (x_get_string_resource):
4932 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4933
e227ba05
EZ
49342009-09-17 Eli Zaretskii <eliz@gnu.org>
4935
362654a6
JB
4936 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4937 Add lisp/term/internal.elc.
e227ba05 4938
742d40e8
SM
49392009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4940
4941 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4942 (bug#4461).
4943
005bd5a2
DN
49442009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4945
4946 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4947
4948 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4949 (OBJECTS_MACHINE): Remove, unused.
4950
f9af9719
SM
49512009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4952
4953 * frame.c (x_get_resource_string): Remove unused.
4954
0307c7d2
JD
49552009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4956
4957 * xterm.c (x_new_font): Call change_frame_size before calling
4958 x_set_window_size, in case frame size won't change.
4959
4960 * frame.c (x_set_font): Remove dead code.
4961
428b13d6
SM
49622009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4963
4964 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4965
5766c380
SM
49662009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4967
4968 * lread.c (Fload): Don't output a message after loading an obsolete
4969 package any more (done in Lisp now).
4970
2fd0161b
CY
49712009-09-12 Chong Yidong <cyd@stupidchicken.com>
4972
4973 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4974
bc5e75b6
SM
49752009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4976
4977 * keymap.c (Fwhere_is_internal): Use nconc2.
4978
c31c985e
AM
49792009-09-11 Alan Mackenzie <acm@muc.de>
4980
4981 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4982 batch mode.
4983
78012bd2
AS
49842009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4985
4986 * xdisp.c (display_mode_element): Detect cycles.
4987
9d889332
SM
49882009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4989
4990 * keymap.c (where_is_internal): Don't erroneously return nil right after
4991 filling the cache.
4992 (where_is_internal_1): Fix up typo.
4993
7ab5d780
GM
49942009-09-11 Glenn Morris <rgm@gnu.org>
4995
4996 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4997 share a common doc-string.
4998
5238a749
SM
49992009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
5000
66d77eda
SM
5001 * keymap.c (get_keymap): Return the actual keymap symbol rather than
5002 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
5003
5238a749
SM
5004 * keymap.c (QCadvertised_binding): New constant.
5005 (syms_of_keymap): Initialize it.
5006 (Fwhere_is_internal): Try and use bindings from :advertised-binding
5007 if applicable.
5008
19f48442
SM
50092009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
5010
50d4ba39
SM
5011 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
5012 (parse_menu_item): Streamline since bindings are recomputed all the
5013 time anyway. Don't bother checking Vdefine_key_rebound_commands any
5014 more and don't support lmenu's menu-alias any more either.
5015
a88a5372
SM
5016 * keymap.c (where_is_internal_data): Make noindirect a boolean.
5017 (where_is_internal): Strip it down to only traverse the keymaps.
5018 Move the cache handling from Fwhere_is_internal to here.
5019 (Fwhere_is_internal): Move the handling of remapping and the choice of
5020 the best binding from where_is_internal to here.
5021 Unify the cached/noncached paths, so remapping is also handled
5022 correctly when the cache is used, and so the cache can be used to
5023 speed up remap-handling when applicable.
5024 Give preference to non-remapped bindings.
5025 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
5026 non-remapped bindings.
5027 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
5028 command remapping.
5029
19f48442
SM
5030 * xdisp.c (display_mode_element): Move list length limit from 50 to
5031 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
5032
599498c3 50332009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
5034
5035 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
5036
f9b7b5ac
SM
50372009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
5038
a53af587
JB
5039 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
5040 (Bug#4334)
5041
f9b7b5ac
SM
5042 * keymap.c (where_is_internal): Filter out shadowed remappings.
5043 Assume that where_is_internal returns unshadowed bindings to simplify
5044 the code and get rid of the gotos. Use ASIZE.
5045
04f4b72d
JD
50462009-09-04 Jan Djärv <jan.h.d@swipnet.se>
5047
4da146f2
JD
5048 * xterm.c (x_focus_changed): If we get a focusout and pointer
5049 is invisible, make it visible.
5050
04f4b72d
JD
5051 * xterm.h: Remove condition for declaration of
5052 x_*_window_to_frame.
5053
7cef7ce3
SM
50542009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
5055
5056 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
5057 initial terminal as well.
5058
a54fa5b7
JD
50592009-09-02 Jan Djärv <jan.h.d@swipnet.se>
5060
5061 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 5062 x_menubar_window_to_frame.
a54fa5b7 5063
50426a04 5064 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
5065 (XTmouse_position): Do not return valid positions
5066 for clicks in the menubar and the toolbar for Gtk+.
5067
5068 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
5069 if the widget for the event has the same top level as a frame,
5070 return the frame.
5071 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
5072 internal windows, bug #4122.
5073 (x_non_menubar_window_to_frame): Remove.
5074
5a021dd0
GM
50752009-09-02 Glenn Morris <rgm@gnu.org>
5076
5077 * buffer.c (default-major-mode): Move most of the doc from here...
5078 (major-mode): ... to here.
5079
548fe2f3
NR
50802009-08-30 Nick Roberts <nickrob@snap.net.nz>
5081
5082 * process.c (wait_reading_process_output): Keep the descriptor
5083 when pty is used by a non-child process, e.g., in I/O buffer of
5084 GDB this allows inferior to be restarted.
5085
e0840eef
EZ
50862009-08-29 Eli Zaretskii <eliz@gnu.org>
5087
5088 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5089 both branches into one.
5090
82e98df4
SM
50912009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5092
5093 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5094 (main): Use enable-multibyte-characters rather than
5095 default-enable-multibyte-characters. Output a warning message when
5096 running a unibyte session.
5097
890617cb
YM
50982009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5099
5100 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5101 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5102 (copy_data_segment): Also copy __program_vars section.
5103 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5104 (dump_it) [LC_DYLD_INFO]: Use it.
5105
5106 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5107
e7adeadc
EZ
51082009-08-28 Eli Zaretskii <eliz@gnu.org>
5109
5110 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5111 $(SRC)/buildobj.h.
5112 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5113 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5114 $(SRC)/buildobj.h.
5115 (clean): Add buildobj.h.
5116
3ed8bbdc
TZ
51172009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5118
5119 * print.c (print_object): Set escapeflag to 1 when printing
5120 hashtable keys and values.
5121
155a6764
SM
51222009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5123
5124 * lread.c (read_integer): Use doubles (and potentially return a float
5125 number) as we do in string-to-number.
5126 (read1): Use strtol to read integers, signal errors on strtol's
5127 overflow and use floats if strtol's output is too large for
5128 Elisp integers.
5129
877610de
EZ
51302009-08-27 Eli Zaretskii <eliz@gnu.org>
5131
5132 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5133 (make-buildobj-SH): Fix last change.
5134 (SRC): Move to before where it's first used.
5135
ef73e7be
KH
51362009-08-27 Kenichi Handa <handa@m17n.org>
5137
550c8289
KH
5138 * process.c (send_process): Use encode_coding_object instead of
5139 encode_coding_string to perform eol-conversion even if the string
5140 is unibyte.
5141
60afa08d
KH
5142 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5143 character.
5144
ef73e7be 5145 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5146 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5147
7b3a82d7
DN
51482009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5149
5654bf63
DN
5150 * callproc.c (Fcall_process): Remove always true #if.
5151
7b3a82d7
DN
5152 * lisp.h: Replace #if 0 code for checking with text pointing to
5153 the --enable-checking configure flag.
5154
5155 * emacs.c (main): Mention the --enable-profiling configure flag
5156 instead of using CFLAGS.
5157
878bde49
KR
51582009-08-26 Ken Raeburn <raeburn@raeburn.org>
5159
5160 * Makefile.in (buildobj.h): New target.
5161 (doc.o): Depend on it.
5162 (temacs${EXEEXT}): Don't generate buildobj.lst.
5163 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5164 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5165 ($(BLD)/doc.$(O)): Depend on it.
5166 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5167 provided by Eli Zaretskii.)
5168 ($(TEMACS)): Don't generate buildobj.lst.
5169 * doc.c: Include buildobj.h.
5170 (buildobj): New static variable.
5171 (Fsnarf_documentation): Use it, instead of opening and reading
5172 buildobj.lst.
5173
1574224c
MA
51742009-08-25 Michael Albinus <michael.albinus@gmx.de>
5175
5176 * dbusbind.c (Fdbus_call_method)
5177 (Fdbus_call_method_asynchronously): Use English numeric format for
5178 timeout values in doc string.
5179
d9da2f45
KH
51802009-08-25 Kenichi Handa <handa@m17n.org>
5181
ef73e7be
KH
5182 * alloc.c (mark_char_table): New function.
5183 (mark_object): Use mark_char_table for a char-table.
5184
d9da2f45
KH
5185 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5186 (CHAR_TABLE_REF): Use it.
5187
c8edcc01
KR
51882009-08-23 Ken Raeburn <raeburn@raeburn.org>
5189
5190 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5191 before invoking the newly build emacs to check for load-path
5192 shadowing.
5193
7763401b
GM
51942009-08-22 Glenn Morris <rgm@gnu.org>
5195
5196 * Makefile.in (bootstrap_exe): New variable.
5197 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5198 Use ${bootstrap_exe}.
5199
729eadda
EZ
52002009-08-22 Eli Zaretskii <eliz@gnu.org>
5201
5202 * coding.h (encode_coding_string): Don't encode unibyte strings.
5203 (Bug#4047)
5204
eb4c6ace
MA
52052009-08-22 Michael Albinus <michael.albinus@gmx.de>
5206
5207 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5208
5209 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5210 intended as hotfix only.
5211 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5212
36e34d1b
AR
52132009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5214
5215 * nsterm.m (ns_get_color): Update documentation properly for last
5216 change, and clean up loose ends in the code left by it. Fix
5217 longstanding bug with 16-bit hex parsing, and add support for
5218 yet another X11 format (rgb:r/g/b) for compatibility.
5219 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5220 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5221
f983eb8a
SM
52222009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5223
5224 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5225
3f56d3c6
MA
52262009-08-20 Michael Albinus <michael.albinus@gmx.de>
5227
5228 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5229 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5230 (xd_initialize, xd_pending_messages): Check, whether
5231 $DBUS_SESSION_BUS_ADDRESS is set.
5232
fb641d68
YM
52332009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5234
5235 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5236
5237 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5238
cf59a374
GM
52392009-08-20 Glenn Morris <rgm@gnu.org>
5240
5241 * emacs.c (system-type): Doc fix.
5242
1373f3be
SM
52432009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5244
5245 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5246 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5247
058ed861
MA
52482009-08-18 Michael Albinus <michael.albinus@gmx.de>
5249
1373f3be
SM
5250 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5251 New functions.
058ed861
MA
5252 (xd_initialize): Revert change from 2009-08-16.
5253
563a866e 52542009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5255
5256 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5257 font-group vector, return nil.
5fc05db0 5258
e42bdf01
CY
52592009-08-17 Chong Yidong <cyd@stupidchicken.com>
5260
5261 * process.c (status_notify): Don't perform redisplay.
5262 (Fdelete_process, list_processes_1, process_send_signal):
5263 Expliticly perform redisplay.
5264 (wait_reading_process_output): Always check process status, but
5265 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5266
4230ab74
KR
52672009-08-17 Ken Raeburn <raeburn@raeburn.org>
5268
1373f3be 5269 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5270 (XFLOAT_INIT): New macro for storing a float value.
5271 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5272 * fns.c (sxhash): Copy out the value of a float in order to
5273 examine its bytes.
5274 * dbusbind.c (xd_append_arg): Likewise.
5275
4230ab74
KR
5276 * emacs.c (main): Don't call syms_of_data twice.
5277
a0645cdd
MA
52782009-08-16 Michael Albinus <michael.albinus@gmx.de>
5279
5280 * dbusbind.c (xd_initialize): Add connection file descriptor to
5281 input_wait_mask, in order to let select() detect, whether a new
5282 message has been arrived.
ca4f31ea 5283 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5284
485db0ba
MA
52852009-08-15 Michael Albinus <michael.albinus@gmx.de>
5286
1373f3be
SM
5287 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5288 New functions.
485db0ba
MA
5289
5290 * lisp.h (xd_pending_messages): Declare.
5291
5292 * keyboard.c (readable_events): Call xd_pending_messages.
5293
b5b98ff4
CY
52942009-08-15 Chong Yidong <cyd@stupidchicken.com>
5295
1373f3be 5296 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5297
f8354c6e
CY
5298 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5299
b5b98ff4
CY
5300 * buffer.c (set_buffer_internal_1)
5301 (swap_out_buffer_local_variables): Check for unbound local
5302 variables (Bug#4138).
5303
8b9fc636
EZ
53042009-08-14 Eli Zaretskii <eliz@gnu.org>
5305
5306 * process.c (create_pty): Fix last change.
5307
ce959360
CY
53082009-08-13 Chong Yidong <cyd@stupidchicken.com>
5309
5310 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5311 (xbm_load_image): Caller changed.
64b807c9 5312 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5313
c7baf7e9
NR
53142009-08-13 Nick Roberts <nickrob@snap.net.nz>
5315
5316 * process.c (create_pty): New function.
5317 (Fstart_process): Use it to allow Emacs to just associate a pty
5318 with the buffer. See associated change in gdb-mi.el.
5319 (list_processes_1): Deal with no program name.
5320 (start_process_unwind): Use pid == -2 to mean no process.
5321
1ac9108a
SM
53222009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5323
5324 * cmds.c (nonundocount): New global variable.
5325 (keys_of_cmds): Initialize it.
5326 (Fself_insert_command): Use it to combine upto 20 sequential chars
5327 into a single undo entry, just like the Qself_insert_command code in
5328 keyboard.c does.
5329 Call frame_make_pointer_invisible, also like the Qself_insert_command
5330 code in keyboard.c does.
5331 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5332 than its own local replacement for it.
5333
e267324c
KR
53342009-08-10 Ken Raeburn <raeburn@raeburn.org>
5335
1ac9108a 5336 * fns.c (concat): Don't re-set string length to its current value.
77437343 5337
1ac9108a
SM
5338 * coding.h (decode_coding_string, encode_coding_string):
5339 Use SBYTES macro.
f0bed503 5340
1ac9108a 5341 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5342 (doprnt): Merge with doprnt1, discarding lispstrings code.
5343 * lisp.h (doprnt_lisp): Don't declare.
5344
416e006d
JL
53452009-08-07 Juri Linkov <juri@jurta.org>
5346
5347 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5348
6f7d5780
DN
53492009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5350
5351 * print.c (syms_of_print): Undo previous change.
5352
f19a0f5b
TZ
53532009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5354
5355 * lread.c (read1, syms_of_lread): Read hashtables back from the
5356 readable format.
5357
5358 * print.c (print_preprocess, print_object): Print hashtables fully
5359 and readably.
5360 (syms_of_print): Provide 'hashtable-print-readable.
5361
b9173dc2
AR
53622009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5363
5364 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5365 no family set.
5366 (nsfont_open): Handle case when entity has no family.
5367
1586503c
AR
53682009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5369
5370 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5371 element, not a list, for match case.
5372
087048cd
KH
53732009-07-28 Kenichi Handa <handa@m17n.org>
5374
5375 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5376 rigidly.
5377
5378 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5379 font_parse_xlfd. Check font properties more rigidly.
5380
780c2506
DN
53812009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5382
31fd7c5c
JB
5383 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5384 bsd-common.h.
780c2506 5385
a8c0cc18
KH
53862009-07-27 Kenichi Handa <handa@m17n.org>
5387
5388 * xfaces.c (face_with_height): Call font_clear_prop.
5389
4fbe2306
CY
53902009-07-26 Chong Yidong <cyd@stupidchicken.com>
5391
111d9af3
CY
5392 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5393
5394 * xterm.c (x_term_init): Use Qx.
5395
4fbe2306
CY
5396 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5397
1ac9108a 5398 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5399 (ns_get_color): Revert 2009-07-16 change.
5400
beb0b7f9
EZ
54012009-07-25 Eli Zaretskii <eliz@gnu.org>
5402
5403 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5404 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5405
2baf5e76
KR
54062009-07-25 Ken Raeburn <raeburn@raeburn.org>
5407
1ac9108a
SM
5408 * coding.h (decode_coding_string, encode_coding_string):
5409 Use SCHARS macro.
8890e5f5 5410
2baf5e76 5411 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5412 (load_depth): Delete.
2baf5e76
KR
5413 (Qload_in_progress): New variable.
5414 (load_unwind): Don't reference load_depth or load_in_progress.
5415 (Fload): Likewise; specbind Qload_in_progress instead.
5416 (init_lread): Don't initialize load_depth.
5417 (syms_of_lread): Initialize and protect Qload_in_progress.
5418
1395c6f5
AR
54192009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5420
5421 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5422
4e2f36cf
AR
54232009-07-23 Yavor Doganov <yavor@gnu.org>
5424
5425 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5426
5dd9a6f7
AR
54272009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5428
5429 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5430 Bugs 3792, 3720, 2402.
5431 (ns_lookup_indexed_color): Check for bad index.
5432 (ns_index_color): Init unused slot to 0.
5433 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5434 Bug 3714, possibly 3082.
5dd9a6f7 5435
c902b920
JR
54362009-07-22 Jason Rumney <jasonr@gnu.org>
5437
1ac9108a
SM
5438 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5439 Position IME window at cursor (Bug#2570).
c902b920
JR
5440 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5441 (globals_of_w32fns): Dynamically load functions required above.
5442
5443 * w32term.c (w32_draw_window_cursor): Send message to reposition
5444 any IME window.
5445
090101cf
CY
54462009-07-21 Chong Yidong <cyd@stupidchicken.com>
5447
5448 * fileio.c: Revert 2009-07-16 changes.
5449 (Vauto_save_include_big_deletions): New variable.
5450 (Fdo_auto_save): Disable auto-save only if
5451 auto-save-include-big-deletions is nil.
5452
e6583e3d
CY
54532009-07-21 Chong Yidong <cyd@stupidchicken.com>
5454
5455 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5456 the overflowed pixels into account (Bug#3879).
5457
ece435a5
KR
54582009-07-21 Ken Raeburn <raeburn@raeburn.org>
5459
5460 * lread.c (load_depth): New variable.
5461 (Fload, load_unwind, init_lread): Set it to the load recursion
5462 depth; set load_in_progress as a simple boolean based on the
5463 current load_depth. (Bug#3892)
5464
40b2d973
AR
54652009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5466
5467 * nsfont.m (ns_has_attribute): Remove.
5468 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5469
10be7e0d
JL
54702009-07-18 Juri Linkov <juri@jurta.org>
5471
5472 * process.c (Fset_process_query_on_exit_flag): Mention killing
5473 a buffer in docstring.
5474
fa055055
KH
54752009-07-17 Kenichi Handa <handa@m17n.org>
5476
5477 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5478
042f7b69
YM
54792009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5480
5481 * nsfns.m (Fns_set_alpha): Remove function.
5482 (syms_of_nsfns): Don't defsubr it.
5483
5484 * nsterm.m (ns_get_color): Remove incompatible color formats.
5485 (ns_color_to_lisp): Generate #rrggbb color format string.
5486
4be941e3
RS
54872009-07-16 Richard Stallman <rms@gnu.org>
5488
5489 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5490 (Fset_buffer_auto_saved): Handle save_length = -2.
5491
4e6b227d
CY
54922009-07-16 Chong Yidong <cyd@stupidchicken.com>
5493
5494 * xterm.c (Qx_gtk_map_stock): New var.
5495
5496 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5497 of calling intern each time.
5498
a1856973
YM
54992009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5500
5501 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5502 does tiling.
5503
5504 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5505
497e54d8
KH
55062009-07-14 Kenichi Handa <handa@m17n.org>
5507
72d36834
KH
5508 * font.c (font_vconcat_entity_vectors): New function.
5509 (struct font_sort_data): New member font_driver_preference.
5510 (font_compare): Check font_driver_preference.
5511 (font_sort_entities): The format of the first argument changed.
5512 (font_delete_unmatched): Likewise.
5513 (font_list_entities): The return type changed.
5514 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5515 (font_find_for_lface): Adjuste for the above changes.
5516 Don't suppress the checking of C even if the repertory supports it.
5517 (Flist_fonts): Adjust for the above changes.
72d36834 5518
1ac9108a
SM
5519 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5520 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5521 Reject a font who has adstyle property that is different from a
5522 langname derived from registry property.
1ac9108a 5523 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5524
b6046155
EZ
55252009-07-13 Eli Zaretskii <eliz@gnu.org>
5526
5527 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5528 local copy of dirfilename.
5529
fb6b6049
KH
55302009-07-13 Kenichi Handa <handa@m17n.org>
5531
e2402a5e
KH
5532 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5533 against max_char.
5534
fb6b6049
KH
5535 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5536 calling XSYMBOL (sym).
5537
65156807
EZ
55382009-07-11 Eli Zaretskii <eliz@gnu.org>
5539
1ac9108a
SM
5540 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5541 New function.
5542 (directory_files_internal) [WINDOWSNT]:
5543 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5544 the filesystem of the directory is fast or slow.
5545
5546 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5547 file name.
5548 (is_slow_fs): New function.
5549 (stat): Use it to determine whether to issue more system calls to
5550 get accurate file attributes, when w32-get-true-file-attributes is
5551 `local'.
5552
e0ab5fcf
JD
55532009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5554
5555 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5556 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5557 parameter font-parameter as default to the font dialog.
5558
784ceded
KH
55592009-07-10 Kenichi Handa <handa@m17n.org>
5560
5561 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5562
fb8edc0b
EZ
55632009-07-09 Eli Zaretskii <eliz@gnu.org>
5564
1ac9108a 5565 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5566
fb8edc0b
EZ
5567 * w32.c (stat): Treat UNC file names as residing on remote
5568 drives. (Bug#3542)
5569
635c75b1
KH
55702009-07-09 Kenichi Handa <handa@m17n.org>
5571
5572 * fontset.c (fontset_find_font): Fix previous change.
5573
c1d5ce94
MA
55742009-07-08 Michael Albinus <michael.albinus@gmx.de>
5575
5576 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5577 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5578 error flag.
5579
edb61b39
KH
55802009-07-08 Kenichi Handa <handa@m17n.org>
5581
374bf7e4
KH
5582 * fontset.c (fontset_find_font): Fix the logic of handling
5583 charset_matched.
5584 (font_for_char): Delete unused var.
5585 (generate_ascii_font_name): Delete it.
5586
edb61b39
KH
5587 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5588
5589 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5590 (encode_coding_sjis): Fix the code range check.
5591
0f3f018c
CY
55922009-07-07 Chong Yidong <cyd@stupidchicken.com>
5593
5594 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5595 (Fexpand_file_name): Copy string data properly (Bug#3772).
5596
fcaf6f3a
JD
55972009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5598
5599 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5600 first MapNotify.
5601
6809ca75
KH
56022009-07-07 Kenichi Handa <handa@m17n.org>
5603
5604 * character.h (unibyte_has_multibyte_table): Delete extern.
5605 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5606
5607 * charset.c (Fset_charset_priority): Update charset_unibyte.
5608 (syms_of_charset): Initialize charset_unibyte.
5609
5610 * character.c (unibyte_has_multibyte_table): Delete it.
5611 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5612 charset_unibyte.
5613 (multibyte_char_to_unibyte_safe): Likewise.
5614 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5615
1ac9108a 5616 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5617 (x_produce_glyphs): Likewise.
5618
5619 * .gdbinit (xcharset): Fix the treating $arg0.
5620
ad9e2d54
EZ
56212009-07-04 Eli Zaretskii <eliz@gnu.org>
5622
5623 Emulation of `getloadavg' on MS-Windows.
50426a04 5624 * w32.c: Include float.h.
ad9e2d54
EZ
5625 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5626 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5627 (get_native_system_info, get_system_times): New functions.
5628 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5629 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5630 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5631 g_b_init_get_system_times, and num_of_processors.
5632
0a3472c7
JR
56332009-07-03 Jason Rumney <jasonr@gnu.org>
5634
5635 * w32term.c (w32_initialize): Use standard types.
5636
80904120
EZ
56372009-07-03 Eli Zaretskii <eliz@gnu.org>
5638
5639 * dired.c (Ffile_attributes): Decode user and group names by the
5640 locale's encoding. (Bug#3443)
5641
6978862d
DN
56422009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5643
f8d23104
DN
5644 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5645 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5646
5647 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5648
5649 * term.c (init_tty): Remove spurious #ifdef.
5650
6978862d
DN
5651 * m/mips.h: Mention this file is also used for netbsd.
5652 * m/pmax.h: Remove file.
5653
e044e4fc
JD
56542009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5655
5656 * xterm.h (struct x_display_info): Add invisible_cursor.
5657 (struct x_output): Add current_cursor.
5658
5659 * xterm.c (XTtoggle_invisible_pointer): New function.
5660 (x_define_frame_cursor): Don't define cursor if invisible or the
5661 same as before. Set current_cursor.
5662 (x_create_terminal): Set toggle_invisible_pointer_hook.
5663
5664 * xfns.c (make_invisible_cursor): New function.
5665 (x_set_mouse_color): Call make_invisible_cursor.
5666 Set current_cursor.
5667 (x_window): Set current_cursor.
5668
5669 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5670
5671 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5672 inserting a character.
5673 (read_avail_input): Call frame_make_pointer_visible.
5674
5675 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5676 (frame_make_pointer_invisible, frame_make_pointer_visible):
5677 New functions.
e044e4fc
JD
5678 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5679
5680 * frame.h: Declare frame_make_pointer_invisible and
5681 frame_make_pointer_visible.
5682 (struct frame): Add pointer_invisible.
5683
574c8efa
JD
56842009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5685
7b507248
JD
5686 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5687 frame isn't visible.
5688 (xg_frame_resized): If width/height is -1, get size of window
5689 from X server.
5690
5691 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5692 for MapNotify.
5693
835bdaa7 5694 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5695 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5696 (flush_and_sync): Reintroduce.
574c8efa 5697
3f1c6666 56982009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5699
31fd7c5c 5700 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5701
5702 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5703 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5704
5705 * frame.h: Declare Qsticky.
5706
cad9ef74
JD
5707 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5708
5709 * nsfns.m (ns_frame_parm_handlers): Ditto.
5710
5711 * frame.c: Declare Qsticky.
5712 (frame_parms): Add sticky.
5713
5714 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5715
5716 * xterm.h: Declare x_set_sticky.
5717
5718 * xterm.c (x_set_sticky): New function.
5719
69b16610
JD
5720 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5721 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5722 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5723
5724 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5725
5726 * frame.c: Qmaximized is new.
5727 (x_set_frame_parameters): Do not handle fullscreen specially.
5728 Only set width and height if explicitly set.
5729 (x_set_fullscreen): Handle Qmaximized.
5730 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5731 (syms_of_frame): Initialize Qmaximized.
5732
1ac9108a
SM
5733 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5734 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5735
5736 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5737 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5738 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5739 set gravity to NorthWestGravity when USE_GTK.
5740 (set_wm_state): New function.
31fd7c5c 5741 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5742 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5743 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5744 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5745 to x_real_positions and x_fullscreen_adjust.
5746
5747 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5748 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5749 flush_and_sync.
5750 (xg_height_changed): New function.
5751 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5752 and gtk_window_set_policy. Set frame gravity after parsing the
5753 geometry string.
3f1c6666
JD
5754 (xg_update_frame_menubar, free_frame_menubar)
5755 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5756 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5757 Remove calls to xg_frame_set_char_size.
5758
fd503d99
KH
57592009-07-01 Kenichi Handa <handa@m17n.org>
5760
5761 * keyboard.c (decode_keyboard_code): New function.
5762 (tty_read_avail_input): Decode the input bytes if necessary.
5763
1ac9108a
SM
5764 * coding.c (setup_coding_system):
5765 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5766 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5767 use Qno_conversion.
5768
24ed93fb
YM
57692009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5770
5771 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5772
99061dfc
CY
57732009-06-30 Chong Yidong <cyd@stupidchicken.com>
5774
1ac9108a 5775 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5776
ff90fbde
JR
57772009-06-30 Jason Rumney <jasonr@gnu.org>
5778
5779 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5780 is already loaded.
5781 Set user model ID if supported (bug#1849).
5782
5f445726
JM
57832009-06-29 Jim Meyering <meyering@redhat.com>
5784
5785 Remove useless if-before-xfree test.
5786 * nsfont.m (nsfont_close): Remove useless test.
5787 * term.c (delete_tty): Likewise.
5788 * w32.c (system_process_attributes): Likewise.
5789 * w32font.c (w32font_close): Likewise.
5790 * xfaces.c (x_free_gc): Likewise.
5791 * xselect.c (buffer): Likewise.
5792
b9607587
AS
57932009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5794
5795 * process.c (send_process): Keep decoded string in a local
5796 variable and protect it from GC. (Bug#3521)
5797
89ba96f4
EZ
57982009-06-28 Eli Zaretskii <eliz@gnu.org>
5799
5800 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5801 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5802
098a1589
CY
58032009-06-28 Chong Yidong <cyd@stupidchicken.com>
5804
485422be
CY
5805 * xdisp.c (start_display, handle_face_prop)
5806 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5807 (redisplay_window, try_window_id, produce_image_glyph):
5808 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5809
098a1589
CY
5810 * xterm.c (x_update_window_begin, x_new_focus_frame)
5811 (x_scroll_bar_handle_click, handle_one_xevent)
5812 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5813 (x_make_frame_visible, x_make_frame_invisible)
5814 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5815 code chunks that are now obsolete.
5816
78c38319
MA
58172009-06-28 Michael Albinus <michael.albinus@gmx.de>
5818
5819 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5820 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5821 for hours, when optimzation is enabled.
5822 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5823 (xd_read_message): Make them static.
5824
4189ed40
CY
58252009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5826
5827 * term.c (turn_on_face): Allow simultaneously bold and dim
5828 terminal faces (Bug#3530).
5829
cd9b5e16
CY
58302009-06-27 Chong Yidong <cyd@stupidchicken.com>
5831
4e23bedb
CY
5832 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5833
cd9b5e16
CY
5834 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5835 truncation glyphs (Bug#3686).
5836
07cc3c35
GM
58372009-06-27 Glenn Morris <rgm@gnu.org>
5838
5839 * m/pmax.h: Restore file, with only netbsd portions.
5840
31fd7c5c 58412009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5842
cd9b5e16 5843 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5844
42d4a64f
KH
58452009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5846
5847 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5848 the arg FORCE_SYMBOL.
5849
930fe55b 58502009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5851
5852 * fontset.c (fontset_find_font): When a usable rfont_def is found
5853 in a fallback font-group, make it the first element of the group.
5854
57ebc3fd
CY
58552009-06-24 Chong Yidong <cyd@stupidchicken.com>
5856
5857 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5858
f084f942
KH
58592009-06-24 Kenichi Handa <handa@m17n.org>
5860
5861 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5862 set for C.
5863 (fontset_font): Record the availability of a font for C both in
5864 the realized fontsets of the current one and the default one.
5865
2f686c87
DN
58662009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5867
5868 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5869 conditional, it is always defined on AIX.
5870
666e158e
MB
58712009-06-23 Miles Bader <miles@gnu.org>
5872
5873 * window.c (Vrecenter_redisplay): New variable.
5874 (syms_of_window): Initialize it.
5875 (Qtty): New extern declaration.
5876 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5877
c6da7cd2
JM
58782009-06-23 Jim Meyering <meyering@redhat.com>
5879
1ac9108a
SM
5880 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5881 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5882 pointer dereferences are guaranteed to be valid.
c6da7cd2 5883
678dca3d
KH
58842009-06-23 Kenichi Handa <handa@m17n.org>
5885
74d75424
KH
5886 * emacs.c (main): Call init_font ().
5887
5888 * font.h (Vfont_log): Extern it.
5889 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5890
5891 * font.c (font_sort_entities, font_list_entities)
5892 (font_matching_entity, font_open_entity)
5893 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5894 (Vfont_log): Delete static.
5895 (font_log_env_checked): Delete this variable.
5896 (font_add_log): Don't check font_log_env_checked.
5897 (font_deferred_log): Check Vfont_log.
5898 (init_font): New function.
5899
678dca3d
KH
5900 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5901
5902 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5903
5904 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5905
5906 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5907
5908 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5909 (face_for_char): Don't call font_deferred_log here.
5910 (font_for_char): Likewise.
5911
8a668709
CY
59122009-06-22 Chong Yidong <cyd@stupidchicken.com>
5913
9a01ee33
CY
5914 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5915 rather than its background_width for drawing the overline and
5916 underline (Bug#489).
5917
5918 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5919 rather than its background_width for drawing the overline and
5920 underline (Bug#489).
ec7c9926
CY
5921 (xg_default_icon_file): New variable.
5922 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5923 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5924
8a668709
CY
5925 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5926 (load_overlay_strings): Remove externs.
5927 (fast_find_position): Function deleted.
5928 (mouse_face_from_buffer_pos): New function, based on
5929 fast_find_position. Correctly handle before-strings,
5930 display-strings, and after-strings (Bug#1220).
5931 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5932
4d4c02d8
CY
59332009-06-21 Chong Yidong <cyd@stupidchicken.com>
5934
1ac9108a 5935 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5936 (move_it_in_display_line_to, move_it_in_display_line_to)
5937 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5938
70243478
CY
59392009-06-21 Chong Yidong <cyd@stupidchicken.com>
5940
5941 * Branch for 23.1.
5942
13087e59
JR
59432009-06-21 Jason Rumney <jasonr@gnu.org>
5944
5945 * w32term.c (keyboard_codepage): New static variable.
5946 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5947 (w32_read_socket) [WM_CHAR]: Use it to decode character
5948 input (bug#3237).
5949 (w32_initialize): Initialize it.
5950 (codepage_for_locale): New function.
5951
4735b74e
KR
59522009-06-20 Ken Raeburn <raeburn@raeburn.org>
5953
5954 * process.c (status_message): Pass Faset index argument as a lisp
5955 object, so as to work with USE_LISP_UNION_TYPE.
5956
0e727afa
YM
59572009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5958
5959 * coding.c (Ffind_coding_systems_region_internal):
5960 Cache checked characters.
5961
cf299835
KH
59622009-06-18 Kenichi Handa <handa@m17n.org>
5963
1ac9108a 5964 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5965
90f20d94
AS
59662009-06-18 Andreas Schwab <aschwab@redhat.com>
5967
5968 * xdisp.c (redisplay_internal): Check that the frame is still
5969 live after redisplay of its windows.
5970 (redisplay_windows): Check that the window is still live.
5971
7f1faf1c
KH
59722009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5973
5974 * coding.c (detect_coding_utf_16): Fix previous change.
5975
cc13543e
KH
59762009-06-16 Kenichi Handa <handa@m17n.org>
5977
5978 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5979 UTF-16 by checking the dispersion of Eth and Oth bytes.
5980
977b85f4
AS
59812009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5982
5983 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5984
66bd43d1
KH
59852009-06-15 Kenichi Handa <handa@m17n.org>
5986
5987 * process.c (status_message): Fix previous change. Be sure to
5988 decode a localized string.
5989
cb5ca9c5
YM
59902009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5991
5992 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5993 add comment explaining why.
5994
ec7709ba 59952009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5996
ec7709ba 5997 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5998
4b7f335c
AR
59992009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
6000
6001 * nsfont.m (ns_attribute_value): Remove.
6002 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
6003 (ns_has_attribute): Shrink the normal range.
6004 (ns_findfonts): Don't worry about requested spec in determining
6005 need for synthItal.
e41820ee 6006 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 6007
73b26103
SZ
60082009-06-14 Seiji Zenitani <zenitani@mac.com>
6009
6010 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
6011
5753e4da
KH
60122009-06-11 Kenichi Handa <handa@m17n.org>
6013
6014 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6015 overhang for the static composition case.
6016
3561b671
KH
60172009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6018
5753e4da
KH
6019 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
6020 overhang for the automatic composition case.
6021
3561b671
KH
6022 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
6023 composition case.
6024
852bbd41
CY
60252009-06-10 Chong Yidong <cyd@stupidchicken.com>
6026
6027 * xdisp.c (get_next_display_element): When handling wrap-prefix
6028 and line-prefix, treat \n as a control character (bug#3502).
6029
9903d1e6
KH
60302009-06-10 Kenichi Handa <handa@m17n.org>
6031
6032 * font.c (font_parse_family_registry): Fix for one-char foundry.
6033 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
6034
0bcbaaaa
CY
60352009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
6036
6037 * process.c (status_message): Fix handling of multibyte signal
6038 string (Bug#3499).
6039
40aa3f13
JM
60402009-06-09 Jim Meyering <meyering@redhat.com>
6041
1f80c7e2
CY
6042 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
6043 color name is missing.
40aa3f13 6044
72d51285
KH
60452009-06-09 Kenichi Handa <handa@m17n.org>
6046
6047 * charset.c (Fmap_charset_chars): In docstring, state clearly that
6048 FROM-CODE and TO-CODE are codepoints of CHARSET.
6049
c1d04d84
AR
60502009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6051
6052 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
6053
60542009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
6055
6056 Changes to support :script/:lang/:otf in NS font driver.
6057 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
6058 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
6059 indicate not part of font driver interface, and change callers.
6060 (ns_get_family): Remove pointless null check.
6061 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
6062 ns_spec_to_descriptor, ns_descriptor_to_entity.
6063 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
6064 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
6065 (ns_spec_to_descriptor, ns_descriptor_to_entity)
6066 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
6067 (ns_get_req_script, ns_accumulate_script_ranges)
6068 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
6069 New functions.
6070 (nsfont_list, nsfont_match): Use ns_findfonts.
6071 (nsfont_open): Use font descriptor instead of traits.
6072 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6073 (dump_glyphstring): Rename to ns_dump_glyphstring.
6074
c7eb9816
AR
6075 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6076
c1d04d84
AR
6077 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6078
6079 * fontset.c (fontset_from_font): Remove NS-specific code.
6080
ec7709ba 60812009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6082
6083 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6084 nonactive windows.
6085
31fd7c5c 60862009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6087
1ac9108a 6088 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6089
68852c13 60902009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6091
6092 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6093
6756cd1d
CY
60942009-06-07 Chong Yidong <cyd@stupidchicken.com>
6095
6096 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6097 account for the overflowing of newlines into the last glyph on the
6098 display line (Bug#3482).
6099
28bf482a
DR
61002009-06-05 David Reitter <david.reitter@gmail.com>
6101
ec7709ba
JB
6102 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6103 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6104 Fns_selection_exists_p, Fns_selection_owner_p.
6105
fdb55376
JR
61062009-06-03 Jason Rumney <jasonr@gnu.org>
6107
6108 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6109 available. (Bug#3379)
6110
05129fbe
KH
61112009-05-29 Kenichi Handa <handa@m17n.org>
6112
1ac9108a
SM
6113 * coding.c (get_translation_table):
6114 Check Venable_character_translation.
05129fbe 6115
ec7709ba 61162009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6117
ec7709ba
JB
6118 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6119 (x_make_frame_visible): Move frame to front rather than calling
15891144 6120 ns_raise_frame().
ec7709ba 6121 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6122 isn't key window.
ec7709ba 6123 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6124 drawRect may be called by NSView even if the frame is hidden.
6125
ec7709ba
JB
6126 * nsfns.m (Fx_create_frame): Follow other ports in
6127 determining visibility; default to t. Ensure async_visible is set.
15891144 6128
21f73755
EZ
61292009-05-23 Eli Zaretskii <eliz@gnu.org>
6130
6131 * dired.c (Ffile_attributes): Doc fix.
6132
34001e41
CY
61332009-05-22 Chong Yidong <cyd@stupidchicken.com>
6134
6135 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6136
46306a17
SM
61372009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6138
6139 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6140 and xfont_scratch_props.
6141 (syms_of_xfont): Do it here instead.
6142 (xfont_find_ccl_program): Delete, unused.
6143 (xfont_open): Delete unused var `i'.
6144
ef6e0694
KH
61452009-05-21 Kenichi Handa <handa@m17n.org>
6146
6147 * fontset.c (Qlatin): Don't make it static.
6148
46306a17
SM
6149 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6150 New functions.
ef6e0694
KH
6151 (xfont_scripts_cache, xfont_scratch_props): New variables.
6152 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6153 (xfont_list_pattern): Argument changed. Callers changed.
6154 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6155 (xfont_list): Don't reject a font spec with :script property.
6156 (xfont_has_char): Fix setting of encoding.
6157 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6158 xfont_scratch_props.
6159
61602009-05-19 Kenichi Handa <handa@m17n.org>
6161
46306a17 6162 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6163 Callers changed.
6164
61652009-05-18 Kenichi Handa <handa@m17n.org>
6166
6167 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6168
ac71ced7
SM
61692009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6170
6171 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6172 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6173
1c6d1051
YM
61742009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6175
6176 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6177 (x_delete_terminal): Dissociate resource database from display and
6178 then call XrmDestroyDatabase before closing display.
6179
9b9b779c
AR
61802009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6181
6182 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6183 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6184 whether selected frame is viable before raising it (based on patch
6185 by David Reitter), and improve commentary.
6186 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6187
cccd42d5
KH
61882009-05-15 Kenichi Handa <handa@m17n.org>
6189
6190 * font.c (Ffont_spec): Check arguments.
6191
337fbd17
CY
61922009-05-14 Chong Yidong <cyd@stupidchicken.com>
6193
6194 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6195 weight when testing attributes (Bug#3282).
6196
47a6002f
JD
61972009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6198
6199 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6200 what we expect to get in the next ConfigureNotify event.
6201
9cb363db
YM
6202 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6203 before Xft one (Bug#1696).
6204
b9126609
CY
62052009-05-07 David Reitter <david.reitter@gmail.com>
6206
6207 * nsfns.m (Fx_display_planes): Compute bitplanes using
6208 NSBitsPerPixelFromDepth (Bug#3207).
6209
27a69fd9
CY
62102009-05-10 Chong Yidong <cyd@stupidchicken.com>
6211
6212 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6213
00f37552
TTN
62142009-05-10 Ulrich Mueller <ulm@gentoo.org>
6215
6216 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6217
2d82a920
DR
62182009-05-07 David Reitter <david.reitter@gmail.com>
6219
ec7709ba
JB
6220 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6221 Respect mouse face background.
2d82a920 6222
46b0d52d
DR
62232009-05-07 David Reitter <david.reitter@gmail.com>
6224
ec7709ba
JB
6225 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6226 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6227 in ns_update_begin and ns_update_end.
6228
ce1b23bb
SM
62292009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6230
5996e1b7
SM
6231 * nsfns.m (ns_get_screen): Rewrite.
6232 Don't presume selected-frame is of type `ns'.
6233
ba98e3a0
SM
6234 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6235 all drivers.
6236
ce1b23bb
SM
6237 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6238
bcda200f
YM
62392009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6240
6241 * keyboard.h (add_user_signal): Fix typo in extern.
6242
6243 * lisp.h (add_user_signal): Remove extern.
6244
6245 * unexelf.c (unexec): Consider a section to precede the .bss section
6246 if its addresses overlap that of .bss.
6247 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6248 instead of dumping process.
6249
864660a2
SM
62502009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6251
6252 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6253
50da4e56
SM
62542009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6255
6256 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6257
51520a1a
DN
62582009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6259
6260 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6261 any statements.
6262
409ea3a1
AS
62632009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6264
59c4c60f
AS
6265 * process.c (read_process_output): Make sure the current buffer is
6266 always restored.
6267
409ea3a1
AS
6268 * coding.c (record_conversion_result): Don't modify
6269 Vlast_code_conversion_error for successful result.
6270 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6271
56f00ed2
KH
62722009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6273
6274 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6275 (load_charset_map): Remove unnecessary code.
56f00ed2 6276
4491c9d2
DR
62772009-04-30 David Reitter <david.reitter@gmail.com>
6278
35f5b128 6279 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6280 through f24.
6281
6970f632
CY
62822009-04-30 Chong Yidong <cyd@stupidchicken.com>
6283
6284 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6285
6286 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6287 face_at_buffer_position.
6288 (face_before_or_after_it_pos, get_next_display_element)
6289 (note_mouse_highlight): Update face_at_buffer_position call.
6290
6291 * term.c (term_mouse_highlight):
6292 * msdos.c (IT_note_mouse_highlight):
6293 * fontset.c (Finternal_char_font):
35f5b128 6294 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6295
6296 * dispextern.h (face_at_buffer_position): Update prototype.
6297
0c616f63
KH
62982009-04-30 Kenichi Handa <handa@m17n.org>
6299
35f5b128 6300 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6301
ad3aaf33
AS
63022009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6303
6304 * callproc.c (Fcall_process): Fix GC protection. Make sure
6305 current buffer is always restored.
6306
c3c963a0
YM
63072009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6308
6309 * atimer.c (init_atimer): Also clear stopped_atimers.
6310
6311 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6312
7e3386cb
YM
6313 * process.c (create_process): Clean up merger residues of
6314 2008-07-17 change.
6315
91f68422
CY
63162009-04-29 Ulrich Mueller <ulm@gentoo.org>
6317
6318 * lread.c (Vread_circle): New variable.
6319 (read1): Disable recursive read if Vread_circle is nil.
6320
24b34550
KH
63212009-04-29 Kenichi Handa <handa@m17n.org>
6322
6323 * fontset.h (set_default_ascii_font): Delete extern.
6324
6325 * fontset.c (set_default_ascii_font): Delete this unused function.
6326
6327 * frame.c (x_set_font): When ARG is a font-object, check if the
6328 font-object matches with the ASCII font-spec of the frame's
9c358bda 6329 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6330
77bf07e1
AS
63312009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6332
6333 * fns.c (Flocale_info): Protect vector from GC during decoding.
6334
6335 * process.c (Fstart_process): Protect argv strings from GC during
6336 encoding.
6337
2c55aacf
AS
63382009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6339
6340 * sysdep.c: Include <ctype.h>.
6341
b892d3c9
DR
63422009-04-27 David Reitter <david.reitter@gmail.com>
6343
35f5b128 6344 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6345 Remove commented-out code.
6346
9d0644c4
JB
63472009-04-26 Johan Bockgård <bojohan@gnu.org>
6348
6349 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6350
b7053016
JR
63512009-04-25 Jason Rumney <jasonr@gnu.org>
6352
6353 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6354
4e8231f3
YM
63552009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6356
6357 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6358 Swap bytes in short integer if fringe bitmap width > 8.
6359
493dcf2c
KH
63602009-04-23 Kenichi Handa <handa@m17n.org>
6361
6362 * xfaces.c (Fx_list_fonts): If a font size is specified in
6363 PATTERN, set it in returned scalable fonts.
6364
401e9e57
CY
63652009-04-22 Chong Yidong <cyd@stupidchicken.com>
6366
708e05dc
CY
6367 * keyboard.c (Fset_input_meta_mode): Doc fix.
6368
6369 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6370
1ac9108a 6371 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6372
6373 * coding.c (Fterminal_coding_system): Doc fix.
6374
6375 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6376 (Fx_display_pixel_height, Fx_display_planes)
6377 (Fx_display_color_cells, Fx_server_max_request_size)
6378 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6379 (Fx_display_mm_height, Fx_display_mm_width)
6380 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6381 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6382 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6383 (check_x_display_info): Handle terminal objects instead of
6384 terminal ids.
6385
401e9e57
CY
6386 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6387 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6388 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6389 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6390
df80c7f0
KH
63912009-04-21 Kenichi Handa <handa@m17n.org>
6392
5a8f12af 6393 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6394 (font_score): Check AVGWIDTH too.
908567ef 6395
df80c7f0
KH
6396 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6397 worst case.
1ac9108a
SM
6398 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6399 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6400
705af33f
JR
64012009-04-19 Jason Rumney <jasonr@gnu.org>
6402
6403 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6404 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6405
6406 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6407 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6408 get_phys_cursor_geometry.
6409
b71ac3dd 6410 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6411 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6412 using get_phys_cursor_geometry.
6413
6414 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6415 correctly calculated.
6416
dc2933eb
JD
64172009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6418
1ac9108a
SM
6419 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6420 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6421 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6422 is deprecated.
6423
973e7849
AS
64242009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6425
6426 * font.c (font_put_frame_data): Use xfree instead of free.
6427
314d66f4
JB
64282009-04-17 Juanma Barranquero <lekktu@gmail.com>
6429
6430 * w32font.c (Qja, Qko): Remove declarations.
6431 (syms_of_w32font): Don't DEFSYM them.
6432
cf702558
CY
64332009-04-17 Chong Yidong <cyd@stupidchicken.com>
6434
6435 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6436
6437 * font.h (Qja, Qko): Extern them.
6438
6439 * ftfont.c (Qja, Qko): Remove declarations.
6440
6441 * xfont.c (Qja, Qko): Remove declarations.
6442
b50504f5
KH
64432009-04-17 Kenichi Handa <handa@m17n.org>
6444
bde25748
KH
6445 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6446 string from a vector to handle Latin-1 characters correctly.
6447
b50504f5
KH
6448 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6449 entity even if the cache hits.
6450
f4646fff
AS
64512009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6452
6453 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6454 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6455
e7deaab0
AS
6456 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6457 * lisp.h: Adjust prototypes.
6458
0a0e7d49
CY
64592009-04-16 Chong Yidong <cyd@stupidchicken.com>
6460
6461 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6462 change (Bug#3003).
6463
3c908a57
KH
64642009-04-16 Kenichi Handa <handa@m17n.org>
6465
1ac9108a 6466 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6467
6468 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6469 adstyle.
6470
6471 * ftfont.c (Qja, Qko): Don't make them static.
6472 (enum ftfont_cache_for): New enum.
6473 (fc_charset_table): Undo the previous change.
6474 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6475 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6476 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6477 non-scarable font, try to get AVERAGE_WIDTH.
6478 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6479 Change ft_face_cache from a list of a hash-table. Don't check
6480 `ja' and `ko' adstyle here.
6481 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6482 FTFONT_CACHE_FOR_CHARET.
6483 (ftfont_get_charset): Undo the previous change.
1ac9108a 6484 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6485 (ftfont_close): Likewise.
6486 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6487
6488 * font.c (font_sort_entites): Change the meaning of the arg
6489 BEST-ONLY. Don't optimize for VEC of lenght 1.
6490 (font_select_entity): Just return the value of font_sort_entites.
6491
6492 * xfaces.c (merge_face_vectors): Reflect font properties in
6493 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6494 font_clear_prop if a face attribute doesn't change.
6495
3c908a57
KH
6496 * charset.h (charset_ksc5601): Extern it.
6497
6498 * charset.c (charset_ksc5601): New variable.
6499 (Fdefine_charset_internal): Set charset_ksc5601.
6500 (init_charset_once): Initialize charset_ksc5601 to -1.
6501
d65859c3
DN
65022009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6503
6504 * fileio.c (history_delete_duplicates): Remove unused declaration.
6505
6506 * callint.c (history_delete_duplicates): New declaration.
6507 (Fcall_interactively): Remove command history duplicates when
6508 history_delete_duplicates is true.
6509
3ba010e5
EZ
65102009-04-14 Eli Zaretskii <eliz@gnu.org>
6511
6512 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6513
06f19b91
KH
65142009-04-14 Kenichi Handa <handa@m17n.org>
6515
6516 * font.c (Ffont_info): Fix docstring. Fix the second element of
6517 the returned value (bug#2949).
6518
2cce8bfc
CY
65192009-04-14 Chong Yidong <cyd@stupidchicken.com>
6520
6521 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6522
d156542d
KH
65232009-04-14 Kenichi Handa <handa@m17n.org>
6524
6525 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6526 encoding charset is ascii_compatible.
6527
6528 * charset.c (Fdefine_charset_internal): Make charset
6529 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6530 code_offset is 0, and covers all ASCII characters.
6531
86fa089e
SM
65322009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6533
6534 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6535 (ns_string_to_pasteboard_internal):
6536 * nsmenu.m (process_dialog):
6537 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6538 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6539 * lisp.h (Fx_load_color_file): Declare.
6540
a8a3728b
KH
65412009-04-13 Kenichi Handa <handa@m17n.org>
6542
1ac9108a 6543 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6544 (font_select_entity): Suppress the code to optimize for the same
6545 kind of fonts.
6546 (font_load_for_lface): Get a font that supports at least ASCII
6547 characters.
6548
6549 * ftfont.c (Qja, Qko): New variables.
6550 (fc_charset_table): Delete uniquifier data for iso8859-1.
6551 (ftfont_get_latin1_charset): New function.
6552 (get_adstyle_property): New function.
6553 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6554 bitmap fonts.
6555 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6556 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6557 `ko' or `ja'.
6558 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6559 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6560 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6561 property.
6562 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6563 (syms_of_ftfont): DEFSYM Qja and Qko.
6564
483670b5
KH
65652009-04-09 Kenichi Handa <handa@m17n.org>
6566
12b55765
KH
6567 * charset.c (map_charset_chars): For a charset of `superset'
6568 method, fix calculation of code range.
6569
483670b5
KH
6570 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6571 from the list of extra properties.
6572 (font_clear_prop): Be sure to delete `:name' font property.
6573
57d3b93b
KH
65742009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6575
b4b2c2ca
YM
6576 * dispnew.c (redraw_overlapping_rows): Fix detection of
6577 overlapping for topmost and bottommost rows.
6578
1ac9108a 6579 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6580
472c3609
JR
65812009-04-06 Jason Rumney <jasonr@gnu.org>
6582
6583 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6584
ab193662
KH
65852009-04-06 Kenichi Handa <handa@m17n.org>
6586
6587 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6588
6589 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6590
0c26f026
KH
65912009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6592
6593 * ftfont.c (ftfont_open): Fix checking of the return value of
6594 FT_Load_Char. Fix setting font->underline_thickness.
6595
e173bbce
CY
65962009-04-04 Chong Yidong <cyd@stupidchicken.com>
6597
6598 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6599 (Fterminal_parameters, Fterminal_parameter)
6600 (Fset_terminal_parameter): In doc string, refer to terminal
6601 objects rather than terminal ids.
6602
693a2698
EZ
66032009-04-04 Eli Zaretskii <eliz@gnu.org>
6604
6605 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6606 ret_lim_data. (Bug#2867)
6607
d5221487
CY
66082009-04-03 Chong Yidong <cyd@stupidchicken.com>
6609
6610 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6611 so they don't get wider than the window, matching 2006-01-23
6612 change to the partner function in xdisp.c (Bug#2800).
6613
223509a3
KH
66142009-04-03 Kenichi Handa <handa@m17n.org>
6615
6616 * print.c (print_object): Make each lowest sub_char_table start a
6617 new line (Bug#2866).
6618
74fcd0b1
KH
66192009-04-02 Kenichi Handa <handa@m17n.org>
6620
6621 * fontset.c (fontset_font): Record no-font when a fontset
6622 explicitly tells not to try another font-specs.
6623
c542407d
SM
66242009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6625
6626 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6627
e3869731
KH
66282009-03-30 Kenichi Handa <handa@m17n.org>
6629
d8d2f142
KH
6630 * fontset.c (fontset_from_font): Specify only registry in a
6631 font-spec for all characters supported by that registry.
6632
e3869731
KH
6633 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6634 even if HAVE_M17N_FLT is not defined.
6635
5da5f805
CY
66362009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6637
6638 * ftfont.c: Conditionalize prototyping and use of
6639 ftfont_variation_glyphs.
6640
ab226c50
SM
66412009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6642
9628fed7
SM
6643 * frame.c (delete_frame): Work around compiler bug.
6644
6645 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6646 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6647 Some more EMACS_INT.
6648 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6649
6650 * xdisp.c (dump_glyph): Fix typo.
6651
ae19ba7c
SM
6652 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6653 (adjust_markers_gap_motion, adjust_markers_for_delete)
6654 (adjust_markers_for_insert, adjust_point)
6655 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6656 (make_gap, copy_text, count_size_as_multibyte, insert)
6657 (insert_and_inherit, insert_before_markers)
6658 (insert_before_markers_and_inherit, insert_1)
6659 (count_combining_before, count_combining_after, insert_1_both)
6660 (insert_from_string, insert_from_string_before_markers)
6661 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6662 (insert_from_buffer_1, adjust_after_replace)
6663 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6664 (replace_range_2, del_range, del_range_1, del_range_byte)
6665 (del_range_both, del_range_2, modify_region)
6666 (prepare_to_modify_buffer, signal_before_change)
6667 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6668 for buffer positions and sizes.
6669 * lisp.h: Adjust prototypes accordingly.
6670
6671 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6672 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6673 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6674
ab226c50
SM
6675 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6676
46dfb8fb
JD
66772009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6678
6679 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6680 lines and columns so we keep the same pixel height and width.
6681
6682 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6683 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6684 (x_handle_net_wm_state): New function to update frame parameter
6685 fullscreen.
6686 (x_term_init): Initialize atoms for _NET_WM_STATE.
6687
6688 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6689
d347e494
SM
66902009-03-27 Kevin Ryde <user42@zip.com.au>
6691
6692 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6693 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6694 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6695 (Fgpm_mouse_stop): Pass that new parameter.
6696 * termhooks.h (close_gpm): Adjust prototype.
6697
84db11d6
SM
66982009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6699
c95a5008
SM
6700 * lisp.h (Fx_focus_frame): Declare.
6701
84db11d6
SM
6702 * callint.c (Fcall_interactively): For '^' just delegate the work to
6703 handle-shift-selection.
6704 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6705
0a1958d6
CY
67062009-03-24 Chong Yidong <cyd@stupidchicken.com>
6707
0bfdff23
CY
6708 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6709
0a1958d6
CY
6710 * data.c (Qinteractive_form): New variable.
6711 (Finteractive_form): Use it.
6712
6713 * eval.c (Fcommandp): Use Qinteractive_form.
6714
58aec0d6
JR
67152009-03-24 Jason Rumney <jasonr@gnu.org>
6716
6717 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6718 Calculate total size precisely. Decode environment variables
6719 before substituting. (Bug#38)
6720
553dd618
KH
67212009-03-24 Kenichi Handa <handa@m17n.org>
6722
6723 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6724 encoding (Bug#2722).
553dd618 6725
c39ea606
JD
67262009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6727
6728 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6729 that gdpy is set.
6730
bc9b2b5e
AM
67312009-03-22 Alan Mackenzie <acm@muc.de>
6732
6733 * callint.c (Finteractive): Clarify the doc string - even
6734 promptless elements need \n separators.
6735
9f995a76
JR
67362009-03-22 Jason Rumney <jasonr@gnu.org>
6737
6738 * w32term.c (syms_of_w32term): Doc fix for
6739 x-use-underline-position-properties.
6740
22749e9a
EZ
67412009-03-21 Eli Zaretskii <eliz@gnu.org>
6742
6743 * w32.c (getpwuid): Change argument type to unsigned.
6744 (struct w32_id): Change type of `rid' member to unsigned.
6745 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6746 argument ID to unsigned. All callers changed.
6747 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6748
e00553bf
EZ
67492009-03-20 Eli Zaretskii <eliz@gnu.org>
6750
6751 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6752 negative, produce a float value.
6753
6754 * dired.c (make_uid, make_gid): New functions.
6755 (Ffile_attributes): Use them to avoid negative UID and GID.
6756
f761d6b6
JB
67572009-03-20 Juanma Barranquero <lekktu@gmail.com>
6758
6759 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6760 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6761 Fix typos in docstrings.
6762
d507f8d7
KH
67632009-03-19 Kenichi Handa <handa@m17n.org>
6764
6765 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6766 changed, use font_load_for_lface to get a new font object.
6767 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6768
6769 * frame.c (x_set_font): Handle the case that ARG is a cons.
6770
c68845e0
GM
67712009-03-19 Glenn Morris <rgm@gnu.org>
6772
6773 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6774
bfa49dd1
CY
67752009-03-19 Chong Yidong <cyd@stupidchicken.com>
6776
6777 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6778
8458d4c1
KH
67792009-03-19 Kenichi Handa <handa@m17n.org>
6780
6781 * charset.c (load_charset_map_from_file): When a mapfile can't be
6782 loaded, signal an error.
6783
78e7d1fe
EZ
67842009-03-18 Eli Zaretskii <eliz@gnu.org>
6785
6786 * dired.c (Ffile_attributes): Make sure UID and GID are always
6787 positive, even if the value is too large for a positive EMACS_INT.
6788 Doc fix.
6789
6790 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6791
5da9fdfa
YM
67922009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6793
6794 * xmenu.c (xdialog_show): Move Fredisplay call ...
6795 (Fx_popup_dialog): ... here.
6796
7519c40d
SM
67972009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6798
6799 * dired.c (file_name_completion): Disable the first optimization just
6800 installed, since it is not implemented correctly.
6801
2cd298e2
SM
68022009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6803
6804 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6805 only if the entry can affect bestmatch.
2cd298e2
SM
6806 Stop the search early, as Ftry_completion already does.
6807
48d37adf
CY
68082009-03-17 Chong Yidong <cyd@stupidchicken.com>
6809
e10c9c93 6810 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6811
9286b16a
CY
68122009-03-15 Chong Yidong <cyd@stupidchicken.com>
6813
6814 * keyboard.c (parse_menu_item): Don't display remappings as menu
6815 equivalent bindings (Bug#788).
6816
f7b146dc
JR
68172009-03-15 Jason Rumney <jasonr@gnu.org>
6818
6819 * w32term.h (WM_EMACS_PAINT): New message.
6820 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6821 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6822 before passing to lisp thread. (Bug#950)
6823
f761d6b6 68242009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6825
d93f9575
CY
6826 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6827 variable as it was never reset.
6828 (ns_term_init): Remove initialization of Lisp-settable defaults
6829 and ns_expand_space.
6830 (-setPanelFromDefaultValues): Remove ns_expand_space.
6831 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6832 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6833 i.e. no additional spacing, similar to Carbon port.
6834
d93f9575
CY
6835 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6836 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6837
305018ec
JD
68382009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6839
6840 * sound.c (alsa_configure): Remove call to deprecated
6841 snd_pcm_sw_params_set_xfer_align.
6842
f761d6b6 68432009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6844
6845 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6846 after clicking in a detached tool bar.
6847 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6848
46e722a9
SM
68492009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6850
348db3dd
SM
6851 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6852 int/Lisp_Object mixup).
46e722a9 6853
a3d16f39
KH
68542009-03-13 Kenichi Handa <handa@m17n.org>
6855
6856 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6857 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6858 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6859 (set_fontset_font): Change ARG to a vector. Handle range_list in
6860 ARG correctly.
6861 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6862 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6863 the above change.
6864 (fontset_from_font): Fix previous change.
fe24f56a 6865 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6866 entry. If FONTSET is the default fontset, don't set the extra
6867 slot of the returning char-table.
6868
b066e6b6
JB
68692009-03-12 Juanma Barranquero <lekktu@gmail.com>
6870
6871 * nsfns.m (Fx_close_connection): Doc fix.
6872 (Fns_do_applescript): Reflow docstring.
6873 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6874 (Fx_display_pixel_width, Fx_display_pixel_height)
6875 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6876 Fix typos in docstrings.
6877 (Fns_set_alpha): Fix typos in error messages.
6878
d472514e 68792009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6880
d472514e 6881 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6882 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6883 were used for such events.
6884
d472514e
JB
6885 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6886 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6887
d472514e 6888 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6889 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6890
fb930676
KH
68912009-03-11 Kenichi Handa <handa@m17n.org>
6892
ff85581a
KH
6893 * font.h (font_open_by_spec): Extern it.
6894
c50b7e98
KH
6895 * font.c (font_open_by_spec): New function.
6896 (font_open_by_name): Use font_open_by_spec.
6897
fb930676
KH
6898 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6899 fontset of the frame.
6900
6901 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6902 modify the default font of frames that use this fontset.
6903 (num_auto_fontsets): New variable.
6904 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6905 name. Be sure to set FONTSET_ASCII to the correct font name.
6906 (update_auto_fontset_alist): New function.
6907
df4e8455
JB
69082009-03-11 Juanma Barranquero <lekktu@gmail.com>
6909
6910 * makefile.w32-in: Update dependencies.
6911
0a375797
AR
69122009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6913
6914 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6915
61313fa3
SM
69162009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6917
6918 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6919
b55103fb
CY
69202009-03-10 Chong Yidong <cyd@stupidchicken.com>
6921
6922 * lread.c (Feval_buffer): Doc fix.
6923
dde2559c
KH
69242009-03-09 Kenichi Handa <handa@m17n.org>
6925
6926 * charset.c (Qfile_name_handler_alist): Extern it.
6927 (load_charset_map_from_file): Temporarily bind
6928 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6929
df4e8455 69302009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6931
47f588bb
GM
6932 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6933 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6934
4ddf94bd
AR
69352009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6936
4c9bdfc2
AR
6937 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6938 (x_set_window_size): Change back to calculated method of setting
6939 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6940 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6941 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6942
fe41ae9e
AR
6943 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6944
4c9bdfc2
AR
6945 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6946 accelerator in parens under GNUstep.
6947
825d0875
KH
69482009-03-06 Kenichi Handa <handa@m17n.org>
6949
6950 These changes are to detect incorrect composition sequence without
f3b3be74 6951 looking ahead the source. (Bug#2370)
825d0875
KH
6952
6953 * coding.h: Include "composite.h".
6954 (enum compisition_state): New enum.
6955 (struct compisition_status): New struct.
6956 (struct iso_2022_spec): New member cmp_status.
6957 (struct emacs_mule_spec): New struct.
6958 (struct coding_system): New members ctext_extended_segment_len and
6959 embedded_utf_8. Change the union member
6960 spec.emacs_mule_full_support to spec.emacs_mule.
6961
6962 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6963 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6964 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6965 (ADD_COMPOSITION_DATA): New arg nbytes.
6966 (emacs_mule_char): New arg cmp_status.
6967 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6968 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6969 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6970 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6971 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6972 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6973 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6974 (EMACS_MULE_COMPOSITION_END): New macro.
6975 (emacs_mule_finish_composition): New function.
6976 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6977 (decode_coding_emacs_mule): Avoid long looking ahead while
6978 handling composition.
6979 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6980 (ENCODE_COMPOSITION_RULE): New macro.
6981 (finish_composition): New function.
6982 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6983 (DECODE_COMPOSITION_START): New implementation.
6984 (DECODE_COMPOSITION_END): Likewise.
6985 (STORE_COMPOSITION_RULE): New macro.
6986 (decode_coding_iso_2022): Avoid long looking ahead while handling
6987 composition, CTEXT extended segment, and embedded UTF-8.
6988 (setup_coding_system): For a coding of type iso-2022, reset
6989 CODING_ISO_EXTSEGMENT_LEN (coding) and
6990 CODING_ISO_EMBEDDED_UTF_8 (coding).
6991 (get_translation): Delete arguments last_block, from_nchars,
6992 to_nchars. Callers changed.
6993 (produce_chars): Don't modify charbuf. Adjusted for the change of
6994 get_translation.
98a326f7 6995 (produce_composition): Adjust for the new annotation sequence.
825d0875 6996 (handle_composition_annotation): Likewise.
98a326f7 6997 (consume_chars): Adjust for the change of get_translation.
825d0875 6998
ccbc4452
AR
69992009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
7000
4ddf94bd 7001 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 7002
988a7ddb
KH
70032009-03-05 Kenichi Handa <handa@m17n.org>
7004
7005 * font.c (font_select_entity): New function.
7006 (font_find_for_lface): Use font_select_entity to select a font.
7007
7008 * fontset.c (fontset_find_font): If a font found without
a8a3728b 7009 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
7010 font with C restriction.
7011
98a326f7 70122009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 7013
be1bce46 7014 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 7015
10ea2b82
JR
70162009-03-04 Jason Rumney <jasonr@gnu.org>
7017
2c93b248 7018 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 7019 characters that have already been read. (Bug#2569)
2c93b248 7020
10ea2b82
JR
7021 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
7022 Log an error message if check_image_size failed.
7023 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 7024 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 7025
71a0c011
EZ
70262009-03-02 Eli Zaretskii <eliz@gnu.org>
7027
7028 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
7029 when decoding process output.
7030
2f63bba8
RS
70312009-03-01 Richard M Stallman <rms@gnu.org>
7032
7033 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
7034
7035 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
7036
0a9564cb
EZ
70372009-02-28 Eli Zaretskii <eliz@gnu.org>
7038
7039 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
7040 (decode_coding_emacs_mule, decode_coding_iso_2022)
7041 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7042 (decode_coding_raw_text, decode_coding_charset)
7043 (setup_coding_system, decode_eol, decode_coding, consume_chars):
7044 Honor inhibit-eol-conversion. (Bug #2186)
7045
449148b3
JR
70462009-02-28 Jason Rumney <jasonr@gnu.org>
7047
7048 * coding.c (detect_coding_charset): If not checking latin extra,
7049 fail on characters between 0x80 and 0xA0. (Bug#2354)
7050
a4aee864
EZ
70512009-02-28 Eli Zaretskii <eliz@gnu.org>
7052
7053 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 7054 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 7055
d88bee5a
GM
70562009-02-27 Glenn Morris <rgm@gnu.org>
7057
7058 * callint.c (Finteractive): Doc fix.
7059
a808f22d
KH
70602009-02-27 Kenichi Handa <handa@m17n.org>
7061
7062 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
7063
caf8d60c
CY
70642009-02-27 Chong Yidong <cyd@stupidchicken.com>
7065
7066 * font.c (font_style_to_value): Set value for unknown symbols to
7067 100 instead of 255.
b61137ea
CY
7068 (weight_table, slant_table, width_table): Treat "unspecified" as
7069 the default value.
caf8d60c 7070
1a0de25c
JB
70712009-02-26 Juanma Barranquero <lekktu@gmail.com>
7072
7073 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7074
8fc45744
JB
70752009-02-25 Juanma Barranquero <lekktu@gmail.com>
7076
107bd7d1
JB
7077 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7078 error as soon as a recursive load is detected.
8fc45744 7079
f097e223
AR
70802009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7081
7082 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7083 before caching.
7084
8810a12f
KH
70852009-02-24 Kenichi Handa <handa@m17n.org>
7086
7087 * fontset.c (fontset_find_font): Fix the condition for checking
7088 unavailable font.
7089
2c7d1565
GM
70902009-02-24 Glenn Morris <rgm@gnu.org>
7091
7092 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7093 whitespace that confuses documentation.
7094
a20878b6
MB
70952009-02-23 Miles Bader <miles@gnu.org>
7096
7097 * process.c (Flist_system_processes, Fprocess_attributes)
7098 (syms_of_process): Rename `system-process-attributes' to
7099 `process-attributes'.
7100
b3b58c01
AS
71012009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7102
1b3b981b
AS
7103 * coding.h (struct coding_system): Make safe_charsets a pointer to
7104 unsigned char.
7105 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7106 being 255.
7107 (SAFE_CHARSET_P): Likewise.
7108 (setup_iso_safe_charsets): Properly setup safe_charsets.
7109 (Fdefine_coding_system_internal): Likewise.
7110 (setup_coding_system): Likewise. Remove unneeded casts.
7111 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7112 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7113 unneeded casts.
7114
b3b58c01
AS
7115 * insdel.c (del_range_2): Don't modify gap contents when called
7116 from decode_coding_object. (Bug#1809)
7117
0b6f228c
CY
71182009-02-21 Chong Yidong <cyd@stupidchicken.com>
7119
7120 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7121 Qfont_object.
7122 (Ftype_of): Recognize font objects.
7123
7124 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7125
7126 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7127 moved to data.c.
7128
52f8870b
AR
71292009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7130
7131 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7132 async_iconified. Based on a patch by Christian Lynbech
7133 <christian.lynbech@tieto.com>.
7134 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7135
7087d5e9
GM
71362009-02-20 Glenn Morris <rgm@gnu.org>
7137
7138 * syntax.c (Fskip_chars_forward): Fix doc typo.
7139
41d2ceef
CY
71402009-02-20 Chong Yidong <cyd@stupidchicken.com>
7141
7142 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7143
1a3b7ca6
CY
71442009-02-19 Chong Yidong <cyd@stupidchicken.com>
7145
7146 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7147
73cce38d
KH
71482009-02-19 Kenichi Handa <handa@m17n.org>
7149
7150 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7151 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7152
a51092ee
DN
71532009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7154
7155 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7156
c423ecca
KH
71572009-02-18 Kenichi Handa <handa@m17n.org>
7158
7159 * font.c (font_check_otf_features): Fix handling of `nil' element.
7160 (Ffont_spec): Describe :lang and :otf in the docstring.
7161
4c1958f4
AS
71622009-02-16 Andreas Schwab <schwab@suse.de>
7163
7164 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7165 string.
7166
5704f39a
KH
71672009-02-16 Kenichi Handa <handa@m17n.org>
7168
7169 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7170 (Bug#1723)
5704f39a 7171
8f0085aa
CY
71722009-02-14 Chong Yidong <cyd@stupidchicken.com>
7173
a057d86a 7174 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7175
7176 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7177 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7178
aff01dd9
EZ
71792009-02-14 Eli Zaretskii <eliz@gnu.org>
7180
7181 * msdos.c (MAX_SCREEN_BUF): New macro.
7182 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7183 Encode the entire run of glyphs sharing the same face, instead of
7184 doing that one glyph at a time (fixes a bug with displaying
7185 double-size characters).
7186
ba301db3
AR
71872009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7188
7189 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7190
7191 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7192 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7193 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7194
7195 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7196 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7197
51d861de
SM
71982009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7199
ac146f82 7200 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7201 invisible areas.
7202
7fed8996
JR
72032009-02-12 Jason Rumney <jasonr@gnu.org>
7204
631ea4fb
JR
7205 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7206 (add_font_entity_to_list): Call check_face_name even when family
7207 is unspecified.
7208
cb4a3e42
JR
7209 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7210 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7211 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7212
7fed8996 7213 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7214 raster fonts. (Bug#2219)
7fed8996 7215
895416e3
KH
72162009-02-12 Kenichi Handa <handa@m17n.org>
7217
7218 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7219 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7220 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7221 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7222 (find_automatic_composition): While looking forward and backward,
7223 check static composition. Fix where to stop looking forward.
7224 (composition_adjust_point): Fix checking of static composition.
7225 (Fcomposition_get_gstring): Pay attention to
1dacf998 7226 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7227
7228 * lisp.h (fast_looking_at): Extern it.
7229
7230 * search.c (fast_looking_at): New function.
7231
51d861de 7232 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7233 <struct glyph>.u.cmp.to.
7234 (append_composite_glyph): Likewise.
7235
51d861de 7236 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7237 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7238 composition.
51d861de 7239 (append_composite_glyph): Adjust for the change of
895416e3
KH
7240 <strcut glyph>.u.cmp.to.
7241
8510724d
JB
72422009-02-11 Juanma Barranquero <lekktu@gmail.com>
7243
7244 * casetab.c (init_casetab_once):
7245 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7246 * font.c (font_update_lface):
7247 * fontset.c (Fnew_fontset):
7248 * ftfont.c (ftfont_drive_otf):
7249 * xfont.c (xfont_open):
7250 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7251
294fa707
SM
72522009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7253
7254 * fileio.c (Fwrite_region): !NILP -> CONSP.
7255
b5bfebec
AS
72562009-02-10 Andreas Schwab <schwab@suse.de>
7257
7258 * process.c (send_process): Properly relocate pointer into data
adab88bd 7259 when using encoded data. (Bug#2272)
b5bfebec 7260
cb84a2be
KH
72612009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7262
7263 * coding.c (detect_coding_charset): Fix previous change.
7264
89e09428
JR
72652009-02-08 Jason Rumney <jasonr@gnu.org>
7266
7267 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7268 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7269
4470a277
AS
72702009-02-07 Andreas Schwab <schwab@suse.de>
7271
7272 * unexelf.c (unexec): Fix error message.
7273
3175b12a
AR
72742009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7275
7276 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7277 when modal window is active. (Bug #2152)
3175b12a
AR
7278 (applicationShouldTerminate:): Remove now-unneeded while loop
7279 around NSRunAlertPanel.
7280
7281 * nsmenu.m (popupSession): New file-global variable.
7282 (pop_down_menu): End the popupSession before closing dialog.
7283 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7284 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7285 don't query NSApp for events (just sleep instead).
7286
8434d0b8
EZ
72872009-02-07 Eli Zaretskii <eliz@gnu.org>
7288
51d861de
SM
7289 * coding.c (syms_of_coding) <translation-table-for-input>:
7290 Modify doc string to discourage use for character code unification.
8434d0b8 7291
aa82edfd
CY
72922009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7293
7294 * atimer.c (run_timers): Update pending_atimers.
7295
2d283c7c
CY
72962009-02-06 Chong Yidong <cyd@stupidchicken.com>
7297
eb306cab
CY
7298 * image.c (svg_load_image): Fix last change.
7299
2d283c7c
CY
7300 * xfns.c (Fx_create_frame): Signal an error if no font is
7301 found (Bug#2147).
7302
4d8e170e
JB
73032009-02-05 Juanma Barranquero <lekktu@gmail.com>
7304
7305 * character.c (syms_of_character) <script-representative-chars>:
7306 Fix typo in docstring.
7307
c96169a0
AR
73082009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7309
7310 * nsmenu.m (pop_down_menu): New function.
7311 (ns_popup_dialog): Call it on unwind.
7312 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7313 call timer_check() (Bug#2154).
7314 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7315 handling_signal is set.
7316 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7317
31fd7c5c 7318 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7319
7320 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7321
7322 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7323
51d861de
SM
7324 * keyboard.c (poll_for_input_1, handle_async_input):
7325 Set handling_signal under HAVE_NS.
c96169a0 7326
aacd8ba1
GM
73272009-02-04 Glenn Morris <rgm@gnu.org>
7328
7329 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7330
4cb75c4b
KH
73312009-02-04 Kenichi Handa <handa@m17n.org>
7332
7333 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7334
7335 * charset.c (Fchar_charset): New optional arg restriction.
7336
7337 * coding.h (coding_system_charset_list): Extern it.
7338
7339 * coding.c (coding_system_charset_list): New function.
7340
7341 * composite.c: Include coding.h and termhooks.h.
7342 (composition_gstring_p): Fix for the terminal case.
7343 (composition_gstring_width): Likewise.
7344 (fill_gstring_body): Likewise.
7345 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7346 the frame.
7347 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7348 is within a composition.
867d4bb3 7349 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7350
7351 * term.c (encode_terminal_code): Fix handling of composition.
7352 (produce_composite_glyph): For static composition, get pixel_width
7353 from struct composition.
7354
826ba17e
AS
73552009-02-02 Andreas Schwab <schwab@suse.de>
7356
7357 * unexelf.c (unexec): Handle unaligned bss offset.
7358
8ad093db
AR
73592009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7360
7361 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7362 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7363
8ad093db
AR
7364 * keyboard.c (handle_interrupt): Don't call
7365 quit_throw_to_read_char() under NS.
d0a76a6e 7366
8ad093db
AR
7367 * blockinput.h: Remove NS-specific code.
7368
4d18a7a2
DN
73692009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7370
db878925
DN
7371 * dispnew.c (window_change_signal): Don't try to get the size of a
7372 suspended tty frame.
7373 * term.c (Fresume_tty): Resize if the size has changed while the
7374 tty was suspended.
7375
4d18a7a2
DN
7376 * alloc.c (mark_stack): Properly conditionalize previous change.
7377
8984df7c
JB
73782009-01-30 Juanma Barranquero <lekktu@gmail.com>
7379
7380 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7381 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7382 Remove; this code is not used on Windows.
7383
75f4f1ac
EZ
73842009-01-30 Eli Zaretskii <eliz@gnu.org>
7385
7386 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7387 EOLs that also has stray ^M characters.
7388
07a1e794
JB
73892009-01-30 Juanma Barranquero <lekktu@gmail.com>
7390
7391 * atimer.c (run_timers, alarm_signal_handler):
7392 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7393 * w32inevt.c (w32_console_read_socket):
7394 * w32term.c (w32_read_socket):
7395 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7396
a8b11cc9
CY
73972009-01-30 Chong Yidong <cyd@stupidchicken.com>
7398
7399 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7400 Initialize it as a relative filename pattern.
7401 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7402 (Fcall_process_region): Simplify temp file creation using
7403 temporary-file-directory.
7404
c279587b
EZ
74052009-01-29 Eli Zaretskii <eliz@gnu.org>
7406
7407 * msdos.c: Rename pending_signals to msdos_pending_signals.
7408 (sig_suspender, sigprocmask): Adjust.
7409
a8fe3242
CY
74102009-01-29 Chong Yidong <cyd@stupidchicken.com>
7411
7412 * keyboard.c (pending_signals): New var.
7413 (poll_for_input, input_available_signal, init_keyboard): Set it.
7414 (process_pending_signals): New function.
7415
7416 * lisp.h (QUIT): Check pending_signals instead of
7417 interrupt_input_pending. Use process_pending_signals.
7418
51d861de 7419 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7420
51d861de 7421 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7422
7423 * sysdep.c (emacs_write): Use process_pending_signals.
7424
7425 * xterm.c (XTread_socket): Update pending_signals.
7426
7427 * w32term.c (w32_read_socket): Update pending_signals.
7428
7429 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7430
6570a1c4
KH
74312009-01-29 Kenichi Handa <handa@m17n.org>
7432
7433 * xftfont.c (xftfont_has_char): New function.
7434 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7435
d72a4afa
AR
74362009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7437
7438 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7439 under GNUstep.
7440 (ns_query_color): New declaration.
7441
7442 * nsterm.m (ns_confirm_quit): New variable.
7443 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7444 (EmacsApp-applicationShouldTerminate:): Use it.
7445 (EmacsPrefsController): Let user set it.
7446 (ns_query_color): New function.
7447 (ns_defined_color): Use it.
7448 (ns_initialize): Drop.
7449 (ns_term_init): Add two lines from ns_initialize(), and set
7450 input_interrupt_mode to nil.
7451
7452 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7453 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7454
9fe78804
KH
74552009-01-28 Kenichi Handa <handa@m17n.org>
7456
7457 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7458 (fontset_get_font_group): Remember that no font-group is specified
7459 for C.
9fe78804 7460
fa57de36
CY
74612009-01-27 Chong Yidong <cyd@stupidchicken.com>
7462
930600e9
CY
7463 * fns.c (concat): Check for string overflow (bug#1787).
7464
fa57de36
CY
7465 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7466 Quadruple undo limits (bug#1501).
7467
7179ce7b
KH
74682009-01-27 Kenichi Handa <handa@m17n.org>
7469
7470 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7471 directly use GT_Get_Char_index.
7472
7473 * xftfont.c (struct xftfont_info): New member `index'.
7474
7475 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7476 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7477
5be8fcc0
CY
74782009-01-26 Kenichi Handa <handa@m17n.org>
7479
7480 * fontset.c (fontset_find_font): Fix handling of non-cons return
7481 value of fontset_get_font_group.
7482 (fontset_font): Revert last change.
7483
19ae3e61
JR
74842009-01-26 Jason Rumney <jasonr@gnu.org>
7485
7486 * w32font.c (w32font_list_internal): Return quickly if registry is
7487 unknown. Simplify final return.
7488 (add_font_entity_to_list): Break complex logic down into more
7489 manageable chunks. Move unknown registry check to
7490 w32font_list_internal.
7491
8612b71a
AR
74922009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7493
7494 Changes to remove Feval calls from GUI under NS.
7495
d8038940
JB
7496 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7497 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7498 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7499
7500 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7501 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7502 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7503 instead of NON_ASCII_KEYSTROKE_EVENT.
7504 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7505 (EmacsApp-applicationShouldTerminate:): Query user.
7506 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7507 instead of Feval.
7508
7509 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7510
7511 * keyboard.c (kbd_buffer_get_event): Check for it.
7512 (keys_of_keyboard): Define lispy keys for
7513 ns-put/unput-working-text.
7514
7515 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7516 versions.
7517 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7518
6288ae55
CY
75192009-01-25 Chong Yidong <cyd@stupidchicken.com>
7520
7521 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7522 setting current_buffer directly. (Bug#2044)
6288ae55 7523
289e7f8f
CY
75242009-01-24 Chong Yidong <cyd@stupidchicken.com>
7525
5ce87308 7526 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7527 any work. (Bug#1952, bug#1990).
5ce87308 7528
64cc3cf6 7529 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7530
b3243e6f
AR
75312009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7532
7533 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7534 (ns_no_defaults): New declaration.
7535 (main): Use it.
e0d2e69a 7536
d900b2af 7537 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7538
d900b2af 7539 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7540
d900b2af
AR
7541 * nsterm.m (ns_no_defaults): New variable.
7542 (ns_initialize): Don't read defaults when ns_no_defaults.
7543 (EmacsView-readSelectionFromPasteboard:)
7544 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7545 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7546 (ns_dumpglyphs_stretch): New function.
7547 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7548 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7549
e0d2e69a
AR
7550 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7551
3ac71f5d
CY
75522009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7553
7554 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7555 call for Sparc64.
7556
3fe53a83
AR
75572009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7558
7559 * nsfns.m:
7560 * nsgui.h:
7561 * nsmenu.m:
7562 * nsselect.m:
7563 * nsterm.h:
7564 * nsterm.m: Remove '23' comments that indicated code added during
7565 update from emacs-20 -> emacs-23.
7566
10f87c6f 75672009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7568
7569 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7570 ns_alternate_modifier. (Bug#1217)
a3b53a85 7571
c7cef62d
AR
7572 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7573 Display all shortcuts, including those w/o super modifier.
7574
575fb8bd
AR
7575 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7576
918b848b
CY
75772009-01-22 Chong Yidong <cyd@stupidchicken.com>
7578
7579 * fileio.c (Vwrite_region_post_annotation_function)
7580 (Vwrite_region_annotation_buffers): New vars.
7581 (build_annotations_unwind): Just reset
7582 Vwrite_region_annotation_buffers.
7583 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7584 Call write-region-post-annotation-function.
7585 (build_annotations): Add to Vwrite_region_annotation_buffers if
7586 buffer changes.
7587
a39e2539
AR
75882009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7589
7590 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7591 Tiger.
51d861de
SM
7592 * nsfns.m (ns_do_applescript):
7593 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7594
35ed44db
AR
75952009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7596
7597 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7598
cbe0b5bf
AR
75992009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7600
7601 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7602
6049d3a0
AR
7603 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7604
7605 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7606 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7607 handle Ctrl-tab. (Bug#1841)
7608 (ns_get_color): Use unsigned long long for scanned hex string value.
7609 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7610 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7611 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7612 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7613 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7614 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7615 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7616
d3810c21 7617 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7618 DPI. (Bug#1316)
d3810c21
AR
7619 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7620 values in onTiger section.
4c7077c3 7621
e301e634
CY
76222009-01-19 Chong Yidong <cyd@stupidchicken.com>
7623
7f82490b
CY
7624 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7625 Check return value of font_spec_from_name.
64cc3cf6 7626 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7627
7628 * font.c (font_spec_from_name): Return Qnil if font name could not
7629 be parsed.
7630 (font_parse_name): Treat a `?' character as part of an XLFD.
7631
e301e634
CY
7632 * fns.c (Fsubstring): Doc fix.
7633
1c0db158
KH
76342009-01-19 Kenichi Handa <handa@m17n.org>
7635
51d861de 7636 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7637 (ftfont_list): Likewise.
7638
acf20901
JB
76392009-01-18 Juanma Barranquero <lekktu@gmail.com>
7640
fff4e459
JB
7641 * dbusbind.c (Fdbus_register_signal):
7642 * process.c (conv_sockaddr_to_lisp):
7643 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7644
acf20901
JB
7645 * callproc.c (Fgetenv_internal): Doc fix.
7646
e7abcdfb
CY
76472009-01-16 Chong Yidong <cyd@stupidchicken.com>
7648
7649 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7650 it is not even used.
7651
b60861e6
GM
76522009-01-16 Glenn Morris <rgm@gnu.org>
7653
7654 * font.c (Ffont_variation_glyphs): Silence compiler.
7655
8db52afe
JB
76562009-01-15 Juanma Barranquero <lekktu@gmail.com>
7657
7658 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7659 Reported by David Robinow <drobinow@gmail.com>.
7660
4cddb209
KH
76612009-01-15 Kenichi Handa <handa@m17n.org>
7662
51d861de 7663 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7664
f247f67b
JR
76652009-01-14 Jason Rumney <jasonr@gnu.org>
7666
7667 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7668 never a fontset. (Bug#1562)
f247f67b 7669
f56a4450
KH
76702009-01-14 Kenichi Handa <handa@m17n.org>
7671
7672 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7673 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7674
4e99855e
CY
76752009-01-13 Chong Yidong <cyd@stupidchicken.com>
7676
7677 * font.c (font_clear_prop): If clearing the family, clear the font
7678 width index too.
7679
fff4e459 7680 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7681
24f01470
JB
76822009-01-12 Juanma Barranquero <lekktu@gmail.com>
7683
7684 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7685 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7686 functions, use sizeof.
7687
a41240a3
MR
76882009-01-12 Martin Rudalics <rudalics@gmx.at>
7689
7690 * keyboard.c (read_char): Fix case where last_nonmenu_event
7691 returned a bad value with submenus. (Bug#447)
7692
944636b8
CY
76932009-01-12 Chong Yidong <cyd@stupidchicken.com>
7694
7695 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7696 family, clear the font width index too.
7697
0dad7c6f
JR
76982009-01-11 Jason Rumney <jasonr@gnu.org>
7699
7700 * keyboard.c (cmd_error_internal): Exit when errors occur before
7701 frame creation and not in daemon mode. (Bug#1836)
7702
7c2363af
CY
77032009-01-10 Chong Yidong <cyd@stupidchicken.com>
7704
7705 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7706 of a display vector, backtrack.
7707 (try_window_reusing_current_matrix): Check glyph type before
7708 referencing charpos member.
7709
97b1b294
EZ
77102009-01-10 Eli Zaretskii <eliz@gnu.org>
7711
7712 Fix Bug #876:
7713
7714 * coding.c (inhibit_null_byte_detection): New variable.
7715 (detect_coding, detect_coding_system): Don't pay attention to null
7716 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7717 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7718 <inhibit-iso-escape-detection>: Doc fix.
7719
4624b6e3
JR
77202009-01-09 Jason Rumney <jasonr@gnu.org>
7721
7722 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7723 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7724 Only report Unicode Plane 2 fonts as unicode-sip.
7725
323b840c
CY
77262009-01-09 Chong Yidong <cyd@stupidchicken.com>
7727
51d861de
SM
7728 * xfaces.c (Fx_font_family_list): Delete function.
7729 Move compatibility version to faces.el.
323b840c 7730
51d861de 7731 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7732
eba7400d
MR
77332009-01-09 Martin Rudalics <rudalics@gmx.at>
7734
7735 * frame.c (x_set_frame_parameters): Remember requested value for
7736 fullscreen before it's reset by the parameter handler.
7737
4b09796d
GM
77382009-01-09 Glenn Morris <rgm@gnu.org>
7739
7740 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7741 (last_command_event): ... and update all users.
4b09796d
GM
7742 (last_input_char): For clarity, rename to...
7743 (last_input_event): ... and update all users.
7744 (last-command-char, last-input-char): Move to subr.el as aliases.
7745 * cmds.c, commands.h: Update for last_command_char rename.
7746
14ccea62
CY
77472009-01-08 Chong Yidong <cyd@stupidchicken.com>
7748
51d861de 7749 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7750
5f004711
JR
77512009-01-08 Jason Rumney <jasonr@gnu.org>
7752
7753 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7754 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7755 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7756 Don't declare.
fff4e459 7757 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7758 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7759
b71f6f73
KH
77602009-01-07 Kenichi Handa <handa@m17n.org>
7761
50b06221 7762 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7763 remember the coding system used for decoding in
50b06221
KH
7764 coding_system (Bug#1039).
7765
b71f6f73 7766 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7767 breaking the loop. (Bug#870)
b71f6f73
KH
7768 (decode_coding_utf_16, decode_coding_emacs_mule)
7769 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7770 (decode_coding_charset): Likewise.
7771
56f668f7
MR
77722009-01-05 Martin Rudalics <rudalics@gmx.at>
7773
7774 * frame.c (x_set_frame_parameters): Make sure height (width) get
7775 applied when fullwidth (fullheight) is set. (Bug#1522)
7776
5da9424d
JB
77772009-01-04 Juanma Barranquero <lekktu@gmail.com>
7778
7779 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7780 (utc_base): Declare as ULONGLONG, not long double.
7781 (convert_time_raw): Delete.
7782 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7783 (initialize_utc_base): New function.
7784 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7785 (convert_from_time_t): Use initialize_utc_base; compute result with
7786 64-bit arithmetic.
7787 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7788
c4605e09
EZ
77892009-01-03 Eli Zaretskii <eliz@gnu.org>
7790
9acef61c 7791 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7792 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7793 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7794 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7795 [!subprocesses]: Define.
7796 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7797 (Flist_system_processes, Fsystem_process_attributes)
7798 [!subprocesses]: Call list_system_processes and
7799 system_process_attributes instead of returning Qnil.
7800
9acef61c
JB
7801 * dosfns.c (system_process_attributes, list_system_processes):
7802 New functions.
c4605e09
EZ
7803
7804 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7805
7806 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7807 Don't use the default (no-op) implementation.
7808
8b7d0a16
JR
78092009-01-03 Jason Rumney <jasonr@gnu.org>
7810
a6d46bc1
JR
7811 * keyboard.c (parse_modifiers_uncached): Wheel events are
7812 clicks (bug#687).
7813
8b7d0a16
JR
7814 * w32term.c (x_query_colors, x_query_color): New functions.
7815
7816 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7817 (svg_load_image): Cast returned pointers from dynamically loaded
7818 functions. Eliminate W32 specific code.
7819
bfe11752
DN
78202009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7821
89e2438a
DN
7822 * nsfns.m (x_set_foreground_color, x_set_background_color)
7823 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7824 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7825 x_ prefix instead of ns_. Update references.
7826 (syms_of_nsfns): Add a FIXME comment.
7827
7828 * nsterm.m (x_set_cursor_type): New prototype.
7829 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7830
bfe11752
DN
7831 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7832 for Solaris instead of incorrectly providing Qutime and Qcutime.
7833
031da700
EZ
78342009-01-02 Eli Zaretskii <eliz@gnu.org>
7835
7836 * w32.c (process_times): Compute sum of utime and stime.
7837 (system_process_attributes): Add Qtime to the alist.
7838
7839 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7840 and add them to the alist.
7841
7842 * process.c (top level) <Qtime, Qctime>: New variables.
7843 (syms_of_process): staticpro them.
7844 (Fsystem_process_attributes): Add their documentation to the doc
7845 string.
7846
7847 * process.h: Declare Qtime and Qctime.
7848
df23bf08
JR
78492009-01-02 Jason Rumney <jasonr@gnu.org>
7850
9acef61c 7851 * image.c (Qgobject): New symbol.
df23bf08
JR
7852 (syms_of_image): Initialize it.
7853 (init_svg_functions): Load some functions from gobject library.
7854
5bbdf7aa
DN
78552009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7856
7857 * frame.c (make_terminal_frame): Remove redundant code and useless
7858 block.
7859
63136da6
AS
78602009-01-01 Andreas Schwab <schwab@suse.de>
7861
7862 * process.c (conv_sockaddr_to_lisp): Add workaround for
7863 getsockname bug on BSD.
7864
9ef69046
CY
78652009-01-01 Chong Yidong <cyd@stupidchicken.com>
7866
d6fafbe0
CY
7867 * xfns.c (x_create_tip_frame): Set border width of the X window.
7868
51d861de 7869 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7870
f9c34147
JR
78712009-01-01 Jason Rumney <jasonr@gnu.org>
7872
9acef61c 7873 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7874 Don't block input, as per earlier xterm.c changes.
7875
f5497e45
AR
78762008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7877
7878 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7879 (ns_appkit_version_int): New function.
7880 (x-server-version): Use ns_appkit_version_int and follow 21+
7881 convention of returning 3 integers.
7882
c19cab20
KH
78832008-12-30 Kenichi Handa <handa@m17n.org>
7884
7885 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7886 (CHAR_SURROGATE_PAIR_P): New macro.
7887
7888 * font.h (struct font_driver): New member get_variation_glyphs.
7889
9acef61c 7890 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7891 (Ffont_variation_glyphs): New function.
7892 (syms_of_font): Defsubr it.
7893
7894 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7895 ftfont_variation_glyphs.
7896 (setup_otf_gstring): New function.
7897 (ftfont_drive_otf): Use it.
7898 (ftfont_shape_by_flt): Handle variation selector.
7899 (ftfont_variation_glyphs): New function.
7900
28cd591f
MR
79012008-12-30 Martin Rudalics <rudalics@gmx.at>
7902
7903 * frame.c (Vemacs_iconified): Remove.
7904
7f714baf
JR
79052008-12-30 Jason Rumney <jasonr@gnu.org>
7906
7907 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7908 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7909
9d2d22ab
CY
79102008-12-30 Chong Yidong <cyd@stupidchicken.com>
7911
7912 * indent.c (Fvertical_motion): Don't advance iterator if we have
7913 reseated to the desired position.
7914
7915 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7916 checking for pos match.
7917
545312c2
KH
79182008-12-30 Kenichi Handa <handa@m17n.org>
7919
1ede3eb6
KH
7920 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7921 just get the low 8-bit of the code.
7922
545312c2
KH
7923 * font.c (font_intern_prop): Validate str as multibyte.
7924
bd7bbf29
DN
79252008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7926
31e0750e
DN
7927 * dispextern.h (struct face): Move lface and hash from the middle
7928 of bitfields.
7929
bd7bbf29
DN
7930 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7931
b5672e7c
DN
79322008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7933
7934 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7935 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7936 instead of intervals.h.
7937
d704470f
AS
79382008-12-26 Andreas Schwab <schwab@suse.de>
7939
7940 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7941 cons.
7942
54b33868
MR
79432008-12-26 Martin Rudalics <rudalics@gmx.at>
7944
7945 * textprop.c (Qminibuffer_prompt): New variable.
7946 (syms_of_textprop): Initialize it.
7947 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7948 in minibuffer-prompt face. (Bug#1662)
7949
40b615d6
JR
79502008-12-25 Jason Rumney <jasonr@gnu.org>
7951
7952 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7953
baae5c2d
JR
79542008-12-24 Jason Rumney <jasonr@gnu.org>
7955
7956 * ralloc.c (r_alloc_reset_variable): New function.
7957
7958 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7959 record of what points where. (Bug#716)
baae5c2d 7960
a9051c88
DN
79612008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7962
7963 * minibuf.c (read_minibuf): Follow the non-interactive case when
7964 running as a daemon, before detaching.
7965
8b146312
AS
79662008-12-22 Andreas Schwab <schwab@suse.de>
7967
7968 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7969 * gtkutil.c (free_widget_value): Use xfree instead of free.
7970
56f2de10
MR
79712008-12-22 Martin Rudalics <rudalics@gmx.at>
7972
7973 * frame.c (delete_frame): New function derived from
7974 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7975 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7976 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7977 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7978 * frame.h: Extern delete_frame.
7979 * window.c (window_loop):
7980 * terminal.c (delete_terminal):
7981 * xterm.c (x_connection_closed):
7982 * xfns.c (Fx_hide_tip):
9acef61c 7983 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7984
1fc200d6
JR
79852008-12-21 Jason Rumney <jasonr@gnu.org>
7986
7987 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7988 when character maps to .notdef character.
7989
5e252df2
SM
79902008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7991
7992 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7993
99b72cc4
JR
79942008-12-20 Jason Rumney <jasonr@gnu.org>
7995
7996 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7997 a graphical frame on Windows. (Bug#1325)
99b72cc4 7998
acc49a52
JD
79992008-12-20 Jan Djärv <jan.h.d@swipnet.se>
8000
8001 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
8002
6ea15123
CY
80032008-12-20 Chong Yidong <cyd@stupidchicken.com>
8004
8005 * minibuf.c (Fread_buffer): Doc fix.
8006
b2dab6c8
JR
80072008-12-20 Jason Rumney <jasonr@gnu.org>
8008
54ea0c87 8009 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 8010 server name in UNC paths. (Bug#719)
54ea0c87 8011
b2dab6c8 8012 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 8013 charbuf. (Bug#1035)
b2dab6c8 8014
6d1921be
DN
80152008-12-19 Daniel Engeler <engeler@gmail.com>
8016
8017 * sysdep.c (serial_configure): Fix typo.
8018
53934c98
DN
80192008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8020
8021 * sysdep.c: Include alloca.h.
f4f634e8
DN
8022 (system_process_attributes): Add implementation for Solaris.
8023
8024 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 8025
06e111a6
DN
80262008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
8027
8028 Reorganize implementation of Flist_system_processes and
8029 Fsystem_process_attributes. No functional changes.
8030 * process.c: Don't #include pwd.h, grp.h and limits.h.
8031 (Flist_system_processes): Just call list_system_processes.
8032 (Fsystem_process_attributes): Just call system_process_attributes.
8033 (procfs_list_system_processes, time_from_jiffies)
8034 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
8035 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
8036
8037 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
8038 (list_system_processes): Rename from
8039 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
8040 Provide a do nothing implementation.
8041 (system_process_attributes): Rename from
8042 procfs_list_system_processes.
8043 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 8044 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
8045
8046 * w32.c (list_system_processes): Rename from
8047 w32_list_system_processes.
8048 (system_process_attributes): Rename from
8049 w32_system_process_attributes.
8050
8051 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
8052
8053 * process.h (w32_list_system_processes)
8054 (w32_system_process_attributes): Remove.
362654a6
JB
8055 (list_system_processes, system_process_attributes):
8056 New prototypes.
06e111a6 8057
6a705b23
KH
80582008-12-19 Kenichi Handa <handa@m17n.org>
8059
8060 * xfont.c (xfont_decode_coding_xlfd): New function.
8061 (xfont_encode_coding_xlfd): New function.
8062 (xfont_list_pattern): Decode XLFD by iso-8859-1.
8063 (xfont_list): Decode and encode XLFD by iso-8859-1.
8064 (xfont_match): Likewise.
8065 (xfont_list_family): Likewise.
8066 (xfont_open): Likewise.
8067
d66c0241 8068 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
8069 names are utf-8.
8070
d66c0241 8071 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
8072 names are utf-8.
8073
5a130941
JD
80742008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8075
8076 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8077 changed.
bfd20325
JD
8078 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8079 clicked on a detached tool bar button.
5a130941 8080
fd95644b
DN
80812008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8082
8083 * emacs.c (main): Print and error and exit when no data is read
8084 from the pipe.
8085
e6eee6ae
JR
80862008-12-17 Jason Rumney <jasonr@gnu.org>
8087
8088 * w32font.c (w32font_has_char): Always return -1.
8089
a35dd56b
KH
80902008-12-16 Kenichi Handa <handa@m17n.org>
8091
8092 * font.c (font_open_entity): Fix previous change.
8093
0e3635c2
DN
80942008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8095
8096 * process.c: Include <limits.h>.
8097
d4835507 80982008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8099
8100 * font.c (font_update_drivers): Fix mistake in reconstructing the
8101 driver list.
8102
81032008-12-16 Chong Yidong <cyd@stupidchicken.com>
8104
8105 * font.c (font_clear_cache): Fix format of font cache data.
8106
e2cbc401
CY
81072008-12-15 Chong Yidong <cyd@stupidchicken.com>
8108
8109 * xftfont.c (xftfont_open): Free Xft font pattern if
8110 XftFontOpenPattern fails.
8111
8112 * xterm.c (x_free_frame_resources): Remove extraneous call to
8113 free_frame_faces.
8114
b131d535
CY
81152008-12-13 Chong Yidong <cyd@stupidchicken.com>
8116
8117 * xterm.c (x_delete_display): Move xim_close_dpy call to
8118 x_delete_terminal.
8119 (x_delete_terminal): Call xim_close_dpy.
8120
e6df5336
JR
81212008-12-13 Jason Rumney <jasonr@gnu.org>
8122
8123 * w32font.c (intern_font_name): New function.
8124 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8125 (w32font_open_internal, Fx_select_font): Decode font name.
8126 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8127
8128 * w32font.h (intern_font_name): Declare new function.
8129
8130 * w32uniscribe.c (add_opentype_font_name_to_list):
8131 Use intern_font_name.
8132
20d68145
CY
81332008-12-13 Chong Yidong <cyd@stupidchicken.com>
8134
9f2554de
CY
8135 * frame.c (Fdelete_frame): Call free_font_driver_list.
8136
3d9bec9a
CY
8137 * font.c (free_font_driver_list): Implement missing function.
8138
20d68145
CY
8139 * w32term.c (w32_term_init): Don't initialize the image cache
8140 here; it will be done in init_frame_faces.
8141
8142 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8143 (struct x_display_info): Remove unused member null_pixel. New
8144 member xim_callback_data.
8145
8146 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8147 (xim_initialize): Save pointer to callback function data.
8148 (xim_close_dpy): Free callback function data. Call XCloseIM,
8149 reverting 2008-11-04 change by David Smith.
8150 (x_term_init): Don't initialize the image cache here; it will be
8151 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8152 (x_delete_display): Free x_dnd_atoms member.
8153
96f9306b
KH
81542008-12-13 Kenichi Handa <handa@m17n.org>
8155
6dec9044
JB
8156 * font.c (font_rescale_ratio): Moved from xfaces.c.
8157 Argument type changed. Handle a font-spec too.
96f9306b 8158 (font_score): Check Vface_font_rescale_alist.
6dec9044 8159 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8160
8161 * xfaces.c (font_rescale_ratio): Moved to font.c.
8162
8d5b4964
CY
81632008-12-13 Chong Yidong <cyd@stupidchicken.com>
8164
8165 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8166
e6df5336
JR
81672008-12-12 Jason Rumney <jasonr@gnu.org>
8168
8169 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8170 Vwindow_system_version to the real w32 major version.
8171
97c6058a
DN
81722008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8173
8174 * term.c (init_tty): Move setting the terminal name before the
8175 potential user: maybe_fatal.
8176
ec4e88d7
CY
81772008-12-11 Chong Yidong <cyd@stupidchicken.com>
8178
d4835507
JB
8179 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8180 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8181
b4233ec9
JR
81822008-12-11 Jason Rumney <jasonr@gnu.org>
8183
8ec71e23 8184 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8185 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8186
b4233ec9 8187 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8188 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8189
011a0143
JB
81902008-12-11 Juanma Barranquero <lekktu@gmail.com>
8191
8192 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8193
3c309f34
JB
81942008-12-11 Juanma Barranquero <lekktu@gmail.com>
8195
8196 * process.c (Fsystem_process_attributes, syms_of_process):
8197 Fix typo in name of Ssystem_process_attributes.
8198 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8199
fedc6ab5
JB
82002008-12-11 Juanma Barranquero <lekktu@gmail.com>
8201
8202 * syntax.c (Fmodify_syntax_entry): Doc fix.
8203
ba3de0e8
JB
82042008-12-10 Juanma Barranquero <lekktu@gmail.com>
8205
8206 * font.c (Ffont_spec): Move usage to end of docstring.
8207
174f1c74
JR
82082008-12-10 Jason Rumney <jasonr@gnu.org>
8209
8210 * w32font.c (Qcham): New symbol.
8211 (font_supported_scripts): Add cham, and comments for other new
8212 scripts in bitfield from OpenType spec.
9d32f818
JR
8213 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8214 contain characters beyond the bmp.
174f1c74 8215
7b649478
KH
82162008-12-10 Kenichi Handa <handa@m17n.org>
8217
8218 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8219 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8220 Qunicode_sip.
8221
2133e2d1
JB
82222008-12-10 Juanma Barranquero <lekktu@gmail.com>
8223
8224 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8225 (Fcoding_system_put): Use QCdefault_char.
8226 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8227
9af886ee
CY
82282008-12-09 Chong Yidong <cyd@stupidchicken.com>
8229
74d819eb
CY
8230 * xftfont.c (syms_of_xftfont): Fix typo.
8231
4ccfa1c0 8232 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8233
7c19d3ae
DN
82342008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8235
8236 * emacs.c (main): Close daemon_pipe on exec.
8237
567826bb
CY
82382008-12-08 Chong Yidong <cyd@stupidchicken.com>
8239
8240 * termchar.h (struct tty): New members termcap_term_buffer and
8241 termcap_strings_buffer.
8242
8243 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8244 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8245 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8246 All callers changed.
8247 (init_tty): Store termcap data and string buffers in new struct
8248 tty members termcap_term_buffer and termcap_strings_buffer.
8249 (delete_tty): Free them.
4ccfa1c0 8250 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8251
aa96c42b
SZ
82522008-12-07 Seiji Zenitani <zenitani@mac.com>
8253
8254 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8255 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8256
b7e1d896
CY
82572008-12-06 Chong Yidong <cyd@stupidchicken.com>
8258
8259 * coding.c (make_conversion_work_buffer): Disable buffer
8260 modification hooks in the work buffer.
8261
b5ec91a5
EZ
82622008-12-05 Eli Zaretskii <eliz@gnu.org>
8263
8264 * process.c (procfs_system_process_attributes): If `nread' has a
8265 negative value, assign zero to it.
8266
a5d2a52b
CY
82672008-12-05 Chong Yidong <cyd@stupidchicken.com>
8268
68c5540b 8269 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8270
7bf1bb21
KH
82712008-12-05 Kenichi Handa <handa@m17n.org>
8272
8273 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8274 second character is a combining character.
8275
2fdc7d00
EZ
82762008-12-05 Eli Zaretskii <eliz@gnu.org>
8277
8278 * process.c (procfs_system_process_attributes): Don't use cmd,
8279 cmdsize, and q without initializing them first.
8280
bf6bfba8
JR
82812008-12-04 Jason Rumney <jasonr@gnu.org>
8282
8283 * w32font.c (w32font_draw): Initialize orig_clip before getting
8284 it, and delete it when finished.
8285
a3b1a468
DN
82862008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8287
8288 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8289 case when running as a daemon before detaching.
8290
8b8be8eb
JB
82912008-12-03 Juanma Barranquero <lekktu@gmail.com>
8292
805f2638 8293 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8294
b1bde622
KH
82952008-12-03 Kenichi Handa <handa@m17n.org>
8296
e500c47d
KH
8297 * font.c (font_at): Set `multibyte' at first.
8298
ca516334
KH
8299 * coding.c (decode_coding_charset): Check type of an element of
8300 vector VALIDS.
7bf1bb21 8301 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8302
4ccfa1c0 8303 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8304 (font_for_char): Likewise.
8305
1e5ecd37
CY
83062008-12-03 Chong Yidong <cyd@stupidchicken.com>
8307
d5b01609 8308 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8309 (font_update_lface): Handle fonts with corrupted size specs,
8310 i.e. non-int and non-float.
d5b01609 8311
11e3a6e4 8312 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8313 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8314 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8315
ab06788b
CY
8316 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8317
1e5ecd37 8318 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8319 underline_minimum_offset for underline position.
1e5ecd37 8320
63c125ab
DN
83212008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8322
8323 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8324
8325 * character.c (c_string_width): Specify the type for LEN.
8326
3a8406e1
KH
83272008-12-03 Kenichi Handa <handa@m17n.org>
8328
4ccfa1c0 8329 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8330 (decode_coding_utf_8): Likewise.
4ccfa1c0 8331 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8332 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8333
651df7d9
CY
83342008-12-02 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * keyboard.c (make_lispy_position): Only use PT if the selected
8337 window is current.
8338
1f625c6c
AS
83392008-12-02 Andreas Schwab <schwab@suse.de>
8340
f7741ce9
AS
8341 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8342
1f625c6c
AS
8343 * doprnt.c (doprnt1): Fix size of charbuf.
8344
92bc2678
CY
83452008-12-02 Chong Yidong <cyd@stupidchicken.com>
8346
8347 * keyboard.c (timer_check): Revert last change.
8348
93b9e8cc
JB
83492008-12-02 Juanma Barranquero <lekktu@gmail.com>
8350
8351 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8352
fd7a37d5
JB
83532008-12-01 Juanma Barranquero <lekktu@gmail.com>
8354
8355 * makefile.w32-in: Update dependencies.
8356 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8357
c115043b
AS
83582008-12-01 Andreas Schwab <schwab@suse.de>
8359
8360 * font.c (register_font_driver): Use xmalloc.
8361 (font_put_frame_data): Likewise.
8362
f5668d2a
CY
83632008-12-01 Chong Yidong <cyd@stupidchicken.com>
8364
860d96be
CY
8365 * xfaces.c (realize_x_face): Make abort condition clearer.
8366
f5668d2a
CY
8367 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8368
379c17e7
CY
83692008-11-30 Chong Yidong <cyd@stupidchicken.com>
8370
8371 * keyboard.c (timer_check): After a timer runs, ensure that the
8372 selected window's buffer is current.
8373
35f36d65
JB
83742008-11-30 Juanma Barranquero <lekktu@gmail.com>
8375
f952c61c
JB
8376 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8377 It was accidentally restored by the Unicode merge.
8378
35f36d65
JB
8379 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8380
b23077df
JB
83812008-11-29 Juanma Barranquero <lekktu@gmail.com>
8382
8383 * w32proc.c: Include "coding.h".
8384 (Fw32_short_file_name): Encode filename passed to Windows API.
8385 (Fw32_long_file_name): Encode filename passed to Windows API and
8386 decode back the result. (Bug#1433)
8387
b8ebe9dd
KH
83882008-11-29 Kenichi Handa <handa@m17n.org>
8389
8cc53f96
KH
8390 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8391 not before accessing it.
8392
b8ebe9dd
KH
8393 * charset.c (Fdefine_charset_internal): After calculating
8394 min_char, max_char, and fastmap, copy the charset structure again.
8395 (encode_char): Fix the previous change.
8396
59bc82c0
SZ
83972008-11-28 Seiji Zenitani <zenitani@mac.com>
8398
8399 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8400
8401 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8402
8403 * nsterm.m (x_set_frame_alpha): New function.
8404
32247e3d
EZ
84052008-11-27 Eli Zaretskii <eliz@gnu.org>
8406
8407 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8408
b003e5ff
JB
84092008-11-27 Juanma Barranquero <lekktu@gmail.com>
8410
8411 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8412 pointer to check_face_name.
8413
708550f5
KH
84142008-11-27 Kenichi Handa <handa@m17n.org>
8415
8416 * category.h (SET_CATEGORY_SET): Call set_category_set.
8417 (set_category_set): Extern it.
8418
8419 * category.c (hash_get_category_set): New function.
8420 (Fmodify_category_entry): Adjusted for the change of
8421 char_table_ref_and_range. Call hash_get_category_set to get a
8422 category set to store in the table.
8423
8424 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8425 Funify_charset.
8426
2ae37cf0 8427 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8428 (DECODE_CHAR): Check if the decoder vector is ready.
8429 (ENCODE_CHAR): Check if the encoder char-table is ready.
8430 (maybe_unify_char): Extern it.
8431
8432 * charset.c (Vchar_unified_charset_table): Delete it.
8433 (inhibit_load_charset_map): New variable.
8434 (temp_charset_work): New variable.
8435 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8436 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8437 New macros.
8438 (load_charset_map): Meaning of control_flag changed. If
8439 inhibit_load_charset_map is nonzero, setup a table in
8440 temp_charset_work.
8441 (load_charset): New argument control_flag.
8442 (map_charset_for_dump): New function.
8443 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8444 map_charset_for_dump.
8445 (Fdefine_charset_internal): If the charset method is MAP, load
8446 mapping tables by calling load_charset.
8447 (Funify_charset): Don't load a mapping table but directly set
8448 Vchar_unify_table.
8449 (maybe_unify_char): New function.
8450 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8451 Handle the case of inhibit_load_charset_map being nonzero.
8452 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8453 Handle the case of inhibit_load_charset_map being nonzero.
8454 (Fclear_charset_maps): Just free temp_charset_work.
8455 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8456 variable.
8457
8458 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8459 change of char_table_ref_and_range.
8460 (char_table_ref_and_range): Change the meaning of argument FROM
8461 and TO. Now the caller must provide initial values for *FROM
8462 and *TO.
8463
8464 * fontset.c (fontset_add): Adjusted for the change of
8465 char_table_ref_and_range.
8466 (fontset_get_font_group): Likewise.
8467 (Ffontset_info): Likewise.
8468
8469 * keymap.c (describe_vector): Adjusted for the change of
8470 char_table_ref_and_range. For char-table, put boundary between
8471 non-ASCII and 8-bit characters.
8472
8473 * print.c (print_object): For bool-vector, delete unnecessary
8474 check of ASCII_BYTE_P.
8475
9196133b
JR
84762008-11-26 Jason Rumney <jasonr@gnu.org>
8477
8478 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8479 leading in font height. (Bug#879)
9196133b 8480
9f688acf
GM
84812008-11-26 Glenn Morris <rgm@gnu.org>
8482
8483 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8484 redefinition with ifdef. (Bug#1383)
8485
90d19aff
AR
84862008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8487
8488 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8489
4ccfa1c0 84902008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8491
8492 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8493 New EmacsView methods.
8494 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8495 Fixes bug #1048,1357,1414.
8496
84972008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8498
8499 Fix bug #1362.
8500 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8501 is not an indexed color.
8502 * nsterm.m (free_indexed_color): Add argument checking.
8503 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8504
e7d5ecb3
CY
85052008-11-24 Chong Yidong <cyd@stupidchicken.com>
8506
8507 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8508 Document confirm-after-completion value for
8509 minibuffer-completion-confirm.
8510
c285743c
JR
85112008-11-24 Jason Rumney <jasonr@gnu.org>
8512
8513 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8514 warning.
8515
b0857706
JR
85162008-11-23 Jason Rumney <jasonr@gnu.org>
8517
8518 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8519 restored before returning.
8520
8521 * w32font.c (check_face_name): New function.
8522 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8523 fonts. (Bug#642)
b0857706 8524
ee50ff07
MR
85252008-11-22 Martin Rudalics <rudalics@gmx.at>
8526
8527 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8528 confirm-nonexistent-file-or-buffer in doc-string.
8529
b8ff72fa
SM
85302008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8531
8532 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8533 Fix copy/paste typo. Add checks.
8534
cee53ed4
KH
85352008-11-21 Kenichi Handa <handa@m17n.org>
8536
8537 * coding.c (detect_coding_iso_2022): Reject invalid composition
8538 sequence.
8539 (DECODE_COMPOSITION_START): If the current source is the last
8540 block, and the current composition doesn't end, regard this
8541 sequence as invalid.
8542 (decode_coding_iso_2022): Handle invalid composition sequence.
8543
f6ef1e65
MR
85442008-11-20 Martin Rudalics <rudalics@gmx.at>
8545
8546 * window.c (coordinates_in_window): Don't return
8547 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8548 line when the window is not the rightmost one. (Bug#1372)
8549
e08b1705
MR
85502008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8551
8552 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8553
ad98e89f
EZ
85542008-11-15 Eli Zaretskii <eliz@gnu.org>
8555
8556 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8557 and bright_bg if noninteractive is non-zero.
8558
fb098a4b
CY
85592008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8560
8561 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8562 x_draw_glyph_string_background.
8563
8564 * w32term.c (x_draw_glyph_string): Likewise.
8565
ce952b6e
CY
85662008-11-15 Chong Yidong <cyd@stupidchicken.com>
8567
8568 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8569 the next glyph string once past the overhang width.
8570
8571 * nsterm.m (ns_draw_glyph_string): Likewise.
8572
8573 * w32term.c (x_draw_glyph_string): Likewise.
8574
26ea7079
CY
85752008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8576
8577 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8578 double file close.
8579
1c33c906
MR
85802008-11-14 Martin Rudalics <rudalics@gmx.at>
8581
8582 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8583 dedicated status of window before attempting to display another
8584 buffer in it.
8585
8fc29035
JB
85862008-11-14 Juanma Barranquero <lekktu@gmail.com>
8587
8588 * msdos.c (Fmsdos_long_file_names):
8589 (syms_of_msdos) <dos-unsupported-char-glyph>:
8590 * dosfns.c (Fint86): Fix typos in docstrings.
8591
55fb4286
EZ
85922008-11-14 Eli Zaretskii <eliz@gnu.org>
8593
8594 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8595
3fda0315
KY
85962008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8597
8598 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8599
7e849c17
CY
86002008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8601
8602 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8603
8604 * frame.h: Negative alpha means "don't touch".
8605
8606 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8607
8608 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8609
b9fd67bd
DN
86102008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8611
8612 * hftctl.c:
8613 * chpdef.h:
8614 * acldef.h: Remove files used only for systems no longer supported.
8615
8616 * Makefile.in: Fix .o alphabetical ordering.
8617 (hftctl.o): Remove dependency, file removed.
8618 (keymap.o, print.o): Depend on charset.h.
8619
d5998e03
KH
86202008-11-10 Kenichi Handa <handa@m17n.org>
8621
2ae37cf0 8622 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8623
be70e183
CY
86242008-11-08 Chong Yidong <cyd@stupidchicken.com>
8625
8626 * dired.c (file_name_completion): If completion_ignore_case is
8627 enabled, ignore case when checking completion-regexp-list.
8628
7cf94eac
EZ
86292008-11-08 Eli Zaretskii <eliz@gnu.org>
8630
8631 * vm-limit.c (get_lim_data): Fix last change.
8632
ee107a89
KH
86332008-11-08 Kenichi Handa <handa@m17n.org>
8634
8635 * character.c (Fget_byte): New function.
8636 (syms_of_character): Defsubr Fget_byte.
8637
5fd15622
CY
86382008-11-07 Chong Yidong <cyd@stupidchicken.com>
8639
8640 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8641 cursor position is valid after scrolling.
8642
13d62fad
JB
86432008-11-06 Juanma Barranquero <lekktu@gmail.com>
8644
8645 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8646
a1dd2936
GM
86472008-11-06 Glenn Morris <rgm@gnu.org>
8648
8649 * xterm.c (handle_one_xevent): Don't let popup menus cause
8650 mouse-autoselect-window related window switching. (Bug#1261)
8651
860cd236
CY
86522008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8653
8654 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8655
653a3150
AS
86562008-11-04 Andreas Schwab <schwab@suse.de>
8657
8658 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8659
870f5cac
CY
86602008-11-03 Chong Yidong <cyd@stupidchicken.com>
8661
8662 * xfns.c (Fx_wm_set_size_hint): New function.
8663
1e02f3cb
MR
86642008-11-03 Martin Rudalics <rudalics@gmx.at>
8665
8666 * textprop.c (Fprevious_single_char_property_change): Return 0
8667 when there's no change in a string. (Bug#1301)
8668
e630dfc6
MR
86692008-11-02 Martin Rudalics <rudalics@gmx.at>
8670
8671 * frame.c (do_switch_frame): New argument NORECORD passed to
8672 Fselect_window.
8673 (Fselect_frame): New argument NORECORD passed to
8674 do_switch_frame.
8675 (Fset_frame_selected_window): New argument NORECORD passed to
8676 Fselect_frame.
8677 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8678 in call of do_switch_frame.
8679 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8680 Handle NORECORD argument in call of Fselect_frame.
8681 * lisp.h (do_switch_frame, Fselect_frame)
8682 (Fset_frame_selected_window): Adjust declarations.
8683 * window.c (select_frame_norecord): New function.
8684 (run_window_configuration_change_hook): Use it and call
8685 Fselect_frame with NORECORD set.
8686 (Fselect_window): Pass NORECORD to Fselect_frame.
8687 (Fset_window_configuration): Handle NORECORD argument in call of
8688 do_switch_frame.
8689 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8690 Fset_frame_selected_window.
8691 * keyboard.c (command_loop_1): Handle NORECORD in call of
8692 Fselect_frame (currently ifdefd).
8693
9020b223
GM
86942008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8695
8696 * emacs.c (USAGE2): Untabify.
8697
793ffee8
SM
86982008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8699
8700 * composite.c (fill_gstring_header): Fix copy/paste typo.
8701
ab6d1131
MR
87022008-10-31 Martin Rudalics <rudalics@gmx.at>
8703
8704 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8705 (Fother_window): Rename argument and rewrite doc-string.
8706 (select_window_norecord): Fix return value. (Bug#1276)
8707
601a9cf1
JB
87082008-10-30 Juanma Barranquero <lekktu@gmail.com>
8709
8710 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8711 new frames overriding foreground for tooltips. Based on similar patch
8712 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8713
813b0652
CY
87142008-10-29 Chong Yidong <cyd@stupidchicken.com>
8715
8716 * emacs.c (Fdaemon_initialized): Initialize nfd.
8717
4414f58f
MR
87182008-10-29 Martin Rudalics <rudalics@gmx.at>
8719
8720 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8721 (Fwindow_text_height): Clarify doc-strings.
8722 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8723 doc-string of window-scroll-functions.
8724
ecdcaa09
RS
87252008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8726
8727 * category.c (syms_of_category): Fix typo in docstring.
8728
23fe745a
JB
87292008-10-28 Juanma Barranquero <lekktu@gmail.com>
8730
8731 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8732 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8733 Fix typos in docstrings.
8734
ff808935
DN
87352008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8736
8737 * emacs.c (daemon_pipe): Make non-static.
8738 (IS_DAEMON): Move definition ...
8739 * lisp.h (IS_DAEMON): ... here.
8740 (daemon_pipe): Declare.
8741 (is_daemon): Remove.
8742 * dispnew.c (init_display): Use IS_DAEMON.
8743
fc012771
SM
87442008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8745
8746 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8747 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8748
8749 * emacs.c (is_daemon): Remove.
8750 (main): Don't set is_daemon.
8751 (IS_DAEMON): New macro.
8752 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8753 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8754 parent exits.
8755 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8756
d8bdbe6f
CY
87572008-10-27 Chong Yidong <cyd@stupidchicken.com>
8758
d1a072bf
CY
8759 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8760 over-sized glyph, draw it with the default glyph width.
8761
e2e325aa
CY
8762 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8763 glyph, draw it with the default glyph width.
8764
8765 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8766 glyph, draw it with the default glyph width.
8767
d8bdbe6f
CY
8768 * xdisp.c (try_scrolling): When computing the distance from the
8769 scroll margin to PT, try moving some distance past the window
8770 bottom before giving up.
8771
7bfac547
MR
87722008-10-27 Martin Rudalics <rudalics@gmx.at>
8773
8774 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8775 (Fset_window_buffer): Explain in doc-string that a window can be
8776 "strongly" dedicated to its buffer.
8777
4ff029f6
DN
87782008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8779
8780 * emacs.c (daemon_name): New variable.
8781 (main): Deal with --daemon=SERVER_NAME.
8782 (Fdaemonp): Return a name if one was passed to --daemon.
8783
5790ef40
DN
87842008-10-26 Romain Francoise <romain@orebokech.com>
8785
f9bd0df9 8786 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8787 (main): Create a pipe before forking, make the parent exit only after
8788 the child has closed its end of the pipe. Move closing the
8789 descriptors ...
8790 (Fdaemon_initialized): ... here. New function.
8791
f5385255
SM
87922008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8793
4d632321
SM
8794 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8795 the previous unoptimized table.
8796
f5385255
SM
8797 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8798 the distinction between non-nil and non-t value of `dedicated'.
8799
6c56a0f3
CY
88002008-10-25 Chong Yidong <cyd@stupidchicken.com>
8801
8802 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8803 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8804
fec89261
MR
88052008-10-25 Martin Rudalics <rudalics@gmx.at>
8806
8807 * window.c (Fget_buffer_window, Fdelete_windows_on)
8808 (Freplace_buffer_in_windows): Make buffer argument optional and
8809 rename to buffer_or_name.
8810
34fcddd0
CY
88112008-10-24 Chong Yidong <cyd@stupidchicken.com>
8812
f5385255
SM
8813 * xdisp.c (handle_single_display_spec, handle_display_prop):
8814 Undo 2005-05-16 change.
34fcddd0
CY
8815 (handle_stop): Pop iterator if it's loaded with an empty string.
8816 (get_overlay_strings_1): Don't save iterator if it's loaded with
8817 an empty string (bug#1201).
8818
064766f2
KH
88192008-10-24 Kenichi Handa <handa@m17n.org>
8820
8821 * ftfont.c (ftfont_otf_features): Fix previous change.
8822 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8823 calling ftfont_otf_features.
8824
f9bd0df9 88252008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8826
8827 * font.c (font_match_p): Fix for the case that a vector of
8828 characters is in script-representative-chars.
8829
1dae9197
MA
88302008-10-24 Michael Albinus <michael.albinus@gmx.de>
8831
8832 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8833 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8834 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8835 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8836 macro. (Bug#1186)
1dae9197 8837
f9bd0df9 88382008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8839
8840 * s/sol2-10.h: New file.
8841
878a4584
JB
88422008-10-23 Juanma Barranquero <lekktu@gmail.com>
8843
8844 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8845 poor beast has survived 9+ years and the jump from xterm.c!).
8846
cd265ca6
MR
88472008-10-23 Martin Rudalics <rudalics@gmx.at>
8848
8849 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8850 Reword doc-string.
f5385255 8851 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8852
472a4dc9
JB
88532008-10-23 Juanma Barranquero <lekktu@gmail.com>
8854
8855 * character.c (syms_of_character) <script-representative-chars>:
8856 <unicode-category-table>: Doc fixes.
8857
159bd5a2
NF
88582008-10-23 Noah Friedman <friedman@splode.com>
8859
8860 * coding.c (make_conversion_work_buffer): Check that
8861 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8862 Fget_buffer_create.
8863
49f9c344
KH
88642008-10-23 Kenichi Handa <handa@m17n.org>
8865
8866 * font.c (font_add_log): Check the values of extra properties.
8867
12bb3111
MR
88682008-10-22 Martin Rudalics <rudalics@gmx.at>
8869
8870 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8871 Reword doc-string.
8872 (Fset_window_parameter): Use NILP.
8873 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8874 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8875
bbeb4e99
JB
88762008-10-22 Juanma Barranquero <lekktu@gmail.com>
8877
8878 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8879
88802008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8881
8882 * nsfns.m (ns_appkit_version): New function.
8883 (x-server-version): Use it.
8884 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8885 (x-server-vendor): Don't check_ns().
8886
8887 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8888
a9b555d3
JB
88892008-10-22 Juanma Barranquero <lekktu@gmail.com>
8890
8891 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8892 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8893
4626499f
KH
88942008-10-22 Kenichi Handa <handa@m17n.org>
8895
e3681952
KH
8896 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8897 scripts.
8898
4626499f
KH
8899 * category.c (word_boundary_p): Check scripts instead of charset.
8900 Handle nil value in word-separating-categories and
8901 word-combining-categories.
8902 (syms_of_category): Fix docstrings of word-separating-categories
8903 and word-combining-categories.
8904
1560f91a
EZ
89052008-10-21 Eli Zaretskii <eliz@gnu.org>
8906
8907 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8908 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8909
f4668441
MR
89102008-10-21 Martin Rudalics <rudalics@gmx.at>
8911
8912 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8913 Rename arg "buffer" to "buffer_or_name".
8914 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8915 it optional.
8916 (no_switch_window): Remove since the return value is not used.
a9b555d3 8917 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8918 Consider window as dedicated when Fwindow_dedicated_p returns a
8919 non-nil value.
8920 * lisp.h: Remove prototype for no_switch_window.
8921
fd75ddb2
JD
89222008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8923
8924 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8925 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8926
07295713
KH
89272008-10-21 Kenichi Handa <handa@m17n.org>
8928
8929 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8930 check Vlatin_extra_code_table.
8931
712adc82
EZ
89322008-10-20 Eli Zaretskii <eliz@gnu.org>
8933
8934 * fileio.c (Fset_file_modes): Doc fix.
8935
f549eb0b
MA
89362008-10-19 Michael Albinus <michael.albinus@gmx.de>
8937
8938 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8939 in arrays.
8940
aac0c6e3
MR
89412008-10-19 Martin Rudalics <rudalics@gmx.at>
8942
8943 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8944 Mention kill-buffer in doc-string.
8945 (Fset_window_buffer): Reinsert tem check removed in last commit.
8946 (Fenlarge_window, Fshrink_window): Have argument names and
8947 doc-string follow Elisp manual more closely.
8948
89492008-10-18 Eli Zaretskii <eliz@gnu.org>
8950
8951 * fileio.c (Fset_file_modes): Doc fix.
8952
89532008-10-18 Martin Rudalics <rudalics@gmx.at>
8954
8955 * window.c (Fwindow_width, Fset_window_start)
8956 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8957 (Fdelete_windows_on, Freplace_buffer_in_windows):
8958 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8959 (Fwindow_dedicated_p): Make window argument optional.
8960 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8961 (Fset_window_buffer): Respect any non-nil dedicated value for
8962 window. Rename "buffer" argument to "buffer_or_name".
8963
89642008-10-18 Ulrich Mueller <ulm@gentoo.org>
8965
8966 * m/sh3.h: New file, machine description for SuperH.
8967
89682008-10-17 Martin Rudalics <rudalics@gmx.at>
8969
8970 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8971
89722008-10-17 Kenichi Handa <handa@m17n.org>
8973
8974 * ftfont.c (ftfont_otf_features): Fix indexing
8975 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8976
89772008-10-16 Magnus Henoch <mange@freemail.hu>
8978
8979 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8980 (Fdbus_call_method_asynchronously): Ditto.
8981 This change makes C-h f display the argument list.
8982
89832008-10-16 Chong Yidong <cyd@stupidchicken.com>
8984
8985 * fileio.c (Fexpand_file_name): Doc fix.
8986
8987 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8988 of :foreground and :background equivalent to unspecified (20.x
8989 compatibility).
8990
89912008-10-15 Eli Zaretskii <eliz@gnu.org>
8992
8993 * buffer.c (syms_of_buffer): Doc fix.
8994
89952008-10-14 Kenichi Handa <handa@m17n.org>
8996
8997 * font.c (font_clear_prop): When clearing font width, clear the
8998 average width field too.
8999
90002008-10-12 Andreas Schwab <schwab@suse.de>
9001
9002 * ftfont.c (ftfont_shape_by_flt): Make static.
9003 * ftfont.h (ftfont_shape_by_flt): Don't declare.
9004
9005 * font.c: Don't include <m17n-flt.h>.
9006
90072008-10-10 Eli Zaretskii <eliz@gnu.org>
9008
9009 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
9010
90112008-10-09 Eli Zaretskii <eliz@gnu.org>
9012
9013 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
9014 away code.
9015
90162008-10-09 Chong Yidong <cyd@stupidchicken.com>
9017
9018 * dispnew.c (update_text_area): Avoid looping due to large glyph
9019 overhangs (bug#1070).
9020
90212008-10-09 Kenichi Handa <handa@m17n.org>
9022
9023 * fontset.c (face_for_char): If face->fontset is negative, just
9024 return ascii_face.
9025
f5385255
SM
9026 * font.c (font_delete_unmatched): Fix previous change.
9027 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
9028
90292008-10-09 Martin Rudalics <rudalics@gmx.at>
9030
9031 * frame.c (Fraise_frame): On text-only terminals select frame in
9032 order to make it visible. (Bug#1061)
9033
90342008-10-08 Chong Yidong <cyd@stupidchicken.com>
9035
9036 * fontset.c (fontset_find_font): Check frame validity.
9037
90382008-10-07 Chong Yidong <cyd@stupidchicken.com>
9039
a9b555d3 9040 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
9041 (xg_display_close): Allow Emacs to close all displays (bug#985).
9042
90432008-10-06 Andreas Schwab <schwab@suse.de>
9044
f5385255 9045 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
9046
90472008-10-06 Chong Yidong <cyd@stupidchicken.com>
9048
f5385255 9049 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 9050
a9b555d3 9051 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
9052
9053 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
9054 during initialization.
9055
90562008-10-04 Eli Zaretskii <eliz@gnu.org>
9057
9058 * xdisp.c (redisplay_internal): If frame switched, redisplay the
9059 whole thing on MSDOS frames as well as on a TTY.
9060
9061 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
9062 well as for TTY.
9063 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
9064 well as on a TTY.
9065
9066 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
9067 as well as for TTY.
9068
9069 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
9070
9071 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
9072 MSDOS frames as well.
9073
90742008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9075
9076 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9077 correct arguments.
b71ac3dd 9078 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9079
90802008-10-03 Glenn Morris <rgm@gnu.org>
9081
9082 * emacs.c (USAGE1): Add --daemon.
9083
90842008-10-02 Eli Zaretskii <eliz@gnu.org>
9085
9086 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9087 100, so it's in percents as advertised.
9088
90892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9090
9091 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9092 (ns_output.current_cursor, ns_output.desired_cursor)
9093 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9094 (FRAME_NEW_CURSOR_COLOR): Remove.
9095
9096 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9097 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9098 enumeration (HOLLOW_BOX_CURSOR, etc.).
9099
9100 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9101 (draw_window_cursor): Simplify code.
f5385255
SM
9102 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9103 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9104 updates manually.
a9b555d3
JB
9105 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9106 Use core Emacs cursor types.
aac0c6e3 9107
b8ff72fa 9108 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9109
91102008-10-02 Martin Rudalics <rudalics@gmx.at>
9111
9112 * process.c (Faccept_process_output): Fix doc-string.
9113
91142008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9115
9116 * gmalloc.c (__sbrk): Also define for uClibc.
9117
9118 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9119 for uClibc.
9120
91212008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9122
9123 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9124 styles.
9125 (nsfont_open): Reenable the cache.
9126
91272008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9128
9129 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9130 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9131
91322008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9133
9134 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9135 a suspended terminal.
9136
91372008-09-30 Michael Albinus <michael.albinus@gmx.de>
9138
9139 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9140
91412008-09-30 Eli Zaretskii <eliz@gnu.org>
9142
9143 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9144
91452008-09-30 Chong Yidong <cyd@stupidchicken.com>
9146
9147 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9148 in a continued line coincides with a line beginning.
9149
91502008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9151
9152 * nsfont.m (nsfont_trait_distance): Fix bug.
9153 (nsfont_list): Return a list rather than a vector (syncs with Handa
9154 changes of 2008-05-14).
9155 (nsfont_open): Improve logging.
9156
91572008-09-29 Andreas Schwab <schwab@suse.de>
9158
9159 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9160
91612008-09-28 Martin Rudalics <rudalics@gmx.at>
9162
9163 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9164 name as char-resolve-modifiers.
9165 Reported by: Markus Triska <markus.triska@gmx.at>
9166
91672008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9168
9169 * dispnew.c (init_display): Return earlier when running as a daemon.
9170
91712008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9172
9173 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9174
91752008-09-27 Eli Zaretskii <eliz@gnu.org>
9176
9177 * composite.c (Fcomposition_get_gstring)
9178 (Fcompose_region_internal, Fcompose_string_internal)
9179 (Ffind_composition_internal): Doc fix.
9180 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9181 (syms_of_composite) <auto-composition-function>: Doc fix.
9182 (syms_of_composite) <composition-function-table>: Doc fix.
9183
91842008-09-25 Chong Yidong <cyd@stupidchicken.com>
9185
9186 * search.c (wordify): New argument for lax word-ends.
9187 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9188
91892008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9190
9191 * lisp.h (is_daemon): Declare.
9192 * dispnew.c (init_display): Do not try to initialize the terminal
9193 when running as a daemon.
9194
91952008-09-22 Chong Yidong <cyd@stupidchicken.com>
9196
9197 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9198 x_display_pixel_height.
9199
92002008-09-22 Martin Rudalics <rudalics@gmx.at>
9201
9202 * undo.c (record_point): Don't call Fundo_boundary for first
9203 change. (Bug#731)
9204
92052008-09-22 Juanma Barranquero <lekktu@gmail.com>
9206
9207 * emacs.c (Fdaemonp): Doc fix.
9208
92092008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9210
9211 * emacs.c (main): Place #ifdef in the proper place.
9212
92132008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9214
9215 * emacs.c (standard_args): Add --daemon.
9216 (main): Disconnect from the terminal when --daemon is passed.
9217 (is_daemon): New variable.
9218 (Fdaemonp): New function.
9219 (syms_of_emacs): Defsubr it.
9220
92212008-09-20 Chong Yidong <cyd@stupidchicken.com>
9222
9223 * xdisp.c (get_next_display_element): Handle string display
9224 correctly when checking for the end of a box run.
9225
92262008-09-20 Glenn Morris <rgm@gnu.org>
9227
9228 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9229 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9230 (Frename_file): Avoid copying to trash if a rename involves
9231 a delete. (Bug#964).
9232
92332008-09-20 Eli Zaretskii <eliz@gnu.org>
9234
9235 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9236 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9237 frames as well as termcap frames.
9238 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9239 get_named_tty.
9240
92412008-09-19 Eli Zaretskii <eliz@gnu.org>
9242
9243 * process.c (procfs_system_process_attributes): Fix cmdline in
9244 case /proc/PID/cmdline is empty.
9245
9246 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9247 x_display_pixel_height.
9248
92492008-09-19 Juanma Barranquero <lekktu@gmail.com>
9250
9251 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9252
9253 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9254 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9255
92562008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9257
9258 * dispextern.h (struct it): Move line_wrap away from the middle of
9259 bitfields. Move voffset in struct iterator_stack_entry after the
9260 bitfields. Move tab_width near after another short.
9261
92622008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9263
9264 * frame.h (struct frame): Move alpha from the middle of bitfields.
9265
9266 * window.h (struct window): Move frozen_window_start_p after the
9267 rest of the bitfields to reduce padding.
9268
92692008-09-18 Chong Yidong <cyd@stupidchicken.com>
9270
9271 * xterm.h (x_display_info): Remove `height' and `width' members.
9272
9273 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9274
9275 * w32term.h (w32_display_info): Remove `height', `width',
9276 `height_in', and `width_in' members.
9277
b8ff72fa
SM
9278 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9279 New functions.
aac0c6e3
MR
9280 (x_calc_absolute_position): Use them.
9281 (x_term_init): Omit removed `height' and `width' members.
9282
b8ff72fa
SM
9283 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9284 New functions.
aac0c6e3
MR
9285 (w32_read_socket, x_calc_absolute_position): Use them.
9286 (w32_initialize_display_info, w32_term_init): Omit removed members
9287 of w32_display_info.
9288
b8ff72fa
SM
9289 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9290 New functions.
9291 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9292
b8ff72fa
SM
9293 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9294 New functions.
aac0c6e3
MR
9295 (x_calc_absolute_position): Use them.
9296 (x_term_init): Omit removed `height' and `width' members.
9297
9298 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9299 (compute_tip_xy):
9300 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9301 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9302 x_display_pixel_width.
9303
93042008-09-18 Kenichi Handa <handa@m17n.org>
9305
9306 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9307 (composition_compute_stop_pos): Fix handling of static composition.
9308 (Fcomposition_get_gstring): Check FROM and TO at first.
9309
93102008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9311
46e722a9 9312 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9313 mixup (YAILOM).
9314
93152008-09-17 Chong Yidong <cyd@stupidchicken.com>
9316
9317 * indent.c (Fvertical_motion): Use position reported by iterator
9318 instead of PT for determining screen motion (bug#943).
9319
93202008-09-17 Romain Francoise <romain@orebokech.com>
9321
9322 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9323
93242008-09-17 Kenichi Handa <handa@m17n.org>
9325
9326 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9327
9328 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9329 if necessary.
9330
93312008-09-16 Kenichi Handa <handa@m17n.org>
9332
9333 * coding.c (make_conversion_work_buffer): Avoid calling
9334 Fget_buffer_create if it is not necessary.
9335
93362008-09-15 Martin Rudalics <rudalics@gmx.at>
9337
9338 * window.c (Fselect_window): Don't update window_select_count and
9339 use_time when norecord is not nil.
9340
93412008-09-14 Kenichi Handa <handa@m17n.org>
9342
9343 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9344 specpdl_ptr.
9345
93462008-09-12 Kenichi Handa <handa@m17n.org>
9347
9348 * indent.c (scan_for_column): Don't handle automatic composition
9349 if the current buffer is not associated with a window.
9350
9351 * composite.c (composition_reseat_it): If the current buffer is
9352 not associated with a window, ignore the automatic composition.
9353 (find_automatic_composition): Likewise.
9354
93552008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9356
9357 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9358 (Fgpm_mouse_stop): Use it.
9359 * termhooks.h (close_gpm): Declare.
9360 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9361 connection if Gpm_GetEvent fails.
9362
9363 * window.c (set_window_buffer): Always preserve current-buffer.
9364
93652008-09-12 Glenn Morris <rgm@gnu.org>
9366
9367 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9368
93692008-09-11 Glenn Morris <rgm@gnu.org>
9370
9371 * charset.c (charset-map-path): Doc fix.
9372
93732008-09-10 Kenichi Handa <handa@m17n.org>
9374
9375 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9376
9377 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9378 compose a grapheme cluster with the preceding base glyph.
9379
9380 * composite.c (composition_compute_stop_pos): Fix previous change.
9381 Reset cmp_it->id to -1 at first.
9382
93832008-09-10 Glenn Morris <rgm@gnu.org>
9384
9385 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9386
93872008-09-09 Chong Yidong <cyd@stupidchicken.com>
9388
9389 * keyboard.c (read_key_sequence): Reapply translation maps when
9390 switching keyboards.
9391
93922008-09-09 Kenichi Handa <handa@m17n.org>
9393
9394 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9395 characters.
9396
9397 * composite.c (FORWARD_CHAR): Fix calculation
9398 of (POSITION).pos_byte.
9399 (composition_compute_stop_pos): Limit the search of composition to
9400 at most 500 characters ahead. If we reach the limit or find a
9401 newline, set cmp_it->ch to -2 and return 0.
9402 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9403
94042008-09-08 Kenichi Handa <handa@m17n.org>
9405
9406 * indent.c (Fvertical_motion): Be sure to set
9407 it_overshoot_expected if it.cmp_it.id is non-negative.
9408
94092008-09-07 Andreas Schwab <schwab@suse.de>
9410
9411 * callproc.c (Fcall_process): Don't hold references to string data
9412 across garbage collection. Move initialisation of new_argv down
9413 to avoid compiler bug.
9414
94152008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9416
9417 * process.c (Fsystem_process_attributes): Doc fix.
9418
94192008-09-07 Chong Yidong <cyd@stupidchicken.com>
9420
9421 * callproc.c (Fcall_process): Canonicalize current directory name.
9422
9423 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9424 iterator advances to the next line if the current line ends in a
9425 continued tab.
9426
94272008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9428
9429 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9430 member to point to cmp_from.
9431
9432 * xdisp.c: Doc fix for references to gidx data member.
9433
94342008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9435
9436 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9437
94382008-09-07 Kenichi Handa <handa@m17n.org>
9439
9440 * composite.c (FORWARD_CHAR): Check STOP after
9441 incrementing (POSITION).pos.
9442
94432008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9444
9445 * process.c (Fsystem_process_attributes): Doc fix.
9446
94472008-09-06 Chong Yidong <cyd@stupidchicken.com>
9448
9449 * keyboard.c (Ftop_level): Doc fix.
9450
94512008-09-06 Eli Zaretskii <eliz@gnu.org>
9452
9453 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9454 minibuffer, don't let lower part of menu invade the echo area.
9455
9456 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9457 "char *q" to access menu text and advance through it. Revert the
9458 change that displayed ">" instead of ASCII character 0x10.
9459
94602008-09-05 Eli Zaretskii <eliz@gnu.org>
9461
9462 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9463 toggle boxes and radio buttons on MS-DOS as well.
9464
94652008-09-05 Kenichi Handa <handa@m17n.org>
9466
9467 * composite.c (autocmp_chars): Check lookback count.
9468 (composition_compute_stop_pos): Set cmp_it->lookback.
9469 (composition_reseat_it): Check lookback count.
9470 (struct position_record): New struct.
9471 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9472 (find_automatic_composition): New function.
9473 (composition_adjust_point): Use find_automatic_composition.
9474
9475 * dispextern.h (struct composition_it): New member lookback.
9476
94772008-09-02 Chong Yidong <cyd@stupidchicken.com>
9478
9479 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9480 if moving by a single line.
9481
94822008-09-02 Andreas Schwab <schwab@suse.de>
9483
9484 * xterm.c (x_delete_display): Fix merge error.
9485
9486 * fileio.c (Fexpand_file_name): Remove unused variables.
9487
94882008-09-02 Eli Zaretskii <eliz@gnu.org>
9489
9490 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9491 storage on all platforms, not just on DOS_NT.
9492
94932008-09-02 Jason Rumney <jasonr@gnu.org>
9494
b8ff72fa
SM
9495 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9496 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9497
94982008-09-01 Chong Yidong <cyd@stupidchicken.com>
9499
9500 * xfaces.c (Finternal_set_alternative_font_family_alist)
9501 (Finternal_set_alternative_font_registry_alist): Properly copy
9502 entire alist structure.
9503
95042008-09-01 Kenichi Handa <handa@m17n.org>
9505
d66c0241 9506 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9507 representative chars of the script is a vector.
d66c0241
JB
9508 (ftfont_list): Handle the case where the representative chars of
9509 the script is a vector.
aac0c6e3
MR
9510
9511 * character.c (syms_of_character): Docstring of
9512 script-representative-chars fixed.
9513
95142008-08-31 Eli Zaretskii <eliz@gnu.org>
9515
9516 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9517 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9518 the menu. Allocate larger buffer for `text', to account for
9519 possible ^C characters.
9520
95212008-08-31 Martin Rudalics <rudalics@gmx.at>
9522
9523 * xdisp.c (prepare_menu_bars): Don't call
9524 Vwindow_size_change_functions with arg Qt.
9525
95262008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9527
9528 * font.h (font_range):
9529 * fileio.c (report_file_error):
46e722a9
SM
9530 * composite.c (composition_update_it): Yet another int/Lisp_Object
9531 mixup (YAILOM).
aac0c6e3
MR
9532
95332008-08-30 Glenn Morris <rgm@gnu.org>
9534
9535 * data.c (Fmake_variable_frame_local): Doc fix.
9536
9537 * frame.c (Fmodify_frame_parameters): Doc fix.
9538
95392008-08-30 Eli Zaretskii <eliz@gnu.org>
9540
9541 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9542 needed by GetTokenInformation.
9543 (w32_system_process_attributes): Check return values of all system
9544 APIs.
9545
9546 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9547 only when the state changes.
9548 (IT_update_begin, IT_update_end): Add termscript trace.
9549
9550 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9551 clipboard is unavailable. Set dst to NULL if it doesn't point to
9552 malloc'ed data.
9553 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9554 passing random values to xfree.
9555
9556 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9557 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9558
95592008-08-29 Jason Rumney <jasonr@gnu.org>
9560
9561 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9562
95632008-08-29 Eli Zaretskii <eliz@gnu.org>
9564
9565 * composite.c (fill_gstring_body): Avoid compiler warnings.
9566
9567 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9568 LGLYPH_SET_CODE to avoid compiler warnings.
9569
2ae37cf0 9570 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9571
9572 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9573
9574 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9575 LGLYPH_SET_CODE.
9576
95772008-08-29 Kenichi Handa <handa@m17n.org>
9578
9579 * fileio.c (report_file_error): Don't downcase the first character
9580 of errstring if it is still unibyte.
9581
95822008-08-29 Kenichi Handa <handa@m17n.org>
9583
9584 These changes are to re-implement the automatic composition so
9585 that it doesn't use text properties.
9586
9587 * Makefile.in (ftfont.o): Depend on composite.h.
9588 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9589
9590 * character.h (Vunicode_category_table): Extern it.
9591
9592 * character.c (Vunicode_category_table): New variable.
9593 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9594
9595 * chartab.c (optimize_sub_char_table): Perform more greedy
9596 optimization.
9597
b8ff72fa
SM
9598 * composite.h (enum composition_method):
9599 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9600 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9601 (Vcomposition_function_table): Extern it.
9602 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9603 (composition_gstring_put_cache, composition_gstring_from_id)
9604 (composition_gstring_p, composition_gstring_width)
9605 (composition_compute_stop_pos, composition_reseat_it)
9606 (composition_update_it, composition_adjust_point): Extern them.
9607 (Fcomposition_get_gstring): EXFUN it.
9608
d66c0241 9609 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9610 (Vcomposition_function_table)
9611 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9612 (gstring_hash_table, gstring_work, gstring_work_headers):
9613 New variables.
aac0c6e3
MR
9614 (gstring_lookup_cache, composition_gstring_put_cache)
9615 (composition_gstring_from_id, composition_gstring_p)
9616 (composition_gstring_width, fill_gstring_header)
9617 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9618 (composition_reseat_it, composition_update_it)
b8ff72fa 9619 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9620 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9621 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9622 Defsubr composition_get_gstring.
aac0c6e3
MR
9623
9624 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9625 cmp_id.
9626 (struct glyph_string): Delete the member gidx. New members
9627 cmp_id, cmp_from, and cmp_to.
9628 (enum it_method): Delete GET_FROM_COMPOSITION.
9629 (struct composition_it): New struct.
9630 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9631 Delete c, len, cmp_id, cmp_len in u.comp.
9632
9633 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9634 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9635 (enum lglyph_indices): Likewise.
b8ff72fa 9636 (font_range): Adjust extern.
aac0c6e3
MR
9637 (font_fill_lglyph_metrics): Extern it.
9638
9639 * font.c (QCf): New variable.
9640 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9641 (font_prepare_composition): Delete this function.
9642 (font_range): Type and arguments changed.
9643 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9644 (font_fill_lglyph_metrics): New function.
b8ff72fa 9645 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9646 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9647 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9648 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9649
9650 * fontset.h (font_for_char): Extern it.
9651
9652 * fontset.c (font_for_char): New function.
9653
9654 * ftfont.c: Include composite.h.
9655 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9656 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9657
9658 * indent.c: Include composite.h and dispextern.h.
9659 (check_composition): Delete this function.
9660 (scan_for_column): Handle composition by
9661 composition_compute_stop_pos, composition_reseat_it, and
9662 composition_update_it.
9663 (compute_motion): Likewise.
9664 (Fvertical_motion): Fix checking of composition.
9665
9666 * keyboard.c (adjust_point_for_property): Check composition by
9667 composition_adjust_point.
9668
b8ff72fa 9669 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9670 struct glyph_string.
9671
b8ff72fa
SM
9672 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9673 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9674 struct glyph.
9675 (produce_composite_glyph): Likewise.
9676
b8ff72fa
SM
9677 * w32term.c (x_draw_composite_glyph_string_foreground):
9678 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9679 (x_draw_glyph_string): Likewise.
9680
9681 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9682 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9683
9684 * xdisp.c: Include font.h.
9685 (it_props): Delete the entry for Qauto_composed.
9686 (init_iterator): Initialize it->cmp_it.id to -1.
9687 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9688 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9689 (handle_auto_composed_prop): Delete it.
9690 (handle_composition_prop): Handle only static composition.
9691 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9692 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9693 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9694 (pop_it): Likewise.
9695 (get_next_element): Delete next_element_from_composition.
9696 (CHAR_COMPOSED_P): New macro.
9697 (get_next_display_element): For automatic composition, get a face
9698 from the font in the glyph-string.
9699 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9700 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9701 (next_element_from_string): Check if the character at the current
9702 position is composed by CHAR_COMPOSED_P.
9703 (next_element_from_buffer): Likewise.
d66c0241
JB
9704 (next_element_from_composition): Adjust for the change of struct it.
9705 Update it->cmp_it.
b8ff72fa
SM
9706 (dump_glyph): Adjust for the change of struct glyph.
9707 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9708 it and struct glyph. Don't handle automatic composition here.
9709 (fill_gstring_glyph_string): New function.
9710 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9711 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9712 (BUILD_GSTRING_GLYPH_STRING): New macro.
9713 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9714 automatic composition.
b8ff72fa 9715 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9716 struct glyph.
b8ff72fa 9717 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9718
b8ff72fa 9719 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9720 the change of struct glyph_string.
9721 (x_draw_glyph_string): Likewise.
9722
97232008-08-29 Glenn Morris <rgm@gnu.org>
9724
9725 * buffer.c (word-wrap): Doc fix.
9726 * xdisp.c (truncate-partial-width-windows): Doc fix.
9727 Increase default to 50.
9728
97292008-08-29 Chong Yidong <cyd@stupidchicken.com>
9730
9731 * xdisp.c (update_tool_bar_unwind): New function.
9732 (update_tool_bar): Temporarily set selected frame before building
9733 tool-bar items.
9734
97352008-08-28 Michael Albinus <michael.albinus@gmx.de>
9736
9737 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9738 snprintf, respectively.
9739 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9740
97412008-08-28 Chong Yidong <cyd@stupidchicken.com>
9742
9743 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9744 LDFLAGS to GNUstep CC invocation.
9745
97462008-08-27 Chong Yidong <cyd@stupidchicken.com>
9747
9748 * indent.c (Fvertical_motion): Revert last change. Handle the
9749 general case where we are moving forward, and PT spans multiple
9750 screen lines.
9751
9752 * eval.c (find_handler_clause): Temporarily increase
9753 max-lisp-eval-depth while printing the backtrace buffer, to
9754 guarantee that help-mode code can run.
9755
97562008-08-27 Eli Zaretskii <eliz@gnu.org>
9757
9758 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9759 colors under -rv.
9760 (IT_set_frame_parameters): Don't swap foreground and background
9761 colors if `(reverse . t)' is present in the frame properties.
9762 (internal_terminal_init): Call init_frame_faces only for the
9763 initial frame.
9764
97652008-08-27 Andreas Schwab <schwab@suse.de>
9766
9767 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9768
97692008-08-27 Andreas Schwab <schwab@suse.de>
9770
9771 * search.c (search_buffer): Set char_base to zero only at the end.
9772
97732008-08-27 Kenichi Handa <handa@m17n.org>
9774
b8ff72fa 9775 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9776
97772008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9778
9779 * xterm.c (x_term_init): Temporarily hide the partially
9780 initialized terminal while calling vendor-specific-keysyms.
9781
97822008-08-26 Eli Zaretskii <eliz@gnu.org>
9783
9784 * msdos.c (internal_terminal_init): Most initializations done only
9785 once, especially initial_screen_colors[] and termscript open.
9786
97872008-08-26 Chong Yidong <cyd@stupidchicken.com>
9788
9789 * eval.c (Fcondition_case): Doc fix.
9790
9791 * widgetprv.h (EmacsFramePart): Change font member to the new font
9792 struct.
9793
9794 * widget.c: Include character.h and font.h for XSETFONT.
9795 (setup_frame_gcs): Compute X font id from font struct, just once.
9796
97972008-08-26 Eli Zaretskii <eliz@gnu.org>
9798
9799 * term.c (get_named_tty): Fix last change.
9800
98012008-08-26 Chong Yidong <cyd@stupidchicken.com>
9802
9803 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9804 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9805
98062008-08-25 Eli Zaretskii <eliz@gnu.org>
9807
9808 * frame.c (do_switch_frame): Mark previously displayed frame as
9809 obscured for FRAME_MSDOS_P frames as well.
9810
98112008-08-24 Eli Zaretskii <eliz@gnu.org>
9812
9813 * frame.c (make_terminal_frame): Initialize f->terminal,
9814 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9815 Set the top frame to newly created frame.
9816 (Fmake_terminal_frame): Reuse the_only_display_info.
9817
9818 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9819 estimating available memory.
9820
b97439ce 98212008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9822
9823 * nsterm.m (ns_draw_window_cursor): Don't call
9824 NSDisableScreenUpdates and NSEnableScreenUpdates on
9825 non-NS_IMPL_COCOA systems.
9826
98272008-08-23 Andreas Schwab <schwab@suse.de>
9828
9829 * process.c (procfs_system_process_attributes): Fix use of
9830 uninitialized variables.
9831
98322008-08-23 Eli Zaretskii <eliz@gnu.org>
9833
9834 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9835
9836 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9837 calling tty-set-up-initial-frame-faces.
9838
b8ff72fa
SM
9839 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9840 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9841
9842 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9843 addition to output_termcap.
9844
9845 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9846
9847 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9848 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9849 highlight.
9850
9851 * process.c [!subprocesses]: Define QCname.
9852 (syms_of_process): Intern and staticpro it.
9853
9854 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9855 Adjust for changes in encoding/decoding routines.
9856 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9857 encode_coding and decode_coding.
9858
b8ff72fa 9859 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9860
9861 * dosfns.c: Include frame.h before termhooks.h.
9862 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9863 variable termscript.
9864
9865 * s/msdos.h (USER_FULL_NAME): Define.
9866 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9867
9868 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9869 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9870 pw->pw_gecos.
9871
9872 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9873 SELECTED_FRAME as additional (1st) argument.
9874 (tty_read_avail_input): Handle output_msdos_raw in
9875 addition to output_termcap.
9876
9877 * msdos.c: Include frame.h before termhooks.h.
9878 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9879 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9880 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9881 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9882 (IT_set_terminal_modes, IT_reset_terminal_modes)
9883 (IT_set_frame_parameters): Use tty->termscript instead of a global
9884 variable termscript.
9885 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9886 global variable terminal_coding. Don't refer to
9887 Vnonascii_translation_table.
9888 (internal_terminal_init): Set Vwindow_system in current_kboard.
9889 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9890 Announce date and time of session start, if termscript is open.
9891 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9892 term.c:init_tty). Open termscript only of not already open.
9893 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9894 here instead of dos_ttraw. Don't initialize display if this is an
9895 initial tty. Don't set FRAME_FONT.
9896 (Vwindow_system_version): Bump to 23.
9897 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9898 is available, set up mouse_position_hook.
9899 (dos_ttraw, IT_set_terminal_modes): If called with initial
9900 terminal, do nothing.
9901 (IT_set_frame_parameters): Handle the Qtty_type frame
9902 parameter by calling internal_terminal_init.
9903 (dos_set_window_size, show_mouse_face)
9904 (clear_mouse_face, IT_note_mode_line_highlight)
9905 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9906 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9907 (initialize_msdos_display): New function.
9908 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9909 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9910 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9911 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9912 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9913 (request_sigio, unrequest_sigio): Don't define, now defined on
9914 sysdep.c.
9915 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9916
9917 * term.c [MSDOS]: Include msdos.h.
9918 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9919 conditional to DOS_NT. Allow only one call to this function in a
9920 session. Don't allocate a new struct tty_display_info; instead,
9921 reuse the_only_display_info. Call get_tty_size to get screen
9922 dimensions. Call init_baud_rate to set bad_rate.
9923 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9924 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9925 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9926 (get_tty_terminal, get_named_tty, Ftty_type)
9927 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9928 output_termcap.
b8ff72fa
SM
9929 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9930 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9931 only when subprocesses are supported.
aac0c6e3
MR
9932
9933 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9934 f->output_data.x.
9935 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9936 terminal devices.
9937
5582fbc7 9938 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9939 x_output.
9940 (FRAME_FONT): Use output_data.tty.
9941 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9942 (struct x_display_info): Rename from display_info. Update all users in
9943 msdos.c.
aac0c6e3 9944 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9945 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9946 (dos_ttraw): Update prototype.
9947
9948 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9949 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9950
99512008-08-23 Jason Rumney <jasonr@gnu.org>
9952
9953 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9954 (fn_TIFFSetDirectory): New library function used.
9955 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9956 (tiff_load): Use :index to select among multiple images. Set count
9957 property when multiple images exist.
9958 (gif_format): Use :index, not :image.
9959
99602008-08-23 Chong Yidong <cyd@stupidchicken.com>
9961
9962 * xdisp.c (try_scrolling): Check INT_MAX instead of
9963 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9964 to obtain INT_MAX.
9965
99662008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9967
9968 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9969
99702008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9971
9972 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9973 GNUstep library location.
9974
99752008-08-21 Chong Yidong <cyd@stupidchicken.com>
9976
9977 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9978 before using it.
9979
9980 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9981
99822008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9983
9984 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9985 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9986 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9987 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9988 (EmacsApp-cursor_blink_handler): Remove declaration.
9989 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9990 match 01 Feb 2008 changes in xterm.c.
9991 (ns_read_socket): Add cast to avoid warning.
9992 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9993 GNUstep.
9994
99952008-08-20 Chong Yidong <cyd@stupidchicken.com>
9996
9997 * xselect.c (x_get_foreign_selection): Return nil if desired
9998 selection could not be obtained, instead of signalling an error.
9999
100002008-08-20 David Reitter <david.reitter@gmail.com>
10001
10002 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
10003 * nsterm.m: Remove ns-specific code for cursor blinking.
10004 (ns_draw_window_cursor): Clear cursor properly rather than
10005 redrawing the area. Respect width of bar cursors.
10006 These changes enable the use of generic blink-cursor-mode and
10007 generic cursor types in NS and support smooth cursor movements (do
10008 not blink off after command).
10009 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
10010 Nextstep, too.
10011
100122008-08-19 Kenichi Handa <handa@m17n.org>
10013
10014 * font.c (Vfont_log_deferred): New variable.
10015 (font_add_log): Check Vfont_log_deferred.
10016 (font_deferred_log): New function.
10017
10018 * font.h (font_deferred_log): Extern it.
10019
10020 * fontset.c (reorder_font_vector): Use encoding charset of fonts
10021 for sorting.
10022 (face_for_char): Use deferred log.
10023
100242008-08-18 Kenichi Handa <handa@m17n.org>
10025
10026 * fontset.c (face_for_char): Add font log.
10027
10028 * font.c (font_add_log): Add the font properties :script, :lang,
10029 and :otf in the log.
10030
100312008-08-17 Chong Yidong <cyd@stupidchicken.com>
10032
10033 * xdisp.c: Remove dead code.
10034 (handle_invisible_prop, next_overlay_string): Defer call to
10035 setup_for_ellipsis.
10036 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
10037
100382008-08-15 Chong Yidong <cyd@stupidchicken.com>
10039
10040 * xfaces.c (lookup_derived_face): Properly handle possible zero
10041 return value of get_lface_attributes.
10042 (merge_faces): Don't tell lookup_derived_face to signal an error
10043 if face is not found.
10044
10045 * dired.c (Fdirectory_files): Doc fix.
10046
10047 * process.c (make_process): Initialize kill_without_query struct
10048 member.
10049
100502008-08-15 Eli Zaretskii <eliz@gnu.org>
10051
10052 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
10053 Alternative calculation of totphys for Visual Studio 6.
10054
10055 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
10056
10057 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
10058 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
10059 All users changed.
10060 (stat): Only root directory passed to GetDriveType. Allow RAM
10061 disk as well as local fixed disk when w32-get-true-file-attributes
10062 is set to `local'.
10063 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
10064 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
10065 (w32_cached_id, w32_add_to_cache): New functions.
10066 (get_name_and_id): Look account names in the cache before calling
10067 lookup_account_sid.
10068 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
10069 New initialization flags.
10070 (globals_of_w32): Initialize them to zero.
10071 (w32_system_process_attributes): Use w32_cached_id and
10072 w32_add_to_cache.
10073
100742008-08-14 Lawrence Mitchell <wence@gmx.li>
10075
10076 * lread.c (Fread_char, Fread_char_exclusive): If no character
10077 event is read before timeout is reached, return nil, rather than
10078 converting to a number.
10079
100802008-08-14 Chong Yidong <cyd@stupidchicken.com>
10081
10082 * fns.c (use_dialog_box): Doc fix.
10083
10084 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10085 on OS X.
10086
100872008-08-13 Chong Yidong <cyd@stupidchicken.com>
10088
10089 * frame.c (Qns_parse_geometry): New var.
10090 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10091
100922008-08-11 Chong Yidong <cyd@stupidchicken.com>
10093
10094 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10095 space character in calculating tabs.
10096
100972008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10098
10099 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10100
101012008-08-10 Glenn Morris <rgm@gnu.org>
10102
10103 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10104 silence gcc "limited range of data type" warnings in some
10105 make_fixnum_or_float calls.
10106
101072008-08-09 Eli Zaretskii <eliz@gnu.org>
10108
10109 * w32.c (w32_system_process_attributes): If the process does not
10110 exist, return nil.
10111
10112 * w32.c: Include thelp32.h, psapi.h and coding.h.
10113 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10114 declarations.
10115 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10116 (Process32Next_Proc): New typedefs.
10117 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10118 (g_b_init_process32_next, g_b_init_open_thread_token)
10119 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10120 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10121 (g_b_init_get_process_working_set_size)
10122 (g_b_init_global_memory_status_ex): New static variables.
10123 (globals_of_w32): Initialize them.
10124 (create_toolhelp32_snapshot, process32_first, process32_next)
10125 (open_thread_token, impersonate_self, revert_to_self)
10126 (get_process_memory_info, get_process_working_set_size)
10127 (global_memory_status, global_memory_status_ex): New wrapper
10128 functions.
10129 (w32_list_system_processes, w32_system_process_attributes)
10130 (enable_privilege, restore_privilege, ltime, process_times):
10131 New functions.
10132 (convert_time_raw): New function.
10133 (convert_time): Remove conversion of FILETIME into time in 100
10134 nsec units, call convert_time_raw instead.
10135
10136 * process.h (w32_list_system_processes, w32_system_process_attributes):
10137 Add prototypes.
10138 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10139 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10140 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10141 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10142
10143 * process.c (Fsystem_process_attributes): Doc fix.
10144
101452008-08-08 Chong Yidong <cyd@stupidchicken.com>
10146
10147 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10148 a continued multi-char glyph; if so, advance to the actual glyph.
10149
101502008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10151
10152 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10153
10154 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10155 (.m.o): Use it.
10156 * config.in: Regenerate.
10157
101582008-08-07 Chong Yidong <cyd@stupidchicken.com>
10159
10160 * xdisp.c (redisplay_window): Revert last change.
10161 (try_window): Check bottom scroll margin too.
10162
101632008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10164
10165 * config.in: Regenerate.
10166
10167 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10168 -list-load-path-shadows'.
10169 (nsgui.h): Reduce number of things depending on it.
10170
101712008-08-06 Chong Yidong <cyd@stupidchicken.com>
10172
10173 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10174 instead of window-end which does the wrong thing at eob.
10175 (try_cursor_movement): Minor optimization.
10176 (redisplay_window): If scroll margin is defined, don't assume
10177 window doesn't need scrolling.
10178
101792008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10180
10181 * config.in: Regenerate.
10182
10183 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10184 (mostlyclean): Don't delete *.d under NS.
10185
10186 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10187
101882008-08-06 Kenichi Handa <handa@m17n.org>
10189
10190 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10191
101922008-08-06 Andreas Schwab <schwab@suse.de>
10193
10194 * config.in: Regenerate.
10195
101962008-08-05 Chong Yidong <cyd@stupidchicken.com>
10197
10198 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10199 forcing a window start.
10200
10201 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10202 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10203
102042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10205
10206 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10207 argument.
10208
102092008-08-05 Juanma Barranquero <lekktu@gmail.com>
10210
10211 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10212 <scroll-down-aggressively, before-change-functions>:
10213 <after-change-functions>: Reflow docstrings.
10214
102152008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10216 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10217
10218 Dock menu customization, based on a patch by Ken Raeburn, plus some
10219 other fixes.
10220 * nsmenu.m (dockMenu): New variable.
10221 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10222
10223 * nsterm.h (dockMenu): Declare.
10224
10225 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10226 (ns_term_init): Initialize dockMenu.
10227 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10228 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10229 left.
10230
10231 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10232
102332008-08-04 Chong Yidong <cyd@stupidchicken.com>
10234
10235 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10236
10237 * config.in: Regenerate.
10238
102392008-08-04 Seiji Zenitani <zenitani@mac.com>
10240
10241 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10242
102432008-08-04 Chong Yidong <cyd@stupidchicken.com>
10244
10245 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10246
102472008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10248
10249 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10250
10251 * keyboard.h: Comment an #endif.
10252
10253 * lisp.h (have_menus_p): Adjust comment.
10254
10255 * menu.c (find_and_return_menu_selection): Fix comparison with
10256 client_data.
10257
10258 * nsmenu.m (popup_activated_flag): New variable.
10259 (popup_activated): New function.
10260 (menu-or-popup-active-p): New exported lisp definition.
10261 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10262 when popup done.
10263 (ns_popup_dialog): Set popup_activated_flag.
10264
10265 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10266 version for GNUstep (handled by conditional typedef in nsterm.m).
10267 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10268 in rgb.txt).
10269
10270 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10271
10272 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10273
10274 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10275
10276 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10277 shortcircuit if popup_activated like GTK and X toolkit.
10278
10279 * m/inter386.h: Change DARWIN to DARWIN_OS.
10280
10281 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10282 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10283 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10284 comment on NO_SOCK_SIGIO.
10285
102862008-08-03 Chong Yidong <cyd@stupidchicken.com>
10287
10288 * nsterm.m (windowDidResize): Remove stopModal call.
10289
102902008-08-03 Andreas Schwab <schwab@suse.de>
10291
10292 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10293 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10294
102952008-08-02 Chong Yidong <cyd@stupidchicken.com>
10296
10297 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10298 Don't use uninitialized pointer variable when using getrlimit.
10299
103002008-08-02 Jason Rumney <jasonr@gnu.org>
10301
10302 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10303
103042008-08-02 Eli Zaretskii <eliz@gnu.org>
10305
10306 * alloc.c (NSTATICS): Bump to 0x640.
10307
10308 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10309
10310 * lisp.h: Add prototype for directory_files_internal.
10311
10312 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10313 New functions.
10314 (syms_of_process): Defsubr them. Add initializations for various
10315 Q* symbols used in procfs_system_process_attributes.
10316 (procfs_list_system_processes, procfs_system_process_attributes)
10317 [HAVE_PROCFS]: New functions.
10318 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10319 (procfs_get_total_memory): New functions.
10320
103212008-08-01 Juanma Barranquero <lekktu@gmail.com>
10322
10323 * xfaces.c (Fx_load_color_file): Fix previous change;
10324 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10325
103262008-08-01 Michael Albinus <michael.albinus@gmx.de>
10327
10328 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10329
103302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10331
10332 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10333
103342008-08-01 Chong Yidong <cyd@stupidchicken.com>
10335
10336 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10337
10338 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10339 define NSApplicationDelegateReplySuccess.
10340 (EmacsView -converstationIdentifier): Use long instead of
10341 NSInteger for GNUstep, since it doesn't have NSInteger.
10342
10343 * xmenu.c: Revert last change.
10344
10345 * keyboard.h: Fix last change.
10346
103472008-08-01 Juanma Barranquero <lekktu@gmail.com>
10348
10349 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10350 on Windows.
10351
103522008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10353
10354 Warning clearing and clean-up in NS port.
10355 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10356 Add prototypes.
10357 * nsgui.h (FACE_DEFAULT): Remove, unused.
10358 (XGCValues): Change colors to unsigned long.
10359 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10360 nsterm.m.
10361 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10362 (ns_list_fonts): Remove, unused.
10363 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10364 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10365 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10366 (nsfont_draw): Compare face colors to 0, not nil.
10367 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10368 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10369 (-addSubmenuWithTitle:): Use NSMenuItem class.
10370 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10371 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10372 (ns_clip_to_row): Make gc arg a BOOL.
10373 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10374 ns_clip_to_row() call.
10375 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10376 used). Cast FRAME_FONT assignments.
10377 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10378 (ns_string_to_lispmod): Change arg to const char.
10379 (ns_term_init): Use NSMenuItem class.
10380 (EmacsApp -openFile:): Move to different section of file.
10381 (EmacsApp -application:openFiles:): Don't return a value, call
10382 -replyToOpenOrPrint:.
10383 (EmacsView -keyDown:): Fix up cast.
10384 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10385 (EmacsView -menuDown:): Cast tag in call to
10386 find_and_call_menu_selection().
10387 (ns_list_fonts): Remove, unused.
10388 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10389 (ns_fontname_to_xlfd): Make static.
10390 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10391 Remove prototypes (now in keyboard.h).
10392 (next_menubar_widget_id): Remove, unused.
10393 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10394 Remove prototypes (now in keyboard.h).
10395 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10396
103972008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10398
10399 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10400 (floatfns.o): Depend on syssignal.h.
10401 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10402
10403 * systty.h: Fix previous change that removed BSD_TERMIOS.
10404 Add comments to #ifdefs.
10405
104062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10407
10408 * w32fns.c (w32-load-color-file): Remove.
10409 (x-open-connection): Use renamed Fx_load_color_file.
10410 * xfaces.c (x-load-color-file): Add.
10411 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10412 Emacs.clr.
10413 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10414
104152008-07-31 Michael Albinus <michael.albinus@gmx.de>
10416
10417 * dbusbind.c (Fdbus_call_method_asynchronously)
10418 (Fdbus_method_error_internal): New defuns.
10419 (xd_read_message): Handle also reply messages.
10420 (Vdbus_registered_functions_table): Extend docstring.
10421
104222008-07-31 Juanma Barranquero <lekktu@gmail.com>
10423
10424 * keyboard.c (gobble_input): Fix previous change.
10425
104262008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10427
10428 * bitmaps/README:
10429 * xfns.c:
10430 * termcap.c:
10431 * term.c:
10432 * syswait.h:
10433 * systty.h:
10434 * systime.h:
10435 * syssignal.h:
10436 * sysdep.c:
10437 * process.h:
10438 * process.c:
10439 * print.c:
10440 * ndir.h:
10441 * lread.c:
10442 * keyboard.c:
10443 * getpagesize.h:
10444 * floatfns.c:
10445 * fileio.c:
10446 * emacs.c:
10447 * doc.c:
10448 * dispnew.c:
10449 * dired.c:
10450 * data.c:
10451 * callproc.c:
10452 * buffer.c:
10453 * README:
10454 * Makefile.in:
10455 * s/template.h:
10456 * s/msdos.h:
10457 * m/vax.h: Remove VMS support.
10458 * s/vms.h:
10459 * vlimit.h:
10460 * uaf.h:
10461 * temacs.opt:
10462 * param.h:
10463 * ioctl.h: Remove file.
10464
104652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10466
10467 * s/ms-w32.h (MULTI_KBOARD): Remove.
10468 * xterm.c:
10469 * xselect.c:
10470 * xfns.c:
10471 * window.c:
10472 * w32term.c:
10473 * w32fns.c:
10474 * terminal.c:
10475 * termhooks.h:
10476 * term.c:
10477 * sysdep.c:
10478 * keyboard.h:
10479 * keyboard.c:
10480 * frame.h:
10481 * frame.c:
10482 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10483 * config.in: Regenerate.
10484
104852008-07-30 Jason Rumney <jasonr@gnu.org>
10486
10487 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10488
10489 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10490 (w32font_open_internal): Get unicode version of textmetrics.
10491 Don't enable or disable glyph indices here.
10492 (w32font_open): Disable use of glyph indices.
10493
10494 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10495
104962008-07-30 Chong Yidong <cyd@stupidchicken.com>
10497
10498 * minibuf.c (Vread_buffer_function): Doc fix.
10499
105002008-07-30 John Paul Wallington <jpw@pobox.com>
10501
10502 * minibuf.c (read_buffer_completion_ignore_case): New var.
10503 (Fread_buffer): Use it.
10504
105052008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10506
10507 * systty.h (sensemode): Remove empty #if. Remove reference to
10508 BSD_TERMIOS, unused.
10509
10510 * sysdep.c: Remove reference to DGUX.
10511 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10512
10513 * config.in: Regenerate.
10514
105152008-07-30 Jason Rumney <jasonr@gnu.org>
10516
10517 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10518
105192008-07-29 Jason Rumney <jasonr@gnu.org>
10520
10521 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10522 is populated.
10523 (uniscribe_encode_char): Always use uniscribe.
10524 Avoid using context if cache is populated.
10525
105262008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10527
10528 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10529 open menu.
10530
10531 * gtkutil.c (menu_nav_ended): Remove.
10532 (create_menus): Remove signal connect for menu_nav_ended.
10533
105342008-07-28 Chong Yidong <cyd@stupidchicken.com>
10535
10536 * xdisp.c (redisplay_window): Check return value of
10537 compute_window_start_on_continuation_line before forcing a window
10538 start.
10539
105402008-07-28 Jason Rumney <jasonr@gnu.org>
10541
10542 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10543
10544 * w32term.c (w32_enable_unicode_output, cleartype_active):
10545 Remove obsolete display options.
10546 (x_draw_glyph_string_background): Don't use old cleartype_active
10547 workaround.
10548 (w32_initialize): Remove cleartype_active initialization.
10549 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10550
105512008-07-28 Andreas Schwab <schwab@suse.de>
10552
10553 * lisp.h (init_weak_hash_tables, syms_of_font)
10554 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10555 (remove_hash_entry): Don't declare.
10556 * eval.c (maybe_call_debugger): Make static and move before use.
10557 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10558 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10559 * xterm.h (x_set_frame_alpha): Declare.
10560
105612008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10562
10563 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10564 (create_menus): Connect selection-done to menu_nav_ended.
10565
105662008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10567
10568 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10569 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10570 parameter with read of 'alpha' one.
10571 (Qns_frame_parameter): Remove.
5582fbc7 10572 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10573 (next-selection-coding-system, Vselection_coding_system)
10574 (Vnext_selection_coding_system): Drop.
10575
105762008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10577
10578 * nsfns.m (do-applescript, do_applescript): Rename to
10579 ns-do-applescript, ns_do_applescript, and move within file.
10580
105812008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10582
10583 Remove support for Mac Carbon.
10584 * mactoolbox.c:
10585 * macterm.h:
10586 * macterm.c:
10587 * macselect.c:
10588 * macmenu.c:
10589 * macgui.h:
10590 * macfns.c:
10591 * mac.c: Remove file.
10592 * s/darwin.h:
10593 * m/intel386.h:
10594 * xfaces.c:
10595 * xdisp.c:
10596 * window.c:
10597 * tparam.c:
10598 * termhooks.h:
10599 * termcap.c:
10600 * term.c:
10601 * syssignal.h:
10602 * sysselect.h:
10603 * sysdep.c:
10604 * process.c:
10605 * lread.c:
10606 * lisp.h:
10607 * keyboard.c:
10608 * image.c:
10609 * fringe.c:
10610 * frame.h:
10611 * frame.c:
10612 * fontset.c:
10613 * font.h:
10614 * font.c:
10615 * fns.c:
10616 * fileio.c:
10617 * emacs.c:
10618 * dispnew.c:
10619 * dispextern.h:
10620 * config.in:
10621 * atimer.c:
2ae37cf0 10622 * Makefile.in: Remove code for Carbon.
aac0c6e3 10623
f0131492 106242008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10625
10626 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10627
106282008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10629
10630 * macterm.h (kCGBitmapByteOrder32Host): New define for
10631 non-universal SDKs.
10632
10633 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10634 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10635
10636 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10637 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10638
106392008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10640
10641 * w32inevt.c: Include dispextern.h.
10642
106432008-07-26 Andreas Schwab <schwab@suse.de>
10644
10645 * print.c (print_object): Fix off-by-one in last change.
10646
106472008-07-25 Juanma Barranquero <lekktu@gmail.com>
10648
10649 * term.c (syms_of_term): Don't initialize default_orig_pair,
10650 default_set_foreground and default_set_background on Windows.
10651
106522008-07-25 Jason Rumney <jasonr@gnu.org>
10653
10654 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10655 ScriptItemize. Clean up return value checking. Remove unused
10656 variables.
10657 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10658 shaping engine.
10659
10660 * w32font.c (w32font_has_char): Handle the case where we can't
10661 determine the script for a character.
10662
106632008-07-25 Chong Yidong <cyd@stupidchicken.com>
10664
10665 * term.c (syms_of_term): Initialize default_orig_pair,
10666 default_set_foreground, and default_set_background.
10667
10668 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10669 clash (bug#86).
10670 (getloadavg): Callers changed.
10671
10672 * image.c (svg_load_image): Fix last change.
10673 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10674 image size is valid. Use g_object_unref instead of deprecated
10675 rsvg_handle_free to free rsvg handle.
10676 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10677
106782008-07-25 Jason Rumney <jasonr@gnu.org>
10679
10680 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10681 surrogates before looking up glyph index.
10682 (w32font_text_extents): Encode as surrogates if falling back to
10683 functions that need UTF-16 wide chars.
10684
10685 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10686 BMP as surrogates before looking up glyph index.
10687
106882008-07-25 Chong Yidong <cyd@stupidchicken.com>
10689
10690 * image.c (svg_load_image): Check for failure in return value of
10691 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10692
106932008-07-25 Jason Rumney <jasonr@gnu.org>
10694
10695 * w32font.c (Fx_select_font): Reverse sense of second arg.
10696
106972008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10698
10699 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10700 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10701
10702 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10703 (PURESIZE): Use it.
10704
107052008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10706
10707 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10708 * m/alpha.h (TEXT_END):
10709 * m/ibmrs6000.h (TEXT_END):
10710 * m/macppc.h (TEXT_END):
10711 * s/darwin.h (TEXT_END):
10712 * s/msdos.h (TEXT_END): Remove, unused.
10713 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10714 * s/cygwin.h: Remove comment.
10715
10716 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10717 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10718 * m/intel386.h (DOT_GLOBAL_START):
10719 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10720 (USG): Remove, file not used on USG platforms.
10721
10722 * Makefile.in (HAVE_X11): Remove empty #else.
10723
107242008-07-24 Andreas Schwab <schwab@suse.de>
10725
10726 * fileio.c (Finsert_file_contents): Properly adjust undo list
10727 after format conversion.
10728
107292008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10730
10731 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10732 (menu_nav_ended): Remove.
10733 (create_menus): Remove signal connect for menu_nav_ended.
10734 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10735 create_menus.
10736 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10737
107382008-07-23 Jason Rumney <jasonr@gnu.org>
10739
10740 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10741 with opened font.
10742 (w32font_open): Set font type to gdi.
10743
10744 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10745
107462008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10747
10748 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10749 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10750 defines it.
10751 * unexec.c (ADDR_CORRECT): Define unconditionally.
10752
10753 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10754
10755 * unexec.c: Remove code depending on !COFF and USG, the file is
10756 not used for such systems.
10757
10758 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10759 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10760 (LD_SWITCH_SYSTEM_1): Remove, update users.
10761
10762 * s/darwin.h (DATA_END):
10763 * m/intel386.h (DATA_END):
10764 * m/ibmrs6000.h (DATA_END):
10765 * m/alpha.h (DATA_END): Remove, unused.
10766
10767 * config.in: Regenerate.
10768 * s/ms-w32.h (subprocesses): Define unconditionally.
10769 * s/template.h (subprocesses): Update comment.
10770 * s/vms.h (subprocesses):
10771 * s/usg5-4.h (subprocesses):
10772 * s/hpux10-20.h (subprocesses):
10773 * s/gnu-linux.h (subprocesses):
10774 * s/cygwin.h (subprocesses):
10775 * s/bsd-common.h (subprocesses):
10776 * s/aix4-2.h (subprocesses):
10777 * s/darwin.h (subprocesses): Do not define, defined by default now.
10778
10779 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10780 Remove all references.
10781 (temacs): Add GNUstep specific ld flags.
10782
10783 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10784 similarly to what X does.
10785
107862008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10787
10788 * nsfns.m (x-list-fonts): Remove.
10789 (syms_of_nsfns): Drop the x-list-fonts declaration.
10790 * nsterm.m: Get rid of remaining "//" comments.
10791
107922008-07-22 Chong Yidong <cyd@stupidchicken.com>
10793
10794 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10795
10796 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10797 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10798 (Fns_own_selection_internal, Fx_disown_selection_internal)
10799 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10800
10801 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10802 ... */' style of docstrings. Doc fixes.
10803
108042008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10805
10806 * terminfo.c (UP, BC, PC): Undo previous change.
10807
10808 * nsfns.m: Rename ns prefixed functions/variables to the
10809 corresponding x versions. Update references.
10810
108112008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10812
10813 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10814
108152008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10816
10817 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10818 Remove forwarding functions.
10819 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10820 non-static.
10821 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10822 non-static.
10823 (ns_frame_parm_handlers): Use the new names.
10824 (syms_of_nsfns): Move to the end of file.
10825
10826 * nsterm.m (syms_of_nsterm): Move to the end of file.
10827
10828 * dispnew.c (init_display): Remove code for X10.
10829
108302008-07-22 Jason Rumney <jasonr@gnu.org>
10831
10832 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10833 bare drive.
10834
108352008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10836
10837 * nsterm.m (syms_of_nsterm): Remove debugging println.
10838
108392008-07-22 David Reitter <david.reitter@gmail.com>
10840
10841 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10842 Carbon implementation of the same functionality: execute arbitrary
10843 AppleScript code.
10844
108452008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10846
10847 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10848 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10849 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10850 (Fx_display_mm_height, Fx_display_mm_width)
10851 (Fx_display_backing_store, Fx_display_visual_class)
10852 (Fx_display_save_under, Fx_open_connection)
10853 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10854 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10855 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10856 (Fx_display_pixel_width, Fx_display_pixel_height)
10857 (Fx_display_usable_bounds, Fx_display_planes)
10858 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10859 ... */' style of docstrings.
10860
108612008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10862
10863 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10864 on this platform.
10865 (mips):
10866 * m/iris4d.h (mips): Do not define.
10867 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10868
10869 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10870
10871 * image.c:
10872 * nsfns.m:
10873 * nsselect.m:
10874 * nsterm.h:
10875 * nsterm.m: Rename ns prefixed functions/variables to the
10876 corresponding x versions. Update references.
10877
10878 * m/ibms390x.h (NO_REMAP): Do not undefine.
10879
10880 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10881
108822008-07-21 Chong Yidong <cyd@stupidchicken.com>
10883
10884 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10885 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10886 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10887 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10888 (Fns_display_mm_height, Fns_display_mm_width)
10889 (Fns_display_backing_store, Fns_display_visual_class)
10890 (Fns_display_save_under, Fns_open_connection)
10891 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10892 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10893 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10894 (Fns_display_pixel_width, Fns_display_pixel_height)
10895 (Fns_display_usable_bounds, Fx_display_planes)
10896 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10897
108982008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10899
10900 * print.c (print_object): Check print_depth before searching for
10901 circularities.
10902
109032008-07-21 Michael Albinus <michael.albinus@gmx.de>
10904
10905 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10906 only sprintf.
10907
109082008-07-21 Kenichi Handa <handa@m17n.org>
10909
10910 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10911
109122008-07-20 Andreas Schwab <schwab@suse.de>
10913
10914 * syntax.c (find_start_pos, find_start_value)
10915 (find_start_value_byte, find_start_begv, find_defun_start)
10916 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10917
109182008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10919
10920 * s/sol2-3.h: Insert contents of s/sol2.h.
10921 (LD_SWITCH_SYSTEM): Remove redundant definition.
10922 * s/sol2.h: Remove, unused.
10923
109242008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10925
10926 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10927
109282008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10929
10930 * Makefile.in (ns_appdir): Fix typo in find command.
10931
109322008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10933
10934 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10935
10936 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10937 added not supported anymore.
10938
10939 * s/usg5-4-2.h (LIBS_SYSTEM):
10940 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10941
10942 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10943 * s/lynxos.h (GETPGRP_NO_ARG):
10944 * s/hpux10-20.h (NO_SIOCTL_H):
10945 * s/gnu.h (GETPGRP_NO_ARG):
10946 * s/gnu-linux.h (NO_SIOCTL_H):
10947 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10948 * s/cygwin.h (GETPGRP_NO_ARG):
10949 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10950 (C_DEBUG_SWITCH): Remove duplicate definition.
10951
10952 * m/ibms390.h: Remove boilerplate comments.
10953
10954 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10955
10956 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10957 (wait_reading_process_output): Remove code for SunOS, platform not
10958 supported anymore. Use SOLARIS2 instead of sun.
10959
109602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10961
10962 * font.c (font_open_by_name): Under NS, default lface height to zero.
10963 (font_open_for_lface): Under NS, set size based on frame fontsize.
10964 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10965 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10966
109672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10968
10969 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10970 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10971 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10972 YES/NO.
10973 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10974 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10975 * Makefile.in (clean): Clear out build destination dir.
10976
109772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10978
10979 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10980 xterm, xselect.
10981 * lisp.h: Remove declaration of hash_remove.
10982 * nsgui.h: Remove redefinitions of hash_remove.
10983 * fns.c (hash_remove): Rename to hash_remove_from_table.
10984
109852008-07-19 Seiji Zenitani <zenitani@mac.com>
10986
10987 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10988 strdup() the family UTF8String before modifying it.
10989
109902008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10991
10992 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10993 NS_FACE_BACKGROUND with 0 instead of nil.
10994 * nsfont.m (nsfont_draw): Same.
10995
109962008-07-19 Chong Yidong <cyd@stupidchicken.com>
10997
10998 * nsfns.m (ns_set_background_color): Fix crash.
10999
110002008-07-18 Chong Yidong <cyd@stupidchicken.com>
11001
11002 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
11003
110042008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
11005
11006 * puresize.h (BASE_PURESIZE): Increase to 1240000.
11007
110082008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11009
11010 * gtkutil.c: Include <config.h> instead of "config.h".
11011
11012 * lisp.h (Foverlay_buffer): Add EXFUN.
11013
11014 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
11015 child process to complete child_setup. Undo 2005-09-21 change.
11016
11017 * s/darwin.h: Mention setsid after vfork.
11018
110192008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11020
11021 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
11022 Depend on macgui.h.
11023
11024 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
11025 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
11026
11027 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
11028 and f19.
11029 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
11030
11031 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
11032 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
11033 Remove enumerators.
11034
11035 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
11036 Check if FACE_FROM_ID returns NULL.
11037
110382008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
11039
11040 * w32inevt.c (change_frame_size): Remove extern declaration.
11041 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
11042 change_frame_size.
11043
110442008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11045
11046 * getloadavg.c: Revert last change (2008-07-15).
11047
110482008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
11049
11050 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 11051 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
11052 from configure.
11053
110542008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
11055
11056 * s/sol2.h:
11057 * s/sol2-4.h: Reorganize conditionals.
11058
11059 * ecrt0.c: Remove code depending on m68000, not used anymore.
11060
11061 * fns.c (hash_remove): Make static.
11062 * lisp.h (hash_remove): Don't prototype.
11063
11064 * m/ibmrs6000.h:
11065 * m/ibms390x.h:
11066 * m/macppc.h: Remove boilerplate comments.
11067
11068 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
11069 Solaris, which does not need them.
11070
11071 * m/vax.h: Remove comments about unsupported systems.
11072
11073 * s/darwin.h: Reorganize ifdefs.
11074
110752008-07-17 Andreas Schwab <schwab@suse.de>
11076
11077 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11078
110792008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11080
11081 Use SDATA. Follow coding convention of placing operators at
11082 beginning of next line rather than end of previous line, and placing
11083 spaces around infix operators.
11084
11085 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11086 in case it was defined already.
11087 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11088 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11089 ns_default.
11090 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11091 Lisp_Objects.
11092 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11093 (ns_defined_color, ns_color_to_lisp): Declare.
11094 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11095 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11096 it's accepted even with USE_LISP_UNION_TYPE.
11097 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11098 (update_frame_tool_bar): Remove apparently obsolete tests for
11099 non-integerness of f->tool_bar_lines.
11100 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11101 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11102 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11103 (nsfont_open): Don't confuse NULL for Qnil.
11104 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11105 * menu.h (find_and_call_menu_selection):
11106 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11107 (find_and_return_menu_selection): Always return something.
11108 * frame.h: Include dispextern.h for Display_Info.
11109 (display_x_get_resource): Declare.
11110
111112008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11112
11113 * syntax.c: Remove stdio.h include accidentally introduced in
11114 Emacs.app commit.
11115 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11116 NS_IMPL_COCOA.
11117 * keyboard.c (handle_async_input, input_available_signal): Remove
11118 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11119
111202008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11121
11122 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11123 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11124 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11125 Use SDATA.
11126
11127 * keymap.c: Remove all NS-specific code.
11128 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11129 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11130 where_is_preferred_modifier, return a different value depending on how
11131 preferred is the binding.
11132 (where_is_internal): Adjust accordingly.
11133 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11134 Adjust to new preferred_sequence_p.
11135 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11136 * keyboard.c (parse_solitary_modifier): Not static any more.
11137 * keyboard.h (parse_solitary_modifier): Declare.
11138
111392008-07-16 Andreas Schwab <schwab@suse.de>
11140
11141 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11142 of easymenu.
11143
111442008-07-16 Chong Yidong <cyd@stupidchicken.com>
11145
11146 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11147 that we don't move off the line.
11148
111492008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11150
11151 * keyboard.c (Qsuper): Remove.
11152 (parse_menu_item): Don't call where_is_internal specially for NS.
11153
111542008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11155
11156 * s/gnu-linux.h: Remove boilerplate comments.
11157
11158 * m/alpha.h (__ELF__): Consolidate conditions.
11159
11160 * m/m68k.h (linux): Use GNU_LINUX instead.
11161 Remove boilerplate comments.
11162
11163 * m/intel386.h: Undo refactoring from previous change.
11164 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11165 too, remove dead code.
11166 (linux): Use GNU_LINUX instead.
11167
111682008-07-16 Jason Rumney <jasonr@gnu.org>
11169
11170 * w32gui.h: Repeat 26 June changes lost by last change.
11171
111722008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11173
11174 * systty.h: Remove code for Aix on 386, unsupported platform.
11175
11176 * s/ms-w32.h: Remove boilerplate comments.
11177 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11178
11179 * s/gnu-linux.h (TERM): Remove support.
11180 (HAVE_SYSVIPC): Remove, unused.
11181 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11182 for this system.
11183
11184 * process.c: Remove support for IRIS, unused.
11185 Remove support for TERM, not relevant anymore.
11186
11187 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11188 used with the definition.
11189
11190 * s/aix4-2.h (static): Do not undef.
11191
11192 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11193 only used on Aix.
11194 (HAVE_SYSVIPC): Remove, unused.
11195
11196 * m/hp800.h (CANNOT_DUMP): Do not undef.
11197
11198 * m/alpha.h: Fix comment.
11199
11200 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11201 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11202 used by this configuration.
11203 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11204 * unexec.c: Remove code depending on HPUX and
11205 USG_SHARED_LIBRARIES, not used with this file. Remove code
11206 depending on IRIS, unused. Remove if 0-ed code.
11207
11208 * s/template.h: Remove comments about static.
11209
11210 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11211 Remove if 0-ed code.
11212 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11213 were the same as the default.
11214 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11215 Remove boilerplate comments.
11216 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11217 (HAVE_SYSVIPC): Remove, unused.
11218 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11219
11220 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11221 Remove boilerplate comments.
11222 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11223 Remove boilerplate comments.
11224 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11225 Remove boilerplate comments.
11226 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11227
11228 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11229 USG systems which do not use DATA_SEG_BITS.
11230 Refactor code. Remove boilerplate comments.
11231
11232 * m/ibms390.h:
11233 * m/m68k.h:
11234 * s/bsd-common.h:
11235 * s/cygwin.h:
11236 * s/darwin.h:
11237 * s/freebsd.h:
11238 * s/gnu.h:
11239 * s/msdos.h: Remove boilerplate comments.
11240
11241 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11242 do not use this file.
aac0c6e3
MR
11243 (IRIS_4D): Remove, unused.
11244
11245 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11246 do not use this file.
aac0c6e3
MR
11247 (SIGN_EXTEND_CHAR):
11248 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11249 * unexmips.c: Remove file, unused.
11250
11251 * editfns.c (Fuser_full_name): Replace the only use of
11252 USER_FULL_NAME with its value.
11253 * config.in: Regenerate.
11254
112552008-07-16 David Reitter <david.reitter@gmail.com>
11256
11257 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11258 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11259
112602008-07-16 Glenn Morris <rgm@gnu.org>
11261
11262 * emacs.c (system-type): Doc fix.
11263
112642008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11265
11266 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11267 If the cache doesn't work, let's fix it, rather than work around it.
11268
112692008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11270
11271 * Makefile.in: Correct additions for nsfont.o in last commit.
11272 * nsfont.m: New file (forgot last commit).
11273
112742008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11275
11276 * callproc.c (set_initial_environment): Initialize
11277 Vprocess_environment under CANNOT_DUMP (fixes crash when
11278 batch-compiling for bootstrap).
11279
112802008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11281 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11282
11283 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11284 fix crash due to different init order.
11285
112862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11287
11288 Changes and additions for NeXTstep windowing system (Cocoa and
11289 GNUstep) support.
11290
11291 * Makefile.in:
11292 * config.in: Support defines and build commands for NS port.
11293 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11294 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11295 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11296 windowing.
11297 (struct face): Add synth_ital field.
11298 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11299 (init_display): Initialize Vinitial_window_system to "ns" when so
11300 compiled.
11301 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11302 (display_arg): Use under NS.
11303 (main): Under NS, allocate autorelease pool and handle command line
11304 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11305 (standard_args): Add NS-specific args.
11306 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11307 * font.c (DEFAULT_ENCODING): New variable.
11308 (font_find_for_lface): Use it.
11309 (syms_of_font): Load syms_of_nsfont under NS.
11310 * font.h: Declare nsfont_driver when compiled under NS.
11311 * fontset.c: When compiling under NS, include nsterm.h.
11312 (fontset_from_font): Autoconstruct fontset under NS.
11313 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11314 symbol, document and use it.
11315 (do_switch_frame): When for_deletion under Cocoa, add
11316 Fraise_frame(Qnil).
11317 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11318 (x_get_arg): Allow "yes" and "no" as boolean values.
11319 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11320 Qright under Cocoa.
11321 (focus-follows-mouse): Default to 0 under NS.
11322 * frame.h (enum output_method): Add output_ns.
11323 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11324 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11325 (FRAME_WINDOW_P): NS-specific definition.
11326 * fringe.c (max_used_fringe_bitmap): Make public.
11327 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11328 (getloadavg): Use NeXT code under descendant OS's.
11329 * image.c (includes and header section, x_create_bitmap_from_data)
11330 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11331 (image_background_transparent, x_clear_image_1)
11332 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11333 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11334 (x_to_xcolors, x_from_xcolors, x_disable_image)
11335 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11336 other GUIs, including XPM support using code originally written for
11337 Carbon GUI.
11338 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11339 using NS API.
11340 (image_ascent): Use font metrics macros instead of direct struct field
11341 access.
11342 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11343 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11344 Also, handle NS as GTK for menu bar purposes.
11345 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11346 toolkit where they differ.
11347 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11348 use cachelist, still needed under NS.
11349 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11350 (struct widget_value): Define it here for menu.c.
11351 * keymap.c (includes): Include modifier internals.
11352 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11353 NS.
11354 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11355 support for preferring sequences using certain modifiers, specified by
11356 the FIRSTONLY argument.
11357 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11358 under NS GNUstep implementation.
11359 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11360 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11361 * menu.c: Include nsterm.h under NS.
11362 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11363 (free_menubar_widget_tree_value, update_submenu_strings)
11364 (find_and_call_menu_selection): Treat NS as X and NT.
11365 (find_and_return_menu_selection): New function, used for popup menus.
11366 * nsgui.h:
11367 * nsterm.h:
11368 * nsfns.m:
11369 * nsimage.m:
11370 * nsmenu.m:
11371 * nsselect.m:
11372 * nsterm.m: New files.
11373 * process.c (wait_reading_process_output): Under NS, call ns_select()
11374 instead of plain select().
11375 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11376 beginning of buffer.
11377 * sysselect.h (init_process): Rename when compiling under Cocoa to
11378 avoid name conflict.
11379 * termhooks.h (display_info): Add ns_display_info to union.
11380 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11381 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11382 COCOA environment.
11383 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11384 unexec() signature. (Note, this will dump, but the resulting file
11385 crashes; unexosx is used instead; keeping around for reference and
11386 possible aid in getting dump working under GNUstep.)
11387 * w32gui.h (button_type, widget_value): Remove definitions (now in
11388 keyboard.h).
11389 * window.c: Include nsterm.h when compiling under NS.
11390 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11391 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11392 other GUI windowing systems.
11393 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11394 GTK.
11395 (x_consider_frame_title): Under NS, set icon type and frame
11396 modified-state indicator; use ns_set_name_as_filename() when using
11397 formatted title.
11398 (update_window_cursor): Make public when compiling under NS.
11399 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11400 (hourglass_atimer, Vhourglass_delay
11401 * xfaces.c (header section, init_frame_faces, clear_font_table)
11402 (defined_color, unload_color, x_face_list_fonts)
11403 (prepare_face_for_display): Add NS support parallel to other GUIs.
11404 Emulate GCs like other non-X GUIs.
11405 (split_font_name): Don't lowercase font name under NS.
11406 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11407 under NS.
11408 * s/darwin.h: Add support for compilation under NS.
11409
114102008-07-15 Jason Rumney <jasonr@gnu.org>
11411
11412 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11413 (w32_show_hourglass): Rename from show_hourglass.
11414 (w32_hide_hourglass): Rename from hide_hourglass.
11415 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11416 (Vhourglass_delay): Declare extern.
11417 (hourglass_started): Remove.
11418
11419 * xdisp.c (Vhourglass_delay): Remove static.
11420 (hourglass_started, start_hourglass, cancel_hourglass):
11421 Don't include these versions on WINDOWSNT.
11422
114232008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11424
11425 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11426 variables (formerly in xfns.c).
11427 (show_hourglass, hide_hourglass): New prototypes (same).
11428 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11429 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11430 in xfns.c).
11431 (syms_of_xdisp): Declare/initialize display-hourglass,
11432 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11433 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11434 formerly in xfns.c.
11435 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11436 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11437 (start_hourglass, cancel_hourglass): Remove.
11438 (show_hourglass, hide_hourglass): Remove prototypes and static
11439 modifiers.
11440 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11441 hourglass_atimer, hourglass_shown_p declaration/initialization.
11442 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11443 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11444 (start_hourglass, cancel_hourglass): Remove.
11445 (show_hourglass, hide_hourglass): Remove prototypes and static
11446 modifiers.
11447 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11448 hourglass_atimer, hourglass_shown_p declaration/initialization.
11449 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11450 (DEFAULT_HOURGLASS_DELAY): Remove.
11451 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11452 hourglass_shown_p declaration/initialization.
11453
114542008-07-14 Jason Rumney <jasonr@gnu.org>
11455
11456 * w32fns.c (w32_get_arg): Remove wrapper function.
11457 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11458 directly.
11459 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11460
114612008-07-14 Kenichi Handa <handa@m17n.org>
11462
11463 * xfont.c (xfont_open): Add workaround for X's bug.
11464
114652008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11466
11467 * fontset.c: Include <stdio.h> unconditionally.
11468
114692008-07-13 Michael Albinus <michael.albinus@gmx.de>
11470
11471 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11472 for filtering.
11473
114742008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11475
11476 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11477
11478 * m/macppc.h:
11479 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11480
11481 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11482 (SPECIAL_EMACS_INT):
11483 * m/ia64.h (SPECIAL_EMACS_INT):
11484 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11485 * s/gnu.h (NLIST_STRUCT):
11486 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11487 * s/gnu-linux.h (LINUX):
11488 * s/msdos.h (HAVE_FACES):
11489 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11490
11491 * systty.h:
11492 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11493 anymore.
11494
114952008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11496
11497 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11498 always defined as int.
11499
11500 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11501 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11502 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11503 * s/freebsd.h (HAVE_WAIT_HEADER):
11504 * s/bsd-common.h (HAVE_UNION_WAIT):
11505 * s/aix4-2.h (HAVE_WAIT_HEADER):
11506 * m/mips.h (HAVE_UNION_WAIT):
11507 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11508 (COFF, static): Do not define, they are undefined later in the file.
11509
11510 * process.c (update_status): Don't use a union.
11511 (status_convert):
11512 (sigchld_handler): Use int instead of WAITTYPE.
11513
115142008-07-12 Chong Yidong <cyd@stupidchicken.com>
11515
11516 * indent.c (Fvertical_motion): Restore hscroll before moving to
11517 goal column.
11518
115192008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11520
11521 * lisp.h: Remove left over code.
11522
115232008-07-11 Andreas Schwab <schwab@suse.de>
11524
11525 * lisp.h: Fix logic in last change.
11526
11527 * menu.h: New file.
11528 * menu.c: Include it.
11529 * xmenu.c: Likewise.
11530 * Makefile.in: Update dependencies.
11531
115322008-07-11 Kenichi Handa <handa@m17n.org>
11533
11534 * fontset.c (fontset_from_font): Cancel the previous change.
11535
115362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11537
11538 * lisp.h:
11539 * w32heap.c:
11540 * emacs.c:
11541 * alloc.c: Replace all references of NO_UNION_TYPE with
11542 USE_LISP_UNION_TYPE.
11543
11544 * m/xtensa.h (NO_UNION_TYPE):
11545 * m/vax.h (NO_UNION_TYPE):
11546 * m/template.h (NO_UNION_TYPE):
11547 * m/sparc.h (NO_UNION_TYPE):
11548 * m/mips.h (NO_UNION_TYPE):
11549 * m/macppc.h (NO_UNION_TYPE):
11550 * m/m68k.h (NO_UNION_TYPE):
11551 * m/iris4d.h (NO_UNION_TYPE):
11552 * m/intel386.h (NO_UNION_TYPE):
11553 * m/ibms390x.h (NO_UNION_TYPE):
11554 * m/ibms390.h (NO_UNION_TYPE):
11555 * m/ibmrs6000.h (NO_UNION_TYPE):
11556 * m/ia64.h (NO_UNION_TYPE):
11557 * m/hp800.h (NO_UNION_TYPE):
11558 * m/arm.h (NO_UNION_TYPE):
11559 * m/amdx86-64.h (NO_UNION_TYPE):
11560 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11561 defining it the same.
11562
115632008-07-10 Chong Yidong <cyd@stupidchicken.com>
11564
11565 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11566
115672008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11568
11569 * fileio.c:
50426a04 11570 * sysdep.c:
aac0c6e3
MR
11571 * systty.h:
11572 * m/ibmrs6000.h:
11573 * m/iris4d.h:
11574 * s/aix4-2.h:
11575 * s/freebsd.h:
11576 * s/gnu-linux.h:
11577 * s/hpux10-20.h:
11578 * s/hpux11.h:
11579 * s/netbsd.h:
11580 * s/sol2-3.h:
11581 * s/sol2-4.h:
11582 * s/sol2.h:
11583 * s/usg5-4.h:
11584 * s/vms.h: Remove references to unused variables.
11585
115862008-07-10 Andreas Schwab <schwab@suse.de>
11587
11588 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11589 pattern before matching the generic family.
11590
115912008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11592
11593 * unexec.c:
11594 * s/vms.h:
11595 * s/usg5-4-2.h:
11596 * s/sol2-5.h:
11597 * s/freebsd.h:
11598 * s/darwin.h: Remove dead code.
11599
11600 * m/template.h:
11601 * m/sparc.h:
11602 * m/mips.h:
11603 * m/m68k.h:
11604 * m/iris4d.h:
11605 * m/intel386.h:
11606 * m/ibms390x.h:
11607 * m/ibms390.h:
11608 * m/ia64.h:
11609 * m/hp800.h:
11610 * m/arm.h:
11611 * m/amdx86-64.h: Remove dead code and references to unused
11612 and compiler defined symbols.
11613
11614 * unexmips.c:
11615 * unexelf.c: Remove references to desupported systems.
11616
11617 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11618
11619 * m/powermac.h: Remove boilerplate comments.
11620 (NO_REMAP): Remove unused definition.
11621
11622 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11623 define them.
11624
116252008-07-10 Kenichi Handa <handa@m17n.org>
11626
11627 * xfont.c (xfont_open): Log the reason of failure.
11628
116292008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11630
11631 * fontset.c (fontset_get_font_group):
11632 * font.c (font_check_otf): Specify argument types.
11633
116342008-07-09 Kenichi Handa <handa@m17n.org>
11635
11636 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11637 non-ASCII char is found.
11638
11639 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11640 (reorder_font_vector): Change the arg preferred_family to font.
11641 Prefer the spec matching with font.
11642 (fontset_get_font_group): New function.
11643 (fontset_find_font): Change the format of an element of a realized
11644 fontset. Use fontset_get_font_group.
11645 (fontset_font): Try the current fontset, the default fontset, the
11646 fallbacks of the current fontset, and the fallbacks of the default
11647 fontset in this order.
11648 (face_for_char): Delete the shortcut to use the current font.
11649 (fontset_from_font): Don't set fonts for Latin in the fontset.
11650
11651 * font.h (font_make_object, font_match_p): Adjust prototypes.
11652
11653 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11654
11655 * font.c (font_make_object): New arg entity and pixelsize.
11656 (font_check_otf_features, font_check_otf): New functions.
11657 (font_match_p): Check :lang, :script, and :otf properties.
11658
11659 * xfont.c (xfont_open): Adjust it for the change of
11660 font_make_object.
11661 (xfont_text_extents): Fix initial setting of metrics.
11662
11663 * ftfont.c (struct ftfont_info): New member index, delete member
11664 fc_charset_idx. Make the member order compatible with struct
11665 xftfont_info.
11666 (fc_charset_table): Change charset names to registry names.
11667 (ftfont_pattern_entity): Delete the args registry and
11668 fc_charset_idx. Change the value of :font-entity property
11669 to (FONTNAME . INDEX). Always set :registry property to
11670 `iso10646-1'.
11671 (struct ftfont_cache_data): New struct.
11672 (ftfont_lookup_cache): New arg for_face.
11673 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11674 (ftfont_driver): Set the member otf_capability.
11675 (ftfont_get_charset): Adjust it for the change of
11676 fc_charset_table.
11677 (OTF_TAG_SYM): New macro.
11678 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11679 for the change of fc_charset_table.
11680 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11681 ftfont_pattern_entity. Add FC_INDEX to objset.
11682 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11683 and ftfont_pattern_entity.
11684 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11685 font_make_object, struct ftfont_info.
11686 (ftfont_has_char): Use ftfont_get_fc_charset.
11687 (ftfont_otf_features, ftfont_otf_capability): New functions.
11688 (ftfont_shape): Use ftfont_get_otf.
11689 (ftfont_text_extents): Fix initial setting of metrics.
11690
11691 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11692 member order compatible with struct ftfont_info.
11693 (xftfont_open): Add FC_CHARSET to the pattern. Set
11694 xftfont_info->ft_size. Don't unlock the face. Check BDF
11695 properties if appropriate.
11696 (xftfont_close): Unlock the face.
11697 (xftfont_anchor_point, xftfont_shape): Deleted.
11698 (syms_of_xftfont): Don't set members anchor_point and shape of
11699 xftfont_driver.
11700
11701 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11702 font_make_object.
11703
11704 * w32font.c (w32font_open): Adjust it for the change of
11705 font_make_object.
11706 (w32font_open_internal): Don't set properties of font_object here.
11707
117082008-07-08 Chong Yidong <cyd@stupidchicken.com>
11709
11710 * macfns.c (x_create_tip_frame):
11711 * w32fns.c (x_create_tip_frame):
11712 * xfns.c (x_create_tip_frame): Pass parameter argument to
11713 face-set-after-frame-default.
11714
11715 * xfaces.c (Finternal_merge_in_global_face): Save merged
11716 attributes for the default face back into the face vector.
11717
117182008-07-08 Andreas Schwab <schwab@suse.de>
11719
11720 * fontset.h: Declare fontset_from_font. Don't declare
11721 new_fontset_from_font and fontset_from_font_name.
11722 * xterm.c: Include "fontset.h".
11723 * Makefile.in (xterm.o): Update dependencies.
11724
117252008-07-08 Glenn Morris <rgm@gnu.org>
11726
11727 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11728 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11729
117302008-07-07 Chong Yidong <cyd@stupidchicken.com>
11731
11732 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11733 (x_set_frame_parameters): Don't bind it.
11734
117352008-07-07 Juanma Barranquero <lekktu@gmail.com>
11736
11737 * w32fns.c (map_w32_filename): Declare extern.
11738
117392008-07-07 Jason Rumney <jasonr@gnu.org>
11740
11741 * w32term.c (WS_EX_LAYERED): Define if not already.
11742
117432008-07-06 Chong Yidong <cyd@stupidchicken.com>
11744
11745 * xfaces.c (set_font_frame_param): Don't try to set the font
11746 parameter if it is still unspecified in the lface.
11747
117482008-07-05 Chong Yidong <cyd@stupidchicken.com>
11749
11750 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11751 face if it didn't already exist.
11752
11753 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11754
117552008-07-05 Andreas Schwab <schwab@suse.de>
11756
11757 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11758
117592008-07-05 Chong Yidong <cyd@stupidchicken.com>
11760
11761 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11762 word-wrapping.
11763 (IT_DISPLAYING_WHITESPACE): New macro.
11764 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11765 when word-wrapping. Simplify word-wrapping logic. Use correct
11766 pixel positions when saving copies of the iterator.
11767 (display_line): Use proper wrap point if the last character on a
11768 line was preceded by whitespace.
11769
117702008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11771
11772 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11773
117742008-07-04 Kenichi Handa <handa@m17n.org>
11775
11776 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11777
11778 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11779
117802008-07-02 Jason Rumney <jasonr@gnu.org>
11781
11782 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11783 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11784
11785 * xdisp.c (next_element_from_display_vector): Move assignment out
11786 of if statement.
11787
117882008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11789
11790 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11791
11792 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11793 (syms_of_fileio): Initialize and export them.
11794 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11795
11796 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11797 (Fsystem_move_file_to_trash): New function.
11798 (syms_of_w32fns): Export it to lisp.
11799
118002008-07-01 Jason Rumney <jasonr@gnu.org>
11801
11802 * w32font.c (w32font_text_extents): Don't count overhang as part
11803 of width.
11804
118052008-06-30 Miles Bader <miles@gnu.org>
11806
11807 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11808 Add `avoid_cursor_p' field.
11809
11810 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11811 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11812 (append_glyph, append_composite_glyph, produce_image_glyph)
11813 (append_stretch_glyph): Initialize avoid_cursor_p.
11814 (get_it_property): Rename from `get_line_height_property'.
11815 (x_produce_glyphs): Use get_it_property.
11816 (handle_line_prefix, push_display_prop): New functions.
11817 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11818 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11819 New variables.
11820 (syms_of_xdisp): Initialize them.
11821
118222008-06-30 Kenichi Handa <handa@m17n.org>
11823
11824 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11825 XftDefaultSubstitute (they are called in XftFontMatch).
11826 (xftfont_open): Fix args to ftfont_font_format.
11827
11828 * ftfont.c (fc_charset_table): New member lang.
11829 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11830 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11831 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11832 (ftfont_open): Fix args to ftfont_font_format.
11833 (ftfont_font_format): New arg filename.
11834
118352008-06-30 Chong Yidong <cyd@stupidchicken.com>
11836
11837 * xfaces.c (Finternal_merge_in_global_face): If default face was
11838 modified, realize it again. Update the font face attribute.
11839
118402008-06-29 Jason Rumney <jasonr@gnu.org>
11841
11842 * w32term.c (x_set_frame_alpha): Fix logic.
11843
118442008-06-29 Kenichi Handa <handa@m17n.org>
11845
11846 * fontset.c (Finternal_char_font): Return font-object instead of
11847 font-name.
11848
11849 * composite.c (get_composition_id): Fix the width calculation for TAB.
11850
118512008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11852
11853 * indent.c (Fvertical_motion): Properly handle float column arg.
11854
118552008-06-28 Jason Rumney <jasonr@gnu.org>
11856
11857 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11858 (pfnSetLayeredWindowAttributes): New function pointer.
11859 (w32_initialize): Initialize it when supported.
11860 (x_set_frame_alpha): New function.
11861
11862 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11863 (w32_frame_parm_handlers): Set alpha handler.
11864
11865 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11866
118672008-06-27 Jason Rumney <jasonr@gnu.org>
11868
11869 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11870 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11871 (w32_to_x_charset, x_to_w32_charset)
11872 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11873 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11874 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11875 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11876 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11877 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11878 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11879 (Qw32_charset_unicode): Remove.
11880 (syms_of_w32fns): Update for above changes.
11881
11882 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11883 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11884 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11885 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11886 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11887 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11888 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11889 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11890 (syms_of_w32font): Update for above changes.
11891
118922008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11893
11894 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11895 removed #if.
11896 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11897
118982008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11899 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11900
11901 * makefile.w32-in (LOCAL_FLAGS):
11902 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11903
11904 * sysdep.c (_spawnlp, _getpid):
11905 Declare with explicit _cdecl instead of _CRTAPI1.
11906
11907 * editfns.c (Fget_internal_run_time):
11908 Check for WINDOWSNT with #ifdef, not #if.
11909
119102008-06-26 Jason Rumney <jasonr@gnu.org>
11911
11912 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11913
11914 * w32term.c (x_draw_glyph_string_foreground)
11915 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11916 Use FONT_HANDLE macro.
11917 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11918
11919 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11920 (uniscribe_encode_char): Use FONT_HANDLE macro.
11921
11922 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11923 (w32font_text_extents): Use precast w32_font.
11924 (w32font_close): Free cached metrics.
11925 (w32font_open_internal): Allocate space for name on stack.
11926
119272008-06-26 Chong Yidong <cyd@stupidchicken.com>
11928
11929 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11930
119312008-06-26 Jason Rumney <jasonr@gnu.org>
11932
11933 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11934 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11935
119362008-06-26 Juanma Barranquero <lekktu@gmail.com>
11937
11938 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11939
119402008-06-26 Jason Rumney <jasonr@gnu.org>
11941
11942 * w32bdf.c, w32bdf.h: Remove obsolete files.
11943
11944 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11945
11946 * w32gui.h: Don't include w32bdf.h.
11947 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11948 Remove obsolete font support.
11949
11950 * w32font.h (struct w32font_info): Remove compat_w32_font.
11951 Add hfont member.
11952 (FONT_COMPAT): Remove obsolete macro.
11953
11954 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11955 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11956 (w32font_open_internal): Remove compat code. Set new hfont member.
11957 (Fx_select_font): Use new hfont member.
11958
11959 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11960 (uniscribe_encode_char): Use new hfont member.
11961
11962 * w32term.c (x_draw_glyph_string_foreground)
11963 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11964 (x_draw_glyph_string): Use metrics in w32font_info.
11965
119662008-06-26 Kenichi Handa <handa@m17n.org>
11967
11968 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11969
119702008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11971
11972 * unexnext.c:
11973 * m/ews4800.h:
11974 * m/hp9000s300.h:
11975 * m/ibm370aix.h:
11976 * m/mips-siemens.h:
11977 * m/ncr386.h:
11978 * m/next.h:
11979 * m/pmax.h:
11980 * m/powerpcle.h:
11981 * m/tandem-s2.h:
11982 * s/386bsd.h:
11983 * s/bsd386.h:
11984 * s/bsd4-1.h:
11985 * s/bsd4-2.h:
11986 * s/bsdos2-1.h:
11987 * s/bsdos2.h:
11988 * s/bsdos3.h:
11989 * s/bsdos4.h:
11990 * s/nextstep.h:
11991 * s/ultrix4-3.h:
11992 * s/usg5-0.h:
11993 * s/usg5-2-2.h:
11994 * s/usg5-2.h:
11995 * s/usg5-4-3.h:
11996 * s/ux4800.h:
11997 * s/uxpds.h:
11998 * s/uxpv.h: Remove support for obsolete systems.
11999 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 12000 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
12001 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
12002 Remove, insert contents in s/aix4-2.h.
12003 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
12004 * s/bsd4-3.h: Rename to ...
12005 * s/bsd-common.h: ... this.
12006 * data.c:
12007 * doc.c:
12008 * ecrt0.c:
12009 * emacs.c:
12010 * fileio.c:
12011 * floatfns.c:
12012 * keyboard.c:
12013 * mem-limits.h:
12014 * print.c:
12015 * process.c:
12016 * sysdep.c:
12017 * syssignal.h:
12018 * systty.h:
12019 * syswait.h:
12020 * term.c:
12021 * unexec.c:
12022 * unexelf.c:
12023 * unexhp9k800.c:
12024 * m/hp800.h:
12025 * m/ibmrs6000.h:
12026 * m/mips.h:
12027 * m/vax.h:
12028 * s/darwin.h:
12029 * s/freebsd.h:
12030 * s/gnu.h:
12031 * s/ms-w32.h:
12032 * s/msdos.h:
12033 * s/netbsd.h:
12034 * s/template.h: Remove references to obsolete variables.
12035
12036 * Makefile.in: Add dependencies for all unexec files.
12037 (admindir): Remove unused variable.
12038 (UNEXEC_SRC): Remove references.
12039
120402008-06-25 Chong Yidong <cyd@stupidchicken.com>
12041
12042 * xfns.c (x_default_font_parameter): If Xft is available, first
12043 try Monospace-12 for the default font.
12044
120452008-06-25 Jason Rumney <jasonr@gnu.org>
12046
12047 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
12048
120492008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
12050
12051 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
12052
12053 * buffer.c (syms_of_buffer): Remove default-word-wrap.
12054
120552008-06-25 Juanma Barranquero <lekktu@gmail.com>
12056
12057 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
12058 <scroll-conservatively>: Fix typo in docstring.
12059
12060 * xselect.c (Fx_send_client_event): Doc fix.
12061
120622008-06-25 Kenichi Handa <handa@m17n.org>
12063
12064 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
12065
12066 * font.c (font_parse_fcname): Remove unused variables.
12067 (font_sort_entites): Delete the arg SPEC. Caller changed.
12068 Fix for the case of ! best_only.
12069 (font_delete_unmatched): Check DPI and AVGWIDTH too.
12070
12071 * lisp.h (Fstring_to_unibyte): EXFUN it.
12072
12073 * character.h (str_to_unibyte): Extern it.
12074
12075 * character.c (str_to_unibyte): New function.
12076
12077 * fns.c (Fstring_to_unibyte): New function.
12078 (syms_of_fns): Defsubr it.
12079
120802008-06-24 Kenichi Handa <handa@m17n.org>
12081
12082 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12083 DPI too.
12084 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12085
120862008-06-24 Andreas Schwab <schwab@suse.de>
12087
12088 * Makefile.in (${lispsource}loaddefs.el): Rename from
12089 ../lisp/loaddefs.el.
12090 (bootstrap-clean): Do what distclean does but don't remove
12091 Makefile.
12092 (distclean): Depend on bootstrap-clean and remove Makefile.
12093
120942008-06-24 Chong Yidong <cyd@stupidchicken.com>
12095
12096 * buffer.h (struct buffer): New member word_wrap.
12097
12098 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12099 word-wrap.
12100 (init_buffer_once): Initialize them.
12101
12102 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12103 line_wrap enum possessing three possible values.
12104
12105 * termopts.h: Replace truncate_partial_width_windows with
12106 Vtruncate_partial_width_windows.
12107
12108 * dispnew.c (direct_output_for_insert): Avoid direct output when
12109 inserting a space with word wrap on.
12110
12111 * indent.c (compute_motion): Obey integer values of
12112 truncate-partial-width-windows.
12113
12114 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12115 replacing truncate_partial_width_windows.
12116 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12117 truncate only if the window width is below that integer.
12118 (start_display, resize_mini_window, produce_stretch_glyph)
12119 (display_string, move_it_in_display_line_to): Use line_wrap.
12120 (back_to_previous_visible_line_start, reseat_1): Reset
12121 string_from_display_prop_p.
12122 (display_line): Extend default face to end of line when wrapping.
12123
121242008-06-24 Kim F. Storm <storm@cua.dk>
12125
12126 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12127 to wrap continued lines at word boundaries.
12128
121292008-06-24 Jason Rumney <jasonr@gnu.org>
12130
12131 * font.c (Ffont_face_attributes): Multiply pixel size before point
12132 conversion to avoid multiplying rounding error.
12133
121342008-06-23 Jason Rumney <jasonr@gnu.org>
12135
12136 * w32term.c (x_draw_glyph_string_background)
12137 (x_draw_glyph_string): Remove old bdf font code.
12138
12139 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12140
121412008-06-22 Kenichi Handa <handa@m17n.org>
12142
12143 * font.c (font_find_for_lface): Try the adstyle specified in
12144 the property of LFACE_FONT of LFACE (if any).
12145
121462008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12147 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12148
12149 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12150
121512008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12152
12153 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12154 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12155 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12156 (witness-emacs): Remove.
12157 (lisp, shortlisp): Move loaddefs.el earlier.
12158 (mostlyclean): Forget about witness-emacs.
12159
121602008-06-22 Glenn Morris <rgm@gnu.org>
12161
12162 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12163 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12164
121652008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12166
12167 * Makefile.in (PRECOMP): Remove.
12168 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12169 (witness-emacs): Run `compile-first'.
12170 (.el.elc): Use the new compile-onefile target.
12171
121722008-06-21 Kenichi Handa <handa@m17n.org>
12173
12174 * xftfont.c (xftfont_open): Handle QCembolden only when
12175 FC_EMBOLDEN is defined.
12176
121772008-06-21 Andreas Schwab <schwab@suse.de>
12178
12179 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12180 (.el.elc): Likewise.
12181
121822008-06-21 Miles Bader <miles@gnu.org>
12183
12184 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12185 build dir, not the lisp source dir.
12186
121872008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12188
12189 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12190 (bootstrapclean): Remove.
12191 (.el.elc): New rule.
12192 (PRECOMP): New var.
12193 (../lisp/subdirs.el): Remove.
12194 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12195 (witness-emacs): New target.
12196 (mostlyclean): Remove witness-emacs as well.
12197 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12198 Add witness-emacs dependency.
12199
122002008-06-20 Chong Yidong <cyd@stupidchicken.com>
12201
12202 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12203 defined by the font.
12204
122052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12206
12207 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12208 (bootstrap-clean): New target that keeps TAGS around.
12209 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12210 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12211
122122008-06-20 Jason Rumney <jasonr@gnu.org>
12213
12214 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12215 Remove obsolete font code.
12216
12217 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12218 to determine language support.
12219
122202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12221
12222 * sysdep.c (cfsetspeed): New fun extracted from the code.
12223 (cfmakeraw): Move before first use.
12224
122252008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12226
12227 * sysdep.c (cfmakeraw): Provide fallback implementation.
12228 (serial_configure): Provide fallback implementation of cfsetspeed.
12229
122302008-06-20 Kenichi Handa <handa@m17n.org>
12231
12232 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12233 the pattern.
12234
12235 * fontset.c (fontset_from_font): Copy font_spec before changing
12236 the elements.
12237
12238 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12239
122402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12241
12242 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12243 for explicit `font' parameters.
12244
12245 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12246
122472008-06-19 Kenichi Handa <handa@m17n.org>
12248
12249 * frame.c: Include <ctype.h>.
12250 (x_set_font_backend): Allow spacing characters in the X resource
12251 for FontBackend.
12252
122532008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12254
12255 * w32fns.c, xfns.c (Qfont_param): New var.
12256 (syms_of_w32fns): Initialize it.
12257 (x_default_font_parameter): Record explicit `font' into
12258 `font-parameter'.
12259
122602008-06-18 Kenichi Handa <handa@m17n.org>
12261
12262 * font.c (font_parse_xlfd): Fix previous change.
12263 (font_parse_fcname): Don't use :fc-unknown-spec.
12264 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12265 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12266 (font_add_log): Prepend the driver name to the resulting fonts.
12267
12268 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12269 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12270 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12271
12272 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12273 (QCembolden): New variables.
12274 (syms_of_xftfont): DEFSYM them.
12275 (xftfont_open): Call XftFontMatch. Don't trust the result of
12276 XftTextExtents8 if the pixel_size is less than 5.
12277
122782008-06-18 Andreas Schwab <schwab@suse.de>
12279
12280 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12281 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12282
122832008-06-18 Jason Rumney <jasonr@gnu.org>
12284
12285 * w32font.c (w32font_list, w32font_match): Add logging.
12286
12287 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12288
122892008-06-17 Chong Yidong <cyd@stupidchicken.com>
12290
12291 * font.c (font_parse_fcname): Store divider characters for
12292 unknown-spec list. For known key symbols, intern using correct
12293 symbol name.
12294
122952008-06-17 Kenichi Handa <handa@m17n.org>
12296
12297 * xfaces.c (realize_default_face): If the frame is not on window
12298 system, set the fontset of face to nil.
12299
123002008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12301
12302 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12303
123042008-06-16 Juanma Barranquero <lekktu@gmail.com>
12305
12306 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12307 (build_font_name_from_vector): Delete externs.
12308
12309 * xfaces.c (struct font_name): Don't declare.
12310
123112008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12312
12313 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12314
123152008-06-16 Chong Yidong <cyd@stupidchicken.com>
12316
12317 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12318
123192008-06-16 Juanma Barranquero <lekktu@gmail.com>
12320
12321 * font.c (Ffont_spec): Fix usage in docstring.
12322 (Ffont_face_attributes): Doc fix.
12323
123242008-06-16 Andreas Schwab <schwab@suse.de>
12325
12326 * font.c (Ffont_face_attributes): Fix definition.
12327
123282008-06-16 Jason Rumney <jasonr@gnu.org>
12329
12330 * font.h (font_style_symbolic_from_value): Remove.
12331
12332 * font.c (font_style_symbolic_from_value): Remove.
12333 (font_style_symbolic): Revert to pre 2008-06-13 version.
12334
12335 * w32font.c (w32_to_fc_weight): New function.
12336 (w32font_full_name, logfont_to_fcname): Use it.
12337
123382008-06-16 Kenichi Handa <handa@m17n.org>
12339
12340 * font.c (font_check_object): Delete it.
12341 (font_clear_cache): Check if a font-object is alive.
12342 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12343 font-object to nil.
12344 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12345 (font_at): Don't call font_check_object.
12346 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12347
123482008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12349
12350 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12351
123522008-06-16 Chong Yidong <cyd@stupidchicken.com>
12353
12354 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12355
123562008-06-15 Chong Yidong <cyd@stupidchicken.com>
12357
12358 * font.c (font_parse_fcname): Only one decimal point.
12359 (font_unparse_fcname): Handle data in family and foundry indices
12360 as symbols, not strings.
12361 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12362
12363 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12364
12365 * font.h (font_unparse_gtkname): Add prototype.
12366
123672008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12368
12369 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12370
123712008-06-15 Andreas Schwab <schwab@suse.de>
12372
12373 * font.c (font_update_drivers): Fix crash when no drivers match.
12374
123752008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12376
12377 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12378 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12379
123802008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12381
12382 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12383
123842008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12385
12386 * process.c (Fserial_process_configure, Fprocess_send_eof):
12387 Use EQ to compare Lisp_Objects.
12388
123892008-06-13 Jason Rumney <jasonr@gnu.org>
12390
12391 * w32fns.c (Fw32_select_font): Remove old font API function.
12392
12393 * w32font.c (logfont_to_fcname): New function.
12394 (Fx_select_font): New font dialog function compatible with
12395 GTK/fontconfig version.
12396
12397 * font.c (font_style_symbolic_from_value): New function.
12398 (font_style_symbolic): Use it.
12399
12400 * font.h (font_style_symbolic_from_value): Declare new function.
12401
124022008-06-13 Juanma Barranquero <lekktu@gmail.com>
12403
12404 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12405 <font-width-table>: Fix typos in docstrings.
12406
124072008-06-13 Daniel Engeler <engeler@gmail.com>
12408
12409 These changes add serial port access.
12410 * process.c: Add HAVE_SERIAL.
12411 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12412 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12413 (list_processes_1, select_wrapper, Fstop_process)
12414 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12415 (status_notify): Modify to handle serial processes.
12416 [HAVE_SERIAL] (Fserial_process_configure)
12417 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12418 New functions.
12419 * process.h (struct Lisp_Process): Add `type'.
12420 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12421 New functions.
12422 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12423 serial ports.
b71ac3dd 12424 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12425 * w32.h: Add FILE_SERIAL.
12426 (struct _child_process): Add ovl_read, ovl_write.
12427
124282008-06-13 Kenichi Handa <handa@m17n.org>
12429
12430 * dispextern.h (enum lface_attribute_index): New member
12431 LFACE_FOUNDRY_INDEX.
12432
12433 * font.c (font_score): Delete arg alternate_families. Check only
12434 weight, slant, width, and size. Ignore the difference of alias
12435 style symbols.
12436 (font_sort_entites): Adjust for the above change. Reflect the
12437 order of font-driver to scores.
12438 (font_list_entities): Don't check alternate_familes here.
12439 (font_clear_prop): Handle foundry.
12440 (font_update_lface): Don't parse "foundry-family" form here.
12441 Handle FONT_FOUNDRY_INDEX.
12442 (font_find_for_lface): Likewise. Handle alternate families here.
12443 If registry is nil, try iso8859-1 and ascii-0.
12444 (font_open_for_lface): Pay attention to size in ENTITY.
12445 (font_open_by_name): Simplify by calling font_load_for_lface.
12446 (free_font_driver_list): Delete it.
12447 (font_update_drivers): Preserve the order of backends.
12448 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12449 of font_score and font_sort_entites.
12450 (font_update_sort_order): Likewise.
12451
12452 * xfaces.c (LFACE_FOUNDRY): New macro.
12453 (check_lface_attrs): Check foundry.
12454 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12455 (merge_face_vectors): Check foundry.
12456 (merge_face_ref): Likewise.
12457 (Finternal_set_lisp_face_attribute): Likewise.
12458 (x_update_menu_appearance): Likewise.
12459 (Finternal_get_lisp_face_attribute): Likewise.
12460 (lface_hash): Likewise.
12461 (lface_same_font_attributes_p): Likewise.
12462 (x_supports_face_attributes_p): Likewise.
12463 (tty_supports_face_attributes_p): Likewise.
12464 (Finternal_set_alternative_font_family_alist): Intern strings.
12465 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12466 (realize_default_face): Set LFACE_FOUNDRY (lface).
12467
12468 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12469 font-driver at first.
12470
12471 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12472
124732008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12474
12475 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12476
124772008-06-12 Jim Meyering <meyering@redhat.com>
12478
12479 Make unexec_free handle NULL the same way free does.
12480 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12481
124822008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12483
12484 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12485 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12486 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12487 (WEAK_ALIAS): Simplify.
12488 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12489 when searching a unibyte buffer.
12490
124912008-06-12 Chong Yidong <cyd@stupidchicken.com>
12492
12493 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12494
124952008-06-12 Juanma Barranquero <lekktu@gmail.com>
12496
12497 * w32font.c: Include ctype.h.
12498
124992008-06-11 Jason Rumney <jasonr@gnu.org>
12500
12501 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12502 misreported as space.
12503 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12504 as aliases for registry iso10646-1.
12505
125062008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12507
12508 * buffer.c (clone_per_buffer_values): Skip `name'.
12509
125102008-06-11 Chong Yidong <cyd@stupidchicken.com>
12511
12512 * font.c (font_parse_fcname): Fix last change; accept decimal
12513 points in font size.
12514
125152008-06-10 Jason Rumney <jasonr@gnu.org>
12516
12517 * w32uniscribe.c (add_opentype_font_name_to_list):
12518 Skip non unicode fonts.
12519
125202008-06-10 Chong Yidong <cyd@stupidchicken.com>
12521
12522 * xfns.c (Fx_font_dialog): New function.
12523
12524 * gtkutil.c (xg_dialog_response_cb): Rename from
12525 xg_file_response_callback.
12526 (pop_down_dialog): Rename from pop_down_file_dialog.
12527 (xg_get_file_name): Callers changed.
12528 (xg_get_font_name): New function.
12529
12530 * gtkutil.h (xg_get_font_name): Insert prototype.
12531
125322008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12533
12534 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12535 x_underline_minimum_display_offset.
12536 (syms_of_xdisp): Declare it here rather than in xterm.c.
12537 * dispextern.h (underline_minimum_offset): Declare it.
12538 * w32term.c (x_draw_glyph_string): Use it.
12539 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12540 (syms_of_xterm): Don't declare it any more.
12541 (x_draw_glyph_string): Adjust to the new name.
12542
8719abec 125432008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12544
12545 * xterm.c (x_underline_minimum_display_offset): New var.
12546 (x_draw_glyph_string): Use it.
12547 (syms_of_xterm): Declare it.
12548
125492008-06-10 Chong Yidong <cyd@stupidchicken.com>
12550
12551 * font.c (font_parse_fcname): Accept GTK-style font names too.
12552
125532008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12554
12555 * dired.c (file_name_completion): Don't return t if the match is exact
12556 but with different capitalization.
12557 * minibuf.c (Ftry_completion): Simplify.
12558
12559 * window.c (Vwindow_point_insertion_type): New var.
12560 (set_window_buffer): Use it.
12561 (syms_of_window): Init and export it to Lisp.
12562
125632008-06-10 Kenichi Handa <handa@m17n.org>
12564
12565 * font.h (font_intern_prop): Prototype adjusted.
12566
12567 * font.c (font_intern_prop): New arg force_symbol.
12568 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12569 Adjust for the change of font_intern_prop.
12570
12571 * ftfont.c (ftfont_pattern_entity):
12572 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12573 (w32_registry):
12574 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12575 the change of font_intern_prop.
12576
125772008-06-09 Juanma Barranquero <lekktu@gmail.com>
12578
12579 * w32menu.c (digest_single_submenu): Declare extern.
12580
125812008-06-09 Jason Rumney <jasonr@gnu.org>
12582
12583 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12584
12585 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12586 (parse_single_submenu): Remove.
12587 (digest_single_submenu): Remove.
12588 (syms_of_w32menu): Don't initialise variables that have moved
12589 to menu.c.
12590 (set_frame_menubar): Sync with version in xmenu.c.
12591 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12592
12593 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12594 Make static again.
12595
125962008-06-09 Jason Rumney <jasonr@gnu.org>
12597
12598 Changes to w32 files related to the move of common menu code
12599 to menu.c on 2008-06-08 by Chong Yidong.
12600
12601 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12602 defs to w32gui.h.
12603 (single_keymap_panes, push_menu_item, push_menu_pane):
12604 Make globally visible.
12605
12606 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12607 (local_free, malloc_widget_value, free_widget_value)
12608 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12609 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12610 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12611 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12612 (menu_items, menu_items_allocated, menu_items_used)
12613 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12614 (init_menu_items, finish_menu_items, discard_menu_items)
12615 (grow_menu_items, push_submenu_start, push_submenu_end)
12616 (push_left_right_boundary, push_menu_pane, push_menu_item)
12617 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12618 (free_menubar_widget_tree_value, parse_single_submenu)
12619 (update_submenu_strings): Remove functions.
12620 (xmalloc_widget_value): Remove and declare extern.
12621
12622 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12623 (OBJ1): Build it.
12624
12625 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12626 (local_heap, local_alloc, local_free, malloc_widget_value)
12627 (free_widget_value): Define here.
12628
126292008-06-09 Kenichi Handa <handa@m17n.org>
12630
12631 * font.h (Qascii_0): Extern it.
12632
12633 * font.c (Qascii_0): New variable.
12634 (syms_of_font): DEFSYM it.
12635 (font_open_by_name): If the registry "iso8859-1" fails, try also
12636 "ascii-0".
12637
12638 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12639
126402008-06-08 Kenichi Handa <handa@m17n.org>
12641
12642 * .gdbinit (xfont): New command.
12643
126442008-06-08 Andreas Schwab <schwab@suse.de>
12645
12646 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12647 * Makefile.in (menu.o): Update dependencies.
12648
12649 * Makefile.in (obj): Always add menu.o.
12650 * emacs.c (main): Always call syms_of_menu.
12651 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12652
126532008-06-08 Chong Yidong <cyd@stupidchicken.com>
12654
12655 * Makefile.in: Compile menu.c.
12656
12657 * lisp.h: Declare syms_of_menu.
12658
12659 * emacs.c (main): Call syms_of_menu.
12660
12661 * keyboard.h: Relocate platform-independent menu definitions from
12662 xmenu.c.
12663
12664 * menu.c: New file. Relocate platform-independent menu
12665 definitions from xmenu.c. Suggested by Adrian Robert.
12666
12667 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12668 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12669 (menu_items_used, menu_items_n_panes)
12670 (menu_items_submenu_depth): Move to keyboard.h.
12671 (init_menu_items, finish_menu_items, unuse_menu_items)
12672 (discard_menu_items, restore_menu_items, save_menu_items)
12673 (grow_menu_items, push_submenu_start, push_submenu_end)
12674 (push_left_right_boundary, push_menu_pane, push_menu_item)
12675 (keymap_panes, single_keymap_panes, single_menu_item)
12676 (list_of_panes, list_of_items, find_and_call_menu_selection)
12677 (xmalloc_widget_value, free_menubar_widget_value_tree)
12678 (parse_single_submenu, digest_single_submenu)
12679 (update_submenu_strings): Move to menu.c.
12680
126812008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12682
12683 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12684
126852008-06-06 Miles Bader <miles@gnu.org>
12686
12687 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12688 face, not frame default.
12689
126902008-06-05 Martin Rudalics <rudalics@gmx.at>
12691
12692 * window.c (pop_up_windows, pop_up_frames)
12693 (display_buffer_reuse_frames, Vpop_up_frame_function)
12694 (Vdisplay_buffer_function, Veven_window_heights)
12695 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12696 (Vspecial_display_function, Vsame_window_buffer_names)
12697 (Vsame_window_regexps, split_height_threshold)
12698 (Vsplit_window_preferred_function): Move those vars to window.el.
12699 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12700 (Fdisplay_buffer): Move those functions to window.el.
12701 (syms_of_window): Remove corresponding declarations.
12702 (display_buffer): New function.
12703 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12704 * dispnew.c (Flast_nonminibuf_frame): New function.
12705 * buffer.c (Fpop_to_buffer): Move to window.el.
12706
127072008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12708
12709 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12710
127112008-06-05 Kenichi Handa <handa@m17n.org>
12712
12713 * coding.c (detect_coding): Fix previous change.
12714 (detect_coding_system): Likewise.
12715
127162008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12717
12718 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12719
12720 * keymap.c (Vminibuffer_local_filename_must_match_map):
12721 Rename from Vminibuffer_local_must_match_filename_map.
12722 (syms_of_keymap):
12723 * minibuf.c (Fcompleting_read): Adjust accordingly.
12724 * commands.h: Rename declaration as well.
12725
127262008-06-05 Kenichi Handa <handa@m17n.org>
12727
12728 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12729 family name.
12730 (Ffont_put): Likewise.
12731
12732 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12733 current font-spec.
12734
12735 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12736 is unspecified.
12737
12738 * xfaces.c (realize_x_face): If the font-related face attributes
12739 are the same as those of default face, realize a new fontset from
12740 default->fontset.
12741 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12742
127432008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12744
12745 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12746 (move_it_in_display_line): New wrapper.
12747
12748 * window.c (window_scroll_pixel_based_preserve_x)
12749 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12750 (window_scroll_pixel_based, window_scroll_line_based):
12751 Use them to preserve column positions.
12752 (syms_of_window): Initialize them.
12753
12754 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12755 (HPOS . VPOS) pair.
12756
12757 * dispextern.h (move_it_in_display_line): Declare.
12758
127592008-06-05 Juanma Barranquero <lekktu@gmail.com>
12760
12761 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12762 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12763 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12764
127652008-06-04 Juanma Barranquero <lekktu@gmail.com>
12766
12767 * window.c (Fset_window_parameter): Doc fix.
12768 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12769
127702008-06-04 Joakim Verona <joakim@verona.se>
12771
12772 * window.h (struct window): Add new member window_parameters.
12773
12774 * window.c (Fwindow_parameters, Fwindow_parameter)
12775 (Fset_window_parameter): New defuns.
12776 (syms_of_window): Defsubr the new defuns.
12777 (make_window): Initialize window_parameters to nil.
12778
127792008-06-04 John Paul Wallington <jpw@pobox.com>
12780
12781 * eval.c (Fdefmacro): Doc fix.
12782
127832008-06-04 Kenichi Handa <handa@m17n.org>
12784
12785 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12786 Be sure to call setup_coding_system when we find a proper coding system.
12787 (detect_coding_system): Fix handling of coding->head_ascii.
12788
127892008-06-03 Andreas Schwab <schwab@suse.de>
12790
12791 * font.c (font_prop_validate_spacing): Fix last change.
12792
127932008-06-03 Kenichi Handa <handa@m17n.org>
12794
12795 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12796 (font_parse_fcname): Fix handling of unknown key.
12797
12798 * xfont.c (xfont_list): Try an alias.
12799
12800 * charset.c (char_charset): Return NULL if the arg charset_list is
12801 specified and C doesn't belong to any of them.
12802
128032008-06-02 Chip Coldwell <coldwell@redhat.com>
12804
12805 * font.c (font_pixel_size): Don't take cdr of an integer.
12806
128072008-06-02 Jim Meyering <meyering@redhat.com>
12808
12809 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12810 * alloc.c (xfree): Return right away for a NULL arg.
12811 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12812 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12813 * mac.c (create_apple_event_from_event_ref): Likewise.
12814 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12815 Likewise.
12816 * doprnt.c (doprnt1): Likewise.
12817 * frame.c (frame): Likewise.
12818 * keyboard.c (wipe_kboard): Likewise.
12819 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12820 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12821 * term.c (tty_default_color_capabilities, maybe_fatal)
12822 (delete_tty): Likewise.
12823 * w16select.c (string): Likewise.
12824 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12825 * w32bdf.c (w32_free_bdf_font): Likewise.
12826 * w32fns.c (w32_unload_font): Likewise.
12827 * w32font.c (w32font_close): Likewise.
12828 * window.c (size_window): Likewise.
12829 * xselect.c (receive_incremental_selection): Likewise.
12830 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12831 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12832 * w32.c (stat): Likewise.
12833
12834 Remove useless if-before-free tests.
12835 * editfns.c (Fset_time_zone_rule): Likewise.
12836 * lread.c (nosuffix): Likewise.
12837 * ralloc.c (get_bloc): Likewise.
12838 * regex.c (reg_free): Likewise.
12839 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12840 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12841 * xsmfns.c (smc_save_yourself_CB): Likewise.
12842
128432008-06-02 Kenichi Handa <handa@m17n.org>
12844
12845 * font.c (font_find_for_lface): Handle float font size.
12846 (font_open_for_lface): Likewise.
12847
12848 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12849 comparing the properties.
12850
128512008-06-01 Jason Rumney <jasonr@gnu.org>
12852
12853 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12854 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12855 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12856 Don't add empty script list.
12857 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12858
128592008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12860
12861 * Makefile.in (dot, dotdot): Remove, update users.
12862 ".." has been used elsewhere in the file for a long time.
12863 (LIBXT_STATIC): Remove conditional based on unused variable.
12864
128652008-06-01 Miles Bader <miles@gnu.org>
12866
12867 * xfaces.c (Vface_remapping_alist): New variable.
12868 (syms_of_xfaces): Initialize it.
12869 (enum named_merge_point_kind): New type.
12870 (struct named_merge_point): Add `named_merge_point_kind' field.
12871 (push_named_merge_point): Make cycle detection respect different
12872 named-merge-point kinds.
12873 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12874 Remove face-name alias resolution.
12875 (lface_from_face_name): New definition using
12876 `lface_from_face_name_no_resolve'.
12877 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12878 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12879 (get_lface_attributes): New definition that layers face-remapping on
12880 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12881 (lookup_basic_face): New function.
12882 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12883 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12884 `get_lface_attributes'.
12885 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12886 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12887 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12888
12889 * xdisp.c (init_iterator): Pass base_face_id through
12890 `lookup_basic_face' when we actually use it as a face-id.
12891 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12892 DEFAULT_FACE_ID.
12893
12894 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12895 lookup the initial face-id.
12896
12897 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12898
128992008-06-01 Juanma Barranquero <lekktu@gmail.com>
12900
12901 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12902 (Fremove_text_properties): Fix typos in docstrings.
12903
129042008-05-31 Kenichi Handa <handa@m17n.org>
12905
12906 * font.c (font_list_entities): Fix the car part of data to be
12907 stored in the cache.
12908
12909 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12910
129112008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12912
12913 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12914 Add a `test' argument so another predicate than `equal' can be used.
12915 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12916 (map_char_table): Remove unused vars `c' and `i'.
12917 * lisp.h (Foptimize_char_table): Adjust declaration.
12918 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12919
129202008-05-30 Kenichi Handa <handa@m17n.org>
12921
12922 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12923 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12924 defined.
12925
129262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12927
12928 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12929 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12930 frame-local settings for the same variable.
12931
129322008-05-30 Kenichi Handa <handa@m17n.org>
12933
12934 * fontset.c (Ffont_info): Move to font.c.
12935 (syms_of_fontset): Delete defsubr of Sfont_info.
12936
12937 * font.c (font_style_to_value, font_score): Delete casting of the
12938 args to xstcasecmp.
12939 (register_font_driver): Increment num_font_drivers only when
12940 registering the driver globally.
12941 (Ffont_info): Move from fontset.c. Handle a font object too.
12942 (syms_of_font): Defsubr Sfont_info.
12943
129442008-05-29 Kenichi Handa <handa@m17n.org>
12945
12946 * coding.h (enum define_coding_utf8_arg_index): New enum.
12947 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12948 coding_attr_utf_bom.
12949 (enum utf_bom_type): Rename from utf_16_bom_type.
12950 (struct utf_16_spec): Adjust for the above change.
12951 (struct coding_system): Add utf_8_bom in `spec' union.
12952
12953 * coding.c (CODING_UTF_8_BOM): New macro.
12954 (enum coding_category): Delete coding_category_utf_8, add
12955 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12956 coding_category_utf_8_sig.
12957 (CATEGORY_MASK_UTF_8): Delete it.
12958 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12959 (CATEGORY_MASK_UTF_8_SIG): New macros.
12960 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12961 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12962 CATEGORY_MASK_UTF_8_SIG.
12963 (CATEGORY_MASK_UTF_8): New macro.
12964 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12965 (detect_coding_utf_8): Check BOM.
12966 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12967 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12968 (encode_coding_utf_16): Likewise.
12969 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12970 (detect_coding, detect_coding_system): Handle utf-8-auto.
12971 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12972 (syms_of_coding): Fix setting up of Vcoding_category_table.
12973
129742008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12975
12976 * process.c (Faccept_process_output): If `millisec' is non-nil,
12977 `seconds' default to 0.
12978 (wait_reading_process_output): Also return non-nil if we read output
12979 from a non-running process.
12980
129812008-05-29 Jason Rumney <jasonr@gnu.org>
12982
12983 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12984 `raster' specified.
12985 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12986 in the uniscribe backend, but disallow any font that has no
12987 unicode subrange support.
12988
129892008-05-29 Juanma Barranquero <lekktu@gmail.com>
12990
12991 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12992 Fix typos in docstrings.
12993
129942008-05-29 Kenichi Handa <handa@m17n.org>
12995
12996 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12997 (Fx_family_fonts): Set frame correctly.
12998
129992008-05-28 Jason Rumney <jasonr@gnu.org>
13000
13001 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
13002
130032008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
13004
13005 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
13006 calling build_annotations.
13007
130082008-05-28 Juanma Barranquero <lekktu@gmail.com>
13009
13010 * coding.c (Fdecode_coding_region, Fencode_coding_region)
13011 (Fencode_coding_string):
13012 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
13013 <latin-extra-code-table>: Fix typos in docstrings.
13014 (syms_of_coding) <coding-system-alist>: Doc fix.
13015 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
13016
130172008-05-28 Kenichi Handa <handa@m17n.org>
13018
13019 * fontset.c (Ffont_info): Don't call font_close_object.
13020
13021 * font.c (font_parse_family_registry): Use Ffont_put to validate
13022 foundry and family.
13023 (font_delete_unmatched): Don't check spacing.
13024 (font_list_entities): Add spacing to the spec to list fonts.
13025
13026 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
13027 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
13028
13029 * coding.c (encode_coding_raw_text): Fix previous change.
13030 (encode_coding_object): When the dst_object is a buffer and is
13031 different from src_object, move gap to PT.
13032
130332008-05-27 Chong Yidong <cyd@stupidchicken.com>
13034
13035 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
13036
130372008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13038
13039 * coding.c (encode_coding_raw_text): Set coding->produced_char for
13040 all branches. Compute it differently.
13041
13042 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
13043
130442008-05-27 Juanma Barranquero <lekktu@gmail.com>
13045
13046 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
13047 into "else if () ... else ...".
13048
130492008-05-27 Jason Rumney <jasonr@gnu.org>
13050
13051 * w32font.c (w32font_open_internal): Determine if glyph indices
13052 are likely to work here.
13053
130542008-05-27 Chong Yidong <cyd@stupidchicken.com>
13055
13056 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
13057 draw overlap glyphs with appropriate highlighting.
13058
130592008-05-27 Kenichi Handa <handa@m17n.org>
13060
13061 * xfont.c (xfont_open): Fix calculation of font->average_width.
13062
130632008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
13064
13065 * casefiddle.c (casify_object): Try to guess better whether the
13066 argument is a byte or a char.
13067
130682008-05-26 Andreas Schwab <schwab@suse.de>
13069
13070 * xselect.c (x_reply_selection_request): Properly handle format == 32.
13071 Always send multiples of format size.
13072
13073 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13074
130752008-05-26 Jason Rumney <jasonr@gnu.org>
13076
13077 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13078 (compute_metrics): Don't set failure if we just cleared the cache.
13079 (w32_weight_table): Remove unused variable.
13080 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13081 backwards compatibility.
13082
130832008-05-25 Kenichi Handa <handa@m17n.org>
13084
13085 * w32term.c (x_draw_glyph_string):
13086 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13087
13088 * xfaces.c: Delete unused function prototypes.
13089 (xstrlwr, font_frame): Delete them.
13090 (clear_face_cache): Delete unused variable.
13091
13092 * xftfont.c (xftfont_open): Delete unused variable.
13093 If underline_thickness is not 1, adjust underline_position.
13094
13095 * ftxfont.c (ftxfont_open): Delete unused variable.
13096
13097 * fontset.c (face_for_char): Optimize for the case of no charset
13098 property.
13099
13100 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13101 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13102 (otf_open, font_otf_capability, generate_otf_features)
13103 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13104 Comment out by surrounding "#if 0" and "#endif" for the moment.
13105 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13106 (syms_of_font): Codes for accessing above commented out.
13107
131082008-05-24 Eli Zaretskii <eliz@gnu.org>
13109
13110 * w32proc.c: Include dispextern.h.
13111
13112 * w32.c: Include dispextern.h.
13113
131142008-05-23 Juanma Barranquero <lekktu@gmail.com>
13115
13116 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13117 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13118 Fix typos in docstrings.
13119
131202008-05-23 Jason Rumney <jasonr@gnu.org>
13121
13122 * xsmfns.c: Remove includes that are already included by config.h.
13123
131242008-05-23 Kenichi Handa <handa@m17n.org>
13125
13126 * charset.c (Qemacs, charset_emacs): New variables.
13127 (char_charset): Fix for non-Unicode characters.
13128 (syms_of_charset): Define charset_emacs.
13129
13130 * w32term.c (x_draw_glyph_string): Be sure to update
13131 s->underline_thickness and s->underline_position. Be sure to draw
13132 underline within the current line area.
13133
13134 * xterm.c (x_draw_glyph_string): Be sure to update
13135 s->underline_thickness and s->underline_position. Be sure to draw
13136 underline within the current line area.
13137
13138 * fontset.c: Delete unused variables and add casting for char *
13139 throughout the file.
13140 (fontset_font): Try the fallback fonts of the current fontset
13141 before consulting the default fontset.
13142
13143 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13144
13145 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13146
131472008-05-22 Jason Rumney <jasonr@gnu.org>
13148
13149 * font.c: Don't include strings.h.
13150
13151 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13152
13153 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13154 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13155 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13156 to call xstrcasecmp.
13157
13158 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13159
13160 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13161
13162 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13163
13164 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13165
131662008-05-22 Kenichi Handa <handa@m17n.org>
13167
13168 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13169
13170 * font.c (font_prop_validate_style): Adjust for the format
13171 change of font_style_table.
13172
13173 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13174 two args.
13175
13176 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13177 two args.
13178
131792008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13180
13181 * minibuf.c (keys_of_minibuf): Delete.
13182 * lisp.h (keys_of_minibuf): Delete.
13183 * emacs.c (main): Don't call keys_of_minibuf.
13184
131852008-05-22 Kenichi Handa <handa@m17n.org>
13186
13187 * ftfont.c (ftfont_resolve_generic_family): Rename from
13188 ftfont_list_generic_family. Return a single family for each
13189 generic family.
13190 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13191 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13192 Call font_add_log.
13193 (ftfont_match): Call font_add_log.
13194
13195 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13196 (FONT_DEBUG): Define it.
13197 (font_add_log): Extern it.
13198 (font_assert): Rename from xassert.
13199
13200 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13201 (xfont_list_family): Call font_add_log.
13202 (xfont_match): Likewise.
13203 (memq_no_quit): Delete.
13204
13205 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13206 call of Ffont_xlfd_name.
13207
13208 * xfaces.c (struct table_entry, slant_table, weight_table)
13209 (swidth_table): Move to font.c.
13210
13211 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13212 xassert are changed to font_assert. Delete many unused variables.
13213 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13214 New variables.
13215 (struct table_entry): Move from xfaces.c and modified.
13216 (weight_table, slant_table, width_table): Move from xfaces.c and
13217 contents adjusted for the change of struct table_entry.
13218 (font_style_to_value, font_style_symbolic): Adjust for the
13219 format change of font_style_table.
13220 (font_parse_family_registry): Don't overwrite existing foundry and
13221 family of font_spec.
13222 (font_score): Fix calculation of diff for sizes.
13223 (font_sort_entites): Call font_add_log.
13224 (font_delete_unmatched): Return a newly created list.
13225 (font_list_entities): Fix previous change. Call font_add_log.
13226 (font_matching_entity, font_open_entity, font_close_entity):
13227 Call font_add_log.
13228 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13229 (Finternal_set_font_style_table): Delete.
13230 (BUILD_STYLE_TABLE): New macro.
13231 (build_style_table): New function.
13232 (Vfont_log, font_log_env_checked): New variables.
13233 (font_add_log): New function.
13234 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13235 Declare Lisp variables "font-weight-table", "font-slant-table",
13236 "font-width-table", and "font-log". Initialize font_style_table.
13237
132382008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13239
13240 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13241
132422008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13243 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13244
13245 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13246 (Vframe_alpha_lower_limit): New variable.
13247 (x_set_alpha): New function.
13248
13249 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13250
13251 * xfns.c (x-create-frame, Qalpha):
13252 Initialize the frame parameter `alpha'.
13253 * xterm.c (OPAQUE, OPACITY): New.
13254 (x_set_frame_alpha): New function.
13255 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13256
13257 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13258 * w32fns.c (w32_frame_parm_handlers): Likewise.
13259
132602008-05-20 Jason Rumney <jasonr@gnu.org>
13261
13262 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13263 truetype fonts to opentype list.
13264
132652008-05-20 Juanma Barranquero <lekktu@gmail.com>
13266
13267 * fontset.c (Ffontset_info): Doc fix.
13268 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13269 <ignore-relative-composition>: Fix typos in docstrings.
13270
13271 * font.c (syms-of-font) <font-encoding-alist>:
13272 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13273 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13274 (Ffont_otf_alternates): Doc fixes.
13275
132762008-05-20 Kenichi Handa <handa@m17n.org>
13277
13278 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13279 font.h through out the file.
13280 (FONT_DRIVERS): Rename from FONTOBJ.
13281 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13282 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13283
13284 * emacs.c (main): Call syms_of_font unconditionally.
13285
13286 * font.h (find_font_encoding): Extern it.
13287
13288 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13289 fontset.c.
194d44e7 13290 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13291 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13292 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13293 only when HAVE_WINDOW_SYSTEM is defined.
13294 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13295 when HAVE_WINDOW_SYSTEM is defined.
13296
13297 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13298 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13299
13300 * xfaces.c: Include font.h unconditionally.
13301 (merge_face_ref, merge_face_vectors)
13302 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13303
133042008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13305
13306 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13307 indirect_variable.
13308 * eval.c (lisp_indirect_variable): New fun.
13309 (Fuser_variable_p): Use it.
13310
133112008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13312
13313 * lisp.h (indirect_variable):
13314 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13315 Use Lisp_Symbol pointers rather than Lisp_Object.
13316 Adjust callers.
13317 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13318 To this end, change calling-convention.
13319
13320 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13321 if some non-hidden buffers are selected by string&pred.
13322
133232008-05-19 Chong Yidong <cyd@stupidchicken.com>
13324
13325 * process.c (wait_reading_process_output): Always check status
13326 when in batch mode.
13327
133282008-05-19 Kenichi Handa <handa@m17n.org>
13329
13330 * font.c (font_list_entities): Fix handling of cache.
13331 (font_matching_entity): Likewise.
13332
13333 * ftfont.c (cs_iso8859_1): Delete.
13334 (ft_face_cache): New variable.
13335 (struct ftfont_info): New member fc_charset_idx.
13336 (ftfont_build_basic_charsets): Delete.
13337 (fc_charset_table): New variable.
13338 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13339 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13340 Callers changed.
13341 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13342 (ftfont_spec_pattern): New argument fc_charset_idx.
13343 Check registry more rigidly. Change callers.
13344 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13345 change of :font-entity property of the font.
13346
13347 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13348 property of the font.
13349
133502008-05-18 Juanma Barranquero <lekktu@gmail.com>
13351
13352 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13353 (Funencodable_char_position, Fcheck_coding_systems_region)
13354 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13355 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13356 (Ffind_operation_coding_system, Fset_coding_system_priority)
13357 (Fcoding_system_eol_type): Doc fixes.
13358
133592008-05-17 Glenn Morris <rgm@gnu.org>
13360
13361 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13362
133632008-05-16 Eli Zaretskii <eliz@gnu.org>
13364
13365 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13366 and st_gid.
13367
13368 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13369 HAVE_WINDOW_SYSTEM is not defined.
13370
13371 * xfaces.c (merge_face_ref, merge_face_vectors)
13372 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13373 HAVE_WINDOW_SYSTEM is defined.
13374 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13375
133762008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13377
13378 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13379
133802008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13381
13382 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13383
133842008-05-15 Kenichi Handa <handa@m17n.org>
13385
13386 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13387 preference.
13388
133892008-05-15 Glenn Morris <rgm@gnu.org>
13390
13391 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13392
133932008-05-15 Chong Yidong <cyd@stupidchicken.com>
13394
13395 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13396 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13397
13398 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13399
134002008-05-15 Kenichi Handa <handa@m17n.org>
13401
13402 * ftfont.c (ftfont_list): Downcase family name to check generic
13403 families.
13404
13405 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13406 font-spec for QCfont value.
13407
13408 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13409 buffer. Check the return value of it.
13410
134112008-05-14 Jason Rumney <jasonr@gnu.org>
13412
13413 * w32term.c (w32_get_glyph_overhangs): Remove.
13414 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13415
134162008-05-14 Kenichi Handa <handa@m17n.org>
13417
13418 * font.c (font_prop_validate): Make nil a valid value.
13419 (font_clear_cache): Check if the cached vector of entities is nil
13420 or not.
13421
134222008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13423
13424 * emacs.c (main_thread): Conditionalize on
13425 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13426 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13427
13428 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13429 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13430 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13431
134322008-05-14 Kenichi Handa <handa@m17n.org>
13433
13434 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13435 has no corresponding coding system.
13436
134372008-05-14 Jason Rumney <jasonr@gnu.org>
13438
13439 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13440
13441 * w32font.h (w32font_open_internal): Update declaration.
13442
13443 * w32font.c (w32font_open_internal): Change last argument from
13444 w32font_info struct to font object. Fill in font object from
13445 font_entity. Get Outline metrics if possible. Use them to
13446 calculate underline position and thickness. Use xlfd name as name
13447 property. Don't set codepage.
13448 (w32font_open): Pass font_object to w32font_open_internal. Don't
13449 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13450 (w32font_draw): Use s->font.
13451 (clear_cached_metrics): Don't clear non-existent blocks.
13452
13453 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13454 font was not found.
13455 (x_draw_glyph_string): Use underline position and thickness from font.
13456
13457 * w32uniscribe.c (uniscribe_open): Pass font_object to
13458 w32font_open_internal.
13459
134602008-05-14 Kenichi Handa <handa@m17n.org>
13461
13462 These changes are to delete all legacy font-handling codes, and
13463 make Emacs use only font-backends.
13464
13465 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13466 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13467
13468 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13469
13470 * charset.h (Vcharset_non_preferred_head)
13471 (Vcurrent_iso639_language): Extern them.
13472
13473 * charset.c (Vcharset_non_preferred_head): New variable.
13474 (Vcurrent_iso639_language): New variable.
13475 (syms_of_charset): Declare it as a Lisp variable.
13476 (char_charset): Don't check non preferred charsets. As a last
13477 resort, return charset_unicode.
13478 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13479
13480 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13481 conditionals. Don't check enable_font_backend. Delete all codes
13482 used only when USE_FONT_BACKEND is not defined.
13483
13484 * dispextern.h (struct glyph_string): Change type of `font' to
13485 `struct font *'.
13486 (struct glyph_string): New member underline_position and
13487 underline_thickness.
13488 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13489 (struct face): Change type of `font' to `struct font *'. Remove
13490 members `font_name', `font_info_id'.
13491 (per_char_metric, encode_char): Delete externs.
13492 (calc_pixel_width_or_height): Adjust the prototype.
13493
13494 * emacs.c (enable_font_backend): Delete extern.
13495 (main): Don't set enable_font_backend. Don't check the command
13496 line argument "-disable-font-backend".
13497
13498 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13499 (enum font_property_index): New members FONT_DPI_INDEX,
13500 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13501 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13502 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13503 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13504 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13505 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13506 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13507 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13508 (struct font_spec, struct font_entity): New structs.
13509 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13510 (struct font): Many members from old "struct font_info" moved to
13511 here. Members font and entity deleted.
13512 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13513 the new font-related objects.
13514 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13515 (CHECK_FONT_GET_OBJECT): Likewise.
13516 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13517 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13518 (struct font_driver): New members case_sensitive anc check. Type
13519 of the member list and open changed.
13520 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13521 (font_symbolic_width, font_find_object, font_get_spec)
13522 (font_set_lface_from_name): Delete extern.
13523 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13524
13525 * font.c: Include <strings.h>.
13526 (enable_font_backend): Delete it.
13527 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13528 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13529 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13530 (null_string): Delete it.
13531 (null_vector): Make it static.
13532 (font_family_alist): Delete it.
13533 (Qnormal): Extern it.
13534 (QCextra, QClanguage): Delete it.
13535 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13536 (font_make_spec, font_make_entity, font_make_object)
13537 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13538 the string. Callers changed.
13539 (font_pixel_size): Adjusted for the format change of font-related
13540 objects.
13541 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13542 (font_style_to_value, font_style_symbolic): New function.
13543 (build_font_family_alist): Delete it.
13544 (font_registry_charsets): Use Fassoc_string instead of
13545 assq_no_quit.
13546 (font_prop_validate_symbol): Don't return null_string.
13547 (font_prop_validate_style): Adjusted for the change of
13548 style-related values in a font vector.
13549 (font_property_table): Delete entries for QClanguage and
13550 QCantialias, add entries for QCavgwidth.
13551 (get_font_prop_index): Delete the 2nd argument FROM.
13552 (font_prop_validate): Arguments changed.
13553 (font_put_extra): Adjusted for the change of font-related objects.
13554 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13555 (font_parse_fcname, font_unparse_fcname)
13556 (font_prepare_composition): Likewise.
13557 (font_parse_family_registry): Renamed from font_merge_old_spec.
13558 (otf_open): Delete the 1st arg entity.
13559 (font_otf_capability): Adjusted for the above change.
13560 (font_score): New arg alternate_families. Adjusted for the change
13561 of font-related objects.
13562 (font_sort_entites): New arg best_only.
13563 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13564 Delete them.
13565 (font_match_p): Check alternate families.
13566 (font_find_object): Delete it.
13567 (font_check_object): New function.
13568 (font_clear_cache): Adjusted for the change of font-related objects.
13569 (font_delete_unmatched): New arg.
13570 (font_list_entities): Call font_driver->list with a spec that
13571 doesn't specify style-related properties.
13572 (font_matching_entity): Arguments changed. Caller changed.
13573 (font_open_entity): Adjusted for the change of font-related objects.
13574 (font_close_object, font_has_char, font_encode_char)
13575 (font_get_name, font_get_spec): Likewise.
13576 (font_spec_from_name, font_clear_prop, font_update_lface):
13577 New functions.
13578 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13579 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13580 (font_at): Adjusted for the change of font-related objects.
13581 (font_range): New function.
13582 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13583 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13584 (Fcopy_font_spec, Fmerge_font_spec): New function.
13585 (Ffont_family_list): Renamed from list-families.
13586 (Finternal_set_font_style_table): Arguments changed.
13587 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13588 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13589 change of font-related objects.
13590 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13591
13592 * fontset.h (struct font_info): Delete it. Most members go to
13593 struct font.
13594 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13595 (enum FONT_SPEC_INDEX): Delete it.
13596 (font_info, list_fonts_func, load_font_func, query_font_func)
13597 (set_frame_fontset_func, find_ccl_program_func)
13598 (get_font_repertory_func, new_fontset_from_font_name): Delete
13599 externs.
13600 (fontset_from_font_name): Extern it.
13601 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13602 (FONT_INFO_FROM_FACE): Deleted.
13603 (face_for_font): Adjust prototype.
13604
13605 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13606 conditionals. Don't check enable_font_backend. Delete all codes
13607 used only when USE_FONT_BACKEND is not defined.
13608 (get_font_info_func, list_font_func, load_font_func)
13609 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13610 (get_font_repertory_func): Delete them.
13611 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13612 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13613 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13614 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13615 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13616 (fontset_compare_rfontdef): New function.
13617 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13618 rfont-defs by qsort. Adjusted for the change of font-group vector.
13619 (load_font_get_repertory): Deleted.
13620 (fontset_find_font): Use new macros to ref/set elements of
13621 font-def and rfont-def.
13622 (fontset_font): Fix the timing of remembering that no font for C.
13623 (free_face_fontset): Do nothing if the face has no fontset.
13624 (face_suitable_for_char_p): Use new macros to ref/set elements of
13625 rfont-def.
13626 (face_for_char): Likewise. Call face_for_char with font_object.
13627 (fs_load_font): Delete. Delete #pragma surrounding it.
13628 (fs_query_fontset): Use strcasecmp instead of strcmp.
13629 (generate_ascii_font_name): Adjusted for the format change of
13630 font-spec.
13631 (Fset_fontset_font): Likewise. Use new macros to set elements of
13632 font-def.
13633 (Fnew_fontset): Use font_unparse_xlfd to generate
13634 FONTSET_ASCII (fontset).
13635 (new_fontset_from_font_name): Deleted.
13636 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13637 a fontset is already created for the font. FIx updating of
13638 Vfontset_alias_alist.
13639 (fontset_ascii_font): Deleted.
13640 (Ffont_info): Adjusted for the format change of font-spec.
13641 (Finternal_char_font): Likewise.
13642 (Ffontset_info): Likewise.
13643 (syms_of_fontset): Don't check load_font_func.
13644
13645 * fns.c (internal_equal): Handle PREV_FONT.
13646
13647 * frame.h: Delete USE_FONT_BACKEND conditional.
13648
13649 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13650 conditionals. Don't check enable_font_backend. Delete all codes
13651 used only when USE_FONT_BACKEND is not defined.
13652 (x_set_font): Call x_new_font, not x_new_fontset2.
13653 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13654 already set for the frame.
13655
13656 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13657 a font-entity by font_make_entity. Use font_intern_prop instead
13658 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13659 font property. If a font is scalable, set avgwidth property to 0.
13660 Set font-entity property by font_put_extra.
13661 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13662 (ffont_driver): Adjusted for the change of struct font_driver.
13663 (ftfont_spec_pattern): New function.
13664 (ftfont_list): Return a list, not vector.
13665 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13666 (ftfont_list_family): Don't downcase names.
13667 (ftfont_free_entity): Deleted.
13668 (ftfont_open): Return a font-object. Adjusted for the change of
13669 struct font. Get underline_thickness and underline_position from
13670 font property. Don't update dpyinfo->smallest_font_height and
13671 dpyinfo->smallest_char_width.
13672 (ftfont_close): Don't free `struct font'.
13673 (ftfont_has_char): Adjusted for the format change of font-entity.
13674 (ftfont_encode_char, ftfont_text_extents): Likewise.
13675
13676 * ftxfont.c (ftxfont_list): Return a list, not vector.
13677 (ftxfont_open): Return a font-object. Adjusted for the change of
13678 struct font. Get underline_thickness and underline_position from
13679 font property. Don't update dpyinfo->smallest_font_height and
13680 dpyinfo->smallest_char_width.
13681 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13682 (ftxfont_draw): Adjusted for the change of struct font.
13683
13684 * image.c (image_ascent): Don't include "charset.h". Include
13685 "character.h" and "font.h".
13686
13687 * lisp.h (enum pvec_type): New member PREV_FONT.
13688 (Fassoc_string): EXFUN it.
13689
13690 * print.c: Include font.h.
13691 (print_object): Handle font-related objects.
13692
13693 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13694 conditionals. Don't check enable_font_backend. Delete all codes
13695 used only when USE_FONT_BACKEND is not defined.
13696 (handle_auto_composed_prop): Do nothing if it->f is not on a
13697 window system. Check how many following characters can be
13698 displayed by the same font.
13699 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13700 'struct font *'.
13701 (get_char_face_and_encoding): Assign the whole encoding task to
13702 the `encode-char' method of a font driver.
13703 (fill_composite_glyph_string): Adjusted for the change of `struct
13704 face' and `struct glyph_string'.
13705 (fill_glyph_string): Likewise.
13706 (get_per_char_metric): Arguments changed.
13707 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13708 and `struct glyph_string'.
13709 (produce_stretch_glyph, calc_line_height_property)
13710 (x_produce_glyphs): Likewise.
13711
13712 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13713 conditionals. Don't check enable_font_backend. Delete all codes
13714 used only when USE_FONT_BACKEND is not defined. Use
13715 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13716 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13717 (Qp): Extern them.
13718 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13719 Deleted.
13720 (struct font_name): Deleted.
13721 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13722 (compare_fonts_by_sort_order): New function.
13723 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13724 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13725 Deleted.
13726 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13727 compare_fonts_by_sort_order.
13728 (Fx_font_family_list): Call Ffont_family_list.
13729 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13730 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13731 (face_symbolic_slant, face_symbolic_swidth)
13732 (split_font_name_into_vector, build_font_name_from_vector)
13733 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13734 (font_rescale_ratio, split_font_name, build_font_name)
13735 (free_font_names, sort_fonts, x_face_list_fonts)
13736 (face_font_available_p, sorted_font_list, cmp_font_names)
13737 (font_list_1, concat_font_list, font_list, remove_duplicates):
13738 Deleted.
13739 (Fx_list_fonts): Use Ffont_list.
13740 (LFACE_AVGWIDTH): Deleted.
13741 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13742 by FONTP.
13743 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13744 (set_lface_from_font_name): Delete it.
13745 (set_lface_from_font): Renamed from
13746 set_lface_from_font_and_fontset. Caller changed. Don't set
13747 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13748 for face.
13749 (merge_face_vectors): Copy font-spec if necessary.
13750 Clear properties of the font-spec if necessary.
13751 (merge_face_ref): Clear properties of the font-spec if necessary.
13752 (Finternal_set_lisp_face_attribute): Likewise.
13753 (set_font_frame_param): Use font_load_for_lface to load a
13754 font-object, and call Fmodify_frame_parameters with it.
13755 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13756 font name by Ffont_xlfd_name.
13757 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13758 QCslant, and QCwidth.
13759 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13760 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13761 Compare fonts by EQ.
13762 (lookup_non_ascii_face): Deleted.
13763 (face_for_font): The 2nd argument changed.
13764 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13765 Check atomic font properties by case insensitive.
13766 (realize_non_ascii_face): Set face->overstrike correctly.
13767 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13768 (dump_realized_face): Get font name from
13769 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13770
13771 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13772 conditionals. Don't check enable_font_backend. Delete all codes
13773 used only when USE_FONT_BACKEND is not defined.
13774 (xic_create_xfontset): Original code deleted and renamed from
13775 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13776 (x_make_gc): Don't set GCFont in GCs.
13777 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13778 opened by "fixed".
13779 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13780 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13781 get_font_repertory_func.
13782
13783 * xfont.c: Include <stdlib.h> and "ccl.h".
13784 (struct xfont_info): New structure.
13785 (xfont_query_font): Deleted.
13786 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13787 moved from xterm.c.
13788 (xfont_driver): Adjusted for the change of struct font_driver.
13789 (compare_font_names): New function.
13790 (xfont_list_pattern): Sort font names case insensitively. Make
13791 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13792 (xfont_list): Return a list, not vector.
13793 (xfont_match): If the font doesn't have QCname property, generate
13794 a name from the other font properties.
13795 (xfont_open): Return a font-object. Adjusted for the change of
13796 struct font. Get underline_thickness and underline_position from
13797 font property. Don't update dpyinfo->smallest_font_height and
13798 dpyinfo->smallest_char_width.
13799 (xfont_close): Don't free struct font.
13800 (xfont_prepare_face): Adjusted for the change of struct font.
13801 (xfont_done_face): Deleted.
13802 (xfont_has_char): Adjusted for the change of struct font.
13803 (xfont_encode_char, xfont_draw): Likewise.
13804 (xfont_check): New function.
13805
13806 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13807 callback function.
13808 (xftfont_match): Adjusted for the format change of font-entity.
13809 (xftfont_open): Adjusted for the format change of font-entity and
13810 font-object. Adjusted for the change of struct font. Return a
13811 font-object. Don't update dpyinfo->smallest_font_height and
13812 dpyinfo->smallest_char_width.
13813 (xftfont_close): Block input while calling XftFontClose.
13814 (xftfont_prepare_face): Don't block input while calling
13815 xftfont_get_colors. Adjusted for the change of struct font.
13816 (xftfont_shape): Return value of error case fixed.
13817
13818 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13819
13820 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13821 conditionals.
13822 (FONT_WIDTH): Return (f)->max_width.
13823 (struct x_display_info): Delete member `font'.
13824 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13825 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13826 (struct x_output): Change type of `font' to `struct font *'.
13827
13828 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13829 conditionals. Don't check enable_font_backend. Delete all codes
13830 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13831 (x_per_char_metric, x_encode_char): Deleted.
13832 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13833 (x_compute_glyph_string_overhangs): Adjusted for the change of
13834 `struct face'.
13835 (x_draw_glyph_string_foreground)
13836 (x_draw_composite_glyph_string_foreground): Likewise.
13837 (x_draw_glyph_string): Likewise. Use font->underline_position and
13838 font->underline_thickness.
13839 (x_new_font): Renamed from x_new_fontset2.
13840 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13841 (x_check_font): Call `check' method of a font driver.
13842 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13843 (x_query_font, x_get_font_repertory): Deleted.
13844 (x_find_ccl_program): Renamed and moved to xfont.c.
13845 (x_redisplay_interface): Adjusted for the change of `struct
13846 redisplay_interface'.
13847
13848 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13849 conditionals. Don't check enable_font_backend. Delete all codes
13850 used only when USE_FONT_BACKEND is not defined. Surround non-used
13851 code by "#ifdef OLD_FONT" and "endif".
13852 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13853
13854 * w32font.h (struct w32font_info): New member.
13855 (FONT_COMPAT): New macro.
13856 (w32font_open_internal): Prototype adjusted.
13857
13858 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13859 OLD_FONT" and "endif".
13860
13861 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13862 conditionals. Don't check enable_font_backend. Delete all codes
13863 used only when USE_FONT_BACKEND is not defined.
13864 (w32font_open): Return a font-object. Make a font-object by
13865 font_make_object. Adjusted for the change of struct w32font_info.
13866 (w32font_close): Don't free struct font. Adjusted for the change
13867 of struct w32font_info.
13868 (w32font_encode_char, w32font_text_extents, w32font_draw):
13869 Adjusted for the change of struct w32font_info.
13870 (w32font_draw): Likewise.
13871 (w32font_list_internal): Return a list, not vector.
13872 (w32font_open_internal): Change the 4th arg to font-object.
13873 Adjusted for the change of struct w32font_info and font-object format.
13874 (add_font_name_to_list): Don't downcase names.
13875 (w32_enumfont_pattern_entity): Make a font-entity by
13876 font_make_entity. Adjusted for the format change of font-entity.
13877 Use FONT_SET_STYLE to set a style-related font property. If a
13878 font is scalable, set avgwidth property to 0. Set font-entity
13879 property by font_put_extra.
13880 (font_matches_spec): Adjusted for the format change of font-entity.
13881 (w32_weight_table, w32_decode_weight): New variables.
13882 (w32_encode_weight): New function.
13883 (fill_in_logfont): Adjusted for the format change of font-spec.
13884 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13885 weight value.
13886 (w32font_driver): Adjusted for the change of struct font_driver.
13887
13888 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13889 conditionals. Don't check enable_font_backend. Surround non-used
13890 code by "#ifdef OLD_FONT" and "endif".
13891 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13892 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13893
13894 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13895 conditionals. Don't check enable_font_backend. Delete all codes
13896 used only when USE_FONT_BACKEND is not defined. Surround non-used
13897 code by "#ifdef OLD_FONT" and "endif".
13898
13899 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13900 (uniscribe_open): Return value changed to font-object.
13901 Adjusted for the format change of font-object.
13902 (uniscribe_otf_capability): Adjusted for the change of struct font.
13903 (add_opentype_font_name_to_list): Don't downcase names.
13904 (uniscribe_font_driver): Adjusted for the change of struct
13905 font_driver.
13906
139072008-05-13 Chong Yidong <cyd@stupidchicken.com>
13908
13909 * dispnew.c (update_frame_1): Check if tty output is still valid
13910 before flushing it.
13911
139122008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13913
13914 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13915 to Gtk+ menus.
13916
139172008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13918
13919 * dired.c (file_name_completion): Tweak the code so as to always do it
13920 in a single pass. Tighten the scope of some variables.
13921
13922 * dired.c (Qdefault_directory): New var.
13923 (file_name_completion): Use it instead of Fexpand_file_name.
13924 (syms_of_dired): Initialize it.
13925
139262008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13927
13928 * fileio.c (double_dollars): Remove dead code.
13929
139302008-05-10 Eli Zaretskii <eliz@gnu.org>
13931
13932 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13933 Mention w32-get-true-file-attributes in doc string.
13934
13935 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13936
139372008-05-09 Glenn Morris <rgm@gnu.org>
13938
13939 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13940 2008-04-23.
13941
139422008-05-09 Eli Zaretskii <eliz@gnu.org>
13943
13944 Support for reporting owner and group of each file on MS-Windows:
13945 * dired.c (stat_uname, stat_gname): New functions, with special
13946 implementation for w32.
13947 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13948
13949 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13950 (dflt_group_name): New static variable.
13951 (dflt_group): Rename from the_group.
13952 (init_user_info): Init dflt_group fields. Get user's group name
13953 from LookupAccountSid.
13954 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13955 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13956 New initialization states.
13957 (globals_of_w32): Initialize them to zero. Initialize the default
13958 group name to "None".
13959 (GetFileSecurity_Name): New global var, the name of the function
13960 to call for GetFileSecurity.
13961 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13962 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13963 (get_file_security, get_security_descriptor_owner)
13964 (get_security_descriptor_group, is_valid_sid)
13965 (get_file_security_desc, get_rid, get_name_and_id)
13966 (get_file_owner_and_group): New functions.
13967 (stat): Use get_file_security_desc and get_file_owner_and_group to
13968 report the owner and primary group of each file. Don't ignore the
13969 high 32 bits of file's size, now that st_size is 64-bit wide.
13970 Fix test when to get true file attributes.
13971 (init_user_info): Use get_rid instead of equivalent inline code.
13972 (fstat): Don't ignore the high 32 bits of file's size.
13973
139742008-05-09 Chong Yidong <cyd@stupidchicken.com>
13975
13976 * image.c (png_load): Use correct bit-depth for setting background
13977 color.
13978
139792008-05-08 Eli Zaretskii <eliz@gnu.org>
13980
13981 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13982 epa-hook.elc.
13983
139842008-05-08 Juanma Barranquero <lekktu@gmail.com>
13985
13986 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13987
139882008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13989
13990 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13991 because the original parameters are in pure storage now.
13992 (mac_window): Remove unused params. Update callers.
13993
139942008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13995
13996 * lread.c (substitute_object_recurse): Use lower-level primitives.
13997 Don't signal errors when traversing sub-char-tables.
13998 Don't loop over all the possible characters when traversing char-tables.
13999
14000 * print.c (print_preprocess): Add sub-char-tables to the print-table,
14001 just like we do in print.c.
14002
140032008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
14004
14005 * minibuf.c (Ftry_completion): Remove code left over from when we used
14006 scmp instead of Fcompare_strings.
14007
140082008-05-04 Juanma Barranquero <lekktu@gmail.com>
14009
14010 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
14011
140122008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14013
14014 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
14015 Create bitmap context in native byte order.
14016
14017 * macterm.c (XDrawLine)
14018 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
14019 context in native byte order.
14020
140212008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14022
14023 * config.in: Regenerate.
14024
14025 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
14026 New definitions for Image I/O support.
14027 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14028 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
14029 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14030 (mac_data_provider_release_data, image_load_image_io)
14031 [USE_MAC_IMAGE_IO]: New functions.
14032 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
14033 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
14034 (init_image_func_pointer) [MAC_OSX]: Remove function.
14035 (image_load_quartz2d) [MAC_OSX]: Check availability of
14036 CGImageCreateWithPNGDataProvider at compile time.
14037 Use lowercase `false' for boolean constant.
14038 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
14039 Use image_load_image_io.
14040 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
14041 Don't check MyCGImageCreateWithPNGDataProvider.
14042 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
14043 Don't call init_image_func_pointer.
14044
14045 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
14046
14047 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
14048 Make variable non-static.
14049 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14050 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
14051
14052 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
14053 (RED_FROM_ULONG): Mask off higher bits.
14054 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
14055
14056 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
14057 Include AvailabilityMacros.h.
14058 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
14059 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
14060
140612008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
14062
14063 * chartab.c (Fset_char_table_range): If range is t, really set all
14064 chars to that value.
14065
140662008-05-03 Eli Zaretskii <eliz@gnu.org>
14067
14068 * dired.c (Ffile_attributes): Don't allow the device number become
14069 negative.
14070
140712008-05-02 Daiki Ueno <ueno@unixuser.org>
14072
14073 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14074
140752008-05-02 Juri Linkov <juri@jurta.org>
14076
14077 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14078 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14079 DEFAULT argument as a list of default values in docstrings.
14080
140812008-05-01 Chong Yidong <cyd@stupidchicken.com>
14082
14083 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14084
140852008-05-01 Martin Rudalics <rudalics@gmx.at>
14086
14087 * dispnew.c (change_frame_size_1): Preserve small windows when
14088 shrinking frames by calling set_window_height|width with third
14089 arg 2.
14090
14091 * window.h (struct window): Replace field too_small_ok by field
14092 resize_proportionally.
14093
14094 * window.c (make_window): Initialize resize_proportionally.
14095 (enlarge_window): Temporarily set resize_proportionally to make
14096 sure that shrink_windows does scale the window proportionally.
14097 (shrink_windows): When window has resize_proportionally set try
14098 to shrink it proportionally by stealing from other windows.
14099 (struct saved_window, Fset_window_configuration)
14100 (compare_window_configurations): Handle resize_proportionally.
14101 (WINDOW_TOTAL_SIZE): New macro.
14102 (window_min_size, shrink_windows, size_window): Use it.
14103 (check_min_window_sizes): Remove. Invalid values of
14104 window-min-height|width are handled by window_min_size_2 now.
14105 (size_window, Fsplit_window, enlarge_window)
14106 (adjust_window_trailing_edge, grow_mini_window): Don't call
14107 check_min_window_sizes.
14108 (window_min_size_2, window_min_size_1, window_min_size):
14109 New argument safe_p for retrieving "safe" minimum sizes.
14110 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14111 (adjust_window_trailing_edge, grow_mini_window):
14112 Adjust arguments of window_min_size... functions.
14113 (shrink_windows): Argument min_size removed. New argument
14114 safe_p allows shrinking windows to their safe minimum sizes.
14115 Calculate minimum size and decide whether a window shall be
14116 deleted for each window individually.
14117 (size_window): When nodelete_p equals 2, tell shrink_windows to
14118 delete windows only if their new minimum size is no more safe.
14119 (shrink_window_lowest_first): Call window_min_size_1 to make
14120 sure to preserve modeline of bottom-most window when resizing
14121 the minibuffer.
14122 (Fset_window_configuration, Fcurrent_window_configuration)
14123 (compare_window_configurations): Do not handle
14124 window-min-height|width any more.
14125 (syms_of_window): Clarify window-min-height|width doc-strings.
14126
141272008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14128
14129 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14130 some more. Copy some of the code from Ftry_completions.
14131 Remove special case code that dates back to initial revision when the
14132 slash was only added when necessary and that can't trigger nowadays.
14133
141342008-04-27 Kenichi Handa <handa@m17n.org>
14135
14136 * font.c (font_prop_validate): Signal `error' instead of `font'.
14137
141382008-04-29 Jason Rumney <jasonr@gnu.org>
14139
14140 * w32fns.c (Fw32_battery_status): New defun.
14141 (syms_of_w32fns): Defsubr it.
14142
141432008-04-28 Andreas Schwab <schwab@suse.de>
14144
14145 * dired.c (file_name_completion): Fix another mixing of encoded
14146 and decoded names.
14147
141482008-04-28 Juanma Barranquero <lekktu@gmail.com>
14149
14150 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14151
141522008-04-27 Juanma Barranquero <lekktu@gmail.com>
14153
14154 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14155
141562008-04-27 Andreas Schwab <schwab@suse.de>
14157
14158 * dired.c (file_name_completion): Fix inappropriate mixing of
14159 encoded and decoded names.
14160
14161 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14162
14163 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14164
141652008-04-26 Eli Zaretskii <eliz@gnu.org>
14166
14167 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14168 2008-03-31, it's not needed anymore with `struct stat' definition
14169 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14170 for the same reasons.
14171
141722008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14173
14174 * m/sparc.h: Additional redefinitions for GNU/Linux.
14175
141762008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14177
14178 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14179 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14180 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14181 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14182 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14183 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14184 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14185 Likewise.
14186
14187 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14188 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14189 (mac_ax_number_of_characters): Add externs.
14190 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14191 [USE_MAC_TSM]: Likewise.
14192 (mac_handle_text_input_event) [MAC_OSX]:
14193 Handle kEventTextInputOffsetToPos for no active input area case.
14194 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14195 (mac_handle_document_access_event)
14196 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14197 (install_application_handler) [MAC_OSX]: Register handlers for
14198 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14199 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14200 Register mac_handle_document_access_event.
14201
14202 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14203 Make functions non-static.
14204
142052008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14206
14207 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14208 (read_file_name_completion_ignore_case, insert_default_directory)
14209 (Qdefault_directory): Move to minibuffer.el.
14210 (Fread_file_name): Call the new `read-file-name' instead.
14211
142122008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14213
14214 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14215 Make function non-static.
14216 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14217 Remove function.
14218 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14219 Move to mactoolbox.c.
14220 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14221
14222 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14223 (mac_rect_make): New macro.
14224
14225 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14226 instead of float.
14227 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14228 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14229 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14230 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14231 CGRectMake.
14232 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14233 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14234 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14235 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14236 instead of WindowRef in argument type.
14237 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14238 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14239 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14240 instead of DISPLAY. All uses changed.
14241 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14242 (x_calc_absolute_position): Simplify so as not to use
14243 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14244
14245 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14246 instead of WindowRef in argument type.
14247 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14248 [TARGET_API_MAC_CARBON]: Remove externs.
14249 (create_apple_event, mac_event_parameters_to_lisp)
14250 [TARGET_API_MAC_CARBON]: Add externs.
14251
14252 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14253 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14254 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14255 is clicked.
14256 (x_activate_menubar): Remove extern for saved_menu_event_location.
14257 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14258 Move from mac.c.
14259
142602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14261
14262 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14263 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14264
142652008-04-23 Jason Rumney <jasonr@gnu.org>
14266
14267 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14268 attributes only for local files.
14269
14270 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14271 default to Qlocal.
14272
142732008-04-22 Juri Linkov <juri@jurta.org>
14274
14275 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14276 read-buffer-to-switch instead of using the letter "B".
14277
142782008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14279
14280 * fileio.c (Qdefault_directory): New variable.
14281 (Fread_file_name): Use it to pass `dir' to the completion functions.
14282
142832008-04-20 Chong Yidong <cyd@stupidchicken.com>
14284
14285 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14286
142872008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14288
14289 * keyboard.c (Vpre_help_message): Remove.
14290 (show_help_echo): Remove default C code.
14291
14292 * dired.c (directory_files_internal, file_name_completion):
14293 Only call ENCODE_FILE if the string is indeed decoded.
14294
142952008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14296
14297 * Makefile.in (TOOLKIT_DEFINES): Remove.
14298 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14299
143002008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14301
14302 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14303 (mactoolbox.o): New target.
14304
14305 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14306 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14307
14308 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14309 Use mac_set_frame_window_background instead of XSetWindowBackground.
14310 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14311 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14312 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14313 instead of SetWindowTitleWithCFString.
14314 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14315 Move function to mactoolbox.c.
14316 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14317 Use mac_set_window_modified instead of SetWindowModified.
14318 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14319 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14320 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14321 FrontNonFloatingWindow. Use mac_activate_window instead of
14322 ActivateWindow. Use mac_active_non_floating_window instead of
14323 ActiveNonFloatingWindow.
14324 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14325 Use mac_show_hourglass and mac_hide_hourglass.
14326 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14327 instead of GetGlobalMouse.
14328 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14329 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14330 Use mac_bring_window_to_front instead of BringToFront.
14331 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14332 mactoolbox.c.
14333 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14334 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14335 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14336 mactoolbox.c.
14337
14338 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14339 (XtPointer): Move typedef from macmenu.c.
14340 (enum button_type): Move enum from macmenu.c.
14341 (widget_value): Move typedef from macmenu.c.
14342 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14343 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14344 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14345 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14346 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14347 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14348 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14349 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14350 (Selection): Move typedef from macselect.c.
14351 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14352 macterm.c.
14353 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14354 (mac_is_window_collapsed, mac_bring_window_to_front)
14355 (mac_send_window_behind, mac_hide_window, mac_show_window)
14356 (mac_collapse_window, mac_front_non_floating_window)
14357 (mac_active_non_floating_window, mac_activate_window)
14358 (mac_move_window_structure, mac_move_window, mac_size_window)
14359 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14360
14361 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14362 (enum mac_menu_kind): Move enum to mactoolbox.c.
14363 (min_menu_id): Move variable to mactoolbox.c.
14364 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14365 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14366 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14367 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14368 [TARGET_API_MAC_CARBON]: Likewise.
14369 (XtPointer): Move typedef to macgui.h.
14370 (enum button_type): Move enum to macgui.h.
14371 (widget_value): Move typedef to macgui.h.
14372 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14373 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14374 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14375 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14376 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14377 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14378 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14379 (popup_activated_flag): Make variable non-static.
14380 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14381 (add_menu_item, fill_menu, dispose_menus):
14382 Move functions to mactoolbox.c.
14383 (restore_show_help_function, menu_target_item_handler)
14384 (install_menu_target_item_handler, mac_handle_dialog_event)
14385 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14386 [TARGET_API_MAC_CARBON]: Likewise.
14387 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14388 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14389 (find_and_call_menu_selection, name_is_separator): Make function
14390 non-static.
14391 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14392 to mactoolbox.c.
14393 (set_frame_menubar): Don't call install_menu_quit_handler.
14394 (menu_item_selection): New variable.
14395 (mac_menu_show): Use create_and_show_popup_menu.
14396 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14397 selection but set variable menu_item_selection. All uses changed.
14398 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14399 Call install_menu_quit_handler. Move to mactoolbox.c.
14400
14401 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14402 (Selection): Move typedef to macgui.h.
14403 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14404 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14405 Make variables non-static.
14406 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14407 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14408 Make functions non-static.
14409 (Vmac_service_selection) [MAC_OSX]: Likewise.
14410 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14411 (mac_valid_selection_target_p, mac_clear_selection)
14412 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14413 (mac_put_selection_value, mac_selection_has_target_p)
14414 (mac_get_selection_value, mac_get_selection_target_list)
14415 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14416 Move functions to mactoolbox.c.
14417 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14418 Likewise.
14419 (copy_scrap_flavor_data, mac_handle_service_event)
14420 (install_service_handler) [MAC_OSX]: Likewise.
14421 (syms_of_macselect) <Vmac_dnd_known_types>:
14422 Use mac_dnd_default_known_types.
14423
14424 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14425 Move to mactoolbox.c.
14426 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14427 (Fx_selection_owner_p): Add EXFUN.
14428 (install_window_handler, remove_window_handler, XSetWindowBackground):
14429 Remove externs.
14430 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14431 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14432 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14433 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14434 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14435 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14436 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14437 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14438 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14439 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14440 (mac_valid_selection_target_p, mac_clear_selection)
14441 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14442 (mac_put_selection_value, mac_selection_has_target_p)
14443 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14444 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14445 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14446 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14447 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14448 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14449 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14450 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14451 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14452
14453 * mactoolbox.c: New file.
14454
144552008-04-18 Jason Rumney <jasonr@gnu.org>
14456
14457 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14458
144592008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14460
14461 * character.c (Fmultibyte_char_to_unibyte):
14462 Return latin1 chars unchanged.
14463
14464 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14465 relocated if it points to `name'.
14466
144672008-04-17 Kenichi Handa <handa@m17n.org>
14468
14469 * data.c (Faset): Allow setting a multibyte character in an
14470 ASCII-only unibyte string.
14471
14472 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14473
144742008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14475
14476 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14477 done in config.h.
14478
144792008-04-16 Juanma Barranquero <lekktu@gmail.com>
14480
14481 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14482 (Fchar_direction): Add usage in the docstring.
14483
144842008-04-15 Chong Yidong <cyd@stupidchicken.com>
14485
14486 * keyboard.c (read_key_sequence): Remove always-true checks.
14487
144882008-04-14 Jason Rumney <jasonr@gnu.org>
14489
14490 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14491 compatibility struct, for better underline positioning.
14492
144932008-04-13 David Hansen <david.hansen@gmx.net>
14494
14495 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14496 string.
14497
144982008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14499
14500 * m/hp800.h (XUINT, XSET): Remove.
14501
145022008-04-12 Juanma Barranquero <lekktu@gmail.com>
14503
14504 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14505 previous change.
14506
145072008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14508
14509 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14510 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14511
145122008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14513
14514 * keymap.h (map_keymap_canonical): Declare.
14515 * xmenu.c (single_keymap_panes): Use it.
14516
145172008-04-11 Glenn Morris <rgm@gnu.org>
14518
14519 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14520 set the target's value to that of the alias.
14521
145222008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14523
14524 * term.c (set_tty_color_mode): Left over typo.
14525
145262008-04-10 Michael Albinus <michael.albinus@gmx.de>
14527
14528 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14529 only after check for file name handler functions. Signal, when
14530 native functionality is not supported.
14531 (syms_of_fileio): Declare it unconditionally.
14532
145332008-04-10 Jason Rumney <jasonr@gnu.org>
14534
14535 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14536 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14537
14538 * w32.c (logon_network_drive): Also logon to remote drives that
14539 are mapped to drive letters.
14540
145412008-04-10 Glenn Morris <rgm@gnu.org>
14542
14543 * xdisp.c (truncate-partial-width-windows): Doc fix.
14544
145452008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14546
14547 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14548 Move functions to minibuffer.el.
14549 (syms_of_fileio): Don't declare them.
14550
145512008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14552
14553 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14554 (syms_of_minibuf): Remove its initialization.
14555
14556 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14557
145582008-04-09 Juanma Barranquero <lekktu@gmail.com>
14559
14560 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14561
145622008-04-09 Jason Rumney <jasonr@gnu.org>
14563
14564 * makefile.w32-in (distclean): Delete makefile too.
14565 (maintainer-clean): New target.
14566
14567 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14568
14569 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14570 for new font backend and composite cases.
14571
145722008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14573
14574 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14575 Most of the code moved to run_timers.
14576 (do_pending_atimers): Call run_timers.
14577 (run_timers): New function.
14578
14579 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14580 run atimers.
14581
14582 * process.c (wait_reading_process_output): The same as above.
14583
145842008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14585
14586 * minibuf.c (last_exact_completion): Remove variable.
14587 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14588 (complete_and_exit_1, complete_and_exit_2)
14589 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14590 (Fdisplay_completion_list, display_completion_list_1)
14591 (Fminibuffer_completion_help, Fself_insert_and_exit)
14592 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14593 minibuffer.el.
14594 (syms_of_minibuf): Remove corresponding initializations.
14595
14596 * keyboard.c (Qdeactivate_mark): New var.
14597 (command_loop_1): Use it to call `deactivate-mark'.
14598 (syms_of_keyboard): Initialize it.
14599
14600 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14601 to another frame.
14602 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14603 Don't call set_tty_color_mode.
14604 (store_frame_param): Reset previous_frame rather than call
14605 set_tty_color_mode.
14606 * term.c (set_tty_color_mode): Rewrite.
14607 * dispextern.h (set_tty_color_mode): New type.
14608 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14609
146102008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14611
14612 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14613 for generic chars, which do not exist any more in emacs-unicode.
14614
146152008-04-08 Michael Albinus <michael.albinus@gmx.de>
14616
14617 * coding.c (detect_coding_emacs_mule)
14618 (Ffind_operation_coding_system): Fix typo.
14619
146202008-04-08 Jason Rumney <jasonr@gnu.org>
14621
14622 * w32uniscribe.c (SNAME): Extract only symbol name.
14623
14624 * w32font.h (struct w32_metric_cache): New struct.
14625 (w32font_info): Use it.
14626 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14627 (CACHE_BLOCKSIZE): New constants.
14628
14629 * w32font.c (Qja, Qko, Qzh): New symbols.
14630 (syms_of_w32font): Initialise them.
14631 (font_matches_spec): Use them to filter by language.
14632 (recompute_cached_metrics): Remove function.
14633 (compute_metrics, clear_cached_metrics): New functions.
14634 (w32font_encode_char): Use them to manage metric cache.
14635 (w32font_text_extents): Cache metrics for all glyphs on demand.
14636 Delay converting glyph indices to WORD until needed.
14637 (w32font_open_internal): Initialize metric cache to empty.
14638 (registry_to_w32_charset): Charset should always be a symbol.
14639 (fill_in_logfont, list_all_matching_fonts): Family should
14640 always be a symbol.
14641
146422008-04-06 Jason Rumney <jasonr@gnu.org>
14643
14644 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14645 Give up if glyph indices not supported. Use uniscribe obtained
14646 ABC widths for individual metrics. Map glyph clusters back to
14647 characters using fClusterStart flag. Return number of glyphs
14648 produced, not chars processed.
14649 (uniscribe_shape): Map char at FROM to current glyph.
14650
146512008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14652
14653 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14654 Use SetMenuItemHierarchicalMenu.
14655
146562008-04-05 Jason Rumney <jasonr@gnu.org>
14657
14658 * image.c (pbm_load): Allow color values up to 65535.
14659 Throw an error if max_color_idx is outside the supported range.
14660 Report an error when image size is invalid.
14661 Read two bytes at a time when raw images have max_color_idx above 255.
14662
aac0c6e3
MR
146632008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14664
14665 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14666 append "CCL: Quitted" when the CCL program is quitted.
14667 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14668
14669 * ccl.h (struct ccl_program): New member quit_silently.
14670
146712008-04-05 Chong Yidong <cyd@stupidchicken.com>
14672
14673 * search.c (compile_pattern_1): Treat non-nil and non-string of
14674 search-spaces-regexp as nil.
14675
14676 * minibuf.c (Fassoc_string): Tweak docstring.
14677
146782008-04-05 Eli Zaretskii <eliz@gnu.org>
14679
14680 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14681 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14682 2008-03-14 to force inode be positive.
14683
14684 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14685 _S_* ones, since we now use our own sys/stat.h.
14686 (stat, fstat): Don't mangle the inode number.
14687 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14688
146892008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14690
14691 * frame.h (struct frame): Give one more bit to `visible' since we use
14692 values larger than 1 to indicate obscured frames on ttys.
14693
14694 * keymap.c (Qkeymap_canonicalize): New var.
14695 (Fmap_keymap_internal): New fun.
14696 (describe_map): Use keymap-canonicalize.
14697
14698 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14699 (Fundo_boundary): Set them.
14700 (syms_of_undo): Initialize them.
14701 (record_point): Use them instead of last_point_position*.
14702 (last_undo_buffer): Change type.
14703
147042008-04-04 Jason Rumney <jasonr@gnu.org>
14705
14706 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14707 (recompute_cached_metrics): Don't set ascent and descent per char.
14708
14709 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14710 (uniscribe_check_otf): Add GC protection before consing.
14711 Rearrange loop for counting features.
14712
147132008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14714
14715 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14716 buffer with byte-size of source buffer.
14717
147182008-04-03 Chong Yidong <cyd@stupidchicken.com>
14719
14720 * callint.c (Fcall_interactively): Handle temporary region even
14721 when shift-select-mode is off.
14722
147232008-04-03 Jason Rumney <jasonr@gnu.org>
14724
14725 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14726
147272008-04-03 Kenichi Handa <handa@m17n.org>
14728
14729 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14730 (CATEGORY_MASK_UTF_16): Likewise.
14731 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14732 binary file.
14733 (detect_coding): Add null-byte detection for a binary file.
14734 (detect_coding_system): Likewise.
14735
147362008-04-03 Jason Rumney <jasonr@gnu.org>
14737
14738 * w32uniscribe.c: New file.
14739
14740 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14741
14742 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14743
14744 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14745 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14746 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14747 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14748 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14749 (Qphonetic): New symbols.
14750 (syms_of_w32font): Initialize them.
14751 (font_supported_scripts): Use them.
14752 (w32font_list_family): List all charsets.
14753 (w32font_text_extents, recompute_cached_metrics): Fix metric
14754 calculations.
14755 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14756 Give opentype fonts their own format.
14757 (font_matches_spec): New arguments backend and logfont.
14758 Handle :otf spec for uniscribe backend.
14759 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14760 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14761
14762 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14763 font backend.
14764 (globals_of_w32fns): Initialize uniscribe font backend.
14765
14766 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14767 dependencies.
14768 (w32uniscribe.$(O)): New file to build.
14769 (FONT_OBJ): Include w32uniscribe.$(O).
14770 (LIBS): Add uniscribe libraries.
14771
14772 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14773
147742008-04-02 Chong Yidong <cyd@stupidchicken.com>
14775
14776 * callint.c (Vshift_select_mode): New var.
14777 (Finteractive): Document new ^ spec.
14778 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14779 is present.
14780
14781 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14782 (command_loop_1): Avoid running the direct display versions of
14783 forward-char and backward-char if shift-selection may occur.
14784 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14785 shift-translation takes place.
14786
14787 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14788 avoid clobbering by define-minor-mode.
14789
14790 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14791 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14792
14793 * syntax.c (Fforward_word): Add ^ interactive spec.
14794
14795 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14796 (Fscroll_right): Add ^ interactive spec.
14797
147982008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14799
14800 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14801
14802 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14803
14804 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14805
148062008-03-31 Juri Linkov <juri@jurta.org>
14807
14808 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14809
148102008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14811
14812 * gtkutil.c (xg_set_geometry): Fix indentation.
14813 (xg_resize_outer_widget): Remove.
14814 (x_wm_size_hint_off): Fix indentation.
14815 (xg_frame_set_char_size): Call flush_and_sync after
14816 gtk_window_resize.
14817 (x_wm_set_size_hint): Pass NULL as geometry window to
14818 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14819 Add menu bar and tool bar height to base height.
14820 (xg_update_frame_menubar, free_frame_menubar)
14821 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14822 (update_frame_tool_bar, free_frame_tool_bar):
14823 Change xg_resize_outer_widget to xg_frame_set_char_size.
14824
148252008-03-30 Michael Albinus <michael.albinus@gmx.de>
14826
14827 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14828 (Fdbus_call_method): New parameter TIMEOUT.
14829 (dbus-send-signal): Optimize UNGCPRO call.
14830
148312008-03-29 Juri Linkov <juri@jurta.org>
14832
14833 * window.c (Fdisplay_buffer): Move call to
14834 Vsplit_window_preferred_function out of conditions that check
14835 if window is eligible for vertical splitting.
14836 When Vsplit_window_preferred_function is non-nil, call it and use
14837 its non-nil return value as window. Otherwise, continue doing
14838 vertical splitting using Fsplit_window with arg horflag=nil.
14839 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14840 default value from `split-window' to nil.
14841
148422008-03-29 Juri Linkov <juri@jurta.org>
14843
14844 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14845 for interactive code letters 'b' and 'B'.
14846
148472008-03-29 Eli Zaretskii <eliz@gnu.org>
14848
14849 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14850 multibyte string.
14851
148522008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14853
14854 * keyboard.c (pending_funcalls): New var.
14855 (timer_check): Run it.
14856 (syms_of_keyboard): Initialize it.
14857 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14858 (Vdelete_terminal_functions): New vars.
14859 (syms_of_terminal): Initialize them.
14860 (Fdelete_terminal): Run delete-terminal-functions.
14861 * xdisp.c (safe_eval): Rewrite.
14862 (safe_call2): New fun.
14863 * frame.c (Qdelete_frame_functions): New var.
14864 (syms_of_frame): Initialize it.
14865 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14866 * lisp.h (safe_call2, pending_funcalls): Declare.
14867
148682008-03-28 Andreas Schwab <schwab@suse.de>
14869
14870 * indent.c (Fmove_to_column): Move declaration before statements.
14871
148722008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14873
14874 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14875 (struct frame): Use bit fields for boolean vars.
14876
14877 * process.c (server_accept_connection): Simplify naming.
14878 (emacs_get_tty_pgrp): Use SDATA.
14879
14880 * coding.c (decode_coding_object): Fix last change.
14881
148822008-03-27 Jason Rumney <jasonr@gnu.org>
14883
14884 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14885
148862008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14887
14888 * charset.c (Fdefine_charset_internal): Change the way of
14889 registering charsets in Vcharset_order_list.
14890 (syms_of_charset): Make the charset `eight-bit' supplementary.
14891
148922008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14893
14894 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14895 operations, to avoid having the difference between pointers
14896 overflow.
14897
148982008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14899
14900 * indent.c (check_display_width): New fun.
14901 (scan_for_column): Use it.
14902
14903 * data.c (syms_of_data): Mark most-positive-fixnum and
14904 most-negative-fixnum as constants.
14905
14906 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14907
14908 * indent.c (scan_for_column): Extract from current_column_1.
14909 Merge with the same code from Fmove_to_column.
14910 (current_column_1, Fmove_to_column): Use it.
14911
149122008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14913
14914 * keymap.c (map_keymap_internal): New fun.
14915 (map_keymap): Use it.
14916 (Fmap_keymap_internal): New fun.
14917 (Fmap_keymap): Remove left-out test from before make_save_value.
14918
14919 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14920
14921 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14922 Use XCAR/XCDR.
14923
14924 * process.h (struct Lisp_Process): Remove filter_multibyte.
14925 * process.c (QCfilter_multibyte): Remove.
14926 (setup_process_coding_systems): Don't use filter_multibyte.
14927 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14928 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14929 (Fset_process_filter_multibyte): Change the coding-system to
14930 approximate the previous behavior.
14931 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14932 coding-system.
14933
14934 * coding.c (decode_coding_object): When not decoding into a buffer,
14935 obey the coding system's preference of (uni|multi)byte.
14936
149372008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14938
14939 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14940 every char is changed and has a different byte-length.
14941 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14942 Fix int -> EMACS_INT.
14943
149442008-03-23 David Hansen <david.hansen@gmx.net>
14945
14946 * dbusbind.c (xd_read_message): Remove extra copying of message
14947 strings. Check for NULL `interface' or `member'.
14948
149492008-03-22 Eli Zaretskii <eliz@gnu.org>
14950
14951 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14952 cFileName a file name that includes `?' characters, use the 8+3
14953 alias in cAlternateFileName instead.
14954
149552008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14956
14957 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14958
149592008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14960
14961 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14962 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14963 work on current_buffer only instead (that was already the case
14964 for some of the code anyway).
14965 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14966 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14967 (SET_PT, SET_PT_BOTH): Adjust.
14968 * intervals.h (set_point, temp_set_point, set_point_both)
14969 (temp_set_point_both): Remove redundant declarations.
14970
149712008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14972
14973 * fileio.c (Finsert_file_contents):
14974 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14975 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14976 when buffer != current_buffer anyway.
14977
149782008-03-20 Andreas Schwab <schwab@suse.de>
14979
14980 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14981 as default.
14982
149832008-03-19 Jason Rumney <jasonr@gnu.org>
14984
14985 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14986 (syms_of_w32fns): Initialize them.
14987 (HOURGLASS_ID): New constant.
14988 (x_window_to_frame): Don't check hourglass_window.
14989 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14990 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14991 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14992 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14993 Only change the cursor if hourglass is not active.
14994 (Fx_create_frame): Initialize frame's current_cursor.
14995 (hourglass_atimer): Remove.
14996 (hourglass_started): New function.
14997 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14998 (show_hourglass): Adapt to w32, changing argument to frame.
14999
15000 * w32term.h (struct w32_output): Remove hourglass_window.
15001 Add current_cursor.
15002
15003 * eval.c (call_debugger, Fsignal):
15004 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
15005 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
15006 (Fexecute_extended_command, cancel_hourglass_unwind):
15007 * minibuf.c (read_minibuf):
15008 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
15009
150102008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
15011
15012 * window.c (run_funs): New fun.
15013 (run_window_configuration_change_hook): Use it to run the buffer-local
15014 and the global part of the hook.
15015
15016 * xdisp.c (format_mode_line_unwind_data): Add window argument.
15017 (unwind_format_mode_line): Restore selected window.
15018 (x_consider_frame_title, Fformat_mode_line): Set selected window.
15019
150202008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15021
15022 * editfns.c (Fchar_equal): Check they are valid characters.
15023
15024 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
15025
150262008-03-17 Andreas Schwab <schwab@suse.de>
15027
15028 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
15029 against a charset.
15030
15031 * lisp.h (Fbuffer_list): Declare.
15032
150332008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 15034
aac0c6e3
MR
15035 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
15036 handlebox_widget is != 0.
15037
150382008-03-16 Juri Linkov <juri@jurta.org>
15039
15040 * callint.c (Fcall_interactively): For interactive code letters
15041 'b' and 'B' put the buffer list into the list of default "future"
15042 values of the minibuffer.
15043
150442008-03-16 Andreas Schwab <schwab@suse.de>
15045
15046 * keyboard.c (read_key_sequence): Fix downcasing of letters with
15047 modifiers.
15048
15049 * regex.c (re_match_2_internal): Correct matching of a charset
15050 against latin-1 characters.
15051
150522008-03-16 Kenichi Handa <handa@m17n.org>
15053
15054 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
15055 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
15056 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
15057 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
15058 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
15059 CHAR_STRING_ADVANCE.
15060 (produce_chars): Fix for the case that the source and the
15061 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
15062 instead of CHAR_STRING_ADVANCE.
15063 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
15064 STRING_CHAR_ADVANCE.
15065
150662008-03-15 Andreas Schwab <schwab@suse.de>
15067
15068 * regex.c (re_match_2_internal): Correct matching of eight bit
15069 characters in unibyte strings.
15070
150712008-03-15 Martin Rudalics <rudalics@gmx.at>
15072
15073 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15074 at end of range when it coincides with the end of the buffer.
15075
150762008-03-14 Eli Zaretskii <eliz@gnu.org>
15077
15078 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15079
15080 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15081
150822008-03-14 Jason Rumney <jasonr@gnu.org>
15083
15084 * editfns.c (initial_tz): New variable.
15085 (syms_of_editfns): Initialize it.
15086 (Fset_time_zone_rule): Set it when first called.
15087 Use it when TZSTRING is nil.
15088
15089 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15090 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15091 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15092 (globals_of_w32fns): Initialize them.
15093 (compute_tip_xy): Use them to position tooltips.
15094
150952008-03-14 Glenn Morris <rgm@gnu.org>
15096
15097 * emacs.c (main): Revert previous change.
15098 (standard_args): Revert -internal-script back to -scriptload,
15099 and remove the long-option form.
15100
151012008-03-13 Glenn Morris <rgm@gnu.org>
15102
15103 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15104 Remove option -enable-font-backend.
15105
151062008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15107
15108 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15109
151102008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15111
15112 * xterm.c (x_connection_closed): For GTK: If this is the last
15113 terminal just exit without closing the display.
15114
151152008-03-11 Jason Rumney <jasonr@gnu.org>
15116
15117 * w32font.c (w32font_full_name): Use floor to round.
15118
f0131492 151192008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15120
15121 * sound.c (alsa_configure): Declare vol at beginning of block.
15122
15123 * fontset.c (Ffontset_info): Remove extra semicolon.
15124
151252008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15126
15127 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15128 size of resulting string.
15129
151302008-03-10 Jason Rumney <jasonr@gnu.org>
15131
15132 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15133
151342008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15135
15136 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15137 Don't pretend as if characters with display property haven't been
15138 consumed for string-replacing-string case.
15139
151402008-03-08 Kim F. Storm <storm@cua.dk>
15141
15142 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15143 (get_next_display_element, next_element_from_string)
15144 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15145
151462008-03-08 Andreas Schwab <schwab@suse.de>
15147
15148 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15149
151502008-03-06 Jason Rumney <jasonr@gnu.org>
15151
15152 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15153 when charset not specified. Only translate ANSI to unicode when
15154 font_type is truetype.
15155 (w32font_coverage_ok): New function.
15156 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15157
151582008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15159
15160 * lread.c (Fread_char): Resolve modifiers.
15161 (Fread_char_exclusive): Likewise.
15162
15163 * character.c (char_resolve_modifier_mask): New function.
15164 (char_string): Use char_resolve_modifier_mask.
15165 (Fchar_resolve_modifiers): New function.
15166 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15167 function.
15168
151692008-03-04 Jason Rumney <jasonr@gnu.org>
15170
15171 * makefile.w32-in: Always include w32font.c in the build.
15172 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15173
151742008-03-04 Andreas Schwab <schwab@suse.de>
15175
15176 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15177 (versionclean): Likewise.
15178
151792008-03-04 Juanma Barranquero <lekktu@gmail.com>
15180
15181 * .cvsignore: Add oo.
15182
151832008-03-03 Andreas Schwab <schwab@suse.de>
15184
15185 * coding.c (decode_coding_object): Inhibit gap shrinking while
15186 decoding in place.
15187
151882008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15189
15190 * w32term.c: Remove unused include "gnu.h".
15191 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15192
15193 * gnu.h: Rename to ...
15194 * emacs-icon.h: ... this.
15195 * xterm.c: Use emacs-icon.h instead of gnu.h.
15196 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15197
151982008-03-03 Juanma Barranquero <lekktu@gmail.com>
15199
15200 * w32font.c: Include math.h.
15201
152022008-03-03 Jason Rumney <jasonr@gnu.org>
15203
15204 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15205 Compute options separately.
15206 (w32font_open_internal): Set glyph_idx before caching metrics.
15207
15208 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15209 Define if system headers don't.
15210 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15211 (w32font_encode_char): Don't declare here.
15212
15213 * w32font.c (Quniscribe, QCformat): New symbols.
15214 (syms_of_w32font): Define them.
15215 (w32font_has_char): Indicate uncertainty.
15216 (w32font_encode_char): Encode as glyph point. Make static.
15217 (recompute_cached_metrics): New function.
15218 (w32font_open_internal): Use it. Set font to use glyph points
15219 initially. Set format based on type of font.
15220 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15221 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15222 on it. Set format based on information available here.
15223 (add_font_entity_to_list): Identify backend based on opentype_only.
15224
152252008-03-02 Andreas Schwab <schwab@suse.de>
15226
15227 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15228
15229 * coding.c (decode_coding_big5, produce_chars):
15230 Fix typos in last change.
15231
152322008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15233
15234 * gnu.h: New icon.
15235
152362008-03-02 Kenichi Handa <handa@m17n.org>
15237
15238 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15239 `dos', don't decode '\r' if that is the last in the source.
15240 (decode_coding_utf_16, decode_coding_emacs_mule)
15241 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15242 (decode_coding_raw_text, decode_coding_charset): Likewise.
15243 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15244
152452008-03-01 Jason Rumney <jasonr@gnu.org>
15246
15247 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15248
152492008-03-01 Kim F. Storm <storm@cua.dk>
15250
15251 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15252
152532008-03-01 Jason Rumney <jasonr@gnu.org>
15254
15255 * w32font.c (w32font_full_name): New function.
15256 (w32font_open_internal): Use it.
15257
152582008-03-01 Kim F. Storm <storm@cua.dk>
15259
15260 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15261
152622008-03-01 Jason Rumney <jasonr@gnu.org>
15263
15264 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15265
152662008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15267
15268 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15269 xg_frame_resized when the event is for the edit widget.
15270
15271 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15272
15273 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15274 set_char_size.
15275 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15276 operations on widgets here. Just set frame size if needed.
15277 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15278 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15279 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15280 the whole frame.
15281 (xg_create_tool_bar): Move attachment of the tool bar to
15282 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15283 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15284
152852008-03-01 Jason Rumney <jasonr@gnu.org>
15286
15287 * w32fns.c (w32_msg_pump): Disable debug code.
15288
152892008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15290
15291 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15292
152932008-02-29 Chong Yidong <cyd@stupidchicken.com>
15294
15295 * xdisp.c (next_overlay_string): Don't set
15296 overlay_strings_at_end_processed_p if we're currently reading from
15297 a display string.
15298
152992008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15300
15301 * xdisp.c (get_overlay_strings_1): Fix typo.
15302
153032008-02-29 Chong Yidong <cyd@stupidchicken.com>
15304
15305 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15306
153072008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15308
15309 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15310
15311 * xdisp.c (display_mode_element): Cancel the previous change.
15312 (decode_mode_spec): Likewise.
15313 (handle_auto_composed_prop): Don't make composition if it->string
15314 is a string.
15315
153162008-02-27 Kim F. Storm <storm@cua.dk>
15317
15318 * lisp.h (GLYPH): Change type from int to struct with separate char
15319 and face_id members.
15320 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15321 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15322 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15323 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15324 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15325 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15326 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15327 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15328 handle new Lisp glyph code encoding, either an integer or a cons.
15329
15330 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15331 (GLYPH_ALIAS): Delete.
15332 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15333 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15334 (GLYPH_FROM_CHAR): Replace macro by ...
15335 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15336
15337 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15338 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15339 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15340 (GLYPH_INVALID_P): New macro.
15341 (spec_glyph_lookup_face): Update prototype.
15342
15343 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15344 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15345 new glyph code encoding.
15346 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15347 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15348
15349 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15350 Adapt to new glyph type and new glyph code encoding.
15351
15352 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15353
15354 * indent.c (current_column, current_column_1, Fmove_to_column)
15355 (compute_motion): Adapt to new glyph code encoding.
15356
15357 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15358
153592008-02-27 Chong Yidong <cyd@stupidchicken.com>
15360
15361 * process.c (wait_reading_process_output): Check for window
15362 changes caused by timers.
15363 Suggested by Johan Bockgård.
15364
153652008-02-27 Glenn Morris <rgm@gnu.org>
15366
15367 * emacs.c (USAGE1): Add `--disable-font-backend'.
15368
153692008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15370
15371 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15372 is made to the buffer.
15373
153742008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15375
15376 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15377 (face_at_string_position):
15378 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15379 (face_at_string_position):
15380 * xdisp.c (display_string, next_overlay_change):
15381 * buffer.h (overlays_at):
15382 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15383 Update callers.
15384
153852008-02-26 Chong Yidong <cyd@stupidchicken.com>
15386
15387 * editfns.c (Fformat): Doc fix.
15388
153892008-02-26 Juanma Barranquero <lekktu@gmail.com>
15390
15391 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15392 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15393 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15394
153952008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15396
15397 * buffer.c (Fbuffer_swap_text): New function.
15398 (syms_of_buffer): Defsubr it.
15399
154002008-02-25 Chong Yidong <cyd@stupidchicken.com>
15401
15402 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15403
154042008-02-25 Jason Rumney <jasonr@gnu.org>
15405
15406 * w32font.c (w32font_draw): Draw one character at a time when padding.
15407
154082008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15409
15410 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15411 Handle a nil arg. Use run_window_configuration_change_hook.
15412 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15413 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15414 Use run_window_configuration_change_hook.
15415
154162008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15417
15418 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15419 1-pixel width.
15420
154212008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15422
15423 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15424 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15425 if the glyph in the font is zero pixel with.
15426
15427 * dispextern.h (struct glyph_string): New member padding_p.
15428
15429 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15430
15431 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15432
15433 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15434
15435 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15436
15437 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15438
154392008-02-25 Jason Rumney <jasonr@gnu.org>
15440
15441 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15442
154432008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15444
15445 Allow fine-grained image-cache flushing.
15446 * dispextern.h (struct image): Add `dependencies' field.
15447 (clear_image_caches): Change arg to Lisp_Object.
15448 * image.c (make_image): Initialize `dependencies' field.
15449 (clear_image_cache): Change arg to allow fine-grained flushing.
15450 Perform the flush even if image-cache-eviction-delay is nil.
15451 (clear_image_caches): Change arg to Lisp_Object.
15452 (Fclear_image_cache): Expand meaning of the argument.
15453 (mark_image): Mark `dependencies' field.
15454 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15455 (lface_hash): Use XHASH rather than XFASTINT.
15456 (face_at_buffer_position): Fix int -> EMACS_INT position.
15457 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15458 (select_frame_for_redisplay): Remove code duplication.
15459 (redisplay_internal): Adapt arg to call to clear_image_caches.
15460
154612008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15462
15463 * s/vms4-0.h:
15464 * s/vms4-2.h:
15465 * s/vms4-4.h:
15466 * s/vms5-5.h: Remove, unused.
15467
15468 * s/irix5-2.h:
15469 * s/irix6-0.h:
15470 * s/riscos5.h:
15471 * s/mach-bsd4-3.h:
15472 * m/mips4.h: Remove files for obsolete systems.
15473
15474 * Makefile.in:
15475 * filelock.c:
15476 * unexmips.c:
15477 * m/hp9000s300.h:
15478 * m/iris4d.h:
15479 * s/aix3-1.h:
15480 * s/hpux.h:
15481 * s/msdos.h:
15482 * s/usg5-0.h:
15483 * s/usg5-2-2.h:
15484 * s/usg5-2.h:
15485 * s/usg5-3.h: Remove references to obsolete variables.
15486
15487 * s/irix5-0.h: Remove, move all the contents ...
15488 * s/irix6-5.h: ... here. Simplify.
15489 * config.in: Regenerate.
15490
154912008-02-24 Jason Rumney <jasonr@gnu.org>
15492
15493 * w32term.c (x_draw_glyph_string_background): Clear the background
15494 manually when cleartype is in use.
15495 (x_draw_glyph_string_foreground): Draw text transparently when
15496 cleartype is in use.
15497
15498 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15499 a font into it unless we have to.
15500
155012008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15502
15503 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15504 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15505
aac0c6e3
MR
155062008-02-18 Jason Rumney <jasonr@gnu.org>
15507
15508 * w32fns.c (Fw32_shell_execute): Encode parameters.
15509
155102008-02-09 Eli Zaretskii <eliz@gnu.org>
15511
15512 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15513
155142008-02-05 Juanma Barranquero <lekktu@gmail.com>
15515
15516 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15517
155182008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15519
15520 * xterm.c (x_set_offset): Don't change the gravity if
15521 CHANGE_GRAVITY is -1.
15522
155232008-02-23 Chong Yidong <cyd@stupidchicken.com>
15524
15525 * fileio.c (auto_save_error_occurred): New var.
15526 (auto_save_error): Set it.
15527 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15528 error occurred.
15529
155302008-02-23 Eli Zaretskii <eliz@gnu.org>
15531
15532 * w32.c (globals_of_w32): Add initializations for
15533 g_b_init_get_sid_sub_authority and
15534 g_b_init_get_sid_sub_authority_count.
15535
155362008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15537
15538 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15539 (font_parse_xlfd): Use them for sanity check.
15540 (Finternal_set_font_style_table): Make sure the table is bijective.
15541
15542 Consolidate the image_cache to the terminal struct.
15543 * termhooks.h (P_): Remove redundant def.
15544 (struct terminal): New field `image_cache'.
15545 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15546 of FRAME_X_IMAGE_CACHE.
15547 * xterm.h (struct x_display_info): Remove image_cache field.
15548 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15549 * w32term.h (struct w32_display_info): Remove image_cache field.
15550 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15551 * macterm.h (struct mac_display_info): Remove image_cache field.
15552 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15553 * xterm.c (x_term_init):
15554 * w32term.c (w32_term_init):
15555 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15556 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15557 Remove declarations.
15558 (clear_image_caches, mark_image_cache): New declarations.
15559 * xfaces.c (clear_face_cache):
15560 * xdisp.c (redisplay_internal): Use clear_image_caches.
15561 * image.c (clear_image_cache): Don't check that a frame is on
15562 a window-system before checking if it shares the same cache.
15563 (clear_image_caches): New function.
15564 (Fclear_image_cache): Use it.
15565 (mark_image): Move from allo.c.
15566 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15567 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15568 (mark_object): Don't call mark_image_cache for frames.
15569 (mark_terminals): Call mark_image_cache.
15570
15571 * lisp.h (Fdelete_terminal): Declare.
15572
15573 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15574 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15575 wrong_type_argument.
15576
155772008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15578
15579 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15580 malayalam.el, and tamil.el. Add sinhala.el.
15581
155822008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15583
15584 * xterm.c (x_connection_closed): Consolidate identical tests.
15585 (x_delete_terminal): Don't crash if called via x_connection_closed.
15586
155872008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15588
15589 * xdisp.c (decode_mode_spec): New arg string.
15590 (display_mode_element): Adjust for the above change.
15591
155922008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15593
15594 * callint.c (Fcall_interactively): Use AREF.
15595
155962008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15597
15598 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15599
156002008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15601
15602 * xfns.c (Fx_show_tip): Set string to " " if empty.
15603
156042008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15605
15606 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15607 with Qt.
15608
156092008-02-17 Kenichi Handa <handa@m17n.org>
15610
15611 * ftfont.c (ftfont_shape): Return Lispy number.
15612
15613 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15614 for GCs.
15615 (Finternal_set_font_selection_order): Call font_update_sort_order
15616 only when enable_font_backend is set.
15617 (realize_x_face): Set face->font_info to that of default face only
15618 when enable_font_backend is set.
15619
15620 * xdisp.c (handle_composition_prop): Set it->c to the fist
15621 character of the composed region.
15622 (fill_composite_glyph_string): Set base_face->font_info to
15623 s->font_info. Get a face for ascii from base_face->ascii_face.
15624 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15625 with a face already decided.
15626 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15627 non-negative.
15628 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15629 call font_prepare_composition unconditionally.
15630
15631 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15632
15633 * xterm.h (struct x_display_info): New member font.
15634
15635 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15636 (x_set_mouse_face_gc, x_new_font): Likewise.
15637 (x_term_init): Setup display_info->font.
15638 (x_delete_terminal): Free display_info->font.
15639
15640 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15641
15642 * ftxfont.c (ftxfont_default_fid): Delete it.
15643 (ftxfont_open): Set xfont->fid to 0.
15644 (ftxfont_end_for_frame): Clear data specific to the frame and the
15645 font-driver.
15646
15647 * xftfont.c (xftfont_default_fid): Delete it.
15648 (xftfont_open): Set xfont->fid to 0.
15649
15650 * fontset.c (FONTSET_OBJLIST): New macro.
15651 (fontset_find_font): Update font-object list of the fontset.
15652 (free_realized_fontset): New function.
15653 (free_face_fontset): Call free_realized_fontset.
15654 (Ffont_info): Call font_close_object only when enable_font_backend
15655 is set.
15656
15657 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15658 [HAVE_NTGUI]: Include w32term.h.
15659 [MAC_OS]: Include macterm.ch.
15660 (font_otf_ValueRecord): Use make_number.
15661 (font_finish_cache): Fix handling of reference count.
15662 (font_clear_cache): Update num_fonts.
15663 (font_open_entity): Update smallest_char_width and
15664 smallest_font_height of the frame.
15665 (font_close_object): Update num_fonts.
15666 (Fclear_font_cache): Fix finding the target cache data.
15667
156682008-02-16 Glenn Morris <rgm@gnu.org>
15669
15670 * fontset.c (Finternal_char_font): Fix compilation warning.
15671
156722008-02-16 Eli Zaretskii <eliz@gnu.org>
15673
15674 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15675 instead of char arrays. Enlarge the size of array passed to
15676 get_token_information.
15677
15678 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15679 warnings.
15680
156812008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15682
15683 * .gdbinit: Don't set `args', it breaks gdb --args.
15684
156852008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15686
15687 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15688 within a narrowed buffer.
15689
156902008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15691
15692 * coding.c (decode_coding_object, encode_coding_object):
15693 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15694
156952008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15696
15697 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15698 hardcoding 1.
15699 (detect_coding_system):
15700 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15701 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15702 * insdel.c (insert_from_gap):
15703 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15704 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15705 (string_to_multibyte):
15706 * character.c (chars_in_text, multibyte_chars_in_text):
15707 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15708
15709 * character.h (FETCH_STRING_CHAR_ADVANCE)
15710 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15711 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15712 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15713
15714 * casefiddle.c (casify_region): Only call after-change and composition
15715 functions on the part of the region that was changed.
15716
15717 * keyboard.c (read_avail_input):
15718 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15719
157202008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15721
15722 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15723 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15724
157252008-02-11 Juanma Barranquero <lekktu@gmail.com>
15726
15727 * w32menu.c (push_submenu_start, push_submenu_end)
15728 (push_left_right_boundary, push_menu_pane, push_menu_item):
15729 * keyboard.c (read_key_sequence): Don't pass args with side effects
15730 to AREF, it fails when compiling with -DENABLE_CHECKING.
15731
157322008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15733
15734 * Makefile.in (${lispsource}international/charprop.el):
15735 Delete this target.
15736
15737 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15738 emacs-unicode-2.
15739
157402008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15741
15742 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15743
157442008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15745
15746 * frame.c (Qnoelisp): New symbol.
15747 (syms_of_frame): Initialize it.
15748 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15749 harmless Elisp code, from a strong `force' from x_connection_closed.
15750 * frame.h (Qnoelisp): Declare.
15751 * xterm.c (x_connection_closed): Pass `noelisp'.
15752
15753 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15754 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15755 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15756 rather than `int' for the type of `type'.
15757
157582008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15759
15760 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15761
15762 * Makefile.in (GNUC): Remove support for gcc-1.x.
15763
157642008-02-10 Richard Stallman <rms@gnu.org>
15765
15766 * lisp.h (ASET): Use AREF, not ASLOT.
15767
157682008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15769
15770 * lisp.h (ASET): Check bounds.
15771
157722008-02-10 Glenn Morris <rgm@gnu.org>
15773
15774 * buffer.c (mode-name): Doc fix.
15775
157762008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15777
15778 * Makefile.in:
15779 * emacs.c:
15780 * gmalloc.c:
15781 * keyboard.c:
15782 * lisp.h:
15783 * m/ibm370aix.h:
15784 * process.c:
15785 * regex.c:
15786 * s/hpux.h:
15787 * sysdep.c:
15788 * sysselect.h:
15789 * systty.h:
15790 * unexec.c:
15791 * w32term.c:
15792 * xsmfns.c:
15793 * xterm.c: Remove code that deals with obsolete variables.
15794
15795 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15796
15797 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15798 nothing else needs it anymore.
15799
158002008-02-09 Eli Zaretskii <eliz@gnu.org>
15801
15802 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15803 instead of unibyte_char_to_multibyte.
15804
158052008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15806
15807 * s/gnu-linux.h: Remove commented out code.
15808
15809 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15810
15811 * Makefile.in: Update what RMS says about using autoconf.
15812 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15813 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15814 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15815 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15816
158172008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15818
15819 * keymap.c (Fkey_description): Move side effect outside of macro call.
15820
15821 * xfaces.c (Finternal_make_lisp_face):
15822 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15823
15824 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15825 (syms_of_fontset): Use ASET.
15826
15827 * fns.c (concat): Move side effect outside of macro call.
15828 (hash_clear): Use ASET.
15829
158302008-02-08 Richard Stallman <rms@gnu.org>
15831
15832 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15833 If FORCE, and frame has a surrogate minibuffer for another frame,
15834 delete the other frame first.
15835
158362008-02-07 Timo Savola <timo.savola@iki.fi>
15837
15838 * xterm.c (x_detect_focus_change): Handle embed client message.
15839 (handle_one_xevent): Ditto.
15840 (handle_one_xevent): If embedded and we get a button press/release,
15841 request focus.
15842 (xembed_set_info, xembed_send_message): New functions.
15843 (x_make_frame_visible): Call xembed_set_info if embedded.
15844 (x_make_frame_invisible): Call xembed_set_info if embedded.
15845 (x_term_init): Initialize Xatom_XEMBED.
15846 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15847 (x_iconify_frame): Ditto.
15848
15849 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15850 (enum xembed_info, enum xembed_message, enum xembed_focus)
15851 (enum xembed_modifier, enum xembed_accelerator): New.
15852 (xembed_set_info, xembed_send_message): Declare.
15853 (FRAME_X_EMBEDDED_P): New.
15854
15855 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15856 gtk_plug_new.
15857
15858 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15859 window ID of a frame.
15860 (x_window): Reparent frame if embedded.
15861 (Fx_create_frame): Don't set border width if embedded.
15862
15863 * emacs.c (USAGE3): Add --parent-id.
15864 (standard_args): Ditto.
15865
158662008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15867
15868 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15869
158702008-02-07 Jim Meyering <meyering@redhat.com>
15871
15872 Use "do...while (0)", not "if (1)...else" in macro definitions.
15873 The latter provokes a warning from gcc about the empty else, when
15874 followed by ";". Also, without that trailing semicolon, it would
15875 silently swallow up any following statement.
15876 * syntax.h (SETUP_SYNTAX_TABLE)
15877 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15878 * buffer.h (DECODE_POSITION): Likewise.
15879 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15880 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15881 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15882 (FETCH_CHAR_ADVANCE): Likewise.
15883 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15884
158852008-02-07 Jim Meyering <meyering@redhat.com>
15886
15887 * lread.c [lint]: Don't include <sys/inode.h>.
15888
158892008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15890
15891 * xselect.c (x_handle_dnd_message):
15892 * xmenu.c (digest_single_submenu, xmenu_show):
15893 * xdisp.c (with_echo_area_buffer_unwind_data)
15894 (format_mode_line_unwind_data, unwind_format_mode_line)
15895 (display_menu_bar):
15896 * eval.c (Ffetch_bytecode):
15897 * doc.c (store_function_docstring):
15898 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15899 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15900 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15901
159022008-02-07 Kenichi Handa <handa@m17n.org>
15903
15904 * ftxfont.c (ftxfont_open): Don't set
15905 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15906
15907 * ftfont.c (ftfont_open): Fix previous change.
15908
159092008-02-06 Jason Rumney <jasonr@gnu.org>
15910
15911 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15912 Use cached metrics for ASCII characters.
15913 (w32font_open_internal): Don't set font's owning_frame.
15914 Cache metrics for ASCII characters.
15915
15916 * w32font.h (struct w32font_info): Add ascii_metrics.
15917 Remove owning_frame.
15918
159192008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15920
15921 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15922 to negative value.
15923
15924 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15925
15926 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15927
15928 * charset.c (syms_of_charset): Set QCtest and Qeq.
15929
159302008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15931
15932 * process.c (Fstart_process):
15933 * callproc.c (Fcall_process): Handle the case where
15934 Funhandled_file_name_directory returns nil.
15935
15936 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15937 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15938 * font.c (check_gstring): Use them and AREF to access the vector before
15939 we know it's really a gstring.
15940 (Ffont_shape_text): Fix typo.
46e722a9 15941 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15942
15943 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15944 Declare.
15945
15946 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15947
159482008-02-05 Jason Rumney <jasonr@gnu.org>
15949
15950 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15951 Set smallest_font_height and smallest_char_width in display info.
15952
159532008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15954
15955 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15956
159572008-02-05 Miles Bader <miles@gnu.org>
15958
15959 * xfaces.c (get_lface_attributes, merge_named_face)
15960 (lookup_named_face, lookup_derived_face, realize_named_face):
15961 Revert 2008-02-01 change by cyd@stupidchicken.com.
15962
159632008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15964
15965 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15966 fallback fonts.
15967 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15968
159692008-02-04 Jason Rumney <jasonr@gnu.org>
15970
15971 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15972 set full_name.
15973 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15974
159752008-02-03 Jason Rumney <jasonr@gnu.org>
15976
15977 * makefile.w32-in (OBJ1): Include font.o here.
15978 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15979
159802008-02-02 Jason Rumney <jasonr@gnu.org>
15981
15982 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15983
159842008-02-01 Jason Rumney <jasonr@gnu.org>
15985
15986 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15987
15988 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15989
159902008-02-01 Andreas Schwab <schwab@suse.de>
15991
15992 * Makefile.in (shortlisp, lisp): Update for rename of
15993 ../lisp/language/myanmar.el.
15994
159952008-02-01 Chong Yidong <cyd@stupidchicken.com>
15996
15997 * xfaces.c (get_lface_attributes): Delete function.
15998 (merge_named_face, lookup_named_face, lookup_derived_face)
15999 (realize_named_face): Call lface_from_face_name directly, and use
16000 the fact that merge_face_vectors does not alter its FROM argument.
16001
160022008-02-01 Jason Rumney <jasonr@gnu.org>
16003
16004 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
16005 input in the default locale. Handle non-Unicode multibyte input.
16006
160072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16008
16009 * fontset.c (reorder_font_vector): Exclude nil elements from the
16010 font group. Don't try multiple fonts.
16011 (fontset_font): Adjust for the above change.
16012 (Finternal_char_font): Return nil if the found font doesn't
16013 contain the character ch.
16014
16015 * Makefile.in (lisp, shortlisp): Add cham.el.
16016
160172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16018
16019 * font.h (FONTP): Make it return 1 also for a font-object.
16020
16021 * .gdbinit (xfontset): New function.
16022
16023 * font.c (font_find_for_lface): Check if the character C is
16024 supported or not only for the first font.
16025
16026 * fontset.c (reorder_font_vector): Fix typo.
16027 (fontset_find_font): Don't add a font-spec specifying a script.
16028 Use 0 (not Qt) for the indication of empty font-group. Change the
16029 format of RFONT-DEF. Return Qt if no font in the font-group
16030 support the character.
16031 (fontset_font): Adjust for the above change. If no font was
16032 found the character, remember that.
16033 (face_for_char): Adjust for the change of RFONT-DEF.
16034 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
16035 no font for the target.
16036 (Finternal_char_font): Adjust for the change of RFONT-DEF.
16037
160382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16039
16040 * font.c (font_load_for_face): Handle the case that the font in
16041 face->lface is a string.
16042
160432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16044
16045 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
16046
160472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16048
16049 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
16050 Fix previous change. If the frame is not on a window system,
16051 signal an error.
16052
160532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16054
16055 * coding.c (decode_coding_object, encode_coding_object): Adjust
16056 marker positions after conversion.
16057
16058 * lisp.h (struct Lisp_Marker): New member need_adjustment.
16059
160602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16061
16062 * font.c (font_find_for_lface): Fix the handling of the return
16063 value of font_has_char.
16064 (Ffont_shape_text): Fix previous change.
16065
16066 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
16067 (fontset_ref_and_range): Delete it.
16068 (fontset_find_font): Call char_table_ref_and_range instead of
16069 FONTSET_REF_AND_RANGE.
16070 (make_fontset): Don't setup font groups of Latin here.
16071 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
16072 (new_fontset_from_font): Make the specified font the default for
16073 all Latin characters.
16074
160752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16076
16077 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16078 is on a window system before accessing the fontset of the frame.
16079
160802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16081
16082 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16083
16084 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16085 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16086
16087 * font.c (Ffont_shape_text): If the font driver doesn't have a
16088 shaper function, make zero-width glyphs to have at least one-pixel
16089 width. Fix setting of `to' field of glyphs.
16090
160912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16092
16093 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16094 glyphs.
16095
16096 * font.h (struct font_driver): Improve docstring of member `shape'.
16097
160982008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * composite.c (syms_of_composite): Fix docstring of
16101 auto-composition-function.
16102
16103 * font.h (LGLYPH_SIZE): New macro.
16104
16105 * font.c (Ffont_fill_gstring): Stop filling when a character not
16106 supported by the font is found.
16107 (Ffont_shape_text): When a shape callback function returns nil,
16108 try at most two more times with larger gstring.
16109 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16110
16111 * xdisp.c (handle_auto_composed_prop): Change the argument to
16112 auto-composition-function.
16113
16114 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16115 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16116 Lispy glyph and store it in the lgstring.
16117
16118 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16119
16120 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16121
161222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16123
16124 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16125
16126 * fontset.c (Vfont_encoding_charset_alist): New variable.
16127 (syms_of_fontset): DEFVAR it.
16128 (reorder_font_vector, fontset_find_font): Optimize for the case of
16129 no need of reordering.
16130 (face_for_char): Map the charset property by
16131 Vfont_encoding_charset_alist.
16132
161332008-02-01 Jason Rumney <jasonr@gnu.org>
16134
16135 * w32font.c (logfonts_match): Don't check adstyle here.
16136 (font_matches_spec): Check here against physical font instead.
16137 (add_font_entity_to_list): Avoid some substitutions.
16138
16139 * font.c (font_parse_fcname): Default weight and slant to normal.
16140 (font_score): Prefer normal fonts if weight or slant unspecified.
16141 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16142 match freetype scores.
16143
161442008-02-01 Jason Rumney <jasonr@gnu.org>
16145
16146 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16147 font, as it may have been deleted.
16148 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16149 most common hyphenless variation.
16150 (logfonts_match): Check generic family.
16151 (font_matches_spec): Don't check generic family here.
16152 (fill_in_logfont): Set generic family based on adstyle.
16153
16154 * w32font.h (w32font_get_cache): Update declaration.
16155
161562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16157
16158 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16159
16160 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16161 If none of the new drivers are available, call font_update_drivers
16162 with the old drivers.
16163
16164 * w32font.c (w32font_get_cache): Adjust the argument type.
16165
16166 * xfont.c (xfont_get_cache): Adjust the argument type.
16167
16168 * font.h (struct font_driver): Change argument type of get_cache.
16169
16170 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16171
16172 * font.c (Ffont_get): Fix arguments to Fassoc.
16173 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16174 (font_clear_cache): New function.
16175 (font_list_entities, font_matching_entity): Use font_get_cache.
16176 (font_update_drivers): Call font_clear_cache when finishing a driver.
16177
16178 * fontset.c (fontset_find_font): Fix previous change.
16179
161802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16181
16182 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16183 dpyinfo->font_table.
16184 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16185 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16186
16187 * font.c (font_at): Handle the case that the arg C is negative.
16188 Handle the unibyte case.
16189 (Ffont_at): Call font_at with the arg C -1.
16190
16191 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16192 the position here, and call font_at with the arg C -1.
16193 Don't check the range of the existing composition at the point.
16194
161952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16196
16197 * fontset.c (fontset_add): New args charset_id and family.
16198 Change caller.
16199 (load_font_get_repertory, fontset_find_font): Assume that
16200 font_spec is always a font-spec object.
16201 (Fset_fontset_font): Always store a font-spec object in a fontset.
16202
16203 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16204 instead of get_property_and_range.
16205
162062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16207
16208 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16209 (xftfont_open): Don't keep locking face.
16210 (xftfont_close): Don't unlock face.
16211 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16212
16213 * fontset.c (fontset_find_font): Don't prefer a font of
16214 supplementary charset.
16215
162162008-02-01 Kenichi Handa <handa@m17n.org>
16217
16218 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16219 script, langsys_tag to langsys, new member script.
16220 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16221 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16222 listing to the script specified in that property. Fix arg to
16223 OTF_check_features.
16224
162252008-02-01 Jason Rumney <jasonr@gnu.org>
16226
16227 * w32font.h: New file.
16228
16229 * w32font.c: Include it.
16230 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16231 (w32font_open): Set owning_frame.
16232 (w32font_text_extents): Use owning_frame.
16233 (struct font_callback_data): Add opentype_only field.
16234 (add_font_entity_to_list): Use it to filter fonts.
16235 Don't check against full name.
16236 (w32font_list_internal): New function.
16237 (w32font_list): Use it.
16238 (w32font_match_internal): New function.
16239 (w32font_match): Use it.
16240 (w32font_open_internal): New function.
16241 (w32font_open): Use it.
16242 (w32font_get_cache, w32font_close, w32font_has_char)
16243 (w32font_encode_char, w32font_text_extents, w32font_draw):
16244 Make non-static.
16245
16246 * makefile.w32-in (w32font.o): Depend on w32font.h.
16247
162482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16249
16250 * charset.c (Fdefine_charset_internal): Record a supplementary
16251 charset at the tail of Vcharset_order_list.
16252
16253 * font.c (Ffont_shape_text): Fix the return value.
16254
16255 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16256
16257 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16258
162592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16260
16261 * ftfont.c (struct OpenTypeSpec): New struct.
16262 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16263 (ftfont_get_open_type_spec): New function.
16264 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16265
16266 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16267
162682008-02-01 Jason Rumney <jasonr@gnu.org>
16269
16270 * w32font.c (add_font_entity_to_list): Compare only the beginning
16271 of full name.
16272
162732008-02-01 Kenichi Handa <handa@m17n.org>
16274
16275 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16276 Never return HANDLED_RECOMPUTE_PROPS.
16277
162782008-02-01 Kenichi Handa <handa@m17n.org>
16279
16280 * font.c (font_gstring_produce): Delete it.
16281
16282 * composite.h (COMPOSITION_METHOD):
16283 Handle COMPOSITION_WITH_GLYPH_STRING.
16284
162852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16286
16287 * xfont.c (Qx): Delete.
16288 (syms_of_xfont): Don't initialize Qx.
16289
16290 * composite.h (enum composition_method):
16291 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16292
162932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16294
16295 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16296 (choose_face_font): Accept new form of font-spec.
16297
16298 * frame.h (font_driver_list): Declare it unconditionally.
16299 (struct frame): Define members font_driver_list and font_data_list
16300 unconditionally.
16301
16302 * fontset.c: Include "font.h" unconditionally.
16303 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16304 (Fset_fontset_font): Accept a font-spec object.
16305
16306 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16307 PIXEL_SIZE part a wild card.
16308
16309 * dispextern.h (struct glyph_string): Define members clip and
16310 num_clips unconditionally.
16311 (struct face): Define members font_info and extra unconditionally.
16312
16313 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16314 ftfont_info only when HAVE_LIBOTF is defined.
16315
163162008-02-01 Andreas Schwab <schwab@suse.de>
16317
16318 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16319 and end.
16320
163212008-02-01 Jason Rumney <jasonr@gnu.org>
16322
16323 * w32font.c (w32font_driver): Add new fields.
16324
163252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16326
16327 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16328 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16329 (LIBES): Add @M17N_FLT_CFLAGS@.
16330
16331 * composite.c (compose_text): Don't treat the new style
16332 composition specially.
16333
16334 * emacs.c (main): Call syms_of_font unconditionally.
16335
16336 * font.h (FONT_ENTITY_NOT_LOADABLE)
16337 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16338 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16339 (struct font_driver): New member shape.
16340 (font_registry_charsets): Extern it.
16341 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16342 (font_otf_capability, font_drive_otf): Delete their externs.
16343
16344 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16345 (font_charset_alist, font_registry_charsets): Move from xfont.c
16346 and rename.
16347 (font_prop_validate_otf): New function.
16348 (font_property_table): Register it for QCotf.
16349 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16350 (font_drive_otf): Delete.
16351 (font_prepare_composition): New arg F. Adjust for the change of
16352 lispy gstring.
16353 (font_find_for_lface): New arg C.
16354 (font_load_for_face): Adjust for the change of font_find_for_lface.
16355 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16356 lispy gstring.
16357 (Ffont_shape_text): New function.
16358 (Fopen_font): If the font size is not given, use 12-pixel.
16359 (Ffont_at): New arg STRING.
16360 (syms_of_font): Initalize font_charset_alist.
16361 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16362 conditionally.
16363
16364 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16365 fonts of the same font-spec. Change the format of RFONT-DEF.
16366 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16367 Adjust for the change of RFONT-DEF.
16368 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16369
16370 * ftfont.h: New file.
16371
16372 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16373 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16374 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16375 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16376 font_otf_capability and font_drive_otf, set ftfont_shape.
16377 (ftfont_list): Adjust for the change of :otf property value.
16378 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16379 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16380 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16381 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16382 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16383 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16384
16385 * w32term.c (x_draw_composite_glyph_string_foreground):
16386 Adjust for the change of lispy gstring.
16387
16388 * xdisp.c (handle_composition_prop): Adjust for the change of
16389 lispy gstring. Call a function for auto-composition with the
16390 third arg it->window.
16391 (fill_composite_glyph_string): Adjust for the change of lispy string.
16392 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16393
16394 * xfaces.c (set_font_frame_param): Adjust for the change of
16395 font_find_for_lface.
16396
16397 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16398 (xfont_registry_charsets): Likewise. Change caller.
16399 (syms_of_xfont): Don't handle x_font_charset_alist.
16400
16401 * xftfont.c: Include "ftfont.h".
16402 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16403 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16404 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16405 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16406 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16407 Set xftfont_driver.shape to xftfont_shape.
16408
16409 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16410 the change of lispy gstring.
16411
164122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16413
16414 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16415
164162008-02-01 Jason Rumney <jasonr@gnu.org>
16417
16418 * w32font.c (w32font_draw): Fill background manually.
16419
164202008-02-01 Jason Rumney <jasonr@gnu.org>
16421
16422 * font.c (Qfontp): Remove unused symbol.
16423 (QCantialias): New symbol.
16424 (syms_of_font): Define it.
16425 (font_property_table): Set a validator for QCantialias.
16426
16427 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16428 Define if not already.
16429 (QCfamily): Share with xfaces.c.
16430 (Qstandard, Qsubpixel, Qnatural): New symbols.
16431 (syms_of_w32font): Define them. Don't define QCfamily here.
16432 (w32_antialias_type, lispy_antialias_type): New functions.
16433 (w32_enumfont_pattern_entity): New arg requested_font.
16434 Set antialias parameter if non-default was requested.
16435 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16436
164372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16438
16439 * lread.c (read1): Undo the previous change.
16440
164412008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16442
16443 * frame.c (Fdelete_frame): Call font_update_drivers only when
16444 USE_FONT_BACKEND is defined.
16445
164462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16447
16448 * font.h (struct font_bitmap): New member bits_per_pixel.
16449 (struct font_driver): New members start_for_frame and end_for_frame.
16450 (struct font_data_list): New struct.
16451 (font_put_frame_data, font_get_frame_data): Extern them.
16452
16453 * frame.h (struct frame): New member font_data_list.
16454
16455 * font.c (font_update_drivers): Call driver->start_for_frame and
16456 driver->end_for_frame at proper timings.
16457 (font_put_frame_data, font_get_frame_data): New functions.
16458 (Ffont_spec): Add usage in the docstring.
16459
16460 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16461 (Fdelete_frame): Call font_update_drivers.
16462
16463 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16464 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16465 (xftfont_get_xft_draw): New function.
16466 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16467 (xftfont_end_for_frame): New function.
16468 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16469
16470 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16471 Change argument. Cache GCs in the per-frame data.
16472 (struct ftxfont_frame_data): New struct.
16473 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16474 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16475 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16476 (ftxfont_end_for_frame): New function.
16477 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16478
16479 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16480
164812008-02-01 Kenichi Handa <handa@m17n.org>
16482
16483 * xselect.c (Vselection_coding_system)
16484 (Vnext_selection_coding_system): Delete them.
16485 (syms_of_xselect): Don't declare selection-coding-system and
16486 next-selection-coding-system. They are declared in select.el.
16487
164882008-02-01 Jason Rumney <jasonr@gnu.org>
16489
16490 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16491
16492 * w32fns.c: Include imm.h.
16493 (get_composition_string_fn, get_ime_context_fn): New optional
16494 system functions.
16495 (globals_of_w32fns): Load them from imm32.dll.
16496 (ignore_ime_char): New flag.
16497 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16498 WM_IME_ENDCOMPOSITION messages.
16499
16500 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16501 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16502
165032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16504
16505 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16506 (READCHAR_REPORT_MULTIBYTE): New macro.
16507 (readchar): New 2nd arg MULTIBYTE.
16508 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16509 Make symbol's name multibyte according to the multibyteness of the
16510 source.
16511
165122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16513
16514 * xfaces.c (face_for_overlay_string): Call lookup_face with
16515 correct arguments (fix of synching with the trunk).
16516
165172008-02-01 Kenichi Handa <handa@m17n.org>
16518
16519 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16520 (font_prop_validate_non_neg, font_prop_validate_spacing):
16521 Delete argument prop_index.
16522 (font_property_table): Change arguments to validater. Change Callers.
16523 (font_lispy_object): Delete.
16524 (font_at): Use font_find_object instead fo font_lispy_object.
16525
165262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16527
16528 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16529 and file names.
16530
165312008-02-01 Jason Rumney <jasonr@gnu.org>
16532
16533 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16534 (font_matches_spec): Remove debug output.
16535 (add_font_entity_to_list): Avoid using substituted fonts.
16536
165372008-02-01 Jason Rumney <jasonr@gnu.org>
16538
16539 * doc.c (Fsnarf_documentation):
16540 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16541
165422008-02-01 Miles Bader <miles@gnu.org>
16543
16544 * dispextern.h (struct glyph_row): Only define "clip" field if
16545 HAVE_WINDOW_SYSTEM is defined.
16546
165472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16548
16549 Fix up multi-tty merge.
16550
16551 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16552 and indentation.
16553
16554 * xfaces.c (free_realized_face, clear_face_gcs):
16555 Include font_done_for_face in the input_blocked section, just in case.
16556
16557 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16558 (get_char_face_and_encoding): Undo last change and remove the *other*
16559 duplicate definition (i.e. keep the one that's better scoped and that
16560 includes code for the font-backend).
16561
16562 * terminal.c (create_terminal): Default keyboard_coding to
16563 `no-conversion' and terminal_coding to `undecided'.
16564
16565 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16566
16567 * fontset.c (free_realized_fontsets): Check that the table entry does
16568 contain a fontset before trying to compare it to `base'.
16569
16570 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16571 syms_of_charset, and syms_of_coding earlier because init_window_once
16572 now needs Vcoding_system_hash_table to be setup.
16573
16574 * coding.h (default_buffer_file_coding): Remove.
16575
16576 * coding.c (default_buffer_file_coding): Remove.
16577 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16578 than ->symbol, and use the terminal-local coding system.
16579 (syms_of_coding): Don't setup the coding-systems that are not
16580 terminal-local.
16581 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16582
16583 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16584 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16585
16586 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16587 in chartab.c and were re-added here by mistake.
16588 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16589
16590 * doc.c (Fsnarf_documentation):
16591 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16592 src to etc.
16593
16594 * ChangeLog.10: Add mistakenly removed entry.
16595
165962008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16597
16598 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16599
166002008-02-01 Miles Bader <miles@gnu.org>
16601
16602 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16603 Add extra args to FACE_FOR_CHAR.
16604
166052008-02-01 Kenichi Handa <handa@m17n.org>
16606
16607 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16608 in sequence.
16609
16610 * chartab.c (map_sub_char_table, map_char_table): If the range
16611 contains just one character, call the function with that character
16612 even if the depth is not 3.
16613
166142008-02-01 Jason Rumney <jasonr@gnu.org>
16615
16616 * w32font.c (w32font_text_extents): Calculate metrics for the
16617 whole string.
16618
166192008-02-01 Jason Rumney <jasonr@gnu.org>
16620
16621 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16622
166232008-02-01 Jason Rumney <jasonr@gnu.org>
16624
16625 * w32term.c (x_set_glyph_string_clipping): Use
16626 get_glyph_string_clip_rects.
16627 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16628 Adjust for the change of struct glyph_string.
16629
16630 * w32font.c (w32font_draw): Do clipping here.
16631
166322008-02-01 Kenichi Handa <handa@m17n.org>
16633
16634 * xftfont.c (xftfont_draw): Adjust for the change of struct
16635 glyph_string.
16636
16637 * xterm.c (x_set_glyph_string_clipping): Use
16638 get_glyph_string_clip_rects.
16639 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16640 Adjust for the change of struct glyph_string.
16641
16642 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16643 the resulting clip(s}.
16644 (expose_overlaps): Add arg r. Change callers. Set it to
16645 row->clip temporarily.
16646 (expose_window): Redraw rows overlapping the exposed area.
16647
16648 * dispextern.h (struct glyph_row): New member clip.
16649 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16650 clip_height, new member clip, and num_clips.
16651
166522008-02-01 Kenichi Handa <handa@m17n.org>
16653
16654 * data.c (Fchar_or_string_p): Fix docstring.
16655
166562008-02-01 Kenichi Handa <handa@m17n.org>
16657
16658 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16659 create a temporary XftDraw object.
16660
166612008-02-01 Kenichi Handa <handa@m17n.org>
16662
16663 * font.c (Ffontp): Fix docstring.
16664
16665 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16666 strong evidence of ISO-2022.
16667
166682008-02-01 Kenichi Handa <handa@m17n.org>
16669
16670 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16671 SYNTAX_ENTRY_FOLLOW_PARENT.
16672
166732008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16674
16675 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16676 its type.
16677 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16678 Update to the new type of weak_hash_tables and next_weak.
16679
16680 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16681 a plain C pointer to Lisp_Hash_Table.
16682
16683 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16684 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16685 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16686 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16687 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16688 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16689 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16690 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16691 (GC_EQ): Remove since they've been identical to their non-GC_
16692 alter-egos ever since the markbit was eradicated.
16693
16694 * alloc.c:
16695 * buffer.c:
16696 * buffer.h:
16697 * data.c:
16698 * fileio.c:
16699 * filelock.c:
16700 * fns.c:
16701 * frame.h:
16702 * lisp.h:
16703 * macterm.c:
16704 * print.c:
16705 * process.c:
16706 * w32fns.c:
16707 * w32menu.c:
16708 * w32term.c:
16709 * xfns.c:
16710 * xmenu.c:
16711 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16712
167132008-02-01 Kenichi Handa <handa@m17n.org>
16714
16715 * chartab.c (map_sub_char_table): Make it work for the top-level
16716 char-table. Fix handling of parent char-table.
16717 (map_char_table): Adjust for the above change.
16718
167192008-02-01 Jason Rumney <jasonr@gnu.org>
16720
16721 * w32font.c (Qgdi): Rename from Qw32.
16722
167232008-02-01 Jason Rumney <jasonr@gnu.org>
16724
16725 * w32bdf.c (get_quoted_string): Make function static.
16726
167272008-02-01 Kenichi Handa <handa@m17n.org>
16728
16729 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16730 bigger ascent and descent than those of the font, use them as
16731 font's ascent and descent.
16732
167332008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * Makefile.in (${lispsource}international/charprop.el): Move this
16736 target within "#ifdef HAVE_UNIDATA" and "#endif".
16737
167382008-02-01 Kenichi Handa <handa@m17n.org>
16739
16740 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16741 (shortlisp): Add ../lisp/language/tai-viet.el.
16742
167432008-02-01 Ulrich Mueller <ulm@gentoo.org>
16744
16745 * Makefile.in (${lispsource}international/charprop.el): Depend on
16746 temacs${EXEEXT}.
16747
167482008-02-01 Jason Rumney <jasonr@gnu.org>
16749
16750 * w32font.c (w32font_close): Delete the GDI font object.
16751
16752 * w32menu.c: Include character.h.
16753
16754 * w32proc.c: Likewise.
16755
16756 * w32select.c: Likewise.
16757
16758 * makefile.w32-in (w32proc.o): Depend on character.h.
16759
167602008-02-01 Jason Rumney <jasonr@gnu.org>
16761
16762 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16763
16764 * w32menu.c (syms_of_w32menu): Likewise.
16765
16766 * w32proc.c (syms_of_ntproc): Likewise.
16767
16768 * w32select.c (syms_of_w32select): Likewise.
16769
16770 * w32term.c (syms_of_w32term): Likewise.
16771
167722008-02-01 Jason Rumney <jasonr@gnu.org>
16773
16774 * w32font.c (w32font_draw): Delete brush after using it.
16775
167762008-02-01 Jason Rumney <jasonr@gnu.org>
16777
16778 * w32font.c (w32font_open): Don't set font_idx.
16779 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16780 to font settings.
16781 (w32font_draw): Fill background explicitly.
16782
167832008-02-01 Jason Rumney <jasonr@gnu.org>
16784
16785 * w32term.c (w32_initialize): Don't call w32font_initialize.
16786
16787 * w32font.c (w32font_info): Remove subranges.
16788 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16789 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16790 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16791 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16792 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16793 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16794 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16795 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16796 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16797 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16798 New symbols.
16799 (font_callback_data): New struct.
16800 (w32font_list, w32font_match): Use it.
16801 (w32font_open): Don't populate subranges.
16802 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16803 (w32font_encode_char): Always return unicode code-point as-is.
16804 (w32font_text_extents): Supply a transformation matrix to
16805 GetGlyphOutline. Never look up by glyph index. Avoid looping
16806 twice. Use unicode version of GetTexExtentPoint32 instead of
16807 glyph index version.
16808 (set_fonts_frame): Remove.
16809 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16810 set frame parameter. Use backward compatible fake foundries.
16811 Save generic family in extra slot under QCfamily. Make width slot
16812 constant. Save QCspacing value. Save list of scripts instead of
16813 binary subranges.
16814 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16815 (add_font_entity_to_list): Use font_callback_data struct. Filter
16816 unwanted fonts.
16817 (add_one_font_entity_to_list): Use font_callback_data struct.
16818 (w32_registry): Default to iso10646_1.
16819 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16820 string font registries. Don't fill in font name if it is a generic
16821 family name, fill family instead. Use spacing, family and script
16822 extra info to fill pitch, family and charset fields.
16823 (list_all_matching_fonts): Use font_callback_data struct.
16824 (unicode_range_for_char): Remove.
16825 (font_supported_scripts): New function.
16826 (w32font_initialize): Remove.
16827 (syms_of_w32font): Update which symbols are defined.
16828
168292008-02-01 Jason Rumney <jasonr@gnu.org>
16830
16831 * font.c (font_pixel_size): Reverse assq_no_quit args.
16832
16833 * w32term.h (FONT_WIDTH): Report max width, not average.
16834 (FONT_MAX_WIDTH): Remove.
16835 (FONT_AVG_WIDTH): New macro.
16836
16837 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16838 redefinition of FONT_WIDTH.
16839
16840 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16841 (w32_cache_char_metrics): Use FONT_WIDTH.
16842
16843 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16844
168452008-02-01 Jason Rumney <jasonr@gnu.org>
16846
16847 * w32font.c (w32font_open): Make lfHeight negative.
16848
16849 * w32fns.c (x_default_font_parameter): Use new style font name.
16850 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16851
168522008-02-01 Jason Rumney <jasonr@gnu.org>
16853
16854 * w32font.c (QCsubranges): New symbol.
16855 (w32font_open, w32font_has_char): Get subranges from subproperty
16856 of extra.
16857 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16858 (syms_of_w32font): Define :subranges symbol.
16859
16860 * font.c (font_put_extra): Expose externally.
16861
16862 * font.h (font_put_extra): Move declaration from font.c.
16863
16864 * font.c (Ffont_get): Use font driver to determine otf capability.
16865 (adjust_anchor): Check if driver defines anchor_point before using.
16866
16867 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16868 (w32font_draw): Use options.
16869 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16870 Fix detection of truetype fonts.
16871 (registry_to_w32_charset): Handle charsets other than iso8859-1
16872 expressed as lisp symbols.
16873 (w32_registry): Express charset as lisp symbol.
16874 (fill_in_logfont): Reverse pixel and point height logic.
16875 Don't set width here. Set quality to default.
16876
16877 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16878 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16879
16880 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16881 Remove redundant loop and allocation.
16882
16883 * makefile.w32-in (font.o, w32font.o): New objects.
16884 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16885 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16886
16887 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16888 STORE_XCHARB a valid l-value.
16889
16890 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16891 calculations for non-Truetype fonts.
16892 (x_draw_glyph_string): Sync with xterm.c.
16893 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16894 Remove redundant code.
16895 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16896
16897 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16898 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16899
16900 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16901 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16902
16903 * w32font.c: New file for w32 font backend.
16904
169052008-02-01 Kenichi Handa <handa@m17n.org>
16906
16907 * term.c: Don't include "buffer.h" twice.
16908
169092008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * character.c (Funibyte_string): New function.
16912 (syms_of_character): Defsubr it.
16913
169142008-02-01 Jason Rumney <jasonr@gnu.org>
16915
16916 * w32term.c [USE_FONT_BACKEND]:
16917 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16918 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16919 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16920 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16921 (x_free_frame_resources): Sync with xterm.c.
16922
169232008-02-01 Andreas Schwab <schwab@suse.de>
16924
16925 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16926 char-table size.
16927
169282008-02-01 Kenichi Handa <handa@m17n.org>
16929
16930 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16931
169322008-02-01 Kenichi Handa <handa@m17n.org>
16933
16934 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16935 font_otf_gpos, add font_drive_otf.
16936
16937 * fontset.c (fontset_find_font): Pay attention to font size
16938 specified for a font.
16939 (reorder_font_vector): Check contents of font_def.
16940
16941 * font.c (struct otf_list): Delete it.
16942 (otf_list): Make it a lisp variable.
16943 (otf_open): Use lispy otf_list.
16944 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16945 (check_otf_features): New function.
16946 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16947 New functions.
16948 (font_drive_otf): New function merging font_otf_gsub and
16949 font_otf_gpos.
16950 (font_open_for_lface): New arg spec. Change argument order.
16951 (font_load_for_face): Adjust for the change of font_open_for_lface.
16952 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16953 Ffont_otf_gpos.
16954 (syms_of_font): Staticpro otf_list. Delete defsubr of
16955 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16956
16957 * xfaces.c (set_font_frame_param): Adjust for the change of
16958 font_open_for_lface.
16959
16960 * font.h (font_open_for_lface): Adjust prototype.
16961 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16962 member otf_drive.
16963 (font_otf_gsub, font_otf_gpos): Delete externs.
16964 (font_drive_otf): Extern it.
16965
169662008-02-01 Kenichi Handa <handa@m17n.org>
16967
16968 * font.c (font_at): If the window W is not on a window system,
16969 return Qnil.
16970
16971 * coding.c (produce_chars, encode_coding): Don't call
16972 insert_from_gap if no characters to produce.
16973
169742008-02-01 Kenichi Handa <handa@m17n.org>
16975
16976 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16977 Fclear_face_cache.
16978
16979 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16980
169812008-02-01 Miles Bader <miles@gnu.org>
16982
16983 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16984 Parse "--disable-font-backend" option.
16985 (standard_args): Add "--disable-font-backend" option.
16986
169872008-02-01 Kenichi Handa <handa@m17n.org>
16988
16989 * fontset.c (fontset_find_font): New function.
16990 (fontset_font): Use fontset_find_font.
16991 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16992 Register the specified font for all Latin characters.
16993 (new_fontset_from_font): Register the specified font for all Latin
16994 characters.
16995 (dump_fontset): For a realized fontset, include the base fontset
16996 name in the returned vector.
16997
169982008-02-01 Kenichi Handa <handa@m17n.org>
16999
17000 * character.h (CHAR_STRING): Cast C to unsigned on calling
17001 char_string.
17002
17003 * character.c (char_string): Type of arg C changed to unsigned.
17004 Signal an error if C is an invalid character code.
17005
17006 * editfns.c (general_insert_function, Fchar_to_string):
17007 Use CHARACTERP, not INTEGERP.
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 * character.h (MIN_MULTIBYTE_LEADING_CODE)
17012 (MAX_MULTIBYTE_LEADING_CODE): New macros.
17013
17014 * regex.c (analyse_first): Fix for multibyte characters in "case
17015 charset:" and "case categoryspec:".
17016
170172008-02-01 Andreas Schwab <schwab@suse.de>
17018
17019 * Makefile.in (LIBES): Move standard libraries to the end.
17020
170212008-02-01 Kenichi Handa <handa@m17n.org>
17022
17023 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
17024 nonzero, don't shrink the buffer nextb.
17025
17026 * buffer.h (struct buffer_text): New member inhibit_shrinking.
17027
17028 * coding.c (coding_alloc_by_making_gap): New arg offset.
17029 (alloc_destination): Call coding_alloc_by_making_gap with the arg
17030 offset.
17031 (decode_coding_iso_2022): Update coding->safe_charsets.
17032 (decode_coding_gap): Temporarily set
17033 current_buffer->text->inhibit_shrinking to 1.
17034
170352008-02-01 Kenichi Handa <handa@m17n.org>
17036
17037 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
17038 indexing into elements of s->cmp and s->char2b.
17039
170402008-02-01 Juanma Barranquero <lekktu@gmail.com>
17041
17042 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
17043
170442008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
17047 target_multibyte instead of multibyte.
17048 (re_match_2_internal): Call bcmp_translate with target_multibyte.
17049 (bcmp_translate): Change the argument name from multibyte to
17050 target_multibyte.
17051
170522008-02-01 Kenichi Handa <handa@m17n.org>
17053
17054 These changes are to compile a regexp into a pattern that can be
17055 used both for multibyte and unibyte targets.
17056
17057 * Makefile.in (search.o): Depend on charset.h.
17058
17059 * character.c (multibyte_char_to_unibyte_safe): New function.
17060
17061 * search.c: Include "charset.h".
17062 (compile_pattern_1): Delete argument multibyte. Don't set
17063 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
17064 (compile_pattern): Don't compare cp->buf.target_multibyte.
17065 Compare cp->buf.charset_unibyte.
17066 (compile_pattern): Set cp->buf.target_multibyte.
17067
17068 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
17069
17070 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
17071
17072 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17073 multibyte. Change callers.
17074 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17075 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17076 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17077 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17078 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17079 (regex_compile): Make the compiled pattern usable both for
17080 multibyte and unibyte targets.
17081 (analyse_first): Make the fastmap usable both for multibyte and
17082 unibyte targets.
17083 (TRANSLATE_VIA_MULTIBYTE): Delete.
17084 (re_match_2_internal): Pay attention to the case that the
17085 multibyteness of bufp and target may be different.
17086
170872008-02-01 Kenichi Handa <handa@m17n.org>
17088
17089 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17090 empty box occupy at least one column width.
17091
170922008-02-01 Miles Bader <miles@gnu.org>
17093
17094 * Makefile.in: Remove redundant HAVE_XFT clause.
17095
170962008-02-01 Kenichi Handa <handa@m17n.org>
17097
17098 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17099
171002008-02-01 Kenichi Handa <handa@m17n.org>
17101
17102 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17103 being nil.
17104
171052008-02-01 Kenichi Handa <handa@m17n.org>
17106
17107 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17108
171092008-02-01 Kenichi Handa <handa@m17n.org>
17110
17111 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17112
171132008-02-01 Kenichi Handa <handa@m17n.org>
17114
17115 * search.c (simple_search): Fix previous change.
17116
171172008-02-01 Kenichi Handa <handa@m17n.org>
17118
17119 * xftfont.c (ftfont_font_format): Extern declaration.
17120
17121 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17122
17123 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17124 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17125
17126 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17127 (ftfont_font_format): Fix previous change.
17128
17129 * font.h (Ffont_xlfd_name): EXFUN it.
17130
17131 * font.c (font_parse_xlfd): Fix the array size of `f'.
17132 (register_font_driver): Use EQ to compare driver->type.
17133
17134 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17135 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17136 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17137
171382008-02-01 Kenichi Handa <handa@m17n.org>
17139
17140 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17141 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17142
171432008-02-01 Kenichi Handa <handa@m17n.org>
17144
17145 * xfont.c (xfont_open): Set font->format.
17146
17147 * xftfont.c (xftfont_open): Set font->format.
17148
17149 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17150 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17151 (ftfont_open): Set font->format.
17152 (ftfont_font_format): New function.
17153
17154 * font.h (struct font): New member format.
17155
17156 * font.c (Qopentype): New variable.
17157 (syms_of_font): Defsym it.
17158 (Fquery_font): Change the format of the last element of the return
17159 value.
17160
171612008-02-01 Kenichi Handa <handa@m17n.org>
17162
17163 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17164 last resort.
17165
171662008-02-01 Kenichi Handa <handa@m17n.org>
17167
17168 * coding.c (detect_coding_charset): Fix detection of multi-byte
17169 charset.
17170
171712008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17172
17173 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17174
171752008-02-01 Kenichi Handa <handa@m17n.org>
17176
17177 * xdisp.c (get_next_display_element): Set it->face_id for the
17178 first component of a composition.
17179 (x_produce_glyphs): Check if the font is changed or not for composition.
17180
171812008-02-01 Kenichi Handa <handa@m17n.org>
17182
17183 * fontset.c (Qlatin): New variable.
17184 (syms_of_fontset): Define it as a lisp symbol.
17185 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17186
171872008-02-01 Kenichi Handa <handa@m17n.org>
17188
17189 * font.c (font_unparse_fcname): Pay attention to the case that
17190 some of font property is a null string.
17191
171922008-02-01 Kenichi Handa <handa@m17n.org>
17193
17194 * term.c: Include "composite.h".
17195 (encode_terminal_code): Output all components of composition.
17196 Check the size of encode_terminal_src.
17197 (produce_glyphs): For composition, call produce_composite_glyph.
17198 (append_composite_glyph, produce_composite_glyph): New functions.
17199
17200 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17201 is not found, get font_info from the current ascii face.
17202
172032008-02-01 Kenichi Handa <handa@m17n.org>
17204
17205 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17206 buffer-file-name to Qnil before calling insert_from_buffer.
17207
17208 * font.c (font_unparse_fcname): Pay attention to the case that
17209 foundry is a null string.
17210
172112008-02-01 Kenichi Handa <handa@m17n.org>
17212
17213 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17214
17215 * font.c (Qunicode_sip): New variable.
17216 (syms_of_font): Declare it as a Lisp symbol.
17217
17218 * font.h (Qunicode_sip): Extern it.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * composite.c (get_composition_id): Pay attention to TAB component.
17223
17224 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17225 TAB. Adjust for the change of s->char2b which always points to
17226 the first element of allocated memory.
17227
17228 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17229
17230 * xdisp.c (handle_composition_prop): Set it->c to the first
17231 non-TAB component.
17232 (fill_composite_glyph_string): Change argument.
17233 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17234 (x_produce_glyphs): Fix handling of left/right padding.
17235
172362008-02-01 Kenichi Handa <handa@m17n.org>
17237
17238 * coding.c (detect_coding_system): Fix for handling off
17239 inhibit_iso_escape_detection. Fix for the case that no coding
17240 system is defined for a specific coding category.
17241
172422008-02-01 Kenichi Handa <handa@m17n.org>
17243
17244 * font.c (font_matching_entity): Delete unused local var.
17245
17246 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17247 opening a font.
17248
17249 * fileio.c (Finsert_file_contents): On recovering a file, assume
17250 Unix-like eol.
17251 (choose_write_coding_system): On auto-saving a file, force
17252 Unix-like eol.
17253
17254 * coding.c (setup_coding_system): Fix setting of
17255 coding->common_flags based on eol_type.
17256 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17257 inherit from it.
17258
172592008-02-01 Kenichi Handa <handa@m17n.org>
17260
17261 * alloc.c (NSTATICS): Increas to 0x600.
17262
172632008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17266 (ftfont_list): Don't check :name property.
17267 (ftfont_match): New function.
17268 (ftfont_pattern_entity): If the pattern doesn't contain
17269 FC_SPACING, don't assume FC_MONO.
17270
17271 * font.h (struct font_driver): New member `match'.
17272 (font_update_drivers): Adjust prototype.
17273
17274 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17275 property of FONT.
17276 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17277 them unconditionally.
17278 (font_matching_entity): New function.
17279 (font_open_by_name): Try font_matching_entity if exact match is
17280 not found.
17281 (font_update_drivers): Delete the arg FONT. Return a list of
17282 actually used backends. Don't free faces, font caches here.
17283 Don't store data in frame parameters. Don't call x_set_font.
17284 (Ffont_spec): Store :name property as is.
17285 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17286 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17287 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17288 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17289 Call font->driver->otf_gsub instead of font_otf_gsub.
17290
17291 * frame.c (x_set_font_backend): Do more works that were done in
17292 font_update_drivers before.
17293
17294 * xfont.c (xfont_match): New function.
17295 (xfont_driver): Set xfont_driver.match to xfont_match.
17296 (xfont_draw): Set font in GC if necessary.
17297
17298 * ftxfont.c (ftxfont_match): New function.
17299 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17300
17301 * xftfont.c (xftfont_match): New function.
17302 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17303
173042008-02-01 Kenichi Handa <handa@m17n.org>
17305
17306 * font.h (struct font): New member scalable.
17307 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17308 (font_otf_gsub): Adjust prototype.
17309
17310 * font.c (font_otf_capability): Fix handling of the default langsys.
17311 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17312 Check the contents of SPEC.
17313 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17314 (check_gstring): New function.
17315 (REPLACEMENT_CHARACTER): New macro.
17316 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17317 glyph codes of GSTRING.
17318 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17319 (font_prepare_composition): Set cmp->glyph_len.
17320 (font_open_entity): Set font->scalable.
17321 (Ffont_get): Handle :otf property.
17322 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17323 functions.
17324 (Fquery_font): Use font->font.full_name.
17325 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17326 Sfont_otf_alternates.
17327
17328 * ftfont.c (ftfont_open): Set font->font.full_name and
17329 font->font.name properly. Fix calculation of font->font.height
17330 and font->min_width.
17331
17332 * ftxfont.c (ftxfont_create_gcs): New function.
17333 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17334 (ftxfont_draw_backgrond): Fix filling region.
17335 (ftxfont_default_fid): New function.
17336 (ftxfont_open): Set xfont->fid to the return value of
17337 ftxfont_default_fid.
17338 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17339 (ftxfont_done_face): Free only GCs that are created by
17340 ftxfont_create_gcs.
17341 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17342
17343 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17344 Clip to src->width, etc (not src->clip_XXX).
17345
17346 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17347 FontBackend frame parameter.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * font.h (struct font_driver_list): New member `on'.
17352 (Fclear_font_cache): EXFUN it.
17353 (font_update_drivers): Extern it.
17354
17355 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17356 (font_list_entities): Check driver_list->on.
17357 (register_font_driver): Initalize `on' member to 0.
17358 (font_update_drivers): New function.
17359 (Fclear_font_cache): Check driver_list->on.
17360
17361 * frame.h (Qfont_backend): Extern it.
17362 (x_set_font_backend): Extern it.
17363
17364 * frame.c (Qfont_backend): New variable.
17365 (frame_parms): New element for font-backend.
17366 (x_set_font_backend): New function.
17367
17368 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17369 FontBackend frame parameter.
17370 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17371 x_set_font_backend.
17372
17373 * xfont.c (xfont_list): Don't try listing by :name property if the
17374 name is not for XLFD.
17375
173762008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17379 (LGLYPH_SET_TO): New macros.
17380 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17381 element of G is vector or not.
17382 (font_at): Extern it.
17383
17384 * font.c: Include window.h.
17385 (font_lispy_object): New function.
17386 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17387 end of valid glyph.
17388 (font_close_object): Fix getting (struct font *).
17389 (font_at): New function.
17390 (Ffont_get): If FONT is a font-object, get entity from it.
17391 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17392 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17393 range check.
17394 (Ffont_at): New function.
17395 (syms_of_font): Defsubr Sfont_at.
17396
17397 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17398 before the entry for Qcomposition.
17399 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17400 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17401 the font in gstring.
17402 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17403 LGLYPH_FORM (g) to detect the end of valid glyph.
17404 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17405 we are composing with gstring.
17406
17407 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17408 Check if adjustment is vector or not.
17409
17410 * Makefile.in (font.o): Make it depends on window.h.
17411
174122008-02-01 Kenichi Handa <handa@m17n.org>
17413
17414 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17415 adjustment is vector or not.
17416
174172008-02-01 Miles Bader <miles@gnu.org>
17418
17419 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17420
174212008-02-01 Kenichi Handa <handa@m17n.org>
17422
17423 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17424 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17425 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17426
17427 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17428 (DEVICE_DELTA): Fix typo.
17429 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17430 LGLYPH format.
17431
17432 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17433 the change of LGLYPH format.
17434
174352008-02-01 Kenichi Handa <handa@m17n.org>
17436
17437 * ftfont.c (ftfont_list): Fix typo.
17438 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17439
174402008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17441
17442 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17443
17444 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17445 xftface_info is non-NULL.
17446
174472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17448
17449 * ftfont.c (ftfont_list): Move misplaced #endif.
17450
174512008-02-01 Kenichi Handa <handa@m17n.org>
17452
17453 * ftfont.c (ftfont_list): Pay attention to the case that
17454 FC_CAPABILITY is not defined.
17455
174562008-02-01 Kenichi Handa <handa@m17n.org>
17457
17458 * xftfont.c (xftfont_open): Set charset related members to -1.
17459
17460 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17461 QCname.
17462 (ftfont_open): Set charset related members to -1.
17463
17464 * fontset.c (Votf_script_alist): New variable.
17465 (syms_of_fontset): Initialize it.
17466 (fontset_font): Delete unused variable.
17467
17468 * fontset.h (Votf_script_alist): Extern it.
17469
17470 * font.c (font_find_for_lface): Optimize code.
17471
17472 * font.h (font_close_object, font_merge_old_spec): Extern them.
17473
174742008-02-01 Kenichi Handa <handa@m17n.org>
17475
17476 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17477 (syms_of_font): Initialize them.
17478 (font_pixel_size): Allow float value in dpi.
17479 (font_prop_validate_type): Delete.
17480 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17481 Change caller.
17482 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17483 (font_prop_validate_extra): Delete.
17484 (font_prop_validate_spacing): New function.
17485 (font_property_table): Add elements for all known properties.
17486 (get_font_prop_index): Rename from check_font_prop_name. New
17487 argument FROM. Change caller.
17488 (font_prop_validate): Validate all known properties.
17489 (font_put_extra): Delete argument force. Change caller.
17490 (font_expand_wildcards): Make it static. Fix the way of shrinking
17491 the possible range.
17492 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17493 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17494 Change caller.
17495 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17496 (font_parse_fcname): Delete argument merge. Fix parsing of point
17497 size. Don't validate properties values here. Change caller.
17498 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17499 (font_open_by_name): Delete unused variable.
17500 (Ffont_spec): Likewise. Validate property values.
17501 (Ffont_match_p): New function.
17502
17503 * font.h (QCscalable): Extern it.
17504 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17505
17506 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17507
17508 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17509 (xfont_list_pattern): New function.
17510 (xfont_list): Use xfont_list_pattern.
17511
175122008-02-01 Kenichi Handa <handa@m17n.org>
17513
17514 * font.h (Flist_fonts): EXFUN it.
17515
175162008-02-01 Jason Rumney <jasonr@gnu.org>
17517
17518 * w32term.c (w32_initialize): Add back smoothing_type and
17519 smoothing_enabled definitions.
17520
175212008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17524 s->face->font on determining underline position.
17525
175262008-02-01 Kenichi Handa <handa@m17n.org>
17527
17528 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17529 (font_has_char): Accept font-object too.
17530 (font_find_for_lface): Try at first with a size specified in face.
17531
175322008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17535 font_open_by_name.
17536
175372008-02-01 Kenichi Handa <handa@m17n.org>
17538
17539 * font.h (QCspacing, QCdpi): Extern them.
17540 (enum font_spacing): New enum.
17541 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17542
17543 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17544 (QCspacing, QCdpi): New variables.
17545 (syms_of_font): Initialize them.
17546 (font_pixel_size): New function.
17547 (font_put_extra): New function.
17548 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17549 in FONT_EXTRA.
17550 (font_parse_fcname): Handle enumerated values (e.g. bold).
17551 Fix handling font size. Add QCname property that contains only
17552 unknown properties.
17553 (font_score): Change argument. Change caller. Pay attention to
17554 FONT_PIXEL_SIZE_QUANTUM.
17555 (font_sort_entites, font_list_entities, font_find_for_lface)
17556 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17557 (Ffont_spec): Add QCname property that contains only unknown properties.
17558
17559 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17560 include weight in listing pattern, instead check weight of each
17561 listed font. Don't include scalable in pattern. Pay attention to
17562 FONT_PIXEL_SIZE_QUANTUM.
17563
175642008-02-01 Kenichi Handa <handa@m17n.org>
17565
17566 * font.c (font_parse_fcname): Fix parsing of point-size.
17567 (font_unparse_fcname): Produce symbolic names for style properties.
17568 (font_list_entities): Handle float size correctly.
17569 (font_open_by_name): Prefer `normal' property values if the name
17570 doesn't specify them.
17571
17572 * fontset.c (Finternal_char_font): Use font_get_name, not
17573 Ffont_xlfd_name.
17574
17575 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17576 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17577 pattern. Don't force scalable.
17578
17579 * xftfont.c (xftfont_open): For generating a name, start from
17580 96-byte buffer.
17581
175822008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17583
17584 * frame.h (x_new_fontset2): Fix prototype.
17585
175862008-02-01 Kenichi Handa <handa@m17n.org>
17587
17588 * font.h (struct font_driver): Delete member parse_name.
17589 (font_match_p, font_get_spec, font_parse_fcname)
17590 (font_unparse_fcname): Extern them.
17591 (font_get_name): Adjust prototype.
17592
17593 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17594 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17595 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17596 unnecessary checks for weight, slant, and swidth.
17597 (font_parse_fcname): New function.
17598 (font_unparse_fcname): New function.
17599 (font_parse_name): New function.
17600 (font_match_p): New function.
17601 (font_get_name): Change return value to Lisp string.
17602 (font_get_spec): New function.
17603 (Qunspecified, Qignore_defface): Don't extern them.
17604 (font_find_for_lface): Assume that LFACE is fully specified.
17605 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17606 object, use it for FACE.
17607 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17608 driver->parse_name.
17609 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17610
17611 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17612 prototype.
17613
17614 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17615 argument F. Don't call Fnew_fontset. Instead, directly call
17616 make_fontset.
17617
17618 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17619
17620 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17621 of x_new_fontset2.
17622
17623 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17624 (Qsans__serif): New variables.
17625 (ftfont_generic_family_list): New variable.
17626 (syms_of_ftfont): Initialize the above variables.
17627 (ftfont_pattern_entity): Delete argument NAME.
17628 (ftfont_list_generic_family): New function.
17629 (ftfont_parse_name): Delete this function.
17630 (ftfont_list): Try generic family only when FcFontList found no font.
17631 (ftfont_list_family): Fix args to FcObjectSetBuild.
17632
17633 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17634 object in attrs[LFACE_FONT_INDEX].
17635 (set_lface_from_font_name): Cancel all changes for font-backend.
17636 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17637 function.
17638 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17639 font object in QCfont attribute.
17640 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17641 (realize_default_face) [USE_FONT_BACKEND]: Call
17642 set_lface_from_font_and_fontset.
17643
17644 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17645 "fixed", and signal error here if no suitable font was found.
17646
17647 * xfont.c (xfont_parse_name): Delete this function.
17648
17649 * xftfont.c (xftfont_open): Change coding style of error
17650 handling. Generate fontconfig's fontname pattern.
17651
17652 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17653 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17654
17655 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17656 Both args FONTSET and FONT_OBJECT must be existing ones.
17657
176582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17659
17660 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17661
176622008-02-01 Kenichi Handa <handa@m17n.org>
17663
17664 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17665
17666 * font.h (struct font): Fix typo.
17667
17668 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17669 XLFD_XXX_INDEX.
17670 (enum xlfd_field_mask): New enum.
17671 (intern_font_field): Changed argument. Change caller. If digits
17672 are followed by non-digits, return a symbol.
17673 (font_expand_wildcards): New function.
17674 (font_parse_xlfd): Fix wildcard handling.
17675 (Ffont_spec): If :name is specified, reflect the info in the other
17676 properties.
17677
17678 * ftfont.c (ftfont_pattern_entity): Fix typo.
17679 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17680 locale.
17681
176822008-02-01 Kenichi Handa <handa@m17n.org>
17683
17684 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17685
17686 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17687 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17688 registry doesn't specify encoding part.
17689 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17690 (font_open_by_name): At first try parsing the name.
17691 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17692 as Lisp symbols.
17693
17694 * fontset.c (reorder_font_vector): Pay attention to the case that
17695 the 3rd element of font_def is nil.
17696 (fontset_font): For the default fontset, append one more fontset
17697 elements for a script-based font specification. Don't add script
17698 attribute on finding a font.
17699 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17700 font name.
17701 (fontset_ascii_font): If a font can't be opened, return nil.
17702
17703 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17704 (ftfont_pattern_entity): New function.
17705 (ftfont_get_cache): Assume that freetype_font_cache is already
17706 initialized.
17707 (ftfont_list): Handle the case that a file is specified in font
17708 name. Use ftfont_pattern_entity to generate entities.
17709 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17710 (syms_of_ftfont): Initialize freetype_font_cache.
17711
17712 * xftfont.c (xftfont_open): Make the font name fontconfig's
17713 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17714 (xftfont_close): Free font->font.name if not NULL.
17715
17716 * xfont.c (xfont_list): If script is specified for a font, return
17717 null_vector.
17718 (xfont_list_family): Declare argument type.
17719
17720 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17721 name, set LFACE_FONT (lface) to nil.
17722
17723 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17724 return Qnil.
17725
177262008-02-01 Kenichi Handa <handa@m17n.org>
17727
17728 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17729 (standard_args): Add "-enable-font-backend".
17730
177312008-02-01 Kenichi Handa <handa@m17n.org>
17732
17733 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17734 (struct xftdraw_list, xftdraw_list): Delete them.
17735 (register_xftdraw, check_xftdraw): Delete them.
17736 (xftfont_prepare_face): Don't call register_xftdraw.
17737 (xftfont_done_face): Don't call check_xftdraw.
17738 (xftfont_draw): Get background color only when with_background is
17739 nonzero.
17740
17741 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17742
177432008-02-01 Kenichi Handa <handa@m17n.org>
17744
17745 These changes are for the new font handling codes.
17746
17747 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17748 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17749 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17750 (FONTSRC, FONTOBJ): New variables.
17751 (obj): Add $(FONTOBJ).
17752 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17753 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17754 @LIBOTF_LIBS@.
17755 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17756 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17757
17758 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17759
17760 * character.h (Vscript_representative_chars): Extern it.
17761
17762 * character.c (Vscript_representative_chars): New variable.
17763 (syms_of_character): Declare it as a Lisp variable.
17764
17765 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17766 enable_font_backend is nonzero, accept the composition method
17767 COMPOSITION_WITH_GLYPH_STRING.
17768
17769 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17770 enumeration COMPOSITION_WITH_GLYPH_STRING.
17771
17772 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17773 members clip_x, clip_y, clip_width, and clip_height.
17774 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17775
17776 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17777 --enable-font-backend. Call syms_of_font.
17778
17779 * fns.c (assoc_no_quit): New function.
17780
17781 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17782 (face_for_font, new_fontset_from_font)
17783 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17784
17785 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17786 (fontset_font, fontset_ascii, face_for_char)
17787 (make_fontset_for_ascii_face, Ffont_info)
17788 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17789 is nonzero, use font-backend mechanism.
17790 (find_font_encoding): Make it non-static.
17791 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17792 New functions.
17793
17794 * frame.h (struct frame): New members resx and resy.
17795 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17796 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17797
17798 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17799 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17800
17801 * lisp.h (assoc_no_quit): Extern it.
17802
17803 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17804 Through out the file, use FONT_INFO_FROM_FACE instead of
17805 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17806 rif->per_char_metric.
17807 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17808 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17809 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17810 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17811 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17812 nonzero, use font-backend mechanism.
17813 (get_per_char_metric): New function.
17814
17815 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17816 (set_lface_from_font_name)
17817 (set_font_frame_param, free_realized_face)
17818 (prepare_face_for_display, clear_face_gcs)
17819 (Finternal_set_font_selection_order, realize_x_face)
17820 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17821 font-backend mechanism.
17822 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17823 (load_face_font) [USE_FONT_BACKEND]: Abort.
17824 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17825 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17826
17827 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17828 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17829 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17830 nonzero, register all available font drivers. Call
17831 x_default_font_parameter for deciding a font.
17832 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17833
17834 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17835 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17836 (x_set_glyph_string_clipping_exactly)
17837 (x_compute_glyph_string_overhangs)
17838 (x_draw_glyph_string_foreground)
17839 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17840 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17841 enable_font_backend is nonzero, use font-backend mechanism.
17842 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17843
178442008-02-01 Kenichi Handa <handa@m17n.org>
17845
17846 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17847 system_eol_type.
17848 (syms_of_coding): Initialize system_eol_type.
17849
17850 * process.c (Fset_process_coding_system): Inherit system's eol
17851 format if necessary.
17852
178532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17854
17855 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17856
178572008-02-01 Kenichi Handa <handa@m17n.org>
17858
17859 * coding.c (decode_eol): Pay attention to buffer relocation in
17860 del_range_2.
17861 (decode_coding): Call decode_eol before restoring undo_list.
17862
178632008-02-01 Kenichi Handa <handa@m17n.org>
17864
17865 * charset.c (Fdefine_charset_internal): Fix setting of
17866 emacs_mule_bytes.
17867
178682008-02-01 Kenichi Handa <handa@m17n.org>
17869
17870 * keyboard.c (read_char): Check if C is a character or not before
17871 looking up Vkeyboard_translate_table.
17872
178732008-02-01 Kenichi Handa <handa@m17n.org>
17874
17875 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17876 condition to terminate the loop.
17877
178782008-02-01 Kenichi Handa <handa@m17n.org>
17879
17880 * coding.c (produce_composition): Compare charbuf[i] instead of
17881 args[i] against 0.
17882 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17883
178842008-02-01 Kenichi Handa <handa@m17n.org>
17885
17886 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17887 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17888 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17889 detect_coding.
17890 (emacs_mule_char): Handle old style (Emacs 20) component character
17891 of a composition.
17892 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17893 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17894 composition rule.
17895 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17896
178972008-02-01 Kenichi Handa <handa@m17n.org>
17898
17899 * coding.c (encode_coding_ccl): Allocate destination dynamically
17900 when necessary.
17901
179022008-02-01 Kenichi Handa <handa@m17n.org>
17903
17904 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17905 the loop. When quitted, show a proper error message.
17906
179072008-02-01 Kenichi Handa <handa@m17n.org>
17908
17909 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17910 src->clip_head and src->clip_tail temporarily instead of src->hl.
17911
17912 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17913 character sequence.
17914 (Fccl_execute_on_string): Use ASET, not XSET.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17919
179202008-02-01 Kenichi Handa <handa@m17n.org>
17921
17922 * coding.c (decode_coding): Fix the condition of terminating the
17923 decoding loop.
17924
179252008-02-01 Kenichi Handa <handa@m17n.org>
17926
17927 * data.c (Faset): On setting a character bigger than 255 in a
17928 unibyte string, signal an error instead of make the string multibyte.
17929
179302008-02-01 Kenichi Handa <handa@m17n.org>
17931
17932 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17933 made by a mapping table.
17934
179352008-02-01 Kenichi Handa <handa@m17n.org>
17936
17937 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17938 not.
17939 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17940 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17941
17942 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17943 s->face is NULL or not.
17944
179452008-02-01 Kenichi Handa <handa@m17n.org>
17946
17947 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17948 (x_draw_glyph_string): Fix drawing of right_overhang and
17949 left_overhang around/on cursor.
17950
17951 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17952
179532008-02-01 Kenichi Handa <handa@m17n.org>
17954
17955 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17956
179572008-02-01 Kenichi Handa <handa@m17n.org>
17958
17959 * coding.c (Fdefine_coding_system_internal)
17960 (Fdefine_coding_system_alias): Avoid a duplicated element in
17961 Vcoding_system_alist.
17962
179632008-02-01 Kenichi Handa <handa@m17n.org>
17964
17965 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17966
17967 * coding.c (Qcoding_system_define_form): New variable.
17968 (syms_of_coding): Intern and staticpro it.
17969 (Fcoding_system_p): Check Qcoding_system_define_form.
17970 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17971
17972 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17973 Fcoding_system_p.
17974 (CHECK_CODING_SYSTEM): If ID is not available, call
17975 Fcheck_coding_system.
17976 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17977 Try also Fcheck_coding_system.
17978
179792008-02-01 Kenichi Handa <handa@m17n.org>
17980
17981 * coding.c (code_conversion_restore): GCPRO arg.
17982
179832008-02-01 Kenichi Handa <handa@m17n.org>
17984
17985 * character.c (lisp_string_width): Check multibyteness of STRING.
17986
179872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17988
17989 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17990 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17991 (decode_mac_font_name): Use decode_coding_c_string instead of
17992 decode_coding.
17993 (x_load_font): Initialize fontp->fontset to -1. Set
17994 fontp->encoding_type.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * search.c (search_buffer): Give up BM search on case-fold-search
17999 if one of a target character has a case-equivalence of different
18000 byte length even if that target charcter is an ASCII.
18001 (simple_search): Fix calculation of byte length of matched text.
18002 (boyer_moore): Fix handling of case-equivalent multibyte characters.
18003
180042008-02-01 Kenichi Handa <handa@m17n.org>
18005
18006 * coding.c (decode_coding): Fix handling of invalid bytes.
18007
180082008-02-01 Kenichi Handa <handa@m17n.org>
18009
18010 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
18011 Unicode characters.
18012
180132008-02-01 Kenichi Handa <handa@m17n.org>
18014
18015 * coding.c (encode_coding_object): If a pre-write-conversion
18016 function makes a new buffer, kill it.
18017
180182008-02-01 Kenichi Handa <handa@m17n.org>
18019
18020 * coding.c (QCascii_compatible_p): New variable.
18021 (syms_of_coding): Initialize it.
18022 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
18023 calling string_char.
18024 (record_conversion_result): Add `default:' case.
18025 (coding_charset_list): Delete unused variable `coding_type'.
18026 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
18027 property in the plist of the coding system.
18028 (Fcoding_system_put): Check QCascii_compatible_p.
18029
180302008-02-01 Miles Bader <miles@gnu.org>
18031
18032 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
18033 removed calculation of frame `f', as it's now used.
18034
180352008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
18038 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
18039 (UNIDATA): New variable.
18040 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
18041 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
18042 $(RUN_TEMACS) unconditionally.
18043
180442008-02-01 Kenichi Handa <handa@m17n.org>
18045
18046 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
18047 (admindir): New variable.
18048 ($(lispsource)international/charprop.el): New target.
18049
180502008-02-01 Miles Bader <miles@gnu.org>
18051
18052 * character.c (chars-in-region): Remove obsolete function.
18053 (syms_of_character): Remove its initialization.
18054
180552008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
18056
18057 * w32select.c (validate_coding_system)
18058 (setup_windows_coding_system): New functions.
18059 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
18060 setup_windows_coding_system.
18061 (setup_config, Fw32_get_clipboard_data): Use
18062 validate_coding_system.
18063 (Fx_selection_exists): Move call to setup_config to a place
18064 where signals are allowed.
18065
18066 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
18067 (Fcheck_coding_system): Add declarations.
18068
180692008-02-01 Kenichi Handa <handa@m17n.org>
18070
18071 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
18072
180732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18074
18075 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18076 string as the second argument for x_new_fontset.
18077
180782008-02-01 Kenichi Handa <handa@m17n.org>
18079
18080 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18081 (encode_coding_object): Use safe_call instead of call2.
18082
180832008-02-01 Kenichi Handa <handa@m17n.org>
18084
18085 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18086
18087 * Makefile.in (lisp): Include charprop.el.
18088
180892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18090
18091 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18092 Not sure if it's unnecessary.
18093
180942008-02-01 Steven Tamm <steventamm@mac.com>
18095
18096 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18097 some possibly unnecessary fontset checking code that crashed
18098 when creating a new frame.
18099
181002008-02-01 Kenichi Handa <handa@m17n.org>
18101
18102 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18103 lookup_face.
18104
18105 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18106
18107 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18108
181092008-02-01 Kenichi Handa <handa@m17n.org>
18110
18111 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18112 (coding_charset_list): New function.
18113
18114 * coding.h (coding_charset_list): Extern it.
18115
181162008-02-01 Kenichi Handa <handa@m17n.org>
18117
18118 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18119 concatenation of family and registry.
18120
181212008-02-01 Kenichi Handa <handa@m17n.org>
18122
18123 * character.h (BYTE8_STRING): Fix typo.
18124
18125 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18126 string to multibyte (sync to HEAD).
18127
18128 * casefiddle.c (casify_region): Handle changes in byte-length
18129 using replace_range_2 (sync to HEAD).
18130
181312008-02-01 Andreas Schwab <schwab@suse.de>
18132
18133 * chartab.c (map_char_table): GCPRO table and arg.
18134
181352008-02-01 Kenichi Handa <handa@m17n.org>
18136
18137 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18138 already at limit.
18139
181402008-02-01 Kenichi Handa <handa@m17n.org>
18141
18142 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18143 instead of fast_c_string_match_ignore_case.
18144 (find_font_encoding): Change argument to Lisp_Object. Use
18145 fast_string_match_ignore_case instead of
18146 fast_c_string_match_ignore_case. Change caller.
18147
181482008-02-01 Kenichi Handa <handa@m17n.org>
18149
18150 * xdisp.c (get_next_display_element): In unibyte case, decide to
18151 display in octal form by checking a character by
18152 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18153
18154 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18155
18156 * character.c (unibyte_has_multibyte_table): New variable.
18157
18158 * character.h (unibyte_has_multibyte_table): Extern it.
18159 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18160
181612008-02-01 Kenichi Handa <handa@m17n.org>
18162
18163 * coding.c (encode_coding_iso_2022): Fix handling of charset
18164 annotation.
18165
181662008-02-01 Kenichi Handa <handa@m17n.org>
18167
18168 * coding.c (setup_coding_system): If coding_system is nil, use
18169 Qundecided.
18170 (Fterminal_coding_system): Return nil if terminal coding system is
18171 `undecided'.
18172 (syms_of_coding): Define coding-system `undecided' here. Setup
18173 terminal_coding as `undecided'.
18174
181752008-02-01 Kenichi Handa <handa@m17n.org>
18176
18177 * xdisp.c (message_dolog, set_message_1): Call
18178 unibyte_char_to_multibyte with arg type int.
18179
18180 * lread.c (read1): Fix reading of a char-table.
18181
18182 * print.c (print_object): Include sub char-table in circularities
18183 detection.
18184
181852008-02-01 Kenichi Handa <handa@m17n.org>
18186
18187 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18188 Append the found sequences in car of ARGS instead of prepending.
18189
181902008-02-01 Kenichi Handa <handa@m17n.org>
18191
18192 * fileio.c (report_file_error): Make a unibyte string from
18193 strerror (errorno).
18194 (Fsubstitute_in_file_name): Fix the arg to
18195 unibyte_char_to_multibyte. It is evaluated twice.
18196
181972008-02-01 Kenichi Handa <handa@m17n.org>
18198
18199 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18200
182012008-02-01 Kenichi Handa <handa@m17n.org>
18202
18203 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18204 BOM is not found.
18205 (detect_coding, detect_coding_system): Optimization for ISO-2022
18206 when no 8-bit data is found.
18207
182082008-02-01 Jason Rumney <jasonr@gnu.org>
18209
18210 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18211
182122008-02-01 Kenichi Handa <handa@m17n.org>
18213
18214 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18215 CHARS.
18216
182172008-02-01 Steven Tamm <steventamm@mac.com>
18218
18219 * macterm.c (mac_encode_char): Add charset argument and update
18220 to use encoding_type.
18221 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18222 switch to pure fontset.
18223 (decode_mac_font_name): Temporarily remove decoding.
18224 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18225 (x_load_font): Temporarily remove encoding.
18226
182272008-02-01 Kenichi Handa <handa@m17n.org>
18228
18229 * xfaces.c (Fface_font): If frame is not on a window system,
18230 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18231 refer to face->font.
18232 (split_font_name_into_vector, build_font_name_from_vector)
18233 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18234 when HAVE_WINDOW_SYSTEM is defined.
18235
182362008-02-01 Kenichi Handa <handa@m17n.org>
18237
18238 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18239 (x_produce_glyphs): Fix setting of members of cmp in case
18240 cmp->glyph_len is zero.
18241
18242 * fontset.c (Fset_fontset_font): Fix docstring.
18243 (Ffontset_info): Make it backward compatible. New arg ALL.
18244
182452008-02-01 Kim F. Storm <storm@cua.dk>
18246
18247 * process.c (read_process_output): Grow decoding_buf when needed;
18248 this could cause a crash in allocate_string and compact_small_strings.
18249
182502008-02-01 Kenichi Handa <handa@m17n.org>
18251
18252 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18253
182542008-02-01 Kenichi Handa <handa@m17n.org>
18255
18256 * coding.c (setup_coding_system): Set coding->common_flags
18257 correctly for raw-text.
18258 (consume_chars): On encoding unibyte text by raw-text, don't check
18259 multibyte form.
18260 (encode_coding): On encoding by raw-text, never use translation tables.
18261
18262 * fileio.c (e_write): Short cut for the case of no encoding.
18263
182642008-02-01 Kenichi Handa <handa@m17n.org>
18265
18266 * coding.c (detect_coding, detect_coding_system): Delete unused
18267 variables.
18268
182692008-02-01 Kenichi Handa <handa@m17n.org>
18270
18271 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18272 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18273
182742008-02-01 Kenichi Handa <handa@m17n.org>
18275
18276 * coding.c (Ffind_coding_systems_region_internal): Include
18277 raw-text and no-conversion in the result.
18278
182792008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18282 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18283 FONT_DEF.
18284 (font_def_arg, add_arg, from_arg, to_arg): New args.
18285 (set_fontset_font): Change argument.
18286 (Fset_fontset_font): Fix for the case that TARGET is a script
18287 name and charset name.
18288 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18289
182902008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * fontset.c (fontset_font): Rename from fontset_face. Change return
18293 value.
18294 (face_suitable_for_char_p, face_for_char): Adjust for the change
18295 of fontset_font.
18296 (make_fontset_for_ascii_face): Fix setting of the fontset element
18297 for ASCII.
18298 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18299 to get a font name.
18300 (Ffontset_info): Adjust for the change of fontset_font.
18301
18302 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18303
18304 * character.h (LEADING_CODE_LATIN_1_MIN)
18305 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18306
183072008-02-01 Kenichi Handa <handa@m17n.org>
18308
18309 * editfns.c (check_translation): New function.
18310 (Ftranslate_region_internal): Handle M:N mapping.
18311
183122008-02-01 Kenichi Handa <handa@m17n.org>
18313
18314 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18315
183162008-02-01 Kenichi Handa <handa@m17n.org>
18317
18318 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18319 goto invalid_code.
18320 (decode_coding_iso_2022): Fix handling of invalid designation.
18321
18322 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18323 after calling code_conversion_save.
18324
183252008-02-01 Kenichi Handa <handa@m17n.org>
18326
18327 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18328
18329 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18330
18331 * fontset.c: Include "intervals.h".
18332 (fontset_face): Fix comparing of Lisp_Objects.
18333 (free_face_fontset, new_fontset_from_font_name): Fix
18334 Lisp_Object/int mixup.
18335
18336 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18337
18338 * coding.c: Add many prototypes for static functions.
18339 (get_translation_table): Allow max_lookup to be NULL.
18340 (decode_coding, Ffind_coding_systems_region_internal)
18341 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18342 get_translation_table with max_lookup NULL.
18343
183442008-02-01 Kenichi Handa <handa@m17n.org>
18345
18346 * coding.c (get_translation_table): Declare it as Lisp_Object.
18347 (LOOKUP_TRANSLATION_TABLE): New macro.
18348 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18349 instead of CHAR_TABLE_REF.
18350
183512008-02-01 Kenichi Handa <handa@m17n.org>
18352
18353 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18354 annotation data format.
18355 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18356 Change arguments FROM and TO to single argument NCHARS. Change caller.
18357 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18358 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18359 (decode_coding_ccl, decode_coding_charset): Pay attention to
18360 coding->charbuf_used.
18361 (get_translation): New function.
18362 (produce_chars): New arguments translation_table and last_block.
18363 Translate characters here. Return number of carryover chars.
18364 Change caller.
18365 (produce_composition): New argument pos. Change caller.
18366 Adjust for the change of annotation data format.
18367 (produce_charset, produce_annotation): Likewise.
18368 (decode_coding, encode_coding): Don't call translate_chars.
18369 (consume_chars): New arg translation_table. Change caller.
18370 (translate_chars): Delete.
18371 (syms_of_coding): Make translation-table's number of extra slots 2.
18372
183732008-02-01 Kenichi Handa <handa@m17n.org>
18374
18375 * search.c (simple_search): Fix setting this_pos_byte in backward
18376 search.
18377
18378 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18379 byte sequence.
18380 (detect_coding_ccl): Fix setting of the variable valids.
18381
183822008-02-01 Kenichi Handa <handa@m17n.org>
18383
18384 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18385
18386 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18387
18388 * editfns.c (Ftranslate_region_internal): Rename from
18389 Ftranslate_region. Accept a char-table in TABLE.
18390 (syms_of_editfns): Defsubr Stranslate_region_internal.
18391
18392 * xfaces.c (set_lface_from_font_name): If a font is specified for
18393 a frame, generate a fontset from the font.
18394 (build_scalable_font_name): If the scalable font is requested for
18395 a specific size, don't change that size.
18396 (try_font_list): Try a scalable font also in the case that a
18397 pattern string is specified.
18398
183992008-02-01 Kenichi Handa <handa@m17n.org>
18400
18401 * xfaces.c (Fface_font): New optional arg CHARACTER.
18402
184032008-02-01 Kenichi Handa <handa@m17n.org>
18404
18405 * charset.h (CHARSET_OFFSET): New macro.
18406
184072008-02-01 Kenichi Handa <handa@m17n.org>
18408
18409 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18410
18411 * fontset.c (fontset_face): Handle the case that repertory is a
18412 char-table.
18413 (find_font_encoding): Return nil for unknown encoding.
18414 (Fset_fontset_font): Ignore a font of unknown encoding.
18415
184162008-02-01 Kenichi Handa <handa@m17n.org>
18417
18418 * keymap.c (describe_vector): Handle default value of a char table.
18419
18420 * fontset.c (fontset_face): Handle fallback fonts correctly.
18421 (Ffontset_info): Return infomation about fallback fonts.
18422
184232008-02-01 Kenichi Handa <handa@m17n.org>
18424
18425 * fontset.c (FONTSET_DEFAULT): New macro.
18426 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18427 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18428 the case that it is nil.
18429 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18430 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18431
18432 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18433 subset or superset.
18434
184352008-02-01 Kenichi Handa <handa@m17n.org>
18436
18437 * emacs.c (main): Call init_charset after syms_of_XXX.
18438
18439 * charset.c (Vcharset_map_directory): Delete.
18440 (Vcharset_map_path): New variable.
18441 (load_charset_map_from_file): Use Vcharset_map_path instead.
18442 (init_charset): Initialize Vcharset_map_path.
18443 (syms_of_charset): Delete declaration of "charset-map-directory",
18444 add declaration of "charset-map-path".
18445
184462008-02-01 Kenichi Handa <handa@m17n.org>
18447
18448 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18449 ASCII only string.
18450
18451 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18452
18453 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18454 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18455
184562008-02-01 Kenichi Handa <handa@m17n.org>
18457
18458 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18459
18460 * coding.c (QCmnemonic, QCdefalut_char)
18461 (QCdecode_translation_table, QCencode_translation_table)
18462 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18463 (get_translation_table): Return a list of translation tables if
18464 necessary.
18465 (decode_coding): Call get_translation_table with ENCODEP 0.
18466 (char_encodable_p): If translation_table is non-nil, always call
18467 translate_char.
18468 (Fdefine_coding_system_internal): Accept list of translation
18469 tables as :encode-translation-table and :decode-translation-table.
18470 (Fcoding_system_put): New function.
18471 (syms_of_coding): Declare new symbols. Defsubr
18472 Scoding_system_put.
18473 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18474 typically JISX0212.
18475
18476 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18477 when the charset is superset type.
18478
18479 * character.c (translate_char): Accept list of translation tables.
18480
184812008-02-01 Kenichi Handa <handa@m17n.org>
18482
18483 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18484 (CODING_ATTR_TRANS_TBL): New macro.
18485
18486 * coding.c (get_translation_table): New function.
18487 (translate_chars): Fix the bug of skipping annotation data.
18488 (decode_coding, encode_coding): Utilize get_translation_table.
18489 (char_encodable_p, Funencodable_char_position): Translate char if
18490 necessary.
18491 (Ffind_coding_systems_region_internal)
18492 (Fcheck_coding_systems_region): Setup translation table for encode
18493 in a coding system attribute vector in advance.
18494 (Fdefine_coding_system_internal): Allow a symbol as translation
18495 table. For shift-jis type coding system, allow 4th charset.
18496
184972008-02-01 Kenichi Handa <handa@m17n.org>
18498
18499 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18500
18501 * xdisp.c (get_next_display_element): Pass -1 as POS to
18502 FACE_FOR_CHAR if displaying a C-string.
18503
185042008-02-01 Kenichi Handa <handa@m17n.org>
18505
18506 * composite.c (get_composition_id): Handle xoff and yoff in a
18507 composition rule.
18508
18509 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18510 (struct composition): New member lbearing and rbearing.
18511
18512 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18513 (x_get_glyph_overhangs): Handle a composition glyph.
18514 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18515
18516 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18517 composition glyph.
18518
185192008-02-01 Kenichi Handa <handa@m17n.org>
18520
18521 * print.c: Include charset.h.
18522 (Vprint_charset_text_property): New variable.
18523 (Qdefault): Extern it.
18524 (PRINT_STRING_NON_CHARSET_FOUND)
18525 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18526 (print_check_string_result): New variable.
18527 (print_check_string_charset_prop): New function.
18528 (print_prune_charset_plist): New variable.
18529 (print_prune_string_charset): New function.
18530 (print_object): Call print_prune_string_charset if
18531 Vprint_charset_text_property is not t.
18532 (print_interval): Print nothing if interval->plist is nil.
18533 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18534 variable. Init and staticpro print_prune_charset_plist.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * fontset.c (new_fontset_from_font_name): Use the specified font
18539 for all characters in the new fontset.
18540
18541 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18542 OBJECT args.
18543
18544 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18545 OBJECT args for composition too.
18546
18547 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18548 OBJECT args.
18549
185502008-02-01 Kenichi Handa <handa@m17n.org>
18551
18552 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18553
18554 * fontset.c (reorder_font_vector): Adjust for the change of
18555 FONT_DEF format.
18556 (fontset_face): New arg id. Change caller.
18557 (face_for_char): New args pos and object.
18558 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18559 (fs_query_fontset): Check NAME by Fassoc too.
18560 (Fset_fontset_font): Allow non-XLFD font name.
18561 (Ffontset_info): Adjust for the change of FONT_DEF format.
18562
18563 * fontset.h (face_for_char): Adjust prototype.
18564
18565 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18566 (append_space, extend_face_to_end_of_line)
18567 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18568 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18569
18570 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18571 POS and OBJECT args.
18572
18573 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18574 POS and OBJECT args.
18575
185762008-02-01 Jason Rumney <jasonr@gnu.org>
18577
18578 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18579 of GlobalAlloc'ed memory.
18580
185812008-02-01 Kenichi Handa <handa@m17n.org>
18582
18583 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18584
18585 * charset.h (charset_table_used): Delete extern.
18586
18587 * charset.c (charset_table_used): Make it static.
18588 (map_charset_chars): Fix args to c_function with.
18589
18590 * chartab.c (map_sub_char_table_for_charset): Fix args to
18591 c_function with.
18592
18593 * coding.h (enum coding_result_code): Delete
18594 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18595
18596 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18597 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18598 (Vlast_code_conversion_error): New variables.
18599 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18600 (ONE_MORE_BYTE): Record error if any instead of signaling an
18601 error. If non-ASCII multibyte char is found, return the negative
18602 value of the code. All callers changed to check it.
18603 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18604 (record_conversion_result): New function. Change all codes setting
18605 coding->result to call this function.
18606 (detect_coding_utf_8, decode_coding_utf_8)
18607 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18608 Don't use the local variable incomplete.
18609 (emacs_mule_char): Change the second arg to `const'.
18610 (decode_coding): Fix of flushing out unprocessed data.
18611 (make_conversion_work_buffer): Fix making of a work buffer.
18612 (decode_coding_object): Return coding->dst_object.
18613
18614 * fontset.c (set_fontset_font): Fix args.
18615
18616 * lisp.h (CHARACTERBITS): Define as 22.
18617
18618 * process.c (send_process): Be sure to set coding->src_multibyte.
18619
18620 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18621
186222008-02-01 Kenichi Handa <handa@m17n.org>
18623
18624 * xdisp.c (handle_auto_composed_prop): Give limit to
18625 Fnext_single_char_property_change.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * composite.c (syms_of_composite): Don't make the composition hash
18630 table weak.
18631
18632 * fontset.c (Fset_fontset_font): Fix docstring.
18633
18634 * lisp.h (detect_coding_system): Adjust prototype.
18635
18636 * fileio.c (kill_workbuf_unwind): Delete this function.
18637 (Finsert_file_contents): Adjust the call of detect_coding_system.
18638 Get conversion_buffer by code_conversion_save. Use the macro
18639 CODING_MAY_REQUIRE_DECODING. After decoding, update
18640 coding_system.
18641
18642 * coding.h (make_conversion_work_buffer): Delete extern.
18643 (code_conversion_save): Extern it.
18644
18645 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18646 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18647 (decode_coding_utf_8): Don't do eol converion.
18648 (detect_coding_utf_16): Check coding->src_chars, not
18649 coding->src_bytes. Add heuristics for those that have no signature.
18650 (decode_coding_emacs_mule, decode_coding_iso_2022)
18651 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18652 Don't do eol converion.
18653 (adjust_coding_eol_type): Return a new coding system.
18654 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18655 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18656 each change.
18657 (decode_coding): Pay attention to undo_list. Do eol conversion for
18658 all types of coding-systems (if necessary).
18659 (Vcode_conversion_work_buf_list): Delete it.
18660 (Vcode_conversion_reused_workbuf): Rename from
18661 Vcode_conversion_reused_work_buf.
18662 (Vcode_conversion_workbuf_name): New variable.
18663 (reused_workbuf_in_use): New variable.
18664 (make_conversion_work_buffer): Delete the arg DEPTH.
18665 (code_conversion_restore): Change argument to cons.
18666 (code_conversion_save): Delete the argument BUFFER. Change callers.
18667 (detect_coding_system): New argument src_chars. Change callers.
18668 Fix for utf-16 detection.
18669 (init_coding_once): Don't use ISO_carriage_return.
18670 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18671 reused_workbuf_in_use.
18672
186732008-02-01 Kenichi Handa <handa@m17n.org>
18674
18675 * keymap.c (store_in_keymap): Pay attention to the case that idx
18676 is a cons specifying a character range.
18677
186782008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18681 HANDLED_RECOMPUTE_PROPS.
18682
18683 * coding.c (Fdefine_coding_system_internal): Fix checking of
18684 ascii compatibility.
18685
186862008-02-01 Kenichi Handa <handa@m17n.org>
18687
18688 * charset.c (find_charsets_in_text): Delete unused locale variable.
18689 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18690
18691 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18692 Resync charset_list to Vemacs_mule_charset_list.
18693
18694 * keymap.c (store_in_keymap): Pay attention to the case that idx
18695 is a cons specifying a character range.
18696
186972008-02-01 Kenichi Handa <handa@m17n.org>
18698
18699 * composite.c (update_compositions): Bind inhibit-read-only, etc
18700 to t before calling remove-list-of-text-properties.
18701
18702 * print.c (print_object): Always print ASCII chars as is.
18703
187042008-02-01 Kenichi Handa <handa@m17n.org>
18705
18706 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18707
18708 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18709 is a char table.
18710
187112008-02-01 Kenichi Handa <handa@m17n.org>
18712
18713 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * xfaces.c (set_lface_from_font_name): Fix for the case that
18718 FONTNAME is not fontset name.
18719
187202008-02-01 Kenichi Handa <handa@m17n.org>
18721
18722 * fns.c (base64_encode_1): Fix previous change.
18723
187242008-02-01 Kenichi Handa <handa@m17n.org>
18725
18726 * fontset.c (set_fontset_font): New function.
18727 (Fset_fontset_font): If a font is specified for a charset, use
18728 map_charset_chars to store the font spec in a fontset.
18729
187302008-02-01 Kenichi Handa <handa@m17n.org>
18731
18732 * fontset.c (fontset_face): Create a fallback fontset on demand.
18733 (make_fontset): Don't create a fallback fontset here.
18734 (free_face_fontset): Free a fallback fontset (if any) too.
18735 (n_auto_fontsets): Delete this variable.
18736 (auto_fontset_alist): New variable.
18737 (new_fontset_from_font_name): Check auto_fontset_alist.
18738 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18739 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18740 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18741 Defsubr Sfontset_list_all.
18742
187432008-02-01 Kenichi Handa <handa@m17n.org>
18744
18745 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18746
187472008-02-01 Kenichi Handa <handa@m17n.org>
18748
18749 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18750
187512008-02-01 Kenichi Handa <handa@m17n.org>
18752
18753 * editfns.c (Fgoto_char): Fix docstring.
18754
187552008-02-01 Kenichi Handa <handa@m17n.org>
18756
18757 * insdel.c (insert_from_gap): Adjust intervals correctly.
18758
187592008-02-01 Jason Rumney <jasonr@gnu.org>
18760
18761 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18762 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18763 (w32_initialize): Try to load it.
18764 (x_get_font_repertory): Use it if available.
18765 (w32_encode_char): Add shortcut for unicode output.
18766
18767 * w32fns.c (w32_load_system_font): Default charset to -1.
18768 (x_to_w32_charset): Match all fonts for unicode.
18769 (w32_to_x_charset): New parameter matching. Don't return partial
18770 or wildcard charsets.
18771 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18772 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18773 (w32_to_x_font): Match charset to real charset.
18774 (enum_font_cb2): Always list unicode versions.
18775
18776 * makefile.w32-in (temacs): Increase EMHEAP.
18777
187782008-02-01 Jason Rumney <jasonr@gnu.org>
18779
18780 * w32term.c (w32_encode_char): New charset parameter.
18781 font_info.encoding becomes encoding_type.
18782 (x_get_font_repertory): New function. Warning: stub only!
18783 (x_new_font): Return quickly if font already set.
18784 (x_new_fontset): fontsetname parameter is Lisp_Object.
18785 Use new fs_query_fontset. Try new_fontset_from_font_name.
18786 Use fontset_name for return value.
18787
18788 * w32term.h: Declare x_get_font_repertory.
18789
18790 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18791 place of find_charset_in_text. Use encode_coding_object in place
18792 of encode_coding.
18793 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18794 decode_coding.
18795
18796 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18797 of x_new_fontset.
18798 (w32_load_system_font): Initialize charset as unicode.
18799 font_info.encoding becomes encoding_type.
18800 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18801 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18802 (syms_of_w32fns): Set get_font_repertory_func.
18803
18804 * w32console.c: Include character.h. Use terminal_encode_buffer
18805 from term.c.
18806 (write_glyphs): Use new version of encode_terminal_code. Use
18807 encode_coding_object in place of encode_coding.
18808
18809 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18810 encoding becomes encoding_type.
18811
18812 * term.c (terminal_encode_buffer): Make externally visible.
18813
18814 * makefile.w32-in: Add character.h dependancies.
18815 (character.o, chartab.o): New targets.
18816
188172008-02-01 Kenichi Handa <handa@m17n.org>
18818
18819 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18820 CODING_ID_EOL_TYPE.
18821
188222008-02-01 Andreas Schwab <schwab@suse.de>
18823
18824 * coding.c (produce_chars): Revert last change.
18825
188262008-02-01 Kenichi Handa <handa@m17n.org>
18827
18828 * charset.h (charset_unicode): Extern it.
18829
18830 * charset.c (string_xstring_p): Check by (C >= 0x100).
18831 (find_charsets_in_text): Change format of the arc CHARSETS. New
18832 arg MULTIBYTE.
18833 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18834 change of find_charsets_in_text.
18835 (Fsplit_char): Fix doc. Never return unknown.
18836
18837 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18838
18839 * coding.c (Fdefine_coding_system_alias): Update
18840 Vcoding_system_list.
18841
18842 * fontset.c (load_font_get_repertory): Pay attention to the case
18843 that ENCODING of a font is specified by a char-table.
18844
18845 * xterm.c (x_get_font_repertory): Handle the case that the
18846 encoding of font is other than Unicode.
18847
188482008-02-01 Kenichi Handa <handa@m17n.org>
18849
18850 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18851 if a character is encodable by the terminal coding system. If
18852 not, produces proper number of `?'s. Update
18853 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18854 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18855
188562008-02-01 Kenichi Handa <handa@m17n.org>
18857
18858 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18859 variables.
18860 (encode_terminal_code): Change argument. Encode multiple
18861 characters at once. Store the result of encoding in
18862 terminal_encode_buffer.
18863 (write_glyphs, insert_glyphs): Adjust for the change of
18864 encode_terminal_code.
18865 (term_init): Initialize terminal_encode_buffer and
18866 terminal_encode_buf_size.
18867
18868 * coding.c (consume_chars): If coding->src_object is nil, don't
18869 check annotation.
18870
188712008-02-01 Kenichi Handa <handa@m17n.org>
18872
18873 * character.c (char_string): Use ASCII_CHAR_P instead of
18874 SINGLE_BYTE_CHAR_P.
18875
188762008-02-01 Kenichi Handa <handa@m17n.org>
18877
18878 * xdisp.c (handle_auto_composed_prop): Check if the last
18879 characters of auto-composed region is newly composed with the
18880 following characters.
18881 (handle_composition_prop): Fix checking of point being inside
18882 composition.
18883
188842008-02-01 Kenichi Handa <handa@m17n.org>
18885
18886 * fns.c (concat): Don't change multibyteness of the result by
18887 concatenating an 8-bit character.
18888
18889 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18890 multibyteness of the result when newelt is an 8-bit character.
18891
188922008-02-01 Dave Love <fx@gnu.org>
18893
18894 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18895 EMACS_INT.
18896
18897 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18898
18899 * xfaces.c (face_numeric_value): Declare dim size_t.
18900 (Finternal_lisp_face_equal_p): Remove unused f.
18901
18902 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18903 (MATRIX_ROW): Remove unused vars.
18904 (draw_glyphs, x_insert_glyphs, fast_find_position)
18905 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18906 byte/char counts.
18907
18908 * regex.c (regex_compile): Remove unused var.
18909
18910 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18911
18912 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18913 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18914
18915 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18916
18917 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18918
18919 * fileio.c (Fwrite_region): Remove unused var.
18920
18921 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18922 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18923
18924 * composite.c (Fremove_list_of_text_properties): Declare.
18925
18926 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18927 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18928 (coding_inherit_eol_type): Remove unused attrs.
18929 (detect_coding): Cast arg of detect_eol.
18930
18931 * charset.c (syms_of_charset): Remove unused var p.
18932 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18933 byte/char counts.
18934
18935 * casetab.c (set_case_table): Remove unused var.
18936
18937 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18938 unused vars.
18939
189402008-02-01 Dave Love <fx@gnu.org>
18941
18942 * xterm.c (x_bitmap_mask): Declare.
18943
189442008-02-01 Dave Love <fx@gnu.org>
18945
18946 * xterm.c (x_term_init): Fix type error.
18947
18948 * lisp.h: Add Funibyte_char_to_multibyte.
18949
18950 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18951 (Fset_coding_system_priority): Doc fix.
18952
18953 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18954
18955 * indent.c (check_composition): Make start and end EMACS_INT.
18956
18957 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18958
18959 * xdisp.c (handle_composition_prop, check_point_in_composition):
18960 Make buffer positions EMACS_INT.
18961
18962 * composite.c (find_composition, run_composition_function)
18963 (update_compositions, Ffind_composition_internal): Make buffer
18964 positions EMACS_INT.
18965
18966 * composite.h (find_composition, update_compositions): Make
18967 position args EMACS_INT.
18968
18969 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18970
18971 * intervals.c (get_property_and_range):
18972 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18973
18974 * unexalpha.c: Don't include varargs.h.
18975
189762008-02-01 Dave Love <fx@gnu.org>
18977
18978 * coding.h (ENCODE_UTF_8): New.
18979
18980 * Makefile.in (gtkutil.o): Depend on coding.h.
18981
18982 * coding.c (Fset_coding_system_priority): Doc fix.
18983
189842008-02-01 Kenichi Handa <handa@m17n.org>
18985
18986 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18987 the case of auto saving.
18988
189892008-02-01 Andreas Schwab <schwab@suse.de>
18990
18991 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18992 `range' from GC.
18993
189942008-02-01 Kenichi Handa <handa@m17n.org>
18995
18996 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18997
189982008-02-01 Kenichi Handa <handa@m17n.org>
18999
19000 * fileio.c (choose_write_coding_system): Return a decided coding system.
19001 (Fwrite_region): Set Vlast_coding_system_used to the return value
19002 of choose_write_coding_system.
19003
190042008-02-01 Kenichi Handa <handa@m17n.org>
19005
19006 * charset.c (Fset_charset_priority): Pay attention to duplicated
19007 arguments.
19008
19009 * coding.c (QCcategory): New variable.
19010 (syms_of_coding): Defsym it. Set all elements of
19011 Vcoding_category_table and their symbol values.
19012 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
19013 coding-category-XXX, and coding-category-list.
19014 (Fdefine_coding_system_internal): Add category in the plist.
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * callproc.c (Fcall_process): Handle carryover correctly.
19019
19020 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
19021 (raw_text_coding_system): Check NILP (coding_system).
19022 (coding_inherit_eol_type): Check NILP (coding_system) and
19023 NILP (parent).
19024 (consume_chars): Fix for the case of raw-text.
19025
19026 * process.c (read_process_output): Handle carryover correctly.
19027
190282008-02-01 Dave Love <fx@gnu.org>
19029
19030 * regex.c (re_search_2): Fix last change.
19031
190322008-02-01 Kenichi Handa <handa@m17n.org>
19033
19034 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
19035 target_multibyte. Even in a unibyte case, return a converted
19036 multibyte char.
19037 (GET_CHAR_AFTER): New macro.
19038 (PATFETCH): Translate via multibyte char.
19039 (HANDLE_UNIBYTE_RANGE): Delete this macro.
19040 (SETUP_MULTIBYTE_RANGE): New macro.
19041 (regex_compile): Setup compiled code so that its multibyteness
19042 matches that of a target. Fix the handling of "[X-YZ]" using
19043 SETUP_MULTIBYTE_RANGE.
19044 (analyse_first) <charset>: For filling fastmap for all multibyte
19045 characters, don't check by BASE_LEADING_CODE_P.
19046 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
19047 the same as RE_MULTIBYTE_P (bufp) now.
19048 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
19049 (TARGET_CHAR_AND_LENGTH): Delete this macro.
19050 (TRANSLATE_VIA_MULTIBYTE): New macro.
19051 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
19052 It is the same as RE_MULTIBYTE_P (bufp) now.
19053 <exactn>: Translate via multibyte.
19054 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
19055 translate it.
19056 <charset, charset_not>: Fetch a character by
19057 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
19058 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
19059 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
19060 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
19061 by GET_CHAR_AFTER.
19062 (bcmp_translate): Likewise.
19063
19064 * search.c (compile_pattern): Check the member target_multibyte,
19065 not the member multibyte of buf.
19066
19067 * lread.c (read1): While reading a string, set force_singlebyte
19068 and force_multibyte correctly.
19069
19070 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
19071 up of unibyte_to_multibyte_table.
19072
190732008-02-01 Kenichi Handa <handa@m17n.org>
19074
19075 * coding.c (setup_coding_system): If coding has
19076 post-read-conversion or pre-write-conversion, set
19077 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19078 respectively.
19079 (decode_coding_gap): Run post-read-conversion if any.
19080
19081 * fileio.c (Finsert_file_contents): Even if we read into a
19082 unibyte buffer, check if we must decode the result or not.
19083
190842008-02-01 Kenichi Handa <handa@m17n.org>
19085
19086 * coding.c (make_conversion_work_buffer): Change the work buffer
19087 name to the same one as that of Emacs 21.
19088
190892008-02-01 Kenichi Handa <handa@m17n.org>
19090
19091 * coding.h (make_conversion_work_buffer): Adjust prototype.
19092 (code_conversion_restore): Don't extern it.
19093
19094 * coding.c (detected_mask): Delete unused variable.
19095 (decode_coding_iso_2022): Pay attention to the byte sequence of
19096 CTEXT extended segment, and retain those bytes as is.
19097 (decode_coding_ccl): Delete unused variable `valids'.
19098 (setup_coding_system): Delete unused variable `category'.
19099 (consume_chars): Delete unused variable `category'. Make it work
19100 for non-multibyte case.
19101 (make_conversion_work_buffer): Change argument.
19102 (saved_coding): Delete unused variable.
19103 (code_conversion_restore): Don't check saved_coding->destination.
19104 (code_conversion_save): New function.
19105 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19106 instead of record_unwind_protect.
19107 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19108 (detect_coding_system): Delete unused variable `mask'.
19109 (Fdefine_coding_system_internal): Delete unused variable id.
19110
19111 * fileio.c (kill_workbuf_unwind): New function.
19112 (Finsert_file_contents): On replacing, call
19113 make_conversion_work_buffer with correct args, and call
19114 record_unwind_protect with the first arg kill_workbuf_unwind.
19115
19116 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19117
191182008-02-01 Kenichi Handa <handa@m17n.org>
19119
19120 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19121 (fontset_add): Fix for the case that TO is less than TO1.
19122 (Ffontset_info): Don't use fallback fontset on checking the
19123 default fontset.
19124 (dump_fontset): New function for debugging.
19125
19126 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19127 coding_type is Qcharset.
19128
191292008-02-01 Kenichi Handa <handa@m17n.org>
19130
19131 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19132 (map_char_table): Don't inherit the value from the parent on
19133 initializing VAL. Adjust for the above change.
19134
191352008-02-01 Kenichi Handa <handa@m17n.org>
19136
19137 * coding.c (Qsignature, Qendian): Delete these variables.
19138 (syms_of_coding): Don't initialize them.
19139 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19140 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19141 detect_info->found.
19142 (decode_coding_utf_16): Don't detect BOM here.
19143 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19144 is NOT utf_16_without_bom.
19145 (setup_coding_system): For a coding system of type utf-16, check
19146 if the attribute :endian is Qbig or not (not nil or not), and set
19147 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19148 (detect_coding): If coding type is utf-16 and BOM detection is
19149 required, detect it.
19150 (Fdefine_coding_system_internal): For a coding system of type
19151 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19152
191532008-02-01 Kenichi Handa <handa@m17n.org>
19154
19155 * coding.c (coding_set_source): Fix for the case that the current
19156 buffer is different from coding->src_object.
19157 (decode_coding_object): Don't use the conversion work buffer if
19158 DST_OBJECT is a buffer.
19159
191602008-02-01 Dave Love <fx@gnu.org>
19161
19162 * lread.c (read_emacs_mule_char) [len==2]: Index
19163 emacs_mule_charset correctly.
19164
191652008-02-01 Dave Love <fx@gnu.org>
19166
19167 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19168 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19169 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19170 treated specially.)
19171 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19172 (detected_mask): Remove Big5 bits.
19173
191742008-02-01 Kenichi Handa <handa@m17n.org>
19175
19176 The following changes are to make the font rescaling facility
19177 compatible with Emacs 21.
19178
19179 * xfaces.c (Vface_font_rescale_alist): Rename from
19180 Vface_resizing_fonts.
19181 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19182 (font_rescale_ratio): Rename from font_resizing_ratio.
19183 (split_font_name): Set font->rescale_ratio.
19184 (better_font_p): Pay attention to font->rescale_ratio.
19185 (build_scalable_font_name): Likewise. Change RESX, and RESY
19186 fields.
19187 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19188
191892008-02-01 Kenichi Handa <handa@m17n.org>
19190
19191 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19192 (Qutf_16_le): Remove these variables.
19193 (syms_of_coding): Don't DEFSYM them.
19194 (decode_coding_utf_16): Fix handling of BOM.
19195 (encode_coding_utf_16): Fix handling of BOM.
19196
191972008-02-01 Kenichi Handa <handa@m17n.org>
19198
19199 * fileio.c (Finsert_file_contents): On replacing, before decoding
19200 the file into the work buffer, set point of the work buffer to the end.
19201
192022008-02-01 Dave Love <fx@gnu.org>
19203
19204 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19205
192062008-02-01 Dave Love <fx@gnu.org>
19207
19208 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19209 and fix C types.
19210
192112008-02-01 Kenichi Handa <handa@m17n.org>
19212
19213 * xdisp.c (SKIP_GLYPHS): New macro.
19214 (set_cursor_from_row): Pay attention to string display properties.
19215
19216 * category.c (copy_category_entry): Fix for the case that RANGE
19217 is an integer.
19218
19219 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19220
19221 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19222
192232008-02-01 Kenichi Handa <handa@m17n.org>
19224
19225 * charset.c (Fcharset_id_internal): New function.
19226 (syms_of_charset): Defsubr it.
19227
19228 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19229 with the last arg charset_list acquired from coding.
19230 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19231 the attribute coding_attr_ccl_valids.
19232
19233 * coding.h (enum define_coding_ccl_arg_index): Set the first
19234 member coding_arg_ccl_decoder to coding_arg_max.
19235
19236 * ccl.h (ccl_driver): Adjust prototype.
19237
19238 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19239 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19240 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19241 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19242 last arg Qnil.
19243
192442008-02-01 Kenichi Handa <handa@m17n.org>
19245
19246 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19247 call encode_char.
19248
19249 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19250
192512008-02-01 Dave Love <fx@gnu.org>
19252
19253 * composite.c (syms_of_composite): Make composition_hash_table weak.
19254
192552008-02-01 Kenichi Handa <handa@m17n.org>
19256
19257 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19258 (font_name_registry): Don't extern them.
19259 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19260
19261 * fontset.h (Qfontset): Don't extern it.
19262 (new_fontset_from_font_name): Extern it.
19263
19264 * fontset.c: Give 8 extra slots to fontset objects.
19265 (Qfontset_info): New variable.
19266 (syms_of_fontset): Defsym it.
19267 (FONTSET_FALLBACK): New macro.
19268 (fontset_face): Try also the default fontset.
19269 (make_fontset): Realize a fallback fontset from the default fontset.
19270 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19271 using split_font_name_into_vector and build_font_name_from_vector.
19272 (Fset_fontset_font): Access the elements of font_spec by enum
19273 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19274 name by using split_font_name_into_vector.
19275 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19276 generate a proper font name from the fontset name. Update
19277 Vfontset_alias_alist.
19278 (n_auto_fontsets): New variable.
19279 (new_fontset_from_font_name): New function.
19280 (Ffont_info): Store the information about fonts generated from the
19281 default fontset in the first extra slot of the returned char-table.
19282
19283 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19284 (font_name_registry): Delete function.
19285 (split_font_name_into_vector): New function.
19286 (build_font_name_from_vector): New function.
19287 (font_list): The argument REGISTRY is now a list of registry names.
19288 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19289 specifies an explicit font name, return the name as is. Make a
19290 list of registy names.
19291
19292 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19293 of x_new_fontset.
19294 (Fx_create_frame): Don't call x_new_fontset here. Just use
19295 x_list_fonts to check the existence of fonts.
19296
19297 * xterm.h (x_new_fontset): Adjust prototype.
19298
19299 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19300 string. Use new_fontset_from_font_name to create a fontset from a
19301 font name.
19302
193032008-02-01 Kenichi Handa <handa@m17n.org>
19304
19305 * syntax.c (Vfind_word_boundary_function_table): New name for
19306 Vnext_word_boundary_function_table.
19307 (find-word-boundary-function-table): New name for
19308 next-word-boundary-function-table.
19309
193102008-02-01 Dave Love <fx@gnu.org>
19311
19312 * Makefile.in: Fix some dependencies.
19313
19314 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19315 set it to nil before returning.
19316
19317 * composite.c (update_compositions): Fix type error.
19318
19319 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19320
193212008-02-01 Kenichi Handa <handa@m17n.org>
19322
19323 * xterm.c (x_new_font): Optimize for the case that the font is
19324 already set for the frame.
19325
193262008-02-01 Kenichi Handa <handa@m17n.org>
19327
19328 * chartab.c (char_table_ascii): Check if the char table contents
19329 is sub-char-table or not.
19330 (char_table_set, char_table_set_range): Fix argument to
19331 char_table_ascii.
19332
19333 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19334 (detect_coding_utf_8, detect_coding_utf_16)
19335 (detect_coding_emacs_mule, detect_coding_iso_2022)
19336 (detect_coding_sjis, detect_coding_big5)
19337 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19338 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19339 sequence is valid in this coding system. Change callers.
19340 (MAX_ANNOTATION_LENGTH): New macro.
19341 (ADD_ANNOTATION_DATA): New macro.
19342 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19343 ADD_ANNOTATION_DATA. Change the format of annotation data.
19344 (ADD_CHARSET_DATA): New macro.
19345 (emacs_mule_char): New argument ID. Change callers.
19346 (decode_coding_emacs_mule, decode_coding_iso_2022)
19347 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19348 Produce charset annotation data in coding->charbuf.
19349 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19350 to charset annotation data in coding->charbuf.
19351 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19352 coding->common_flags if the coding system is iso-2022 based and
19353 uses designation.
19354 (produce_composition): Adjust for the new annotation data format.
19355 (produce_charset): New function.
19356 (produce_annotation): Handle charset annotation.
19357 (handle_composition_annotation, handle_charset_annotation): New
19358 functions.
19359 (consume_chars): Handle charset annotation. Utilize the above two
19360 functions.
19361 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19362 buffer, get the deleted text as a string and set
19363 coding->src_object to that string.
19364 (detect_coding, detect_coding_system): Use the new struct
19365 coding_detection_info.
19366
19367 * coding.h (struct coding_detection_info): New structure.
19368 (struct coding_system): Adjust prototype of the member `detector'.
19369 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19370
193712008-02-01 Kenichi Handa <handa@m17n.org>
19372
19373 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19374
193752008-02-01 Dave Love <fx@gnu.org>
19376
19377 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19378 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19379 to new local and nullify apropos_accumulate before returning.
19380 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19381
193822008-02-01 Kenichi Handa <handa@m17n.org>
19383
19384 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19385 correctly.
e3eea1fc 19386
aac0c6e3
MR
193872008-02-01 Dave Love <fx@gnu.org>
19388
19389 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19390
193912008-02-01 Kenichi Handa <handa@m17n.org>
19392
19393 The following changes are to make character composition happen
19394 automatically on displaying.
19395
19396 * Makefile.in (lisp, shortlisp): Add composite.elc.
19397
19398 * composite.h (Qauto_composed, Vauto_composition_function)
19399 (Qauto_composition_function): Extern them.
19400
19401 * composite.c (Vcomposition_function_table)
19402 (Qcomposition_function_table): Delete variables.
19403 (Qauto_composed, Vauto_composition_function)
19404 (Qauto_composition_function): New variables.
19405 (run_composition_function): Don't call
19406 compose-chars-after-function.
19407 (update_compositions): Clear `auto-composed' text property.
19408 (compose_chars_in_text): Delete this function.
19409 (syms_of_composite): Staticpro Qauto_composed and
19410 Qauto_composition_function. Declare Vauto_composition_function as
19411 a Lisp variable.
19412
19413 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19414
19415 * xdisp.c (it_props): Add an entry for Qauto_composed.
19416 (handle_auto_composed_prop): New function.
19417
19418 * xselect.c (selection_data_to_lisp_data): Don't call
19419 compose_chars_in_text.
19420
194212008-02-01 Dave Love <fx@gnu.org>
19422
19423 * keyboard.c (read_char): Modify checking around use of
19424 Vkeyboard_translate_table.
19425
19426 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19427 and fix C types.
19428
194292008-02-01 Kenichi Handa <handa@m17n.org>
19430
19431 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19432 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19433 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19434 the case that the last byte is '\r' correctly.
19435 (decode_coding): Flush out the unprocessed data correctly.
19436 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19437
194382008-02-01 Dave Love <fx@gnu.org>
19439
19440 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19441 Add XK_ISO... case.
19442 (xaw_scroll_callback): Revert last change.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * xfaces.c (Vface_resizing_fonts): New variable.
19451 (struct font_name): New member `resizing_ratio'.
19452 (font_resizing_ratio): New function.
19453 (split_font_name): Set font->resizing_ratio.
19454 (better_font_p): Pay attention to font->resizing_ratio.
19455 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19456 RESX, and RESY fields.
19457 (try_alternative_families): Try scalable fonts if
19458 Vscalable_fonts_allowed is not Qt.
19459 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19460
194612008-02-01 Dave Love <fx@gnu.org>
19462
19463 * xterm.c (xaw_scroll_callback): Cast correctly.
19464
194652008-02-01 Dave Love <fx@gnu.org>
19466
19467 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19468 (lispy_kana_keys): Comment out.
19469 (make_lispy_event) [XK_kana_A]: Comment out.
19470
19471 * xterm.c (xaw_scroll_callback): Cast call_data.
19472 (XTread_socket): Deal with ASCII keysyms.
19473 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19474
194752008-02-01 Dave Love <fx@gnu.org>
19476
19477 * xterm.c (Vx_keysym_table): New.
19478 (syms_of_xterm): Initialize it.
19479 (XTread_socket): Use it.
19480 From head: Eliminate incorrect optimization that tried to avoid
19481 decoding the output of X*LookupString.
19482 (x_get_font_repertory): Delete charset declaration.
19483
194842008-02-01 Kenichi Handa <handa@m17n.org>
19485
19486 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19487 return 0.
19488 (Fdefine_coding_system_internal): Setup
19489 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19490
194912008-02-01 Dave Love <fx@gnu.org>
19492
19493 * coding.c (Fcheck_coding_system): Doc fix.
19494
19495 * editfns.c (Finsert_byte): Return a proper value.
19496
194972008-02-01 Kenichi Handa <handa@m17n.org>
19498
19499 * coding.c (decode_coding): Fix args to translate_chars. Pay
19500 attention to Vstandard_translation_table_for_decode.
19501 (encode_coding): Fix args to translate_chars. Pay attention to
19502 Vstandard_translation_table_for_encode.
19503
19504 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19505 SINGLE_BYTE_CHAR_P.
19506
19507 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19508 not by SINGLE_BYTE_CHAR_P.
19509
19510 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19511 SINGLE_BYTE_CHAR_P.
19512
19513 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19514 SINGLE_BYTE_CHAR_P.
19515
19516 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19517 by SINGLE_BYTE_CHAR_P.
19518
19519 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19520 SINGLE_BYTE_CHAR_P.
19521
195222008-02-01 Dave Love <fx@gnu.org>
19523
19524 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19525
195262008-02-01 Dave Love <fx@gnu.org>
19527
19528 * fns.c (Flanginfo): Fix typo.
19529
19530 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19531
195322008-02-01 Kenichi Handa <handa@m17n.org>
19533
19534 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19535 (detect_coding_emacs_mule, detect_coding_iso_2022)
19536 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19537 incomplete byte sequence. Don't update *mask when correctly detected.
19538 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19539 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19540 (detect_coding, detect_coding_system): Adjust for the changes above.
19541
195422008-02-01 Kenichi Handa <handa@m17n.org>
19543
19544 * character.c (char_string): Rename from
19545 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19546 (string_char): Rename from string_char.
19547
19548 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19549 if C is greater than MAX_3_BYTE_CHAR.
19550 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19551 string_char instead of string_char_with_unification.
19552
195532008-02-01 Dave Love <fx@gnu.org>
19554
19555 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19556
195572008-02-01 Kenichi Handa <handa@m17n.org>
19558
19559 * keymap.c (push_key_description): Pay attention to force_multibyte.
19560
19561 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19562
195632008-02-01 Dave Love <fx@gnu.org>
19564
19565 * charset.c (define_charset_internal): Rename `supprementary'.
19566
19567 * Makefile.in (lisp, shortlisp): Remove latin-N.
19568
195692008-02-01 Dave Love <fx@gnu.org>
19570
19571 * xfns.c (x_window, x_window): Use use_xim.
19572
19573 * xterm.c (use_xim): Initialize.
19574 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19575 (x_term_init): Maybe set use_xim.
19576
19577 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19578
195792008-02-01 Kenichi Handa <handa@m17n.org>
19580
19581 * search.c (search_buffer): Fix case-fold-search of multibyte
19582 characters.
19583 (boyer_moore): Rename the last argument to char_high_bits.
19584
195852008-02-01 Kenichi Handa <handa@m17n.org>
19586
19587 * xdisp.c (display_string): Fix for the case of zero width glyph.
19588
19589 * xfns.c (x_set_font): Change the error message of the case that
19590 x_new_fontset returns Qt.
19591
19592 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19593 (Finternal_set_lisp_face_attribute): Use signal_error for the
19594 error of invalid fontset.
19595
19596 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19597 fontset, return Qt.
19598
195992008-02-01 Dave Love <fx@gnu.org>
19600
19601 * unexelf.c (unexec): Make .got handling not SGI-specific.
19602
19603 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19604
19605 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19606
19607 * keyboard.c (read_key_sequence): Fix type error.
19608
19609 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19610 type error.
19611
19612 * fontset.c (fontset_add): Return Lisp_Object.
19613
196142008-02-01 Dave Love <fx@gnu.org>
19615
19616 * charset.h (charset_ordered_list_tick): Declare extern.
19617
196182008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 The following changes (and some of 2008-02-01 changes of mine) are
19621 for handling syntax, category, and case conversion for unibyte
19622 characters by converting them to multibyte on the fly. With these
19623 changes, we don't have to setup syntax and case tables for unibyte
19624 characters in each language environment.
19625
19626 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19627 multibyte if necessary.
19628
19629 * bytecode.c (Fbyte_code): Likewise.
19630
19631 * character.h (LEADING_CODE_LATIN_1_MIN)
19632 (LEADING_CODE_LATIN_1_MAX): New macros.
19633 (unibyte_to_multibyte_table): Extern it.
19634 (unibyte_char_to_multibyte): New macro.
19635 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19636 (CHAR_LEADING_CODE): New macro.
19637 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19638
19639 * character.c (unibyte_to_multibyte_table): New variable.
19640 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19641 (multibyte_char_to_unibyte): If C is an eight-bit character,
19642 convert it to the corresponding byte value.
19643
19644 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19645 not 1, signals an error. Update the elements of
19646 unibyte_to_multibyte_table.
19647 (init_charset_once): Initialize unibyte_to_multibyte_table.
19648 (syms_of_charset): Define the charset `iso-8859-1'.
19649
19650 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19651 as is without converting it to unibyte. In a unibyte buffer,
19652 convert C to multibyte before checking the syntax.
19653
19654 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19655
19656 * minibuf.c (Fminibuffer_complete_word): Use the macro
19657 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19658
19659 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19660
19661 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19662 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19663 that is zero, convert an eight-bit char to multibyte.
19664 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19665 non-emacs case.
19666 (PATFETCH): Convert an eight-bit char to multibyte.
19667 (HANDLE_UNIBYTE_RANGE): New macro.
19668 (regex_compile): Setup the compiled pattern for multibyte chars
19669 even if the given regex string is unibyte. Use PATFETCH_RAW
19670 instead of PATFETCH in many places. To handle `charset'
19671 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19672 only for ASCII chars.
19673 (analyse_first) <exactn>: Simplify because the compiled pattern
19674 is multibyte.
19675 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19676 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19677 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19678 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19679 multibyte always 1.
19680 (re_search_2): In emacs, set the locale variable multibyte to 1,
19681 otherwise to 0. New local variable target_multibyte. Check it
19682 to decide the multibyteness of STR1 and STR2. If
19683 target_multibyte is zero, convert unibyte chars to multibyte
19684 before translating and checking fastmap.
19685 (TARGET_CHAR_AND_LENGTH): New macro.
19686 (re_match_2_internal): In emacs, set the locale variable multibyte
19687 to 1, otherwise to 0. New local variable target_multibyte. Check
19688 it to decide the multibyteness of STR1 and STR2. Use
19689 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19690 <charset, charset_not>: If multibyte is nonzero, check fastmap
19691 only for ASCII chars. Call bcmp_translate with
19692 target_multibyte, not with multibyte.
19693 <begline>: Declare the local variable C as `unsigned'.
19694 (bcmp_translate): Change the last arg name to target_multibyte.
19695
19696 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19697 the regexp pattern and the matching target. Set cp->buf.multibyte
19698 to the multibyteness of the regexp pattern. Set
19699 cp->but.target_multibyte to the multibyteness of the matching target.
19700 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19701 FETCH_STRING_CHAR_ADVANCE.
19702 (Freplace_match): Convert unibyte chars to multibyte.
19703
19704 * syntax.c (char_quoted, back_comment, scan_words)
19705 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19706 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19707 unibyte chars to multibyte.
19708 (skip_chars): Delete the arg syntaxp, and move the code for
19709 handling syntaxes to skip_syntaxes. Change callers.
19710 Fix the case that the multibyteness of STRING and the current
19711 buffer doesn't match.
19712 (skip_syntaxes): New function.
19713 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19714 SINGLE_BYTE_CHAR_P.
19715
197162008-02-01 Kenichi Handa <handa@m17n.org>
19717
19718 * xfaces.c (QCfontset): New variable.
19719 (LFACE_FONTSET): New macro.
19720 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19721 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19722 (Finternal_set_lisp_face_attribute)
19723 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19724 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19725 check also LFACE_FONTSET_INDEX.
19726 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19727 attrs[LFACE_FONT_INDEX].
19728 (syms_of_xfaces): Intern and staticpro QCfontset.
19729
19730 * dispextern.h (enum lface_attribute_index): New member
19731 LFACE_FONTSET_INDEX.
19732
19733 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19734
197352008-02-01 Kenichi Handa <handa@m17n.org>
19736
19737 * coding.c (coding_set_destination): Fix coding->destination for
19738 the case converting a region.
19739 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19740 (encode_coding_object): Fix coding->dst_pos and
19741 coding->dst_pos_byte for the case converting a region.
19742
19743 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19744
19745 * character.h (BYTE8_STRING): New macro.
19746
19747 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19748
197492008-02-01 Kenichi Handa <handa@m17n.org>
19750
19751 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19752 characters by octal form.
19753
19754 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19755
19756 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19757 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19758 _fetch_multibyte_char_len.
19759 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19760
19761 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19762
19763 * casefiddle.c (casify_object): Simplify. Handle the case that
19764 the case conversion change the byte length.
19765 (casify_region): Likewise.
19766
19767 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19768
19769 * character.c (_fetch_multibyte_char_len): Delete this variable.
19770 (syms_of_character): Setup Vprintable_chars.
19771
19772 * editfns.c (Fchar_equal): Fix for the unibyte case.
19773 (Finsert_byte): New function.
19774 (syms_of_editfns): Defsubr it.
19775
19776 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19777 of direct code 0x3ffff.
19778
19779 * search.c (Freplace_match): Fix for the unibyte case.
19780
197812008-02-01 Kenichi Handa <handa@m17n.org>
19782
19783 * lread.c (safe_to_load_p): Fix the logic.
19784
19785 * syntax.c (scan_words): Don't treat characters belonging to
19786 different scripts as constituting a word.
19787
19788 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19789
19790 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19791
19792 * emacs.c (main): In the case of --unibyte, instead of aborting on
19793 finding non-empty buffer, make it unibyte.
19794
197952008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19798 to create a fontset.
19799
198002008-02-01 Dave Love <fx@gnu.org>
19801
19802 * character.c (Funibyte_char_to_multibyte): Doc fix.
19803
19804 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19805
198062008-02-01 Kenichi Handa <handa@m17n.org>
19807
19808 * fontset.c (fontset_add): Make the type `int'.
19809 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19810
19811 * character.c (unibyte_char_to_multibyte)
19812 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19813 charset_unibyte, not charset_primary.
19814
19815 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19816
19817 * charset.c (charset_unibyte): Rename from charset_primary.
19818 (Funibyte_charset): Rename from Fprimary_charset.
19819 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19820 (syms_of_charset): Adjust for the above changes.
19821
19822 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19823 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19824 it->multibyte_p is zero.
19825
19826 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19827 Delete extern.
19828
198292008-02-01 Kenichi Handa <handa@m17n.org>
19830
19831 * coding.c (Fdefine_coding_system_internal): Fix category setting
19832 for a coding system of type iso-2022.
19833
198342008-02-01 Kenichi Handa <handa@m17n.org>
19835
19836 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19837
198382008-02-01 Kenichi Handa <handa@m17n.org>
19839
19840 * syntax.c (Vnext_word_boundary_function_table): New variable.
19841 (next-word-boundary-function-table): Declare it as a Lisp variable
19842 in syms_of_syntax.
19843 (scan_words): Call functions in Vnext_word_boundary_function_table
19844 if any.
19845
19846 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19847
19848 * fontset.c (fs_load_font): If fontp->charset is not negative,
19849 return fontp without setting its members.
19850
198512008-02-01 Dave Love <fx@gnu.org>
19852
19853 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19854
19855 * m/sparc.h (HAVE_ALLOCA): Delete.
19856
19857 * s/irix6-5.h: Don't include strings.h.
19858 (bcopy, bzero, bcmp): Don't undef.
19859
19860 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19861
19862 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19863 (TIOCSIGSEND): Don't test IRIX6.
19864 (bcopy, bzero, bcmp): Define conditionally.
19865
198662008-02-01 Kenichi Handa <handa@m17n.org>
19867
19868 * buffer.c (Qas, Qmake, Qto): New variables.
19869 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19870 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19871
19872 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19873 we are inserting a process output into a multibyte buffer.
19874
19875 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19876 multibyte_char_to_unibyte.
19877
19878 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19879 by the primary charset, make it eight-bit char.
19880 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19881
19882 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19883 (charset_8_bit__control, charset_8_bit_graphic)
19884 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19885 (define_charset_internal): New function.
19886 (syms_of_charset): Call define_charset_internal for pre-defined
19887 charsets.
19888
19889 * charset.h (charset_8_bit): Extern it.
19890
19891 * coding.c (make_conversion_work_buffer): Adjust for the change
19892 of Fset_buffer_multibyte.
19893 (encode_coding_raw_text): Increment p0 in the loop.
19894
19895 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19896
19897 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19898 for the change of Fset_buffer_multibyte.
19899
19900 * fns.c (Fstring_to_multibyte): New function.
19901 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19902
199032008-02-01 Dave Love <fx@gnu.org>
19904
19905 * xfns.c (x_put_x_image): Declare args.
19906
19907 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19908 (try_font_list): Declare an arg.
19909
19910 * xdisp.c (message2_nolog, set_message): Declare an arg.
19911
19912 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19913
19914 * syntax.c (scan_sexps_forward): Declare an arg.
19915
19916 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19917 Declare an arg.
19918
19919 * lisp.h (Fnew_fontset): Declare.
19920
19921 * keymap.c (push_key_description): Call CHARACTERP correctly.
19922
19923 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19924 (face_for_char): Delete unused vars.
19925 (Fset_fontset_font): Doc fix. Delete unused vars.
19926
19927 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19928
19929 * composite.c (update_compositions): Declare arg.
19930
19931 * cm.c (calccost, cmgoto): Declare args.
19932
19933 * charset.c: Remove `emacs' conditional. Doc fixes.
19934 (map_char_table_for_charset): Declare.
19935
19936 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19937
19938 * ccl.c: Remove `emacs' conditional.
19939
199402008-02-01 Kenichi Handa <handa@m17n.org>
19941
19942 The following changes are to allow specifying multiple font
19943 patterns for a character range (specified by script or charset).
19944
19945 * Makefile.in (abbrev.o): Depend on syntax.h.
19946 (xfaces.o): Depend on charset.h.
19947
19948 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19949 SINGLE_BYTE_CHAR_P.
19950
19951 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19952
19953 * character.h (Vchar_script_table): Extern it.
19954
19955 * character.c (Vscript_alist): Delete.
19956 (Vchar_script_table, Qchar_script_table): New variable.
19957 (syms_of_character): Declare Vchar_script_table as a lisp variable
19958 and initialize it.
19959
19960 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19961 have property char-table-extra-slots, make no extra slot.
19962
19963 * dispextern.h (struct face): Delete member `charset'.
19964 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19965 SINGLE_BYTE_CHAR_P.
19966 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19967 Add prototypes.
19968 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19969 (generate_ascii_font_name): Rename from generate_ascii_font.
19970
19971 * fontset.h (get_font_repertory_func): New prototype.
19972 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19973 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19974
19975 * fontset.c (Qprepend, Qappend): New variables.
19976 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19977 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19978 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19979 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19980 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19981 (load_font_get_repertory): New functions.
19982 (fontset_set): Delete.
19983 (fontset_face): New arg FACE. Return face ID, not face.
19984 Complete re-write to handle new fontset structure. Change caller.
19985 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19986 (face_for_char): Don't call lookup_face.
19987 (make_fontset_for_ascii_face): New arg FACE.
19988 (fs_load_font): New arg CHARSET_ID. Don't check
19989 Vfont_encoding_alist here.
19990 (find_font_encoding): New function.
19991 (list_fontsets): Use STRINGP, not ! NILP.
19992 (accumulate_script_ranges): New function.
19993 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19994 re-written to handle new fontset structure.
19995 (Ffontset_font): Return a copy of element.
19996 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19997 docstring of font-encoding-alist.
19998
19999 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
20000 (Fset_fotset_font): Fix arguments to 5.
20001
20002 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
20003
20004 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
20005 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20006 (highlight_trailing_whitespace): Adjust for the change of
20007 lookup_named_face.
20008
20009 * xfaces.c: Include charset.h.
20010 (load_face_font): Delete argument C. Change caller.
20011 (generate_ascii_font_name): Rename from generate_ascii_font.
20012 (font_name_registry): New function.
20013 (cache_face): Store ascii faces before non-ascii faces in buckets.
20014 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
20015 Lookup only ascii faces.
20016 (lookup_non_ascii_face): New function.
20017 (lookup_named_face): Delete argument C. Change caller.
20018 (lookup_derived_face): Delete argument C. Change caller.
20019 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
20020 a string, just call font_list with it.
20021 (choose_face_font): Delete arguments FACE and C. New arg
20022 FONT_SPEC. Change caller.
20023 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
20024 Change caller.
20025 (realize_non_ascii_face): New function.
20026 (realize_x_face): Call load_face_font here.
20027 (realize_tty_face): Delete argument C. Change caller.
20028 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
20029 get a face ID.
20030 (dump_realized_face): Don't print charset of FACE.
20031
20032 * xfns.c (x_set_font): Always call x_new_fontset and
20033 store_frame_parameter.
20034 (Fx_create_frame): Call x_new_fontset, not x_new_font.
20035 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
20036
20037 * xterm.h (x_get_font_repertory): Extern it.
20038
20039 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20040 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20041 it->multibyte_p is zero.
20042 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20043 (x_new_fontset): If FONTSETNAME doesn't match any existing
20044 fontsets, create a new one.
20045 (x_get_font_repertory): New function.
20046
200472008-02-01 Kenichi Handa <handa@m17n.org>
20048
20049 * coding.c (Ffind_coding_systems_region_internal): Detect an
20050 ASCII only string correctly.
20051
20052 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
20053 version is 0.
20054
200552008-02-01 Kenichi Handa <handa@m17n.org>
20056
20057 * lread.c: Include "coding.h".
20058 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
20059 (load_each_byte, unread_char): New variables.
20060 (readchar_backlog): Delete.
20061 (readchar): Return a character unless load_each_byte is nonzero.
20062 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
20063 cons. If unread_char is not -1, simply return it.
20064 (unreadchar): Handle the case that readcharfun is
20065 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
20066 (read_multibyte): Delete.
20067 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
20068 (read_emacs_mule_char): New functions.
20069 (Fload): Even if the file doesn't have the extension ".elc", if
20070 safe_to_load_p returns a positive version number, assume that the
20071 file contains bytecompiled code. If the version is less than 22,
20072 load the file while decoding multibyte sequences by emacs-mule.
20073 (readevalloop): Don't use readchar_backlog.
20074 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20075 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20076 (read_escape): Delete the arg BYTEREP.
20077 (read1): Set load_each_byte to 1 temporarily while handling
20078 #@NUMBER. Don't call read_multibyte.
20079 (read_vector): Call Fread with a cons. If readcharfun is
20080 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20081 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20082 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20083 and Qload_force_doc_strings.
20084
200852008-02-01 Kenichi Handa <handa@m17n.org>
20086
20087 * xdisp.c (face_before_or_after_it_pos): Call
20088 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20089
200902008-02-01 Kenichi Handa <handa@m17n.org>
20091
20092 * character.h (TRAILING_CODE_P): New macro.
20093 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20094 (string_char_with_unification): Fix prototype.
20095 (Vscript_alist): Extern it.
20096
20097 * character.c (Vscript_alist): New variable.
20098 (string_char_with_unification, str_as_unibyte)
20099 (string_escape_byte8): Add `const' to local variables.
20100 (syms_of_character): Declare script-alist as a Lisp variable.
20101
20102 * charset.h (Vcharset_ordered_list): Extern it.
20103 (charset_ordered_list_tick): Extern it.
20104 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20105 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20106 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20107 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20108 (Funify_charset): Adjust for the change of Funify_charset.
20109
20110 * charset.c (charset_ordered_list_tick): New variable.
20111 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20112 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20113 deunify intead of unify a charset.
20114 (string_xstring_p): Add `const' to local variables.
20115 (find_charsets_in_text): Add `const' to arguments and local variables.
20116 (encode_char): Adjust for the change of Funify_charset. Fix
20117 detecting of invalid code.
20118 (Fset_charset_priority): Increment charset_ordered_list_tick.
20119 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20120 and TO_CODE.
20121
20122 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20123 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20124 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20125 (decode_coding_ccl, consume_chars)
20126 (Ffind_coding_systems_region_internal)
20127 (Fcheck_coding_systems_region): Add `const' to local variables.
20128
20129 * print.c (print_object): Use octal form for printing the
20130 contents of a bool vector.
20131
201322008-02-01 Dave Love <fx@gnu.org>
20133
20134 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20135 <version == 20>: Refuse to load.
20136
201372008-02-01 Dave Love <fx@gnu.org>
20138
20139 * fns.c: Move coding.h.
20140 (Qcodeset, Qdays, Qmonths): New.
20141 (concat): Use CHARACTERP instead of INTEGERP.
20142 (Flocale_codeset): Delete.
20143 (Flanginfo): New function.
20144 (syms_of_fns): Change accordingly.
20145
20146 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20147
201482008-02-01 Dave Love <fx@gnu.org>
20149
20150 * casetab.c (init_casetab_once, init_casetab_once): Fix
20151 CHAR_TABLE_SET call.
20152
20153 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20154
20155 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20156
20157 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20158 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20159 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20160
20161 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20162
20163 * coding.c (ENCODE_DESIGNATION, decode_eol)
20164 (make_conversion_work_buffer, code_conversion_restore)
20165 (Fdefine_coding_system_internal): Convert Lisp types.
20166 (code_conversion_restore): Use EQ, not ==.
20167 (Fencode_coding_string): Fix code_convert_string call.
20168
20169 * coding.h (code_convert_region): Fix prototype.
20170
20171 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20172
20173 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20174 (Ffontset_info): Convert Lisp types.
20175
20176 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20177
20178 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20179
20180 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20181
20182 * chartab.c: Include "...h", not <...h> in some cases.
20183
20184 * callproc.c (Fcall_process): Remove unused variables.
20185
201862008-02-01 Dave Love <fx@gnu.org>
20187
20188 * coding.c (Fset_coding_system_priority): Allow null arg list.
20189
201902008-02-01 Dave Love <fx@gnu.org>
20191
20192 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20193 (Fself_insert_and_exit): Use CHARACTERP.
20194
20195 * callproc.c (Fcall_process): Remove unused vars.
20196
20197 * xterm.c (XTread_socket): Add extra dead keysyms.
20198
20199 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20200
20201 * dispextern.h: Remove prototypes for redraw_frame,
20202 redraw_garbaged_frames.
20203
20204 * cmds.c (Fself_insert_command): Use CHARACTERP.
20205
20206 * chartab.c (make_sub_char_table): Remove unused var.
20207 (Fset_char_table_default, Fmap_char_table): Doc fix.
20208
20209 * keymap.c (access_keymap): Remove generic char code.
20210 (push_key_description): Use CHARACTERP.
20211
202122008-02-01 Dave Love <fx@gnu.org>
20213
20214 * charset.c: Doc fixes.
20215 (Funify_charset): Extra checking.
20216
202172008-02-01 Dave Love <fx@gnu.org>
20218
20219 * lread.c: Remove some unused variables.
20220 (safe_to_load_p): If safe, return the magic number version byte.
20221 (Fload): Maybe use load-with-code-conversion.
20222
202232008-02-01 Kenichi Handa <handa@m17n.org>
20224
20225 * category.c (Fmodify_category_entry): Don't modify the contents
20226 of category_set for characters out of the range. Avoid
20227 unnecessary modification.
20228
20229 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20230 Vchar_unify_table. The default value of the table is now nil.
20231
20232 * character.c (syms_of_character): Setup Vchar_width_table for
20233 eight-bit-control and raw-byte chars.
20234
20235 * charset.h (enum define_charset_arg_index): Delete
20236 charset_arg_parents and add charset_arg_subset and
20237 charset_arg_superset.
20238 (enum charset_attr_index): Delete charset_parents and add
20239 charset_subset and charset_superset.
20240 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20241 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20242 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20243 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20244 (CHARSET_SUPERSET): New macros.
20245 (charset_work): Extern it.
20246 (ENCODE_CHAR): Use charset_work.
20247 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20248 (map_charset_chars): Extern it.
20249
20250 * charset.c (load_charset_map): Set the default value of encoder
20251 and deunifier char-tables to nil.
20252 (map_charset_chars): Change argument. Change callers. Use
20253 map_char_table_for_charset instead of map_char_table.
20254 (Fmap_charset_chars): New optional args from_code and to_code.
20255 (Fdefine_charset_internal): Adjust for the change of
20256 `define-charset' (:parents -> :subset or :superset).
20257 (charset_work): New variable.
20258 (encode_char, syms_of_charset): Adjust for the change of
20259 Fdefine_charset_internal.
20260 (Ffind_charset_string): Setup the vector `charsets' correctly.
20261
20262 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20263 the previous change.
20264 (char_table_ref_and_range): Adjust for the above change.
20265 (map_sub_char_table_for_charset): New function.
20266 (map_char_table_for_charset): New function.
20267
20268 * keymap.c (describe_vector): Handle a char-table directly here.
20269 (describe_char_table): Delete.
20270
20271 * lisp.h (map_charset_chars): Delete.
20272
202732008-02-01 Dave Love <fx@gnu.org>
20274
20275 * fns.c (count_combining): Comment out (unused).
20276 (Flocale_codeset): New.
20277 (syms_of_fns): Defsubr it.
20278
20279 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20280 (size_t): Remove.
20281
202822008-02-01 Dave Love <fx@gnu.org>
20283
20284 * Makefile.in (chartab.o): Depend on charset.h.
20285
202862008-02-01 Kenichi Handa <handa@m17n.org>
20287
20288 * character.c (syms_of_character): Set the default value of
20289 Vprintable_chars to Qnil.
20290
202912008-02-01 Dave Love <fx@gnu.org>
20292
20293 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20294
202952008-02-01 Kenichi Handa <handa@m17n.org>
20296
20297 * charset.c (load_charset_map): Handle the case that from < to
20298 correctly.
20299
20300 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20301 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20302 Pay attention to raw-8-bit chars.
20303
203042008-02-01 Kenichi Handa <handa@m17n.org>
20305
20306 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20307 It is not bytecompiled now.
20308
20309 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20310 (charset_jisx0208): New variables.
20311 (Fdefine_charset_internal): Setup them if appropriate.
20312 (init_charset_once): Initialize them to -1.
20313
20314 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20315 (charset_jisx0208): Extern them.
20316
20317 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20318 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20319 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20320 (setup_iso_safe_charsets): Fix arguments to Fassq.
20321 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20322 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20323 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20324 (encode_coding_iso_2022): Change the 1st arg to
20325 ENCODE_ISO_CHARACTER to a variable.
20326
203272008-02-01 Kenichi Handa <handa@m17n.org>
20328
20329 * charset.h (enum define_charset_arg_index): New enums
20330 charset_arg_min_code and charset_arg_max_code.
20331 (struct charset): New member char_index_offset.
20332
20333 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20334 Take charset->char_index_offset into account.
20335 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20336 args[charset_arg_max_code]. Setup charset.char_index_offset.
20337 (syms_of_charset): Fix args to Fdefine_charset_internal.
20338
203392008-02-01 Dave Love <fx@gnu.org>
20340
20341 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20342
203432008-02-01 Dave Love <fx@gnu.org>
20344
20345 * coding.c: Doc fixes.
20346 (Fcoding_system_aliases): Fix return value.
20347 (Qmac): Remove (duplicated) definition.
20348
203492008-02-01 Dave Love <fx@gnu.org>
20350
362654a6
JB
20351 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20352 New functions.
aac0c6e3
MR
20353
20354 * character.c (Fstring): Doc fix.
20355
20356 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20357
362654a6 20358 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20359 (font-encoding-alist): Doc fix.
20360
203612008-02-01 Dave Love <fx@gnu.org>
20362
20363 * term.c (costs_set): Declare static, non-initialized for pcc.
20364 (encode_terminal_code): Remove unused var.
20365
20366 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20367 for K&R.
20368
20369 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20370
20371 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20372 (suffixes): Move out of make_subsidiaries for K&R.
20373
20374 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20375
20376 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20377
203782008-02-01 Dave Love <fx@gnu.org>
20379
20380 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20381
20382 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20383
203842008-02-01 Yong Lu <lyongu@asia-infonet.com>
20385
20386 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20387
20388 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20389
203902008-02-01 Kenichi Handa <handa@m17n.org>
20391
20392 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20393 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20394
203952008-02-01 Kenichi Handa <handa@m17n.org>
20396
20397 * coding.c (decode_coding_charset): Adjust for the change of
20398 Fdefine_coding_system_internal.
20399 (Fdefine_coding_system_internal): For a coding system of
20400 `charset' type, store a list of charset IDs in
20401 `charset_attr_charset_valids' element of coding attributes.
20402
204032008-02-01 Kenichi Handa <handa@m17n.org>
20404
20405 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20406 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20407 caller. Handle 2-byte and 3-byte charsets correctly.
20408 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20409 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20410 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20411 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20412 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20413 sequence.
20414 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20415 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20416 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20417 and alt&rule composition.
20418 (decode_coding_iso_2022): Handle composition correctly.
20419 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20420
20421 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20422 re-defining a charset. If the charset has :emacs-mule-id, setup
20423 emacs_mule_bytes.
20424 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20425
204262008-02-01 Kenichi Handa <handa@m17n.org>
20427
20428 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20429 (encode_coding_big5, encode_coding_charset): If coding requires safe
20430 encoding, produce a character specified by
20431 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20432
204332008-02-01 Dave Love <fx@gnu.org>
20434
20435 * xterm.c (XSetIMValues): Declare.
20436
20437 * process.c: Conditionally include sys/wait.h, pty.h.
20438
20439 * print.c (print_object): Fix print format for 64-bit systems.
20440
20441 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20442
20443 * buffer.c (emacs_strerror): Declare.
20444
20445 * fontset.c (Fclear_face_cache): Declare.
20446 (accumulate_font_info): Comment-out (unused).
20447 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20448 variables.
20449
20450 * character.h (string_escape_byte8): Declare.
20451
20452 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20453 unused vars.
20454 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20455 (Fmap_charset_chars): Doc fix.
20456
20457 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20458 (Fset_coding_system_priority, Fset_coding_system_priority)
20459 (Fdefine_coding_system_internal): Doc fix.
20460
204612008-02-01 Dave Love <fx@gnu.org>
20462
20463 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20464
204652008-02-01 Kenichi Handa <handa@m17n.org>
20466
20467 * character.c (string_escape_byte8): Make multibyte string with
20468 correct size.
20469
20470 * charset.c (Fmake_char): Delete unnecessary code.
20471
204722008-02-01 Kenichi Handa <handa@m17n.org>
20473
20474 * xfns.c (x_encode_text): Allocate coding.destination here, and
20475 call encode_coding_object with dst_object Qnil.
20476
20477 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20478 multibyte form correctly.
20479
20480 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20481 against Vfont_encoding_alist.
20482
20483 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20484 handling of charset list.
20485 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20486 (decode_coding_object): Move point to coding->dst_pos before
20487 calling post-read-conversion function.
20488 (encode_coding_object): Give correct arguments to
20489 pre-write-conversion. Ignore the return value of
20490 pre-write-conversion function. Pay attention to the case that
20491 pre-write-conversion changes the current buffer. If dst_object is
20492 Qt, even if coding->src_bytes is zero, allocate at least one byte
20493 to coding->destination.
20494
20495 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20496
20497 * charset.c (Fmake_char): Make it more backward compatible.
20498 (Fmap_charset_chars): Fix docstring.
20499
205002008-02-01 Dave Love <fx@gnu.org>
20501
20502 * coding.c: Doc fixes.
20503 (Fdefine_coding_system_alias): Use names, not symbols, in
20504 coding-system-alist.
20505
205062008-02-01 Kenichi Handa <handa@m17n.org>
20507
20508 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20509 of calling free_realized_face.
20510
205112008-02-01 Yong Lu <lyongu@asia-infonet.com>
20512
20513 * charset.c (read_hex): Don't treat SPC as a comment starter.
20514 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20515 (Fdecode_char): Fix typo.
20516
205172008-02-01 Kenichi Handa <handa@m17n.org>
20518
20519 * charset.h (struct charset): New member `code_space_mask'.
20520
20521 * coding.c (coding_set_source): Delete the local variable beg_byte.
20522 (encode_coding_charset, Fdefine_coding_system_internal):
20523 Delete the local variable charset.
20524 (Fdefine_coding_system_internal): Setup
20525 attrs[coding_attr_charset_valids] correctly.
20526
20527 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20528 member to check if CODE is valid or not.
20529 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20530 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20531 is within the range of charset->min_code and carset->max_code.
20532
205332008-02-01 Dave Love <fx@gnu.org>
20534
20535 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20536
20537 * dispextern.h (generate_ascii_font): Fix return type.
20538
20539 * xfaces.c (generate_ascii_font): Fix arg declaration.
20540
20541 * coding.c (coding_inherit_eol_type)
20542 (Fset_terminal_coding_system_internal)
20543 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20544
205452008-02-01 Kenichi Handa <handa@m17n.org>
20546
20547 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20548 multiple charsets correctly.
20549
205502008-02-01 Kenichi Handa <handa@m17n.org>
20551
20552 * search.c (boyer_moore): Fix handling of multibyte character
20553 translation.
20554
20555 * xdisp.c (display_mode_element): When the variable `elt' is
20556 changed, update `this' and `lisp_string'.
20557
205582008-02-01 Kenichi Handa <handa@m17n.org>
20559
20560 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20561
20562 * callproc.c (Fcall_process): Be sure to give the current buffer
20563 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20564
20565 * charset.c (struct charset_map_entries): New struct.
20566 (load_charset_map): Rename from parse_charset_map. New args
20567 entries and n_entries. Change caller.
20568 (load_charset_map_from_file): Rename from load_charset_map.
20569 Change caller. New arg control_flag. Call load_charset_map at
20570 the tail.
20571 (load_charset_map_from_vector): New function.
20572 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20573 (encode_char): If the charset is compact, change a character index
20574 to a code point.
20575
20576 * coding.c (coding_alloc_by_making_gap): Check the case that the
20577 source and destination are the same correctly.
20578 (decode_coding_raw_text): Set coding->consumed_char and
20579 coding->consumed to 0.
20580 (produce_chars): If coding->chars_at_source is nonzero, update
20581 coding->consumed_char and coding->consumed before calling
20582 alloc_destination.
20583 (Fdefine_coding_system_alias): Register ALIAS in
20584 Vcoding_system_alist.
20585 (syms_of_coding): Define `no-conversion' coding system at the tail.
20586
20587 * fileio.c (Finsert_file_contents): Set coding_system instead of
20588 val. If the current buffer is multibyte, always call
20589 decode_coding_gap.
20590
20591 * xfaces.c (try_font_list): Give higher priority to fontset's
20592 family than face's family.
20593
205942008-02-01 Kenichi Handa <handa@m17n.org>
20595
20596 * callproc.c (Fcall_process): Be sure to give the current buffer
20597 to decode_coding_c_string.
20598
20599 * xfaces.c (try_font_list): Give a family specified in a fontset
20600 higher priority than a family specified in a face.
20601
206022008-02-01 Kenichi Handa <handa@m17n.org>
20603
20604 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20605 Fix arguments to insert_from_buffer.
20606
20607 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20608
206092008-02-01 Kenichi Handa <handa@m17n.org>
20610
20611 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20612 (decode_coding_gap): Set coding->dst_multibyte correctly.
20613
206142008-02-01 Kenichi Handa <handa@m17n.org>
20615
20616 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20617 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20618 (encode_coding_utf_16): Substitute coding->default_char for
20619 non-Unicode characters.
20620 (decode_coding): Don't call record_insert here.
20621 (setup_coding_system): Initialize `surrogate' of
20622 coding->spec.utf_16 to 0.
20623 (EMIT_ONE_BYTE): Fix for multibyte case.
20624
20625 * insdel.c (insert_from_gap): Call record_insert.
20626
206272008-02-01 Kenichi Handa <handa@m17n.org>
20628
20629 * casefiddle.c (casify_region): Fix multibyte case.
20630
20631 * character.c (c_string_width): Add return type `int'.
20632 (char_string_with_unification): Delete arg ADVANCED.
20633
20634 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20635 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20636 (CHAR_STRING_ADVANCE): Make it do-while statement.
20637
20638 * chartab.c (sub_char_table_set_range): Optimize for the case
20639 DEPTH == 3. Add workaround code for a GCC optimization bug.
20640
20641 * charset.c (parse_charset_map): Remove an unused variable.
20642
20643 * coding.c: Delete unused variables.
20644
20645 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20646 earlier. If inserted is zero and the coding system doesn't
20647 require flushing, don't call decode_coding_gap.
20648
20649 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20650
206512008-02-01 Kenichi Handa <handa@m17n.org>
20652
20653 The following changes are for using Unicode as an internal
20654 character model, and use UTF-8 format for buffer/string
20655 representation.
20656
20657 * .gdbinit (xchartable): Adjust for the change of char table structure.
20658 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20659
20660 * Makefile.in (obj): Add character.o and chartab.o.
20661 (lisp, shortlisp): Remove utf-8.elc.
20662 (*.o): For many files, change dependency on charset.h to
20663 character.h, and add dependency on character.h.
20664 (character.o, chartab.o): New targets.
20665
20666 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20667 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20668 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20669 of "charset.h".
20670
20671 * dired.c, filelock.c: Include "character.h".
20672
20673 * alloc.c: Include "character.h" instead of "charset.h".
20674 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20675 (syms_of_alloc): Remove defsubr for Smake_char_table.
20676
20677 * buffer.c: Include "character.h" instead of "charset.h", don't
20678 include "coding.h".
20679 (Fset_buffer_multibyte): Adjust for UTF-8.
20680
20681 * buffer.h: EXFUN Fbuffer_live_p.
20682
20683 * callproc.c: Include "character.h" instead of "charset.h".
20684 (Fcall_process): Big change for the new code-conversion APIs.
20685
20686 * casetab.c: Include "character.h" instead of "charset.h".
20687 (set_canon, set_identity, shuffle): Adjust for the new
20688 map_char_table spec.
20689 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20690 accessing the char table structure.
20691
20692 * chartab.c: New file that implements char table.
20693
20694 * category.c: Include "character.h".
20695 (copy_category_entry): New function.
20696 (copy_category_table): Call map_char_table and copy_category_entry.
20697 (Fmake_category_table): Initialize all top-level slots.
20698 (char_category_set): New function.
20699 (modify_lower_category_set): Delete.
20700 (Fmodify_category_entry): Call char_table_ref_and_range.
20701
20702 * category.h (CATEGORY_SET): Just call char_category_set.
20703
20704 * ccl.c: Include "character.h".
20705 (Qccl, Qcclp): New variables.
20706 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20707 it's less than 256.
20708 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20709 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20710 and DST type.
20711 (ccl_driver): Change types of argument, adjust code accordingly.
20712 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20713 ccl_driver.
20714 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20715
20716 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20717 New members src_multibyte, dst_multibyte, consumed, and produced.
20718 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20719 (CODING_SPEC_CCL_PROGRAM): New macro.
20720 (ccl_driver): Update prototype.
20721 (Qccl, Qcclp, Fccl_program_p): Extern them.
20722 (CHECK_CCL_PROGRAM): New macro.
20723
20724 * character.c, character.h, chartab.c: New files.
20725
20726 * charset.c: Mostly re-written. Move character and multibyte sequence
20727 handling codes to character.c.
20728
20729 * charset.h: Mostly re-written. Move character and multibyte sequence
20730 handling codes to character.h.
20731
20732 * coding.c, coding.h: Mostly re-written.
20733
20734 * composite.c: Include "character.h" instead of "charset.h".
20735 (CHAR_WIDTH): Move to character.h.
20736 (HASH_KEY, HASH_VALUE): Delete.
20737
20738 * composite.h (enum composition_method): Change order of enumeration
20739 symbols.
20740
20741 * data.c: Include "character.h" instead of "charset.h".
20742 (Faref): Call CHAR_TABLE_REF for a char table.
20743 (Faset): Call CHAR_TABLE_SET for a char table.
20744
20745 * dispextern.h (free_realized_face, check_face_attribytes)
20746 (generate_ascii_font): Extern them.
20747 (free_realized_multibyte_face): Delete extern.
20748
20749 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20750 table structure.
20751
20752 * editfns.c: Include "character.h" instead of "charset.h".
20753 (Fchar_to_string): Always call CHAR_STRING.
20754
20755 * emacs.c (main): Call init_charset_once, init_charset,
20756 syms_of_chartab, and syms_of_character.
20757
20758 * fileio.c: Include "character.h" instead of "charset.h".
20759 (Finsert_file_contents): Big change for the new code-conversion API.
20760 (choose_write_coding_system, Fwrite_region): Likewise.
20761 (build_annotations_2): Delete.
20762 (e_write): Big change for the new code-conversion API.
20763
20764 * fns.c: Include "character.h" instead of "charset.h".
20765 (copy_sub_char_table): Move to chartab.c.
20766 (Fcopy_sequence): Call copy_char_table for a char table.
20767 (concat): Delete codes calling count_multibyte.
20768 (string_char_to_byte, string_byte_to_char): Adjust for the new
20769 multibyte form.
20770 (internal_equal): Adjust for the change of char table structure.
20771 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20772 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20773 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20774 (char_table_translate, optimize_sub_char_table)
20775 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20776 chartab.c.
20777 (char_table_ref_and_index): Delete.
20778 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20779 (Fmd5): Call preferred_coding_system instead of accessing
20780 Vcoding_category_list. Adjust for the new code-conversion API.
20781 (syms_of_fns): Move defsubr for char table related functions to
20782 chartab.c.
20783
20784 * fontset.c: Mostly re-written.
20785
20786 * fontset.h (struct font_info): Change type of the member encoding_type.
20787 (enum FONT_SPEC_INDEX): New enum.
20788 (fontset_font_pattern, fs_load_font): Update prototype.
20789 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20790
20791 * indent.c: Include "character.h" instead of "charset.h".
20792 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20793
20794 * insdel.c: Include "character.h" instead of "charset.h".
20795 (copy_text): Don't refer to Vnonascii_translation_table.
20796 (insert_from_gap): New function.
20797
20798 * keyboard.c: Include "character.h" instead of "charset.h".
20799 (command_loop_1): Never call direct_output_forward_char before
20800 a non-ASCII character.
20801 (read_char): If Vkeyboard_translate_table is a char table, always
20802 translate a character.
20803
20804 * keymap.c: Include "character.h".
20805 (store_in_keymap): Handle the case that IDX is a cons.
20806 (Fdefine_key): Handle the case that KEY is a cons and the car part
20807 is also a cons (range).
20808 (push_key_description): Adjust for the new character code.
20809 (describe_vector): Call describe_char_table for a char table.
20810 (describe_char_table): New function.
20811
20812 * keymap.h (describe_char_table): Extern it.
20813
20814 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20815 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20816 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20817 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20818 Delete.
20819 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20820 structure.
20821 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20822 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20823 (CHARTAB_SIZE_BITS_3): New macros.
20824 (chartab_size): Extern it.
20825 (struct Lisp_Char_Table): Re-design.
20826 (struct Lisp_Sub_Char_Table): New structure.
20827 (HASH_KEY, HASH_VALUE): Move from fns.c.
20828 (CHARACTERBITS): Define as 22.
20829 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20830 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20831 (GC_SUB_CHAR_TABLE_P): New macro.
20832 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20833 (code_convert_string_norecord): Deleted extern.
20834 (init_character_once, syms_of_character, init_charset)
20835 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20836
20837 * lread.c: Include "character.h".
20838 (read_multibyte): New arg NBYTES.
20839 (read_escape): Change the meaning of returned *BYTEREP.
20840 (to_multibyte): Delete.
20841 (read1): Adjust the handling of char table and string.
20842
20843 * print.c: Include "character.h" instead of "charset.h".
20844 (print_string): Convert 8-bit raw bytes to octal form by
20845 string_escape_byte8.
20846 (print_object): Adjust for the new multibyte form. Print 8-bit
20847 raw bytes always in octal form. Handle sub char table correctly.
20848
20849 * process.c: Include "character.h" instead of "charset.h".
20850 (read_process_output, send_process): Adjust for the new
20851 code-conversion API.
20852
20853 * puresize.h (BASE_PURESIZE): Increase.
20854
20855 * regex.c: Include "character.h" instead of "charset.h".
20856 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20857 (regex_compile): Accept a range whose starting and ending
20858 character have different leading bytes.
20859 (analyse_first): Adjust for the above change.
20860
20861 * search.c: Include "character.h" instead of "charset.h".
20862 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20863 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20864
20865 * syntax.c: Include "character.h" instead of "charset.h".
20866 (syntax_parent_lookup): Delete.
20867 (Fmodify_syntax_entry): Accept a cons as CHAR.
20868 (skip_chars): Adjust for the new multibyte form.
20869 (init_syntax_once): Call char_table_set_range instead of directly
20870 accessing the structure of a char table.
20871
20872 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20873 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20874 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20875 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20876
20877 * term.c: Include "buffer.h" and "character.h".
20878 (encode_terminal_code, write_glyphs): Adjust for the new
20879 code-conversion API.
20880 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20881
20882 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20883
20884 * xdisp.c: Include "character.h".
20885 (get_next_display_element): Adjust for the new multibyte form.
20886 (disp_char_vector): Adjust for the new char table structure.
20887 (decode_mode_spec_coding): Adjust for the new structure of
20888 coding system.
20889 (decode_mode_spec): Adjust for the new code-conversion API.
20890
20891 * xfaces.c: Include "character.h" instead of "charset.h".
20892 (load_face_font): Adjust for the change of choose_face_font and
20893 FS_LOAD_FONT.
20894 (generate_ascii_font): New function.
20895 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20896 (set_font_frame_param): Adjust for the change of choose_face_font.
20897 (free_realized_face): Make it public.
20898 (free_realized_faces_for_fontset): Rename from
20899 free_realized_multibyte_face. Free also faces realized for ASCII.
20900 (choose_face_font): Change arguments. Adjust for the change of
20901 fontset_font_pattern and FS_LOAD_FONT.
20902
20903 * xfns.c: Include "character.h".
20904 (x_encode_text): Adjust for the new code-conversion API.
20905
20906 * xselect.c: Don't include "charset.h".
20907 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20908
20909 * xterm.c: Include "character.h".
20910 (x_encode_char): New argument CHARSET. Change caller.
20911 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20912 Call ENCODE_CHAR instead of SPLIT_CHAR.
20913 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20914 CHAR_WIDTH instead of CHARSET_WIDTH.
20915 (XTread_socket): Adjust for the new code-conversion API.
20916 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20917 (x_load_font): Adjust for the change of struct font.
20918
209192008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20920
20921 * xfaces.c (face_at_buffer_position): Remove unused vars.
20922
209232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20924
20925 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20926 Fix overflow checking.
20927
209282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20929
20930 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20931 Cancel previous change.
20932
209332008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20934
20935 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20936 ccl->eight_bit_control. Fix check for buffer overflow.
20937 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20938 (ccl_driver): Initialize extra_bytes to 0.
20939
209402008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20941
20942 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20943 return it ORed with ctrl_modifier.
20944
209452008-01-29 Miles Bader <miles@gnu.org>
20946
20947 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20948
209492008-01-28 Jason Rumney <jasonr@gnu.org>
20950
20951 * w32.c (stat): Don't double check for networked drive.
20952
209532008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20954
20955 * window.c (run_window_configuration_change_hook): New function.
20956 Code extracted from set_window_buffer. Set the selected frame.
20957 (set_window_buffer): Use it.
20958 * window.h (run_window_configuration_change_hook): Declare.
20959 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20960
20961 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20962
209632008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20964
20965 * Makefile.in: Remove references to unused macros.
20966
209672008-01-26 Eli Zaretskii <eliz@gnu.org>
20968
20969 * w32.c (g_b_init_get_sid_sub_authority)
20970 (g_b_init_get_sid_sub_authority_count): New static variables.
20971 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20972 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20973 (init_user_info): Use them to retrieve uid and gid.
20974 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20975 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20976 st_uid and st_gid of the file.
20977
209782008-01-26 Jason Rumney <jasonr@gnu.org>
20979
20980 * w32.c (logon_network_drive): New function.
20981 (stat): Use it.
20982
209832008-01-26 Chong Yidong <cyd@stupidchicken.com>
20984
20985 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20986 invisible text covered with an ellipsis.
20987
209882008-01-25 Richard Stallman <rms@gnu.org>
20989
20990 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20991 jump back to beginning. Move some other initializations after that.
20992 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20993 New variables.
20994 (syms_of_xdisp): Init them.
20995
20996 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20997
20998 * buffer.c (reset_buffer_local_variables):
20999 Implement `permanent-local-hook'.
21000 (Qpermanent_local_hook): New variable.
21001 (syms_of_buffer): Init and staticpro it.
21002
210032008-01-25 Michael Albinus <michael.albinus@gmx.de>
21004
21005 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
21006
210072008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
21008
21009 * fns.c (Fclrhash): Return TABLE.
21010
210112008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21012
21013 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
21014 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
21015 is set even without positional changes.
21016 (x_scroll_bar_clear): Set bar->redraw_needed_p.
21017
21018 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
21019
210202008-01-23 Jason Rumney <jasonr@gnu.org>
21021
21022 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
21023
21024 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
21025 the unicode range available in MULE by locale-coding-system.
21026 Improve dbcs lead byte detection. Set event timestamp and modifiers
21027 earlier.
21028
210292008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21030
21031 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
21032 [MAC_OSX] (init_mac_osx_environment): Initialize it.
21033 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
21034 when used on child processes.
21035
210362008-01-21 Michael Albinus <michael.albinus@gmx.de>
21037
21038 * dbusbind.c (Fdbus_method_return_internal): Rename from
21039 Fdbus_method_return.
21040 (Fdbus_unregister_object): Move to dbus.el.
21041 (Fdbus_call_method, Fdbus_method_return_internal)
21042 (Fdbus_send_signal): Improve debug messages.
21043
210442008-01-20 Martin Rudalics <rudalics@gmx.at>
21045
21046 * undo.c (undo_inhibit_record_point): New variable.
21047 (syms_of_undo): Initialize it.
21048 (record_point): Don't record point when undo_inhibit_record_point
21049 is set.
21050
210512008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
21052
21053 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
21054
21055 * xdisp.c (Qauto_hscroll_mode): New var.
21056 (syms_of_xdisp): Initialize it.
21057 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
21058 window's buffer.
21059 (hscroll_windows): Don't check automatic_hscrolling_p here.
21060
21061 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
21062 vscroll if we're setting window-buffer to the value it already has.
21063
210642008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
21065
21066 * m/intel386.h: Remove references to XENIX.
21067
210682008-01-17 Andreas Schwab <schwab@suse.de>
21069
21070 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
21071 instead of HAVE_X86_64_LIB64_DIR.
21072 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21073
210742008-01-17 Glenn Morris <rgm@gnu.org>
21075
21076 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21077 to HAVE_X86_64_LIB64_DIR.
21078
210792008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21080
21081 * s/irix3-3.h:
21082 * s/irix4-0.h:
21083 * s/386-ix.h:
21084 * s/domain.h:
21085 * s/hpux9-x11r4.h:
21086 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21087
21088 * sysdep.c: Remove code containing references to symbols defined
21089 by unsupported systems.
21090
210912008-01-16 Glenn Morris <rgm@gnu.org>
21092
21093 * coding.c (select-safe-coding-system-function): Doc fix.
21094
210952008-01-15 Glenn Morris <rgm@gnu.org>
21096
21097 * config.in: Revert 2008-01-13 change: this is a generated file.
21098
210992008-01-13 Tom Tromey <tromey@redhat.com>
21100
21101 * lisp.h: Fix typo.
21102
211032008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21104
21105 * m/sequent-ptx.h:
21106 * m/sequent.h:
21107 * s/ptx.h:
21108 * s/ptx4-2.h:
21109 * s/ptx4.h: Remove files for systems no longer supported.
21110
21111 * callproc.c (Fcall_process): Fix previous change.
21112
211132008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21114
21115 * unexsunos4.c: Remove file, system not supported anymore.
21116
21117 * m/mips.h:
21118 * m/intel386.h:
21119 * callproc.c:
21120 * config.in:
21121 * ecrt0.c:
21122 * emacs.c:
21123 * fileio.c:
21124 * frame.c:
21125 * getpagesize.h:
21126 * keyboard.c:
21127 * lread.c:
21128 * process.c:
21129 * puresize.h:
21130 * sysdep.c:
21131 * systty.h:
21132 * syswait.h:
21133 * unexec.c:
21134 * xdisp.c:
21135 * alloc.c: Remove code containing references to symbols defined by
21136 unsupported systems.
21137
211382008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21139
21140 * coding.c (detect_coding_mask): Fix previous change.
21141
211422008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21143
21144 * coding.c (detect_coding_iso2022): New arg
21145 latin_extra_code_state. Allow Latin extra codes only
21146 when *latin_extra_code_state is nonzero.
21147 (detect_coding_mask): If there is a NULL byte, detect the encoding
21148 as UTF-16 or binary. If Latin extra codes exist, detect the
21149 encoding as ISO-2022 only when there's no other proper encoding is
21150 found.
21151
211522008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21153
21154 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21155 #ifdef MAC_OS.
21156
211572008-01-08 Richard Stallman <rms@gnu.org>
21158
21159 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21160
211612008-01-06 Nick Roberts <nickrob@snap.net.nz>
21162
21163 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21164 menu bar in parentheses.
21165
211662008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21167
21168 * m/7300.h:
21169 * m/acorn.h:
21170 * m/alliant-2800.h:
21171 * m/alliant.h:
21172 * m/alliant1.h:
21173 * m/alliant4.h:
21174 * m/altos.h:
21175 * m/amdahl.h:
21176 * m/apollo.h:
21177 * m/att3b.h:
21178 * m/aviion-intel.h:
21179 * m/aviion.h:
21180 * m/celerity.h:
21181 * m/clipper.h:
21182 * m/cnvrgnt.h:
21183 * m/convex.h:
21184 * m/cydra5.h:
21185 * m/delta88k.h:
21186 * m/dpx2.h:
21187 * m/dual.h:
21188 * m/elxsi.h:
21189 * m/f301.h:
21190 * m/gould-np1.h:
21191 * m/gould.h:
21192 * m/i860.h:
21193 * m/ibmps2-aix.h:
21194 * m/ibmrt-aix.h:
21195 * m/ibmrt.h:
21196 * m/irist.h:
21197 * m/is386.h:
21198 * m/isi-ov.h:
21199 * m/mega68.h:
21200 * m/mg1.h:
21201 * m/news-r6.h:
21202 * m/news-risc.h:
21203 * m/news.h:
21204 * m/nh3000.h:
21205 * m/nh4000.h:
21206 * m/ns16000.h:
21207 * m/ns32000.h:
21208 * m/nu.h:
21209 * m/orion.h:
21210 * m/orion105.h:
21211 * m/paragon.h:
21212 * m/pfa50.h:
21213 * m/plexus.h:
21214 * m/pyramid.h:
21215 * m/pyrmips.h:
21216 * m/sh3el.h:
21217 * m/sps7.h:
21218 * m/sr2k.h:
21219 * m/stride.h:
21220 * m/sun1.h:
21221 * m/sun2.h:
21222 * m/sun3-68881.h:
21223 * m/sun3-fpa.h:
21224 * m/sun3-soft.h:
21225 * m/sun3.h:
21226 * m/sun386.h:
21227 * m/symmetry.h:
21228 * m/tad68k.h:
21229 * m/tahoe.h:
21230 * m/targon31.h:
21231 * m/tek4300.h:
21232 * m/tekxd88.h:
21233 * m/tower32.h:
21234 * m/tower32v3.h:
21235 * m/ustation.h:
21236 * m/wicat.h:
21237 * m/xps100.h:
21238 * s/cxux.h:
21239 * s/cxux7.h:
21240 * s/dgux.h:
21241 * s/dgux4.h:
21242 * s/dgux5-4-3.h:
21243 * s/dgux5-4r2.h:
21244 * s/esix.h:
21245 * s/esix5r4.h:
21246 * s/hiuxmpp.h:
21247 * s/hiuxwe2.h:
21248 * s/iris3-5.h:
21249 * s/iris3-6.h:
21250 * s/isc2-2.h:
21251 * s/isc3-0.h:
21252 * s/isc4-0.h:
21253 * s/isc4-1.h:
21254 * s/newsos5.h:
21255 * s/newsos6.h:
21256 * s/osf1.h:
21257 * s/osf5-0.h:
21258 * s/riscix1-1.h:
21259 * s/riscix12.h:
21260 * s/sco4.h:
21261 * s/sco5.h:
21262 * s/sunos4-0.h:
21263 * s/sunos4-1.h:
21264 * s/sunos413.h:
21265 * s/sunos4shr.h:
21266 * s/umax.h:
21267 * s/unipl5-2.h:
21268 * s/xenix.h:
21269 * cxux-crt0.s:
21270 * unexapollo.c:
21271 * unexconvex.c:
21272 * unexenix.c:
21273 * unexsni.c: Remove files for systems no longer supported.
21274
21275 * m/intel386.h: Remove references to unsupported systems.
21276
21277 * w32.c (get_emacs_configuration): Remove reference to i860.
21278
21279 * sysdep.c: Remove dead code.
21280
212812008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21282
21283 * s/rtu.h:
21284 * m/masscomp.h: Remove files. Platform is obsolete.
21285
212862008-01-04 Michael Albinus <michael.albinus@gmx.de>
21287
21288 * dbusbind.c (Fdbus_method_return): New function.
21289 (xd_read_message): Add the serial number to the event.
21290 (Fdbus_register_method): Activate the function.
21291
212922008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21293
21294 * keyboard.c (read_key_sequence): Fix typo.
21295
212962008-01-03 Michael Albinus <michael.albinus@gmx.de>
21297
21298 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21299 (xd_signature, xd_append_arg): Handle element type detection for
21300 empty arrays.
21301 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21302 SDATA () calls; this must be solved more general.
21303 (Fdbus_register_signal): Use SBYTES instead of strlen.
21304
213052008-01-03 Magnus Henoch <magnus@zemdatav>
21306
21307 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21308 unsigned int for byte values (necessary for big-endian platform).
21309 (Fdbus_call_method): Handle the case of no returned arguments.
21310
213112007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21312
21313 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21314
213152007-12-31 Magnus Henoch <mange@freemail.hu>
21316
21317 * dbusbind.c (xd_signature): Signature of variant is just "v".
21318
213192007-12-30 Michael Albinus <michael.albinus@gmx.de>
21320
21321 * dbusbind.c: Fix several errors and compiler warnings.
21322 Reported by Tom Tromey <tromey@redhat.com>.
21323 (XD_ERROR, XD_DEBUG_MESSAGE)
21324 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21325 (xd_append_arg): Part for basic D-Bus types rewritten.
21326 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21327 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21328 appropriate.
21329 (xd_read_message): Return Qnil. Don't signal an error; it is not
21330 useful during event reading.
21331 (Fdbus_register_signal): Signal an error if the check for
21332 FUNCTIONP fails.
21333 (Fdbus_register_method): New function. The implementation is not
21334 complete, the call of the function signals an error therefore.
21335 (Fdbus_unregister_object): New function, renamed from
21336 Fdbus_unregister_signal. The initial check signals an error, if
21337 the object is not well formed.
21338
213392007-12-30 Richard Stallman <rms@gnu.org>
21340
21341 * textprop.c (get_char_property_and_overlay):
21342 Signal error if POSITION is out of range in a buffer.
21343
213442007-12-29 Martin Rudalics <rudalics@gmx.at>
21345
21346 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21347 because the original parameters are in pure storage now.
21348
213492007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21350
21351 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21352
213532007-12-22 Eli Zaretskii <eliz@gnu.org>
21354
21355 * callint.c (syms_of_callint) <command-history>: Add reference to
21356 history-length in the doc string.
21357
213582007-12-17 Jason Rumney <jasonr@gnu.org>
21359
21360 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21361 before passing as wParam.
21362
213632007-12-22 Michael Albinus <michael.albinus@gmx.de>
21364
21365 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21366 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21367 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21368 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21369 as number.
21370 (Fdbus_call_method): Fix docstring.
21371
213722007-12-21 Michael Albinus <michael.albinus@gmx.de>
21373
21374 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21375 New macros.
21376 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21377 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21378 Simplify.
21379 (xd_signature): New function.
21380 (xd_append_arg): Compute also signatures. Major rewrite.
21381 (xd_retrieve_arg): Make debug messages friendly.
21382 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21383 Check for signatures of arguments.
21384
213852007-12-19 Michael Albinus <michael.albinus@gmx.de>
21386
21387 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21388 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21389 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21390 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21391 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21392 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21393 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21394 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21395 (xd_retrieve_value): Remove. Functionality included in ...
21396 (xd_append_arg): New function.
21397 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21398
213992007-12-16 Michael Albinus <michael.albinus@gmx.de>
21400
21401 * dbusbind.c (top): Include <stdio.h>.
21402 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21403 dbus_message_new_method_call and dbus_message_new_signal.
21404 (Fdbus_register_signal): Rename unique_name to uname.
21405 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21406 non-existing unique name. Fix typos in matching rule. Return an
21407 object which is useful in Fdbus_unregister_signal.
21408 (Fdbus_unregister_signal): Reimplementation, in order to remove
21409 only the corresponding entry.
21410 (Vdbus_registered_functions_table): Change the order of entries.
21411 Apply these changes in xd_read_message and Fdbus_register_signal.
21412
214132007-12-16 Andreas Schwab <schwab@suse.de>
21414
21415 * fileio.c (Finsert_file_contents): Fix overflow check to not
21416 depend on undefined integer overflow.
21417
214182007-12-14 Jason Rumney <jasonr@gnu.org>
21419
21420 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21421 for characters above 127.
21422
214232007-12-13 Jason Rumney <jasonr@gnu.org>
21424
21425 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21426 before dereferencing array.
21427 (lookup_vk_code): Remove zero comparison.
21428
214292007-12-14 Michael Albinus <michael.albinus@gmx.de>
21430
21431 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21432 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21433 Use `unsigned int' instead of `uint'.
21434 (xd_read_message, Fdbus_register_signal): Split expressions into
21435 multiple lines before operators "&&" and "||", according to the
21436 GNU Coding Standards.
21437
214382007-12-14 Eli Zaretskii <eliz@gnu.org>
21439
21440 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21441
214422007-12-12 Juri Linkov <juri@jurta.org>
21443
21444 * buffer.c (Frename_buffer): In interactive spec replace
21445 `read-buffer' with `read-string' that uses `buffer-name-history'
21446 as history, and the current buffer's name as default.
21447
214482007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21449
21450 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21451 manipulating the backtrace manually.
21452 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21453 (struct backtrace, backtrace_list): Remove.
21454 (command_loop_1): Remove dead var `no_direct'.
21455
21456 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21457 preserve non-built-in buffer-local variables.
21458 (Fkill_all_local_variables): Don't re-create&re-set permanent
21459 buffer-local variables.
21460
214612007-12-09 Juri Linkov <juri@jurta.org>
21462
21463 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21464 Lisp code that uses `read-buffer' with current buffer as default.
21465
214662007-12-08 Michael Albinus <michael.albinus@gmx.de>
21467
21468 * dbusbind.c (xd_read_message): Generate an event for every
21469 registered handler. There might be several handlers registered
21470 for the same signal.
21471 (Fdbus_register_signal): Don't overwrite a registration for the
21472 same signal. Add a new registration if handlers are different.
21473 (Vdbus_registered_functions_table): Rework doc string.
21474
214752007-12-07 Michael Albinus <michael.albinus@gmx.de>
21476
21477 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21478 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21479 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21480 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21481 Unify argument lists.
21482 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21483 arguments and hash table keys. Use unique name for service.
21484 (Fdbus_unregister_signal): Remove checks.
21485 (Vdbus_registered_functions_table): Fix doc string.
21486
214872007-12-05 Magnus Henoch <mange@freemail.hu>
21488
21489 * process.c (make_process): Initialize pty_flag to 0.
21490
214912007-12-05 Jason Rumney <jasonr@gnu.org>
21492
21493 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21494 specified XBMs.
21495
214962007-12-05 Richard Stallman <rms@gnu.org>
21497
21498 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21499
215002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21501
21502 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21503 New variable.
21504 (mac_try_close_socket) [MAC_OSX]: New function.
21505 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21506 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21507
21508 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21509 Use mac_try_close_socket.
21510
215112007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21512
21513 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21514 reloc_base.
21515 (copy_dysymtab): Compute relocation base here.
21516 (rebase_reloc_address) [__ppc64__]: New function.
21517 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21518 changed.
21519
215202007-12-05 Jason Rumney <jasonr@gnu.org>
21521
21522 * w32proc.c (sys_spawnve): Quote args with wildcards.
21523
215242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21525
21526 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21527 __objc_* sections.
21528 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21529
215302007-12-05 Michael Albinus <michael.albinus@gmx.de>
21531
21532 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21533 Move check for Vdbus_registered_functions_table to
21534 xd_read_queued_messages.
21535 (xd_read_queued_messages): Protect xd_read_message calls by
21536 internal_condition_case_1.
21537
215382007-12-04 Michael Albinus <michael.albinus@gmx.de>
21539
21540 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21541 Qdbus_system_bus and Qdbus_session_bus, respectively.
21542 (Vdbus_intern_symbols): Remove.
21543 (Vdbus_registered_functions_table): New hash table.
21544 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21545 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21546 Rewrite in order to manage registered functions by hash table
21547 Vdbus_registered_functions_table.
21548
215492007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21550
21551 * xterm.c: Update URL to Window Manager Specification in comment.
21552
215532007-12-02 Michael Albinus <michael.albinus@gmx.de>
21554
21555 * config.in (HAVE_DBUS): Add.
21556
21557 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21558 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21559 (obj): Add $(DBUS_OBJ).
21560 (LIBES): Add $(DBUS_LIBS).
21561 (dbusbind.o): New target.
21562
21563 * dbusbind.c: New file.
21564
21565 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21566
21567 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21568 (Qdbus_event): New Lisp symbol.
21569 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21570 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21571 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21572
21573 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21574
215752007-12-01 Richard Stallman <rms@gnu.org>
21576
21577 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21578
215792007-11-30 Jason Rumney <jasonr@gnu.org>
21580
21581 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21582 (w32con_reset_terminal_modes): Clear screen buffer.
21583 (w32_face_attributes): Don't use color indexes that are out of range.
21584 Only reverse the default colors.
21585
21586 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21587 WINDOWSNT.
21588
21589 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21590
215912007-11-29 Jason Rumney <jasonr@gnu.org>
21592
21593 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21594 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21595 if the terminal colors are initialized.
21596 (unspecified_fg, unspecified_bg): Remove unused declarations.
21597
215982007-11-29 Andreas Schwab <schwab@suse.de>
21599
21600 * keyboard.c (apply_modifiers): Fix typo.
21601
216022007-11-29 Richard Stallman <rms@gnu.org>
21603
21604 * keymap.c (Fcurrent_local_map): Doc fix.
21605
216062007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21607
21608 * s/gnu-kfreebsd.h: New file.
21609
216102007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21611
21612 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21613 Don't cast redundantly.
21614
21615 * keyboard.c (KEY_TO_CHAR): New macro.
21616 (parse_modifiers, apply_modifiers): Accept integer arguments.
21617 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21618 for chars and symbol keys.
21619 After doing such remapping, apply function-key-map again.
21620
216212007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21622
21623 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21624 compiled anymore.
21625
216262007-11-26 Andreas Schwab <schwab@suse.de>
21627
21628 * process.c (list_processes_1): Fix indentation level of the
21629 command column.
21630
216312007-11-23 Andreas Schwab <schwab@suse.de>
21632
21633 * editfns.c (Fformat): Handle %c specially since it requires the
21634 argument to be of type int.
21635
216362007-11-23 Markus Triska <markus.triska@gmx.at>
21637
21638 * emacs.c (main): Call init_editfns before init_process, since
21639 init_process sets Vprocess_connection_type depending on OS release.
21640
216412007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21642
21643 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21644 (find_symbol_value): Use do_symval_forwarding.
21645
21646 * data.c (set_internal): Set the value in the `cons-cell' (for
21647 Buffer_Local_values) not only for frame-local variables.
21648
216492007-11-22 Andreas Schwab <schwab@suse.de>
21650
21651 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21652 values to sprintf.
21653 * keymap.c (Fsingle_key_description): Likewise.
21654 * print.c (print_object): Likewise.
21655
216562007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21657
21658 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21659 file for image is nil.
21660
216612007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21662
21663 * term.c: Include stdarg.h.
21664 (fatal): Implement using varargs.
21665 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21666
216672007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21668
21669 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21670 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21671 Update call to buffer_slot_type_mismatch.
21672 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21673 (buffer_slot_type_mismatch): Update.
21674 * buffer.c (buffer_local_types): Remove.
21675 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21676 (defvar_per_buffer): Set the type in the buffer_objfwd.
21677
216782007-11-21 Jason Rumney <jasonr@gnu.org>
21679
21680 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21681 CreateFileMapping returns NULL on failure.
21682
216832007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21684
21685 * search.c (Fset_match_data): Remove the `evaporate' feature.
21686 (unwind_set_match_data): Don't use the `evaporate' feature.
21687
216882007-11-21 Jason Rumney <jasonr@gnu.org>
21689
21690 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21691
21692 * w32console.c (w32con_write_glyphs): Remove unused variables.
21693
216942007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21695
21696 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21697
21698 * s/darwin.h (MULTI_KBOARD): Remove.
21699
21700 * macfns.c (x_create_tip_frame, Fx_create_frame)
21701 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21702
217032007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21704
21705 * buffer.c (Fbuffer_local_value): Remove redundant test.
21706 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21707 than in `current-buffer' to match the comment.
21708 Do the swap using swap_in_global_binding.
21709
21710 * data.c (store_symval_forwarding, set_internal):
21711 * eval.c (specbind): Remove dead code.
21712
21713 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21714 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21715 Since we do not want to see internal Lisp_*fwd objects here.
21716
217172007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21718
21719 * sysdep.c (init_system_name): Use getaddrinfo if available.
21720
21721 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21722 (x_scroll_bar_note_movement): start, end, with, height in struct
21723 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21724
217252007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21726
21727 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21728
217292007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21730
21731 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21732 This undoes Richard's change of 14-Oct-2002.
21733
21734 * alloc.c (allocate_other_vector):
21735 * lisp.h (allocate_other_vector): Remove.
21736
21737 * window.c (struct save_window_data): Move non-lisp data to the end
21738 and make it `int' rather than Lisp_Object.
21739 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21740 Done wrap/unwrap integer values.
21741 (Fset_window_configuration, compare_window_configurations):
21742 Update use of fields to their new types.
21743
21744 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21745 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21746 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21747 (SET_SCROLL_BAR_X_WINDOW): Remove.
21748 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21749 Access the new x_window field directly.
21750 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21751 Don't wrap/unwrap integers into Lisp_Objects.
21752 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21753 (x_scroll_bar_report_motion):
21754 Don't wrap/unwrap integers into Lisp_Objects.
21755 (x_term_init): Use SDATA.
21756 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21757 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21758 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21759 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21760 * xfns.c (x_set_background_color):
21761 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21762 Access the new x_window field directly.
21763
21764 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21765 (allocate_pseudovector): Make non-static.
21766
21767 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21768 (allocate_pseudovector): Declare.
21769 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21770
217712007-11-15 Andreas Schwab <schwab@suse.de>
21772
21773 * editfns.c (Fformat): Correctly format EMACS_INT values.
21774 Also take precision into account when formatting an integer.
21775
21776 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21777
217782007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21779
21780 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21781 (syms_of_keyboard): Defsubr it.
21782
21783 * data.c (swap_in_global_binding): Fix longstanding bug where
21784 store_symval_forwarding was not called with the right second argument,
21785 thus causing objfwd-ing from being dropped.
21786
217872007-11-14 Juanma Barranquero <lekktu@gmail.com>
21788
21789 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21790 (Fx_display_pixel_height, Fx_display_planes)
21791 (Fx_display_color_cells, Fx_server_max_request_size)
21792 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21793 (Fx_display_visual_class, Fx_display_save_under):
21794 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21795 (Fx_display_pixel_height, Fx_display_planes)
21796 (Fx_display_color_cells, Fx_server_max_request_size)
21797 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21798 (Fx_display_mm_height, Fx_display_mm_width)
21799 (Fx_display_backing_store, Fx_display_visual_class)
21800 (Fw32_select_font, Fx_display_save_under):
21801 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21802 (Fx_display_pixel_height, Fx_display_planes)
21803 (Fx_display_color_cells, Fx_server_max_request_size)
21804 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21805 (Fx_display_save_under): Fix typos in docstrings.
21806
218072007-11-14 Juanma Barranquero <lekktu@gmail.com>
21808
21809 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21810 corresponding to deleted entries; they are an implementation detail.
21811 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21812 Remove variables.
21813 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21814 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21815 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21816 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21817 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21818 (Fw32_define_rgb_color, Fw32_load_color_file)
21819 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21820 Fix typos in docstrings.
21821 (Fx_server_version): Reflow docstring.
21822 (Fw32_shell_execute): Doc fixes.
21823
218242007-11-13 Juanma Barranquero <lekktu@gmail.com>
21825
21826 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21827 if w32_parse_hot_key returned nil.
21828
218292007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21830
21831 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21832
218332007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21834
aac0c6e3
MR
21835 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21836
21837 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21838
21839 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21840 Remove W32_SCROLL_BAR_CLICK_EVENT.
21841
21842 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21843 Add MULTIMEDIA_KEY_EVENT.
21844
21845 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21846 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21847 (make_lispy_event) [WINDOWSNT]: Use it to translate
21848 MULTIMEDIA_KEY_EVENT.
21849
21850 * w32term.h (WM_APPCOMMAND): Define if not already.
21851 (GET_APPCOMMAND_LPARAM): Likewise.
21852
21853 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21854 WM_APPCOMMAND.
21855
21856 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21857 (syms_of_w32fns): Export and initialize it.
21858 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21859
218602007-11-09 Chong Yidong <cyd@stupidchicken.com>
21861
21862 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21863 twice.
21864
21865 * xdisp.c (handle_face_prop): Fix last change.
21866
218672007-11-09 Richard Stallman <rms@gnu.org>
21868
21869 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21870 not just for after-strings and before-strings.
21871 Call face_for_overlay_string and pass the overlay to it.
21872 (handle_display_prop): Determine whether property came from an overlay.
21873 Pass OVERLAY arg to handle_single_display_spec.
21874 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21875 (load_overlay_strings): Fill in it->string_overlays.
21876 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21877
21878 * xfaces.c (face_for_overlay_string): Function renamed from
21879 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21880
21881 * dispextern.h (struct it): New elt string_overlays.
21882 New elt from_overlay, also in stack.
21883 Rearrange a few elements.
21884 (face_for_overlay_string): Decl renamed from
21885 face_at_buffer_position_no_overlays, and add argument.
21886
218872007-11-09 Richard Stallman <rms@gnu.org>
21888
21889 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21890 to get the base face for an overlay string.
21891
21892 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21893
21894 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21895
21896 * xdisp.c (handle_stop): Move some code out of loop.
21897
218982007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21899
21900 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21901 Fix conversion from Lisp object to ATSUFontID.
21902
219032007-11-09 Jason Rumney <jasonr@gnu.org>
21904
21905 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21906
219072007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21908
21909 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21910 Don't assume regions are aligned to page boundary.
21911 (print_load_command_name): Add LC_UUID if defined.
21912
219132007-11-09 Richard Stallman <rms@gnu.org>
21914
21915 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21916
219172007-11-07 Jason Rumney <jasonr@gnu.org>
21918
21919 * s/windows95.h: Remove.
21920
219212007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21922
21923 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21924 abort with a message on unhandled store_type values.
21925
219262007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21927
21928 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21929 Remove HAVE_X11R5 and HAVE_X11R4.
21930
219312007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21932
21933 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21934
219352007-11-01 Johan Bockgård <bojohan@gnu.org>
21936
21937 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21938 Don't set s->stippled_p here, since it has already been set by
21939 x_set_glyph_string_gc from x_draw_glyph_string.
21940
219412007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21942
21943 * sunfns.c: Remove file.
21944
21945 * m/sun386.h:
21946 * m/sun2.h:
21947 * m/sparc.h: Remove Sun windows code.
21948
219492007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21950
21951 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21952 (init_keyboard): Set current_kboard's window-system to nil.
21953 (tty_read_avail_input): Typo.
21954 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21955
219562007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21957
21958 * s/usg5-4.h:
21959 * s/usg5-3.h:
21960 * s/ptx.h:
21961 * m/is386.h:
21962 * m/ibmps2-aix.h:
21963 * Makefile.in: Remove all mentions of X10.
21964
21965 * dispnew.c (syms_of_display): Don't mention version 10.
21966
219672007-10-28 Juanma Barranquero <lekktu@gmail.com>
21968
21969 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21970 ($(BLD)/abbrev.$(O)): Remove.
21971
219722007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21973
21974 Rewrite abbrev.c in Elisp.
21975 * image.c (Qcount): Don't declare as extern.
21976 (syms_of_image): Initialize and staticpro `Qcount'.
21977 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21978 * emacs.c (main): Don't call syms_of_abbrev.
21979 * Makefile.in (obj): Remove abbrev.o.
21980 (abbrev.o): Remove.
21981 * abbrev.c: Remove.
21982
219832007-10-26 Martin Rudalics <rudalics@gmx.at>
21984
21985 * window.c (window_min_size_2): Don't count header-line.
21986
219872007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21988
21989 * frame.h (struct frame): Move all bit fields after the first bit
21990 field to take advantage of the available space. Group all the
21991 chars together to reduce wasted space due to padding.
21992
219932007-10-26 Juanma Barranquero <lekktu@gmail.com>
21994
21995 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21996
21997 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21998 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21999 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
22000 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
22001 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
22002 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
22003 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
22004 (last_marked, mark_object_loop_halt): Make static.
22005
22006 * frame.c (syms_of_frame) <delete-frame-functions>:
22007 Fix typo in docstring.
22008
220092007-10-25 Juanma Barranquero <lekktu@gmail.com>
22010
22011 * w32.c (init_environment): Fix tiny memory leak.
22012 (w32_get_resource): Remove unused variable `ok'.
22013
220142007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
22015
22016 Make `window-system' into a keyboard-local variable (rather than
22017 frame-local as done originally by multi-tty).
22018
22019 * keyboard.h (struct kboard): Add Vwindow_system.
22020 * keyboard.c (init_kboard): Set a default for Vwindow_system.
22021 (mark_kboards): Mark Vwindow_system.
22022
22023 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
22024 (init_display): Don't set the obsolete `window-system' frame-param.
22025
22026 * xterm.c (x_term_init):
22027 * w32term.c (w32_create_terminal):
22028 * term.c (init_tty): Set Vwindow_system.
22029 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
22030 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
22031
22032 * xfns.c (Fx_create_frame, x_create_tip_frame):
22033 * w32fns.c (Fx_create_frame, x_create_tip_frame):
22034 * macfns.c (Fx_create_frame):
22035 Don't set the obsolete `window-system' frame-param.
22036
22037 * frame.h (Qwindow_system): Remove.
22038 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
22039 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
22040
220412007-10-24 Richard Stallman <rms@gnu.org>
22042
22043 * frame.c (x_figure_window_size): For fullscreen case,
22044 set USPosition | PPosition without clobbering rest of window_prompting.
22045
22046 * keyboard.c (Fcurrent_idle_time): Doc fix.
22047
22048 * print.c (Fwith_output_to_temp_buffer): Doc fix.
22049
220502007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
22051
22052 * process.c (unwind_request_sigio): Only define if __ultrix__.
22053
22054 * callproc.c (child_setup): Remove spurious *.
22055
22056 * lisp.h (Fget_text_property): Declare.
22057 (have_menus_p): Declare it here rather than in sys-dep header files.
22058 * macterm.h (have_menus_p):
22059 * msdos.h (have_menus_p):
22060 * xterm.h (have_menus_p): Remove.
22061
22062 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
22063 (Fmake_variable_frame_local): Just check the variable's const-ness
22064 rather than checking nil or t.
22065
220662007-10-22 Jason Rumney <jasonr@gnu.org>
22067
22068 * w32fns.c: Include math.h.
22069 (w32_abort): Declaration moved to nt/config.nt.
22070
22071 * s/ms-w32.h (HAVE_STDLIB_H): Define.
22072 (abort): Redefinition moved to nt/config.nt.
22073
22074 * m/windowsnt.h: Remove.
22075
220762007-10-22 Juanma Barranquero <lekktu@gmail.com>
22077
22078 * emacs.c (Fdump_emacs): Fix typo in message.
22079 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22080 <installation-directory>: Reflow docstring.
22081
220822007-10-22 Juri Linkov <juri@jurta.org>
22083
22084 * minibuf.c: Allow minibuffer default to be a list of default values.
22085 With empty input use the first element of this list as returned default.
22086 (string_to_object)
22087 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22088 (read_minibuf): If defalt is cons, set histstring to its car.
22089 (Fread_string): If default_value is cons, set val to its car.
22090 (Fread_buffer): If def is cons, use its car.
22091 (Fcompleting_read): If defalt is cons, set val to its car.
22092
220932007-10-21 Michael Albinus <michael.albinus@gmx.de>
22094
22095 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22096
220972007-10-20 Juanma Barranquero <lekktu@gmail.com>
22098
22099 * doc.c (Fdocumentation): Check for advice in all cases.
22100
221012007-10-19 Chong Yidong <cyd@stupidchicken.com>
22102
22103 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22104
221052007-10-19 Richard Stallman <rms@gnu.org>
22106
22107 * doc.c (Fdocumentation): Check for and handle an advised function.
22108
221092007-10-19 Juanma Barranquero <lekktu@gmail.com>
22110
22111 * process.c (Fset_process_filter): Doc fix.
22112
221132007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22114
22115 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22116 which caused key-translation-map to applied repeatedly (thus breaking
22117 double-mode).
22118
221192007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22120
22121 * xselect.c (x_own_selection, x_handle_selection_clear)
22122 (x_clear_frame_selections):
22123 * w32menu.c (list_of_panes, list_of_items):
22124 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22125 * textprop.c (validate_plist, interval_has_all_properties)
22126 (interval_has_some_properties, interval_has_some_properties_list)
22127 (add_properties, text_property_list):
22128 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22129 * minibuf.c (Fassoc_string):
22130 * macselect.c (x_own_selection, x_clear_frame_selections)
22131 (Fx_disown_selection_internal):
22132 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22133 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22134
221352007-10-17 Chong Yidong <cyd@stupidchicken.com>
22136
22137 * process.c: Link to libs for calling res_init() if available.
22138 (Fmake_network_process): Call res_init() before getaddrinfo or
22139 gethostbyname, if possible.
22140
221412007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22142
22143 * lread.c (read1): Set pvectype for char_tables.
22144
22145 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22146 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22147 Add type checks.
22148 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22149
22150 * alloc.c (free_misc): Use XMISCTYPE.
22151 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22152
221532007-10-17 Glenn Morris <rgm@gnu.org>
22154
22155 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22156 (syms_of_minibuf): Add Qcompletion_ignore_case.
22157 * dired.c (Qcompletion_ignore_case): Change to external.
22158 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22159 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22160 (Fread_file_name): Use it rather than intern'ing.
22161
22162 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22163 (Fread_coding_system): Ignore case of user input.
22164
221652007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22166
22167 * xdisp.c (handle_display_prop): Ignore display specs after
22168 replacing one when string text is being replaced.
22169 (handle_single_display_spec): Pretend as if characters with display
22170 property haven't been consumed only when buffer text is being replaced.
22171
221722007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22173
22174 * xfns.c (Fx_create_frame, Fx_display_list):
22175 * window.c (window_fixed_size_p, enlarge_window)
22176 (shrink_window_lowest_first):
22177 * macterm.c (init_font_name_table):
22178 * macfns.c (Fx_create_frame, Fx_display_list):
22179 * lread.c (close_load_descs):
22180 * keyboard.c (read_char_x_menu_prompt):
22181 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22182 * coding.c (code_convert_region_unwind): Test the type of an object
22183 rather than just !NILP before extracting data from it.
22184
22185 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22186
22187 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22188 (XMISCANY): New macro.
22189 (XMISCTYPE): Use it.
22190 (struct Lisp_Misc_Any): New type.
22191 (union Lisp_Misc): Use it.
22192 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22193 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22194 (find_symbol_value, set_internal, default_value, Fset_default)
22195 (Fmake_variable_buffer_local, Fmake_local_variable)
22196 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22197 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22198 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22199 * alloc.c (allocate_buffer): Set the size and tag.
22200 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22201 Use XMISCANY.
22202 (die): Follow the GNU convention for error messages.
22203 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22204 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22205 tag any more.
22206 (set_buffer_internal_1):
22207 * frame.c (store_frame_param):
22208 * eval.c (specbind):
22209 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22210
22211 * doc.c (Fsnarf_documentation): Simplify.
22212
222132007-10-14 Juanma Barranquero <lekktu@gmail.com>
22214
22215 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22216 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22217
222182007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22219
22220 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22221
222222007-10-14 Juanma Barranquero <lekktu@gmail.com>
22223
22224 * eval.c (do_autoload): Don't save autoloads.
22225
22226 * data.c (Ffset): Save autoload of the function being set.
22227
222282007-10-07 John Paul Wallington <jpw@pobox.com>
22229
22230 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22231 parameter before setting up faces.
22232
222332007-10-13 Eli Zaretskii <eliz@gnu.org>
22234
22235 * ccl.c (Fregister_code_conversion_map):
22236 * keyboard.c (append_tool_bar_item): Reformat last change.
22237
22238 * lisp.h (eabs): Rename from `abs'. All callers changed.
22239
222402007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22241
22242 * buffer.c (add_overlay_mod_hooklist):
22243 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22244 * fontset.c (make_fontset):
22245 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22246 (append_tool_bar_item):
22247 * macmenu.c (grow_menu_items):
22248 * w32menu.c (grow_menu_items):
22249 * xmenu.c (grow_menu_items): Use larger_vector.
22250
222512007-10-13 Eli Zaretskii <eliz@gnu.org>
22252
22253 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22254 selected frame'' on MSDOS).
22255
222562007-10-12 Martin Rudalics <rudalics@gmx.at>
22257
22258 * frame.c (Qexplicit_name): New variable.
22259 (x_report_frame_params): Report it in parameter alist.
22260 (syms_of_frame): Intern and staticpro it.
22261
222622007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22263
22264 * macfns.c (x_create_tip_frame): Set terminal for frame.
22265
222662007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22267
22268 * frame.c (Qenvironment): Remove.
22269 (syms_of_frame) <Qenvironment>: Don't initialize.
22270 (Fdelete_frame): Don't treat the `environment' param specially.
22271 * frame.h (Qenvironment): Don't declare.
22272 * callproc.c (set_initial_environment): Don't set unused frame param.
22273
22274 * frame.c (Fframe_with_environment): Remove.
22275 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22276
22277 * lisp.h (Fframe_with_environment): Don't declare.
22278
222792007-10-10 Juanma Barranquero <lekktu@gmail.com>
22280
22281 * indent.c (indent_tabs_mode, last_known_column)
22282 (last_known_column_modified): Make static.
22283 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22284
222852007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22286
22287 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22288
222892007-10-09 Jason Rumney <jasonr@gnu.org>
22290
22291 * w32term.c (x_set_window_size): Disable code that attempts to tell
22292 Lisp code about a size change before it actually happens.
22293
222942007-10-09 Richard Stallman <rms@gnu.org>
22295
22296 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22297 return HANDLED_RETURN.
22298
222992007-10-08 Martin Rudalics <rudalics@gmx.at>
22300
22301 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22302 when there's an unread command event.
22303
22304 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22305 window autoselection act appropriately when leaving selected frame.
22306 (syms_of_frame): Initialize focus_follows_mouse.
22307 * frame.h (focus_follows_mouse): Extern it.
22308 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22309 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22310 * msdos.c (dos_rawgetc): Likewise.
22311 * w32term.c (w32_read_socket): Likewise.
22312 * xterm.c (handle_one_xevent): Likewise.
22313 * xdisp.c (syms_of_xdisp): In doc-string of
22314 mouse-autoselect-window mention focus-follows-mouse.
22315
223162007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22317
22318 * macterm.c (mac_load_query_font): Fix missing return value.
22319 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22320 Add BLOCK_INPUT.
22321
223222007-10-08 Richard Stallman <rms@gnu.org>
22323
22324 * xdisp.c (get_window_cursor_type): Implement documented behavior
22325 for cursor-in-non-selected-windows = t.
22326
223272007-10-08 Jason Rumney <jasonr@gnu.org>
22328
22329 * w32.c (w32_get_resource): Always close registry keys.
22330
223312007-10-08 Jason Rumney <jasonr@gnu.org>
22332
22333 * makefile.w32-in (LIBS): Add COMCTL32.
22334
22335 * w32fns.c (globals_of_w32fns): Init common controls.
22336
223372007-10-08 Richard Stallman <rms@gnu.org>
22338
22339 * image.c (our_memory_buffer): Rename from omfib_buffer.
22340
223412007-10-08 Richard Stallman <rms@gnu.org>
22342
22343 * buffer.c (Foverlays_at): Doc fix.
22344
223452007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22346
22347 * fns.c (Fplist_put): Preserve uneven tail data.
22348
223492007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22350
22351 * termhooks.h (enum event_kind): Remove trailing comma.
22352
22353 * frame.h (enum): Remove trailing comma.
22354
223552007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22356
22357 * w32proc.c (delete_child): Don't terminate threads of zombies.
22358
223592007-10-08 Martin Rudalics <rudalics@gmx.at>
22360
22361 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22362
22363 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22364 last-repeatable-command.
22365 (init_kboard): Initialize Vlast_repeatable_command.
22366 (command_loop_1): Set it to real_this_command unless that was
22367 bound to an input event.
22368 (mark_kboards): Mark it.
22369
223702007-10-08 Richard Stallman <rms@gnu.org>
22371
22372 * eval.c (condition-case): Doc fix.
22373
223742007-10-08 Masatake YAMATO <jet@gyve.org>
22375
22376 * xfaces.c (tty_supports_face_attributes_p): Fix code
22377 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22378 was copied and not edited.
22379
223802007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22381
22382 Add new `input-decode-map' keymap and use it for terminal
22383 escape sequences.
22384 * keyboard.h (struct kboard): Add Vinput_decode_map.
22385 Remove Vlocal_key_translation_map.
22386 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22387 (init_kboard): Init input-decode-map.
22388 Replace local-key-translation-map back with key-translation-map.
22389 (syms_of_keyboard): Declare input-decode-map.
22390 Remove local-key-translation-map. Update docstrings.
22391 (mark_kboards): Mark Vinput_decode_map.
22392 Don't mark Vlocal_key_translation_map.
22393 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22394 Replace local-key-translation-map back with key-translation-map.
22395 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22396 Bind in input-decode-map rather than function-key-map.
22397
22398 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22399 This was made redundant by the previous introduction of XSETPVECTYPE.
22400
224012007-10-09 Richard Stallman <rms@gnu.org>
22402
22403 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22404
224052007-09-29 Richard Stallman <rms@gnu.org>
22406
22407 * eval.c (internal_condition_case_2, internal_condition_case_1)
22408 (internal_condition_case): Reenable abort if x_catching_errors ()
22409 to see if that really happens and why.
22410
224112007-10-06 Andreas Schwab <schwab@suse.de>
22412
22413 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22414
224152007-10-04 Juanma Barranquero <lekktu@gmail.com>
22416
22417 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22418
224192007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22420
22421 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22422
224232007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22424
22425 * window.h (struct window):
22426 * window.c (struct save_window_data, struct saved_window):
22427 * termhooks.h (struct terminal):
22428 * process.h (struct Lisp_Process):
22429 * frame.h (struct frame):
22430 * buffer.h (struct buffer):
22431 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22432 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22433 The size field of (pseudo)vectors is now unsigned.
22434 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22435
22436 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22437 Turn `count' into an integer.
22438
22439 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22440 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22441 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22442 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22443 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22444
22445 * alloc.c (allocate_pseudovector): New fun.
22446 (ALLOCATE_PSEUDOVECTOR): New macro.
22447 (allocate_window, allocate_terminal, allocate_frame)
22448 (allocate_process): Use it.
22449 (mark_vectorlike): New function.
22450 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22451 (mark_terminals): Use it.
22452 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22453 (Fmake_byte_code): Use XSETPVECTYPE.
22454
22455 * frame.c (Fframe_parameters): Minor simplification.
22456
22457 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22458
22459 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22460
22461 * buffer.c (Fget_buffer_create, init_buffer_once):
22462 * lread.c (defsubr):
22463 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22464
22465 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22466 defined differently in the m/*.h files.
22467 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22468 (XSETPVECTYPE): New macro.
22469 (XSETPSEUDOVECTOR): Use it.
22470
22471 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22472 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22473
22474 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22475 * lread.c (defvar_per_buffer):
22476 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22477
22478 * window.c (candidate_window_p): Only consider as visible frames that
22479 are on the same terminal.
22480
22481 * m/ibms390x.h (MARKBIT): Remove unused macro.
22482
224832007-10-01 Juanma Barranquero <lekktu@gmail.com>
22484
22485 * lread.c (Fload): Fix typo in docstring.
22486
224872007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22488
22489 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22490 of a non-zero value can't yield zero.
22491
224922007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22493
22494 * term.c (term_clear_mouse_face, term_mouse_highlight)
22495 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22496
22497 * print.c (safe_debug_print): Use XHASH.
22498
22499 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22500 Lisp elements such as tags.
22501 (XHASH): New macro.
22502 (EQ): Use it.
22503 (SREF, SSET, STRING_COPYIN): Use SDATA.
22504 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22505
22506 * alloc.c (mark_terminal): Remove left-over declaration.
22507 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22508 (allocate_vectorlike): Remove type argument. Adjust callers.
22509 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22510 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22511
22512 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22513 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22514 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22515 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22516 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22517 Use them.
22518
22519 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22520 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22521 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22522
225232007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22524
22525 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22526 loaded by default.
22527
225282007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22529
22530 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22531 on this tty.
22532 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22533
22534 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22535 Update all users.
22536 (handle_one_term_event): Use Gpm_DrawPointer.
22537 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22538 Signal errors instead of returning nil. Always return nil.
22539 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22540 Make it a noop if gpm-mouse was not activated.
22541 (syms_of_term): Update names.
22542
225432007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22544
22545 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22546 (init_sys_modes): Check that gpm_tty is the current tty.
22547
22548 * alloc.c (allocate_terminal): Set the vector size to only count the
22549 lisp fields. Initialize those to nil.
22550 (mark_object): Don't treat terminals specially.
22551 (mark_terminal): Remove.
22552 (mark_terminals): Use mark_object instead.
22553
22554 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22555 the GC to the beginning.
22556
22557 * indent.h:
22558 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22559
22560 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22561
225622007-09-25 Jason Rumney <jasonr@gnu.org>
22563
22564 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22565
22566 * w32console.c (create_w32cons_output): Remove.
22567
22568 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22569
22570 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22571 (reset_sys_modes): Use reset_terminal_modes_hook.
22572
225732007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22574
22575 * eval.c (do_autoload): Don't output any message.
22576
225772007-09-24 Juri Linkov <juri@jurta.org>
22578
22579 * emacs.c (standard_args): Change priority of "--no-splash"
22580 from 40 to 3. Add "--no-desktop" with the same priority.
22581
225822007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22583
22584 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22585 and optimize the case where they are all 1.
22586
225872007-09-23 Johannes Weiner <hannes@saeurebad.de>
22588
22589 * lisp.h (abs): Define if not defined.
22590 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22591 Don't define `abs', since it's defined in lisp.h.
22592
225932007-09-22 Eli Zaretskii <eliz@gnu.org>
22594
22595 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22596 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22597 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22598 (init_tty): Use DEV_TTY instead of "/dev/tty".
22599 [WINDOWSNT]: No need to protect from NAME arg being null.
22600
226012007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22602
22603 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22604 up the tty state.
22605
226062007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22607
22608 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22609 (gpm_tty): Change its type.
22610 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22611 (gpm_tty): Change its type and initialize it.
22612 (Fterm_open_connection): Check the frame is indeed a tty.
22613 Use the new gpm_tty.
22614 (Fterm_close_connection): Use the new gpm_tty.
22615 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22616 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22617
226182007-09-21 Juanma Barranquero <lekktu@gmail.com>
22619
22620 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22621 underline_color, to draw strike-through.
22622
226232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22624
22625 * lisp.h (allocate_terminal): Declare.
22626
22627 * window.c (candidate_window_p): Consider frames that are being placed
22628 by the user as somewhere between visible and iconified.
22629 (window_loop): Prefer windows on the current frame.
22630 (Fselect_window): Move the use of select-frame to the beginning so we
22631 can just delegate all the work (it'll call us back anyway).
22632
22633 * frame.c (Qdisplay_environment_variable):
22634 * frame.h (Qdisplay_environment_variable): Delete.
22635
22636 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22637 of the first arg, since that value may be a union.
22638
22639 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22640 parameter rather than Qdisplay_environment_variable. If all else
22641 fails, look for DISPLAY in initial-environment.
22642
226432007-09-21 Glenn Morris <rgm@gnu.org>
22644
22645 * Makefile.in (emacstool): Remove target.
22646 (lisp, shortlisp): Remove termdev.elc.
22647
226482007-09-21 Markus Triska <markus.triska@gmx.at>
22649
22650 * xterm.c (x_delete_display): Compile session management conditionally.
22651
226522007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22653
22654 * callproc.c (getenv_internal_1): New function.
22655 (getenv_internal): Use it.
22656 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22657
22658 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22659 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22660 (Fset_terminal_parameter): Work with dead terminals as well.
22661 (Fmodify_terminal_parameters): Remove.
22662
22663 * terminal.c (get_terminal): Handle terminals.
22664 Make sure the terminal returned is live.
22665 (create_terminal): Use allocate_terminal.
22666 (mark_terminals): Move to alloc.c.
22667 (delete_terminal): Use terminal->name as liveness status.
22668 NULL out fields after freeing their contents.
22669 Don't deallocate the object.
22670 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22671 rather than an int.
22672 (Fterminal_live_p): Accept non-integer arguments.
22673 (Fterminal_list): Return terminal objects rather than an ints.
22674
22675 * alloc.c (enum mem_type): New member for `terminal' objects.
22676 (allocate_terminal): New function.
22677 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22678 Handle terminals.
22679 (mark_terminal): New fun.
22680 (mark_terminals): Move from terminal.c.
22681
22682 * term.c (get_tty_terminal): Don't treat output_initial specially.
22683 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22684 (delete_tty): Use terminal->name as liveness status.
22685
22686 * termhooks.h (struct terminal): Make it into a pseudovector.
22687 Remove `deleted' replaced by checking `name's nullness.
22688
22689 * print.c (print_object): Handle terminals.
22690
22691 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22692 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22693
22694 * frame.c (make_terminal_frame):
22695 * keyboard.c (tty_read_avail_input):
22696 * w32term.c (x_delete_terminal):
22697 * xfns.c (Fx_create_frame, x_create_tip_frame):
22698 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22699
227002007-09-20 Glenn Morris <rgm@gnu.org>
22701
22702 * process.c (Fmake_network_process): Doc fix.
22703
227042007-09-19 Jason Rumney <jasonr@gnu.org>
22705
22706 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22707
227082007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22709
22710 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22711 Fix a C warning regarding variable constness.
22712
22713 * xterm.c (handle_one_xevent): Fix a C warning.
22714
227152007-09-18 Jason Rumney <jasonr@gnu.org>
22716
22717 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22718
227192007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22720
22721 * gtkutil.c (gdpy_def): New variable.
22722 (xg_initialize): Initialize gdpy_def.
22723 (xg_display_close): If no other display exists, set gdpy_def to a
22724 new connection.
22725
227262007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22727
22728 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22729 when we have no file name for the icon.
22730 (xg_tool_bar_expose_callback): Remove.
22731 (xg_create_tool_bar): Don't connect expose signal to
22732 xg_tool_bar_expose_callback.
22733 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22734
227352007-09-16 Andreas Schwab <schwab@suse.de>
22736
22737 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22738 values instead of zapping them.
22739
227402007-09-14 Glenn Morris <rgm@gnu.org>
22741
22742 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22743 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22744 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22745 scope and rename to omfib_buffer for clarity.
22746 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22747
227482007-09-14 Kenichi Handa <handa@m17n.org>
22749
22750 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22751
227522007-09-13 Jason Rumney <jasonr@gnu.org>
22753
22754 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22755
22756 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22757
22758 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22759 (mac_term_init): Call here instead, passing rif.
22760
227612007-09-13 Glenn Morris <rgm@gnu.org>
22762
22763 * s/hpux.h: No longer define `static' as nothing.
22764
227652007-09-13 Johan Bockgård <bojohan@gnu.org>
22766
22767 * callint.c (Fcall_interactively): Remove unused var `fun'.
22768
227692007-09-12 Romain Francoise <romain@orebokech.com>
22770
22771 * window.c (prefer_window_split_horizontally, display_buffer):
22772 Revert 2007-09-08 change.
22773
227742007-09-12 Glenn Morris <rgm@gnu.org>
22775
22776 * alloca.c: Remove file.
22777 * Makefile.in (alloca): Do not undef.
22778 (allocaobj, alloca.o): Remove.
22779 (otherobj): Remove allocaobj.
22780 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22781 * regex.c (C_ALLOCA): Remove all references and code that was only
22782 used when this was defined.
22783 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22784 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22785 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22786
22787 * Makefile.in (SOURCES, unlock, relock): Delete.
22788
22789 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22790 (menu_grab_callback): All uses changed.
22791
22792 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22793 (x_reply_selection_request): All uses changed.
22794
227952007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22796
22797 * lread.c (load_warn_old_style_backquotes): Change message to look
22798 better when it appears in the middle of byte-compiler messages.
22799
228002007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22801
22802 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22803
22804 * xterm.c (x_create_terminal): Add comment.
22805
22806 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22807
228082007-09-10 Richard Stallman <rms@gnu.org>
22809
22810 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22811
228122007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22813
22814 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22815 (DEFUN): Document `intspec', use it instead of `prompt'.
22816
22817 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22818
22819 * data.c (Finteractive_form): If the interactive specification starts
22820 with a `(', use it as a Lisp form.
22821
22822 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22823 name and file modes.
22824
22825 * callint.c (Fcall_interactively): Comment fixes.
22826
228272007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22828
22829 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22830 and compiled functions.
22831
228322007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22833
22834 * window.c (prefer_window_split_horizontally): New variable.
22835 (display_buffer): Consider splitting window horizontally depending
22836 on prefer_window_split_horizontally.
22837
228382007-09-08 Eli Zaretskii <eliz@gnu.org>
22839
22840 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22841
228422007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22843
22844 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22845
22846 * frame.c (x_set_frame_parameters): Check number is positive before
22847 using XFASTINT.
22848
22849 * window.c (freeze_window_start): Don't presume selected_window holds
22850 a window object.
22851 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22852
228532007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22854
22855 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22856
228572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22858
22859 * window.c (Vsplit_window_preferred_function): New var.
22860 (Fdisplay_buffer): Use it.
22861 (syms_of_window): Export, and initialize it.
22862
228632007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22864
22865 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22866
228672007-09-06 Glenn Morris <rgm@gnu.org>
22868
22869 * gtkutil.c (menu_grab_callback) <cnt>:
22870 * xselect.c (x_reply_selection_request) <cnt>: Move static
22871 variable to file scope.
22872
228732007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22874
22875 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22876 consistent values of selected_frame and selected_window.
22877
228782007-09-04 Jason Rumney <jasonr@gnu.org>
22879
22880 * w32console.c (initialize_w32_display): Zero unused hooks.
22881
228822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22883
22884 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22885 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22886
228872007-09-04 Jason Rumney <jasonr@gnu.org>
22888
22889 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22890 in w32console.c. Set up input. Remove XXX comments that have been
22891 confirmed as correct.
22892
22893 * s/ms-w32.h (MULTI_KBOARD): Define.
22894
22895 * w32console.c (one_and_only_w32cons): Remove.
22896 (initialize_w32_display): Take terminal argument.
22897
22898 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22899 initialize_w32_display.
22900 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22901
22902 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22903
22904 * keyboard.c (discard_mouse_events): Discard it.
22905 (make_lispy_event): Translate it to a lisp event.
22906 (lispy_wheel_names): Add wheel-left and right events.
22907 (syms_of_keyboard): Enlarge wheel_syms.
22908
22909 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22910 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22911
22912 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22913
22914 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22915 from WM_MOUSEHWHEEL.
22916 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22917
22918 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22919 terminal.
22920
22921 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22922 keyboard for the terminal.
22923
229242007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22925
22926 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22927 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22928 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22929 and resume-tty-function to resume-tty-hook.
22930 (Fsuspend_tty, Fresume_tty): Use new names.
22931
229322007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22933
22934 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22935 if it starts with "n:".
22936
229372007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22938
22939 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22940
229412007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22942
22943 * frame.h:
22944 * frame.c (Qterm_environment_variable): Remove.
22945 (syms_of_frame): Don't init and staticpro it.
22946
22947 * callproc.c (getenv_internal): Remove special case for $TERM.
22948
22949 * callproc.c (Vinitial_environment): New variable.
22950 (set_initial_environment): Initialize it.
22951 (syms_of_callproc): Declare it.
22952 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22953 TERM under which a process runs is never related to the TERM in which
22954 Emacs is running.
22955
229562007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22957
22958 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22959 * s/darwin.h: ... do it here.
22960
229612007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22962
22963 * lisp.h (set_initial_environment): Rename from set_global_environment.
22964
22965 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22966 removed by mistake on the multi-tty branch.
22967
22968 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22969 (Fmodify_frame_parameters): Return a value.
22970
22971 * image.c (png_load): Comment-out var only used in commented-out code.
22972
22973 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22974 before passing it to mark_object.
22975
22976 * xfaces.c (internal_resolve_face_name): Return a value.
22977 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22978
22979 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22980 (x_icon): Comment-out var only used in commented-out code.
22981
229822007-08-29 Romain Francoise <romain@orebokech.com>
22983
22984 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22985 QUIT hasn't been provided.
22986
229872007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22988
22989 * callproc.c (child_setup, getenv_internal): Use the
22990 display-environment-variable and term-environment-variable frame params.
22991 (set_initial_environment): Initialise Vprocess_environment.
22992
22993 * config.in: Disable multi-keyboard support on a mac.
22994
22995 * frame.c (Qterm_environment_variable)
22996 (Qdisplay_environment_variable): New variables.
22997 (syms_of_frame): Intern and staticpro them.
22998 (Fmake_terminal_frame): Disable output method test.
22999
23000 * frame.h: Declare them here.
23001
23002 * macfns.c (x_set_mouse_color): Get rif from the frame.
23003 (x_set_tool_bar_lines): Don't use updating_frame.
23004 (mac_window): Add 2 new parameters for consistency with other systems.
23005 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
23006 frame parameters following what is done in X11 and w32. Don't use
23007 FRAME_MAC_DISPLAY_INFO.
23008 (Fx_open_connection, start_hourglass): Remove window-system check.
23009 (x_create_tip_frame): Get the keyboard from the terminal.
23010
23011 * macmenu.c: Reorder includes.
23012 (Fx_popup_menu): Use terminal specific mouse_position_hook.
23013
23014 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
23015 terminal parameter.
23016 (x_clear_frame): Add a frame parameter.
23017 (note_mouse_movement): Get rif from the frame.
23018 (mac_term_init): Initialize the terminal.
23019 (mac_initialize): Make static and move terminal initialization ...
23020 (mac_create_terminal): ... to this new function.
23021
23022 * macterm.h (struct mac_display_info): Add terminal.
23023 (mac_initialize): Delete declaration.
23024
23025 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
23026
23027 * sysdep.c: Comment out text after #endif.
23028
23029 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
23030 is defined. Better initialize ttys in windows. Use terminal
23031 specific mouse_position_hook.
23032
23033 * termhooks.h (union display_info): Add mac_display_info.
23034
23035 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
23036 Set the default minibuffer frame, window_system and the rest of the
23037 frame parameters following what is done in X11.
23038
23039 * w32term.c (w32_initialize): Make static.
23040
23041 * xselect.c (x_handle_selection_clear): Only access
23042 terminal->kboard when MULTI_KBOARD is defined.
23043
23044 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
23045 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
23046
230472007-08-29 Jason Rumney <jasonr@gnu.org>
23048
23049 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
23050 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
23051
23052 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
23053 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
23054
23055 * keyboard.c (restore_kboard_configuration): Only define when
23056 MULTI_KBOARD defined.
23057
23058 * makefile.w32-in: Update dependancies from Makefile.in.
23059 (OBJ1): Add terminal.$(O)
23060
23061 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
23062 Don't define function body.
23063 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
23064
23065 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
23066
23067 * w32.c (request_sigio, unrequest_sigio): Remove.
23068
23069 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
23070 (w32con_clear_frame, w32con_clear_end_of_line)
23071 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
23072 (w32con_delete_glyphs, w32con_set_terminal_window)
23073 (scroll_line, w32_sys_ring_bell): Add frame arg.
23074 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23075 Add terminal arg.
23076 (PICK_FRAME): Remove.
23077 (w32con_write_glyphs): Use frame specific terminal coding.
23078 (one_and_only_w32cons): New global variable.
23079 (initialize_w32_display): Use it for storing hooks.
23080 (create_w32cons_output): New function.
23081
23082 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23083 arg a frame.
23084
23085 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23086 Set window_system.
23087 (x_set_tool_bar_lines): Don't use updating_frame.
23088 (Fx_create_frame): Set terminal and ref count.
23089 (Fx_open_connection): Remove window-system check.
23090
23091 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23092
23093 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23094 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23095 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23096 Add frame arg.
23097 (x_delete_terminal, w32_create_terminal): New functions.
23098 (w32_term_init): Create a terminal.
23099 (w32_initialize): Move terminal specific initialization to
23100 w32_create_terminal.
23101
23102 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23103 (w32_clear_rect, w32_clear_area): Use background from frame.
23104 (w32_display_info): Add terminal.
23105 (w32_sys_ring_bell, x_delete_display): Declare here.
23106
23107 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23108
23109 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23110
231112007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23112
23113 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23114 Fix get_named_tty calls for the controlling tty.
23115
231162007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23117
194d44e7 23118 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23119
231202007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23121
23122 * term.c (tty_insert_glyphs): Add missing first parameter.
23123
231242007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23125
23126 * buffer.c (Fbuffer_list, Fbury_buffer):
23127 Take frame->buried_buffer_list into account.
23128
23129 * cm.c (current_tty): New variable, for cmputc().
23130 (cmputc): Use it.
23131 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23132 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23133 (cmgoto): Add tty parameter. Pass it on to calccost().
23134 Use emacs_tputs() instead of tputs().
23135
23136 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23137 tputs().
23138 (current_tty): New variable, for cmputc().
23139 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23140
23141 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23142 (internal_condition_case, internal_condition_case_1)
23143 (internal_condition_case_2): Don't abort when x_catching_errors.
23144
23145 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23146 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23147 prevent crashes caused by bogus longjmps in read_char.
23148
23149 * keymap.h (Fset_keymap_parent): Add EXFUN.
23150
23151 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23152 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23153 Remove redundant definition.
23154
23155 * macfns.c (x_set_mouse_color, x_make_gc):
23156 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23157
23158 * w32term.c (x_free_frame_resources):
23159 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23160 (w32_initialize): Use the accessor macros for terminal characteristics.
23161
23162 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23163 Use the accessor macros for terminal characteristics.
23164 * msdos.c (internal_terminal_init): Use the accessor macros for
23165 terminal characteristics.
23166 (ScreenVisualBell, internal_terminal_init):
23167 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23168
23169 * termopts.h (no_redraw_on_reenter): Declare.
23170
23171 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23172 (mark_terminals, mark_ttys): Declare.
23173 (Fgarbage_collect): Call them.
23174 (mark_object): Mark buried_buffer_list.
23175
23176 * prefix-args.c: Include stdlib.h for exit.
23177
23178 * syssignal.h: Add comment.
23179
23180 * indent.c: Include stdio.h.
23181
23182 * window.h (Vinitial_window_system): Declare.
23183 (Vwindow_system): Delete declaration.
23184
23185 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23186
23187 * image.c (lookup_image): Don't initialize `c' until the xasserts
23188 have been run.
23189
23190 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23191 FRAME_FOREGROUND_PIXEL.
23192
23193 * print.c (print_preprocess): Don't lose print_depth levels while
23194 iterating.
23195
23196 * widget.c (update_from_various_frame_slots):
23197 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23198
23199 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23200 frames.
23201 (window_internal_height): Remove bogus make_number call.
23202 (init_window_once): Call make_terminal_frame with two zero parameters.
23203
23204 * fileio.c (Fread_file_name): Update comment.
23205
23206 * callint.c (Fcall_interactively):
23207 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23208 Make sure it is correctly unwound.
23209
23210 * xsmfns.c (x_session_close): New function.
23211
23212 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23213 Delete declarations.
23214
23215 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23216 (x_output): Remove background_pixel and foreground_pixel fields.
23217 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23218 (x_delete_device, x_session_close): Declare.
23219
23220 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23221 (read_filtered_event): Call `read_char' with a local
23222 `wrong_kboard_jmpbuf'.
23223
23224 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23225 Don't call single_kboard_state. Use FRAME_RIF.
23226
23227 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23228 systems.
23229
23230 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23231 (Fframe_with_environment, Fset_input_meta_mode)
23232 (Fset_quit_char): EXFUN.
23233 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23234 (init_sys_modes, reset_sys_modes): Update prototypes.
23235 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23236
23237 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23238 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23239 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23240 Delete declarations.
23241 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23242 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23243 New declarations.
23244
23245 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23246 already does that during init_display(). Call syms_of_keymap
23247 before syms_of_keyboard. Call `syms_of_terminal'.
23248 Call set_initial_environment, not set_process_environment.
23249 (shut_down_emacs): Call reset_all_sys_modes() instead of
23250 reset_sys_modes().
23251
23252 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23253 (internal_resolve_face_name, resolve_face_name_error): New functions.
23254 (resolve_face_name): Protect against loops and errors thrown by Fget.
23255 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23256 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23257
23258 * scroll.c: Replace CURTTY() with local variables throughout the
23259 file (where applicable).
23260 (calculate_scrolling, calculate_direct_scrolling)
23261 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23262 characteristics.
23263
23264 * keymap.c (Vfunction_key_map): Remove.
23265 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23266 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23267 (Vkey_translation_map): Remove.
23268 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23269 (Fdescribe_buffer_bindings)
23270 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23271 Update for terminal-local key-translation-map.
23272
23273 * Makefile.in (callproc.o): Update dependencies.
23274 (lisp, shortlisp): Add termdev.elc.
23275 (obj): Add terminal.o.
23276 (terminal.o): Add dependencies.
23277 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23278 (data.o, fns.o): Add termhooks.h dependency.
23279 (SOME_MACHINE_LISP): Add dnd.elc.
23280 (minibuf.o): Fix typo.
23281 Update dependencies.
23282
23283 * data.c (do_symval_forwarding, store_symval_forwarding)
23284 (find_symbol_value): Use the selected frame's keyboard, not
23285 current_kboard.
23286
23287 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23288 Vwindow_system.
23289
23290 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23291 Fmenu_bar_open.
23292 (syms_of_xmenu): Update defsubr.
23293 (mouse_position_for_popup, Fx_popup_menu)
23294 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23295 (set_frame_menubar, free_frame_menubar)
b97439ce 23296 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23297 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23298 an X frame.
23299
23300 * xselect.c (x_own_selection): Abort if not an X frame.
23301 (some_frame_on_display): Check if it is an X frame.
23302 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23303
23304 * coding.c: Include frame.h and termhooks.h.
23305 (terminal_coding, keyboard_coding): Delete.
23306 (Fset_terminal_coding_system_internal)
23307 (Fset_keyboard_coding_system_internal)
23308 (Fkeyboard_coding_system)
23309 (Fterminal_coding_system): Add a terminal parameter.
23310 Get terminal_coding from the terminal.
23311 (init_coding_once): Don't call setup_coding_system here.
23312
23313 * dispextern.h (set_scroll_region, turn_off_insert)
23314 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23315 (tty_clear_end_of_line, tty_setup_colors)
23316 (delete_tty, updating_frame)
23317 (produce_special_glyphs, produce_glyphs, write_glyphs)
23318 (insert_glyphs): Remove.
23319 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23320 (tty_turn_off_highlight, get_tty_size): Add declaration.
23321 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23322
23323 * frame.h (enum output_method): Add output_initial.
23324 (struct x_output): Delete.
23325 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23326 Access foreground_pixel and background_pixel directly from the frame.
23327 (tty_display): Delete.
23328 (struct frame): Add buried_buffer_list, foreground_pixel,
23329 background_pixel and terminal. Delete kboard.
23330 (union output_data): Add tty.
23331 (FRAME_KBOARD): Get the kboard from the terminal.
23332 (FRAME_INITIAL_P): New macro.
23333 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23334 (Qterm_environment_variable, Qdisplay_environment_variable)
23335 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23336 New declarations.
23337
23338 * termchar.h (tty_output, tty_display_info): New structures.
23339 (tty_list): Declare.
23340 (FRAME_TTY, CURTTY): New macros.
23341 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23342 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23343 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23344 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23345
23346 * callproc.c: Include frame.h and termhooks.h, for terminal
23347 parameters.
23348 (add_env): New function.
23349 (child_setup): Use it.
23350 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23351 (getenv_internal): Fix get_terminal_param call.
23352 (Fgetenv_internal, egetenv): Update doc.
23353 (syms_of_callproc): Initialize Vprocess_environment to nil.
23354 Register and initialize them. Remove obsolete defvars. Update doc
23355 strings.
23356 (child_setup): Handle Vlocal_environment_variables.
23357 (getenv_internal): Add terminal parameter.
23358 Handle Vlocal_environment_variables.
23359 (Fgetenv_internal): Add terminal parameter.
23360 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23361 environment in a frame (not terminal) parameter. Update doc strings.
23362 (set_initial_environment): Rename from set_global_environment.
23363 Store Emacs environment in initial frame parameter.
23364
23365 * xdisp.c (redisplay_internal): Update references to
23366 `previous_terminal_frame'.
23367 (display_mode_line, Fformat_mode_line): Replace calls to
23368 `push_frame_kboard' with `push_kboard'.
23369 (get_glyph_string_clip_rects): Add extra parentheses and
23370 braces to prevent compiler warnings.
23371 (calc_pixel_width_or_height): Add xassert to check that the
23372 frame is alive. Don't call `lookup_image' on a termcap frame.
23373 (message2_nolog, message3_nolog, redisplay_internal)
23374 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23375 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23376 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23377 (Fx_display_pixel_width, Fx_display_pixel_height)
23378 (Fx_display_planes, Fx_display_color_cells)
23379 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23380 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23381 (Fx_display_backing_store, Fx_display_visual_class)
23382 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23383 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23384
23385 * xfns.c (x_set_foreground_color x_set_background_color)
23386 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23387 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23388 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23389 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23390 terminal that is being deleted.
23391 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23392 frame parameter, and make sure it overrides any user-supplied setting.
23393 (Fx_close_connection, Fx_synchronize): Unify argument names with
23394 the rest of the DEFUNs.
23395
23396 * dispnew.c (Fsend_string_to_terminal): Update call to
23397 `get_tty_terminal'.
23398 (Fredraw_frame, Fsend_string_to_terminal)
23399 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23400 FRAME_TERMCAP_P and FRAME_TTY.
23401 (window_change_signal): Don't believe width/height values that are
23402 impossibly small.
23403 (Vinitial_window_system): Rename from Vwindow_system.
23404 (termscript, Wcm, rif): Delete.
23405
23406 * termhooks.h (struct terminal): New struct containing the
23407 previously global text display hooks and new members NAME,
23408 DELETED and PARAM_ALIST.
23409 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23410 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23411 (FRAME_RIF): New macros.
23412 (get_terminal_param, get_device): New declarations.
23413 (termscript): Delete declaration.
23414
23415 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23416 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23417 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23418 FRAME_FOREGROUND_PIXEL.
23419 (x_fully_uncatch_errors): Disable definition.
23420 (x_scroll_bar_expose): Fix reference to foreground pixel.
23421 (XTread_socket): Disable loop on all X displays.
23422 (x_delete_terminal): Don't set terminal->deleted and let
23423 delete_terminal delete the frames on the terminal.
23424 (x_delete_display): Doc update to reflect changes in
23425 delete_terminal.
23426 (x_display_info) <terminal>: Move member earlier in the struct.
23427 (deleting_tty): Remove old variable.
23428 (Fsuspend_tty): Call clear_tty_hooks.
23429 (Fresume_tty, init_tty): Call set_tty_hooks.
23430 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23431 errors on X frames.
23432 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23433 (handle_one_xevent): Initialize `f' to NULL.
23434 (x_delete_terminal, x_create_terminal): New functions.
23435 (XTset_terminal_modes, XTreset_terminal_modes)
23436 (XTread_socket, x_connection_closed, x_term_init)
23437 (x_term_init, x_delete_display): Add terminal parameter.
23438 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23439 X connections.
23440
23441 * frame.c: Include termchar.h.
23442 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23443 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23444 (Qdisplay_environment_variable): New vars.
23445 (Fframep): Deal with output_initial.
23446 (Fframe-live-p): Doc fix.
23447 (Fwindow-system): New function.
23448 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23449 (make_terminal_frame): Don't create frames on a terminal that is
23450 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23451 (store_frame_param): Check for found_for_frame before calling XFRAME.
23452 (Fmake_terminal_frame): Handle NULL tty names correctly.
23453 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23454 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23455 frames to refer to a deleted frame in their 'environment parameter.
23456 (Fframe_with_environment): New function.
23457 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23458 (get_future_frame_param): New function.
23459 (Fmake_terminal_frame): Use it.
23460 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23461
23462 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23463 * sysdep.c (reset_sys_modes): Update for renames.
23464
23465 * keyboard.c (tty_read_avail_input): New function.
23466 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23467 (syms_of_keyboard): Defsubr them.
23468 (Fset_input_meta_mode, Fset_quit_char): New functions.
23469 (Fset_input_mode): Split to above functions.
23470 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23471 parameter. Use it in call to `read_char'.
23472 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23473 Set wrong_kboard_jmpbuf correctly in recursive calls.
23474 Use current_kboard to access Vkeyboard_translate_table.
23475 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23476 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23477 Update longjmp invocations. Remember the original current_kboard,
23478 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23479 changes it. Comment out unnecessary calls to
23480 `record_single_kboard_state' and `any_kboard_state'.
23481 Update recursive calls.
23482 (wrong_kboard_jmpbuf): Remove global variable.
23483 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23484 Handle deleted interrupted_kboards correctly; that is a legal
23485 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23486 and read_char calls. Abort if interrupted_kboard died in read_char.
23487 (any_kboard_state, single_kboard_state)
23488 (push_frame_kboard): Remove function.
23489 (pop_kboard): Switch out of single_kboard mode if the kboard has
23490 been deleted. Remove unused variable. Help debugging by not
23491 changing current_kboard unnecessarily. Set current_kboard to the
23492 kboard of the selected frame when the stored kboard object has
23493 been deleted before pop_kboard.
23494 (temporarily_switch_to_single_kboard): Change first parameter to a
23495 frame pointer. Throw an error when caller wants to change kboards
23496 while in single_kboard mode. Don't push_kboard if we weren't in
23497 single kboard state. Don't pop_kboard if we popped into any
23498 kboard state.
23499 (restore_kboard_configuration): Abort if pop_kboard changed the
23500 kboard in single_kboard mode. Call pop_kboard only after setting
23501 up single_kboard mode.
23502 (Frecursive_edit): Switch to single_kboard mode only in nested
23503 command loops.
23504 (cmd_error, command_loop, command_loop_1, timer_check):
23505 Comment out unnecessary call to `any_kboard_state' and
23506 `record_single_kboard_state'.
23507 (delete_kboard): Exit single_kboard mode if we have just deleted
23508 that kboard. Use FRAME_KBOARD.
23509 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23510 `fatal_error_signal'.
23511 (record_single_kboard_state): Don't push_kboard if we weren't in
23512 single kboard state. Don't pop_kboard if we popped into any
23513 kboard state.
23514 (push_frame_kboard): Rename to push_kboard.
23515 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23516 (read_avail_input): Read input from all terminals.
23517 (mark_kboards): Also mark Vkeyboard_translate_table.
23518 (kbd_buffer_store_event_hold): Simplify condition.
23519 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23520 (Vkeyboard_translate_table): Move to struct kboard.
23521 (init_kboard): Initialize Vkeyboard_translate_table.
23522 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23523 Vkeyboard_translate_table. Update doc strings. Update docs of
23524 local-function-key-map and function-key-map.
23525
23526 * terminal.c: New file.
23527
23528 * term.c: Include errno.h.
23529 (Vring_bell_function, device_list, initial_device)
23530 (next_device_id, ring_bell, update_begin, update_end)
23531 (set_terminal_window, cursor_to, raw_cursor_to)
23532 (clear_to_end, clear_frame, clear_end_of_line)
23533 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23534 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23535 (syms_of_term): Move their initialization to terminal.c.
23536 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23537 (Ftty_display_color_cells)
23538 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23539 (clear_tty_hooks, set_tty_hooks)
23540 (init_tty, maybe_fatal): New functions.
23541 (Ftty_type): Return nil if terminal is not on a tty instead of
23542 throwing an error. Doc update.
23543 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23544 Doc update. Initialize new subrs and variables.
23545 (delete_tty): Use terminal->deleted.
23546 (tty_set_terminal_modes): Rename from set_terminal_modes.
23547 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23548 (set_scroll_region): Rename to `tty_set_scroll_region'.
23549 (turn_on_insert): Rename to `tty_turn_on_insert'.
23550 (turn_off_insert): Rename to `tty_turn_off_insert'.
23551 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23552 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23553 (toggle_highligh): Rename to `tty_toggle_highlight'.
23554 (background_highlight): Rename to `tty_background_highlight'.
23555 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23556 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23557 (tty_set_scroll_region, tty_background_highlight)
23558 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23559 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23560 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23561 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23562 Add static modifier.
23563 (tty_reset_terminal_modes, tty_set_terminal_window)
23564 (tty_set_scroll_region, tty_background_highlight)
23565 (tty_highlight_if_desired, tty_cursor_to)
23566 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23567 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23568 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23569 renames.
23570
235712007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23572
23573 * keyboard.c: Qrtl is new.
23574 (parse_tool_bar_item): Handle :rtl keyword.
23575 (syms_of_keyboard): Intern :rtl keyword.
23576
23577 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23578
23579 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23580 so no Lisp code is executed.
23581 (file_for_image, find_rtl_image): New functions.
23582 (xg_get_image_for_pixmap): Use file_for_image.
23583 (update_frame_tool_bar): If direction is RTL, use RTL image if
23584 defined. Use Gtk stock images if defined.
23585
235862007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23587
23588 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23589 for nonexistent or zero-width glyph in composition glyph.
23590
235912007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23592
23593 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23594
23595 * xdisp.c (Finvisible_p): New function.
23596 (syms_of_xdisp): defsubr it.
23597
235982007-08-24 Juanma Barranquero <lekktu@gmail.com>
23599
23600 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23601 Doc fixes.
23602
236032007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23604
23605 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23606
236072007-08-24 Martin Rudalics <rudalics@gmx.at>
23608
23609 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23610 whether decoding has modified buffer contents.
23611
236122007-08-24 Jason Rumney <jasonr@gnu.org>
23613
23614 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23615 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23616 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23617 (init_svg_functions) [HAVE_NTGUI]: New function.
23618 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23619 (svg_load_image): Use them.
23620 (svg_load_image) [HAVE_NTGUI]: Implement background.
23621
236222007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23623
23624 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23625 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23626 (LIBX): Remove @RSVG_LIBS@.
23627 (LIBES): Add $(RSVG_LIBS).
23628
23629 * image.c (svg_load_image): Blend with specified background if exists.
23630 Use IMAGE_BACKGROUND. Add Mac OS Support.
23631
23632 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23633 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23634 Remove macros.
23635 [MAC_OSX] (socket_callback): Do nothing.
23636 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23637 ReceiveNextEvent.
23638 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23639 socket_callback.
23640 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23641
236422007-08-22 Glenn Morris <rgm@gnu.org>
23643
23644 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23645
236462007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23647
23648 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23649
23650 * image.c: Add support for SVG images. Some additional comments
23651 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23652 (svg_image_p): New function to test for SVG image.
23653 (svg_load): New function to load SVG image.
23654 (svg_load_image): New function, helper for svg_load.
23655 (Qsvg): New Lisp_object.
23656 (svg_keyword_index): New enum.
23657 (svg_format): New static `image_keyword' struct.
23658 (svg_type): New static `image_type' struct.
23659 (librsvg/rsvg.h): Include it.
23660
236612007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23662
23663 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23664
236652007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23666
23667 * lread.c (Qold_style_backquotes): New var.
23668 (syms_of_lread): Init and staticpro it.
23669 (load_warn_old_style_backquotes): New fun.
23670 (Fload): Use them to warn about old style backquotes.
23671 (end_of_file_error, Fload): Remove unused vars.
23672
23673 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23674
23675 * lread.c (Vold_style_backquotes): New var.
23676 (syms_of_lread): Init and export it to Elisp.
23677 (read1): Set it when we find an old-style (back)quote.
23678
236792007-08-22 Jason Rumney <jasonr@gnu.org>
23680
23681 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23682
236832007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23684
23685 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23686
236872007-08-19 Richard Stallman <rms@gnu.org>
23688
23689 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23690
236912007-08-19 Andreas Schwab <schwab@suse.de>
23692
23693 * alloc.c (pure): Round PURESIZE up.
23694
236952007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23696
23697 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23698 active frame.
23699
237002007-08-16 Richard Stallman <rms@gnu.org>
23701
23702 * eval.c (Fcommandp): Add parens to clarify.
23703
23704 * minibuf.c (Fall_completions): Use enum for type of table.
23705
23706 * emacs.c (USAGE2): Improve text.
23707
237082007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23709
23710 * term.c (tty_default_color_capabilities): Declare static
23711 variables in file scope, to avoid HPUX compiler problem.
23712
237132007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23714
23715 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23716 to gtk_toolbar_insert.
23717
237182007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23719
23720 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23721
23722 * insdel.c (reset_var_on_error): New fun.
23723 (signal_before_change, signal_after_change):
23724 Use it to reset (after|before)-change-functions to nil in case of error.
23725 Bind inhibit-modification-hooks to t.
23726 Don't bind (after|before)-change-functions to nil while they run.
23727
237282007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23729
23730 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23731 filling pixmap with stippled background.
23732
237332007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23734
23735 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23736 Don't use invisible frame as parent window for repositioning.
23737
237382007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23739
23740 * print.c (new_backquote_output): Rename from old_backquote_output.
23741 (print): Inverse its logic (according to its name) so as to match the
23742 behavior of new_backquote_flag in lread.c.
23743
237442007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23745
23746 * gmalloc.c (posix_memalign): New function.
23747
23748 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23749 ActivateControl/DeactivateControl here.
23750 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23751 frame-notice-user-settings is non-nil.
23752 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23753 for kEventParamFMFontStyle.
23754 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23755 mac_pass_command_to_system and mac_pass_control_to_system here.
23756 (XTread_socket): Call ActivateControl/DeactivateControl here.
23757 (XTread_socket) [TARGET_API_MAC_CARBON]:
23758 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23759 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23760 for window repositioning.
23761
237622007-08-08 Glenn Morris <rgm@gnu.org>
23763
23764 * Replace `iff' in doc-strings and comments.
23765
237662007-08-07 Chong Yidong <cyd@stupidchicken.com>
23767
23768 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23769
237702007-08-07 Martin Rudalics <rudalics@gmx.at>
23771
23772 * fileio.c (Finsert_file_contents): Run format-decode and
23773 after_insert_file_functions on entire buffer when REPLACE is
23774 non-nil and inhibit modification_hooks and point_motion_hooks.
23775 For consistency, run after_insert_file_functions iff something
23776 got inserted. Move signal_after_change and update_compositions
23777 after code running after_insert_file_functions. Make sure that
23778 undo_list doesn't record intermediate steps of the decoding process.
23779
237802007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23781
23782 * emacs.c (main)
23783 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23784 Call malloc_enable_thread on interactive startup.
23785
23786 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23787 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23788 [USE_PTHREAD]: Conditionalize with it.
23789 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23790 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23791 New functions.
23792
237932007-08-06 Chong Yidong <cyd@stupidchicken.com>
23794
23795 * xdisp.c (redisplay_window): When restoring original buffer
23796 position, make sure it is still valid.
23797
23798 * image.c (png_load): Ignore png-supplied background color.
23799
238002007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23801
23802 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23803 Use kCFAbsoluteTimeIntervalSince1970.
23804
23805 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23806 New variable.
23807 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23808 event loop should be quit.
23809 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23810 Quit dialog event loop if quit_dialog_event_loop is set.
23811
23812 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23813 (Selection): New typedef. Use instead of ScrapRef.
23814 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23815 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23816 (mac_clear_selection): Rename from clear_scrap.
23817 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23818 scrap_has_target_type. All uses changed.
23819 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23820 (mac_selection_has_target_p): New functions.
23821 (mac_put_selection_value): Rename from put_scrap_string.
23822 (mac_get_selection_value): Rename from get_scrap_string.
23823 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23824 (put_scrap_private_timestamp, scrap_has_target_type)
23825 (get_scrap_private_timestamp): Remove functions.
23826 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23827 (x_own_selection, x_get_local_selection):
23828 Use mac_valid_selection_value_p.
23829 (x_own_selection): Don't use put_scrap_private_timestamp.
23830 Record OWNERSHIP-INFO into Vselection_alist instead.
23831 (x_get_local_selection): Don't check type if request is local.
23832 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23833 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23834
238352007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23836
23837 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23838 add comment explaining why.
23839
238402007-08-03 Richard Stallman <rms@gnu.org>
23841
23842 * fileio.c (Fvisited_file_modtime): Use make_time.
23843
238442007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23845
23846 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23847 build.
23848
238492007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23850
23851 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23852
238532007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23854
23855 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23856
238572007-07-30 Richard Stallman <rms@gnu.org>
23858
23859 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23860
238612007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23862
23863 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23864
238652007-07-28 Nick Roberts <nickrob@snap.net.nz>
23866
23867 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23868 remote default-directory.
23869
23870 * buffer.c (mode-line-format): Update doc string.
23871
238722007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23873
23874 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23875 scroll bar gap.
23876 (x_scroll_bar_create): Set bar->fringe_extended_p.
23877 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23878 on frame edge. Check fringe background extension. Don't clear
23879 extended fringe background area.
23880
23881 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23882 (w32_fill_area): Enclose multiple statements with do ... while (0).
23883
23884 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23885 Extend fringe background to scroll bar gap.
23886 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23887 Set bar->fringe_extended_p.
23888 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23889 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23890 background extension. Don't clear extended fringe background area.
23891
23892 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23893 New member fringe_extended_p.
23894
238952007-07-25 Glenn Morris <rgm@gnu.org>
23896
23897 * Relicense all FSF files to GPLv3 or later.
23898
23899 * COPYING: Switch to GPLv3.
23900
239012007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23902
23903 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23904
23905 * data.c (Finteractive_form): Check for the presence of an
23906 `interactive-form' symbol property more thoroughly.
23907
23908 * data.c (Finteractive_form): Use an `interactive-form' property if
23909 present, analogous to the function-documentation property.
23910
239112007-07-24 Jason Rumney <jasonr@gnu.org>
23912
23913 * w32fns.c (x_real_positions): Get real position from OS instead of
23914 calculating it.
23915
239162007-07-23 Jason Rumney <jasonr@gnu.org>
23917
23918 * filelock.c (current_lock_owner): Allow for @ sign in username.
23919
239202007-07-22 Nick Roberts <nickrob@snap.net.nz>
23921
23922 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23923 remote default-directory.
23924
23925 * buffer.c (mode-line-format): Describe above case in doc string.
23926
239272007-07-20 Eli Zaretskii <eliz@gnu.org>
23928
23929 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23930 Define if not defined.
23931
239322007-07-18 Jason Rumney <jasonr@gnu.org>
23933
23934 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23935
239362007-07-18 Richard Stallman <rms@gnu.org>
23937
23938 * data.c (Fsetq_default): Doc fix.
23939
23940 * eval.c (Fsetq): Doc fix.
23941
239422007-07-18 Juanma Barranquero <lekktu@gmail.com>
23943
23944 * coding.c (Ffind_operation_coding_system):
23945 * eval.c (For, Fand): Doc fixes.
23946 Reported by Johan Bockgård.
23947
239482007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23949
23950 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23951
23952 * xterm.h: Declare x_ewmh_activate_frame.
23953
23954 * xterm.c (x_ewmh_activate_frame): New function.
23955 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23956
239572007-07-17 Martin Rudalics <rudalics@gmx.at>
23958
23959 * window.c (Fdisplay_buffer): If largest or LRU window is the
23960 only window, split it even if it is not eligible for splitting.
23961 This restores the original behavior broken by the 2007-07-15
23962 change.
23963
239642007-07-17 Glenn Morris <rgm@gnu.org>
23965
23966 * abbrev.c (abbrev_check_chars): New function.
23967 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23968 Call abbrev_check_chars to check abbrev characters are word
23969 constituents. Doc fix.
23970
239712007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23972
23973 * process.c (Fstart_process, Fmake_network_process)
23974 (read_process_output): Fix up last changes.
23975
239762007-07-16 Eli Zaretskii <eliz@gnu.org>
23977
23978 * makefile.w32-in (clean): Don't delete *~.
23979
239802007-07-16 Andreas Schwab <schwab@suse.de>
23981
23982 * window.c (Fdisplay_buffer): Use NILP.
23983 (Fset_window_scroll_bars): Likewise.
23984
239852007-07-15 Martin Rudalics <rudalics@gmx.at>
23986
23987 * window.c (window_min_size_2): New function.
23988 (window_min_size_1, size_window, Fdisplay_buffer)
23989 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23990 windows without mode- or header-lines when window-min-height is
23991 too small.
23992 (size_window): Reset nodelete_p after testing it, following an
23993 earlier note by Kim F. Storm.
23994 (display_buffer): Do not set split_height_threshold to twice the
23995 value of window_min_height to avoid changing the value of a
23996 customizable variable. Rather explicitly check whether the
23997 height of the window that shall be splitted is at least as large
23998 as split_height_threshold.
23999 (Fwindow_full_width_p): New defun.
24000 (syms_of_window): Defsubr it.
24001
24002 * window.h: Add EXFUN for Fwindow_full_width_p.
24003
240042007-07-14 Jason Rumney <jasonr@gnu.org>
24005
24006 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
24007
240082007-07-14 Richard Stallman <rms@gnu.org>
24009
24010 * eval.c (maybe_call_debugger): New function.
24011 (find_handler_clause): Use maybe_call_debugger.
24012 Call it when the handler says `debug'.
24013 Eliminate DEBUGGER_VALUE_PTR.
24014 (Fsignal): Eliminate debugger_value.
24015 (Qdebug): New variable.
24016 (syms_of_eval): Initialize it.
24017
240182007-07-14 Juanma Barranquero <lekktu@gmail.com>
24019
24020 * eval.c (Fprogn):
24021 * keyboard.c (Ftrack_mouse):
24022 * print.c (Fwith_output_to_temp_buffer):
24023 * window.c (Fsave_window_excursion): Doc fix.
24024
240252007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
24026
24027 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
24028
240292007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
24030
24031 * process.h (struct Lisp_Process): Turn slots infd, outfd,
24032 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
24033 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
24034 read_output_delay, and read_output_skip from Lisp_Objects to ints.
24035 Remove unused encoding_carryover.
24036 * process.c: Adjust all functions accordingly.
24037
240382007-07-12 Richard Stallman <rms@gnu.org>
24039
24040 * term.c: Include unistd.h only if HAVE_UNISTD_H.
24041
240422007-07-11 Jason Rumney <jasonr@gnu.org>
24043
24044 * makefile.w32-in (LIBS): Include OLE32.
24045
24046 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
24047 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
24048
240492007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
24050
24051 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
24052 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
24053 from a Lisp_Object into a bare pointer.
24054 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24055 Adjust the code correspondingly.
24056
24057 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
24058
24059 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
24060 (term_show_mouse_face): Remove unused var `j'.
24061 (handle_one_term_event): Remove unused vars `i' and `j'.
24062 Don't cast return value of ttyname since it's not necessary.
24063
240642007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
24065
24066 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
24067 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
24068
24069 * fns.c (map_char_table): Use an array of int for `indices' rather than
24070 an array of Lisp_Objects (which are only ever integers anyway).
24071 (Fmap_char_table): Update caller.
24072 * lisp.h: Update prototype.
24073 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24074 * fontset.c (Ffontset_info):
24075 * casetab.c (set_case_table): Update callers.
24076
24077 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24078
24079 * keymap.c (struct accessible_keymaps_data)
24080 (struct where_is_internal_data): New structures.
24081 (accessible_keymaps_1, where_is_internal_1): Use them to change
24082 interface to adhere to the one used by map_keymap.
24083 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24084 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24085
24086 * keymap.h (map_keymap_function_t): More informative prototype.
24087
240882007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24089
24090 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24091 (looking_at_1): Don't change search_regs and last_thing_searched
24092 if `inhibit-changing-match-data' is non-nil.
24093 (string_match_1, search_buffer, set_search_regs): Likewise.
24094 (syms_of_search): Add Lisp level definition for
24095 `inhibit-changing-match-data' and set it to nil.
24096 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24097 start and end of the match, instead of using values in search_regs.
24098
240992007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24100
24101 * minibuf.c (Fcompleting_read): New value `confirm-only'
24102 for `require-match'.
24103
241042007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24105
24106 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24107 part of the 2007-06-27 change to syms_of_fileio.
24108
241092007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24110
24111 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24112 Check WINDOWP before using XWINDOW. Consolidate return statements.
24113
241142007-06-27 Richard Stallman <rms@gnu.org>
24115
24116 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24117
241182007-06-27 Juanma Barranquero <lekktu@gmail.com>
24119
24120 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24121
241222007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24123
24124 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24125 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24126 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24127 (_free_internal, memalign): Use them.
24128 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24129 Initialize to PTHREAD_MUTEX_INITIALIZER.
24130 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24131 (morecore_nolock): Rename from morecore. All uses changed.
24132 Use only nolock versions of internal allocation functions.
24133 (_malloc_internal_nolock, _realloc_internal_nolock)
24134 (_free_internal_nolock): New functions created from
24135 _malloc_internal, _realloc_internal, and _free_internal.
24136 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24137 Copy hook value to automatic variable before its use.
24138 (memalign): Copy hook value to automatic variable before its use.
24139
241402007-06-26 Kenichi Handa <handa@m17n.org>
24141
24142 * coding.c (Ffind_operation_coding_system): Docstring improved.
24143 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24144
241452007-06-25 David Kastrup <dak@gnu.org>
24146
24147 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24148 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24149 cater for additional parameter.
24150
24151 * keymap.h: Adjust number of parameters to `current-active-maps'.
24152
24153 * doc.c (Fsubstitute_command_keys): Adjust call of
24154 `current-active-maps'.
24155
241562007-06-25 David Kastrup <dak@gnu.org>
24157
24158 * callint.c (Fcall_interactively): Make the parsing of interactive
24159 specs somewhat more readable.
24160
241612007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24162
24163 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24164 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24165 if extended background has already been filled.
24166
241672007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24168
24169 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24170 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24171
24172 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24173 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24174 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24175 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24176 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24177 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24178 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24179 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24180 Run timers during dialog popup.
24181 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24182
241832007-06-21 Jason Rumney <jasonr@gnu.org>
24184
24185 * image.c (convert_mono_to_color_image): Swap fore and background.
24186
241872007-06-20 Jason Rumney <jasonr@gnu.org>
24188
24189 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24190 (w32_free_bdf_font): Unmap memory not handle.
24191
241922007-06-20 Sam Steingold <sds@gnu.org>
24193
24194 * gmalloc.c (__morecore): Fix the declaration to comply with the
24195 definition.
24196
241972007-06-20 Juanma Barranquero <lekktu@gmail.com>
24198
24199 * w32term.c (w32_delete_display): Remove leftover declaration.
24200 (w32_define_cursor, w32_initialize): Make static.
24201
24202 * w32.c (_wsa_errlist): Fix typo in error message.
24203 (init_environment): Ignore any environment variable from the
24204 registry having a null value.
24205
242062007-06-20 Glenn Morris <rgm@gnu.org>
24207
24208 * Makefile.in (LIBGIF): Default to -lgif.
24209
242102007-06-17 Jason Rumney <jasonr@gnu.org>
24211
24212 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24213 unicode strings.
24214
242152007-06-16 Juanma Barranquero <lekktu@gmail.com>
24216
24217 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24218 Fix typo in docstring.
24219
242202007-06-16 Eli Zaretskii <eliz@gnu.org>
24221
24222 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24223 and their keybindings.
24224
242252007-06-15 Chong Yidong <cyd@stupidchicken.com>
24226
24227 * composite.c (update_compositions): Fix last fix.
24228
242292007-06-14 Jason Rumney <jasonr@gnu.org>
24230
24231 * w32.c (get_process_times_fn): New function pointer.
24232 (globals_of_w32): Intialize it if present in kernel32.dll.
24233 (w32_get_internal_run_time): New function.
24234
24235 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24236
242372007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24238
24239 * composite.c (update_compositions): Check the validness of
24240 compositions.
24241
242422007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24243
24244 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24245 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24246
24247 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24248 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24249
24250 * macgui.h (USE_MAC_TOOLBAR): New define.
24251
24252 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24253 Return immediately unless popup is activated.
24254
24255 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24256 background to scroll bar gap.
24257 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24258 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24259 scroll bars on frame edge. Check fringe background extension.
24260 Don't clear extended fringe background area.
24261 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24262 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24263 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24264 [USE_MAC_TOOLBAR]: New macros.
24265 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24266 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24267 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24268 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24269 [USE_MAC_TOOLBAR]: New functions.
24270 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24271 manually if previous repositioning has failed.
24272 (mac_handle_keyboard_event): Use precomputed event kind.
24273 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24274 as tool bar item click. Handle mouse movement over tool bar items.
24275
24276 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24277 toolbar_win_gravity.
24278 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24279 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24280 Add externs.
24281
24282 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24283 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24284
242852007-06-14 Chong Yidong <cyd@stupidchicken.com>
24286
24287 * image.c (search_image_cache): Remove unused variable.
24288
242892007-06-13 Chong Yidong <cyd@stupidchicken.com>
24290
24291 * xfns.c, xmenu.c: Link to xaw3d if available.
24292
242932007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24294
24295 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24296 frame_foreground and frame_background.
24297
24298 * image.c (lookup_image): Save frame foreground and background colors.
24299 (search_image_cache): Check if saved and current frame colors match.
24300
243012007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24302
24303 * regex.c (regex_compile): Remove the `regnum' counter.
24304 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24305
243062007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24307
24308 * term.c: Include intervals.h to declare Fget_text_property.
24309
243102007-06-10 Jason Rumney <jasonr@gnu.org>
24311
24312 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24313
243142007-06-08 Juanma Barranquero <lekktu@gmail.com>
24315
24316 * callint.c (Fcall_interactively):
24317 * editfns.c (Fdelete_and_extract_region):
24318 * fileio.c (Fread_file_name):
24319 * fns.c (Fmapconcat):
24320 * keyboard.c (cmd_error_internal):
24321 * keymap.c (Fkey_description):
24322 * lread.c (openp):
24323 * minibuf.c (read_minibuf):
24324 * search.c (wordify):
24325 * sunfns.c (sel_read):
24326 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24327 * xfns.c (x_default_scroll_bar_color_parameter):
24328 * xmenu.c (menu_help_callback):
24329 * xselect.c (Fx_get_atom_name):
24330 * xterm.c (x_term_init): Use empty_unibyte_string.
24331
243322007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24333
24334 * alloc.c (init_strings): Initialize canonical empty strings.
24335 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24336 canonical empty string when the requested size is 0.
24337
24338 * emacs.c (empty_unibyte_string): Rename from empty_string.
24339 (empty_multibyte_string): New canonical empty string.
24340 (syms_of_emacs): Don't initialize empty_string.
24341
24342 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24343 string, if appropriate.
24344 (empty_unibyte_string, empty_multibyte_string): New externs.
24345 (empty_string): Remove extern.
24346
24347 * lread.c (syms_of_lread): Use empty_unibyte_string.
24348
243492007-06-07 Jason Rumney <jasonr@gnu.org>
24350
24351 * s/ms-w32.h: Don't define HAVE_TZNAME.
24352
24353 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24354
243552007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24356
24357 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24358
24359 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24360 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24361
24362 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24363 Don't call next handler.
24364 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24365 Remove argument. Install handler to application.
24366 (set_frame_menubar): Don't change deep_p.
24367 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24368 FRAME_OUTER_TO_INNER_DIFF_Y.
24369 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24370 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24371 [HAVE_DIALOGS]: New macros.
24372 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24373 Use them.
24374 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24375
24376 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24377 init_service_handler. All callers changed. Return OSStatus value.
24378
24379 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24380 All callers changed so as not to call SetPortWindowPort.
24381 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24382 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24383 mac_draw_string_common.
24384 (mac_draw_image_string_qd): Likewise.
24385 (mac_draw_string_common): Use them. Add INLINE.
24386 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24387 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24388 GetGlobalMouse.
24389 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24390 and FRAME_OUTER_TO_INNER_DIFF_Y.
24391 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24392 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24393 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24394 repositioning window to mac_handle_window_event.
24395 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24396 saving window location to mac_handle_window_event
24397 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24398 (install_menu_target_item_handler): Remove argument in extern.
24399 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24400 Also accept command events.
24401 (do_keystroke): New function created from XTread_socket.
24402 (init_command_handler): Remove functions.
24403 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24404 and save window location by kEventWindowShowing and kEventWindowHiding
24405 handlers here. Don't call next handler for window state change and
24406 focus events.
24407 (mac_handle_application_event, mac_handle_keyboard_event)
24408 [TARGET_API_MAC_CARBON]: New functions.
24409 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24410 kEventWindowShowing and kEventWindowHiding events. Move installation
24411 of mouse, font, text input and menu target item handlers to
24412 install_application_handler.
24413 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24414 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24415 New function.
24416 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24417 Register it.
24418 (XTread_socket) [TARGET_API_MAC_CARBON]:
24419 Consolidate SendEventToEventTarget calls.
24420 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24421 Move application activation handler to mac_handle_application_event.
24422 Move keyboard handler to mac_handle_keyboard_event.
24423 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24424 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24425 init_command_handler. Call install_application_handler.
24426
24427 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24428 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24429
244302007-06-07 Glenn Morris <rgm@gnu.org>
24431
24432 * emacs.c (main): Use `emacs-copyright' in --version output.
24433
244342007-06-06 Chong Yidong <cyd@stupidchicken.com>
24435
24436 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24437
244382007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24439
24440 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24441
24442 * macgui.h: Replace WindowPtr with WindowRef.
24443
24444 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24445 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24446 Replace ControlHandle with ControlRef.
24447 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24448
24449 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24450 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24451 Replace ControlHandle with ControlRef.
24452 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24453 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24454
24455 * macterm.h (struct scroll_bar): Rename member control_handle_low
24456 and control_handle_high to control_ref_low and control_ref_high.
24457 All uses changed.
24458 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24459 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24460 respectively. All uses changed.
24461 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24462 (install_window_handler, remove_window_handler): Replace WindowPtr
24463 with WindowRef in externs.
24464
244652007-06-05 Juanma Barranquero <lekktu@gmail.com>
24466
24467 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24468
244692007-06-03 Nick Roberts <nickrob@snap.net.nz>
24470
24471 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24472
24473 * frame.c (Fmouse_position, Fmouse_pixel_position):
24474 Condition on HAVE_GPM too.
24475
24476 * term.c (term_mouse_highlight): Remove unused variables.
24477 (Fterm_open_connection): Set gpm_zerobased to 1.
24478 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24479 Use zero based co-ordinates.
24480 (handle_one_term_event): Report a drag as mouse movement too.
24481
24482 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24483
244842007-06-03 Chong Yidong <cyd@stupidchicken.com>
24485
24486 * image.c (search_image_cache): New function. Require background
24487 color match if background color is unspecified in the image spec.
24488 (uncache_image, lookup_image): Use it.
24489
244902007-06-01 Juanma Barranquero <lekktu@gmail.com>
24491
24492 * window.c (Fshrink_window): Reflow docstring.
24493
244942007-06-02 Chong Yidong <cyd@stupidchicken.com>
24495
24496 * Version 22.1 released.
24497
244982007-06-01 Richard Stallman <rms@gnu.org>
24499
24500 * xfns.c (x_encode_text): Add GCPRO.
24501
245022007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24503
24504 * xfns.c (x_set_name_internal): Save encoded name before
24505 x_encode_text in case string data is relocated.
24506
245072007-05-31 Richard Stallman <rms@gnu.org>
24508
24509 * buffer.c (syms_of_buffer): Doc fix.
24510
245112007-05-30 Nick Roberts <nickrob@snap.net.nz>
24512
24513 * sysdep.c (init_sys_modes): Add rather than replace with
24514 O_NONBLOCK.
24515
24516 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24517 term_mouse_moveto.
24518
24519 * termhooks.h (term_mouse_moveto): New extern.
24520
24521 * term.c (mouse_face_window): Rename...
24522 (Qmouse_face_window): ...to this.
24523 (term_show_mouse_face, term_clear_mouse_face)
24524 (term_mouse_highlight): Use Qmouse_face_window.
24525 (term_mouse_moveto): New function.
24526 (term_mouse_position): Make it work.
24527 (syms_of_term): Uncomment assignment to mouse_position_hook.
24528 Staticpro Qmouse_face_window.
24529
245302007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24531
24532 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24533 around current_column call.
24534
245352007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24536
24537 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24538 * xdisp.c (next_element_from_buffer):
24539 * window.c (delete_window):
24540 * term.c (term_mouse_highlight):
24541 * msdos.c (getdefdir):
24542 * macterm.c (mac_create_bitmap_from_bitmap_data)
24543 (init_font_name_table):
24544 * fns.c (Fsxhash):
24545 * data.c (Fmake_local_variable):
24546 * ccl.c (ccl_driver): Likewise.
24547
245482007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24549
24550 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24551 Call mac_wakeup_from_rne on window size change.
24552
245532007-05-25 Chong Yidong <cyd@stupidchicken.com>
24554
24555 * image.c (uncache_image): Fix typo.
24556
245572007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24558
24559 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24560
245612007-05-22 Richard Stallman <rms@gnu.org>
24562
24563 * xterm.c (x_connection_closed): Remove NO_RETURN.
24564
245652007-05-22 Martin Rudalics <rudalics@gmx.at>
24566
24567 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24568
245692007-05-21 Chong Yidong <cyd@stupidchicken.com>
24570
24571 * image.c (uncache_image): New function.
24572 (Fimage_refresh): New function.
24573
245742007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24575
24576 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24577
245782007-05-20 Nick Roberts <nickrob@snap.net.nz>
24579
24580 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24581 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24582
245832007-05-20 Nick Roberts <nickrob@snap.net.nz>
24584
24585 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24586 conditional on [HAVE_GPM_H].
24587
245882007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24589
24590 * syntax.c (skip_chars): Update syntax-table only after we checked that
24591 the new location is valid.
24592
245932007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24594
24595 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24596 mac_get_window_bounds.
24597
245982007-05-20 Nick Roberts <nickrob@snap.net.nz>
24599
24600 * Makefile.in (LIBGPM): Allow it to be set from configure.
24601 If set then link Emacs with it.
24602
24603 * config.in: Regenerate.
24604
24605 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24606 New externs.
24607
24608 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24609 Include gpm.h.
24610 (handle_one_term_event, term_gpm): New externs.
24611
24612 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24613 and allow it to be interrupted by SIGIO.
24614
24615 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24616 (wait_reading_process_output): Wait on gpm_fd too.
24617 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24618 (add_gpm_wait_descriptor_called_flag): New variable.
24619 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24620
24621 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24622 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24623 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24624 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24625 (make_lispy_event): Add case GPM_CLICK_EVENT.
24626 (read_avail_input): Handle mouse input.
24627
24628 * term.c (write_glyphs_with_face): New function.
24629 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24630 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24631 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24632 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24633 (last_mouse_x, last_mouse_y): New variables.
24634 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24635 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24636 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24637 (Fterm_close_connection): New functions.
24638 (term_init): Initialise mouse_face_window.
24639
246402007-05-19 Chong Yidong <cyd@stupidchicken.com>
24641
24642 * xdisp.c (redisplay_window): If first window line is a
24643 continuation line, recompute the new window start instead of
24644 recentering.
24645
246462007-05-18 Glenn Morris <rgm@gnu.org>
24647
24648 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24649 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24650
246512007-05-17 Glenn Morris <rgm@gnu.org>
24652
24653 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24654
246552007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24656
24657 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24658 dead key repeat and up events.
24659
246602007-05-14 Chong Yidong <cyd@stupidchicken.com>
24661
24662 * image.c (pbm_load): Check image size for monochrome pbm.
24663
246642007-05-13 Chong Yidong <cyd@stupidchicken.com>
24665
24666 * xterm.c (XTread_socket): Revert last change.
24667
246682007-05-12 Chong Yidong <cyd@stupidchicken.com>
24669
24670 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24671
24672 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24673
246742007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24675
24676 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24677 mixup (YAILOM).
24678
246792007-05-07 Andreas Schwab <schwab@suse.de>
24680
24681 * keymap.c (Flookup_key): Fix typo in last change.
24682
246832007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24684
24685 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24686 mapping for unibyte strings.
24687
246882007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24689
24690 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24691 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24692
246932007-04-29 Richard Stallman <rms@gnu.org>
24694
24695 * insdel.c (replace_range): For undo, record insertion first.
24696
246972007-04-29 Andreas Schwab <schwab@suse.de>
24698
24699 * lisp.h (VECSIZE): Use OFFSETOF.
24700
247012007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24702
24703 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24704 disabled lines.
24705
247062007-04-28 Richard Stallman <rms@gnu.org>
24707
24708 * lread.c (read_escape): In a string, \s is always space.
24709
247102007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24711
24712 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24713
24714 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24715 submenu for menu bar items.
24716
24717See ChangeLog.10 for earlier changes.
24718
24719;; Local Variables:
24720;; coding: utf-8
24721;; add-log-time-zone-rule: t
aac0c6e3
MR
24722;; End:
24723
e3eb1dae 24724 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24725
24726 This file is part of GNU Emacs.
24727
24728 GNU Emacs is free software: you can redistribute it and/or modify
24729 it under the terms of the GNU General Public License as published by
24730 the Free Software Foundation, either version 3 of the License, or
24731 (at your option) any later version.
24732
24733 GNU Emacs is distributed in the hope that it will be useful,
24734 but WITHOUT ANY WARRANTY; without even the implied warranty of
24735 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24736 GNU General Public License for more details.
24737
24738 You should have received a copy of the GNU General Public License
24739 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24740
24741;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40