Set default-frame-alist, if necessary, in menu/tool-bar-mode.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d3da34e0 12010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2
3 * vm-limit.c (memory_warnings):
4 * keyboard.c (modify_event_symbol):
5 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
6 (round2, emacs_rint):
7 * process.c (send_process, old_sigpipe): Convert function
8 definitions and declarations to standard C.
9
102010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
11
12 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
13 * xdisp.c: Convert function definitions to standard C.
14
15 * cm.c (cmputc): Arg C is now int, not char.
16 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
17
00be444c
J
182010-07-05 James Cloos <cloos@jhcloos.com>
19
20 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
21
22 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
23 _NET_WM_ICON_NAME atoms.
24
25 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
26 and _NET_WM_ICON_NAME properties, too, matching what is
27 done in the Gtk+ case.
28
e4c8d29a
J
292010-07-05 Jan Djärv <jan.h.d@swipnet.se>
30
ff919460
J
31 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
32
e4c8d29a
J
33 * xsmfns.c (SSDATA): New macro.
34 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
35 passed to strlen/strcpy/strcat.
36 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
37 7:th arg to XChangeProperty to (unsigned char *)
38
39 * xsettings.c (something_changedCB, parse_settings)
40 (apply_xft_settings): Reformat prototype.
41 (something_changedCB, init_gconf): Remove unused variable i.
42 (read_settings): Remove unused variable long_len.
43
44 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
45 (xg_get_image_for_pixmap, create_dialog)
46 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
47 (menuitem_highlight_callback, make_menu_item)
48 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
49 (xg_create_scroll_bar, xg_update_scrollbar_pos)
50 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
51 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
52 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
53 (xg_tool_bar_item_expose_callback): Reformat prototype.
54 (xg_update_menubar): GList *group => GSList *group.
55 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
56 before use.
57 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
58 to GTK_IMAGE (wimage).
59
dd4c5104
DN
602010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
61
898b4c5c
DN
62 * atimer.c: Use "" instead of <> for local includes for
63 consistency with the rest of the code.
64
dd4c5104
DN
65 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
66 * xrdb.c (get_system_name):
67 * window.c (shrink_windows):
68 * syntax.c (forw_comment):
69 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
70 (ins_del_costs):
71 * mem-limits.h (start_of_data):
72 * lread.c (readevalloop):
73 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
74 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
75 * frame.c (x_get_focus_frame):
76 * floatfns.c (fmod_float):
77 * fileio.c (choose_write_coding_system):
78 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
79 (malloc_initialize_hook, sort_args, synchronize_locale):
80 * doprnt.c (doprnt):
81 * dired.c (compile_pattern):
82 * data.c (fmod_float):
83 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
84 (map_char_table_for_charset):
85 * charset.c (define_charset_internal):
86 * alloc.c (Fgarbage_collect): Convert declarations or definitions
87 to standard C.
88
9a39b306 892010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 90 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
91
92 * lread.c (read1): Fix up last change to not mess up `c'.
93
e6cb2cbb
JB
942010-07-04 Juanma Barranquero <lekktu@gmail.com>
95
96 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
97
438105ed
JB
982010-07-04 Juanma Barranquero <lekktu@gmail.com>
99
100 Fix prototypes.
101
e5447b22 102 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 103 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
104 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
105 arg, as required by internal_condition_case_1.
dcc7404b 106 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
107 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
108 (analyse_first): Fix "const const".
e5447b22 109 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 110 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 111 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 112
971de7fb
DN
1132010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
114
115 * alloc.c: Convert function definitions to standard C.
116 * atimer.c:
117 * bidi.c:
118 * bytecode.c:
119 * callint.c:
120 * callproc.c:
121 * casefiddle.c:
122 * casetab.c:
123 * category.c:
124 * ccl.c:
125 * character.c:
126 * charset.c:
127 * chartab.c:
128 * cmds.c:
129 * coding.c:
130 * composite.c:
131 * data.c:
132 * dbusbind.c:
133 * dired.c:
134 * dispnew.c:
135 * doc.c:
136 * doprnt.c:
137 * ecrt0.c:
138 * editfns.c:
139 * fileio.c:
140 * filelock.c:
141 * filemode.c:
142 * fns.c:
143 * font.c:
144 * fontset.c:
145 * frame.c:
146 * fringe.c:
147 * ftfont.c:
148 * ftxfont.c:
149 * gtkutil.c:
150 * indent.c:
151 * insdel.c:
152 * intervals.c:
153 * keymap.c:
154 * lread.c:
155 * macros.c:
156 * marker.c:
157 * md5.c:
158 * menu.c:
159 * minibuf.c:
160 * prefix-args.c:
161 * print.c:
162 * ralloc.c:
163 * regex.c:
164 * region-cache.c:
165 * scroll.c:
166 * search.c:
167 * sound.c:
168 * strftime.c:
169 * syntax.c:
170 * sysdep.c:
171 * termcap.c:
172 * terminal.c:
173 * terminfo.c:
174 * textprop.c:
175 * tparam.c:
176 * undo.c:
177 * unexelf.c:
178 * window.c:
179 * xfaces.c:
180 * xfns.c:
181 * xfont.c:
182 * xftfont.c:
183 * xgselect.c:
184 * xmenu.c:
185 * xrdb.c:
186 * xselect.c:
187 * xsettings.c:
188 * xsmfns.c:
189 * xterm.c: Likewise.
190
ae492bec
EZ
1912010-07-03 Eli Zaretskii <eliz@gnu.org>
192
76ea4cc9
EZ
193 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
194 frames other than the initial one. Fix reversal of colors when
195 `reverse' is specified in the frame parameters. Call
196 update_face_from_frame_parameter instead of
197 internal-set-lisp-face-attribute. Initialize screen colors from
198 initial_screen_colors[] when f->default_face_done_p is zero,
199 instead of depending on being called with default-frame-alist as
200 the alist argument.
201
202 * xfaces.c (update_face_from_frame_parameter): Move out of
203 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
204 with HAVE_WINDOW_SYSTEM.
205
1e6255ae
EZ
206 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
207 to menu-bar-mode, if not set in the frame parameters or in
208 default-frame-alist.
209
ae492bec
EZ
210 * w32console.c (sys_tputs): Adjust argument list to prototype in
211 term.c.
212
3a35a84c
JB
2132010-07-03 Juanma Barranquero <lekktu@gmail.com>
214
215 * lisp.h (memory_warnings): Fix prototype.
216
217 * cm.h (evalcost): Fix prototype.
218
219 * cm.c (evalcost): Fix arg type.
220
c532d349
DN
2212010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
222
223 * term.c (term_clear_mouse_face, Fidentity):
224 * syssignal.h (signal_handler_t):
225 * lisp.h (memory_warnings):
226 * coding.h (preferred_coding_system):
227 * cm.h (evalcost):
228 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
229
c0b36d46
EZ
2302010-07-02 Eli Zaretskii <eliz@gnu.org>
231
232 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
233 from prototypes.
234
235 * msdos.h (load_pixmap): Don't define away.
236
383e0970
J
2372010-07-02 Jan Djärv <jan.h.d@swipnet.se>
238
f57e2426
J
239 * lisp.h:
240 * atimer.h: Remove define for P_.
241
242 * alloc.c: Remove __P and P_ from .c and .m files.
243 * atimer.c:
244 * buffer.c:
245 * callint.c:
246 * category.c:
247 * charset.c:
248 * chartab.c:
249 * cm.c:
250 * coding.c:
251 * composite.c:
252 * data.c:
253 * dired.c:
254 * dispnew.c:
255 * doc.c:
256 * editfns.c:
257 * emacs.c:
258 * eval.c:
259 * fileio.c:
260 * filelock.c:
261 * fns.c:
262 * font.c:
263 * fontset.c:
264 * frame.c:
265 * ftfont.c:
266 * ftxfont.c:
267 * gmalloc.c:
268 * gtkutil.c:
269 * image.c:
270 * indent.c:
271 * intervals.c:
272 * keyboard.c:
273 * keymap.c:
274 * lread.c:
275 * marker.c:
276 * menu.c:
277 * minibuf.c:
278 * print.c:
279 * process.c:
280 * scroll.c:
281 * search.c:
282 * sound.c:
283 * strftime.c:
284 * syntax.c:
285 * sysdep.c:
286 * term.c:
287 * terminal.c:
288 * textprop.c:
289 * unexalpha.c:
290 * w32console.c:
291 * w32fns.c:
292 * w32font.c:
293 * w32menu.c:
294 * w32term.c:
295 * w32uniscribe.c:
296 * window.c:
297 * xdisp.c:
298 * xfaces.c:
299 * xfns.c:
300 * xfont.c:
301 * xftfont.c:
302 * xmenu.c:
303 * xselect.c:
304 * xterm.c: Likewise.
305
383e0970 306 Remove P_ and __P macros.
f57e2426
J
307 * atimer.h: Remove P_ and __P macros.
308 * buffer.h:
383e0970
J
309 * category.h:
310 * ccl.h:
311 * character.h:
312 * charset.h:
313 * cm.h:
314 * coding.h:
315 * composite.h:
316 * dispextern.h:
317 * disptab.h:
9e892c8d 318 * dosfns.h:
383e0970
J
319 * font.h:
320 * fontset.h:
321 * frame.h:
322 * gtkutil.h:
323 * indent.h:
324 * intervals.h:
325 * keyboard.h:
326 * keymap.h:
327 * lisp.h:
328 * macros.h:
329 * md5.h:
330 * menu.h:
331 * msdos.h:
332 * nsterm.h:
333 * puresize.h:
334 * region-cache.h:
335 * syntax.h:
336 * syssignal.h:
337 * systime.h:
338 * termhooks.h:
9e892c8d 339 * w32font.h:
383e0970
J
340 * w32term.h:
341 * widget.h:
342 * window.h:
343 * xgselect.h:
344 * xsettings.h:
345 * xterm.h: Likewise.
346
98601119
DN
3472010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
348
d9170db5
DN
349 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
350
98601119
DN
351 Cleanup old code.
352 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
353 * syssignal.h: Remove code for Lynx, not supported anymore.
354 * vm-limit.c: Remove unused code the depends on emacs not being
355 defined and NO_LIM_DATA being defined.
356 * mem-limits.h: Remove dead code.
357
1f984e12
J
3582010-07-01 Jan Djärv <jan.h.d@swipnet.se>
359
c49d071a
J
360 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
361
9d5405ec
J
362 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
363 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
364
7a18115b
J
365 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
366 parameters, they are already absolute.
367
581a8100
J
368 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
369 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
370
371 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
372
373 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
374 FRAME_TOOLBAR_HEIGHT.
375
1f984e12
J
376 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
377 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
378
c1ef4455
CY
3792010-06-30 Chong Yidong <cyd@stupidchicken.com>
380
381 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
382 check default-frame-alist.
383
ce8f5a9a
AS
3842010-06-30 Andreas Schwab <schwab@linux-m68k.org>
385
386 * process.c (create_process): Avoid using invalid file descriptors.
387
388 * callproc.c (child_setup): Avoid closing a file descriptor twice.
389
bf935339
J
3902010-06-30 Jan Djärv <jan.h.d@swipnet.se>
391
392 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
393 Improve documentation. Return font regardless of use_system_font.
394 (syms_of_xsettings): Improve documentation for font-use-system-font.
395
769e9d47
KH
3962009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
397
398 * xftfont.c (xftfont_open): Check font width one by one also when
399 spacing is dual.
400
401 * ftfont.c (ftfont_open): Ditto.
402
6259c2ec
GM
4032010-06-30 Glenn Morris <rgm@gnu.org>
404
a46007e9
GM
405 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
406
6259c2ec
GM
407 * Makefile.in (CANNOT_DUMP): Update for configure name change.
408
409 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
410 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
411 * s/darwin.h (SYSTEM_MALLOC):
412 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
413
5d1d3d04
J
4142010-06-29 Jan Djärv <jan.h.d@swipnet.se>
415
416 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
417 (ns_get_screen): Don't assign integer to f.
418 (Fx_display_color_cells): Declarations before statements.
419
e547b051
J
4202010-06-28 Jan Djärv <jan.h.d@swipnet.se>
421
5fc8e5bc
J
422 * xfns.c (x_default_font_parameter): Remove got_from_system
423 (Bug#6526).
424
e547b051
J
425 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
426 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
427 defines based on what configure finds.
428
429 * xterm.c (XTflash): Use gtk_widget_get_window.
430 (xg_scroll_callback): Use gtk_adjustment_get_upper and
431 gtk_adjustment_get_page_size.
432 (handle_one_xevent): Use gtk_widget_get_mapped.
433 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
434 messages.
435
436 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
437
438 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
439 HAVE_GTK_FILE_SELECTION_NEW.
440
441 * gtkutil.c (xg_display_open, xg_display_close): Remove
442 HAVE_GTK_MULTIDISPLAY, it is always defined.
443 (xg_display_open): Return type is void.
444 (gtk_widget_set_has_window)
445 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
446 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
447 (gtk_adjustment_set_page_increment)
448 (gtk_adjustment_get_step_increment): #define these if not found
449 by configure.
450 (remove_submenu): New define based on Gtk+ version.
451 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
452 gtk_widget_get_window.
453 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
454 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
455 (create_dialog): Use gtk_dialog_get_action_area and
456 gtk_dialog_get_content_area.
457 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
458 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
459 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
460 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
461 g_object_ref and g_object_unref.
462 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
463 gtk_widget_get_sensitive.
464 (xg_update_submenu): Use remove_submenu.
465 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
466 properties instead to get old x and y position.
467 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
468 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 469 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
470 (xg_get_tool_bar_widgets): New function.
471 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
472 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
473 (toolbar_set_orientation): New #define based on if configure
474 finds gtk_orientable_set_orientation.
475 (xg_create_tool_bar): Call toolbar_set_orientation.
476 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
477 instead of gtk_box_pack_start_defaults.
478
b9229673
CY
4792010-06-28 Chong Yidong <cyd@stupidchicken.com>
480
481 * cmds.c (Fdelete_backward_char): Move into Lisp.
482
bbc803b0
DN
4832010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
484
485 * s/freebsd.h (BSD4_2): Remove redundant definition.
486 bsd-common.h defines it already.
487
6431f2e6
CY
4882010-06-27 Chong Yidong <cyd@stupidchicken.com>
489
490 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
491 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
492 tool-bar-mode, which are now set using these X resources at
493 startup, to determine the defaults (Bug#2249).
494
495 * w32fns.c (Fx_create_frame):
496 * nsfns.m (Fx_create_frame): Likewise.
497
498 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
499
8c079ebb
JB
5002010-06-24 Juanma Barranquero <lekktu@gmail.com>
501
502 * gtkutil.c (xg_update_scrollbar_pos):
503 Avoid C99 mid-block variable declaration.
504
e9b7ab96
JD
5052010-06-22 Jan Djärv <jan.h.d@swipnet.se>
506
bc869eca
JD
507 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
508
2b7e356a 509 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
510
511 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
512 if height is less than scroll bar min size.
513 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
514
e9b7ab96
JD
515 * xfns.c (x_default_font_parameter): Try to open font from system
516 before using it (bug#6478). Rename got_from_gconf to got_from_system.
517
32a679fd
JD
5182010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
519
520 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
521
70c4cfbb
EZ
5222010-06-20 Eli Zaretskii <eliz@gnu.org>
523
524 * xdisp.c (try_scrolling): When scroll-conservatively is set to
525 most-positive-fixnum, be extra accurate when scrolling window
526 start, to avoid missing the cursor line.
527
ad5a12b5
EZ
5282010-06-19 Eli Zaretskii <eliz@gnu.org>
529
530 * xdisp.c (try_scrolling): Compute the limit for searching point
531 in forward scroll from scroll_max, instead of an arbitrary limit
532 of 10 screen lines. See
533 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
534 and
535 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
536 for details.
537
2a64315a 5382010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
539
540 * editfns.c (Fbyte_to_string): Pacify compiler.
541
288cf4e9
SM
5422010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
543
544 * lread.c (read1): Phase out old-style backquotes a bit more.
545
6e6e5760
EZ
5462010-06-12 Eli Zaretskii <eliz@gnu.org>
547
cbc4fd20
EZ
548 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
549 bidimirror.h.
550
551 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
552
317fbf33
EZ
553 * bidi.c (bidi_initialize): Remove explicit initialization of
554 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 555 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 556 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
557
558 * biditype.h: New file.
559
cbc4fd20
EZ
560 * bidimirror.h: New file.
561
6e6e5760
EZ
562 * window.c (syms_of_window): Doc fix (bug#6409).
563
4176cba2
RF
5642010-06-12 Romain Francoise <romain@orebokech.com>
565
566 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
567 ediff-hook.
568
cb4bfcb5
GM
5692010-06-10 Glenn Morris <rgm@gnu.org>
570
64c60c2f
GM
571 * editfns.c (Fbyte_to_string): Pacify compiler.
572
cb4bfcb5
GM
573 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
574
e454a4a3
SM
5752010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
576
577 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
578 Check `object's type before accessing its guts.
579
c1b1acc2
DN
5802010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
581
582 * s/usg5-4.h: Fix previous change.
583 Suggested by Lawrence Mitchell <wence@gmx.li>
584
657d4c0b
AS
5852010-06-08 Andreas Schwab <schwab@linux-m68k.org>
586
587 * minibuf.c (Fall_completions): Add more checks.
588
9b27fd9f
JB
5892010-06-08 Juanma Barranquero <lekktu@gmail.com>
590
591 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
592
a99ebb40
DN
5932010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
594
d7c5d87d
DN
595 * lread.c (X_OK): Remove, unused.
596
0263a941
DN
597 * dispnew.c: Remove obsolete comment.
598
a99ebb40
DN
599 Remove INCLUDED_FCNTL.
600 * xterm.c (INCLUDED_FCNTL):
601 * callproc.c (INCLUDED_FCNTL):
602 * alloc.c (INCLUDED_FCNTL):
603 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
604 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
605
13b5221f
MR
6062010-06-07 Martin Rudalics <rudalics@gmx.at>
607
608 * window.c (Fselect_window): Move `record_buffer' up to the
609 beginning of this function, so the buffer gets recorded
610 even if the selected window does not change.
611 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
612
5220357f
JB
6132010-06-07 Juanma Barranquero <lekktu@gmail.com>
614
615 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
616 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
617
3085237c
DN
6182010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
619
620 Remove BSTRING related code, all platforms define it.
621 * s/usg5-4.h (BSTRING): Remove definition.
622 * s/template.h (BSTRING):
623 * s/msdos.h (BSTRING):
624 * s/ms-w32.h (BSTRING):
625 * s/hpux10-20.h (BSTRING):
626 * s/gnu-linux.h (BSTRING):
627 * s/darwin.h (BSTRING):
628 * s/cygwin.h (BSTRING):
629 * s/bsd-common.h (BSTRING):
630 * s/aix4-2.h (BSTRING): Likewise.
631 * sysdep.c: Remove code depending on BSTRING not being defined.
632
409f2919
JB
6332010-06-05 Juanma Barranquero <lekktu@gmail.com>
634
635 Remove obsolete macro BASE_LEADING_CODE_P.
636 * character.h (BASE_LEADING_CODE_P): Remove.
637 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
638 * buffer.c (Fset_buffer_multibyte):
639 * indent.c (scan_for_column, compute_motion):
640 * insdel.c (count_combining_before, count_combining_after):
641 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
642
087fc47a
JB
6432010-06-04 Juanma Barranquero <lekktu@gmail.com>
644
645 Turn `directory-sep-char' into a noop.
646
647 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
648 (DIRECTORY_SEP): Define unconditionally.
649
650 * s/ms-w32.h (DIRECTORY_SEP): Remove.
651
652 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
653 call dostounix_filename directly.
654
655 * fileio.c (CORRECT_DIR_SEPS): Remove.
656 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
657 (Fsubstitute_in_file_name): Use dostounix_filename instead.
658 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
659 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
660
661 * w32proc.c (CORRECT_DIR_SEPS): Remove.
662 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
663
0eb7675e
AS
6642010-06-03 Andreas Schwab <schwab@linux-m68k.org>
665
666 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 667 address. (Bug#6346)
0eb7675e 668
78edd3b7
JB
6692010-06-03 Juanma Barranquero <lekktu@gmail.com>
670
671 * ccl.c (Fccl_program_p): Fix typo in docstring.
672
eb697db5
DN
6732010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
674
675 Move UNEXEC definition to autoconf.
676 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
677 * s/sol2-10.h (UNEXEC):
678 * s/irix6-5.h (UNEXEC):
679 * s/hpux10-20.h (UNEXEC):
680 * s/gnu-linux.h (UNEXEC):
681 * s/darwin.h (UNEXEC):
682 * s/cygwin.h (UNEXEC):
683 * s/bsd-common.h (UNEXEC):
684 * s/aix4-2.h (UNEXEC):
685 * m/alpha.h (UNEXEC): Likewise.
686 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
687
aa3830c4
JB
6882010-06-03 Juanma Barranquero <lekktu@gmail.com>
689
690 Remove obsolete pre-unicode2 macros.
691 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
692 * composite.c (composition_reseat_it):
693 * data.c (Faset):
694 * fns.c (Ffillarray):
695 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
696 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
697
d234d13e
JL
6982010-06-03 Juri Linkov <juri@jurta.org>
699
700 * buffer.c (Fother_buffer): Add CHECK_FRAME.
701 (Fswitch_to_buffer): Remove unused variable `err'.
702
0d4bcf4d
GM
7032010-06-03 Glenn Morris <rgm@gnu.org>
704
e23dc1e2
GM
705 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
706
05b09564
GM
707 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
708 now that AH_BOTTOM does it.
709
824e2978
GM
710 * m/hp800.h (HAVE_ALLOCA):
711 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
712
0d4bcf4d
GM
713 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
714 Remove NOT_C_CODE tests, it is always true now.
715
c55d2abf
DN
7162010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
717
08a494a3
DN
718 Fix config.h includes.
719 * xsettings.c:
720 * xgselect.c:
721 * nsterm.m:
722 * nsselect.m:
723 * nsimage.m:
724 * nsfont.m:
725 * nsfns.m:
726 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
727 other files do.
728
75934b1d
DN
729 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
730
9f32a766
DN
731 * s/sol2-6.h: Remove obsolete comments.
732
c55d2abf
DN
733 Remove unnecessary alloca.h includes.
734 * keymap.c: Do not include alloca.h, config.h does that.
735 * sysdep.c: Likewise. Do not define fwrite, not used.
736
06ac62b4
SM
7372010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
738
739 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
740 the HAVE_TERMIO where it belongs (bug#6149).
741
1ab8293c
SM
7422010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
743
744 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
745 of bug#6305).
746
6dcfd253
EZ
7472010-05-30 Eli Zaretskii <eliz@gnu.org>
748
749 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
750 state is always cached (bug#6306).
751
6d26bbb2
EZ
7522010-05-29 Eli Zaretskii <eliz@gnu.org>
753
06fa4a23
EZ
754 Fix cursor motion in bidi-reordered continued lines.
755 * xdisp.c (try_cursor_movement): Backup to non-continuation line
756 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
757 over continuation lines in bidi-reordered buffers. Return
758 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
759 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
760
f5783df3
MA
7612010-05-28 Michael Albinus <michael.albinus@gmx.de>
762
763 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
764
7d56b2dd
KH
7652010-05-28 Kenichi Handa <handa@m17n.org>
766
767 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
768 Don't sheck SPEC if it is nil.
769 (font_list_entities): Call font_delete_unmatched if
b925d231 770 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 771
e58d4ff7
GM
7722010-05-28 Glenn Morris <rgm@gnu.org>
773
774 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
775
f1a5d776
CY
7762010-05-27 Chong Yidong <cyd@stupidchicken.com>
777
778 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
779 whether to trash.
780 (internal_delete_file, Frename_file): Callers changed.
781 (delete_by_moving_to_trash): Doc fix.
782 (Fdelete_directory_internal): Don't move to trash.
783
784 * callproc.c (delete_temp_file):
785 * buffer.c (Fkill_buffer): Callers changed.
786
787 * lisp.h: Update prototype.
788
f44a59e6
CY
7892010-05-27 Chong Yidong <cyd@stupidchicken.com>
790
791 * xdisp.c (redisplay_window): After redisplay, check if point is
792 still valid before setting it (Bug#6177).
793
81ac4f35
GM
7942010-05-27 Glenn Morris <rgm@gnu.org>
795
796 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
797 Convert comments to Makefile format.
798
799 * Makefile.in (bootstrap-clean): No more Makefile.c.
800
ccd89fb3
GM
8012010-05-26 Glenn Morris <rgm@gnu.org>
802
90278cb6
GM
803 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
804 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
805
ccd89fb3
GM
806 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
807 Remove.
808 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
809
b7050583
KH
8102010-05-26 Kenichi Handa <handa@m17n.org>
811
812 * composite.c (composition_compute_stop_pos): Fix condition for
813 backward scanning.
814
e5458003
GM
8152010-05-25 Glenn Morris <rgm@gnu.org>
816
c345fe90
GM
817 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
818 Move before TEMACS_LDFLAGS.
819 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
820 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
821
2e0689ab
GM
822 * Makefile.in (NOT_C_CODE): No longer define.
823 (config.h): No longer include.
824
8009a5e8
GM
825 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
826 variables it may reference.
827
e5458003
GM
828 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
829 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
830
10f72a37
KH
8312010-05-25 Kenichi Handa <handa@m17n.org>
832
833 * dispextern.h (struct composition_it): New members rule_idx and
834 charpos.
835
836 * xdisp.c (set_iterator_to_next): While scanning backward, assume
837 that the character positions of IT point the last character of the
838 current grapheme cluster.
839 (next_element_from_composition): Don't change character positions
840 of IT.
841 (append_composite_glyph): Set glyph->charpos to
842 it->cmp_it.charpos.
843
844 * composite.c (autocmp_chars): Change the first argument to RULE,
845 and try composition with RULE only.
846 (composition_compute_stop_pos): Record the index number of the
847 composition rule in CMP_IT->rule_idx.
848 (composition_reseat_it): Call autocmp_chars repeatedly until the
849 correct rule of the composition is found.
850 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
851 is at the last character of the current grapheme cluster when
852 CMP_IT->reversed_p is nonzero.
853
171eda53 8542010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 855
171eda53
SM
856 * editfns.c (Fbyte_to_string): New function.
857
66a9f7f4
SM
8582010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
859
860 * process.c (Fmake_network_process): Set :host to nil if it's not used.
861 Suggested by Masatake YAMATO <yamato@redhat.com>.
862
d8c315d1
EZ
8632010-05-23 Eli Zaretskii <eliz@gnu.org>
864
171eda53 865 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 866
f5b416d2 8672010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
868
869 * s/netbsd.h: If terminfo is found, use it in preference to
870 termcap. (Bug#6190) [Backport from trunk]
871
0416466c
EZ
8722010-05-19 Eli Zaretskii <eliz@gnu.org>
873
11117830 874 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
875
876 * dispextern.h (struct glyph_row): New members minpos and maxpos.
877 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
878 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
879 and maxpos members instead of start.pos and end.pos, respectively.
880
881 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
882 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
883 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
884 (try_window_reusing_current_matrix, try_window_id):
885 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
886 (init_from_display_pos, init_iterator): Use EMACS_INT for
887 character and byte positions.
66a9f7f4 888 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
889 arguments for minimum and maximum buffer positions seen by
890 display_line for this row. Don't use iterator to find the
891 position following the maximum one; instead, increment the
11117830
EZ
892 position found by display_line directly. Fix logic; eol_pos
893 should be tested before the rest. Handle the case of characters
894 delivered from display vector (bug#6036). Fix tests related to
895 it->method. Handle the truncated_on_right_p rows.
896 (RECORD_MAX_MIN_POS): New macro.
897 (display_line): Use it to record the minimum and maximum buffer
898 positions for glyphs in the row being assembled. Record the
899 position of the newline that terminates the line. If word wrap is
900 in effect, restore minimum and maximum positions seen up to the
901 wrap point, when iterator returns to it.
902 (try_window_reusing_current_matrix): Give up if in bidi-reordered
903 row and cursor not already at point. Restore original pre-bidi
904 code for unidirectional buffers.
d36fe237
EZ
905
906 * dispnew.c (increment_row_positions, check_matrix_invariants):
907 Increment and check row->start.pos and row->end.pos, in addition
908 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
909
11117830
EZ
910 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
911 Display truncated_on_left_p and truncated_on_right_p flags.
912 Formatting fixes.
913 (pmtxrows): Display the ordinal number of each row. Don't display
914 rows beyond the last one.
915
916 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
917 it is not copied by bidi_copy_it.
918
6e83d800
EZ
9192010-05-22 Eli Zaretskii <eliz@gnu.org>
920
921 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
922 (Bug#6237)
923
110683ad
CY
9242010-05-22 Chong Yidong <cyd@stupidchicken.com>
925
926 * image.c (Fimage_flush): Rename from image-refresh.
927
98fe5161
CY
9282010-05-21 Chong Yidong <cyd@stupidchicken.com>
929
930 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
931 just one window.
932
933 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
934 (clear_image_cache): If the number of cached images is unusually
935 large, decrease the cache eviction delay (Bug#6230).
936
e8752c66
GM
9372010-05-21 Glenn Morris <rgm@gnu.org>
938
66dbf213
GM
939 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
940 Move these rules to ns.mk.
941 * ns.mk: New file.
942
04384b2d
GM
943 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
944
e8752c66
GM
945 * Makefile.in (CANNOT_DUMP): New, set by configure.
946 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
947
2e2bbddb
JL
9482010-05-20 Juri Linkov <juri@jurta.org>
949
950 * fileio.c (Fdelete_file): Change interative spec to use
951 `read-file-name' like in `find-file-read-args' where the default
952 value is `default-directory' instead of `buffer-file-name'.
953 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
954
31c4aaf6
KR
9552010-05-20 Kevin Ryde <user42@zip.com.au>
956
957 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
958 (Voverriding_terminal_local_map, Vsystem_key_alist)
959 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
960
9d5cf9b6
GM
9612010-05-20 Glenn Morris <rgm@gnu.org>
962
963 * Makefile.in (DEPDIR): New constant.
964 (DEPFLAGS): Set with configure, not cpp.
965 (MKDEPDIR): New, set by configure.
966 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
967 (clean): Use $DEPDIR.
968 (deps_frag): Include from configure.
969 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
970 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
971
ead6f8f5
EZ
972 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
973 reallocation of the cache. (Bug#6210)
974
7f34aec3
GM
9752010-05-19 Glenn Morris <rgm@gnu.org>
976
d494e8f2
GM
977 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
978
c1d0dcfd
GM
979 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
980 (GNULIB_VAR): Remove.
981 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
982
983 * m/ibms390x.h (LINKER):
984 * m/macppc.h (LINKER) [GNU_LINUX]:
985 * s/aix4-2.h (ORDINARY_LINK):
986 * s/cygwin.h (LINKER):
987 * s/darwin.h (ORDINARY_LINK):
988 * s/gnu.h (ORDINARY_LINK):
989 * s/netbsd.h (LINKER):
990 * s/usg5-4.h (ORDINARY_LINK):
991 Move to configure.
992
7f34aec3
GM
993 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
994
754790b6
CY
9952010-05-18 Chong Yidong <cyd@stupidchicken.com>
996
997 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
998 prevent stack overflow if number of arguments is too large
999 (Bug#6214).
1000
161e44d1
JB
10012010-05-18 Juanma Barranquero <lekktu@gmail.com>
1002
1003 * charset.c (load_charset_map_from_file): Don't call close after fclose.
1004
be4ff9da
GM
10052010-05-18 Glenn Morris <rgm@gnu.org>
1006
9539dc5d
GM
1007 * s/gnu-linux.h: Combine two conditionals.
1008
1009 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
1010 $(POST_ALLOC_OBJ).
1011
40dc6bf4
GM
1012 * Makefile.in (RALLOC_OBJ): New, set by configure.
1013 (rallocobj): Replace with the previous variable.
1014 (otherobj): Use $RALLOC_OBJ.
1015
1016 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
1017 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
1018
be4ff9da
GM
1019 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
1020 (gmallocobj, vmlimitobj): Replace with previous two variables.
1021 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
1022
16455a85
GM
10232010-05-17 Glenn Morris <rgm@gnu.org>
1024
1025 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
1026 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
1027
5fdb7468
GM
10282010-05-16 Glenn Morris <rgm@gnu.org>
1029
7ca1f3f9
GM
1030 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
1031
7541dad5
GM
1032 * Makefile.in (clean): Get rid of HAVE_NS conditional.
1033
da53fab9
GM
1034 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
1035 trailing "/".
1036
b02a6645
GM
1037 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
1038 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
1039
8877ca0f
GM
1040 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
1041 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
1042 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
1043 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
1044 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
1045
5fdb7468
GM
1046 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
1047 Remove ${STARTFLAGS}, nothing ever sets it.
1048
95adb4b1
DN
10492010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
1050
1051 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
1052
676b6304
GM
10532010-05-16 Glenn Morris <rgm@gnu.org>
1054
9beab9ce
GM
1055 * Makefile.in (LIBX_BASE): Always define.
1056
8a95f0e7
GM
1057 * Makefile.in (LIBX_OTHER): Move out of cpp section.
1058
676b6304
GM
1059 * Makefile.in (LIBXT): Always define.
1060
6e546d18
GM
10612010-05-15 Glenn Morris <rgm@gnu.org>
1062
4235ca47 1063 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 1064
6e546d18
GM
1065 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
1066 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
1067
8c5ff6dd
KR
10682010-05-15 Ken Raeburn <raeburn@raeburn.org>
1069
560bb7ae 1070 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
1071 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
1072
8b4eb796
KR
1073 * emacs.c (main): Initialize initial-environment and
1074 process-environment before generating from env, not after.
1075
8c5ff6dd
KR
1076 Handle --version reasonably in CANNOT_DUMP configuration.
1077 * emacs.c (emacs_version, emacs_copyright): New string variables.
1078 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
1079 (syms_of_emacs): Defvar them, and initialize them from the C
1080 string variables.
1081 (main): If initialization hasn't been done, print initial version
1082 info from the C strings, instead of starting an interactive session.
1083
dbd3f723
EZ
10842010-05-15 Eli Zaretskii <eliz@gnu.org>
1085
d20e1419
EZ
1086 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
1087 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
1088 (bidi_paragraph_init): Remove redundant assertion that we are at
1089 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
1090
1091 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
1092 (syms_of_xdisp): Defsubr it.
1093
d36fe237
EZ
1094 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
1095
dbd3f723
EZ
1096 * Makefile.in: Fix MSDOS-related comments.
1097
02be533b
GM
10982010-05-15 Glenn Morris <rgm@gnu.org>
1099
1a82cca9
GM
1100 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
1101 (really-lwlib, really-oldXMenu): Always define.
1102 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
1103
3df7b338
GM
1104 * Makefile.in: Simplify cpp conditional.
1105
2b5f541b
GM
1106 * Makefile.in (${ns_appdir}): Simplify using umask.
1107
02be533b
GM
1108 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
1109
4e2db1fe
SM
11102010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1111
1112 * eval.c (specbind): Remove left-over duplicate test.
1113 Disallow let-binding frame-local vars. Add comment.
1114
4b292a22
EZ
11152010-05-14 Eli Zaretskii <eliz@gnu.org>
1116
2fe72643 1117 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1118 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1119 (bidi_init_it): Call it.
1120 (bidi_cache_iterator_state): Enlarge the cache if needed.
1121
4e2db1fe 1122 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1123 bidi_get_next_char_visually. All callers changed.
1124
82ebc97b
KH
11252010-05-14 Kenichi Handa <handa@m17n.org>
1126
1127 * dispextern.h (struct composition_it): New member reversed_p.
1128
1129 * composite.c (composition_compute_stop_pos): Search backward if
1130 ENDPOS < CHARPOS.
1131 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1132 Set CMP_IT->reversed_p.
b4b6e17e 1133 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1134
4e2db1fe
SM
1135 * xdisp.c (set_iterator_to_next):
1136 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1137 scanning backward. Call composition_compute_stop_pos if scan
1138 direction is changed.
1139 (next_element_from_buffer): Call composition_compute_stop_pos with
1140 negative ENDPOS if we are scanning backward.
1141 (next_element_from_composition): Pay attention to
1142 IT->cmp_it.reversed_p.
1143
0e5d7800
KH
11442010-05-14 Kenichi Handa <handa@m17n.org>
1145
560bb7ae 1146 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1147
cb027b32
GM
11482010-05-14 Glenn Morris <rgm@gnu.org>
1149
177b0288
GM
1150 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1151
fbc00890
GM
1152 * Makefile.in (mktime, X11, register): Move undefs to configure.
1153
f14d1dfd
GM
1154 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1155 (MSDOS_X_OBJ): New variable.
1156 (MSDOS_SUPPORT_REAL): New constant.
1157 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1158 (obj): Use MSDOS_X_OBJ.
1159 (lisp): Use MSDOS_SUPPORT as a variable.
1160
11842bd8
GM
1161 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1162 (GPM_MOUSE_SUPPORT): Now it's a constant.
1163 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1164 not cpp.
1165
489d31a4 1166 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1167 (ns_appresdir): Remove, unused.
e20f1f07 1168
489d31a4
GM
1169 * Makefile.in (SHELL): Move outside cpp section.
1170
cb027b32
GM
1171 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1172
5a903aa9
GM
11732010-05-13 Glenn Morris <rgm@gnu.org>
1174
3369c79f
GM
1175 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1176 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1177
d5e982a6
GM
1178 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1179 HAVE_WINDOW_SYSTEM must be too.
1180
6192e163
GM
1181 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1182 (lisp): Remove WINNT_SUPPORT.
1183
472c5d6b
GM
1184 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1185 Let configure set these variables (to empty) in this case as well.
1186
0116466b
GM
1187 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1188 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1189
5a903aa9
GM
1190 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1191 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1192 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1193 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1194 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1195 the values output by configure.
5a903aa9
GM
1196 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1197
1a0d7c06
GM
11982010-05-12 Glenn Morris <rgm@gnu.org>
1199
b5457f14
GM
1200 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1201 (LINKER_WAS_SPECIFIED): Remove.
1202
1a0d7c06
GM
1203 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1204 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1205 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1206 * s/cygwin.h (LIB_GCC):
1207 * s/freebsd.h (LIB_GCC):
1208 * s/gnu-linux.h (LIB_GCC):
1209 * s/msdos.h (LIB_GCC):
1210 * s/netbsd.h (LIB_GCC):
1211 Move to configure.
1212
3ffd4615 12132010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1214
1215 * ftfont.c: Fix incorrect parentheses of #if condition for
1216 definining M17N_FLT_USE_NEW_FEATURE.
1217
acddf8ae
GM
12182010-05-11 Glenn Morris <rgm@gnu.org>
1219
1220 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1221 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1222
ae5e04fa
EZ
12232010-05-10 Eli Zaretskii <eliz@gnu.org>
1224
1225 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1226 unibyte buffers. See
1227 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1228
7490175b
GM
12292010-05-10 Glenn Morris <rgm@gnu.org>
1230
97efb629
GM
1231 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1232 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1233 (LIBES): Use LIBS_SYSTEM as a variable.
1234 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1235 * s/aix4-2.h (LIBS_SYSTEM):
1236 * s/freebsd.h (LIBS_SYSTEM):
1237 * s/hpux10-20.h (LIBS_SYSTEM):
1238 * s/sol2-6.h (LIBS_SYSTEM):
1239 * s/unixware.h (LIBS_SYSTEM):
1240 Move to configure.
1241
7490175b
GM
1242 * s/aix4-2.h (MAIL_USE_LOCKF):
1243 * s/bsd-common.h (MAIL_USE_FLOCK):
1244 * s/darwin.h (MAIL_USE_FLOCK):
1245 * s/gnu-linux.h (MAIL_USE_FLOCK):
1246 * s/irix6-5.h (MAIL_USE_FLOCK):
1247 * s/template.h (MAIL_USE_FLOCK):
1248 Move to configure.
1249
0235128c 12502010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1251
1252 * Version 23.2 released.
1253
0235128c 12542010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1255
1256 * composite.c (autocmp_chars): Save point as marker before calling
1257 auto-composition-function (Bug#5984).
1258
1259 * lisp.h (restore_point_unwind): Add prototype.
1260
1261 * fileio.c (restore_point_unwind): Remove static attribute.
1262
0235128c 12632010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1264
1265 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1266 new feature of libotf and m17n-flt.
0235128c
SM
1267 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1268 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1269 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1270 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1271 that OUT is NULL. Use OTF_drive_gsub_with_log and
1272 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1273 OTF_drive_gpos.
1274 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1275 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1276 Setup mflt_enable_new_feature and mflt_try_otf.
1277
4721152c
J
12782010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1279
1280 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1281
1282 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1283 box and toolbar (Bug #6139).
1284 (xg_create_tool_bar): Remove comment (Bug #6139).
1285 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1286 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1287
ee0a16cf
JB
12882010-05-08 Juanma Barranquero <lekktu@gmail.com>
1289
1290 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1291 Update dependencies.
1292
96d79611
EZ
12932010-05-08 Eli Zaretskii <eliz@gnu.org>
1294
1295 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1296 R2L lines.
1297
40c17879
GM
12982010-05-08 Glenn Morris <rgm@gnu.org>
1299
7b42b29f
GM
1300 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1301
40c17879
GM
1302 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1303 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1304 (termcapobj): Replace with TERMCAP_OBJ.
1305 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1306 (LIBES): Use LIBS_TERMCAP as a variable.
1307
1308 * s/freebsd.h (osreldate.h): No longer include, since this file
1309 does not use __FreeBSD_version any more.
1310
1311 * s/aix4-2.h (TERMINFO):
1312 * s/cygwin.h (TERMINFO):
1313 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1314 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1315 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1316 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1317 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1318 * s/irix6-5.h (TERMINFO):
1319 * s/netbsd.h (LIBS_TERMCAP):
1320 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1321 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1322 * s/usg5-4.h (TERMINFO):
1323 Move to configure.
1324
94b612ad
SM
13252010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1326
1327 * eval.c (unbind_to): Don't unbind a local binding into the global
1328 binding when the local binding disappeared. Inversely, don't unbind
1329 a global binding into a newly created local binding.
1330 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1331 can specify the frame to use, when applicable. Adjust callers.
1332
15e12598 13332010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1334 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1335
1336 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1337
f724825e
EZ
13382010-05-07 Eli Zaretskii <eliz@gnu.org>
1339
5cba3209
EZ
1340 * w32fns.c: Include w32.h.
1341 (Fw32_shell_execute): Decode the error message before passing it
1342 to `error'. (Bug#6126)
1343
d16bdfc3
EZ
1344 * msdos.c (dos_set_window_size):
1345 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1346 instead of `XSYMBOL (foo)->value'.
1347
59d93e87
EZ
13482010-05-07 Eli Zaretskii <eliz@gnu.org>
1349
9fdec8bc
EZ
1350 Fix the MS-DOS build, broken by autoconfiscation.
1351
1352 * Makefile.in: Don't use Make-style comments past the "start of
1353 cpp stuff" line.
1354 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1355
1356 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1357 edited directly by msdos/sed1v2.inp).
f724825e 1358
2f86b22b
GM
13592010-05-07 Glenn Morris <rgm@gnu.org>
1360
1361 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1362 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1363 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1364 move out of cpp section.
1365 * s/freebsd.h (LD_SWITCH_SYSTEM):
1366 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1367 * s/netbsd.h (LD_SWITCH_SYSTEM):
1368 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1369
49ebbd65
DN
13702010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1371
1372 Define LIB_STANDARD and START_FILES using autoconf.
1373 * s/usg5-4.h (LIB_STANDARD):
1374 * s/netbsd.h (START_FILES):
1375 * s/irix6-5.h (LIB_STANDARD):
1376 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1377 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1378 * s/freebsd.h (START_FILES):
1379 * s/darwin.h (START_FILES):
1380 * s/cygwin.h (START_FILES):
1381 * s/aix4-2.h (LIB_STANDARD):
1382 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1383 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1384 autoconf, not cpp.
1385
d43c06d6
DN
13862010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1387
28823648
DN
1388 Remove NEED_BSDTTY and NEED_UNISTD_H.
1389 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1390 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1391 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1392 <sys/ptyio.h> and <unistd.h>.
1393
aca00430
DN
1394 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1395
d43c06d6
DN
1396 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1397 * s/gnu.h (START_FILES): Remove empty definition.
1398
3e56b11d
JD
13992010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1400
1401 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1402
e3cf0cde
GM
14032010-05-06 Glenn Morris <rgm@gnu.org>
1404
1405 * Makefile.in (CPP, LN_S): Remove unused variables.
1406
774b9a60
SM
14072010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1408
1409 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1410
4ab92842
LM
14112010-05-05 Lawrence Mitchell <wence@gmx.li>
1412
1413 * m/sparc.h: Fix typo in earlier change.
1414
178f2507
SM
14152010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1416
1417 Misc tweaks.
1418 * eval.c (Fdefvaralias): Remove unintended nested if.
1419 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1420
80f00217 14212010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1422
1423 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1424
ef03a4e6
DN
14252010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1426
58eb6cf0
DN
1427 Remove BSD_PGRPS.
1428 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1429 * s/gnu-linux.h (BSD_PGRPS): Remove.
1430 * term.c (dissociate_if_controlling_tty):
1431 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1432 (init_sys_modes, reset_sys_modes):
1433 * emacs.c (main):
1434 * callproc.c (Fcall_process, child_setup): Remove code depending
1435 on BSD_PGRPS.
1436
ef03a4e6
DN
1437 Remove POSIX_SIGNALS.
1438 * s/usg5-4.h (POSIX_SIGNALS):
1439 * s/netbsd.h (POSIX_SIGNALS):
1440 * s/msdos.h (POSIX_SIGNALS):
1441 * s/ms-w32.h (POSIX_SIGNALS):
1442 * s/hpux11.h (POSIX_SIGNALS):
1443 * s/gnu.h (POSIX_SIGNALS):
1444 * s/gnu-linux.h (POSIX_SIGNALS):
1445 * s/freebsd.h (POSIX_SIGNALS):
1446 * s/darwin.h (POSIX_SIGNALS):
1447 * s/cygwin.h (POSIX_SIGNALS):
1448 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1449 * s/unixware.h:
1450 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1451 * process.c (create_process):
1452 * syssignal.h:
1453 * sysdep.c (wait_for_termination, init_signals):
1454 * process.c (create_process):
1455 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1456 remove all code that assumes the contrary.
1457
49628785
GM
14582010-05-04 Glenn Morris <rgm@gnu.org>
1459
27a2cdfc
GM
1460 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1461 variable.
1462 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1463 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1464 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1465 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1466 LD_SWITCH_SYSTEM_tmp.
1467 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1468 New variables, set by configure.
1469
eb21eab5
GM
1470 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1471 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1472 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1473 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1474 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1475
49628785
GM
1476 * s/aix4-2.h (C_SWITCH_SYSTEM):
1477 * m/alpha.h (C_SWITCH_MACHINE):
1478 Move to configure.in.
1479 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1480 New variables, set by configure.
1481 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1482 $c_switch_machine and $c_switch_system.
1483
7dff330b
DN
14842010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1485
1486 * s/hpux10-20.h (LIB_STANDARD): New definition.
1487 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1488 on it, not used anymore.
1489
53967e09
CY
14902010-05-03 Chong Yidong <cyd@stupidchicken.com>
1491
1492 * eval.c (internal_condition_case_n): Rename from
1493 internal_condition_case_2.
1494 (internal_condition_case_2): New function.
1495
1496 * xdisp.c (safe_call): Use internal_condition_case_n.
1497
1498 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1499 (internal_delete_file, Frename_file): Callers changed.
1500
1501 * buffer.c (Fkill_buffer):
1502 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1503
1504 * lisp.h: Update prototypes.
1505
3dee6fdb
GM
15062010-05-03 Glenn Morris <rgm@gnu.org>
1507
1508 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1509 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1510 (LIBXT): Set with configure, not cpp.
1511 (LIBX): Remove.
1512 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1513
a101e0fb
DN
15142010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1515
1516 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1517 The FreeBSD is not needed, the default works, Solaris version is
1518 not needed, and the remaining case is not supported by configure.
1519
f63d0028
JD
15202010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1521
1522 * xsmfns.c (CHDIR_OPT): New define.
1523 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1524 restarting emacs.
1525
1526 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1527 shut_down_emacs.
1528
1529 * emacs.c (USAGE1): Mention --chdir.
1530 (main): Handle --chdir.
1531 (standard_args): Add --chdir.
1532 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1533 #5552).
1534
e4814a9f
DN
15352010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1536
cd03c74a
DN
1537 Remove LD_SWITCH_MACHINE.
1538 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1539 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1540
c3a398a1
DN
1541 Clean up IRIX code.
1542 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1543 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1544
87e7285c
DN
1545 Clean up AIX code.
1546 * m/ibmrs6000.inp: Remove file, unused.
1547 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1548 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1549 definition ...
1550 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1551
80f00217
JB
1552 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1553 unused.
e4814a9f 1554
59ca28de
EZ
15552010-05-01 Eli Zaretskii <eliz@gnu.org>
1556
197daef4
EZ
1557 Emulate POSIX_SIGNALS on MS-Windows.
1558
1559 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1560 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1561
1562 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1563 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1564 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1565
80f00217
JB
1566 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1567 New stubs.
197daef4 1568
af7c7572
EZ
1569 Miscellaneous fixes of bidi display.
1570
59ca28de
EZ
1571 * xdisp.c (find_row_end): New function, refactored from display_line.
1572 (display_line): Use it.
017ea819
EZ
1573 (extend_face_to_end_of_line): In almost-filled rows, extend only
1574 if the row is R2L and not continued.
166e930d 1575 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1576 Preserve overlay and string info in row->end.
166e930d
EZ
1577 (insert_left_trunc_glyphs): Support addition of left truncation
1578 glyphs to R2L rows.
b47e0dcf 1579 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1580 glyph between adjacent windows. Fix a crash when a display string
1581 is continued to the next line. Don't return zero if cursor was
1582 found by `cursor' property of a display string.
b47e0dcf
EZ
1583 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1584 test for that explicitly.
59ca28de 1585
7acac9f4
GM
15862010-05-01 Glenn Morris <rgm@gnu.org>
1587
1588 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1589 for clarity.
1590 (OTHER_OBJ): Remove.
1591 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1592 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1593
45841e65
KK
15942010-05-01 Karel Klíč <kklic@redhat.com>
1595
1596 * fileio.c (Ffile_selinux_context): Context functions may return null.
1597
afc61943
DN
15982010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1599
80f00217 1600 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1601
5a1bb006
GM
16022010-04-30 Glenn Morris <rgm@gnu.org>
1603
1604 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1605 (OTHER_OBJ): Define as a separate variable, for clarity.
1606
210af043
J
16072010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1608
1609 * xsettings.c: include limits.h and update file comment.
1610
0a7df391
GM
16112010-04-30 Glenn Morris <rgm@gnu.org>
1612
d5096f16
GM
1613 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1614 Set with configure, not cpp.
1615 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1616
7eb1ac33
GM
1617 * Makefile.in (mallocobj): Remove.
1618 (otherobj): Simplify using @OTHER_OBJ@.
1619
517d086b
GM
1620 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1621 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1622 Don't bother making nsgui.h dependency platform-specific.
1623
0a7df391
GM
1624 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1625
d6d23852
SM
16262010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1627
d2630aef
SM
1628 * process.c (read_process_output, exec_sentinel): Don't burp if the
1629 sentinel/filter kills the current buffer (bug#6060).
1630
f9dddf52 1631 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1632 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1633 Remove unused var `args'.
1634 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1635 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1636 * doc.c (store_function_docstring): Use XSETCAR.
1637
f1e3642a
GM
16382010-04-28 Glenn Morris <rgm@gnu.org>
1639
faf535f8
GM
1640 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1641 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1642
c40f9449
GM
1643 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1644
658f86ca
GM
1645 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1646 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1647
bc0b5f61
GM
1648 * Makefile.in (FONT_OBJ): New, set by configure.
1649 (FONT_DRIVERS): Use $FONT_OBJ.
1650
294c50a0
GM
1651 * Makefile.in (LIBXMU): Set with configure, not cpp.
1652 * s/aix4-2.h (LIBXMU):
1653 * s/hpux10-20.h (LIBXMU):
1654 Remove definition, now set in configure.
1655
e6ec4e99
GM
1656 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1657
f1e3642a
GM
1658 * m/amdx86-64.h [i386]: Move this test to configure.in.
1659
c6ea2936
GM
16602010-04-27 Glenn Morris <rgm@gnu.org>
1661
8fdac2c3
GM
1662 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1663 * s/unixware.h (NEED_LIBW): Remove definition.
1664
986fb647
GM
1665 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1666 (TOOLKIT_LIBW): New, set by configure.
1667 (@X_TOOLKIT_TYPE@): No longer define it.
1668
c6ea2936
GM
1669 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1670 (MOTIF_LIBW): Set with configure, not cpp.
1671 * s/aix4-2.h (LIB_MOTIF):
1672 * s/gnu-linux.h (LIB_MOTIF):
1673 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1674
aaa36002
DN
16752010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1676
1677 Reduce CPP usage.
1678 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1679 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1680 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1681 definitions and undefs. Inline definitions in the only user.
1682 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1683
b678dd8b
GM
16842010-04-27 Glenn Morris <rgm@gnu.org>
1685
76cda504
GM
1686 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1687 since the defaults (set by the system file) are fine in most cases.
1688 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1689 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1690 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1691 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1692 Remove definitions, since they are set correctly in s/gnu-linux.h.
1693 * s/freebsd.h (START_FILES, LIB_STANDARD):
1694 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1695 * s/hpux10-20.h (START_FILES):
1696 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1697 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1698
b678dd8b
GM
1699 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1700 (MOTIF_LIBW): Use $LIBXP.
1701 (otherobj): Use $WIDGET_OBJ.
1702
9452ded1
DN
17032010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1704
7e10844c
DN
1705 * Makefile.in (LIBS_MACHINE): Remove, unused.
1706
9452ded1
DN
1707 Use autoconf instead of cpp for LIB_MATH.
1708 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1709 * s/cygwin.h (LIB_MATH): Likewise.
1710 * Makefile.in (LIB_MATH): Do not define with cpp.
1711 (LIBES): Use autoconf for LIB_MATH.
1712
fcebfc6a
KH
17132010-04-26 Kenichi Handa <handa@m17n.org>
1714
1715 * composite.c (Ffind_composition_internal): Fix the return value
1716 for an automatic composition.
1717
39e2ad1b
DN
17182010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1719
1720 Remove all NO_ARG_ARRAY uses.
1721 * fns.c (concat2, concat3, nconc2):
1722 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1723 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1724 * m/xtensa.h (NO_ARG_ARRAY):
1725 * m/template.h (NO_ARG_ARRAY):
1726 * m/sparc.h (NO_ARG_ARRAY):
1727 * m/sh3.h (NO_ARG_ARRAY):
1728 * m/mips.h (NO_ARG_ARRAY):
1729 * m/macppc.h (NO_ARG_ARRAY):
1730 * m/iris4d.h (NO_ARG_ARRAY):
1731 * m/intel386.h (NO_ARG_ARRAY):
1732 * m/ibms390x.h (NO_ARG_ARRAY):
1733 * m/ibms390.h (NO_ARG_ARRAY):
1734 * m/ibmrs6000.h (NO_ARG_ARRAY):
1735 * m/ia64.h (NO_ARG_ARRAY):
1736 * m/hp800.h (NO_ARG_ARRAY):
1737 * m/arm.h (NO_ARG_ARRAY):
1738 * m/amdx86-64.h (NO_ARG_ARRAY):
1739 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1740
adf4f59c
EZ
17412010-04-25 Eli Zaretskii <eliz@gnu.org>
1742
6bdf5d65
EZ
1743 * xdisp.c (display_line): Don't assume 2nd call to
1744 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1745 (iterate_out_of_display_property): New function, body from pop_it.
1746 (pop_it): Use it.
adf4f59c 1747
dfbbda83
GM
17482010-04-24 Glenn Morris <rgm@gnu.org>
1749
1750 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1751 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1752 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1753 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1754
2d4018aa
EZ
17552010-04-24 Eli Zaretskii <eliz@gnu.org>
1756
a49884a6
EZ
1757 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1758 use `get_next_display_element' and `set_iterator_to_next' to
1759 advance to the next character, when looking for the character that
1760 begins the next row.
1761
76db6fcc 1762 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1763 definition of "struct Lisp_Symbol".
1764
70eab5c1
GM
17652010-04-24 Glenn Morris <rgm@gnu.org>
1766
1767 * Makefile.in (CRT_DIR): New variable, set by configure.
1768 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1769 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1770
1ad4cc3d
DN
17712010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1772
e769f484
DN
1773 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1774
4196ff33
DN
1775 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1776
879b0ee4
DN
1777 Remove redundant flags.
1778 * s/freebsd.h (C_SWITCH_SYSTEM):
1779 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1780 * s/netbsd.h (C_SWITCH_SYSTEM):
1781 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1782 of these.
1783
03cbbcb8
DN
1784 Simplify m/intel386.h.
1785 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1786 user: ecrt0.c.
1787 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1788 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1789 the only user: s/unixware.h.
1790 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1791 from m/intel386.h.
1792 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1793 moved here from m/intel386.h.
1794
1ad4cc3d
DN
1795 * m/mips.h: Remove #if 0 code.
1796
8785b888
EZ
17972010-04-23 Eli Zaretskii <eliz@gnu.org>
1798
728588cc
EZ
1799 Fix display of composed characters from L2R scripts in bidi buffers.
1800 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1801 After advancing IT past the composition, resync the bidi iterator
1802 with IT's position. (Bug#5977)
1803
a63f80b4
DN
18042010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1805
1806 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1807 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1808
ff5dec5c
SM
18092010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1810
1811 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1812
8785b888
EZ
18132010-04-23 Eli Zaretskii <eliz@gnu.org>
1814
58ccf243 1815 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1816 * xdisp.c (pop_it): When the stack is popped after displaying
1817 from a string, bidi-iterate to exit from the text portion covered
1818 by the `display' property or overlay. (Bug#5988, bug#5920)
1819
feeb1604
DN
18202010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1821
8e324eb6
DN
1822 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1823 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1824
809fcaba
DN
1825 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1826 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1827
ed710380
DN
1828 Simplify STARTFILES definition.
1829 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1830 relying on Makefile.in to define it.
1831 * s/cygwin.h (START_FILES): Likewise.
1832 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1833
feeb1604
DN
1834 Clean up Solaris code.
1835 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1836 (LIB_MOTIF): Remove, configure takes care of this.
1837 (NOT_USING_MOTIF): Remove, unused.
1838 * xrdb.c: Remove #if 0-ed #include.
1839 (SYSV): Remove conditional for old SysV.
1840 * sysdep.c (closedir): Remove conditional code for Solaris,
1841 Solaris has closedir.
1842
a0d0b563
JD
18432010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1844
1845 * xsettings.c (read_and_apply_settings): Check if current_font is
1846 NULL before strcmp (Bug#6001).
1847
56bae7c7
DN
18482010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1849
1850 Clean up HP-UX files.
1851 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1852 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1853 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1854 * s/hpux10-20.h: ... to the only user, here.
1855
372b7a95
EZ
18562010-04-21 Eli Zaretskii <eliz@gnu.org>
1857
1858 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1859 use buffer-local values of paragraph-start and paragraph-separate.
1860 <paragraph_start_re, paragraph_separate_re>: Rename from
1861 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1862 (Bug#5992)
1863
f904c0f9
JD
18642010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1865
1866 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1867 current_tool_bar_style are new.
1868 (store_config_changed_event): Rename from store_font_changed_event.
1869 (XSETTINGS_TOOL_BAR_STYLE): New define.
1870 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1871 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1872 HAVE_XFT.
1873 (something_changedCB): store_font_changed_event is now
1874 store_config_changed_event
1875 (parse_settings): Rename from parse_xft_settings. Read
1876 non-xft xsettings outside #ifdef HAVE_XFT.
1877 (read_settings): Renamed from read_xft_settings.
1878 (apply_xft_settings): Take current settings as parameter. Do not
1879 call read_(xft)_settings.
1880 (read_and_apply_settings): New function.
1881 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1882 read_and_apply_settings if there are settings to be read.
1883 (init_xsettings): Renamed from init_xfd_settings.
1884 Call read_and_apply_settings unconditionally.
1885 (xsettings_initialize): Call init_xsettings.
1886 (Ftool_bar_get_system_style): New function.
1887 (syms_of_xsettings): Define Qmonospace_font_name and
1888 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1889 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1890 dynamic-setting.
31a01b90 1891 Move misplaced HAVE_GCONF
f904c0f9
JD
1892
1893 * xsettings.h (Ftool_bar_get_system_style): Declare.
1894
1895 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1896 Qtext, Qboth, Qboth_horiz are new.
1897 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1898 Vtool_bar_style, tool_bar_max_label_size.
1899
1900 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1901
1902 * keyboard.c: QClabel is new.
1903 (parse_tool_bar_item): Take out QClabel from tool bar items.
1904 Try to construct a label if ther is no QClabel.
1905 (syms_of_keyboard): Intern :label as QClabel.
1906
1907 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1908 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1909 New.
1910
1911 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1912 dynamic-setting.el.
1913
1914 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1915 (xg_make_tool_item, xg_show_toolbar_item): New function.
1916 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1917 Call xg_make_tool_item to make a tool bar item.
1918 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1919
1920 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1921 into account for toolbars.
1922
c632dfda
JD
19232010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1924
1925 * data.c (make_blv): Declarations before code (Bug#5993).
1926
10efe302
GM
19272010-04-21 Glenn Morris <rgm@gnu.org>
1928
1929 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1930 Define using autoconf, not cpp.
1931 (LIBXSM): New variable, set by autoconf.
1932 (LIBXT): Use $LIBXSM.
1933
4285ac5a
DN
19342010-04-21 Dan Nicolaescu <local_user@dannlt>
1935
3ec759e7
DN
1936 Remove NOMULTIPLEJOBS, unused.
1937 * s/template.h (NOMULTIPLEJOBS):
1938 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1939
4285ac5a
DN
1940 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1941 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1942 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1943 detects -znocombreloc and passes it to the linker
1944 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1945
2807228d
GM
19462010-04-21 Glenn Morris <rgm@gnu.org>
1947
1948 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1949
574c05e2
KK
19502010-04-21 Karel Klíč <kklic@redhat.com>
1951
1952 * Makefile.in (LIBSELINUX_LIBS): New.
1953 (LIBES): Add $LIBSELINUX_LIBS.
1954 * eval.c, lisp.h (call7): New function.
1955 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1956 (Ffile_selinux_context, Fset_file_selinux_context):
1957 New functions.
1958 (Fcopy_file): New parameter preserve-selinux-context.
1959 (Frename_file): Preserve selinux context when renaming by copy-file.
1960
91eac4bb 19612010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 1962 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1963
50426a04
JB
1964 Don't depend on cm.c or termcap.c on Windows, use stubs.
1965 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1966 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1967 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1968 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1969 (sys_tputs, sys_tgetstr): New stubs.
1970 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1971 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1972
938efb77
JB
19732010-04-20 Juanma Barranquero <lekktu@gmail.com>
1974
1975 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1976
b4bf28b7
SM
19772010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1978
8b1e1112
SM
1979 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1980 Just signal a warning rather than an error when inside a let.
1981 (Fmake_variable_frame_local): Add the same test.
1982
933ac235
SM
1983 * font.c (syms_of_font): Make the style table vars read-only.
1984
b4bf28b7
SM
1985 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1986 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1987
1988 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1989
93d68d0c
EZ
19902010-04-20 Eli Zaretskii <eliz@gnu.org>
1991
1992 Fix R2L paragraph display on TTY.
1993
1994 * xdisp.c (unproduce_glyphs): New function.
1995 (display_line): Use it when produced glyphs are discarded from R2L
1996 glyph rows.
1997 (append_composite_glyph): In R2L rows, prepend the glyph rather
1998 than appending it.
1999
2000 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
2001 rather than append it. Set up the resolved_level and bidi_type
2002 attributes of the appended glyph.
283ccc18
EZ
2003 (produce_special_glyphs): Mirror the backslash continuation
2004 character in R2L lines.
93d68d0c 2005
283ccc18 2006 Implement display of R2L paragraphs in GUI sessions.
26cdf528 2007
283ccc18
EZ
2008 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
2009 append_stretch_glyph.
2010 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
2011 off-by-one error in computing x at end of text in the row.
2012 (append_stretch_glyph): In reversed row, prepend the glyph rather
2013 than append it. Set resolved_level and bidi_type of the glyph.
2014 (extend_face_to_end_of_line): If the row is reversed, prepend a
2015 stretch glyph whose width is such that the rightmost glyph will be
2016 drawn at the right margin of the window. Fix off-by-one error on
2017 TTY frames in testing whether a line needs face extension. Fix
2018 face extension at ZV. If this is the last glyph row, use
2019 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
2020 region face.
2021 (set_cursor_from_row, display_line): Use
26cdf528
EZ
2022 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
2023 row->continuation_lines_width.
283ccc18
EZ
2024 (next_element_from_buffer): Don't call bidi_paragraph_init if we
2025 are at ZV. Fixes a crash when reseated to ZV by
2026 try_window_reusing_current_matrix.
45903529
EZ
2027 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
2028 which happens with R2L glyph rows. Fixes a crash when inserting a
2029 character at end of an R2L line.
283ccc18
EZ
2030 (set_cursor_from_row): Don't be fooled by truncated rows: don't
2031 treat them as having zero-width characters. Improve comments.
2032 Don't reverse pos_before and pos_after for reversed glyph rows.
2033 Set cursor.x to negative value when the cursor might be on the
2034 left fringe.
2035 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
2036 left fringe, not the right one.
f951a506
EZ
2037 (notice_overwritten_cursor, draw_phys_cursor_glyph)
2038 (erase_phys_cursor): For reversed cursor_row, support cursor on
2039 the left fringe.
2040
283ccc18
EZ
2041 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
2042 of continuation indicators on the fringes.
2043 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
2044 left fringe.
2045
f951a506
EZ
2046 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
2047 draw cursor on the left fringe.
2048
2049 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
2050 cursor on the left fringe.
2051
f951a506
EZ
2052 * dispnew.c (update_text_area): Handle reversed desired rows when
2053 the cursor is on the left fringe.
2054 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
2055 below, not by 0, for when the cursor is on the left fringe.
2056
3bb49aaf
JD
20572010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2058
2059 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
2060 widget is a scrollbar.
2061
c0be27fd
KH
20622010-04-20 Kenichi Handa <handa@m17n.org>
2063
2064 * charset.c (char_charset): Consider Vcharset_non_preferred_head
2065 only when the arg CHARSET_LIST is nil.
2066
ce5b453a
SM
20672010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2068
2069 Make variable forwarding explicit rather the using special values.
2070 Basically, this makes the structure of buffer-local values and object
2071 forwarding explicit in the type of Lisp_Symbols rather than use
2072 special Lisp_Objects for that. This tends to lead to slightly more
2073 verbose code, but is more C-like, simpler, and makes it easier to make
2074 sure we handled all cases, among other things by letting the compiler
2075 help us check it.
2076 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
2077 Removing forwarding objects.
2078 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
2079 (struct Lisp_Symbol): Make the various forms of variable-forwarding
2080 explicit rather than hiding them inside Lisp_Object "values".
2081 (XFWDTYPE): New macro.
2082 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
2083 (XBUFFER_LOCAL_VALUE): Remove.
2084 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
2085 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
2086 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
2087 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
2088 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
2089 Remove the Lisp_Misc_* header.
2090 (struct Lisp_Buffer_Local_Value): Redefine.
2091 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
2092 (struct Lisp_Misc_Any): Add filler to get the right size.
2093 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
2094 Lisp_Intfwd.
2095 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
2096 (DEFVAR_KBOARD): Allocate a forwarding object.
2097 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
2098 (let_shadows_global_binding_p): New function.
2099 (union Lisp_Val_Fwd): New type.
2100 (make_blv): New function.
2101 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
2102 (store_symval_forwarding, swap_in_global_binding, Fboundp)
2103 (swap_in_symval_forwarding, find_symbol_value, Fset)
2104 (let_shadows_buffer_binding_p, set_internal, default_value)
2105 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
2106 (Fkill_local_variable, Fmake_variable_frame_local)
2107 (Flocal_variable_p, Flocal_variable_if_set_p)
2108 (Fvariable_binding_locus):
2109 * xdisp.c (select_frame_for_redisplay):
2110 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
2111 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2112 * frame.c (store_frame_param):
2113 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2114 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2115 value structure.
2116 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2117 (clone_per_buffer_values): Only adjust markers into the current buffer.
2118 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2119 (Fbuffer_local_value, set_buffer_internal_1)
2120 (swap_out_buffer_local_variables):
2121 Adapt to the new symbol value structure.
2122 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2123 (defvar_per_buffer): Take a new arg for the fwd object.
2124 (buffer_lisp_local_variables): Return a proper alist (different fix
2125 for bug#4138).
2126 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2127 (Fgarbage_collect): Don't handle buffer_defaults specially.
2128 (mark_object): Handle new symbol value structure rather than the old
2129 special Lisp_Misc_* objects.
2130 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2131 * term.c (set_tty_color_mode):
2132 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2133 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2134 a buffer_local_flags.
2135 * print.c (print_object): Get rid of impossible forwarding objects.
2136
fd3998ff
EZ
21372010-04-19 Eli Zaretskii <eliz@gnu.org>
2138
2139 * bidi.c (bidi_get_type, bidi_get_category)
2140 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2141 (bidi_type_of_next_char, bidi_level_of_next_char):
2142 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2143
e42cd1a7
JB
21442010-04-19 Juanma Barranquero <lekktu@gmail.com>
2145
2146 * dired.c (Ffile_attributes): Fix typo in docstring.
2147
6e104790 21482010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2149
2150 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2151 NSInteger (Bug#5811).
2152
6e104790 21532010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2154
2155 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2156 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2157
6e104790 21582010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2159
2160 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2161
6e104790
SM
21622010-04-19 Chong Yidong <cyd@stupidchicken.com>
2163
2164 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2165 terminal frames (Bug#5837).
2166
37dcfea0
EZ
21672010-04-19 Eli Zaretskii <eliz@gnu.org>
2168
d1da276f
EZ
2169 * .gdbinit (xsubchartable): New command.
2170
37dcfea0
EZ
21712010-04-19 Eli Zaretskii <eliz@gnu.org>
2172
2173 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2174 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2175 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2176 and
2177 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2178
e9515805
SM
21792010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2180
2181 * alloc.c (Fpurecopy): Hash-cons if requested.
2182 (syms_of_alloc): Update purify-flag docstring.
2183
22aa44a8
JD
21842010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2185
2186 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2187 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2188
ebb5722e
EZ
21892010-04-17 Eli Zaretskii <eliz@gnu.org>
2190
2191 Fix a crash when an NSM character is inserted at BEGV.
2192
2193 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2194 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2195 NEUTRAL_B or UNKNOWN_BT.
2196
0f4442ef
EZ
21972010-04-16 Eli Zaretskii <eliz@gnu.org>
2198
2199 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2200 other rows with cursor unless they are different from this row and
2201 this row is part of a continued line. (Bug#5943)
2202
7d4e45f8
DN
22032010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2204
2205 * s/freebsd.h: Restore osreldate.h include.
2206 Suggested by Naohiro Aota.
2207
5ba5ec85
J
22082010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2209
2210 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2211
20af301d
CY
22122010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2213
2214 * s/cygwin.h: Avoid linking against static libgcc.
2215
a4b000fb
JL
22162010-04-15 Juri Linkov <juri@jurta.org>
2217
2218 * window.c: Add Qscroll_command.
2219 Remove Vscroll_preserve_screen_position_commands.
2220 (window_scroll_pixel_based, window_scroll_line_based): Check the
2221 `scroll-command' property on the last command instead of searching
2222 the last command in Vscroll_preserve_screen_position_commands.
2223 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2224 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2225 (scroll-preserve-screen-position): Doc fix.
2226 (Vscroll_preserve_screen_position_commands): Remove variable.
2227
bc319ba4
DN
22282010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2229
6bb24457
DN
2230 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2231
19d4c244
DN
22322010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2233
2234 Reduce cpp use in Makefile.in.
2235 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2236 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2237 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2238 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2239 (CRT0_COMPILE): Remove, inline it in the only user.
2240
32129746
JL
22412010-04-14 Juri Linkov <juri@jurta.org>
2242
2243 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2244 `scroll-up-command' and `M-v' from `scroll-down' to
2245 `scroll-down-command'.
2246
9013a7f8
JL
22472010-04-14 Juri Linkov <juri@jurta.org>
2248
2249 * window.c (Vscroll_preserve_screen_position_commands): New variable
2250 with the default value as the list of Qscroll_down and Qscroll_up.
2251 (window_scroll_pixel_based, window_scroll_line_based): Search the
2252 last command in the list Vscroll_preserve_screen_position_commands
2253 instead of comparing with Qscroll_up and Qscroll_down.
2254
4bef8d26
JD
22552010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2256
92848133
JD
2257 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2258 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2259 does that.
2260
4bef8d26
JD
2261 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2262 to zero.
2263
58b963f7
SM
22642010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2265
84164a0d
SM
2266 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2267
2b0a91e7
SM
2268 Try to solve the problem of spurious EOF chars in long lines of text
2269 sent to interactive subprocesses.
2270 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2271 (system_process_attributes): Remove unused var `ttotal'.
2272 * process.c (send_process): Don't bother breaking long line with EOF
2273 chars when talking to ttys any more.
2274 (wait_reading_process_output): Output a warning when called in such
2275 a way that it could block without being interruptible.
2276
58b963f7
SM
2277 Try to detect file modification within the same second.
2278 * buffer.h (struct buffer): New field modtime_size.
2279 * buffer.c (reset_buffer): Initialize it.
2280 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2281 (Fverify_visited_file_modtime): Check it.
2282 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2283 (Fset_visited_file_modtime): Set (or clear) it.
2284
01f5787b
SM
22852010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2286
2287 * process.c (status_notify): Remove unused var `ro'.
2288
83725342
JD
22892010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2290
2291 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2292 more than one visual (Bug#5938).
2293
b9465836
DN
22942010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2295
50426a04
JB
2296 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2297 Undefine.
b9465836 2298
8d9c8ece
DN
22992010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2300
b1f52161
DN
2301 Remove C_SWITCH_SYSTEM_TEMACS.
2302 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2303 (malloc, realloc, free): Use emacs, not temacs for conditional
2304 definition.
2305
2306 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2307 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2308
8d9c8ece
DN
2309 Use autoconf, not cpp for some variables.
2310 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2311 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2312 (ALL_CFLAGS): Use them as make variables.
2313 (really-lwlib, really-oldXMenu): Do not pass them.
2314
1ecb2d3f
JD
23152010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2316
2317 * xmenu.c (apply_systemfont_to_dialog): New.
2318 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2319
3a4fa2f2
SM
23202010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2321
97e53006
SM
2322 * process.c (exec_sentinel): Preserve current-buffer.
2323
3a4fa2f2
SM
2324 * process.c (read_process_output): Move the save-current-buffer to
2325 apply to both the filter and the non-filter branches.
2326
88df7221
DN
23272010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2328
2329 * s/msdos.h (UNEXEC): New definition.
2330
5634ff85
YM
23312010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2332
6eff5c3d
YM
2333 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2334 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2335
2336 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2337 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2338 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2339 TRY_WINDOW_CHECK_MARGINS.
2340
2341 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2342 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2343 width only when it is for padding.
5634ff85 2344
b13aef54
J
23452010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2346
2347 * xfns.c (Fx_show_tip): Call try_window in a loop until
2348 fonts_changed_p is zero (Bug#2423).
2349
21d28484
EZ
23502010-04-08 Eli Zaretskii <eliz@gnu.org>
2351
2352 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2353 the end of TEXT_AREA. (Bug#5856)
2354
0269ef77
JD
23552010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2356
2357 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2358 HAVE_GCONF.
2359
5930fe97
EZ
23602010-04-08 Eli Zaretskii <eliz@gnu.org>
2361
2362 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2363 prev.orig_type, for resolving type of NSM. (Bug#5858)
2364
99852628
JD
23652010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2366
2367 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2368 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2369 in current_font.
2370 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2371 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2372 New functions.
2373 (syms_of_xsettings): Initialize current_font.
2374 defsubr Sfont_get_system_normal_font.
99852628
JD
2375
2376 * xsettings.h (Ffont_get_system_normal_font,
2377 xsettings_get_system_normal_font): Declare.
2378
2379 * xfns.c (extern xlwmenu_default_font): Remove.
2380 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2381 to xlwmenu.c.
2382
2383 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2384 menu items in UTF-8.
2385
2386 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2387 (apply_systemfont_to_menu): New function.
2388 (set_frame_menubar, create_and_show_popup_menu): Call
2389 apply_systemfont_to_menu.
2390
7fc874c4
J
23912010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2392
2393 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2394 FRAME_LINE_TO_PIXEL_Y.
2395
2396 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2397 pixelwidth/height.
2398
863bf481
DN
23992010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2400
5e5a3b92
DN
2401 Simplify code for HP machines.
2402 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2403 for GNU_LINUX, not needed.
2404 (UNEXEC, NEED_BSDTTY): Move definitions...
2405 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2406
863bf481
DN
2407 * m/iris4d.h (UNEXEC): Move definition ...
2408 * s/irix6-5.h (UNEXEC): ... here.
2409
3e6bec3b
JD
24102010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2411
2412 * xfns.c (set_machine_and_pid_properties): New function.
2413 (Fx_create_frame): Call set_machine_and_pid_properties.
2414
2912322b
SM
24152010-04-03 Eli Zaretskii <eliz@gnu.org>
2416
1502b819
EZ
2417 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2418 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2419 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2420
2912322b
SM
2421 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2422 in this function. (Bug#5703)
2423
24242010-04-03 Chong Yidong <cyd@stupidchicken.com>
2425
2426 * nsterm.h: Fix last change.
2427
c435b432
DN
24282010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2429
a568f507
DN
2430 * m/intel386.h (NO_REMAP): Move definition ...
2431 * s/msdos.h (NO_REMAP): ... here.
2432
4cd9f6c2
DN
2433 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2434
c435b432
DN
2435 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2436 used on those platforms.
2437
42a2c622
DN
24382010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2439
2440 Remove extern errno declarations.
2441 * xterm.c:
2442 * xrdb.c:
2443 * w32term.c:
2444 * unexec.c:
2445 * unexaix.c:
2446 * sysdep.c:
2447 * process.c:
2448 * lread.c:
2449 * keyboard.c:
2450 * floatfns.c:
2451 * filelock.c:
2452 * fileio.c:
2453 * emacs.c (main):
2454 * ecrt0.c:
2455 * dispnew.c:
2456 * callproc.c:
2457 * buffer.c: Remove errno extern declarations.
2458 * s/netbsd.h (NEED_ERRNO): Remove.
2459
8224f93d
DN
24602010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2461
2462 Remove all uses of LIBX11_SYSTEM.
2463 * Makefile.in (LIBX11_SYSTEM): Remove.
2464 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2465 instead.
2466
814062c7
EZ
24672010-04-01 Eli Zaretskii <eliz@gnu.org>
2468
ed68db4d
EZ
2469 Remove support for DJGPP v1.x (bug#5813).
2470
2471 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2472 * s/msdos.h:
2473 * unexec.c (make_hdr, copy_text_and_data):
2474 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2475 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2476 (IT_set_terminal_modes, __write, _rename, gethostname)
2477 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2478 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2479 the value of __DJGPP__.
ed68db4d
EZ
2480 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2481 compatibility code.
8224f93d
DN
2482 * lread.c:
2483 * gmalloc.c (memalign):
2484 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2485 * emacs.c (main):
2486 * dosfns.c (init_dosfns):
ed68db4d
EZ
2487 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2488
52f4d8d5
EZ
24892010-04-01 Eli Zaretskii <eliz@gnu.org>
2490
814062c7
EZ
2491 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2492 string with `cursor' property comes from an `after-string'
2493 overlay. (Bug#5816)
2494
0dc2e11d
GM
24952010-04-01 Glenn Morris <rgm@gnu.org>
2496
2497 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2498 Define as Makefile variables.
2499 (LIBX): Use above variables rather than directly using autoconf.
2500
1d29df59
DN
25012010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2502
2503 Clean up BSD_SYSTEM use.
2504 * xterm.c:
2505 * process.c:
2506 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2507 for including <sys/ioctl.h>.
2508 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2509 code is only used for MSDOS.
2510
1546c559
JL
25112010-03-31 Juri Linkov <juri@jurta.org>
2512
2513 * image.c: Add `Qextension_data'.
2514 (syms_of_image): Initialize and staticpro `Qextension_data'.
2515 (Fimage_metadata): Rename from `Fimage_extension_data'.
2516 (gif_load): Put GIF extension data to the property
2517 `Qextension_data'.
2518
6521c534
CY
25192010-03-31 Chong Yidong <cyd@stupidchicken.com>
2520
2521 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2522 * nsterm.h: Fix prototype.
2523
52c30783
EZ
25242010-03-31 Eli Zaretskii <eliz@gnu.org>
2525
2526 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2527 trailing whitespace in right-to-left rows.
2528
855a0da7
SM
25292010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2530
2531 Get rid of the direct_output optimizations.
2532 * keyboard.c (nonundocount): Remove extern declaration.
2533 (command_loop_1): Remove brittle optimisation for cheap and
2534 common operations.
2535 * xdisp.c (redisplay_internal): Don't bother checking
2536 redisplay_performed_directly_p any more.
2537 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2538 any more.
2539 * dispnew.c (redisplay_performed_directly_p)
2540 (direct_output_for_insert, direct_output_forward_char):
2541 * dispextern.h (redisplay_performed_directly_p)
2542 (direct_output_for_insert, direct_output_forward_char): Remove.
2543 * cmds.c (nonundocount): Make it static.
2544
85738751 25452010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2546
2547 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2548
85738751 25492010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2550
2551 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2552 invisible (Bug#5766).
2553
85738751 25542010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2555
855a0da7
SM
2556 * xdisp.c (x_consider_frame_title, update_window_cursor):
2557 Remove HAVE_NS conditionals.
194d44e7 2558 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2559
2560 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2561 filename for the title.
2562 (ns_set_doc_edited): Do nothing if the selected window is a
2563 minibuffer window.
2564
2565 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2566 ns_set_doc_edited.
2567
2568 * nsterm.m: Remove unneeded prototype.
2569
85738751 25702010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2571
2572 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2573 in the DOC file. (Bug#5336)
2574
85738751 25752010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2576
2577 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2578
75d1428c
SM
25792010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2580
2581 * window.c (keys_of_window): Remove redundant/overridden bindings.
2582
82043cfb
EZ
25832010-03-30 Eli Zaretskii <eliz@gnu.org>
2584
2585 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2586 Restore original behavior when the iterator is not bidi_p.
2587
b5dd0ae7
DN
25882010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2589
2590 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2591
bd924a5d
EZ
25922010-03-30 Eli Zaretskii <eliz@gnu.org>
2593
2594 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2595 are outside the range of cached character positions.
2596
3580374b
JB
25972010-03-30 Juanma Barranquero <lekktu@gmail.com>
2598
2599 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2600
a7b02820
EZ
26012010-03-30 Eli Zaretskii <eliz@gnu.org>
2602
2603 Initial support for bidirectional editing.
2604
2605 * Makefile.in (obj): Include bidi.o.
2606 (bidi.o): New target.
2607
2608 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2609 ($(BLD)/bidi.$(O)): New target.
2610
2611 * bidi.c: New file.
2612
2613 * buffer.h (struct buffer): New members bidi_display_reordering
2614 and bidi_paragraph_direction.
2615
2616 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2617 and bidi_paragraph_direction.
2618 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2619 and bidi-paragraph-direction.
2620 (Fbuffer_swap_text): Swap the values of
2621 bidi_display_reordering and bidi_paragraph_direction.
2622
2623 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2624 (bidi_type_t, bidi_dir_t): New types.
2625 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2626 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2627 prev_stop, base_level_stop, and eol_pos.
2628 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2629 (IT_STACK_SIZE): Enlarge to 5.
2630 (struct glyph_row): New member reversed_p.
2631 <string_buffer_position>: Update prototype.
2632 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2633 glyph_row if bidi_it.paragraph_dir == R2L.
2634 (struct glyph): New members resolved_level and bidi_type.
2635
2636 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2637 processing or buffer's direction is right-to-left.
2638 (prepare_desired_row): Preserve the reversed_p flag.
2639 (row_equal_p): Compare the reversed_p attributes as well.
2640
2641 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2642 bidi_init_it and set it->paragraph_embedding from the current
2643 buffer's value of bidi_paragraph_direction.
2644 (reseat_1): Initialize bidi_it.first_elt.
2645 (set_iterator_to_next, next_element_from_buffer): Use the value of
2646 paragraph_embedding to determine the paragraph direction.
2647 (set_iterator_to_next): Under bidi reordering, call
2648 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2649 new_paragraph flag is set in the bidi iterator.
2650 (next_element_from_buffer): If bidi_it.first_elt is set,
2651 initialize paragraph direction and find the first character to
2652 display in the visual order. If reseated to a middle of a line,
2653 prime the bidi iterator starting at the line's beginning. Handle
2654 the situation where we overstepped stop_charpos due to
2655 non-linearity of the bidi iteration. Likewise for when we back up
2656 beyond the previous stop_charpos. When moving across stop_charpos,
2657 record it in prev_stop.
2658 (display_line): Set row->end and it->start for the next row to the
2659 next character in logical order. Always extend reversed_p rows to
2660 the end of line, even if they end at ZV. Copy the reversed_p flag
2661 to the next glyph row. Keep calling set_cursor_from_row for
2662 bidi-reordered rows even if we already have a possible candidate
2663 for cursor position. Set row_end after all the row's glyphs have
2664 been produced, by looping over the glyphs. Record the position
2665 after EOL in it->eol_pos, and use it to set end_pos of the last
2666 row produced for a continued line.
2667 <Qright_to_left, Qleft_to_right>: New variables.
2668 (syms_of_xdisp): Initialize and staticpro them.
2669 (string_buffer_position_lim): New function.
2670 (string_buffer_position): Most of code moved to
2671 string_buffer_position_lim. Last argument and return value are
2672 now EMACS_INT; all callers changed.
2673 (set_cursor_from_row): Rewritten to support bidirectional text and
2674 reversed glyph rows.
2675 (text_outside_line_unchanged_p, try_window_id): Disable
2676 optimizations if we are reordering bidirectional text and the
2677 paragraph direction can be affected by the change.
2678 (append_glyph, append_composite_glyph)
2679 (produce_image_glyph, append_stretch_glyph): Set the
2680 resolved_level and bidi_type members of each glyph.
2681 (append_glyph): If the glyph row is reversed, prepend the glyph
2682 rather than appending it.
2683 (handle_stop_backwards): New function.
2684 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2685 (reseat): call handle_stop_backwards to recompute prev_stop and
2686 base_level_stop for the new position.
2687 (handle_invisible_prop): Under bidi iteration, skip invisible text
2688 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2689 paragraph direction. Update IT->prev_stop after skipping
2690 invisible text.
2691 (move_it_in_display_line_to): New variables prev_method
2692 and prev_pos. Compare for strict equality in
2693 BUFFER_POS_REACHED_P.
2694 (try_cursor_movement): Examine all the candidate rows that occlude
2695 point, to return the best match. If rows are bidi-reordered
2696 and point moved backwards, back up to the row that is not a
2697 continuation line, and start looking for a suitable row from
2698 there.
2699
2700 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2701 rather than appending, if the glyph_row's reversed_p flag is set.
2702 Set the resolved_level and bidi_type members of each glyph.
2703
2704 * .gdbinit (pbiditype): New command.
2705 (pgx): Use it to display bidi level and type of the glyph.
2706 (pitx): Display some bidi information about the iterator.
2707 (prowlims, pmtxrows): New commands.
2708
32a8894e
DN
27092010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2710
2711 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2712 * s/usg5-4.h (LIBS_DEBUG):
2713 * s/irix6-5.h (C_DEBUG_SWITCH):
2714 * s/gnu-linux.h (LIBS_DEBUG):
2715 * s/darwin.h (LIBS_DEBUG):
2716 * s/bsd-common.h (LIBS_DEBUG):
2717 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2718 * m/iris4d.h (LIBS_DEBUG):
2719 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2720
2721 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2722 (LIBS_DEBUG): Remove definition.
2723
649dbf36
CY
27242010-03-27 Chong Yidong <cyd@stupidchicken.com>
2725
2726 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2727 Windows.
2728
cad4261f
YM
27292010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2730
2731 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2732 `connect' (Bug#5723).
2733
cd591dbc
HE
27342010-03-25 Helmut Eller <eller.helmut@gmail.com>
2735
2736 * process.c (Fmake_network_process): Call `select' for interrupted
2737 `connect' rather than creating new socket (Bug#5173).
2738
e867cb5d 27392010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2740
2741 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2742
2743 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2744
2745 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2746
e867cb5d 27472010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2748
2749 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2750 XLoadQueryFont.
2751
e867cb5d 27522010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2753
2754 * coding.c (decode_coding_ccl): Fix previous change for the
2755 multibyte case.
fb608df3
KH
2756 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2757 case that the output buffer is fullfilled.
2758 (encode_coding): Setup ccl program here.
fbdc1721 2759
5845f0ed
DN
27602010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2761
814fb708
DN
2762 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2763
5845f0ed
DN
2764 Simplify LIBS_MACHINE definitions.
2765 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2766 * m/iris4d.h (LIBS_MACHINE): Likewise.
2767 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2768 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2769 * s/netbsd.h: Remove commented out code.
5845f0ed 2770
b7064064
DN
27712010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2772
df7734b2
DN
2773 Remove dead code dealing with POSIX_SIGNALS.
2774 * atimer.c (set_alarm): Remove dead code, all USG systems define
2775 POSIX_SIGNALS.
2776 * data.c (arith_error): Likewise.
2777 * keyboard.c (input_available_signal, handle_user_signal)
2778 (interrupt_signal): Likewise.
2779 * process.c (sigchld_handler): Likewise.
2780 (create_process): Remove if 0 code. Remove HPUX conditional when
2781 !defined (POSIX_SIGNALS), it cannot be true.
2782 * syssignal.h: Remove USG5_4 and USG conditionals when
2783 !POSIX_SIGNALS, they cannot be true.
2784
b7064064
DN
2785 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2786 NO_SOCK_SIGIO, not used anymore.
2787
55da5ee3
DN
27882010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2789
0be96e3a
DN
2790 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2791 support vax on BSDs.
2792
55da5ee3
DN
2793 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2794 * s/aix4-2.h (ORDINARY_LINK): ... here.
2795
c0282183
AS
27962010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2797
82c3d67a
AS
2798 * Makefile.in (abs_builddir): Define.
2799 (bootstrap_exe): Use it.
2800 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2801
3613edce
SM
28022010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2803
2804 * Makefile.in (bootstrap_exe): Use an absolute name.
2805
7f110ddc
DN
28062010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2807
22e87574
DN
2808 Remove support for old GNU/Linux using libc version 5.
2809 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2810 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2811
05a670e6
DN
2812 Consolidate redundant definitions in s/bsd-common.h.
2813 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2814 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2815 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2816 doing it in all files that include this one.
2817 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2818 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2819 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2820 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2821 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2822 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2823 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2824 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2825 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2826
2968f561
DN
2827 Consolidate redundant definitions.
2828 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2829 it's undefined in all files that include this one.
2830 (POSIX_SIGNALS): Define here instead of doing it in all files that
2831 include this one.
2832 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2833 (POSIX_SIGNALS): Do not define.
2834 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2835 (POSIX_SIGNALS): Do not define.
2836 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2837 (POSIX_SIGNALS): Do not define.
2838
15d25dc0
DN
2839 Remove support for old UNIX System V systems.
2840 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2841 * s/usg-5-4-2.h: Remove.
2842
07e339e4
DN
2843 Remove support for Solaris on PPC and for old versions.
2844 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2845 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2846 that cancel each other.
2847 * s/sol2-3.h:
2848 * s/sol2-4.h:
2849 * s/sol2-5.h: Remove.
2850 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2851 (NO_REMAP): Remove, unused.
2852 (UNEXEC): Move definition ...
2853 * s/aix4-2.h (UNEXEC): ... here.
2854
7f110ddc
DN
2855 * s/openbsd.h: Remove support for non-ELF and for systems that do
2856 not support shared libraries.
2857 * s/netbsd.h:
2858 * s/freebsd.h: Likewise.
2859
605f35cd
DN
28602010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2861
2862 Remove non-working support for lynxos 3.0.
2863 * s/lynxos.h: Remove file.
2864
2865 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2866 COFF_BSD_SYMBOLS, nothing defines it anymore.
2867
aed71cf4
DN
28682010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2869
2870 Remove obsolete uses of HAVE_SHM.
2871 * emacs.c (standard_args):
2872 (Fdump_emacs):
2873 (syms_of_emacs): Remove code depending on HAVE_SHM.
2874
2875 * alloc.c: Remove HAVE_SHM dependent definition.
2876
2877 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2878
aded53ff
GM
28792010-03-18 Glenn Morris <rgm@gnu.org>
2880
17284745
GM
2881 * emacs.c (USAGE4): Hard-code bug address.
2882 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2883 (bug_reporting_address): Remove.
2884 (main): Don't call bug_reporting_address.
2885
aded53ff
GM
2886 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2887 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2888
303500aa
CY
28892010-03-15 Chong Yidong <cyd@stupidchicken.com>
2890
2891 * xfns.c (Fx_create_frame):
2892 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2893 on left.
2894
cef3058f
CY
28952010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2896
2897 * editfns.c (Fformat): Account for string precision when computing
2898 field width (Bug#5710).
2899
a647d59d
CY
29002010-03-12 Chong Yidong <cyd@stupidchicken.com>
2901
4fa42018
CY
2902 * xfns.c (Fx_create_frame): Set default to Qright.
2903
a647d59d
CY
2904 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2905 all window systems.
2906
6da23aaa
EZ
29072010-03-12 Eli Zaretskii <eliz@gnu.org>
2908
a96f6398 2909 These changes remove termcap.c from the build on Posix platforms.
83d02def 2910 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2911 (MSDOS_OBJ): ...to here.
2912 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2913 now identical to when LIBS_TERMCAP is defined.
2914
2915 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2916
2917 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2918
a96f6398 2919 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2920
288f9fc0
CY
29212010-03-10 Chong Yidong <cyd@stupidchicken.com>
2922
2923 * Branch for 23.2.
2924
d48cd3f4
SM
29252010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2926
2927 Cleanup setup of gl_state in various parts of the code.
2928 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2929 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2930 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2931 (skip_chars):
2932 * regex.c (regex_compile): Use it.
2933 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2934 it's now set in regex_compile when/if we need it.
2935
618db430
SM
29362010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2937
c0335e02
SM
2938 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2939 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2940 (QUIT): Use it to consolidate code and remove redundancy.
2941 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2942
254c06a8
SM
2943 * regex.c (regex_compile): Setup gl_state as well.
2944
618db430
SM
2945 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2946 (in_classes): Use CONSP before XCAR/XCDR.
2947
233f0c9f
CY
29482010-03-03 Chong Yidong <cyd@stupidchicken.com>
2949
2950 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2951 definitions, so that keyboard macros are correctly handled
2952 (Bug#5481).
2953
75f80e63
EZ
29542010-03-02 Eli Zaretskii <eliz@gnu.org>
2955
2956 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2957 text that could be relocated inside the call to emacs_mule_char.
2958 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2959 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2960
dcfb9bc4
KH
29612010-03-02 Kenichi Handa <handa@m17n.org>
2962
fc9a17bc
KH
2963 * character.c (parse_str_as_multibyte): Fix handling of the
2964 multibyte form of raw-bytes.
2965 (str_as_multibyte): Likewise.
2966
dcfb9bc4
KH
2967 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2968 form of raw-bytes.
2969
412c01b6
CY
29702010-02-28 Chong Yidong <cyd@stupidchicken.com>
2971
2972 * charset.c (load_charset_map_from_file)
2973 (load_charset_map_from_vector): Zero out allocated
2974 charset_map_entries before using them.
2975
df7e1ea0
AS
29762010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2977
2978 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2979
fe69a722
CY
29802010-02-27 Chong Yidong <cyd@stupidchicken.com>
2981
4ed28cf4
CY
2982 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2983 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2984
7379cfce
KH
29852010-02-26 Kenichi Handa <handa@m17n.org>
2986
f88cc4d6
KH
2987 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2988
7379cfce
KH
2989 * xdisp.c (reseat_to_string): Fix previous change.
2990
cf2fdcfb
CY
29912010-02-26 David Reitter <david.reitter@gmail.com>
2992
2993 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2994 Lisp_Object (Bug#4736).
2995
cc6c7c75
KH
29962010-02-25 Kenichi Handa <handa@m17n.org>
2997
2998 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2999
32e737d7
JD
30002010-02-24 Jan Djärv <jan.h.d@swipnet.se>
3001
3002 * xterm.c (XTflash): Move declarations before statements.
3003
3004 * gtkutil.c (xg_get_gdk_display): Remove (unused).
3005 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
3006 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
3007 (xg_create_tool_bar): Remove unused variables.
3008 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 3009 (xg_create_frame_widgets): Remove variable grav.
32e737d7 3010
676cae9f
CY
30112010-02-21 Chong Yidong <cyd@stupidchicken.com>
3012
3013 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
3014
886cc2b8
SM
30152010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
3016
3017 * term.c (fatal): Add a final \n if needed (bug#5596).
3018
ddb2d8e2
CY
30192010-02-18 Chong Yidong <cyd@stupidchicken.com>
3020
3021 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
3022
2a4f8d3d
GM
30232010-02-18 Glenn Morris <rgm@gnu.org>
3024
3025 * callint.c (Finteractive): Doc fix.
3026
ebaf11b6
KH
30272010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
3028
886cc2b8
SM
3029 * coding.c (record_conversion_result):
3030 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
3031 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
3032 memory allocation error.
3033
d0396581
KH
30342010-02-17 Kenichi Handa <handa@m17n.org>
3035
886cc2b8
SM
3036 * coding.c (decode_coding_ccl): Don't setup ccl program here.
3037 Fix for the case that the output buffer is fullfilled.
d0396581
KH
3038 (decode_coding): Setup ccl program here. Keep looping when the
3039 decoder stopped because the output buffer is
3040 fullfilled (bug#5534).
3041
3042 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
3043
98599f74
JD
30442010-02-13 Jan Djärv <jan.h.d@swipnet.se>
3045
471e4f04 3046 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 3047 bug #5571.
886cc2b8 3048 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 3049 overdrawn.
98599f74 3050
182659ae
JD
30512010-02-10 Jan Djärv <jan.h.d@swipnet.se>
3052
3053 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
3054 doing_interact here.
3055 (ice_connection_closed): New function.
3056 (x_session_check_input, smc_die_CB, ice_io_error_handler)
3057 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
3058 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
3059 returns I/O error.
3060 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
3061 bug #5512.
3062
9be32c4e 30632010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
3064
3065 * nsfont.m (nsfont_open): The system's value for the font descent
3066 is negative, so round it down to avoid clipping.
3067
a2f3eb19
CY
30682010-02-06 Chong Yidong <cyd@stupidchicken.com>
3069
3070 * charset.c (load_charset_map_from_file)
3071 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 3072 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 3073
3088147c
CY
30742010-02-05 Chong Yidong <cyd@stupidchicken.com>
3075
3076 * charset.c (load_charset_map_from_file): Allocate large
3077 charset_map_entries structure on the heap rather than the stack.
3078 (Bug#5526).
3079
b57d9029
KH
30802010-01-31 Kenichi Handa <handa@m17n.org>
3081
3082 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 3083 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 3084
c67d885b
CY
30852010-01-31 Chong Yidong <cyd@stupidchicken.com>
3086
3087 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
3088 <deactivated@gmail.com> (Bug#3605).
3089
8fab2362
CY
30902010-01-31 David De La Harpe Golden <david@harpegolden.net>
3091
3092 * fileio.c (Frename_file): Correctly rename symlinks to
3093 directories (Bug#5496).
3094
cb2a62f2
CY
30952010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
3096
3097 * nsterm.m (ns_ring_bell): Handle visible bell like X.
3098
944c7a26
AS
30992010-01-30 Andreas Schwab <schwab@linux-m68k.org>
3100
3101 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
3102
c024ac08
CY
31032010-01-29 Chong Yidong <cyd@stupidchicken.com>
3104
3105 * frame.c (DEFAULT_ROWS): Change default to 35.
3106
3107 * xfns.c (x_default_font_parameter): Change default XFT font to
3108 monospace-10 (Bug#3643).
3109
af93af83
EZ
31102010-01-29 Eli Zaretskii <eliz@gnu.org>
3111
3112 * w32inevt.c (key_event): Remove unnecessary comparison of
3113 event->uChar.AsciiChar with 128.
3114
ca0eb708
CY
31152010-01-28 Chong Yidong <cyd@stupidchicken.com>
3116
b242dbfc
CY
3117 * fileio.c (Frename_file): Fix last change (Bug#5487).
3118
ca0eb708
CY
3119 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3120
3121 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3122
45d45af5
JD
31232010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3124
3125 * xfns.c (Fx_create_frame): Remove window size matching code from
3126 2010-01-15.
a73f9c9d 3127 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3128
7e233730
JR
31292010-01-27 Jason Rumney <jasonr@gnu.org>
3130
3131 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3132 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3133
86e893e3
KH
31342010-01-27 Kenichi Handa <handa@m17n.org>
3135
3136 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3137 pattern string (Bug#4209).
86e893e3 3138
8719abec
CY
31392010-01-27 David De La Harpe Golden <david@harpegolden.net>
3140
3141 * fileio.c (Frename_file): Call copy-directory and
3142 delete-directory for directories, in order to handle cross-device
3143 renaming (Bug#3353).
3144
844794c8
JD
31452010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3146
aa3e13b5 3147 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3148 sizes 24 and 10. Bug #3643.
844794c8 3149
bd4b5750
SM
31502010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3151
8dc1adf6 3152 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3153 * keymap.c (shadow_lookup): Add `remap' arg.
3154 (describe_map, describe_vector): Update calls to shadow_lookup.
3155 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3156 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3157 perform remapping during shadow_lookup check of remapped_sequences.
3158
285d07e2
CY
31592010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3160
3161 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3162 png_check_sig, which has been removed in libpng 1.4.
3163
c6d09b8d
CY
31642010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3165
3166 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3167 lacks this header file).
3168
3d782998
YM
31692010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3170
3171 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3172 as in Emacs 22.
3173
2aff7c53
YM
31742010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3175
3176 * lisp.h (make_pure_string): String pointer arg now points to const.
3177
3178 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3179 args now point to const.
3180
74327f7a
EZ
31812010-01-22 Eli Zaretskii <eliz@gnu.org>
3182
3183 * lread.c (Fload): Don't treat files without .elc extension as
3184 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3185 them. (bug#5303)
3186
4d1e6632
KH
31872010-01-20 Kenichi Handa <handa@m17n.org>
3188
3189 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3190 treat the source as actual byte sequence.
3191
1fdede8f
AM
31922010-01-19 Alan Mackenzie <acm@muc.de>
3193
3194 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3195 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3196 `signal_after_change_p' to `coherent_change_p', and make the
3197 invocation of `modify_region' conditional on it.
3198
67477f30
JD
31992010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3200
3201 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3202 for debug purpose.
3203 (syms_of_xsettings): Declare xft-settings.
3204
244b023e
CY
32052010-01-18 Chong Yidong <cyd@stupidchicken.com>
3206
3207 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3208
617364fe
CY
32092010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3210
3211 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3212
4fe22cdf
CY
32132010-01-16 Chong Yidong <cyd@stupidchicken.com>
3214
3215 * emacs.c (standard_args): Adjust arg priorities to reflect how
3216 they are processed in startup.el.
3217
e118d2be
AS
32182010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3219
3220 * Makefile.in (lisp, shortlisp): Update.
3221
523ae620
SM
32222010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3223
3224 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3225 code, link the new kboard into all_kboard before running Lisp code,
3226 and protect the new terminal with GCPRO (Bug#5365).
3227 (x_term_init): Remove unused var `atom'.
3228 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3229
f0d13888
JD
32302010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3231
3232 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3233 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3234 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3235 this. Bug #3643.
f0d13888 3236
cc320f07
KH
32372010-01-15 Kenichi Handa <handa@m17n.org>
3238
3239 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3240
7ffdf101
CY
32412010-01-15 Chong Yidong <cyd@stupidchicken.com>
3242
3243 * nsterm.m (Qnone): Define.
3244
3245 * nsfns.m (Qnone): Move definition to nsterm.m.
3246
d12bd917
KH
32472010-01-14 Kenichi Handa <handa@m17n.org>
3248
3249 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3250 systems.
3251
d9a7c140
KH
32522010-01-14 Kenichi Handa <handa@m17n.org>
3253
3254 Make auto-composition work on all buffers even if they are
3255 fundamental mode.
3256
3257 * composite.c (Vauto_composition_mode): New variable.
3258 (composition_compute_stop_pos): Check Vauto_composition_mode
3259 instead of Vauto_composition_function.
3260 (composition_adjust_point, Ffind_composition_internal): Likewise.
3261 (syms_of_composite): Declare Lisp variable
3262 "auto-composition-mode" here.
3263
63286bb2
CY
32642010-01-13 Chong Yidong <cyd@stupidchicken.com>
3265
3266 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3267 during call to vendor-specific-keysyms (Bug#5365).
3268
c2623ee7
YM
32692010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3270
3271 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3272 Call SIGNAL_THREAD_CHECK (Bug#5333).
3273
3274 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3275 Call SIGNAL_THREAD_CHECK.
3276
0b5397c2
SM
32772010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3278
3279 Try to fix bug#5314. This is probably not the final word, tho.
3280 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3281 recent-auto-save-p as a side-effect.
3282 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3283 * buffer.c (Fkill_buffer, reset_buffer):
3284 * editfns.c (Fsubst_char_in_region):
3285 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3286 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3287
dc954cb2
KH
32882010-01-13 Kenichi Handa <handa@m17n.org>
3289
3290 Display buffer name, etc. in mode line by composing correctly.
3291
3292 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3293 STRING is not nil.
0b5397c2 3294 (display_mode_element): Adjust for the change of
dc954cb2
KH
3295 decode_mode_spec and display_line.
3296 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3297 (display_string): Handle the case that STRING is non-null and
3298 LISP_STRING is not nil.
3299
0b5397c2
SM
3300 * xterm.c (x_draw_composite_glyph_string_foreground):
3301 Pay attention to s->face->overstrike.
dc954cb2
KH
3302
3303 * composite.c (composition_reseat_it): Don't check PT if STRING is
3304 non nil.
3305
4a00eaca
YM
33062010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3307
3308 * keyboard.c (read_char): Don't apply previous change when current
3309 buffer is unchanged by command execution.
3310
60abb287
JD
33112010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3312
3313 * keyboard.c (read_char): Return after executing from special map.
3314
893db5bc
GM
33152010-01-12 Glenn Morris <rgm@gnu.org>
3316
3317 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3318 bug-gnu-emacs rather than emacs-pretest-bug.
3319
4d03ece0
CY
33202010-01-11 Chong Yidong <cyd@stupidchicken.com>
3321
3322 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3323 initializing the Lisp variables that depend on them.
3324
1df47e38
YM
33252010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3326
3327 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3328 Clear areas that will not be updated after change of menu bar lines.
3329 Clear the menu bar window's current matrix when the window gets empty.
3330
2f1c6384
CY
33312010-01-09 Chong Yidong <cyd@stupidchicken.com>
3332
e398c61c
CY
3333 * intervals.h, textprop.c (extend_property_ranges): Return value
3334 and args changed. Discard properties that begin at or after the
3335 new end (Bug#5306).
3336
3337 * editfns.c (Fformat): Caller changed.
3338
e5a29a10
CY
3339 * nsterm.m (ns_set_default_prefs): Delete function.
3340 (syms_of_nsterm): Initialize ns_command_modifier,
3341 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3342 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3343
2f1c6384
CY
3344 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3345 position (Bug#4040).
3346
d427a9fa
EZ
33472010-01-09 Eli Zaretskii <eliz@gnu.org>
3348
3349 * editfns.c (Ffloat_time): Doc fix.
3350
21b9df2f
JD
33512010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3352
3353 * xfns.c (Fx_create_frame): Don't create frame larger than display
3354 by default bug#3643.
3355
4b00d3b1
YM
33562010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3357
3358 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3359 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3360 windows above internal border.
3361
3362 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3363 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3364 windows above internal border.
3365
3366 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3367 tool bar windows specially.
3368
3369 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3370
3371 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3372 specially.
3373 (XTflash): Take account of menu bar height.
3374
3375 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3376 specially.
3377
5075d853
JD
33782010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3379
ac146f82 3380 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3381 also be true before we can return early (bug #5339).
3382
474217c8
CY
33832010-01-06 David Reitter <david.reitter@gmail.com>
3384
3385 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3386 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3387 (Bug#3233).
3388
c0e6d47d
JD
33892010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3390
d0cf45b7
JD
3391 * font.c (font_open_entity): Enable chache and call cached_font_ok
3392 for the driver if defined.
3393 (QCuser_spec): New symbol.
3394 (font_spec_from_name): Save name as user-spec.
3395 (font_load_for_lface): Keep user-spec instead of name.
3396 (font_open_by_name): Save name as user-spec.
3397 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3398 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3399
3400 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3401 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3402 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3403
3404 * font.h (struct font_driver): Add cached_font_ok.
3405
c0e6d47d
JD
3406 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3407
7c583cd8
JD
34082010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3409
3410 * xterm.c (x_new_font): Move code for setting rows/cols before
3411 resizing ...
ac146f82 3412 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3413
3414 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3415 (xg_frame_resized, xg_frame_set_char_size):
3416 Call xg_clear_under_internal_border.
7c583cd8 3417 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3418
03f77f0a
CY
34192010-01-05 Chong Yidong <cyd@stupidchicken.com>
3420
3421 * keyboard.c (read_key_sequence): Catch keyboard switch after
3422 making a new tty frame (Bug#5095).
3423
2a1ef5be
KH
34242010-01-05 Kenichi Handa <handa@m17n.org>
3425
3426 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3427
e3eb1dae
SM
34282010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3429
3430 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3431 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3432 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3433
777013f2
MA
34342010-01-03 Michael Albinus <michael.albinus@gmx.de>
3435
3436 * dbusbind.c (xd_add_watch): Improve debug message.
3437 (xd_remove_watch): Improve debug message. If DATA is the session
3438 bus, unset D-Bus session environment.
3439 (Fdbus_init_bus): Pass the bus as argument to
3440 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3441
8932b1c2
CY
34422010-01-01 Chong Yidong <cyd@stupidchicken.com>
3443
87231e2c
CY
3444 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3445
4801c5fa
CY
3446 * lread.c (syms_of_lread): Make it clearer that these are the
3447 names of loaded files (Bug#5068).
3448
8932b1c2
CY
3449 * eval.c (run_hook_with_args): Handle the case where the global
3450 value has the obsolete single-function form (Bug#5026).
3451
11e3c684
CY
34522009-12-27 Chong Yidong <cyd@stupidchicken.com>
3453
3454 * minibuf.c (Fall_completions): Minor optimization.
3455
5b28ce35
EZ
34562009-12-26 Eli Zaretskii <eliz@gnu.org>
3457
5ce6e4f4
JB
3458 * .gdbinit (pgx): Fix display of composite glyphs.
3459 Display cmp.from and cmp.to as well.
3460 (pitx): Fix last change.
5b28ce35 3461
bcffff46
KH
34622009-12-25 Kenichi Handa <handa@m17n.org>
3463
3464 * composite.h (composition_adjust_point): Update prototype.
3465
3466 * composite.c (composition_reseat_it): Don't make a composition
3467 spanning over point.
3468 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3469 composable characters.
3470 (composition_adjust_point): New arg NEW_PT. Callers changed.
3471
3472 * keyboard.c (command_loop_1): Force redisplay if the last point
3473 was within a composition.
3474 (adjust_point_for_property): Don't adjust point for automatic
3475 composition when called after buffer modification.
3476
3f670e9a
EZ
34772009-12-19 Eli Zaretskii <eliz@gnu.org>
3478
5ce6e4f4
JB
3479 * .gdbinit (pitx): Don't use enum names, use their values.
3480 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3481 (pgx): Don't use enum names, use their values.
3482 (pitmethod): New helper command.
3483 (pitx): Use it to display iteration method.
3484 (pgrowit): New command.
3485
ad903955
EZ
3486 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3487
3f670e9a
EZ
3488 Update dependencies in Makefile.in.
3489
3490 * Makefile.in (alloc.o): Depend on termhooks.h.
3491 (atimer.o): Depend on blockinput.h.
3492 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3493 and frame.h.
3494 (callint.o): Depend on systime.h, coding.h, and composite.h.
3495 (callproc.o): Depend on buffer.h.
3496 (casefiddle.o): Don't depend on charset.h.
3497 (casetab.o): Depend on character.h.
3498 (ccl.o): Depend on composite.h.
3499 (chartab.o): Depend on ccl.h.
3500 (cm.o): Depend on dispextern.h.
3501 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3502 (coding.o): Don't depend on $(INTERVALS_H).
3503 (composite.o): Don't depend on dispextern.h explicitly (it's in
3504 $(INTERVALS_H)). Depend on ccl.h.
3505 (data.o): Depend on systime.h, coding.h, composite.h,
3506 dispextern.h, font.h, and ccl.h.
3507 (dired.o): Depend on composite.h.
3508 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3509 composite.h (it's in $(INTERVALS_H)).
3510 (doc.o): Depend on systime.h, coding.h, and composite.h.
3511 (editfns.o): Don't depend explicitly on dispextern.h.
3512 (emacs.o): Depend on frame.h and coding.h.
3513 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3514 (fileio.o): Depend on frame.h and commands.h. Don't depend
3515 explicitly on dispextern.h.
3516 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3517 composite.h.
3518 (fns.o): Don't depend on termhooks.h.
3519 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3520 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3521 coding.h, $(INTERVALS_H), window.h, xterm.h.
3522 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3523 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3524 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3525 fontset.h, ccl.h, and ftfont.h.
3526 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3527 (gtkutil.o): Depend on dispextern.h and composite.h.
3528 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3529 termhooks.h, and ccl.h.
3530 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3531 (intervals.o): Depend on systime.h and coding.h.
3532 (keyboard.o): Depend on composite.h and coding.h.
3533 (keymap.o): Depend on coding.h and frame.h.
3534 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3535 (macros.o): Depend on systime.h, coding.h, and composite.h.
3536 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3537 and atimer.h.
3538 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3539 dispextern.h explicitly.
0b5397c2
SM
3540 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3541 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3542 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3543 (regex.o): Don't depend on charset.h.
3544 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3545 (search.o): Don't depend explicitly on composite.h.
3546 (sound.o): Depend on atimer.h and systime.h.
3547 (syntax.o): Don't depend explicitly on composite.h.
3548 (sysdep.o): Depend on coding.h and composite.h.
3549 (term.o): Depend on xterm.h and buffer.h.
3550 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3551 (textprop.o): Don't depend on dispextern.h explicitly.
3552 (undo.o): Depend on dispextern.h.
3553 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3554 dispextern.h and composite.h explicitly.
3555 (xdisp.o): Depend on ccl.h.
3556 (xfaces.o): Depend on coding.h and ccl.h.
3557 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3558 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3559 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3560 ftfont.h.
3561 (xgselect.o): New dependency.
3562 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3563 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3564 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3565 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3566 (xsmfns.o): Depend on frame.h and dispextern.h.
3567 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3568 sysselect.h.
3569
7a6f7fea
AS
35702009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3571
3572 * font.c (Fclear_font_cache): Pass correct cache argument to
3573 font_clear_cache.
3574
f4c21026
AS
35752009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3576
3577 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3578 twice.
3579
f7ab0997
CY
35802009-12-15 Chong Yidong <cyd@stupidchicken.com>
3581
3582 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3583 calling file-remote-p. Reported by Jim Meyering.
3584
fa8e045a
MA
35852009-12-15 Michael Albinus <michael.albinus@gmx.de>
3586
3587 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3588 avoid compiler warnings. (Bug #5217)
fa8e045a 3589
a63dba42
KH
35902009-12-14 Kenichi Handa <handa@m17n.org>
3591
3592 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3593 in 8-bit encoding.
3594
5ce6e4f4 35952009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3596
3597 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3598 tooltip windows.
3599
223e5fc6
JD
36002009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3601
36acb2a7
JD
3602 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3603 Xatom_net_window_type.
3604
3605 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3606 Xatom_net_window_type.
3607
b8f00677
JD
3608 * xterm.c (my_log_handler): New function.
3609 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3610 so we can filter out buggy messages. (Bug #5120).
b8f00677 3611
e5f0bc9a
JD
3612 * xterm.c (xg_scroll_callback): Parameter list changed,
3613 use parameter GtkScrollType to determine scroll/line/page.
3614 Only allow dragging if a button < 4 is grabbed (bug #5177).
3615 (xg_end_scroll_callback): New function.
3616 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3617 xg_create_scroll_bar.
3618
3619 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3620 (scroll_end_callback): Remove.
3621 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3622 button-release-event. Replace value-changed event with change-value,
3623 bug #5177,
3624 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3625 bug #5177.
3626
3627 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3628 (xg_create_scroll_bar): Add GCallback end_callback.
3629
223e5fc6
JD
3630 * xftfont.c (QClcdfilter): New variable.
3631 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3632 (syms_of_xftfont): Initialize QClcdfilter.
3633
3c055b77
JD
36342009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3635
3636 * xsettings.c (struct xsettings): Add member seen.
3637 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3638 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3639 (apply_xft_settings): Only update Xft settings with what member seen
3640 indicates as new.
3641
05fe33ff
EZ
36422009-12-12 Eli Zaretskii <eliz@gnu.org>
3643
3644 * dispextern.h (struct text_pos): Use EMACS_INT;
3645 (struct glyph): Use EMACS_INT for charpos.
3646 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3647 region_beg_charpos, region_end_charpos,
3648 redisplay_end_trigger_charpos, and also for
3649 iterator_stack_entry.end_charpos and
3650 iterator_stack_entry.stop_charpos.
3651
e8d7886a
JD
36522009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3653
5ce6e4f4 3654 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3655 (xg_create_scroll_bar): Call scroll_end_callback on button release
3656 event (bug #5177).
3657 (xg_event_is_for_scrollbar): != replaced with ==.
3658
d0db2ec8
KH
36592009-12-12 Kenichi Handa <handa@m17n.org>
3660
3661 * ftfont.c (struct ftfont_info): New member matrix.
3662 (ftfont_open): Setup xftfont_info->matrix.
3663 (MFLTFontFT): New member matrix.
3664 (FLOOR, CEIL, ROUND): New macros.
3665 (ftfont_get_metrics): Handle matrix transformation.
3666 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3667
3668 * xftfont.c (struct xftfont_info): New member matrix.
3669 (xftfont_open): Setup xftfont_info->matrix.
3670
36712009-12-10 Kenichi Handa <handa@m17n.org>
3672
3673 * xdisp.c (append_space_for_newline): Consider face-remapping.
3674
2cc7b62f
AS
36752009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3676
b87dd913
AS
3677 * xsettings.c: Include "keyboard.h".
3678
eba5eb94
AS
3679 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3680
2cc7b62f
AS
3681 Fix implicit function declarations.
3682 * cmds.c: Include "frame.h".
3683 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3684 * frame.h: Move declaration of delete_frame outside of
3685 HAVE_WINDOW_SYSTEM.
3686
a4ef73c8
CY
36872009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3688
3689 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3690
3691 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3692 GTK builds.
3693
944a300c
AS
36942009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3695
3696 * unexelf.c (unexec): Don't search for .data twice.
3697
022eef62
CY
36982009-12-05 Chong Yidong <cyd@stupidchicken.com>
3699
426ac949
CY
3700 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3701 if push failed.
3702 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3703 of push_display_prop (Bug#5000).
3704
022eef62
CY
3705 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3706 value of font_list_entities (Bug#5085).
3707
be95bee9
JB
37082009-12-04 Juanma Barranquero <lekktu@gmail.com>
3709
3710 Fix `string-to-number' to deal consistently with integers and floats.
3711 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3712 trailing characters, not just whitespace.
3713 (read1): Pass new arg 0 to keep old behavior.
3714 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3715 trailing chars, as it is already done for integers. Doc fixes.
3716 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3717
24c2d7ce
EZ
37182009-12-04 Eli Zaretskii <eliz@gnu.org>
3719
0b5397c2
SM
3720 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3721 Delete unused enumeration value.
24c2d7ce 3722
7e694795
EZ
37232009-12-03 Eli Zaretskii <eliz@gnu.org>
3724
3725 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3726
84b31826
SM
37272009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3728
3729 * process.c (Fmake_network_process): Fix up the tests for
3730 "connectionless socket", so they DTRT for seqpacket sockets as well.
3731
f00c449b
SM
37322009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3733
3734 * process.c (Qseqpacket): New symbol.
3735 (HAVE_SEQPACKET): New macro.
3736 (Fmake_network_process): Accept new :type `seqpacket'.
3737 (init_process): Add `seqpacket' feature when applicable.
3738 (syms_of_process): Initialize Qseqpacket.
3739
8096a0ff
YM
37402009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3741
3742 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3743 if entity is Qnil.
3744
3e0de07f
SM
37452009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3746
3747 * print.c (print_preprocess): Preprocess the key_and_value table of
3748 hashtables, even tho they're "hidden" (bug#5082).
3749
abeafb2a
JD
37502009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3751
3752 * frame.c (frame_make_pointer_invisible)
3753 (frame_make_pointer_visible): Declare f before statements.
3754
4bf47195
EZ
37552009-11-28 Eli Zaretskii <eliz@gnu.org>
3756
3757 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3758 omitted dependencies on lisp.h.
3759
c525b3f2
JD
37602009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3761
ece2d4ed
JD
3762 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3763 is NULL.
3764
3765 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3766
3767 * frame.c (frame_make_pointer_invisible)
3e0de07f 3768 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3769 frame.
3770
c525b3f2
JD
3771 * search.c (simple_search): Remove warning by making *p const.
3772
2f00e299
DN
37732009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3774
3775 * xdisp.c (power_letter): Remove duplicate const.
3776
084b049b
JD
37772009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3778
a1fadc6f
JD
3779 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3780
5ce6e4f4 3781 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3782 defaults (bug #5025).
3783
28259cac
SM
37842009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3785
3786 * insdel.c (adjust_markers_for_delete): Move it in the
3787 right direction! (bug#4803)
3788
e8e14166
YM
37892009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3790
3791 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3792
3793 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3794
86677b58
GM
37952009-11-24 Glenn Morris <rgm@gnu.org>
3796
3797 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3798
581e51e8
JD
37992009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3800
cfc86c7a
JD
3801 * Makefile.in: Must create deps for ecrt0.o in its rule.
3802
581e51e8
JD
3803 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3804 because that is what Gtk+ font dialog understands.
3805
3806 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3807 of Fcopy_sequence.
3808 (font_open_by_name): Put name given into QCname for font-object returned.
3809
3810 * frame.c (x_set_font): Save original font name as frame parameter
3811 font-parameter.
3812
3813 * xsettings.c (set_default_xft_settings): New function.
3814 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3815 is found.
3816
8b264ecb
AS
38172009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3818
3819 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3820 searching backwards through multibyte buffer.
3821
872870b2
JD
38222009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3823
3824 * xterm.c: #include xgselect.h.
3825 (x_initialize): Call xgselect_initialize.
3826
3827 * xsettings.c (something_changedCB): C++ comments => C comments.
3828 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3829 does that now.
3830
3831 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3832 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3833 (scroll_bar_button_cb): Remove.
5ce6e4f4 3834 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3835 event.
3836 (xg_create_scroll_bar): Don't bind button-press-event and
3837 button-release-event.
3838
3839 * process.c: Include xgselect.h if defined (USE_GTK) ||
3840 defined (HAVE_GCONF).
3841 (wait_reading_process_output): Call xg_select for the same condition.
3842
3843 * xgselect.c (xg_select): New function to better integrate with
3844 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3845
3846 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3847
3848 * Makefile.in (XOBJ): Add xgselect.o.
3849
62a6e103
AS
38502009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3851
0b5397c2
SM
3852 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3853 Remove ignored second argument. All callers changed.
62a6e103
AS
3854 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3855 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3856 * xdisp.c (string_char_and_length): Likewise.
3857
b0ca0f33
DN
38582009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3859
3860 * xterm.c (x_new_font):
3861 * print.c (print_object):
3862 * cmds.c (Fself_insert_command): Move declarations before statements.
3863
dd5a6279
CY
38642009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3865
3866 * s/cygwin.h: Remove unneeded linker flags.
3867
4a8e097d
JD
38682009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3869
0d1d0d26
JD
3870 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3871
3872 * xsettings.h: Declare xsettings_get_system_font.
3873
3874 * xsettings.c (xsettings_get_system_font): New function.
3875 (init_gconf): No use initiating gconf unless we have Xft also.
3876 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3877 HAVE_GCONF.
3878
4a8e097d
JD
3879 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3880 add a blank entry so it doesn't collapse into nothing.
3881
8ab1650e
SM
38822009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3883
3884 * lread.c (Funintern): Comment out last change.
3885
82c602f0
RS
38862009-11-19 Richard Stallman <rms@gnu.org>
3887
3888 * lread.c (Funintern): Error if symbol is t or nil.
3889
87e32266
SM
38902009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3891
3892 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3893 representation of Lisp integers.
3894 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3895
1b9ac145
AS
38962009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3897
3898 * lisp.h: Remove declaration of Ffont_get_system_font.
3899 * xfns.c: Move include of "xsettings.h".
3900 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3901
dfb3c4c6
JD
39022009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3903
87e32266
SM
3904 * xsettings.c (something_changedCB, Ffont_get_system_font):
3905 Check use_system_font.
dfb3c4c6
JD
3906 (syms_of_xsettings): DEFVAR font-use-system-font.
3907
9370c1d8
AS
39082009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3909
25fe851a
AS
3910 * xfns.c (x_default_font_parameter): Remove dead assignment.
3911
9370c1d8
AS
3912 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3913
637fa988
JD
39142009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3915
87e32266 3916 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3917 not have FC_LCD_*. #define them if not there.
a6eb20d8 3918
87e32266 3919 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3920
637fa988
JD
3921 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3922
3923 * xterm.c (handle_one_xevent): Call xft_settings_event for
3924 ClientMessage, PropertyNotify and DestroyNotify.
3925 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3926 Call xsettings_initialize.
3927
3928 * xftfont.c (xftfont_fix_match): New function.
3929 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3930 Call xftfont_fix_match after XftFontMatch.
3931
3932 * xfont.c (xfont_driver): Initialize all members.
3933
87e32266
SM
3934 * xfns.c (x_default_font_parameter):
3935 Try font from Ffont_get_system_font.
637fa988
JD
3936 Do not get font from x_default_parameter if we got one from
3937 Ffont_get_system_font.
87e32266 3938 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3939
3940 * w32font.c (w32font_driver): Initialize all members.
3941
3942 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3943
3944 * lisp.h: Declare syms_of_xsettings.
3945
87e32266
SM
3946 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3947 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3948
3949 * ftfont.c (ftfont_filter_properties): New function.
3950
3951 * frame.c (x_set_font): Remove unused variable lval.
3952
87e32266 3953 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3954
3955 * font.c (font_put_extra): Don't return if val is nil, it means
3956 boolean option is off.
3957 (font_parse_fcname): Collect all extra properties in extra_props
3958 and call filter_properties for all drivers with extra_props and
3959 font as parameter.
87e32266
SM
3960 (font_open_entity): Do not use cache, it does not pick up new
3961 fontconfig settings like hinting.
637fa988
JD
3962 (font_load_for_lface): If spec had a name in it, store it in entity.
3963
a73f9c9d 3964 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3965
3966 * config.in: HAVE_GCONF is new.
3967
3968 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3969 xsettings.o is new.
3970
5a942932
KH
39712009-11-17 Kenichi Handa <handa@m17n.org>
3972
3973 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3974 back to the default font in case that no suitable font is found.
3975
b7c7a4d1
SM
39762009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3977
3978 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3979 Suggested by Chad Brown <yandros@mit.edu>.
3980 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3981
072f1e39
JD
39822009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3983
3984 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3985
5d1e70a2
AS
39862009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3987
87e32266 3988 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3989
a53cfbe5
JD
39902009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3991
473a99b7
JD
3992 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3993 has a parent.
3994
a53cfbe5 3995 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3996 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3997
3998 * config.in: Generated (AUTO_DEPEND).
3999
f04bb9b2
MA
40002009-11-13 Michael Albinus <michael.albinus@gmx.de>
4001
b7c7a4d1 4002 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
4003 Vdbus_registered_functions_table, because it contains also
4004 properties. Fix docstring.
b7c7a4d1 4005 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 4006
8f11f7ec
SM
40072009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
4008
4009 * alloc.c (mark_object): Don't reprocess marked strings.
4010 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
4011 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
4012
8a605fe8
KH
40132009-11-13 Kenichi Handa <handa@m17n.org>
4014
8f11f7ec 4015 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
4016 semantics of Vword_combining_categories.
4017 (Vword_combining_categories): Describe the slight change of the
4018 semantics.
4019
241c4680
EZ
40202009-11-13 Eli Zaretskii <eliz@gnu.org>
4021
4022 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
4023
4024 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
4025
5d58e44c
SM
40262009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
4027
4028 * xdisp.c (syms_of_xdisp): Fix typo in last change.
4029
5e13f9d3
JB
40302009-11-12 Juanma Barranquero <lekktu@gmail.com>
4031
4032 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
4033
cf54c754
DR
40342009-11-11 David Reitter <david.reitter@gmail.com>
4035
4036 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
4037 variables to fix 2009-11-09 change.
4038
a4ada374
DN
40392009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
4040
91433552
DN
4041 * process.c (ifflag_def): Make flag_sym constant.
4042 (Fnetwork_interface_info): Use a constant pointer.
4043 (ifflag_table):
4044 * xfns.c (cursor_bits):
4045 * xdisp.c (power_letter):
4046 * termcap.c (speeds, esctab):
4047 * sysdep.c (baud_convert):
4048 * keyboard.c (lispy_accent_codes, modifier_names):
4049 * image.c (xbm_format, xpm_format, pbm_format, png_format)
4050 (jpeg_format, tiff_format, gif_format, svg_format)
4051 (interlace_start, interlace_increment, gs_format):
4052 * gtkutil.c (separator_names):
4053 * fringe.c (swap_nibble):
4054 * fns.c (base64_value_to_char, base64_char_to_value):
4055 * fileio.c (make_temp_name_tbl):
4056 * coding.c (suffixes): Make constant.
4057
f4265f6c
DN
4058 * frame.c (make_initial_frame):
4059 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
4060 build_string.
4061 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
4062
04420943
DN
4063 * s/freebsd.h:
4064 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
4065
0a5d24ae
DN
4066 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
4067 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
4068
a4ada374
DN
4069 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
4070 * xterm.c (syms_of_xterm):
4071 * xfaces.c (syms_of_xfaces):
4072 * xdisp.c (syms_of_xdisp):
4073 * lread.c (syms_of_lread):
4074 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
4075 build_string.
91433552 4076
a4ada374
DN
4077 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
4078
af98fc7f
SM
40792009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4080
8ab1650e 4081 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 4082
e90292a9
JD
40832009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4084
4085 * keyboard.h: Declare timer_check.
4086
4087 * keyboard.c (timer_check_2): New function that does what the old
4088 timer_check did.
4089 (timer_check): Call timer_check_2 until -1 or a non-zero time is
4090 returned, i.e. don't return -1 with timers pending.
4091
4092 * process.c: Remove extern declaration of timer_check.
4093
4094 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
4095 even if timer_check returned -1.
4096
af98fc7f
SM
4097 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
4098 xg_dialog_data.
e90292a9
JD
4099 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
4100 the event loop.
4101 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
4102 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
4103 Destroy the dialog after xg_dialog_run.
4104
045b83c0
SM
41052009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4106
4107 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
4108
1fb99a3a
JD
41092009-11-10 Jan Djärv <jan.h.d@swipnet.se>
4110
4111 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4112
04e452cb
JB
41132009-11-09 Juanma Barranquero <lekktu@gmail.com>
4114
4115 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4116
ef7417fd
SM
41172009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4118
4119 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4120 w32menu.c, and nsmenu.m.
4121 Simplify the obsolete case where position is nil.
4122 (cleanup_popup_menu): New function, moved from nsmenu.m.
4123 (struct skp): Remove slot `notreal'.
4124 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4125 adjust callers.
4126 (single_menu_item): Adjust call to parse_menu_item.
4127 (syms_of_menu): Defsubr x-popup-menu.
4128 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4129 (keymap_panes): Don't export any more.
4130 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4131 (xmenu_show): Declare.
4132 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4133 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4134 * keyboard.h (parse_menu_item): Update declaration.
4135 * xmenu.c (Fx_popup_menu): Remove.
4136 (syms_of_xmenu): Don't defsubr x-popup-menu.
4137 * w32menu.c (Fx_popup_menu): Remove.
4138 (syms_of_w32menu): Don't defsubr x-popup-menu.
4139 * nsmenu.m (cleanup_popup_menu): Remove.
4140 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4141 moved to menu.c's Fx_popup_menu.
4142 (Fx_popup_menu): Remove.
4143 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4144 menu_items (it's done in menu.c already).
4145
424d6179
SM
41462009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4147
4148 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4149 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4150
c0df13a6 41512009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4152
4153 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4154 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4155 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4156 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4157
2de9f71c
SM
41582009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4159
4160 Let integers use up 2 tags to give them one extra bit and thus double
4161 their range.
4162 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4163 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4164 New macros.
4165 (enum Lisp_Type): Use them. Give explicit values.
4166 (Lisp_Type_Limit): Remove.
4167 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4168 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4169 Pay attention to USE_2_TAGS_FOR_INTS.
4170 (INTEGERP): Use LISP_INT_TAG_P.
4171 * fns.c (internal_equal): Simplify the default case.
4172 (sxhash): Use case_Lisp_Int.
4173 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4174 any more.
4175 (Ftype_of): Use case_Lisp_Int.
4176 (store_symval_forwarding): Take into account the fact that Ints can
4177 now have more than one tag.
4178 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4179 buffer_slot_type_mismatch):
4180 * xfaces.c (face_attr_equal_p):
4181 * print.c (print_object):
4182 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4183 Use case_Lisp_Int.
4184
323637a2
EZ
41852009-11-06 Eli Zaretskii <eliz@gnu.org>
4186
7ac65b38
EZ
4187 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4188
323637a2
EZ
4189 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4190 warning.
4191
e511451f
JD
41922009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4193
4194 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4195
4196 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4197
4198 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4199 ButtonPressRelease and MotionNotify (bug#4870).
4200
5e2327cf
DN
42012009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4202
5adc433e
DN
4203 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4204
d67b4f80
DN
4205 * xterm.c (syms_of_xterm):
4206 * xselect.c (syms_of_xselect):
4207 * xmenu.c (syms_of_xmenu):
4208 * xfns.c (syms_of_xfns):
4209 * xfaces.c (syms_of_xfaces):
4210 * xdisp.c (syms_of_xdisp):
4211 * window.c (syms_of_window):
4212 * w32fns.c (syms_of_w32fns):
4213 * undo.c (syms_of_undo):
4214 * textprop.c (syms_of_textprop):
4215 * terminal.c (syms_of_terminal):
4216 * syntax.c (syms_of_syntax):
4217 * sound.c (syms_of_sound):
4218 * search.c (syms_of_search):
4219 * print.c (syms_of_print):
4220 * minibuf.c (syms_of_minibuf):
4221 * macros.c (syms_of_macros):
4222 * keymap.c (syms_of_keymap, initial_define_key)
4223 (initial_define_lispy_key):
4224 * keyboard.c (syms_of_keyboard):
4225 * insdel.c (syms_of_insdel):
4226 * image.c (syms_of_image):
4227 * fringe.c (syms_of_fringe):
4228 * frame.c (syms_of_frame):
4229 * fontset.c (syms_of_fontset):
4230 * fns.c (syms_of_fns):
4231 * fns.c (syms_of_fns):
4232 * fileio.c (syms_of_fileio):
4233 * fileio.c (syms_of_fileio):
4234 * eval.c (syms_of_eval):
4235 * doc.c (syms_of_doc):
4236 * dispnew.c (syms_of_display):
4237 * dired.c (syms_of_dired):
4238 * dbusbind.c (syms_of_dbusbind):
4239 * data.c (syms_of_data):
4240 * composite.c (syms_of_composite):
4241 * coding.c (syms_of_coding):
4242 * cmds.c (syms_of_cmds):
4243 * charset.c (define_charset_internal, syms_of_character):
4244 * ccl.c (syms_of_ccl):
4245 * category.c (syms_of_category, init_category_once):
4246 * casetab.c (syms_of_casetab):
4247 * casefiddle.c (syms_of_casefiddle):
4248 * callint.c (syms_of_callint):
4249 * bytecode.c (syms_of_bytecode):
4250 * buffer.c (keys_of_buffer, syms_of_buffer):
4251 * alloc.c (syms_of_alloc):
4252 * process.c (syms_of_process, init_process):
4253 * lread.c (syms_of_lread, init_obarray):
4254 * font.c (build_style_table):
4255 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4256 intern_c_string, calls to make_pure_string with
4257 make_pure_c_string. Use pure_cons instead of Fcons.
4258
5e2327cf
DN
4259 * process.c (socket_options): Make it const.
4260 (set_socket_option, init_process): Use a const pointer.
4261
4262 * lread.c (intern_c_string): New function.
4263 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4264 (defvar_int): Uset it. Make the name const char*.
4265
4266 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4267 (defvar_int): Update prototypes.
4268 (DEFUN, EXFUN): Support for prototypes is now required.
4269 (intern_c_string): New prototype.
4270 (struct Lisp_Subr): Make symbol_name constant.
4271
4272 * font.c (struct table_entry): Remove unused member. Make NAMES
4273 constant.
4274 (weight_table, slant_table, width_table): Make constant.
4275
4276 * emacs.c (struct standard_args): Make name and longname constant.
4277
4278 * character.h (DEFSYM): Use intern_c_string.
4279
a56eaaef
DN
42802009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4281
4282 * alloc.c (make_pure_c_string): New function.
4283
4284 * eval.c (Fautoload): Purecopy all arguments.
4285
f6a07420
KH
42862009-11-05 Kenichi Handa <handa@m17n.org>
4287
4288 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4289 the buffer in case of replace.
4290
5d28d4b1
DN
42912009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4292
4293 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4294
b349d111
SM
42952009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4296
d528b1ce
SM
4297 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4298 when applicable (bug#4851).
4299
b349d111
SM
4300 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4301 (P_): Support for prototypes is now required.
4302
c38eb027
CY
43032009-10-31 Chong Yidong <cyd@stupidchicken.com>
4304
4305 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4306 (Bug#4827).
4307
0405f8d9
EZ
43082009-10-30 Eli Zaretskii <eliz@gnu.org>
4309
d528b1ce 4310 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4311
ca0a881a
DN
43122009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4313
4314 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4315
d528b1ce
SM
4316 * lread.c (Fload): Purecopy the file name when building
4317 Vpreloaded_file_list.
ca0a881a 4318
47e0e0e4
JR
43192009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4320
4321 * w32fns.c (syms_of_w32fns): Change default value of
4322 w32-scroll-lock-modifier to nil. (Bug#2827)
4323
057bce6f
JB
43242009-10-26 Juanma Barranquero <lekktu@gmail.com>
4325
782a943e 4326 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4327
242bc74c
AS
43282009-10-26 Andreas Schwab <schwab@redhat.com>
4329
4330 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4331
522d013a
JB
43322009-10-26 Juanma Barranquero <lekktu@gmail.com>
4333
4334 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4335 For delta < 0, skip check that only makes sense when the mini-window
4336 is going to be enlarged. (Bug#4534)
4337
18060980
CY
43382009-10-25 Chong Yidong <cyd@stupidchicken.com>
4339
4340 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4341 string in menu maps (Bug#4471).
4342
fec8f0fe
CY
43432009-10-24 Chong Yidong <cyd@stupidchicken.com>
4344
4345 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4346 FRAME_NS_VIEW on terminal frames (Bug#4765).
4347
10d66ec0
AS
43482009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4349
1cae01f7
AS
4350 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4351 DBUS_TYPE_UINTnn separately to get proper sign extension.
4352
58a12889
AS
4353 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4354 can properly handle unsigned types.
d528b1ce 4355 (make_uid, make_gid): Remove.
58a12889 4356
987c9327
AS
4357 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4358 types again.
4359
522d013a 4360 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4361 (system_process_attributes): Likewise.
4362
905a9ed3
DN
43632009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4364
4365 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4366
4367 * eval.c (Fautoload): Purecopy the filename. Simplify.
4368
4369 * category.c (Fdefine_category): Purecopy docstring.
4370
a599b3e8
AS
43712009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4372
7b792fc9
AS
4373 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4374
a599b3e8
AS
4375 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4376
b35ac83e
CY
43772009-10-23 Chong Yidong <cyd@stupidchicken.com>
4378
4379 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4380 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4381 (Bug#4775).
4382
e8903e00
SM
43832009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4384
4385 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4386 (init_fileio_once):
4387 * lisp.h (init_fileio_once): Remove.
4388 * emacs.c (main): Don't call init_fileio_once.
4389
8f43cbf3
DN
43902009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4391
4392 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4393
26898943
AS
43942009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4395
4396 * doprnt.c (doprnt): Fix overflow check.
4397
5c646d5a
JD
43982009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4399
3132a7ea
JD
4400 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4401
5c646d5a
JD
4402 * xterm.h (x_wait_for_event): Declare it.
4403
4404 * xterm.c (pending_event_wait): New variable.
4405 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4406 see pending_event_wait.eventtype.
4407 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4408 (x_new_font): Call change_frame_size with new rows/columns before we
4409 try to resize the frame.
5c646d5a 4410 (x_wait_for_event): New function.
d528b1ce
SM
4411 (x_set_window_size_1): Don't change gravity unless change_gravity
4412 is set.
5c646d5a
JD
4413 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4414 don't change frame size, instead wait for the ConfigureNotify.
4415 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4416 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4417 (x_initialize): Initialize pending_event_wait.
4418
4419 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4420 size.
4421
4422 * widget.c (EmacsFrameSetValues): Add comment.
4423 (EmacsFrameSetCharSize): Just call x_set_window_size.
4424
4425 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4426 x_wait_for_event.
d528b1ce 4427 (flush_and_sync): Remove again.
5c646d5a
JD
4428 (xg_get_font_name): Suggest monospace if no previous font is known.
4429
e9c1637d
SM
44302009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4431
4432 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4433 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4434
5a72cccb
YM
44352009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4436
4437 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4438 processing pending events when event is filtered for input method.
ab04798f 4439 (Bug#3681)
5a72cccb 4440
2629aa37
JB
44412009-10-20 Juanma Barranquero <lekktu@gmail.com>
4442
4443 * fns.c: Add #endif accidentally removed in previous change.
4444
c3417a74
DN
44452009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4446
4447 * fns.c: Remove code for unsupported system: MAC_OS.
4448 * image.c: Likewise. Include setjmp.h.
4449
9685cef2
JD
44502009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4451
4452 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4453 pixel -1 (bug #4742).
4454
d7306fe6
DN
44552009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4456
019d2c4c
DN
4457 * process.c (create_pty): Remove conditionals for no longer
4458 supported systems: UNIPLUS and RTU.
4459
ee6bacd4
DN
4460 * xterm.c:
4461 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4462
d7306fe6
DN
4463 * alloc.c: Do not define struct catchtag.
4464 * eval.c: Move struct catchtag definition ...
4465 * lisp.h: ... here.
4466
4467 * image.c: Move png.h #include earlier to avoid warnings.
4468
4469 * xterm.c:
4470 * xsmfns.c:
4471 * xselect.c:
4472 * xrdb.c:
4473 * xmenu.c:
4474 * xftfont.c:
4475 * xfont.c:
4476 * xfns.c:
4477 * xfaces.c:
4478 * xdisp.c:
4479 * window.c:
4480 * widget.c:
4481 * w32xfns.c:
4482 * w32uniscribe.c:
4483 * w32term.c:
4484 * w32select.c:
4485 * w32reg.c:
4486 * w32proc.c:
4487 * w32menu.c:
4488 * w32inevt.c:
4489 * w32heap.c:
4490 * w32font.c:
4491 * w32fns.c:
4492 * w32console.c:
4493 * w32.c:
4494 * w16select.c:
4495 * vm-limit.c:
4496 * unexsol.c:
4497 * unexec.c:
4498 * unexcw.c:
4499 * unexaix.c:
4500 * undo.c:
4501 * tparam.c:
4502 * textprop.c:
4503 * terminfo.c:
4504 * terminal.c:
4505 * termcap.c:
4506 * term.c:
4507 * syntax.c:
4508 * sound.c:
4509 * sheap.c:
4510 * search.c:
4511 * scroll.c:
4512 * region-cache.c:
4513 * regex.c:
4514 * ralloc.c:
4515 * process.c:
4516 * print.c:
b024548b
DN
4517 * nsterm.m:
4518 * nsselect.m:
4519 * nsmenu.m:
4520 * nsimage.m:
4521 * nsfont.m:
4522 * nsfns.m:
d7306fe6
DN
4523 * msdos.c:
4524 * minibuf.c:
4525 * menu.c:
4526 * marker.c:
4527 * macros.c:
4528 * keymap.c:
4529 * keyboard.c:
4530 * intervals.c:
4531 * insdel.c:
4532 * indent.c:
4533 * gtkutil.c:
4534 * ftxfont.c:
4535 * ftfont.c:
4536 * fringe.c:
4537 * frame.c:
4538 * fontset.c:
4539 * font.c:
4540 * fns.c:
4541 * floatfns.c:
4542 * filelock.c:
4543 * fileio.c:
4544 * emacs.c:
4545 * editfns.c:
4546 * dosfns.c:
4547 * doprnt.c:
4548 * doc.c:
4549 * dispnew.c:
4550 * dired.c:
4551 * dbusbind.c:
4552 * data.c:
4553 * composite.c:
4554 * coding.c:
4555 * cmds.c:
4556 * cm.c:
4557 * chartab.c:
4558 * charset.c:
4559 * character.c:
4560 * ccl.c:
4561 * category.c:
4562 * casetab.c:
4563 * casefiddle.c:
4564 * callproc.c:
4565 * callint.c:
4566 * bytecode.c:
4567 * buffer.c:
4568 * atimer.c: Include setjmp.h. (Bug#4643)
4569
fd5f21e6
SM
45702009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4571
4c0354d7
SM
4572 Remove leftover table unibyte_to_multibyte_table.
4573 * character.c (unibyte_to_multibyte_table): Remove.
4574 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4575 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4576 * character.h (UNIBYTE_TO_CHAR): New macro.
4577 (MAKE_CHAR_MULTIBYTE): Use it.
4578 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4579 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4580 (message_dolog, set_message_1):
4581 * search.c (Freplace_match):
4582 * editfns.c (Fcompare_buffer_substrings):
4583 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4584 (concat):
4585 * insdel.c (copy_text, count_size_as_multibyte):
4586 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4587 * term.c (produce_glyphs):
4588 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4589 * regex.c (RE_CHAR_TO_MULTIBYTE):
4590 * cmds.c (internal_self_insert):
4591 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4592
fd5f21e6
SM
4593 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4594
4418646e
DN
45952009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4596
4597 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4598
35f5c1d2
JB
45992009-10-16 Juanma Barranquero <lekktu@gmail.com>
4600
4601 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4602
a0cd8f6b
AR
46032009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4604
4605 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4606 still needed under Tiger.
4607
4608 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4609
4610 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4611 __Apple__.
4612
4613 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4614
01a8d3fa
KH
46152009-10-15 Kenichi Handa <handa@m17n.org>
4616
4617 * print.c (print_object): Escape a symbol like "2E10" too.
4618
bf6c75c9 46192009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4620
4621 Cleanups and changes for 64-bit compile under Snow Leopard.
4622 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4623
4624 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4625
c5959062 4626 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4627 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4628 cast argument.
4629 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4630 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4631
4632 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4633
4634 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4635 where appropriate.
4636
4637 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4638 where appropriate.
6e4780c5
JB
4639 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4640 Use stringWithUTF8String.
bf6c75c9
AR
4641 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4642
6e4780c5
JB
4643 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4644 Add formal protocol mention to inheritance.
bf6c75c9
AR
4645 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4646
6e4780c5
JB
4647 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4648 Fix printf format.
bf6c75c9
AR
4649 (ns_query_color): Use CGFloat where appropriate.
4650 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4651 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4652 argument.
4653
3d87f118
AR
4654 * config.in (NS_HAVE_NSINTEGER): Drop.
4655
a95c8102
AR
4656 * dbusbind.c (dbus-method-return-internal)
4657 (dbus-method-error-internal): Use long format in printf, and cast
4658 argument.
4659
4660 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4661 in printf, and cast argument.
4662
6873acca 4663 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4664 cast argument.
4665
9ec6f100
GM
46662009-10-11 Glenn Morris <rgm@gnu.org>
4667
4668 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4669
5be883cd
JD
46702009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4671
4672 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4673 menu bar with a small width so it doesn't enlarge the frame.
4674
d7a39b51
JB
46752009-10-08 Juanma Barranquero <lekktu@gmail.com>
4676
4677 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4678
0c2b6f8e
GM
46792009-10-06 Glenn Morris <rgm@gnu.org>
4680
4681 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4682 SOME_MACHINE_LISP (this enters indirectly via DOC).
4683
e02131a2
EZ
46842009-10-05 Eli Zaretskii <eliz@gnu.org>
4685
4686 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4687
b4744254
EZ
46882009-10-04 Eli Zaretskii <eliz@gnu.org>
4689
4690 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4691 Doc fix.
4692
dbf64827
JB
46932009-10-03 Martin Rudalics <rudalics@gmx.at>
4694
4695 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4696
e9a0aef8
MA
46972009-10-02 Michael Albinus <michael.albinus@gmx.de>
4698
d528b1ce 4699 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4700 used anymore outside fileio.c.
4701
4702 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4703
64eb2b56
JB
47042009-10-01 Juanma Barranquero <lekktu@gmail.com>
4705
4706 * lisp.h (Qdelete_directory_internal):
4707 Declare, instead of Qdelete_directory.
4708
4709 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4710
9d28c33e
SM
47112009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4712
4713 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4714
9d8f3bd9
MA
47152009-10-01 Michael Albinus <michael.albinus@gmx.de>
4716
9d28c33e 4717 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4718 Fdelete_directory. It is not a command anymore. It has no file
4719 name handler.
4720
9694740b
SM
47212009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4722
4723 * xdisp.c (get_next_display_element): Use an enum in last change.
4724
748e162f
KH
47252009-09-28 Kenichi Handa <handa@m17n.org>
4726
9694740b 4727 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4728 unibyte_display_via_language_environment in handling
4729 Vnobreak_char_display.
4730
17efd58d
AR
47312009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4732
4733 * nsterm.h (ns_app_name): New extern variable.
4734
4735 * nsterm.m (ns_app_name): New variable.
4736 (ns_term_init): Set and use it.
4737 (ns_term_shutdown): Use it.
4738
4739 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4740 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4741
4742 * nsfns.m (ns_set_name_iconic, ns_set_name)
4743 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4744 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4745
9694740b
SM
4746 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4747 Remove double-casting in client_data comparison.
31c2d412 4748
3208cb35
YM
47492009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4750
4751 * keyboard.c (make_lispy_event): Remember last wheel direction.
4752 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4753
b7d552d6
GM
47542009-09-26 Glenn Morris <rgm@gnu.org>
4755
4756 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4757 internal.elc. Add term/pc-win.elc.
4758 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4759 term/x-win.elc.
4760 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4761 term/w32-win.elc.
4762 (NS_SUPPORT): New.
4763 (lisp): Add NS_SUPPORT.
4764 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4765
4ff670a8
DR
47662009-09-25 David Reitter <david.reitter@gmail.com>
4767
4768 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4769 on Mac OS X 10.6+ (bug#4513).
4770
feabfb6c
JB
47712009-09-24 Juanma Barranquero <lekktu@gmail.com>
4772
4773 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4774 some parts of Emacs code (like font selection) don't grok them.
4775 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4776
de59072a
AS
47772009-09-24 Andreas Schwab <schwab@redhat.com>
4778
4779 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4780
a489517b
JB
47812009-09-24 Juanma Barranquero <lekktu@gmail.com>
4782
4783 * dired.c (Fdirectory_files): Fix typo in docstring.
4784
0592970c
AR
47852009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4786
4787 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4788 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4789 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4790 under GNUstep.
4791 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4792
4793 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4794 glyph advancement.
4795
48e8a88b
AR
47962009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4797
4798 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4799 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4800
4801 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4802 deleted (bug #4492).
4803
e14f0a78
AR
4804 * nsfont.m (Vns_reg_to_script): New lisp variable.
4805 (syms_of_nsfont): Declare it.
4806 (ns_registry_to_script): New function.
4807 (ns_get_req_script): Call it.
4808 (ns_findfonts): Don't give up on non-unicode registry.
4809
4810 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4811
5b650faa
SM
48122009-09-20 Tom Tromey <tromey@redhat.com>
4813
4814 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4815 batch mode (bug#4228).
4816
a489517b 48172009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4818
4819 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4820 carefully. (Bug #4339)
0bae4e09 4821
fcfe06f3
CY
48222009-09-18 Chong Yidong <cyd@stupidchicken.com>
4823
d798ba87 4824 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4825
31642728
AR
48262009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4827
4828 * emacs.c (inhibit_x_resources): Update doc string for NS.
4829 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4830 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4831
4832 * nsterm.h (ns_no_defaults): Remove.
4833
4834 * nsterm.m (ns_no_defaults): Remove.
4835 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4836 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4837 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4838 don't update the NSWindow itself.
4839 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4840 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4841
4842 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4843 ns_use_qd_smoothing.
4844
4845 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4846 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4847 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4848 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4849
8686ac71
JB
48502009-09-17 Juanma Barranquero <lekktu@gmail.com>
4851
4852 * emacs.c (inhibit_x_resources): New variable.
4853 (main) [HAVE_NS]: Don't process --quick command line option.
4854 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4855
4856 * lisp.h (inhibit_x_resources): Declare it extern.
4857
4858 * w32reg.c (x_get_string_resource):
4859 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4860
e227ba05
EZ
48612009-09-17 Eli Zaretskii <eliz@gnu.org>
4862
362654a6
JB
4863 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4864 Add lisp/term/internal.elc.
e227ba05 4865
742d40e8
SM
48662009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4867
4868 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4869 (bug#4461).
4870
005bd5a2
DN
48712009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4872
4873 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4874
4875 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4876 (OBJECTS_MACHINE): Remove, unused.
4877
f9af9719
SM
48782009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4879
4880 * frame.c (x_get_resource_string): Remove unused.
4881
0307c7d2
JD
48822009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4883
4884 * xterm.c (x_new_font): Call change_frame_size before calling
4885 x_set_window_size, in case frame size won't change.
4886
4887 * frame.c (x_set_font): Remove dead code.
4888
428b13d6
SM
48892009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4890
4891 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4892
5766c380
SM
48932009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4894
4895 * lread.c (Fload): Don't output a message after loading an obsolete
4896 package any more (done in Lisp now).
4897
2fd0161b
CY
48982009-09-12 Chong Yidong <cyd@stupidchicken.com>
4899
4900 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4901
bc5e75b6
SM
49022009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4903
4904 * keymap.c (Fwhere_is_internal): Use nconc2.
4905
c31c985e
AM
49062009-09-11 Alan Mackenzie <acm@muc.de>
4907
4908 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4909 batch mode.
4910
78012bd2
AS
49112009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4912
4913 * xdisp.c (display_mode_element): Detect cycles.
4914
9d889332
SM
49152009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4916
4917 * keymap.c (where_is_internal): Don't erroneously return nil right after
4918 filling the cache.
4919 (where_is_internal_1): Fix up typo.
4920
7ab5d780
GM
49212009-09-11 Glenn Morris <rgm@gnu.org>
4922
4923 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4924 share a common doc-string.
4925
5238a749
SM
49262009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4927
66d77eda
SM
4928 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4929 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4930
5238a749
SM
4931 * keymap.c (QCadvertised_binding): New constant.
4932 (syms_of_keymap): Initialize it.
4933 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4934 if applicable.
4935
19f48442
SM
49362009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4937
50d4ba39
SM
4938 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4939 (parse_menu_item): Streamline since bindings are recomputed all the
4940 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4941 more and don't support lmenu's menu-alias any more either.
4942
a88a5372
SM
4943 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4944 (where_is_internal): Strip it down to only traverse the keymaps.
4945 Move the cache handling from Fwhere_is_internal to here.
4946 (Fwhere_is_internal): Move the handling of remapping and the choice of
4947 the best binding from where_is_internal to here.
4948 Unify the cached/noncached paths, so remapping is also handled
4949 correctly when the cache is used, and so the cache can be used to
4950 speed up remap-handling when applicable.
4951 Give preference to non-remapped bindings.
4952 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4953 non-remapped bindings.
4954 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4955 command remapping.
4956
19f48442
SM
4957 * xdisp.c (display_mode_element): Move list length limit from 50 to
4958 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4959
599498c3 49602009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4961
4962 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4963
f9b7b5ac
SM
49642009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4965
a53af587
JB
4966 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4967 (Bug#4334)
4968
f9b7b5ac
SM
4969 * keymap.c (where_is_internal): Filter out shadowed remappings.
4970 Assume that where_is_internal returns unshadowed bindings to simplify
4971 the code and get rid of the gotos. Use ASIZE.
4972
04f4b72d
JD
49732009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4974
4da146f2
JD
4975 * xterm.c (x_focus_changed): If we get a focusout and pointer
4976 is invisible, make it visible.
4977
04f4b72d
JD
4978 * xterm.h: Remove condition for declaration of
4979 x_*_window_to_frame.
4980
7cef7ce3
SM
49812009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4982
4983 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4984 initial terminal as well.
4985
a54fa5b7
JD
49862009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4987
4988 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4989 x_menubar_window_to_frame.
a54fa5b7 4990
50426a04 4991 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4992 (XTmouse_position): Do not return valid positions
4993 for clicks in the menubar and the toolbar for Gtk+.
4994
4995 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4996 if the widget for the event has the same top level as a frame,
4997 return the frame.
4998 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4999 internal windows, bug #4122.
5000 (x_non_menubar_window_to_frame): Remove.
5001
5a021dd0
GM
50022009-09-02 Glenn Morris <rgm@gnu.org>
5003
5004 * buffer.c (default-major-mode): Move most of the doc from here...
5005 (major-mode): ... to here.
5006
548fe2f3
NR
50072009-08-30 Nick Roberts <nickrob@snap.net.nz>
5008
5009 * process.c (wait_reading_process_output): Keep the descriptor
5010 when pty is used by a non-child process, e.g., in I/O buffer of
5011 GDB this allows inferior to be restarted.
5012
e0840eef
EZ
50132009-08-29 Eli Zaretskii <eliz@gnu.org>
5014
5015 * xdisp.c (redisplay_internal): Remove redundant test and collapse
5016 both branches into one.
5017
82e98df4
SM
50182009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5019
5020 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
5021 (main): Use enable-multibyte-characters rather than
5022 default-enable-multibyte-characters. Output a warning message when
5023 running a unibyte session.
5024
890617cb
YM
50252009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5026
5027 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
5028 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
5029 (copy_data_segment): Also copy __program_vars section.
5030 (copy_dyld_info) [LC_DYLD_INFO]: New function.
5031 (dump_it) [LC_DYLD_INFO]: Use it.
5032
5033 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
5034
e7adeadc
EZ
50352009-08-28 Eli Zaretskii <eliz@gnu.org>
5036
5037 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
5038 $(SRC)/buildobj.h.
5039 (buildobj.h): Renamed from $(SRC)/buildobj.h.
5040 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
5041 $(SRC)/buildobj.h.
5042 (clean): Add buildobj.h.
5043
3ed8bbdc
TZ
50442009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
5045
5046 * print.c (print_object): Set escapeflag to 1 when printing
5047 hashtable keys and values.
5048
155a6764
SM
50492009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
5050
5051 * lread.c (read_integer): Use doubles (and potentially return a float
5052 number) as we do in string-to-number.
5053 (read1): Use strtol to read integers, signal errors on strtol's
5054 overflow and use floats if strtol's output is too large for
5055 Elisp integers.
5056
877610de
EZ
50572009-08-27 Eli Zaretskii <eliz@gnu.org>
5058
5059 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
5060 (make-buildobj-SH): Fix last change.
5061 (SRC): Move to before where it's first used.
5062
ef73e7be
KH
50632009-08-27 Kenichi Handa <handa@m17n.org>
5064
550c8289
KH
5065 * process.c (send_process): Use encode_coding_object instead of
5066 encode_coding_string to perform eol-conversion even if the string
5067 is unibyte.
5068
60afa08d
KH
5069 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
5070 character.
5071
ef73e7be 5072 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 5073 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 5074
7b3a82d7
DN
50752009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
5076
5654bf63
DN
5077 * callproc.c (Fcall_process): Remove always true #if.
5078
7b3a82d7
DN
5079 * lisp.h: Replace #if 0 code for checking with text pointing to
5080 the --enable-checking configure flag.
5081
5082 * emacs.c (main): Mention the --enable-profiling configure flag
5083 instead of using CFLAGS.
5084
878bde49
KR
50852009-08-26 Ken Raeburn <raeburn@raeburn.org>
5086
5087 * Makefile.in (buildobj.h): New target.
5088 (doc.o): Depend on it.
5089 (temacs${EXEEXT}): Don't generate buildobj.lst.
5090 (mostlyclean): Delete buildobj.h, not buildobj.lst.
5091 * makefile.w32-in ($(SRC)/buildobj.h): New target.
5092 ($(BLD)/doc.$(O)): Depend on it.
5093 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
5094 provided by Eli Zaretskii.)
5095 ($(TEMACS)): Don't generate buildobj.lst.
5096 * doc.c: Include buildobj.h.
5097 (buildobj): New static variable.
5098 (Fsnarf_documentation): Use it, instead of opening and reading
5099 buildobj.lst.
5100
1574224c
MA
51012009-08-25 Michael Albinus <michael.albinus@gmx.de>
5102
5103 * dbusbind.c (Fdbus_call_method)
5104 (Fdbus_call_method_asynchronously): Use English numeric format for
5105 timeout values in doc string.
5106
d9da2f45
KH
51072009-08-25 Kenichi Handa <handa@m17n.org>
5108
ef73e7be
KH
5109 * alloc.c (mark_char_table): New function.
5110 (mark_object): Use mark_char_table for a char-table.
5111
d9da2f45
KH
5112 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5113 (CHAR_TABLE_REF): Use it.
5114
c8edcc01
KR
51152009-08-23 Ken Raeburn <raeburn@raeburn.org>
5116
5117 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5118 before invoking the newly build emacs to check for load-path
5119 shadowing.
5120
7763401b
GM
51212009-08-22 Glenn Morris <rgm@gnu.org>
5122
5123 * Makefile.in (bootstrap_exe): New variable.
5124 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5125 Use ${bootstrap_exe}.
5126
729eadda
EZ
51272009-08-22 Eli Zaretskii <eliz@gnu.org>
5128
5129 * coding.h (encode_coding_string): Don't encode unibyte strings.
5130 (Bug#4047)
5131
eb4c6ace
MA
51322009-08-22 Michael Albinus <michael.albinus@gmx.de>
5133
5134 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5135
5136 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5137 intended as hotfix only.
5138 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5139
36e34d1b
AR
51402009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5141
5142 * nsterm.m (ns_get_color): Update documentation properly for last
5143 change, and clean up loose ends in the code left by it. Fix
5144 longstanding bug with 16-bit hex parsing, and add support for
5145 yet another X11 format (rgb:r/g/b) for compatibility.
5146 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5147 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5148
f983eb8a
SM
51492009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5150
5151 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5152
3f56d3c6
MA
51532009-08-20 Michael Albinus <michael.albinus@gmx.de>
5154
5155 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5156 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5157 (xd_initialize, xd_pending_messages): Check, whether
5158 $DBUS_SESSION_BUS_ADDRESS is set.
5159
fb641d68
YM
51602009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5161
5162 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5163
5164 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5165
cf59a374
GM
51662009-08-20 Glenn Morris <rgm@gnu.org>
5167
5168 * emacs.c (system-type): Doc fix.
5169
1373f3be
SM
51702009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5171
5172 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5173 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5174
058ed861
MA
51752009-08-18 Michael Albinus <michael.albinus@gmx.de>
5176
1373f3be
SM
5177 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5178 New functions.
058ed861
MA
5179 (xd_initialize): Revert change from 2009-08-16.
5180
563a866e 51812009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5182
5183 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5184 font-group vector, return nil.
5fc05db0 5185
e42bdf01
CY
51862009-08-17 Chong Yidong <cyd@stupidchicken.com>
5187
5188 * process.c (status_notify): Don't perform redisplay.
5189 (Fdelete_process, list_processes_1, process_send_signal):
5190 Expliticly perform redisplay.
5191 (wait_reading_process_output): Always check process status, but
5192 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5193
4230ab74
KR
51942009-08-17 Ken Raeburn <raeburn@raeburn.org>
5195
1373f3be 5196 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5197 (XFLOAT_INIT): New macro for storing a float value.
5198 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5199 * fns.c (sxhash): Copy out the value of a float in order to
5200 examine its bytes.
5201 * dbusbind.c (xd_append_arg): Likewise.
5202
4230ab74
KR
5203 * emacs.c (main): Don't call syms_of_data twice.
5204
a0645cdd
MA
52052009-08-16 Michael Albinus <michael.albinus@gmx.de>
5206
5207 * dbusbind.c (xd_initialize): Add connection file descriptor to
5208 input_wait_mask, in order to let select() detect, whether a new
5209 message has been arrived.
ca4f31ea 5210 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5211
485db0ba
MA
52122009-08-15 Michael Albinus <michael.albinus@gmx.de>
5213
1373f3be
SM
5214 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5215 New functions.
485db0ba
MA
5216
5217 * lisp.h (xd_pending_messages): Declare.
5218
5219 * keyboard.c (readable_events): Call xd_pending_messages.
5220
b5b98ff4
CY
52212009-08-15 Chong Yidong <cyd@stupidchicken.com>
5222
1373f3be 5223 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5224
f8354c6e
CY
5225 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5226
b5b98ff4
CY
5227 * buffer.c (set_buffer_internal_1)
5228 (swap_out_buffer_local_variables): Check for unbound local
5229 variables (Bug#4138).
5230
8b9fc636
EZ
52312009-08-14 Eli Zaretskii <eliz@gnu.org>
5232
5233 * process.c (create_pty): Fix last change.
5234
ce959360
CY
52352009-08-13 Chong Yidong <cyd@stupidchicken.com>
5236
5237 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5238 (xbm_load_image): Caller changed.
64b807c9 5239 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5240
c7baf7e9
NR
52412009-08-13 Nick Roberts <nickrob@snap.net.nz>
5242
5243 * process.c (create_pty): New function.
5244 (Fstart_process): Use it to allow Emacs to just associate a pty
5245 with the buffer. See associated change in gdb-mi.el.
5246 (list_processes_1): Deal with no program name.
5247 (start_process_unwind): Use pid == -2 to mean no process.
5248
1ac9108a
SM
52492009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5250
5251 * cmds.c (nonundocount): New global variable.
5252 (keys_of_cmds): Initialize it.
5253 (Fself_insert_command): Use it to combine upto 20 sequential chars
5254 into a single undo entry, just like the Qself_insert_command code in
5255 keyboard.c does.
5256 Call frame_make_pointer_invisible, also like the Qself_insert_command
5257 code in keyboard.c does.
5258 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5259 than its own local replacement for it.
5260
e267324c
KR
52612009-08-10 Ken Raeburn <raeburn@raeburn.org>
5262
1ac9108a 5263 * fns.c (concat): Don't re-set string length to its current value.
77437343 5264
1ac9108a
SM
5265 * coding.h (decode_coding_string, encode_coding_string):
5266 Use SBYTES macro.
f0bed503 5267
1ac9108a 5268 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5269 (doprnt): Merge with doprnt1, discarding lispstrings code.
5270 * lisp.h (doprnt_lisp): Don't declare.
5271
416e006d
JL
52722009-08-07 Juri Linkov <juri@jurta.org>
5273
5274 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5275
6f7d5780
DN
52762009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5277
5278 * print.c (syms_of_print): Undo previous change.
5279
f19a0f5b
TZ
52802009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5281
5282 * lread.c (read1, syms_of_lread): Read hashtables back from the
5283 readable format.
5284
5285 * print.c (print_preprocess, print_object): Print hashtables fully
5286 and readably.
5287 (syms_of_print): Provide 'hashtable-print-readable.
5288
b9173dc2
AR
52892009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5290
5291 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5292 no family set.
5293 (nsfont_open): Handle case when entity has no family.
5294
1586503c
AR
52952009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5296
5297 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5298 element, not a list, for match case.
5299
087048cd
KH
53002009-07-28 Kenichi Handa <handa@m17n.org>
5301
5302 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5303 rigidly.
5304
5305 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5306 font_parse_xlfd. Check font properties more rigidly.
5307
780c2506
DN
53082009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5309
31fd7c5c
JB
5310 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5311 bsd-common.h.
780c2506 5312
a8c0cc18
KH
53132009-07-27 Kenichi Handa <handa@m17n.org>
5314
5315 * xfaces.c (face_with_height): Call font_clear_prop.
5316
4fbe2306
CY
53172009-07-26 Chong Yidong <cyd@stupidchicken.com>
5318
111d9af3
CY
5319 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5320
5321 * xterm.c (x_term_init): Use Qx.
5322
4fbe2306
CY
5323 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5324
1ac9108a 5325 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5326 (ns_get_color): Revert 2009-07-16 change.
5327
beb0b7f9
EZ
53282009-07-25 Eli Zaretskii <eliz@gnu.org>
5329
5330 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5331 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5332
2baf5e76
KR
53332009-07-25 Ken Raeburn <raeburn@raeburn.org>
5334
1ac9108a
SM
5335 * coding.h (decode_coding_string, encode_coding_string):
5336 Use SCHARS macro.
8890e5f5 5337
2baf5e76 5338 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5339 (load_depth): Delete.
2baf5e76
KR
5340 (Qload_in_progress): New variable.
5341 (load_unwind): Don't reference load_depth or load_in_progress.
5342 (Fload): Likewise; specbind Qload_in_progress instead.
5343 (init_lread): Don't initialize load_depth.
5344 (syms_of_lread): Initialize and protect Qload_in_progress.
5345
1395c6f5
AR
53462009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5347
5348 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5349
4e2f36cf
AR
53502009-07-23 Yavor Doganov <yavor@gnu.org>
5351
5352 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5353
5dd9a6f7
AR
53542009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5355
5356 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5357 Bugs 3792, 3720, 2402.
5358 (ns_lookup_indexed_color): Check for bad index.
5359 (ns_index_color): Init unused slot to 0.
5360 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5361 Bug 3714, possibly 3082.
5dd9a6f7 5362
c902b920
JR
53632009-07-22 Jason Rumney <jasonr@gnu.org>
5364
1ac9108a
SM
5365 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5366 Position IME window at cursor (Bug#2570).
c902b920
JR
5367 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5368 (globals_of_w32fns): Dynamically load functions required above.
5369
5370 * w32term.c (w32_draw_window_cursor): Send message to reposition
5371 any IME window.
5372
090101cf
CY
53732009-07-21 Chong Yidong <cyd@stupidchicken.com>
5374
5375 * fileio.c: Revert 2009-07-16 changes.
5376 (Vauto_save_include_big_deletions): New variable.
5377 (Fdo_auto_save): Disable auto-save only if
5378 auto-save-include-big-deletions is nil.
5379
e6583e3d
CY
53802009-07-21 Chong Yidong <cyd@stupidchicken.com>
5381
5382 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5383 the overflowed pixels into account (Bug#3879).
5384
ece435a5
KR
53852009-07-21 Ken Raeburn <raeburn@raeburn.org>
5386
5387 * lread.c (load_depth): New variable.
5388 (Fload, load_unwind, init_lread): Set it to the load recursion
5389 depth; set load_in_progress as a simple boolean based on the
5390 current load_depth. (Bug#3892)
5391
40b2d973
AR
53922009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5393
5394 * nsfont.m (ns_has_attribute): Remove.
5395 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5396
10be7e0d
JL
53972009-07-18 Juri Linkov <juri@jurta.org>
5398
5399 * process.c (Fset_process_query_on_exit_flag): Mention killing
5400 a buffer in docstring.
5401
fa055055
KH
54022009-07-17 Kenichi Handa <handa@m17n.org>
5403
5404 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5405
042f7b69
YM
54062009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5407
5408 * nsfns.m (Fns_set_alpha): Remove function.
5409 (syms_of_nsfns): Don't defsubr it.
5410
5411 * nsterm.m (ns_get_color): Remove incompatible color formats.
5412 (ns_color_to_lisp): Generate #rrggbb color format string.
5413
4be941e3
RS
54142009-07-16 Richard Stallman <rms@gnu.org>
5415
5416 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5417 (Fset_buffer_auto_saved): Handle save_length = -2.
5418
4e6b227d
CY
54192009-07-16 Chong Yidong <cyd@stupidchicken.com>
5420
5421 * xterm.c (Qx_gtk_map_stock): New var.
5422
5423 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5424 of calling intern each time.
5425
a1856973
YM
54262009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5427
5428 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5429 does tiling.
5430
5431 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5432
497e54d8
KH
54332009-07-14 Kenichi Handa <handa@m17n.org>
5434
72d36834
KH
5435 * font.c (font_vconcat_entity_vectors): New function.
5436 (struct font_sort_data): New member font_driver_preference.
5437 (font_compare): Check font_driver_preference.
5438 (font_sort_entities): The format of the first argument changed.
5439 (font_delete_unmatched): Likewise.
5440 (font_list_entities): The return type changed.
5441 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5442 (font_find_for_lface): Adjuste for the above changes.
5443 Don't suppress the checking of C even if the repertory supports it.
5444 (Flist_fonts): Adjust for the above changes.
72d36834 5445
1ac9108a
SM
5446 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5447 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5448 Reject a font who has adstyle property that is different from a
5449 langname derived from registry property.
1ac9108a 5450 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5451
b6046155
EZ
54522009-07-13 Eli Zaretskii <eliz@gnu.org>
5453
5454 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5455 local copy of dirfilename.
5456
fb6b6049
KH
54572009-07-13 Kenichi Handa <handa@m17n.org>
5458
e2402a5e
KH
5459 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5460 against max_char.
5461
fb6b6049
KH
5462 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5463 calling XSYMBOL (sym).
5464
65156807
EZ
54652009-07-11 Eli Zaretskii <eliz@gnu.org>
5466
1ac9108a
SM
5467 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5468 New function.
5469 (directory_files_internal) [WINDOWSNT]:
5470 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5471 the filesystem of the directory is fast or slow.
5472
5473 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5474 file name.
5475 (is_slow_fs): New function.
5476 (stat): Use it to determine whether to issue more system calls to
5477 get accurate file attributes, when w32-get-true-file-attributes is
5478 `local'.
5479
e0ab5fcf
JD
54802009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5481
5482 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5483 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5484 parameter font-parameter as default to the font dialog.
5485
784ceded
KH
54862009-07-10 Kenichi Handa <handa@m17n.org>
5487
5488 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5489
fb8edc0b
EZ
54902009-07-09 Eli Zaretskii <eliz@gnu.org>
5491
1ac9108a 5492 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5493
fb8edc0b
EZ
5494 * w32.c (stat): Treat UNC file names as residing on remote
5495 drives. (Bug#3542)
5496
635c75b1
KH
54972009-07-09 Kenichi Handa <handa@m17n.org>
5498
5499 * fontset.c (fontset_find_font): Fix previous change.
5500
c1d5ce94
MA
55012009-07-08 Michael Albinus <michael.albinus@gmx.de>
5502
5503 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5504 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5505 error flag.
5506
edb61b39
KH
55072009-07-08 Kenichi Handa <handa@m17n.org>
5508
374bf7e4
KH
5509 * fontset.c (fontset_find_font): Fix the logic of handling
5510 charset_matched.
5511 (font_for_char): Delete unused var.
5512 (generate_ascii_font_name): Delete it.
5513
edb61b39
KH
5514 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5515
5516 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5517 (encode_coding_sjis): Fix the code range check.
5518
0f3f018c
CY
55192009-07-07 Chong Yidong <cyd@stupidchicken.com>
5520
5521 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5522 (Fexpand_file_name): Copy string data properly (Bug#3772).
5523
fcaf6f3a
JD
55242009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5525
5526 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5527 first MapNotify.
5528
6809ca75
KH
55292009-07-07 Kenichi Handa <handa@m17n.org>
5530
5531 * character.h (unibyte_has_multibyte_table): Delete extern.
5532 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5533
5534 * charset.c (Fset_charset_priority): Update charset_unibyte.
5535 (syms_of_charset): Initialize charset_unibyte.
5536
5537 * character.c (unibyte_has_multibyte_table): Delete it.
5538 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5539 charset_unibyte.
5540 (multibyte_char_to_unibyte_safe): Likewise.
5541 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5542
1ac9108a 5543 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5544 (x_produce_glyphs): Likewise.
5545
5546 * .gdbinit (xcharset): Fix the treating $arg0.
5547
ad9e2d54
EZ
55482009-07-04 Eli Zaretskii <eliz@gnu.org>
5549
5550 Emulation of `getloadavg' on MS-Windows.
50426a04 5551 * w32.c: Include float.h.
ad9e2d54
EZ
5552 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5553 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5554 (get_native_system_info, get_system_times): New functions.
5555 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5556 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5557 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5558 g_b_init_get_system_times, and num_of_processors.
5559
0a3472c7
JR
55602009-07-03 Jason Rumney <jasonr@gnu.org>
5561
5562 * w32term.c (w32_initialize): Use standard types.
5563
80904120
EZ
55642009-07-03 Eli Zaretskii <eliz@gnu.org>
5565
5566 * dired.c (Ffile_attributes): Decode user and group names by the
5567 locale's encoding. (Bug#3443)
5568
6978862d
DN
55692009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5570
f8d23104
DN
5571 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5572 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5573
5574 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5575
5576 * term.c (init_tty): Remove spurious #ifdef.
5577
6978862d
DN
5578 * m/mips.h: Mention this file is also used for netbsd.
5579 * m/pmax.h: Remove file.
5580
e044e4fc
JD
55812009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5582
5583 * xterm.h (struct x_display_info): Add invisible_cursor.
5584 (struct x_output): Add current_cursor.
5585
5586 * xterm.c (XTtoggle_invisible_pointer): New function.
5587 (x_define_frame_cursor): Don't define cursor if invisible or the
5588 same as before. Set current_cursor.
5589 (x_create_terminal): Set toggle_invisible_pointer_hook.
5590
5591 * xfns.c (make_invisible_cursor): New function.
5592 (x_set_mouse_color): Call make_invisible_cursor.
5593 Set current_cursor.
5594 (x_window): Set current_cursor.
5595
5596 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5597
5598 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5599 inserting a character.
5600 (read_avail_input): Call frame_make_pointer_visible.
5601
5602 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5603 (frame_make_pointer_invisible, frame_make_pointer_visible):
5604 New functions.
e044e4fc
JD
5605 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5606
5607 * frame.h: Declare frame_make_pointer_invisible and
5608 frame_make_pointer_visible.
5609 (struct frame): Add pointer_invisible.
5610
574c8efa
JD
56112009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5612
7b507248
JD
5613 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5614 frame isn't visible.
5615 (xg_frame_resized): If width/height is -1, get size of window
5616 from X server.
5617
5618 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5619 for MapNotify.
5620
835bdaa7 5621 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5622 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5623 (flush_and_sync): Reintroduce.
574c8efa 5624
3f1c6666 56252009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5626
31fd7c5c 5627 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5628
5629 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5630 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5631
5632 * frame.h: Declare Qsticky.
5633
cad9ef74
JD
5634 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5635
5636 * nsfns.m (ns_frame_parm_handlers): Ditto.
5637
5638 * frame.c: Declare Qsticky.
5639 (frame_parms): Add sticky.
5640
5641 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5642
5643 * xterm.h: Declare x_set_sticky.
5644
5645 * xterm.c (x_set_sticky): New function.
5646
69b16610
JD
5647 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5648 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5649 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5650
5651 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5652
5653 * frame.c: Qmaximized is new.
5654 (x_set_frame_parameters): Do not handle fullscreen specially.
5655 Only set width and height if explicitly set.
5656 (x_set_fullscreen): Handle Qmaximized.
5657 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5658 (syms_of_frame): Initialize Qmaximized.
5659
1ac9108a
SM
5660 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5661 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5662
5663 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5664 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5665 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5666 set gravity to NorthWestGravity when USE_GTK.
5667 (set_wm_state): New function.
31fd7c5c 5668 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5669 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5670 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5671 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5672 to x_real_positions and x_fullscreen_adjust.
5673
5674 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5675 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5676 flush_and_sync.
5677 (xg_height_changed): New function.
5678 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5679 and gtk_window_set_policy. Set frame gravity after parsing the
5680 geometry string.
3f1c6666
JD
5681 (xg_update_frame_menubar, free_frame_menubar)
5682 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5683 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5684 Remove calls to xg_frame_set_char_size.
5685
fd503d99
KH
56862009-07-01 Kenichi Handa <handa@m17n.org>
5687
5688 * keyboard.c (decode_keyboard_code): New function.
5689 (tty_read_avail_input): Decode the input bytes if necessary.
5690
1ac9108a
SM
5691 * coding.c (setup_coding_system):
5692 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5693 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5694 use Qno_conversion.
5695
24ed93fb
YM
56962009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5697
5698 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5699
99061dfc
CY
57002009-06-30 Chong Yidong <cyd@stupidchicken.com>
5701
1ac9108a 5702 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5703
ff90fbde
JR
57042009-06-30 Jason Rumney <jasonr@gnu.org>
5705
5706 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5707 is already loaded.
5708 Set user model ID if supported (bug#1849).
5709
5f445726
JM
57102009-06-29 Jim Meyering <meyering@redhat.com>
5711
5712 Remove useless if-before-xfree test.
5713 * nsfont.m (nsfont_close): Remove useless test.
5714 * term.c (delete_tty): Likewise.
5715 * w32.c (system_process_attributes): Likewise.
5716 * w32font.c (w32font_close): Likewise.
5717 * xfaces.c (x_free_gc): Likewise.
5718 * xselect.c (buffer): Likewise.
5719
b9607587
AS
57202009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5721
5722 * process.c (send_process): Keep decoded string in a local
5723 variable and protect it from GC. (Bug#3521)
5724
89ba96f4
EZ
57252009-06-28 Eli Zaretskii <eliz@gnu.org>
5726
5727 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5728 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5729
098a1589
CY
57302009-06-28 Chong Yidong <cyd@stupidchicken.com>
5731
485422be
CY
5732 * xdisp.c (start_display, handle_face_prop)
5733 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5734 (redisplay_window, try_window_id, produce_image_glyph):
5735 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5736
098a1589
CY
5737 * xterm.c (x_update_window_begin, x_new_focus_frame)
5738 (x_scroll_bar_handle_click, handle_one_xevent)
5739 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5740 (x_make_frame_visible, x_make_frame_invisible)
5741 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5742 code chunks that are now obsolete.
5743
78c38319
MA
57442009-06-28 Michael Albinus <michael.albinus@gmx.de>
5745
5746 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5747 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5748 for hours, when optimzation is enabled.
5749 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5750 (xd_read_message): Make them static.
5751
4189ed40
CY
57522009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5753
5754 * term.c (turn_on_face): Allow simultaneously bold and dim
5755 terminal faces (Bug#3530).
5756
cd9b5e16
CY
57572009-06-27 Chong Yidong <cyd@stupidchicken.com>
5758
4e23bedb
CY
5759 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5760
cd9b5e16
CY
5761 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5762 truncation glyphs (Bug#3686).
5763
07cc3c35
GM
57642009-06-27 Glenn Morris <rgm@gnu.org>
5765
5766 * m/pmax.h: Restore file, with only netbsd portions.
5767
31fd7c5c 57682009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5769
cd9b5e16 5770 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5771
42d4a64f
KH
57722009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5773
5774 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5775 the arg FORCE_SYMBOL.
5776
930fe55b 57772009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5778
5779 * fontset.c (fontset_find_font): When a usable rfont_def is found
5780 in a fallback font-group, make it the first element of the group.
5781
57ebc3fd
CY
57822009-06-24 Chong Yidong <cyd@stupidchicken.com>
5783
5784 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5785
f084f942
KH
57862009-06-24 Kenichi Handa <handa@m17n.org>
5787
5788 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5789 set for C.
5790 (fontset_font): Record the availability of a font for C both in
5791 the realized fontsets of the current one and the default one.
5792
2f686c87
DN
57932009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5794
5795 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5796 conditional, it is always defined on AIX.
5797
666e158e
MB
57982009-06-23 Miles Bader <miles@gnu.org>
5799
5800 * window.c (Vrecenter_redisplay): New variable.
5801 (syms_of_window): Initialize it.
5802 (Qtty): New extern declaration.
5803 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5804
c6da7cd2
JM
58052009-06-23 Jim Meyering <meyering@redhat.com>
5806
1ac9108a
SM
5807 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5808 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5809 pointer dereferences are guaranteed to be valid.
c6da7cd2 5810
678dca3d
KH
58112009-06-23 Kenichi Handa <handa@m17n.org>
5812
74d75424
KH
5813 * emacs.c (main): Call init_font ().
5814
5815 * font.h (Vfont_log): Extern it.
5816 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5817
5818 * font.c (font_sort_entities, font_list_entities)
5819 (font_matching_entity, font_open_entity)
5820 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5821 (Vfont_log): Delete static.
5822 (font_log_env_checked): Delete this variable.
5823 (font_add_log): Don't check font_log_env_checked.
5824 (font_deferred_log): Check Vfont_log.
5825 (init_font): New function.
5826
678dca3d
KH
5827 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5828
5829 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5830
5831 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5832
5833 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5834
5835 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5836 (face_for_char): Don't call font_deferred_log here.
5837 (font_for_char): Likewise.
5838
8a668709
CY
58392009-06-22 Chong Yidong <cyd@stupidchicken.com>
5840
9a01ee33
CY
5841 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5842 rather than its background_width for drawing the overline and
5843 underline (Bug#489).
5844
5845 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5846 rather than its background_width for drawing the overline and
5847 underline (Bug#489).
ec7c9926
CY
5848 (xg_default_icon_file): New variable.
5849 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5850 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5851
8a668709
CY
5852 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5853 (load_overlay_strings): Remove externs.
5854 (fast_find_position): Function deleted.
5855 (mouse_face_from_buffer_pos): New function, based on
5856 fast_find_position. Correctly handle before-strings,
5857 display-strings, and after-strings (Bug#1220).
5858 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5859
4d4c02d8
CY
58602009-06-21 Chong Yidong <cyd@stupidchicken.com>
5861
1ac9108a 5862 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5863 (move_it_in_display_line_to, move_it_in_display_line_to)
5864 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5865
70243478
CY
58662009-06-21 Chong Yidong <cyd@stupidchicken.com>
5867
5868 * Branch for 23.1.
5869
13087e59
JR
58702009-06-21 Jason Rumney <jasonr@gnu.org>
5871
5872 * w32term.c (keyboard_codepage): New static variable.
5873 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5874 (w32_read_socket) [WM_CHAR]: Use it to decode character
5875 input (bug#3237).
5876 (w32_initialize): Initialize it.
5877 (codepage_for_locale): New function.
5878
4735b74e
KR
58792009-06-20 Ken Raeburn <raeburn@raeburn.org>
5880
5881 * process.c (status_message): Pass Faset index argument as a lisp
5882 object, so as to work with USE_LISP_UNION_TYPE.
5883
0e727afa
YM
58842009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5885
5886 * coding.c (Ffind_coding_systems_region_internal):
5887 Cache checked characters.
5888
cf299835
KH
58892009-06-18 Kenichi Handa <handa@m17n.org>
5890
1ac9108a 5891 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5892
90f20d94
AS
58932009-06-18 Andreas Schwab <aschwab@redhat.com>
5894
5895 * xdisp.c (redisplay_internal): Check that the frame is still
5896 live after redisplay of its windows.
5897 (redisplay_windows): Check that the window is still live.
5898
7f1faf1c
KH
58992009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5900
5901 * coding.c (detect_coding_utf_16): Fix previous change.
5902
cc13543e
KH
59032009-06-16 Kenichi Handa <handa@m17n.org>
5904
5905 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5906 UTF-16 by checking the dispersion of Eth and Oth bytes.
5907
977b85f4
AS
59082009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5909
5910 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5911
66bd43d1
KH
59122009-06-15 Kenichi Handa <handa@m17n.org>
5913
5914 * process.c (status_message): Fix previous change. Be sure to
5915 decode a localized string.
5916
cb5ca9c5
YM
59172009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5918
5919 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5920 add comment explaining why.
5921
ec7709ba 59222009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5923
ec7709ba 5924 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5925
4b7f335c
AR
59262009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5927
5928 * nsfont.m (ns_attribute_value): Remove.
5929 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5930 (ns_has_attribute): Shrink the normal range.
5931 (ns_findfonts): Don't worry about requested spec in determining
5932 need for synthItal.
e41820ee 5933 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5934
73b26103
SZ
59352009-06-14 Seiji Zenitani <zenitani@mac.com>
5936
5937 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5938
5753e4da
KH
59392009-06-11 Kenichi Handa <handa@m17n.org>
5940
5941 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5942 overhang for the static composition case.
5943
3561b671
KH
59442009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5945
5753e4da
KH
5946 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5947 overhang for the automatic composition case.
5948
3561b671
KH
5949 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5950 composition case.
5951
852bbd41
CY
59522009-06-10 Chong Yidong <cyd@stupidchicken.com>
5953
5954 * xdisp.c (get_next_display_element): When handling wrap-prefix
5955 and line-prefix, treat \n as a control character (bug#3502).
5956
9903d1e6
KH
59572009-06-10 Kenichi Handa <handa@m17n.org>
5958
5959 * font.c (font_parse_family_registry): Fix for one-char foundry.
5960 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5961
0bcbaaaa
CY
59622009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5963
5964 * process.c (status_message): Fix handling of multibyte signal
5965 string (Bug#3499).
5966
40aa3f13
JM
59672009-06-09 Jim Meyering <meyering@redhat.com>
5968
1f80c7e2
CY
5969 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5970 color name is missing.
40aa3f13 5971
72d51285
KH
59722009-06-09 Kenichi Handa <handa@m17n.org>
5973
5974 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5975 FROM-CODE and TO-CODE are codepoints of CHARSET.
5976
c1d04d84
AR
59772009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5978
5979 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5980
59812009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5982
5983 Changes to support :script/:lang/:otf in NS font driver.
5984 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5985 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5986 indicate not part of font driver interface, and change callers.
5987 (ns_get_family): Remove pointless null check.
5988 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5989 ns_spec_to_descriptor, ns_descriptor_to_entity.
5990 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5991 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5992 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5993 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5994 (ns_get_req_script, ns_accumulate_script_ranges)
5995 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5996 New functions.
5997 (nsfont_list, nsfont_match): Use ns_findfonts.
5998 (nsfont_open): Use font descriptor instead of traits.
5999 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
6000 (dump_glyphstring): Rename to ns_dump_glyphstring.
6001
c7eb9816
AR
6002 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
6003
c1d04d84
AR
6004 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
6005
6006 * fontset.c (fontset_from_font): Remove NS-specific code.
6007
ec7709ba 60082009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
6009
6010 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
6011 nonactive windows.
6012
31fd7c5c 60132009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 6014
1ac9108a 6015 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 6016
68852c13 60172009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
6018
6019 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
6020
6756cd1d
CY
60212009-06-07 Chong Yidong <cyd@stupidchicken.com>
6022
6023 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
6024 account for the overflowing of newlines into the last glyph on the
6025 display line (Bug#3482).
6026
28bf482a
DR
60272009-06-05 David Reitter <david.reitter@gmail.com>
6028
ec7709ba
JB
6029 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
6030 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
6031 Fns_selection_exists_p, Fns_selection_owner_p.
6032
fdb55376
JR
60332009-06-03 Jason Rumney <jasonr@gnu.org>
6034
6035 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
6036 available. (Bug#3379)
6037
05129fbe
KH
60382009-05-29 Kenichi Handa <handa@m17n.org>
6039
1ac9108a
SM
6040 * coding.c (get_translation_table):
6041 Check Venable_character_translation.
05129fbe 6042
ec7709ba 60432009-05-26 David Reitter <david.reitter@gmail.com>
15891144 6044
ec7709ba
JB
6045 * nsterm.m (ns_raise_frame): Only raise frame if visible.
6046 (x_make_frame_visible): Move frame to front rather than calling
15891144 6047 ns_raise_frame().
ec7709ba 6048 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 6049 isn't key window.
ec7709ba 6050 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
6051 drawRect may be called by NSView even if the frame is hidden.
6052
ec7709ba
JB
6053 * nsfns.m (Fx_create_frame): Follow other ports in
6054 determining visibility; default to t. Ensure async_visible is set.
15891144 6055
21f73755
EZ
60562009-05-23 Eli Zaretskii <eliz@gnu.org>
6057
6058 * dired.c (Ffile_attributes): Doc fix.
6059
34001e41
CY
60602009-05-22 Chong Yidong <cyd@stupidchicken.com>
6061
6062 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
6063
46306a17
SM
60642009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
6065
6066 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
6067 and xfont_scratch_props.
6068 (syms_of_xfont): Do it here instead.
6069 (xfont_find_ccl_program): Delete, unused.
6070 (xfont_open): Delete unused var `i'.
6071
ef6e0694
KH
60722009-05-21 Kenichi Handa <handa@m17n.org>
6073
6074 * fontset.c (Qlatin): Don't make it static.
6075
46306a17
SM
6076 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
6077 New functions.
ef6e0694
KH
6078 (xfont_scripts_cache, xfont_scratch_props): New variables.
6079 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
6080 (xfont_list_pattern): Argument changed. Callers changed.
6081 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
6082 (xfont_list): Don't reject a font spec with :script property.
6083 (xfont_has_char): Fix setting of encoding.
6084 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
6085 xfont_scratch_props.
6086
60872009-05-19 Kenichi Handa <handa@m17n.org>
6088
46306a17 6089 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
6090 Callers changed.
6091
60922009-05-18 Kenichi Handa <handa@m17n.org>
6093
6094 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
6095
ac71ced7
SM
60962009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6097
6098 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
6099 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
6100
1c6d1051
YM
61012009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6102
6103 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
6104 (x_delete_terminal): Dissociate resource database from display and
6105 then call XrmDestroyDatabase before closing display.
6106
9b9b779c
AR
61072009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6108
6109 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
6110 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
6111 whether selected frame is viable before raising it (based on patch
6112 by David Reitter), and improve commentary.
6113 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6114
cccd42d5
KH
61152009-05-15 Kenichi Handa <handa@m17n.org>
6116
6117 * font.c (Ffont_spec): Check arguments.
6118
337fbd17
CY
61192009-05-14 Chong Yidong <cyd@stupidchicken.com>
6120
6121 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6122 weight when testing attributes (Bug#3282).
6123
47a6002f
JD
61242009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6125
6126 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6127 what we expect to get in the next ConfigureNotify event.
6128
9cb363db
YM
6129 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6130 before Xft one (Bug#1696).
6131
b9126609
CY
61322009-05-07 David Reitter <david.reitter@gmail.com>
6133
6134 * nsfns.m (Fx_display_planes): Compute bitplanes using
6135 NSBitsPerPixelFromDepth (Bug#3207).
6136
27a69fd9
CY
61372009-05-10 Chong Yidong <cyd@stupidchicken.com>
6138
6139 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6140
00f37552
TTN
61412009-05-10 Ulrich Mueller <ulm@gentoo.org>
6142
6143 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6144
2d82a920
DR
61452009-05-07 David Reitter <david.reitter@gmail.com>
6146
ec7709ba
JB
6147 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6148 Respect mouse face background.
2d82a920 6149
46b0d52d
DR
61502009-05-07 David Reitter <david.reitter@gmail.com>
6151
ec7709ba
JB
6152 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6153 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6154 in ns_update_begin and ns_update_end.
6155
ce1b23bb
SM
61562009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6157
5996e1b7
SM
6158 * nsfns.m (ns_get_screen): Rewrite.
6159 Don't presume selected-frame is of type `ns'.
6160
ba98e3a0
SM
6161 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6162 all drivers.
6163
ce1b23bb
SM
6164 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6165
bcda200f
YM
61662009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6167
6168 * keyboard.h (add_user_signal): Fix typo in extern.
6169
6170 * lisp.h (add_user_signal): Remove extern.
6171
6172 * unexelf.c (unexec): Consider a section to precede the .bss section
6173 if its addresses overlap that of .bss.
6174 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6175 instead of dumping process.
6176
864660a2
SM
61772009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6178
6179 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6180
50da4e56
SM
61812009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6182
6183 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6184
51520a1a
DN
61852009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6186
6187 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6188 any statements.
6189
409ea3a1
AS
61902009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6191
59c4c60f
AS
6192 * process.c (read_process_output): Make sure the current buffer is
6193 always restored.
6194
409ea3a1
AS
6195 * coding.c (record_conversion_result): Don't modify
6196 Vlast_code_conversion_error for successful result.
6197 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6198
56f00ed2
KH
61992009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6200
6201 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6202 (load_charset_map): Remove unnecessary code.
56f00ed2 6203
4491c9d2
DR
62042009-04-30 David Reitter <david.reitter@gmail.com>
6205
35f5b128 6206 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6207 through f24.
6208
6970f632
CY
62092009-04-30 Chong Yidong <cyd@stupidchicken.com>
6210
6211 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6212
6213 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6214 face_at_buffer_position.
6215 (face_before_or_after_it_pos, get_next_display_element)
6216 (note_mouse_highlight): Update face_at_buffer_position call.
6217
6218 * term.c (term_mouse_highlight):
6219 * msdos.c (IT_note_mouse_highlight):
6220 * fontset.c (Finternal_char_font):
35f5b128 6221 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6222
6223 * dispextern.h (face_at_buffer_position): Update prototype.
6224
0c616f63
KH
62252009-04-30 Kenichi Handa <handa@m17n.org>
6226
35f5b128 6227 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6228
ad3aaf33
AS
62292009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6230
6231 * callproc.c (Fcall_process): Fix GC protection. Make sure
6232 current buffer is always restored.
6233
c3c963a0
YM
62342009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6235
6236 * atimer.c (init_atimer): Also clear stopped_atimers.
6237
6238 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6239
7e3386cb
YM
6240 * process.c (create_process): Clean up merger residues of
6241 2008-07-17 change.
6242
91f68422
CY
62432009-04-29 Ulrich Mueller <ulm@gentoo.org>
6244
6245 * lread.c (Vread_circle): New variable.
6246 (read1): Disable recursive read if Vread_circle is nil.
6247
24b34550
KH
62482009-04-29 Kenichi Handa <handa@m17n.org>
6249
6250 * fontset.h (set_default_ascii_font): Delete extern.
6251
6252 * fontset.c (set_default_ascii_font): Delete this unused function.
6253
6254 * frame.c (x_set_font): When ARG is a font-object, check if the
6255 font-object matches with the ASCII font-spec of the frame's
9c358bda 6256 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6257
77bf07e1
AS
62582009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6259
6260 * fns.c (Flocale_info): Protect vector from GC during decoding.
6261
6262 * process.c (Fstart_process): Protect argv strings from GC during
6263 encoding.
6264
2c55aacf
AS
62652009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6266
6267 * sysdep.c: Include <ctype.h>.
6268
b892d3c9
DR
62692009-04-27 David Reitter <david.reitter@gmail.com>
6270
35f5b128 6271 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6272 Remove commented-out code.
6273
9d0644c4
JB
62742009-04-26 Johan Bockgård <bojohan@gnu.org>
6275
6276 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6277
b7053016
JR
62782009-04-25 Jason Rumney <jasonr@gnu.org>
6279
6280 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6281
4e8231f3
YM
62822009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6283
6284 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6285 Swap bytes in short integer if fringe bitmap width > 8.
6286
493dcf2c
KH
62872009-04-23 Kenichi Handa <handa@m17n.org>
6288
6289 * xfaces.c (Fx_list_fonts): If a font size is specified in
6290 PATTERN, set it in returned scalable fonts.
6291
401e9e57
CY
62922009-04-22 Chong Yidong <cyd@stupidchicken.com>
6293
708e05dc
CY
6294 * keyboard.c (Fset_input_meta_mode): Doc fix.
6295
6296 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6297
1ac9108a 6298 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6299
6300 * coding.c (Fterminal_coding_system): Doc fix.
6301
6302 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6303 (Fx_display_pixel_height, Fx_display_planes)
6304 (Fx_display_color_cells, Fx_server_max_request_size)
6305 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6306 (Fx_display_mm_height, Fx_display_mm_width)
6307 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6308 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6309 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6310 (check_x_display_info): Handle terminal objects instead of
6311 terminal ids.
6312
401e9e57
CY
6313 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6314 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6315 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6316 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6317
df80c7f0
KH
63182009-04-21 Kenichi Handa <handa@m17n.org>
6319
5a8f12af 6320 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6321 (font_score): Check AVGWIDTH too.
908567ef 6322
df80c7f0
KH
6323 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6324 worst case.
1ac9108a
SM
6325 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6326 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6327
705af33f
JR
63282009-04-19 Jason Rumney <jasonr@gnu.org>
6329
6330 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6331 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6332
6333 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6334 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6335 get_phys_cursor_geometry.
6336
b71ac3dd 6337 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6338 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6339 using get_phys_cursor_geometry.
6340
6341 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6342 correctly calculated.
6343
dc2933eb
JD
63442009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6345
1ac9108a
SM
6346 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6347 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6348 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6349 is deprecated.
6350
973e7849
AS
63512009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6352
6353 * font.c (font_put_frame_data): Use xfree instead of free.
6354
314d66f4
JB
63552009-04-17 Juanma Barranquero <lekktu@gmail.com>
6356
6357 * w32font.c (Qja, Qko): Remove declarations.
6358 (syms_of_w32font): Don't DEFSYM them.
6359
cf702558
CY
63602009-04-17 Chong Yidong <cyd@stupidchicken.com>
6361
6362 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6363
6364 * font.h (Qja, Qko): Extern them.
6365
6366 * ftfont.c (Qja, Qko): Remove declarations.
6367
6368 * xfont.c (Qja, Qko): Remove declarations.
6369
b50504f5
KH
63702009-04-17 Kenichi Handa <handa@m17n.org>
6371
bde25748
KH
6372 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6373 string from a vector to handle Latin-1 characters correctly.
6374
b50504f5
KH
6375 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6376 entity even if the cache hits.
6377
f4646fff
AS
63782009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6379
6380 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6381 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6382
e7deaab0
AS
6383 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6384 * lisp.h: Adjust prototypes.
6385
0a0e7d49
CY
63862009-04-16 Chong Yidong <cyd@stupidchicken.com>
6387
6388 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6389 change (Bug#3003).
6390
3c908a57
KH
63912009-04-16 Kenichi Handa <handa@m17n.org>
6392
1ac9108a 6393 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6394
6395 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6396 adstyle.
6397
6398 * ftfont.c (Qja, Qko): Don't make them static.
6399 (enum ftfont_cache_for): New enum.
6400 (fc_charset_table): Undo the previous change.
6401 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6402 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6403 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6404 non-scarable font, try to get AVERAGE_WIDTH.
6405 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6406 Change ft_face_cache from a list of a hash-table. Don't check
6407 `ja' and `ko' adstyle here.
6408 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6409 FTFONT_CACHE_FOR_CHARET.
6410 (ftfont_get_charset): Undo the previous change.
1ac9108a 6411 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6412 (ftfont_close): Likewise.
6413 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6414
6415 * font.c (font_sort_entites): Change the meaning of the arg
6416 BEST-ONLY. Don't optimize for VEC of lenght 1.
6417 (font_select_entity): Just return the value of font_sort_entites.
6418
6419 * xfaces.c (merge_face_vectors): Reflect font properties in
6420 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6421 font_clear_prop if a face attribute doesn't change.
6422
3c908a57
KH
6423 * charset.h (charset_ksc5601): Extern it.
6424
6425 * charset.c (charset_ksc5601): New variable.
6426 (Fdefine_charset_internal): Set charset_ksc5601.
6427 (init_charset_once): Initialize charset_ksc5601 to -1.
6428
d65859c3
DN
64292009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6430
6431 * fileio.c (history_delete_duplicates): Remove unused declaration.
6432
6433 * callint.c (history_delete_duplicates): New declaration.
6434 (Fcall_interactively): Remove command history duplicates when
6435 history_delete_duplicates is true.
6436
3ba010e5
EZ
64372009-04-14 Eli Zaretskii <eliz@gnu.org>
6438
6439 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6440
06f19b91
KH
64412009-04-14 Kenichi Handa <handa@m17n.org>
6442
6443 * font.c (Ffont_info): Fix docstring. Fix the second element of
6444 the returned value (bug#2949).
6445
2cce8bfc
CY
64462009-04-14 Chong Yidong <cyd@stupidchicken.com>
6447
6448 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6449
d156542d
KH
64502009-04-14 Kenichi Handa <handa@m17n.org>
6451
6452 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6453 encoding charset is ascii_compatible.
6454
6455 * charset.c (Fdefine_charset_internal): Make charset
6456 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6457 code_offset is 0, and covers all ASCII characters.
6458
86fa089e
SM
64592009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6460
6461 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6462 (ns_string_to_pasteboard_internal):
6463 * nsmenu.m (process_dialog):
6464 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6465 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6466 * lisp.h (Fx_load_color_file): Declare.
6467
a8a3728b
KH
64682009-04-13 Kenichi Handa <handa@m17n.org>
6469
1ac9108a 6470 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6471 (font_select_entity): Suppress the code to optimize for the same
6472 kind of fonts.
6473 (font_load_for_lface): Get a font that supports at least ASCII
6474 characters.
6475
6476 * ftfont.c (Qja, Qko): New variables.
6477 (fc_charset_table): Delete uniquifier data for iso8859-1.
6478 (ftfont_get_latin1_charset): New function.
6479 (get_adstyle_property): New function.
6480 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6481 bitmap fonts.
6482 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6483 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6484 `ko' or `ja'.
6485 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6486 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6487 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6488 property.
6489 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6490 (syms_of_ftfont): DEFSYM Qja and Qko.
6491
483670b5
KH
64922009-04-09 Kenichi Handa <handa@m17n.org>
6493
12b55765
KH
6494 * charset.c (map_charset_chars): For a charset of `superset'
6495 method, fix calculation of code range.
6496
483670b5
KH
6497 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6498 from the list of extra properties.
6499 (font_clear_prop): Be sure to delete `:name' font property.
6500
57d3b93b
KH
65012009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6502
b4b2c2ca
YM
6503 * dispnew.c (redraw_overlapping_rows): Fix detection of
6504 overlapping for topmost and bottommost rows.
6505
1ac9108a 6506 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6507
472c3609
JR
65082009-04-06 Jason Rumney <jasonr@gnu.org>
6509
6510 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6511
ab193662
KH
65122009-04-06 Kenichi Handa <handa@m17n.org>
6513
6514 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6515
6516 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6517
0c26f026
KH
65182009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6519
6520 * ftfont.c (ftfont_open): Fix checking of the return value of
6521 FT_Load_Char. Fix setting font->underline_thickness.
6522
e173bbce
CY
65232009-04-04 Chong Yidong <cyd@stupidchicken.com>
6524
6525 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6526 (Fterminal_parameters, Fterminal_parameter)
6527 (Fset_terminal_parameter): In doc string, refer to terminal
6528 objects rather than terminal ids.
6529
693a2698
EZ
65302009-04-04 Eli Zaretskii <eliz@gnu.org>
6531
6532 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6533 ret_lim_data. (Bug#2867)
6534
d5221487
CY
65352009-04-03 Chong Yidong <cyd@stupidchicken.com>
6536
6537 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6538 so they don't get wider than the window, matching 2006-01-23
6539 change to the partner function in xdisp.c (Bug#2800).
6540
223509a3
KH
65412009-04-03 Kenichi Handa <handa@m17n.org>
6542
6543 * print.c (print_object): Make each lowest sub_char_table start a
6544 new line (Bug#2866).
6545
74fcd0b1
KH
65462009-04-02 Kenichi Handa <handa@m17n.org>
6547
6548 * fontset.c (fontset_font): Record no-font when a fontset
6549 explicitly tells not to try another font-specs.
6550
c542407d
SM
65512009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6552
6553 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6554
e3869731
KH
65552009-03-30 Kenichi Handa <handa@m17n.org>
6556
d8d2f142
KH
6557 * fontset.c (fontset_from_font): Specify only registry in a
6558 font-spec for all characters supported by that registry.
6559
e3869731
KH
6560 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6561 even if HAVE_M17N_FLT is not defined.
6562
5da5f805
CY
65632009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6564
6565 * ftfont.c: Conditionalize prototyping and use of
6566 ftfont_variation_glyphs.
6567
ab226c50
SM
65682009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6569
9628fed7
SM
6570 * frame.c (delete_frame): Work around compiler bug.
6571
6572 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6573 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6574 Some more EMACS_INT.
6575 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6576
6577 * xdisp.c (dump_glyph): Fix typo.
6578
ae19ba7c
SM
6579 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6580 (adjust_markers_gap_motion, adjust_markers_for_delete)
6581 (adjust_markers_for_insert, adjust_point)
6582 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6583 (make_gap, copy_text, count_size_as_multibyte, insert)
6584 (insert_and_inherit, insert_before_markers)
6585 (insert_before_markers_and_inherit, insert_1)
6586 (count_combining_before, count_combining_after, insert_1_both)
6587 (insert_from_string, insert_from_string_before_markers)
6588 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6589 (insert_from_buffer_1, adjust_after_replace)
6590 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6591 (replace_range_2, del_range, del_range_1, del_range_byte)
6592 (del_range_both, del_range_2, modify_region)
6593 (prepare_to_modify_buffer, signal_before_change)
6594 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6595 for buffer positions and sizes.
6596 * lisp.h: Adjust prototypes accordingly.
6597
6598 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6599 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6600 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6601
ab226c50
SM
6602 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6603
46dfb8fb
JD
66042009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6605
6606 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6607 lines and columns so we keep the same pixel height and width.
6608
6609 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6610 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6611 (x_handle_net_wm_state): New function to update frame parameter
6612 fullscreen.
6613 (x_term_init): Initialize atoms for _NET_WM_STATE.
6614
6615 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6616
d347e494
SM
66172009-03-27 Kevin Ryde <user42@zip.com.au>
6618
6619 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6620 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6621 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6622 (Fgpm_mouse_stop): Pass that new parameter.
6623 * termhooks.h (close_gpm): Adjust prototype.
6624
84db11d6
SM
66252009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6626
c95a5008
SM
6627 * lisp.h (Fx_focus_frame): Declare.
6628
84db11d6
SM
6629 * callint.c (Fcall_interactively): For '^' just delegate the work to
6630 handle-shift-selection.
6631 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6632
0a1958d6
CY
66332009-03-24 Chong Yidong <cyd@stupidchicken.com>
6634
0bfdff23
CY
6635 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6636
0a1958d6
CY
6637 * data.c (Qinteractive_form): New variable.
6638 (Finteractive_form): Use it.
6639
6640 * eval.c (Fcommandp): Use Qinteractive_form.
6641
58aec0d6
JR
66422009-03-24 Jason Rumney <jasonr@gnu.org>
6643
6644 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6645 Calculate total size precisely. Decode environment variables
6646 before substituting. (Bug#38)
6647
553dd618
KH
66482009-03-24 Kenichi Handa <handa@m17n.org>
6649
6650 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6651 encoding (Bug#2722).
553dd618 6652
c39ea606
JD
66532009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6654
6655 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6656 that gdpy is set.
6657
bc9b2b5e
AM
66582009-03-22 Alan Mackenzie <acm@muc.de>
6659
6660 * callint.c (Finteractive): Clarify the doc string - even
6661 promptless elements need \n separators.
6662
9f995a76
JR
66632009-03-22 Jason Rumney <jasonr@gnu.org>
6664
6665 * w32term.c (syms_of_w32term): Doc fix for
6666 x-use-underline-position-properties.
6667
22749e9a
EZ
66682009-03-21 Eli Zaretskii <eliz@gnu.org>
6669
6670 * w32.c (getpwuid): Change argument type to unsigned.
6671 (struct w32_id): Change type of `rid' member to unsigned.
6672 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6673 argument ID to unsigned. All callers changed.
6674 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6675
e00553bf
EZ
66762009-03-20 Eli Zaretskii <eliz@gnu.org>
6677
6678 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6679 negative, produce a float value.
6680
6681 * dired.c (make_uid, make_gid): New functions.
6682 (Ffile_attributes): Use them to avoid negative UID and GID.
6683
f761d6b6
JB
66842009-03-20 Juanma Barranquero <lekktu@gmail.com>
6685
6686 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6687 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6688 Fix typos in docstrings.
6689
d507f8d7
KH
66902009-03-19 Kenichi Handa <handa@m17n.org>
6691
6692 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6693 changed, use font_load_for_lface to get a new font object.
6694 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6695
6696 * frame.c (x_set_font): Handle the case that ARG is a cons.
6697
c68845e0
GM
66982009-03-19 Glenn Morris <rgm@gnu.org>
6699
6700 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6701
bfa49dd1
CY
67022009-03-19 Chong Yidong <cyd@stupidchicken.com>
6703
6704 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6705
8458d4c1
KH
67062009-03-19 Kenichi Handa <handa@m17n.org>
6707
6708 * charset.c (load_charset_map_from_file): When a mapfile can't be
6709 loaded, signal an error.
6710
78e7d1fe
EZ
67112009-03-18 Eli Zaretskii <eliz@gnu.org>
6712
6713 * dired.c (Ffile_attributes): Make sure UID and GID are always
6714 positive, even if the value is too large for a positive EMACS_INT.
6715 Doc fix.
6716
6717 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6718
5da9fdfa
YM
67192009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6720
6721 * xmenu.c (xdialog_show): Move Fredisplay call ...
6722 (Fx_popup_dialog): ... here.
6723
7519c40d
SM
67242009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6725
6726 * dired.c (file_name_completion): Disable the first optimization just
6727 installed, since it is not implemented correctly.
6728
2cd298e2
SM
67292009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6730
6731 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6732 only if the entry can affect bestmatch.
2cd298e2
SM
6733 Stop the search early, as Ftry_completion already does.
6734
48d37adf
CY
67352009-03-17 Chong Yidong <cyd@stupidchicken.com>
6736
e10c9c93 6737 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6738
9286b16a
CY
67392009-03-15 Chong Yidong <cyd@stupidchicken.com>
6740
6741 * keyboard.c (parse_menu_item): Don't display remappings as menu
6742 equivalent bindings (Bug#788).
6743
f7b146dc
JR
67442009-03-15 Jason Rumney <jasonr@gnu.org>
6745
6746 * w32term.h (WM_EMACS_PAINT): New message.
6747 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6748 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6749 before passing to lisp thread. (Bug#950)
6750
f761d6b6 67512009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6752
d93f9575
CY
6753 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6754 variable as it was never reset.
6755 (ns_term_init): Remove initialization of Lisp-settable defaults
6756 and ns_expand_space.
6757 (-setPanelFromDefaultValues): Remove ns_expand_space.
6758 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6759 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6760 i.e. no additional spacing, similar to Carbon port.
6761
d93f9575
CY
6762 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6763 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6764
305018ec
JD
67652009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6766
6767 * sound.c (alsa_configure): Remove call to deprecated
6768 snd_pcm_sw_params_set_xfer_align.
6769
f761d6b6 67702009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6771
6772 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6773 after clicking in a detached tool bar.
6774 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6775
46e722a9
SM
67762009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6777
348db3dd
SM
6778 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6779 int/Lisp_Object mixup).
46e722a9 6780
a3d16f39
KH
67812009-03-13 Kenichi Handa <handa@m17n.org>
6782
6783 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6784 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6785 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6786 (set_fontset_font): Change ARG to a vector. Handle range_list in
6787 ARG correctly.
6788 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6789 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6790 the above change.
6791 (fontset_from_font): Fix previous change.
fe24f56a 6792 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6793 entry. If FONTSET is the default fontset, don't set the extra
6794 slot of the returning char-table.
6795
b066e6b6
JB
67962009-03-12 Juanma Barranquero <lekktu@gmail.com>
6797
6798 * nsfns.m (Fx_close_connection): Doc fix.
6799 (Fns_do_applescript): Reflow docstring.
6800 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6801 (Fx_display_pixel_width, Fx_display_pixel_height)
6802 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6803 Fix typos in docstrings.
6804 (Fns_set_alpha): Fix typos in error messages.
6805
d472514e 68062009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6807
d472514e 6808 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6809 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6810 were used for such events.
6811
d472514e
JB
6812 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6813 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6814
d472514e 6815 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6816 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6817
fb930676
KH
68182009-03-11 Kenichi Handa <handa@m17n.org>
6819
ff85581a
KH
6820 * font.h (font_open_by_spec): Extern it.
6821
c50b7e98
KH
6822 * font.c (font_open_by_spec): New function.
6823 (font_open_by_name): Use font_open_by_spec.
6824
fb930676
KH
6825 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6826 fontset of the frame.
6827
6828 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6829 modify the default font of frames that use this fontset.
6830 (num_auto_fontsets): New variable.
6831 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6832 name. Be sure to set FONTSET_ASCII to the correct font name.
6833 (update_auto_fontset_alist): New function.
6834
df4e8455
JB
68352009-03-11 Juanma Barranquero <lekktu@gmail.com>
6836
6837 * makefile.w32-in: Update dependencies.
6838
0a375797
AR
68392009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6840
6841 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6842
61313fa3
SM
68432009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6844
6845 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6846
b55103fb
CY
68472009-03-10 Chong Yidong <cyd@stupidchicken.com>
6848
6849 * lread.c (Feval_buffer): Doc fix.
6850
dde2559c
KH
68512009-03-09 Kenichi Handa <handa@m17n.org>
6852
6853 * charset.c (Qfile_name_handler_alist): Extern it.
6854 (load_charset_map_from_file): Temporarily bind
6855 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6856
df4e8455 68572009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6858
47f588bb
GM
6859 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6860 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6861
4ddf94bd
AR
68622009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6863
4c9bdfc2
AR
6864 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6865 (x_set_window_size): Change back to calculated method of setting
6866 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6867 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6868 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6869
fe41ae9e
AR
6870 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6871
4c9bdfc2
AR
6872 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6873 accelerator in parens under GNUstep.
6874
825d0875
KH
68752009-03-06 Kenichi Handa <handa@m17n.org>
6876
6877 These changes are to detect incorrect composition sequence without
f3b3be74 6878 looking ahead the source. (Bug#2370)
825d0875
KH
6879
6880 * coding.h: Include "composite.h".
6881 (enum compisition_state): New enum.
6882 (struct compisition_status): New struct.
6883 (struct iso_2022_spec): New member cmp_status.
6884 (struct emacs_mule_spec): New struct.
6885 (struct coding_system): New members ctext_extended_segment_len and
6886 embedded_utf_8. Change the union member
6887 spec.emacs_mule_full_support to spec.emacs_mule.
6888
6889 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6890 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6891 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6892 (ADD_COMPOSITION_DATA): New arg nbytes.
6893 (emacs_mule_char): New arg cmp_status.
6894 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6895 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6896 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6897 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6898 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6899 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6900 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6901 (EMACS_MULE_COMPOSITION_END): New macro.
6902 (emacs_mule_finish_composition): New function.
6903 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6904 (decode_coding_emacs_mule): Avoid long looking ahead while
6905 handling composition.
6906 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6907 (ENCODE_COMPOSITION_RULE): New macro.
6908 (finish_composition): New function.
6909 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6910 (DECODE_COMPOSITION_START): New implementation.
6911 (DECODE_COMPOSITION_END): Likewise.
6912 (STORE_COMPOSITION_RULE): New macro.
6913 (decode_coding_iso_2022): Avoid long looking ahead while handling
6914 composition, CTEXT extended segment, and embedded UTF-8.
6915 (setup_coding_system): For a coding of type iso-2022, reset
6916 CODING_ISO_EXTSEGMENT_LEN (coding) and
6917 CODING_ISO_EMBEDDED_UTF_8 (coding).
6918 (get_translation): Delete arguments last_block, from_nchars,
6919 to_nchars. Callers changed.
6920 (produce_chars): Don't modify charbuf. Adjusted for the change of
6921 get_translation.
98a326f7 6922 (produce_composition): Adjust for the new annotation sequence.
825d0875 6923 (handle_composition_annotation): Likewise.
98a326f7 6924 (consume_chars): Adjust for the change of get_translation.
825d0875 6925
ccbc4452
AR
69262009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6927
4ddf94bd 6928 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6929
988a7ddb
KH
69302009-03-05 Kenichi Handa <handa@m17n.org>
6931
6932 * font.c (font_select_entity): New function.
6933 (font_find_for_lface): Use font_select_entity to select a font.
6934
6935 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6936 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6937 font with C restriction.
6938
98a326f7 69392009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6940
be1bce46 6941 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6942
10ea2b82
JR
69432009-03-04 Jason Rumney <jasonr@gnu.org>
6944
2c93b248 6945 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6946 characters that have already been read. (Bug#2569)
2c93b248 6947
10ea2b82
JR
6948 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6949 Log an error message if check_image_size failed.
6950 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6951 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6952
71a0c011
EZ
69532009-03-02 Eli Zaretskii <eliz@gnu.org>
6954
6955 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6956 when decoding process output.
6957
2f63bba8
RS
69582009-03-01 Richard M Stallman <rms@gnu.org>
6959
6960 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6961
6962 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6963
0a9564cb
EZ
69642009-02-28 Eli Zaretskii <eliz@gnu.org>
6965
6966 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6967 (decode_coding_emacs_mule, decode_coding_iso_2022)
6968 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6969 (decode_coding_raw_text, decode_coding_charset)
6970 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6971 Honor inhibit-eol-conversion. (Bug #2186)
6972
449148b3
JR
69732009-02-28 Jason Rumney <jasonr@gnu.org>
6974
6975 * coding.c (detect_coding_charset): If not checking latin extra,
6976 fail on characters between 0x80 and 0xA0. (Bug#2354)
6977
a4aee864
EZ
69782009-02-28 Eli Zaretskii <eliz@gnu.org>
6979
6980 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6981 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6982
d88bee5a
GM
69832009-02-27 Glenn Morris <rgm@gnu.org>
6984
6985 * callint.c (Finteractive): Doc fix.
6986
a808f22d
KH
69872009-02-27 Kenichi Handa <handa@m17n.org>
6988
6989 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6990
caf8d60c
CY
69912009-02-27 Chong Yidong <cyd@stupidchicken.com>
6992
6993 * font.c (font_style_to_value): Set value for unknown symbols to
6994 100 instead of 255.
b61137ea
CY
6995 (weight_table, slant_table, width_table): Treat "unspecified" as
6996 the default value.
caf8d60c 6997
1a0de25c
JB
69982009-02-26 Juanma Barranquero <lekktu@gmail.com>
6999
7000 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
7001
8fc45744
JB
70022009-02-25 Juanma Barranquero <lekktu@gmail.com>
7003
107bd7d1
JB
7004 * lread.c (Fload): Stop checking Vloads_in_progress and signal
7005 error as soon as a recursive load is detected.
8fc45744 7006
f097e223
AR
70072009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7008
7009 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
7010 before caching.
7011
8810a12f
KH
70122009-02-24 Kenichi Handa <handa@m17n.org>
7013
7014 * fontset.c (fontset_find_font): Fix the condition for checking
7015 unavailable font.
7016
2c7d1565
GM
70172009-02-24 Glenn Morris <rgm@gnu.org>
7018
7019 * xfaces.c (Finternal_set_font_selection_order): Remove leading
7020 whitespace that confuses documentation.
7021
a20878b6
MB
70222009-02-23 Miles Bader <miles@gnu.org>
7023
7024 * process.c (Flist_system_processes, Fprocess_attributes)
7025 (syms_of_process): Rename `system-process-attributes' to
7026 `process-attributes'.
7027
b3b58c01
AS
70282009-02-22 Andreas Schwab <schwab@linux-m68k.org>
7029
1b3b981b
AS
7030 * coding.h (struct coding_system): Make safe_charsets a pointer to
7031 unsigned char.
7032 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
7033 being 255.
7034 (SAFE_CHARSET_P): Likewise.
7035 (setup_iso_safe_charsets): Properly setup safe_charsets.
7036 (Fdefine_coding_system_internal): Likewise.
7037 (setup_coding_system): Likewise. Remove unneeded casts.
7038 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
7039 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
7040 unneeded casts.
7041
b3b58c01
AS
7042 * insdel.c (del_range_2): Don't modify gap contents when called
7043 from decode_coding_object. (Bug#1809)
7044
0b6f228c
CY
70452009-02-21 Chong Yidong <cyd@stupidchicken.com>
7046
7047 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
7048 Qfont_object.
7049 (Ftype_of): Recognize font objects.
7050
7051 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
7052
7053 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
7054 moved to data.c.
7055
52f8870b
AR
70562009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7057
7058 * nsterm.m (x_make_frame_invisible): Unset async_visible,
7059 async_iconified. Based on a patch by Christian Lynbech
7060 <christian.lynbech@tieto.com>.
7061 (EmacsView-windowDidMiniaturize:): Unset async_visible.
7062
7087d5e9
GM
70632009-02-20 Glenn Morris <rgm@gnu.org>
7064
7065 * syntax.c (Fskip_chars_forward): Fix doc typo.
7066
41d2ceef
CY
70672009-02-20 Chong Yidong <cyd@stupidchicken.com>
7068
7069 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
7070
1a3b7ca6
CY
70712009-02-19 Chong Yidong <cyd@stupidchicken.com>
7072
7073 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
7074
73cce38d
KH
70752009-02-19 Kenichi Handa <handa@m17n.org>
7076
7077 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 7078 Don't overflow coding->carryover. (Bug#2370)
73cce38d 7079
a51092ee
DN
70802009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
7081
7082 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
7083
c423ecca
KH
70842009-02-18 Kenichi Handa <handa@m17n.org>
7085
7086 * font.c (font_check_otf_features): Fix handling of `nil' element.
7087 (Ffont_spec): Describe :lang and :otf in the docstring.
7088
4c1958f4
AS
70892009-02-16 Andreas Schwab <schwab@suse.de>
7090
7091 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
7092 string.
7093
5704f39a
KH
70942009-02-16 Kenichi Handa <handa@m17n.org>
7095
7096 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 7097 (Bug#1723)
5704f39a 7098
8f0085aa
CY
70992009-02-14 Chong Yidong <cyd@stupidchicken.com>
7100
a057d86a 7101 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
7102
7103 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
7104 (handle_line_prefix): Suppress wrapping of wrap prefixes.
7105
aff01dd9
EZ
71062009-02-14 Eli Zaretskii <eliz@gnu.org>
7107
7108 * msdos.c (MAX_SCREEN_BUF): New macro.
7109 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
7110 Encode the entire run of glyphs sharing the same face, instead of
7111 doing that one glyph at a time (fixes a bug with displaying
7112 double-size characters).
7113
ba301db3
AR
71142009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7115
7116 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7117
7118 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7119 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7120 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7121
7122 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7123 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7124
51d861de
SM
71252009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7126
ac146f82 7127 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7128 invisible areas.
7129
7fed8996
JR
71302009-02-12 Jason Rumney <jasonr@gnu.org>
7131
631ea4fb
JR
7132 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7133 (add_font_entity_to_list): Call check_face_name even when family
7134 is unspecified.
7135
cb4a3e42
JR
7136 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7137 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7138 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7139
7fed8996 7140 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7141 raster fonts. (Bug#2219)
7fed8996 7142
895416e3
KH
71432009-02-12 Kenichi Handa <handa@m17n.org>
7144
7145 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7146 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7147 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7148 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7149 (find_automatic_composition): While looking forward and backward,
7150 check static composition. Fix where to stop looking forward.
7151 (composition_adjust_point): Fix checking of static composition.
7152 (Fcomposition_get_gstring): Pay attention to
1dacf998 7153 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7154
7155 * lisp.h (fast_looking_at): Extern it.
7156
7157 * search.c (fast_looking_at): New function.
7158
51d861de 7159 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7160 <struct glyph>.u.cmp.to.
7161 (append_composite_glyph): Likewise.
7162
51d861de 7163 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7164 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7165 composition.
51d861de 7166 (append_composite_glyph): Adjust for the change of
895416e3
KH
7167 <strcut glyph>.u.cmp.to.
7168
8510724d
JB
71692009-02-11 Juanma Barranquero <lekktu@gmail.com>
7170
7171 * casetab.c (init_casetab_once):
7172 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7173 * font.c (font_update_lface):
7174 * fontset.c (Fnew_fontset):
7175 * ftfont.c (ftfont_drive_otf):
7176 * xfont.c (xfont_open):
7177 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7178
294fa707
SM
71792009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7180
7181 * fileio.c (Fwrite_region): !NILP -> CONSP.
7182
b5bfebec
AS
71832009-02-10 Andreas Schwab <schwab@suse.de>
7184
7185 * process.c (send_process): Properly relocate pointer into data
adab88bd 7186 when using encoded data. (Bug#2272)
b5bfebec 7187
cb84a2be
KH
71882009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7189
7190 * coding.c (detect_coding_charset): Fix previous change.
7191
89e09428
JR
71922009-02-08 Jason Rumney <jasonr@gnu.org>
7193
7194 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7195 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7196
4470a277
AS
71972009-02-07 Andreas Schwab <schwab@suse.de>
7198
7199 * unexelf.c (unexec): Fix error message.
7200
3175b12a
AR
72012009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7202
7203 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7204 when modal window is active. (Bug #2152)
3175b12a
AR
7205 (applicationShouldTerminate:): Remove now-unneeded while loop
7206 around NSRunAlertPanel.
7207
7208 * nsmenu.m (popupSession): New file-global variable.
7209 (pop_down_menu): End the popupSession before closing dialog.
7210 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7211 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7212 don't query NSApp for events (just sleep instead).
7213
8434d0b8
EZ
72142009-02-07 Eli Zaretskii <eliz@gnu.org>
7215
51d861de
SM
7216 * coding.c (syms_of_coding) <translation-table-for-input>:
7217 Modify doc string to discourage use for character code unification.
8434d0b8 7218
aa82edfd
CY
72192009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7220
7221 * atimer.c (run_timers): Update pending_atimers.
7222
2d283c7c
CY
72232009-02-06 Chong Yidong <cyd@stupidchicken.com>
7224
eb306cab
CY
7225 * image.c (svg_load_image): Fix last change.
7226
2d283c7c
CY
7227 * xfns.c (Fx_create_frame): Signal an error if no font is
7228 found (Bug#2147).
7229
4d8e170e
JB
72302009-02-05 Juanma Barranquero <lekktu@gmail.com>
7231
7232 * character.c (syms_of_character) <script-representative-chars>:
7233 Fix typo in docstring.
7234
c96169a0
AR
72352009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7236
7237 * nsmenu.m (pop_down_menu): New function.
7238 (ns_popup_dialog): Call it on unwind.
7239 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7240 call timer_check() (Bug#2154).
7241 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7242 handling_signal is set.
7243 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7244
31fd7c5c 7245 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7246
7247 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7248
7249 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7250
51d861de
SM
7251 * keyboard.c (poll_for_input_1, handle_async_input):
7252 Set handling_signal under HAVE_NS.
c96169a0 7253
aacd8ba1
GM
72542009-02-04 Glenn Morris <rgm@gnu.org>
7255
7256 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7257
4cb75c4b
KH
72582009-02-04 Kenichi Handa <handa@m17n.org>
7259
7260 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7261
7262 * charset.c (Fchar_charset): New optional arg restriction.
7263
7264 * coding.h (coding_system_charset_list): Extern it.
7265
7266 * coding.c (coding_system_charset_list): New function.
7267
7268 * composite.c: Include coding.h and termhooks.h.
7269 (composition_gstring_p): Fix for the terminal case.
7270 (composition_gstring_width): Likewise.
7271 (fill_gstring_body): Likewise.
7272 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7273 the frame.
7274 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7275 is within a composition.
867d4bb3 7276 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7277
7278 * term.c (encode_terminal_code): Fix handling of composition.
7279 (produce_composite_glyph): For static composition, get pixel_width
7280 from struct composition.
7281
826ba17e
AS
72822009-02-02 Andreas Schwab <schwab@suse.de>
7283
7284 * unexelf.c (unexec): Handle unaligned bss offset.
7285
8ad093db
AR
72862009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7287
7288 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7289 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7290
8ad093db
AR
7291 * keyboard.c (handle_interrupt): Don't call
7292 quit_throw_to_read_char() under NS.
d0a76a6e 7293
8ad093db
AR
7294 * blockinput.h: Remove NS-specific code.
7295
4d18a7a2
DN
72962009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7297
db878925
DN
7298 * dispnew.c (window_change_signal): Don't try to get the size of a
7299 suspended tty frame.
7300 * term.c (Fresume_tty): Resize if the size has changed while the
7301 tty was suspended.
7302
4d18a7a2
DN
7303 * alloc.c (mark_stack): Properly conditionalize previous change.
7304
8984df7c
JB
73052009-01-30 Juanma Barranquero <lekktu@gmail.com>
7306
7307 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7308 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7309 Remove; this code is not used on Windows.
7310
75f4f1ac
EZ
73112009-01-30 Eli Zaretskii <eliz@gnu.org>
7312
7313 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7314 EOLs that also has stray ^M characters.
7315
07a1e794
JB
73162009-01-30 Juanma Barranquero <lekktu@gmail.com>
7317
7318 * atimer.c (run_timers, alarm_signal_handler):
7319 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7320 * w32inevt.c (w32_console_read_socket):
7321 * w32term.c (w32_read_socket):
7322 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7323
a8b11cc9
CY
73242009-01-30 Chong Yidong <cyd@stupidchicken.com>
7325
7326 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7327 Initialize it as a relative filename pattern.
7328 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7329 (Fcall_process_region): Simplify temp file creation using
7330 temporary-file-directory.
7331
c279587b
EZ
73322009-01-29 Eli Zaretskii <eliz@gnu.org>
7333
7334 * msdos.c: Rename pending_signals to msdos_pending_signals.
7335 (sig_suspender, sigprocmask): Adjust.
7336
a8fe3242
CY
73372009-01-29 Chong Yidong <cyd@stupidchicken.com>
7338
7339 * keyboard.c (pending_signals): New var.
7340 (poll_for_input, input_available_signal, init_keyboard): Set it.
7341 (process_pending_signals): New function.
7342
7343 * lisp.h (QUIT): Check pending_signals instead of
7344 interrupt_input_pending. Use process_pending_signals.
7345
51d861de 7346 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7347
51d861de 7348 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7349
7350 * sysdep.c (emacs_write): Use process_pending_signals.
7351
7352 * xterm.c (XTread_socket): Update pending_signals.
7353
7354 * w32term.c (w32_read_socket): Update pending_signals.
7355
7356 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7357
6570a1c4
KH
73582009-01-29 Kenichi Handa <handa@m17n.org>
7359
7360 * xftfont.c (xftfont_has_char): New function.
7361 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7362
d72a4afa
AR
73632009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7364
7365 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7366 under GNUstep.
7367 (ns_query_color): New declaration.
7368
7369 * nsterm.m (ns_confirm_quit): New variable.
7370 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7371 (EmacsApp-applicationShouldTerminate:): Use it.
7372 (EmacsPrefsController): Let user set it.
7373 (ns_query_color): New function.
7374 (ns_defined_color): Use it.
7375 (ns_initialize): Drop.
7376 (ns_term_init): Add two lines from ns_initialize(), and set
7377 input_interrupt_mode to nil.
7378
7379 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7380 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7381
9fe78804
KH
73822009-01-28 Kenichi Handa <handa@m17n.org>
7383
7384 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7385 (fontset_get_font_group): Remember that no font-group is specified
7386 for C.
9fe78804 7387
fa57de36
CY
73882009-01-27 Chong Yidong <cyd@stupidchicken.com>
7389
930600e9
CY
7390 * fns.c (concat): Check for string overflow (bug#1787).
7391
fa57de36
CY
7392 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7393 Quadruple undo limits (bug#1501).
7394
7179ce7b
KH
73952009-01-27 Kenichi Handa <handa@m17n.org>
7396
7397 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7398 directly use GT_Get_Char_index.
7399
7400 * xftfont.c (struct xftfont_info): New member `index'.
7401
7402 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7403 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7404
5be8fcc0
CY
74052009-01-26 Kenichi Handa <handa@m17n.org>
7406
7407 * fontset.c (fontset_find_font): Fix handling of non-cons return
7408 value of fontset_get_font_group.
7409 (fontset_font): Revert last change.
7410
19ae3e61
JR
74112009-01-26 Jason Rumney <jasonr@gnu.org>
7412
7413 * w32font.c (w32font_list_internal): Return quickly if registry is
7414 unknown. Simplify final return.
7415 (add_font_entity_to_list): Break complex logic down into more
7416 manageable chunks. Move unknown registry check to
7417 w32font_list_internal.
7418
8612b71a
AR
74192009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7420
7421 Changes to remove Feval calls from GUI under NS.
7422
d8038940
JB
7423 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7424 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7425 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7426
7427 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7428 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7429 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7430 instead of NON_ASCII_KEYSTROKE_EVENT.
7431 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7432 (EmacsApp-applicationShouldTerminate:): Query user.
7433 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7434 instead of Feval.
7435
7436 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7437
7438 * keyboard.c (kbd_buffer_get_event): Check for it.
7439 (keys_of_keyboard): Define lispy keys for
7440 ns-put/unput-working-text.
7441
7442 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7443 versions.
7444 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7445
6288ae55
CY
74462009-01-25 Chong Yidong <cyd@stupidchicken.com>
7447
7448 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7449 setting current_buffer directly. (Bug#2044)
6288ae55 7450
289e7f8f
CY
74512009-01-24 Chong Yidong <cyd@stupidchicken.com>
7452
5ce87308 7453 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7454 any work. (Bug#1952, bug#1990).
5ce87308 7455
64cc3cf6 7456 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7457
b3243e6f
AR
74582009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7459
7460 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7461 (ns_no_defaults): New declaration.
7462 (main): Use it.
e0d2e69a 7463
d900b2af 7464 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7465
d900b2af 7466 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7467
d900b2af
AR
7468 * nsterm.m (ns_no_defaults): New variable.
7469 (ns_initialize): Don't read defaults when ns_no_defaults.
7470 (EmacsView-readSelectionFromPasteboard:)
7471 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7472 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7473 (ns_dumpglyphs_stretch): New function.
7474 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7475 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7476
e0d2e69a
AR
7477 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7478
3ac71f5d
CY
74792009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7480
7481 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7482 call for Sparc64.
7483
3fe53a83
AR
74842009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7485
7486 * nsfns.m:
7487 * nsgui.h:
7488 * nsmenu.m:
7489 * nsselect.m:
7490 * nsterm.h:
7491 * nsterm.m: Remove '23' comments that indicated code added during
7492 update from emacs-20 -> emacs-23.
7493
10f87c6f 74942009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7495
7496 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7497 ns_alternate_modifier. (Bug#1217)
a3b53a85 7498
c7cef62d
AR
7499 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7500 Display all shortcuts, including those w/o super modifier.
7501
575fb8bd
AR
7502 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7503
918b848b
CY
75042009-01-22 Chong Yidong <cyd@stupidchicken.com>
7505
7506 * fileio.c (Vwrite_region_post_annotation_function)
7507 (Vwrite_region_annotation_buffers): New vars.
7508 (build_annotations_unwind): Just reset
7509 Vwrite_region_annotation_buffers.
7510 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7511 Call write-region-post-annotation-function.
7512 (build_annotations): Add to Vwrite_region_annotation_buffers if
7513 buffer changes.
7514
a39e2539
AR
75152009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7516
7517 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7518 Tiger.
51d861de
SM
7519 * nsfns.m (ns_do_applescript):
7520 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7521
35ed44db
AR
75222009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7523
7524 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7525
cbe0b5bf
AR
75262009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7527
7528 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7529
6049d3a0
AR
7530 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7531
7532 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7533 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7534 handle Ctrl-tab. (Bug#1841)
7535 (ns_get_color): Use unsigned long long for scanned hex string value.
7536 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7537 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7538 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7539 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7540 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7541 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7542 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7543
d3810c21 7544 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7545 DPI. (Bug#1316)
d3810c21
AR
7546 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7547 values in onTiger section.
4c7077c3 7548
e301e634
CY
75492009-01-19 Chong Yidong <cyd@stupidchicken.com>
7550
7f82490b
CY
7551 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7552 Check return value of font_spec_from_name.
64cc3cf6 7553 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7554
7555 * font.c (font_spec_from_name): Return Qnil if font name could not
7556 be parsed.
7557 (font_parse_name): Treat a `?' character as part of an XLFD.
7558
e301e634
CY
7559 * fns.c (Fsubstring): Doc fix.
7560
1c0db158
KH
75612009-01-19 Kenichi Handa <handa@m17n.org>
7562
51d861de 7563 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7564 (ftfont_list): Likewise.
7565
acf20901
JB
75662009-01-18 Juanma Barranquero <lekktu@gmail.com>
7567
fff4e459
JB
7568 * dbusbind.c (Fdbus_register_signal):
7569 * process.c (conv_sockaddr_to_lisp):
7570 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7571
acf20901
JB
7572 * callproc.c (Fgetenv_internal): Doc fix.
7573
e7abcdfb
CY
75742009-01-16 Chong Yidong <cyd@stupidchicken.com>
7575
7576 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7577 it is not even used.
7578
b60861e6
GM
75792009-01-16 Glenn Morris <rgm@gnu.org>
7580
7581 * font.c (Ffont_variation_glyphs): Silence compiler.
7582
8db52afe
JB
75832009-01-15 Juanma Barranquero <lekktu@gmail.com>
7584
7585 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7586 Reported by David Robinow <drobinow@gmail.com>.
7587
4cddb209
KH
75882009-01-15 Kenichi Handa <handa@m17n.org>
7589
51d861de 7590 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7591
f247f67b
JR
75922009-01-14 Jason Rumney <jasonr@gnu.org>
7593
7594 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7595 never a fontset. (Bug#1562)
f247f67b 7596
f56a4450
KH
75972009-01-14 Kenichi Handa <handa@m17n.org>
7598
7599 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7600 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7601
4e99855e
CY
76022009-01-13 Chong Yidong <cyd@stupidchicken.com>
7603
7604 * font.c (font_clear_prop): If clearing the family, clear the font
7605 width index too.
7606
fff4e459 7607 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7608
24f01470
JB
76092009-01-12 Juanma Barranquero <lekktu@gmail.com>
7610
7611 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7612 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7613 functions, use sizeof.
7614
a41240a3
MR
76152009-01-12 Martin Rudalics <rudalics@gmx.at>
7616
7617 * keyboard.c (read_char): Fix case where last_nonmenu_event
7618 returned a bad value with submenus. (Bug#447)
7619
944636b8
CY
76202009-01-12 Chong Yidong <cyd@stupidchicken.com>
7621
7622 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7623 family, clear the font width index too.
7624
0dad7c6f
JR
76252009-01-11 Jason Rumney <jasonr@gnu.org>
7626
7627 * keyboard.c (cmd_error_internal): Exit when errors occur before
7628 frame creation and not in daemon mode. (Bug#1836)
7629
7c2363af
CY
76302009-01-10 Chong Yidong <cyd@stupidchicken.com>
7631
7632 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7633 of a display vector, backtrack.
7634 (try_window_reusing_current_matrix): Check glyph type before
7635 referencing charpos member.
7636
97b1b294
EZ
76372009-01-10 Eli Zaretskii <eliz@gnu.org>
7638
7639 Fix Bug #876:
7640
7641 * coding.c (inhibit_null_byte_detection): New variable.
7642 (detect_coding, detect_coding_system): Don't pay attention to null
7643 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7644 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7645 <inhibit-iso-escape-detection>: Doc fix.
7646
4624b6e3
JR
76472009-01-09 Jason Rumney <jasonr@gnu.org>
7648
7649 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7650 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7651 Only report Unicode Plane 2 fonts as unicode-sip.
7652
323b840c
CY
76532009-01-09 Chong Yidong <cyd@stupidchicken.com>
7654
51d861de
SM
7655 * xfaces.c (Fx_font_family_list): Delete function.
7656 Move compatibility version to faces.el.
323b840c 7657
51d861de 7658 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7659
eba7400d
MR
76602009-01-09 Martin Rudalics <rudalics@gmx.at>
7661
7662 * frame.c (x_set_frame_parameters): Remember requested value for
7663 fullscreen before it's reset by the parameter handler.
7664
4b09796d
GM
76652009-01-09 Glenn Morris <rgm@gnu.org>
7666
7667 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7668 (last_command_event): ... and update all users.
4b09796d
GM
7669 (last_input_char): For clarity, rename to...
7670 (last_input_event): ... and update all users.
7671 (last-command-char, last-input-char): Move to subr.el as aliases.
7672 * cmds.c, commands.h: Update for last_command_char rename.
7673
14ccea62
CY
76742009-01-08 Chong Yidong <cyd@stupidchicken.com>
7675
51d861de 7676 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7677
5f004711
JR
76782009-01-08 Jason Rumney <jasonr@gnu.org>
7679
7680 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7681 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7682 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7683 Don't declare.
fff4e459 7684 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7685 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7686
b71f6f73
KH
76872009-01-07 Kenichi Handa <handa@m17n.org>
7688
50b06221 7689 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7690 remember the coding system used for decoding in
50b06221
KH
7691 coding_system (Bug#1039).
7692
b71f6f73 7693 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7694 breaking the loop. (Bug#870)
b71f6f73
KH
7695 (decode_coding_utf_16, decode_coding_emacs_mule)
7696 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7697 (decode_coding_charset): Likewise.
7698
56f668f7
MR
76992009-01-05 Martin Rudalics <rudalics@gmx.at>
7700
7701 * frame.c (x_set_frame_parameters): Make sure height (width) get
7702 applied when fullwidth (fullheight) is set. (Bug#1522)
7703
5da9424d
JB
77042009-01-04 Juanma Barranquero <lekktu@gmail.com>
7705
7706 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7707 (utc_base): Declare as ULONGLONG, not long double.
7708 (convert_time_raw): Delete.
7709 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7710 (initialize_utc_base): New function.
7711 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7712 (convert_from_time_t): Use initialize_utc_base; compute result with
7713 64-bit arithmetic.
7714 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7715
c4605e09
EZ
77162009-01-03 Eli Zaretskii <eliz@gnu.org>
7717
9acef61c 7718 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7719 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7720 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7721 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7722 [!subprocesses]: Define.
7723 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7724 (Flist_system_processes, Fsystem_process_attributes)
7725 [!subprocesses]: Call list_system_processes and
7726 system_process_attributes instead of returning Qnil.
7727
9acef61c
JB
7728 * dosfns.c (system_process_attributes, list_system_processes):
7729 New functions.
c4605e09
EZ
7730
7731 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7732
7733 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7734 Don't use the default (no-op) implementation.
7735
8b7d0a16
JR
77362009-01-03 Jason Rumney <jasonr@gnu.org>
7737
a6d46bc1
JR
7738 * keyboard.c (parse_modifiers_uncached): Wheel events are
7739 clicks (bug#687).
7740
8b7d0a16
JR
7741 * w32term.c (x_query_colors, x_query_color): New functions.
7742
7743 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7744 (svg_load_image): Cast returned pointers from dynamically loaded
7745 functions. Eliminate W32 specific code.
7746
bfe11752
DN
77472009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7748
89e2438a
DN
7749 * nsfns.m (x_set_foreground_color, x_set_background_color)
7750 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7751 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7752 x_ prefix instead of ns_. Update references.
7753 (syms_of_nsfns): Add a FIXME comment.
7754
7755 * nsterm.m (x_set_cursor_type): New prototype.
7756 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7757
bfe11752
DN
7758 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7759 for Solaris instead of incorrectly providing Qutime and Qcutime.
7760
031da700
EZ
77612009-01-02 Eli Zaretskii <eliz@gnu.org>
7762
7763 * w32.c (process_times): Compute sum of utime and stime.
7764 (system_process_attributes): Add Qtime to the alist.
7765
7766 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7767 and add them to the alist.
7768
7769 * process.c (top level) <Qtime, Qctime>: New variables.
7770 (syms_of_process): staticpro them.
7771 (Fsystem_process_attributes): Add their documentation to the doc
7772 string.
7773
7774 * process.h: Declare Qtime and Qctime.
7775
df23bf08
JR
77762009-01-02 Jason Rumney <jasonr@gnu.org>
7777
9acef61c 7778 * image.c (Qgobject): New symbol.
df23bf08
JR
7779 (syms_of_image): Initialize it.
7780 (init_svg_functions): Load some functions from gobject library.
7781
5bbdf7aa
DN
77822009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7783
7784 * frame.c (make_terminal_frame): Remove redundant code and useless
7785 block.
7786
63136da6
AS
77872009-01-01 Andreas Schwab <schwab@suse.de>
7788
7789 * process.c (conv_sockaddr_to_lisp): Add workaround for
7790 getsockname bug on BSD.
7791
9ef69046
CY
77922009-01-01 Chong Yidong <cyd@stupidchicken.com>
7793
d6fafbe0
CY
7794 * xfns.c (x_create_tip_frame): Set border width of the X window.
7795
51d861de 7796 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7797
f9c34147
JR
77982009-01-01 Jason Rumney <jasonr@gnu.org>
7799
9acef61c 7800 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7801 Don't block input, as per earlier xterm.c changes.
7802
f5497e45
AR
78032008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7804
7805 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7806 (ns_appkit_version_int): New function.
7807 (x-server-version): Use ns_appkit_version_int and follow 21+
7808 convention of returning 3 integers.
7809
c19cab20
KH
78102008-12-30 Kenichi Handa <handa@m17n.org>
7811
7812 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7813 (CHAR_SURROGATE_PAIR_P): New macro.
7814
7815 * font.h (struct font_driver): New member get_variation_glyphs.
7816
9acef61c 7817 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7818 (Ffont_variation_glyphs): New function.
7819 (syms_of_font): Defsubr it.
7820
7821 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7822 ftfont_variation_glyphs.
7823 (setup_otf_gstring): New function.
7824 (ftfont_drive_otf): Use it.
7825 (ftfont_shape_by_flt): Handle variation selector.
7826 (ftfont_variation_glyphs): New function.
7827
28cd591f
MR
78282008-12-30 Martin Rudalics <rudalics@gmx.at>
7829
7830 * frame.c (Vemacs_iconified): Remove.
7831
7f714baf
JR
78322008-12-30 Jason Rumney <jasonr@gnu.org>
7833
7834 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7835 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7836
9d2d22ab
CY
78372008-12-30 Chong Yidong <cyd@stupidchicken.com>
7838
7839 * indent.c (Fvertical_motion): Don't advance iterator if we have
7840 reseated to the desired position.
7841
7842 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7843 checking for pos match.
7844
545312c2
KH
78452008-12-30 Kenichi Handa <handa@m17n.org>
7846
1ede3eb6
KH
7847 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7848 just get the low 8-bit of the code.
7849
545312c2
KH
7850 * font.c (font_intern_prop): Validate str as multibyte.
7851
bd7bbf29
DN
78522008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7853
31e0750e
DN
7854 * dispextern.h (struct face): Move lface and hash from the middle
7855 of bitfields.
7856
bd7bbf29
DN
7857 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7858
b5672e7c
DN
78592008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7860
7861 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7862 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7863 instead of intervals.h.
7864
d704470f
AS
78652008-12-26 Andreas Schwab <schwab@suse.de>
7866
7867 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7868 cons.
7869
54b33868
MR
78702008-12-26 Martin Rudalics <rudalics@gmx.at>
7871
7872 * textprop.c (Qminibuffer_prompt): New variable.
7873 (syms_of_textprop): Initialize it.
7874 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7875 in minibuffer-prompt face. (Bug#1662)
7876
40b615d6
JR
78772008-12-25 Jason Rumney <jasonr@gnu.org>
7878
7879 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7880
baae5c2d
JR
78812008-12-24 Jason Rumney <jasonr@gnu.org>
7882
7883 * ralloc.c (r_alloc_reset_variable): New function.
7884
7885 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7886 record of what points where. (Bug#716)
baae5c2d 7887
a9051c88
DN
78882008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7889
7890 * minibuf.c (read_minibuf): Follow the non-interactive case when
7891 running as a daemon, before detaching.
7892
8b146312
AS
78932008-12-22 Andreas Schwab <schwab@suse.de>
7894
7895 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7896 * gtkutil.c (free_widget_value): Use xfree instead of free.
7897
56f2de10
MR
78982008-12-22 Martin Rudalics <rudalics@gmx.at>
7899
7900 * frame.c (delete_frame): New function derived from
7901 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7902 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7903 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7904 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7905 * frame.h: Extern delete_frame.
7906 * window.c (window_loop):
7907 * terminal.c (delete_terminal):
7908 * xterm.c (x_connection_closed):
7909 * xfns.c (Fx_hide_tip):
9acef61c 7910 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7911
1fc200d6
JR
79122008-12-21 Jason Rumney <jasonr@gnu.org>
7913
7914 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7915 when character maps to .notdef character.
7916
5e252df2
SM
79172008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7918
7919 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7920
99b72cc4
JR
79212008-12-20 Jason Rumney <jasonr@gnu.org>
7922
7923 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7924 a graphical frame on Windows. (Bug#1325)
99b72cc4 7925
acc49a52
JD
79262008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7927
7928 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7929
6ea15123
CY
79302008-12-20 Chong Yidong <cyd@stupidchicken.com>
7931
7932 * minibuf.c (Fread_buffer): Doc fix.
7933
b2dab6c8
JR
79342008-12-20 Jason Rumney <jasonr@gnu.org>
7935
54ea0c87 7936 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7937 server name in UNC paths. (Bug#719)
54ea0c87 7938
b2dab6c8 7939 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7940 charbuf. (Bug#1035)
b2dab6c8 7941
6d1921be
DN
79422008-12-19 Daniel Engeler <engeler@gmail.com>
7943
7944 * sysdep.c (serial_configure): Fix typo.
7945
53934c98
DN
79462008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7947
7948 * sysdep.c: Include alloca.h.
f4f634e8
DN
7949 (system_process_attributes): Add implementation for Solaris.
7950
7951 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7952
06e111a6
DN
79532008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7954
7955 Reorganize implementation of Flist_system_processes and
7956 Fsystem_process_attributes. No functional changes.
7957 * process.c: Don't #include pwd.h, grp.h and limits.h.
7958 (Flist_system_processes): Just call list_system_processes.
7959 (Fsystem_process_attributes): Just call system_process_attributes.
7960 (procfs_list_system_processes, time_from_jiffies)
7961 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7962 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7963
7964 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7965 (list_system_processes): Rename from
7966 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7967 Provide a do nothing implementation.
7968 (system_process_attributes): Rename from
7969 procfs_list_system_processes.
7970 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7971 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7972
7973 * w32.c (list_system_processes): Rename from
7974 w32_list_system_processes.
7975 (system_process_attributes): Rename from
7976 w32_system_process_attributes.
7977
7978 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7979
7980 * process.h (w32_list_system_processes)
7981 (w32_system_process_attributes): Remove.
362654a6
JB
7982 (list_system_processes, system_process_attributes):
7983 New prototypes.
06e111a6 7984
6a705b23
KH
79852008-12-19 Kenichi Handa <handa@m17n.org>
7986
7987 * xfont.c (xfont_decode_coding_xlfd): New function.
7988 (xfont_encode_coding_xlfd): New function.
7989 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7990 (xfont_list): Decode and encode XLFD by iso-8859-1.
7991 (xfont_match): Likewise.
7992 (xfont_list_family): Likewise.
7993 (xfont_open): Likewise.
7994
d66c0241 7995 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7996 names are utf-8.
7997
d66c0241 7998 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7999 names are utf-8.
8000
5a130941
JD
80012008-12-18 Jan Djärv <jan.h.d@swipnet.se>
8002
8003 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
8004 changed.
bfd20325
JD
8005 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
8006 clicked on a detached tool bar button.
5a130941 8007
fd95644b
DN
80082008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
8009
8010 * emacs.c (main): Print and error and exit when no data is read
8011 from the pipe.
8012
e6eee6ae
JR
80132008-12-17 Jason Rumney <jasonr@gnu.org>
8014
8015 * w32font.c (w32font_has_char): Always return -1.
8016
a35dd56b
KH
80172008-12-16 Kenichi Handa <handa@m17n.org>
8018
8019 * font.c (font_open_entity): Fix previous change.
8020
0e3635c2
DN
80212008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
8022
8023 * process.c: Include <limits.h>.
8024
d4835507 80252008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
8026
8027 * font.c (font_update_drivers): Fix mistake in reconstructing the
8028 driver list.
8029
80302008-12-16 Chong Yidong <cyd@stupidchicken.com>
8031
8032 * font.c (font_clear_cache): Fix format of font cache data.
8033
e2cbc401
CY
80342008-12-15 Chong Yidong <cyd@stupidchicken.com>
8035
8036 * xftfont.c (xftfont_open): Free Xft font pattern if
8037 XftFontOpenPattern fails.
8038
8039 * xterm.c (x_free_frame_resources): Remove extraneous call to
8040 free_frame_faces.
8041
b131d535
CY
80422008-12-13 Chong Yidong <cyd@stupidchicken.com>
8043
8044 * xterm.c (x_delete_display): Move xim_close_dpy call to
8045 x_delete_terminal.
8046 (x_delete_terminal): Call xim_close_dpy.
8047
e6df5336
JR
80482008-12-13 Jason Rumney <jasonr@gnu.org>
8049
8050 * w32font.c (intern_font_name): New function.
8051 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
8052 (w32font_open_internal, Fx_select_font): Decode font name.
8053 (fill_in_logfont, list_all_matching_fonts): Encode font name.
8054
8055 * w32font.h (intern_font_name): Declare new function.
8056
8057 * w32uniscribe.c (add_opentype_font_name_to_list):
8058 Use intern_font_name.
8059
20d68145
CY
80602008-12-13 Chong Yidong <cyd@stupidchicken.com>
8061
9f2554de
CY
8062 * frame.c (Fdelete_frame): Call free_font_driver_list.
8063
3d9bec9a
CY
8064 * font.c (free_font_driver_list): Implement missing function.
8065
20d68145
CY
8066 * w32term.c (w32_term_init): Don't initialize the image cache
8067 here; it will be done in init_frame_faces.
8068
8069 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
8070 (struct x_display_info): Remove unused member null_pixel. New
8071 member xim_callback_data.
8072
8073 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
8074 (xim_initialize): Save pointer to callback function data.
8075 (xim_close_dpy): Free callback function data. Call XCloseIM,
8076 reverting 2008-11-04 change by David Smith.
8077 (x_term_init): Don't initialize the image cache here; it will be
8078 done in init_frame_faces. Remove ancient "null_pixel" cruft.
8079 (x_delete_display): Free x_dnd_atoms member.
8080
96f9306b
KH
80812008-12-13 Kenichi Handa <handa@m17n.org>
8082
6dec9044
JB
8083 * font.c (font_rescale_ratio): Moved from xfaces.c.
8084 Argument type changed. Handle a font-spec too.
96f9306b 8085 (font_score): Check Vface_font_rescale_alist.
6dec9044 8086 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
8087
8088 * xfaces.c (font_rescale_ratio): Moved to font.c.
8089
8d5b4964
CY
80902008-12-13 Chong Yidong <cyd@stupidchicken.com>
8091
8092 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
8093
e6df5336
JR
80942008-12-12 Jason Rumney <jasonr@gnu.org>
8095
8096 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
8097 Vwindow_system_version to the real w32 major version.
8098
97c6058a
DN
80992008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
8100
8101 * term.c (init_tty): Move setting the terminal name before the
8102 potential user: maybe_fatal.
8103
ec4e88d7
CY
81042008-12-11 Chong Yidong <cyd@stupidchicken.com>
8105
d4835507
JB
8106 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
8107 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 8108
b4233ec9
JR
81092008-12-11 Jason Rumney <jasonr@gnu.org>
8110
8ec71e23 8111 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8112 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8113
b4233ec9 8114 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8115 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8116
011a0143
JB
81172008-12-11 Juanma Barranquero <lekktu@gmail.com>
8118
8119 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8120
3c309f34
JB
81212008-12-11 Juanma Barranquero <lekktu@gmail.com>
8122
8123 * process.c (Fsystem_process_attributes, syms_of_process):
8124 Fix typo in name of Ssystem_process_attributes.
8125 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8126
fedc6ab5
JB
81272008-12-11 Juanma Barranquero <lekktu@gmail.com>
8128
8129 * syntax.c (Fmodify_syntax_entry): Doc fix.
8130
ba3de0e8
JB
81312008-12-10 Juanma Barranquero <lekktu@gmail.com>
8132
8133 * font.c (Ffont_spec): Move usage to end of docstring.
8134
174f1c74
JR
81352008-12-10 Jason Rumney <jasonr@gnu.org>
8136
8137 * w32font.c (Qcham): New symbol.
8138 (font_supported_scripts): Add cham, and comments for other new
8139 scripts in bitfield from OpenType spec.
9d32f818
JR
8140 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8141 contain characters beyond the bmp.
174f1c74 8142
7b649478
KH
81432008-12-10 Kenichi Handa <handa@m17n.org>
8144
8145 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8146 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8147 Qunicode_sip.
8148
2133e2d1
JB
81492008-12-10 Juanma Barranquero <lekktu@gmail.com>
8150
8151 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8152 (Fcoding_system_put): Use QCdefault_char.
8153 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8154
9af886ee
CY
81552008-12-09 Chong Yidong <cyd@stupidchicken.com>
8156
74d819eb
CY
8157 * xftfont.c (syms_of_xftfont): Fix typo.
8158
4ccfa1c0 8159 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8160
7c19d3ae
DN
81612008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8162
8163 * emacs.c (main): Close daemon_pipe on exec.
8164
567826bb
CY
81652008-12-08 Chong Yidong <cyd@stupidchicken.com>
8166
8167 * termchar.h (struct tty): New members termcap_term_buffer and
8168 termcap_strings_buffer.
8169
8170 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8171 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8172 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8173 All callers changed.
8174 (init_tty): Store termcap data and string buffers in new struct
8175 tty members termcap_term_buffer and termcap_strings_buffer.
8176 (delete_tty): Free them.
4ccfa1c0 8177 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8178
aa96c42b
SZ
81792008-12-07 Seiji Zenitani <zenitani@mac.com>
8180
8181 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8182 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8183
b7e1d896
CY
81842008-12-06 Chong Yidong <cyd@stupidchicken.com>
8185
8186 * coding.c (make_conversion_work_buffer): Disable buffer
8187 modification hooks in the work buffer.
8188
b5ec91a5
EZ
81892008-12-05 Eli Zaretskii <eliz@gnu.org>
8190
8191 * process.c (procfs_system_process_attributes): If `nread' has a
8192 negative value, assign zero to it.
8193
a5d2a52b
CY
81942008-12-05 Chong Yidong <cyd@stupidchicken.com>
8195
68c5540b 8196 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8197
7bf1bb21
KH
81982008-12-05 Kenichi Handa <handa@m17n.org>
8199
8200 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8201 second character is a combining character.
8202
2fdc7d00
EZ
82032008-12-05 Eli Zaretskii <eliz@gnu.org>
8204
8205 * process.c (procfs_system_process_attributes): Don't use cmd,
8206 cmdsize, and q without initializing them first.
8207
bf6bfba8
JR
82082008-12-04 Jason Rumney <jasonr@gnu.org>
8209
8210 * w32font.c (w32font_draw): Initialize orig_clip before getting
8211 it, and delete it when finished.
8212
a3b1a468
DN
82132008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8214
8215 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8216 case when running as a daemon before detaching.
8217
8b8be8eb
JB
82182008-12-03 Juanma Barranquero <lekktu@gmail.com>
8219
805f2638 8220 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8221
b1bde622
KH
82222008-12-03 Kenichi Handa <handa@m17n.org>
8223
e500c47d
KH
8224 * font.c (font_at): Set `multibyte' at first.
8225
ca516334
KH
8226 * coding.c (decode_coding_charset): Check type of an element of
8227 vector VALIDS.
7bf1bb21 8228 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8229
4ccfa1c0 8230 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8231 (font_for_char): Likewise.
8232
1e5ecd37
CY
82332008-12-03 Chong Yidong <cyd@stupidchicken.com>
8234
d5b01609 8235 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8236 (font_update_lface): Handle fonts with corrupted size specs,
8237 i.e. non-int and non-float.
d5b01609 8238
11e3a6e4 8239 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8240 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8241 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8242
ab06788b
CY
8243 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8244
1e5ecd37 8245 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8246 underline_minimum_offset for underline position.
1e5ecd37 8247
63c125ab
DN
82482008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8249
8250 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8251
8252 * character.c (c_string_width): Specify the type for LEN.
8253
3a8406e1
KH
82542008-12-03 Kenichi Handa <handa@m17n.org>
8255
4ccfa1c0 8256 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8257 (decode_coding_utf_8): Likewise.
4ccfa1c0 8258 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8259 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8260
651df7d9
CY
82612008-12-02 Chong Yidong <cyd@stupidchicken.com>
8262
8263 * keyboard.c (make_lispy_position): Only use PT if the selected
8264 window is current.
8265
1f625c6c
AS
82662008-12-02 Andreas Schwab <schwab@suse.de>
8267
f7741ce9
AS
8268 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8269
1f625c6c
AS
8270 * doprnt.c (doprnt1): Fix size of charbuf.
8271
92bc2678
CY
82722008-12-02 Chong Yidong <cyd@stupidchicken.com>
8273
8274 * keyboard.c (timer_check): Revert last change.
8275
93b9e8cc
JB
82762008-12-02 Juanma Barranquero <lekktu@gmail.com>
8277
8278 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8279
fd7a37d5
JB
82802008-12-01 Juanma Barranquero <lekktu@gmail.com>
8281
8282 * makefile.w32-in: Update dependencies.
8283 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8284
c115043b
AS
82852008-12-01 Andreas Schwab <schwab@suse.de>
8286
8287 * font.c (register_font_driver): Use xmalloc.
8288 (font_put_frame_data): Likewise.
8289
f5668d2a
CY
82902008-12-01 Chong Yidong <cyd@stupidchicken.com>
8291
860d96be
CY
8292 * xfaces.c (realize_x_face): Make abort condition clearer.
8293
f5668d2a
CY
8294 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8295
379c17e7
CY
82962008-11-30 Chong Yidong <cyd@stupidchicken.com>
8297
8298 * keyboard.c (timer_check): After a timer runs, ensure that the
8299 selected window's buffer is current.
8300
35f36d65
JB
83012008-11-30 Juanma Barranquero <lekktu@gmail.com>
8302
f952c61c
JB
8303 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8304 It was accidentally restored by the Unicode merge.
8305
35f36d65
JB
8306 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8307
b23077df
JB
83082008-11-29 Juanma Barranquero <lekktu@gmail.com>
8309
8310 * w32proc.c: Include "coding.h".
8311 (Fw32_short_file_name): Encode filename passed to Windows API.
8312 (Fw32_long_file_name): Encode filename passed to Windows API and
8313 decode back the result. (Bug#1433)
8314
b8ebe9dd
KH
83152008-11-29 Kenichi Handa <handa@m17n.org>
8316
8cc53f96
KH
8317 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8318 not before accessing it.
8319
b8ebe9dd
KH
8320 * charset.c (Fdefine_charset_internal): After calculating
8321 min_char, max_char, and fastmap, copy the charset structure again.
8322 (encode_char): Fix the previous change.
8323
59bc82c0
SZ
83242008-11-28 Seiji Zenitani <zenitani@mac.com>
8325
8326 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8327
8328 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8329
8330 * nsterm.m (x_set_frame_alpha): New function.
8331
32247e3d
EZ
83322008-11-27 Eli Zaretskii <eliz@gnu.org>
8333
8334 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8335
b003e5ff
JB
83362008-11-27 Juanma Barranquero <lekktu@gmail.com>
8337
8338 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8339 pointer to check_face_name.
8340
708550f5
KH
83412008-11-27 Kenichi Handa <handa@m17n.org>
8342
8343 * category.h (SET_CATEGORY_SET): Call set_category_set.
8344 (set_category_set): Extern it.
8345
8346 * category.c (hash_get_category_set): New function.
8347 (Fmodify_category_entry): Adjusted for the change of
8348 char_table_ref_and_range. Call hash_get_category_set to get a
8349 category set to store in the table.
8350
8351 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8352 Funify_charset.
8353
2ae37cf0 8354 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8355 (DECODE_CHAR): Check if the decoder vector is ready.
8356 (ENCODE_CHAR): Check if the encoder char-table is ready.
8357 (maybe_unify_char): Extern it.
8358
8359 * charset.c (Vchar_unified_charset_table): Delete it.
8360 (inhibit_load_charset_map): New variable.
8361 (temp_charset_work): New variable.
8362 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8363 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8364 New macros.
8365 (load_charset_map): Meaning of control_flag changed. If
8366 inhibit_load_charset_map is nonzero, setup a table in
8367 temp_charset_work.
8368 (load_charset): New argument control_flag.
8369 (map_charset_for_dump): New function.
8370 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8371 map_charset_for_dump.
8372 (Fdefine_charset_internal): If the charset method is MAP, load
8373 mapping tables by calling load_charset.
8374 (Funify_charset): Don't load a mapping table but directly set
8375 Vchar_unify_table.
8376 (maybe_unify_char): New function.
8377 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8378 Handle the case of inhibit_load_charset_map being nonzero.
8379 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8380 Handle the case of inhibit_load_charset_map being nonzero.
8381 (Fclear_charset_maps): Just free temp_charset_work.
8382 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8383 variable.
8384
8385 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8386 change of char_table_ref_and_range.
8387 (char_table_ref_and_range): Change the meaning of argument FROM
8388 and TO. Now the caller must provide initial values for *FROM
8389 and *TO.
8390
8391 * fontset.c (fontset_add): Adjusted for the change of
8392 char_table_ref_and_range.
8393 (fontset_get_font_group): Likewise.
8394 (Ffontset_info): Likewise.
8395
8396 * keymap.c (describe_vector): Adjusted for the change of
8397 char_table_ref_and_range. For char-table, put boundary between
8398 non-ASCII and 8-bit characters.
8399
8400 * print.c (print_object): For bool-vector, delete unnecessary
8401 check of ASCII_BYTE_P.
8402
9196133b
JR
84032008-11-26 Jason Rumney <jasonr@gnu.org>
8404
8405 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8406 leading in font height. (Bug#879)
9196133b 8407
9f688acf
GM
84082008-11-26 Glenn Morris <rgm@gnu.org>
8409
8410 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8411 redefinition with ifdef. (Bug#1383)
8412
90d19aff
AR
84132008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8414
8415 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8416
4ccfa1c0 84172008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8418
8419 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8420 New EmacsView methods.
8421 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8422 Fixes bug #1048,1357,1414.
8423
84242008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8425
8426 Fix bug #1362.
8427 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8428 is not an indexed color.
8429 * nsterm.m (free_indexed_color): Add argument checking.
8430 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8431
e7d5ecb3
CY
84322008-11-24 Chong Yidong <cyd@stupidchicken.com>
8433
8434 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8435 Document confirm-after-completion value for
8436 minibuffer-completion-confirm.
8437
c285743c
JR
84382008-11-24 Jason Rumney <jasonr@gnu.org>
8439
8440 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8441 warning.
8442
b0857706
JR
84432008-11-23 Jason Rumney <jasonr@gnu.org>
8444
8445 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8446 restored before returning.
8447
8448 * w32font.c (check_face_name): New function.
8449 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8450 fonts. (Bug#642)
b0857706 8451
ee50ff07
MR
84522008-11-22 Martin Rudalics <rudalics@gmx.at>
8453
8454 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8455 confirm-nonexistent-file-or-buffer in doc-string.
8456
b8ff72fa
SM
84572008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8458
8459 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8460 Fix copy/paste typo. Add checks.
8461
cee53ed4
KH
84622008-11-21 Kenichi Handa <handa@m17n.org>
8463
8464 * coding.c (detect_coding_iso_2022): Reject invalid composition
8465 sequence.
8466 (DECODE_COMPOSITION_START): If the current source is the last
8467 block, and the current composition doesn't end, regard this
8468 sequence as invalid.
8469 (decode_coding_iso_2022): Handle invalid composition sequence.
8470
f6ef1e65
MR
84712008-11-20 Martin Rudalics <rudalics@gmx.at>
8472
8473 * window.c (coordinates_in_window): Don't return
8474 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8475 line when the window is not the rightmost one. (Bug#1372)
8476
e08b1705
MR
84772008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8478
8479 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8480
ad98e89f
EZ
84812008-11-15 Eli Zaretskii <eliz@gnu.org>
8482
8483 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8484 and bright_bg if noninteractive is non-zero.
8485
fb098a4b
CY
84862008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8487
8488 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8489 x_draw_glyph_string_background.
8490
8491 * w32term.c (x_draw_glyph_string): Likewise.
8492
ce952b6e
CY
84932008-11-15 Chong Yidong <cyd@stupidchicken.com>
8494
8495 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8496 the next glyph string once past the overhang width.
8497
8498 * nsterm.m (ns_draw_glyph_string): Likewise.
8499
8500 * w32term.c (x_draw_glyph_string): Likewise.
8501
26ea7079
CY
85022008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8503
8504 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8505 double file close.
8506
1c33c906
MR
85072008-11-14 Martin Rudalics <rudalics@gmx.at>
8508
8509 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8510 dedicated status of window before attempting to display another
8511 buffer in it.
8512
8fc29035
JB
85132008-11-14 Juanma Barranquero <lekktu@gmail.com>
8514
8515 * msdos.c (Fmsdos_long_file_names):
8516 (syms_of_msdos) <dos-unsupported-char-glyph>:
8517 * dosfns.c (Fint86): Fix typos in docstrings.
8518
55fb4286
EZ
85192008-11-14 Eli Zaretskii <eliz@gnu.org>
8520
8521 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8522
3fda0315
KY
85232008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8524
8525 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8526
7e849c17
CY
85272008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8528
8529 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8530
8531 * frame.h: Negative alpha means "don't touch".
8532
8533 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8534
8535 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8536
b9fd67bd
DN
85372008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8538
8539 * hftctl.c:
8540 * chpdef.h:
8541 * acldef.h: Remove files used only for systems no longer supported.
8542
8543 * Makefile.in: Fix .o alphabetical ordering.
8544 (hftctl.o): Remove dependency, file removed.
8545 (keymap.o, print.o): Depend on charset.h.
8546
d5998e03
KH
85472008-11-10 Kenichi Handa <handa@m17n.org>
8548
2ae37cf0 8549 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8550
be70e183
CY
85512008-11-08 Chong Yidong <cyd@stupidchicken.com>
8552
8553 * dired.c (file_name_completion): If completion_ignore_case is
8554 enabled, ignore case when checking completion-regexp-list.
8555
7cf94eac
EZ
85562008-11-08 Eli Zaretskii <eliz@gnu.org>
8557
8558 * vm-limit.c (get_lim_data): Fix last change.
8559
ee107a89
KH
85602008-11-08 Kenichi Handa <handa@m17n.org>
8561
8562 * character.c (Fget_byte): New function.
8563 (syms_of_character): Defsubr Fget_byte.
8564
5fd15622
CY
85652008-11-07 Chong Yidong <cyd@stupidchicken.com>
8566
8567 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8568 cursor position is valid after scrolling.
8569
13d62fad
JB
85702008-11-06 Juanma Barranquero <lekktu@gmail.com>
8571
8572 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8573
a1dd2936
GM
85742008-11-06 Glenn Morris <rgm@gnu.org>
8575
8576 * xterm.c (handle_one_xevent): Don't let popup menus cause
8577 mouse-autoselect-window related window switching. (Bug#1261)
8578
860cd236
CY
85792008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8580
8581 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8582
653a3150
AS
85832008-11-04 Andreas Schwab <schwab@suse.de>
8584
8585 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8586
870f5cac
CY
85872008-11-03 Chong Yidong <cyd@stupidchicken.com>
8588
8589 * xfns.c (Fx_wm_set_size_hint): New function.
8590
1e02f3cb
MR
85912008-11-03 Martin Rudalics <rudalics@gmx.at>
8592
8593 * textprop.c (Fprevious_single_char_property_change): Return 0
8594 when there's no change in a string. (Bug#1301)
8595
e630dfc6
MR
85962008-11-02 Martin Rudalics <rudalics@gmx.at>
8597
8598 * frame.c (do_switch_frame): New argument NORECORD passed to
8599 Fselect_window.
8600 (Fselect_frame): New argument NORECORD passed to
8601 do_switch_frame.
8602 (Fset_frame_selected_window): New argument NORECORD passed to
8603 Fselect_frame.
8604 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8605 in call of do_switch_frame.
8606 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8607 Handle NORECORD argument in call of Fselect_frame.
8608 * lisp.h (do_switch_frame, Fselect_frame)
8609 (Fset_frame_selected_window): Adjust declarations.
8610 * window.c (select_frame_norecord): New function.
8611 (run_window_configuration_change_hook): Use it and call
8612 Fselect_frame with NORECORD set.
8613 (Fselect_window): Pass NORECORD to Fselect_frame.
8614 (Fset_window_configuration): Handle NORECORD argument in call of
8615 do_switch_frame.
8616 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8617 Fset_frame_selected_window.
8618 * keyboard.c (command_loop_1): Handle NORECORD in call of
8619 Fselect_frame (currently ifdefd).
8620
9020b223
GM
86212008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8622
8623 * emacs.c (USAGE2): Untabify.
8624
793ffee8
SM
86252008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8626
8627 * composite.c (fill_gstring_header): Fix copy/paste typo.
8628
ab6d1131
MR
86292008-10-31 Martin Rudalics <rudalics@gmx.at>
8630
8631 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8632 (Fother_window): Rename argument and rewrite doc-string.
8633 (select_window_norecord): Fix return value. (Bug#1276)
8634
601a9cf1
JB
86352008-10-30 Juanma Barranquero <lekktu@gmail.com>
8636
8637 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8638 new frames overriding foreground for tooltips. Based on similar patch
8639 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8640
813b0652
CY
86412008-10-29 Chong Yidong <cyd@stupidchicken.com>
8642
8643 * emacs.c (Fdaemon_initialized): Initialize nfd.
8644
4414f58f
MR
86452008-10-29 Martin Rudalics <rudalics@gmx.at>
8646
8647 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8648 (Fwindow_text_height): Clarify doc-strings.
8649 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8650 doc-string of window-scroll-functions.
8651
ecdcaa09
RS
86522008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8653
8654 * category.c (syms_of_category): Fix typo in docstring.
8655
23fe745a
JB
86562008-10-28 Juanma Barranquero <lekktu@gmail.com>
8657
8658 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8659 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8660 Fix typos in docstrings.
8661
ff808935
DN
86622008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8663
8664 * emacs.c (daemon_pipe): Make non-static.
8665 (IS_DAEMON): Move definition ...
8666 * lisp.h (IS_DAEMON): ... here.
8667 (daemon_pipe): Declare.
8668 (is_daemon): Remove.
8669 * dispnew.c (init_display): Use IS_DAEMON.
8670
fc012771
SM
86712008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8672
8673 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8674 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8675
8676 * emacs.c (is_daemon): Remove.
8677 (main): Don't set is_daemon.
8678 (IS_DAEMON): New macro.
8679 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8680 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8681 parent exits.
8682 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8683
d8bdbe6f
CY
86842008-10-27 Chong Yidong <cyd@stupidchicken.com>
8685
d1a072bf
CY
8686 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8687 over-sized glyph, draw it with the default glyph width.
8688
e2e325aa
CY
8689 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8690 glyph, draw it with the default glyph width.
8691
8692 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8693 glyph, draw it with the default glyph width.
8694
d8bdbe6f
CY
8695 * xdisp.c (try_scrolling): When computing the distance from the
8696 scroll margin to PT, try moving some distance past the window
8697 bottom before giving up.
8698
7bfac547
MR
86992008-10-27 Martin Rudalics <rudalics@gmx.at>
8700
8701 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8702 (Fset_window_buffer): Explain in doc-string that a window can be
8703 "strongly" dedicated to its buffer.
8704
4ff029f6
DN
87052008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8706
8707 * emacs.c (daemon_name): New variable.
8708 (main): Deal with --daemon=SERVER_NAME.
8709 (Fdaemonp): Return a name if one was passed to --daemon.
8710
5790ef40
DN
87112008-10-26 Romain Francoise <romain@orebokech.com>
8712
f9bd0df9 8713 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8714 (main): Create a pipe before forking, make the parent exit only after
8715 the child has closed its end of the pipe. Move closing the
8716 descriptors ...
8717 (Fdaemon_initialized): ... here. New function.
8718
f5385255
SM
87192008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8720
4d632321
SM
8721 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8722 the previous unoptimized table.
8723
f5385255
SM
8724 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8725 the distinction between non-nil and non-t value of `dedicated'.
8726
6c56a0f3
CY
87272008-10-25 Chong Yidong <cyd@stupidchicken.com>
8728
8729 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8730 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8731
fec89261
MR
87322008-10-25 Martin Rudalics <rudalics@gmx.at>
8733
8734 * window.c (Fget_buffer_window, Fdelete_windows_on)
8735 (Freplace_buffer_in_windows): Make buffer argument optional and
8736 rename to buffer_or_name.
8737
34fcddd0
CY
87382008-10-24 Chong Yidong <cyd@stupidchicken.com>
8739
f5385255
SM
8740 * xdisp.c (handle_single_display_spec, handle_display_prop):
8741 Undo 2005-05-16 change.
34fcddd0
CY
8742 (handle_stop): Pop iterator if it's loaded with an empty string.
8743 (get_overlay_strings_1): Don't save iterator if it's loaded with
8744 an empty string (bug#1201).
8745
064766f2
KH
87462008-10-24 Kenichi Handa <handa@m17n.org>
8747
8748 * ftfont.c (ftfont_otf_features): Fix previous change.
8749 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8750 calling ftfont_otf_features.
8751
f9bd0df9 87522008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8753
8754 * font.c (font_match_p): Fix for the case that a vector of
8755 characters is in script-representative-chars.
8756
1dae9197
MA
87572008-10-24 Michael Albinus <michael.albinus@gmx.de>
8758
8759 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8760 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8761 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8762 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8763 macro. (Bug#1186)
1dae9197 8764
f9bd0df9 87652008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8766
8767 * s/sol2-10.h: New file.
8768
878a4584
JB
87692008-10-23 Juanma Barranquero <lekktu@gmail.com>
8770
8771 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8772 poor beast has survived 9+ years and the jump from xterm.c!).
8773
cd265ca6
MR
87742008-10-23 Martin Rudalics <rudalics@gmx.at>
8775
8776 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8777 Reword doc-string.
f5385255 8778 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8779
472a4dc9
JB
87802008-10-23 Juanma Barranquero <lekktu@gmail.com>
8781
8782 * character.c (syms_of_character) <script-representative-chars>:
8783 <unicode-category-table>: Doc fixes.
8784
159bd5a2
NF
87852008-10-23 Noah Friedman <friedman@splode.com>
8786
8787 * coding.c (make_conversion_work_buffer): Check that
8788 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8789 Fget_buffer_create.
8790
49f9c344
KH
87912008-10-23 Kenichi Handa <handa@m17n.org>
8792
8793 * font.c (font_add_log): Check the values of extra properties.
8794
12bb3111
MR
87952008-10-22 Martin Rudalics <rudalics@gmx.at>
8796
8797 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8798 Reword doc-string.
8799 (Fset_window_parameter): Use NILP.
8800 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8801 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8802
bbeb4e99
JB
88032008-10-22 Juanma Barranquero <lekktu@gmail.com>
8804
8805 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8806
88072008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8808
8809 * nsfns.m (ns_appkit_version): New function.
8810 (x-server-version): Use it.
8811 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8812 (x-server-vendor): Don't check_ns().
8813
8814 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8815
a9b555d3
JB
88162008-10-22 Juanma Barranquero <lekktu@gmail.com>
8817
8818 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8819 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8820
4626499f
KH
88212008-10-22 Kenichi Handa <handa@m17n.org>
8822
e3681952
KH
8823 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8824 scripts.
8825
4626499f
KH
8826 * category.c (word_boundary_p): Check scripts instead of charset.
8827 Handle nil value in word-separating-categories and
8828 word-combining-categories.
8829 (syms_of_category): Fix docstrings of word-separating-categories
8830 and word-combining-categories.
8831
1560f91a
EZ
88322008-10-21 Eli Zaretskii <eliz@gnu.org>
8833
8834 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8835 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8836
f4668441
MR
88372008-10-21 Martin Rudalics <rudalics@gmx.at>
8838
8839 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8840 Rename arg "buffer" to "buffer_or_name".
8841 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8842 it optional.
8843 (no_switch_window): Remove since the return value is not used.
a9b555d3 8844 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8845 Consider window as dedicated when Fwindow_dedicated_p returns a
8846 non-nil value.
8847 * lisp.h: Remove prototype for no_switch_window.
8848
fd75ddb2
JD
88492008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8850
8851 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8852 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8853
07295713
KH
88542008-10-21 Kenichi Handa <handa@m17n.org>
8855
8856 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8857 check Vlatin_extra_code_table.
8858
712adc82
EZ
88592008-10-20 Eli Zaretskii <eliz@gnu.org>
8860
8861 * fileio.c (Fset_file_modes): Doc fix.
8862
f549eb0b
MA
88632008-10-19 Michael Albinus <michael.albinus@gmx.de>
8864
8865 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8866 in arrays.
8867
aac0c6e3
MR
88682008-10-19 Martin Rudalics <rudalics@gmx.at>
8869
8870 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8871 Mention kill-buffer in doc-string.
8872 (Fset_window_buffer): Reinsert tem check removed in last commit.
8873 (Fenlarge_window, Fshrink_window): Have argument names and
8874 doc-string follow Elisp manual more closely.
8875
88762008-10-18 Eli Zaretskii <eliz@gnu.org>
8877
8878 * fileio.c (Fset_file_modes): Doc fix.
8879
88802008-10-18 Martin Rudalics <rudalics@gmx.at>
8881
8882 * window.c (Fwindow_width, Fset_window_start)
8883 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8884 (Fdelete_windows_on, Freplace_buffer_in_windows):
8885 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8886 (Fwindow_dedicated_p): Make window argument optional.
8887 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8888 (Fset_window_buffer): Respect any non-nil dedicated value for
8889 window. Rename "buffer" argument to "buffer_or_name".
8890
88912008-10-18 Ulrich Mueller <ulm@gentoo.org>
8892
8893 * m/sh3.h: New file, machine description for SuperH.
8894
88952008-10-17 Martin Rudalics <rudalics@gmx.at>
8896
8897 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8898
88992008-10-17 Kenichi Handa <handa@m17n.org>
8900
8901 * ftfont.c (ftfont_otf_features): Fix indexing
8902 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8903
89042008-10-16 Magnus Henoch <mange@freemail.hu>
8905
8906 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8907 (Fdbus_call_method_asynchronously): Ditto.
8908 This change makes C-h f display the argument list.
8909
89102008-10-16 Chong Yidong <cyd@stupidchicken.com>
8911
8912 * fileio.c (Fexpand_file_name): Doc fix.
8913
8914 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8915 of :foreground and :background equivalent to unspecified (20.x
8916 compatibility).
8917
89182008-10-15 Eli Zaretskii <eliz@gnu.org>
8919
8920 * buffer.c (syms_of_buffer): Doc fix.
8921
89222008-10-14 Kenichi Handa <handa@m17n.org>
8923
8924 * font.c (font_clear_prop): When clearing font width, clear the
8925 average width field too.
8926
89272008-10-12 Andreas Schwab <schwab@suse.de>
8928
8929 * ftfont.c (ftfont_shape_by_flt): Make static.
8930 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8931
8932 * font.c: Don't include <m17n-flt.h>.
8933
89342008-10-10 Eli Zaretskii <eliz@gnu.org>
8935
8936 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8937
89382008-10-09 Eli Zaretskii <eliz@gnu.org>
8939
8940 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8941 away code.
8942
89432008-10-09 Chong Yidong <cyd@stupidchicken.com>
8944
8945 * dispnew.c (update_text_area): Avoid looping due to large glyph
8946 overhangs (bug#1070).
8947
89482008-10-09 Kenichi Handa <handa@m17n.org>
8949
8950 * fontset.c (face_for_char): If face->fontset is negative, just
8951 return ascii_face.
8952
f5385255
SM
8953 * font.c (font_delete_unmatched): Fix previous change.
8954 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8955
89562008-10-09 Martin Rudalics <rudalics@gmx.at>
8957
8958 * frame.c (Fraise_frame): On text-only terminals select frame in
8959 order to make it visible. (Bug#1061)
8960
89612008-10-08 Chong Yidong <cyd@stupidchicken.com>
8962
8963 * fontset.c (fontset_find_font): Check frame validity.
8964
89652008-10-07 Chong Yidong <cyd@stupidchicken.com>
8966
a9b555d3 8967 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8968 (xg_display_close): Allow Emacs to close all displays (bug#985).
8969
89702008-10-06 Andreas Schwab <schwab@suse.de>
8971
f5385255 8972 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8973
89742008-10-06 Chong Yidong <cyd@stupidchicken.com>
8975
f5385255 8976 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8977
a9b555d3 8978 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8979
8980 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8981 during initialization.
8982
89832008-10-04 Eli Zaretskii <eliz@gnu.org>
8984
8985 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8986 whole thing on MSDOS frames as well as on a TTY.
8987
8988 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8989 well as for TTY.
8990 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8991 well as on a TTY.
8992
8993 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8994 as well as for TTY.
8995
8996 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8997
8998 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8999 MSDOS frames as well.
9000
90012008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9002
9003 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
9004 correct arguments.
b71ac3dd 9005 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
9006
90072008-10-03 Glenn Morris <rgm@gnu.org>
9008
9009 * emacs.c (USAGE1): Add --daemon.
9010
90112008-10-02 Eli Zaretskii <eliz@gnu.org>
9012
9013 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
9014 100, so it's in percents as advertised.
9015
90162008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9017
9018 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
9019 (ns_output.current_cursor, ns_output.desired_cursor)
9020 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
9021 (FRAME_NEW_CURSOR_COLOR): Remove.
9022
9023 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 9024 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
9025 enumeration (HOLLOW_BOX_CURSOR, etc.).
9026
9027 * nsterm.m (ns_frame_rehighlight): Remove commented code.
9028 (draw_window_cursor): Simplify code.
f5385255
SM
9029 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
9030 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 9031 updates manually.
a9b555d3
JB
9032 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
9033 Use core Emacs cursor types.
aac0c6e3 9034
b8ff72fa 9035 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
9036
90372008-10-02 Martin Rudalics <rudalics@gmx.at>
9038
9039 * process.c (Faccept_process_output): Fix doc-string.
9040
90412008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
9042
9043 * gmalloc.c (__sbrk): Also define for uClibc.
9044
9045 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
9046 for uClibc.
9047
90482008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9049
9050 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
9051 styles.
9052 (nsfont_open): Reenable the cache.
9053
90542008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9055
9056 * font.c (font_matching_entity): Reflect ATTRS in font selection.
9057 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
9058
90592008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
9060
9061 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
9062 a suspended terminal.
9063
90642008-09-30 Michael Albinus <michael.albinus@gmx.de>
9065
9066 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
9067
90682008-09-30 Eli Zaretskii <eliz@gnu.org>
9069
9070 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
9071
90722008-09-30 Chong Yidong <cyd@stupidchicken.com>
9073
9074 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
9075 in a continued line coincides with a line beginning.
9076
90772008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9078
9079 * nsfont.m (nsfont_trait_distance): Fix bug.
9080 (nsfont_list): Return a list rather than a vector (syncs with Handa
9081 changes of 2008-05-14).
9082 (nsfont_open): Improve logging.
9083
90842008-09-29 Andreas Schwab <schwab@suse.de>
9085
9086 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9087
90882008-09-28 Martin Rudalics <rudalics@gmx.at>
9089
9090 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
9091 name as char-resolve-modifiers.
9092 Reported by: Markus Triska <markus.triska@gmx.at>
9093
90942008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
9095
9096 * dispnew.c (init_display): Return earlier when running as a daemon.
9097
90982008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
9099
9100 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
9101
91022008-09-27 Eli Zaretskii <eliz@gnu.org>
9103
9104 * composite.c (Fcomposition_get_gstring)
9105 (Fcompose_region_internal, Fcompose_string_internal)
9106 (Ffind_composition_internal): Doc fix.
9107 (syms_of_composite) <compose-chars-after-function>: Doc fix.
9108 (syms_of_composite) <auto-composition-function>: Doc fix.
9109 (syms_of_composite) <composition-function-table>: Doc fix.
9110
91112008-09-25 Chong Yidong <cyd@stupidchicken.com>
9112
9113 * search.c (wordify): New argument for lax word-ends.
9114 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9115
91162008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9117
9118 * lisp.h (is_daemon): Declare.
9119 * dispnew.c (init_display): Do not try to initialize the terminal
9120 when running as a daemon.
9121
91222008-09-22 Chong Yidong <cyd@stupidchicken.com>
9123
9124 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9125 x_display_pixel_height.
9126
91272008-09-22 Martin Rudalics <rudalics@gmx.at>
9128
9129 * undo.c (record_point): Don't call Fundo_boundary for first
9130 change. (Bug#731)
9131
91322008-09-22 Juanma Barranquero <lekktu@gmail.com>
9133
9134 * emacs.c (Fdaemonp): Doc fix.
9135
91362008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9137
9138 * emacs.c (main): Place #ifdef in the proper place.
9139
91402008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9141
9142 * emacs.c (standard_args): Add --daemon.
9143 (main): Disconnect from the terminal when --daemon is passed.
9144 (is_daemon): New variable.
9145 (Fdaemonp): New function.
9146 (syms_of_emacs): Defsubr it.
9147
91482008-09-20 Chong Yidong <cyd@stupidchicken.com>
9149
9150 * xdisp.c (get_next_display_element): Handle string display
9151 correctly when checking for the end of a box run.
9152
91532008-09-20 Glenn Morris <rgm@gnu.org>
9154
9155 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9156 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9157 (Frename_file): Avoid copying to trash if a rename involves
9158 a delete. (Bug#964).
9159
91602008-09-20 Eli Zaretskii <eliz@gnu.org>
9161
9162 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9163 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9164 frames as well as termcap frames.
9165 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9166 get_named_tty.
9167
91682008-09-19 Eli Zaretskii <eliz@gnu.org>
9169
9170 * process.c (procfs_system_process_attributes): Fix cmdline in
9171 case /proc/PID/cmdline is empty.
9172
9173 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9174 x_display_pixel_height.
9175
91762008-09-19 Juanma Barranquero <lekktu@gmail.com>
9177
9178 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9179
9180 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9181 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9182
91832008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9184
9185 * dispextern.h (struct it): Move line_wrap away from the middle of
9186 bitfields. Move voffset in struct iterator_stack_entry after the
9187 bitfields. Move tab_width near after another short.
9188
91892008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9190
9191 * frame.h (struct frame): Move alpha from the middle of bitfields.
9192
9193 * window.h (struct window): Move frozen_window_start_p after the
9194 rest of the bitfields to reduce padding.
9195
91962008-09-18 Chong Yidong <cyd@stupidchicken.com>
9197
9198 * xterm.h (x_display_info): Remove `height' and `width' members.
9199
9200 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9201
9202 * w32term.h (w32_display_info): Remove `height', `width',
9203 `height_in', and `width_in' members.
9204
b8ff72fa
SM
9205 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9206 New functions.
aac0c6e3
MR
9207 (x_calc_absolute_position): Use them.
9208 (x_term_init): Omit removed `height' and `width' members.
9209
b8ff72fa
SM
9210 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9211 New functions.
aac0c6e3
MR
9212 (w32_read_socket, x_calc_absolute_position): Use them.
9213 (w32_initialize_display_info, w32_term_init): Omit removed members
9214 of w32_display_info.
9215
b8ff72fa
SM
9216 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9217 New functions.
9218 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9219
b8ff72fa
SM
9220 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9221 New functions.
aac0c6e3
MR
9222 (x_calc_absolute_position): Use them.
9223 (x_term_init): Omit removed `height' and `width' members.
9224
9225 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9226 (compute_tip_xy):
9227 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9228 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9229 x_display_pixel_width.
9230
92312008-09-18 Kenichi Handa <handa@m17n.org>
9232
9233 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9234 (composition_compute_stop_pos): Fix handling of static composition.
9235 (Fcomposition_get_gstring): Check FROM and TO at first.
9236
92372008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9238
46e722a9 9239 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9240 mixup (YAILOM).
9241
92422008-09-17 Chong Yidong <cyd@stupidchicken.com>
9243
9244 * indent.c (Fvertical_motion): Use position reported by iterator
9245 instead of PT for determining screen motion (bug#943).
9246
92472008-09-17 Romain Francoise <romain@orebokech.com>
9248
9249 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9250
92512008-09-17 Kenichi Handa <handa@m17n.org>
9252
9253 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9254
9255 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9256 if necessary.
9257
92582008-09-16 Kenichi Handa <handa@m17n.org>
9259
9260 * coding.c (make_conversion_work_buffer): Avoid calling
9261 Fget_buffer_create if it is not necessary.
9262
92632008-09-15 Martin Rudalics <rudalics@gmx.at>
9264
9265 * window.c (Fselect_window): Don't update window_select_count and
9266 use_time when norecord is not nil.
9267
92682008-09-14 Kenichi Handa <handa@m17n.org>
9269
9270 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9271 specpdl_ptr.
9272
92732008-09-12 Kenichi Handa <handa@m17n.org>
9274
9275 * indent.c (scan_for_column): Don't handle automatic composition
9276 if the current buffer is not associated with a window.
9277
9278 * composite.c (composition_reseat_it): If the current buffer is
9279 not associated with a window, ignore the automatic composition.
9280 (find_automatic_composition): Likewise.
9281
92822008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9283
9284 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9285 (Fgpm_mouse_stop): Use it.
9286 * termhooks.h (close_gpm): Declare.
9287 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9288 connection if Gpm_GetEvent fails.
9289
9290 * window.c (set_window_buffer): Always preserve current-buffer.
9291
92922008-09-12 Glenn Morris <rgm@gnu.org>
9293
9294 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9295
92962008-09-11 Glenn Morris <rgm@gnu.org>
9297
9298 * charset.c (charset-map-path): Doc fix.
9299
93002008-09-10 Kenichi Handa <handa@m17n.org>
9301
9302 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9303
9304 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9305 compose a grapheme cluster with the preceding base glyph.
9306
9307 * composite.c (composition_compute_stop_pos): Fix previous change.
9308 Reset cmp_it->id to -1 at first.
9309
93102008-09-10 Glenn Morris <rgm@gnu.org>
9311
9312 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9313
93142008-09-09 Chong Yidong <cyd@stupidchicken.com>
9315
9316 * keyboard.c (read_key_sequence): Reapply translation maps when
9317 switching keyboards.
9318
93192008-09-09 Kenichi Handa <handa@m17n.org>
9320
9321 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9322 characters.
9323
9324 * composite.c (FORWARD_CHAR): Fix calculation
9325 of (POSITION).pos_byte.
9326 (composition_compute_stop_pos): Limit the search of composition to
9327 at most 500 characters ahead. If we reach the limit or find a
9328 newline, set cmp_it->ch to -2 and return 0.
9329 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9330
93312008-09-08 Kenichi Handa <handa@m17n.org>
9332
9333 * indent.c (Fvertical_motion): Be sure to set
9334 it_overshoot_expected if it.cmp_it.id is non-negative.
9335
93362008-09-07 Andreas Schwab <schwab@suse.de>
9337
9338 * callproc.c (Fcall_process): Don't hold references to string data
9339 across garbage collection. Move initialisation of new_argv down
9340 to avoid compiler bug.
9341
93422008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9343
9344 * process.c (Fsystem_process_attributes): Doc fix.
9345
93462008-09-07 Chong Yidong <cyd@stupidchicken.com>
9347
9348 * callproc.c (Fcall_process): Canonicalize current directory name.
9349
9350 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9351 iterator advances to the next line if the current line ends in a
9352 continued tab.
9353
93542008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9355
9356 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9357 member to point to cmp_from.
9358
9359 * xdisp.c: Doc fix for references to gidx data member.
9360
93612008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9362
9363 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9364
93652008-09-07 Kenichi Handa <handa@m17n.org>
9366
9367 * composite.c (FORWARD_CHAR): Check STOP after
9368 incrementing (POSITION).pos.
9369
93702008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9371
9372 * process.c (Fsystem_process_attributes): Doc fix.
9373
93742008-09-06 Chong Yidong <cyd@stupidchicken.com>
9375
9376 * keyboard.c (Ftop_level): Doc fix.
9377
93782008-09-06 Eli Zaretskii <eliz@gnu.org>
9379
9380 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9381 minibuffer, don't let lower part of menu invade the echo area.
9382
9383 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9384 "char *q" to access menu text and advance through it. Revert the
9385 change that displayed ">" instead of ASCII character 0x10.
9386
93872008-09-05 Eli Zaretskii <eliz@gnu.org>
9388
9389 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9390 toggle boxes and radio buttons on MS-DOS as well.
9391
93922008-09-05 Kenichi Handa <handa@m17n.org>
9393
9394 * composite.c (autocmp_chars): Check lookback count.
9395 (composition_compute_stop_pos): Set cmp_it->lookback.
9396 (composition_reseat_it): Check lookback count.
9397 (struct position_record): New struct.
9398 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9399 (find_automatic_composition): New function.
9400 (composition_adjust_point): Use find_automatic_composition.
9401
9402 * dispextern.h (struct composition_it): New member lookback.
9403
94042008-09-02 Chong Yidong <cyd@stupidchicken.com>
9405
9406 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9407 if moving by a single line.
9408
94092008-09-02 Andreas Schwab <schwab@suse.de>
9410
9411 * xterm.c (x_delete_display): Fix merge error.
9412
9413 * fileio.c (Fexpand_file_name): Remove unused variables.
9414
94152008-09-02 Eli Zaretskii <eliz@gnu.org>
9416
9417 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9418 storage on all platforms, not just on DOS_NT.
9419
94202008-09-02 Jason Rumney <jasonr@gnu.org>
9421
b8ff72fa
SM
9422 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9423 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9424
94252008-09-01 Chong Yidong <cyd@stupidchicken.com>
9426
9427 * xfaces.c (Finternal_set_alternative_font_family_alist)
9428 (Finternal_set_alternative_font_registry_alist): Properly copy
9429 entire alist structure.
9430
94312008-09-01 Kenichi Handa <handa@m17n.org>
9432
d66c0241 9433 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9434 representative chars of the script is a vector.
d66c0241
JB
9435 (ftfont_list): Handle the case where the representative chars of
9436 the script is a vector.
aac0c6e3
MR
9437
9438 * character.c (syms_of_character): Docstring of
9439 script-representative-chars fixed.
9440
94412008-08-31 Eli Zaretskii <eliz@gnu.org>
9442
9443 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9444 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9445 the menu. Allocate larger buffer for `text', to account for
9446 possible ^C characters.
9447
94482008-08-31 Martin Rudalics <rudalics@gmx.at>
9449
9450 * xdisp.c (prepare_menu_bars): Don't call
9451 Vwindow_size_change_functions with arg Qt.
9452
94532008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9454
9455 * font.h (font_range):
9456 * fileio.c (report_file_error):
46e722a9
SM
9457 * composite.c (composition_update_it): Yet another int/Lisp_Object
9458 mixup (YAILOM).
aac0c6e3
MR
9459
94602008-08-30 Glenn Morris <rgm@gnu.org>
9461
9462 * data.c (Fmake_variable_frame_local): Doc fix.
9463
9464 * frame.c (Fmodify_frame_parameters): Doc fix.
9465
94662008-08-30 Eli Zaretskii <eliz@gnu.org>
9467
9468 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9469 needed by GetTokenInformation.
9470 (w32_system_process_attributes): Check return values of all system
9471 APIs.
9472
9473 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9474 only when the state changes.
9475 (IT_update_begin, IT_update_end): Add termscript trace.
9476
9477 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9478 clipboard is unavailable. Set dst to NULL if it doesn't point to
9479 malloc'ed data.
9480 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9481 passing random values to xfree.
9482
9483 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9484 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9485
94862008-08-29 Jason Rumney <jasonr@gnu.org>
9487
9488 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9489
94902008-08-29 Eli Zaretskii <eliz@gnu.org>
9491
9492 * composite.c (fill_gstring_body): Avoid compiler warnings.
9493
9494 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9495 LGLYPH_SET_CODE to avoid compiler warnings.
9496
2ae37cf0 9497 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9498
9499 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9500
9501 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9502 LGLYPH_SET_CODE.
9503
95042008-08-29 Kenichi Handa <handa@m17n.org>
9505
9506 * fileio.c (report_file_error): Don't downcase the first character
9507 of errstring if it is still unibyte.
9508
95092008-08-29 Kenichi Handa <handa@m17n.org>
9510
9511 These changes are to re-implement the automatic composition so
9512 that it doesn't use text properties.
9513
9514 * Makefile.in (ftfont.o): Depend on composite.h.
9515 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9516
9517 * character.h (Vunicode_category_table): Extern it.
9518
9519 * character.c (Vunicode_category_table): New variable.
9520 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9521
9522 * chartab.c (optimize_sub_char_table): Perform more greedy
9523 optimization.
9524
b8ff72fa
SM
9525 * composite.h (enum composition_method):
9526 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9527 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9528 (Vcomposition_function_table): Extern it.
9529 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9530 (composition_gstring_put_cache, composition_gstring_from_id)
9531 (composition_gstring_p, composition_gstring_width)
9532 (composition_compute_stop_pos, composition_reseat_it)
9533 (composition_update_it, composition_adjust_point): Extern them.
9534 (Fcomposition_get_gstring): EXFUN it.
9535
d66c0241 9536 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9537 (Vcomposition_function_table)
9538 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9539 (gstring_hash_table, gstring_work, gstring_work_headers):
9540 New variables.
aac0c6e3
MR
9541 (gstring_lookup_cache, composition_gstring_put_cache)
9542 (composition_gstring_from_id, composition_gstring_p)
9543 (composition_gstring_width, fill_gstring_header)
9544 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9545 (composition_reseat_it, composition_update_it)
b8ff72fa 9546 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9547 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9548 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9549 Defsubr composition_get_gstring.
aac0c6e3
MR
9550
9551 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9552 cmp_id.
9553 (struct glyph_string): Delete the member gidx. New members
9554 cmp_id, cmp_from, and cmp_to.
9555 (enum it_method): Delete GET_FROM_COMPOSITION.
9556 (struct composition_it): New struct.
9557 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9558 Delete c, len, cmp_id, cmp_len in u.comp.
9559
9560 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9561 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9562 (enum lglyph_indices): Likewise.
b8ff72fa 9563 (font_range): Adjust extern.
aac0c6e3
MR
9564 (font_fill_lglyph_metrics): Extern it.
9565
9566 * font.c (QCf): New variable.
9567 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9568 (font_prepare_composition): Delete this function.
9569 (font_range): Type and arguments changed.
9570 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9571 (font_fill_lglyph_metrics): New function.
b8ff72fa 9572 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9573 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9574 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9575 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9576
9577 * fontset.h (font_for_char): Extern it.
9578
9579 * fontset.c (font_for_char): New function.
9580
9581 * ftfont.c: Include composite.h.
9582 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9583 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9584
9585 * indent.c: Include composite.h and dispextern.h.
9586 (check_composition): Delete this function.
9587 (scan_for_column): Handle composition by
9588 composition_compute_stop_pos, composition_reseat_it, and
9589 composition_update_it.
9590 (compute_motion): Likewise.
9591 (Fvertical_motion): Fix checking of composition.
9592
9593 * keyboard.c (adjust_point_for_property): Check composition by
9594 composition_adjust_point.
9595
b8ff72fa 9596 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9597 struct glyph_string.
9598
b8ff72fa
SM
9599 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9600 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9601 struct glyph.
9602 (produce_composite_glyph): Likewise.
9603
b8ff72fa
SM
9604 * w32term.c (x_draw_composite_glyph_string_foreground):
9605 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9606 (x_draw_glyph_string): Likewise.
9607
9608 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9609 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9610
9611 * xdisp.c: Include font.h.
9612 (it_props): Delete the entry for Qauto_composed.
9613 (init_iterator): Initialize it->cmp_it.id to -1.
9614 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9615 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9616 (handle_auto_composed_prop): Delete it.
9617 (handle_composition_prop): Handle only static composition.
9618 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9619 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9620 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9621 (pop_it): Likewise.
9622 (get_next_element): Delete next_element_from_composition.
9623 (CHAR_COMPOSED_P): New macro.
9624 (get_next_display_element): For automatic composition, get a face
9625 from the font in the glyph-string.
9626 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9627 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9628 (next_element_from_string): Check if the character at the current
9629 position is composed by CHAR_COMPOSED_P.
9630 (next_element_from_buffer): Likewise.
d66c0241
JB
9631 (next_element_from_composition): Adjust for the change of struct it.
9632 Update it->cmp_it.
b8ff72fa
SM
9633 (dump_glyph): Adjust for the change of struct glyph.
9634 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9635 it and struct glyph. Don't handle automatic composition here.
9636 (fill_gstring_glyph_string): New function.
9637 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9638 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9639 (BUILD_GSTRING_GLYPH_STRING): New macro.
9640 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9641 automatic composition.
b8ff72fa 9642 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9643 struct glyph.
b8ff72fa 9644 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9645
b8ff72fa 9646 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9647 the change of struct glyph_string.
9648 (x_draw_glyph_string): Likewise.
9649
96502008-08-29 Glenn Morris <rgm@gnu.org>
9651
9652 * buffer.c (word-wrap): Doc fix.
9653 * xdisp.c (truncate-partial-width-windows): Doc fix.
9654 Increase default to 50.
9655
96562008-08-29 Chong Yidong <cyd@stupidchicken.com>
9657
9658 * xdisp.c (update_tool_bar_unwind): New function.
9659 (update_tool_bar): Temporarily set selected frame before building
9660 tool-bar items.
9661
96622008-08-28 Michael Albinus <michael.albinus@gmx.de>
9663
9664 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9665 snprintf, respectively.
9666 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9667
96682008-08-28 Chong Yidong <cyd@stupidchicken.com>
9669
9670 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9671 LDFLAGS to GNUstep CC invocation.
9672
96732008-08-27 Chong Yidong <cyd@stupidchicken.com>
9674
9675 * indent.c (Fvertical_motion): Revert last change. Handle the
9676 general case where we are moving forward, and PT spans multiple
9677 screen lines.
9678
9679 * eval.c (find_handler_clause): Temporarily increase
9680 max-lisp-eval-depth while printing the backtrace buffer, to
9681 guarantee that help-mode code can run.
9682
96832008-08-27 Eli Zaretskii <eliz@gnu.org>
9684
9685 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9686 colors under -rv.
9687 (IT_set_frame_parameters): Don't swap foreground and background
9688 colors if `(reverse . t)' is present in the frame properties.
9689 (internal_terminal_init): Call init_frame_faces only for the
9690 initial frame.
9691
96922008-08-27 Andreas Schwab <schwab@suse.de>
9693
9694 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9695
96962008-08-27 Andreas Schwab <schwab@suse.de>
9697
9698 * search.c (search_buffer): Set char_base to zero only at the end.
9699
97002008-08-27 Kenichi Handa <handa@m17n.org>
9701
b8ff72fa 9702 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9703
97042008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9705
9706 * xterm.c (x_term_init): Temporarily hide the partially
9707 initialized terminal while calling vendor-specific-keysyms.
9708
97092008-08-26 Eli Zaretskii <eliz@gnu.org>
9710
9711 * msdos.c (internal_terminal_init): Most initializations done only
9712 once, especially initial_screen_colors[] and termscript open.
9713
97142008-08-26 Chong Yidong <cyd@stupidchicken.com>
9715
9716 * eval.c (Fcondition_case): Doc fix.
9717
9718 * widgetprv.h (EmacsFramePart): Change font member to the new font
9719 struct.
9720
9721 * widget.c: Include character.h and font.h for XSETFONT.
9722 (setup_frame_gcs): Compute X font id from font struct, just once.
9723
97242008-08-26 Eli Zaretskii <eliz@gnu.org>
9725
9726 * term.c (get_named_tty): Fix last change.
9727
97282008-08-26 Chong Yidong <cyd@stupidchicken.com>
9729
9730 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9731 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9732
97332008-08-25 Eli Zaretskii <eliz@gnu.org>
9734
9735 * frame.c (do_switch_frame): Mark previously displayed frame as
9736 obscured for FRAME_MSDOS_P frames as well.
9737
97382008-08-24 Eli Zaretskii <eliz@gnu.org>
9739
9740 * frame.c (make_terminal_frame): Initialize f->terminal,
9741 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9742 Set the top frame to newly created frame.
9743 (Fmake_terminal_frame): Reuse the_only_display_info.
9744
9745 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9746 estimating available memory.
9747
b97439ce 97482008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9749
9750 * nsterm.m (ns_draw_window_cursor): Don't call
9751 NSDisableScreenUpdates and NSEnableScreenUpdates on
9752 non-NS_IMPL_COCOA systems.
9753
97542008-08-23 Andreas Schwab <schwab@suse.de>
9755
9756 * process.c (procfs_system_process_attributes): Fix use of
9757 uninitialized variables.
9758
97592008-08-23 Eli Zaretskii <eliz@gnu.org>
9760
9761 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9762
9763 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9764 calling tty-set-up-initial-frame-faces.
9765
b8ff72fa
SM
9766 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9767 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9768
9769 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9770 addition to output_termcap.
9771
9772 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9773
9774 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9775 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9776 highlight.
9777
9778 * process.c [!subprocesses]: Define QCname.
9779 (syms_of_process): Intern and staticpro it.
9780
9781 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9782 Adjust for changes in encoding/decoding routines.
9783 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9784 encode_coding and decode_coding.
9785
b8ff72fa 9786 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9787
9788 * dosfns.c: Include frame.h before termhooks.h.
9789 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9790 variable termscript.
9791
9792 * s/msdos.h (USER_FULL_NAME): Define.
9793 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9794
9795 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9796 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9797 pw->pw_gecos.
9798
9799 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9800 SELECTED_FRAME as additional (1st) argument.
9801 (tty_read_avail_input): Handle output_msdos_raw in
9802 addition to output_termcap.
9803
9804 * msdos.c: Include frame.h before termhooks.h.
9805 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9806 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9807 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9808 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9809 (IT_set_terminal_modes, IT_reset_terminal_modes)
9810 (IT_set_frame_parameters): Use tty->termscript instead of a global
9811 variable termscript.
9812 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9813 global variable terminal_coding. Don't refer to
9814 Vnonascii_translation_table.
9815 (internal_terminal_init): Set Vwindow_system in current_kboard.
9816 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9817 Announce date and time of session start, if termscript is open.
9818 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9819 term.c:init_tty). Open termscript only of not already open.
9820 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9821 here instead of dos_ttraw. Don't initialize display if this is an
9822 initial tty. Don't set FRAME_FONT.
9823 (Vwindow_system_version): Bump to 23.
9824 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9825 is available, set up mouse_position_hook.
9826 (dos_ttraw, IT_set_terminal_modes): If called with initial
9827 terminal, do nothing.
9828 (IT_set_frame_parameters): Handle the Qtty_type frame
9829 parameter by calling internal_terminal_init.
9830 (dos_set_window_size, show_mouse_face)
9831 (clear_mouse_face, IT_note_mode_line_highlight)
9832 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9833 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9834 (initialize_msdos_display): New function.
9835 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9836 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9837 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9838 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9839 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9840 (request_sigio, unrequest_sigio): Don't define, now defined on
9841 sysdep.c.
9842 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9843
9844 * term.c [MSDOS]: Include msdos.h.
9845 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9846 conditional to DOS_NT. Allow only one call to this function in a
9847 session. Don't allocate a new struct tty_display_info; instead,
9848 reuse the_only_display_info. Call get_tty_size to get screen
9849 dimensions. Call init_baud_rate to set bad_rate.
9850 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9851 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9852 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9853 (get_tty_terminal, get_named_tty, Ftty_type)
9854 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9855 output_termcap.
b8ff72fa
SM
9856 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9857 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9858 only when subprocesses are supported.
aac0c6e3
MR
9859
9860 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9861 f->output_data.x.
9862 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9863 terminal devices.
9864
5582fbc7 9865 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9866 x_output.
9867 (FRAME_FONT): Use output_data.tty.
9868 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9869 (struct x_display_info): Rename from display_info. Update all users in
9870 msdos.c.
aac0c6e3 9871 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9872 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9873 (dos_ttraw): Update prototype.
9874
9875 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9876 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9877
98782008-08-23 Jason Rumney <jasonr@gnu.org>
9879
9880 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9881 (fn_TIFFSetDirectory): New library function used.
9882 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9883 (tiff_load): Use :index to select among multiple images. Set count
9884 property when multiple images exist.
9885 (gif_format): Use :index, not :image.
9886
98872008-08-23 Chong Yidong <cyd@stupidchicken.com>
9888
9889 * xdisp.c (try_scrolling): Check INT_MAX instead of
9890 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9891 to obtain INT_MAX.
9892
98932008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9894
9895 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9896
98972008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9898
9899 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9900 GNUstep library location.
9901
99022008-08-21 Chong Yidong <cyd@stupidchicken.com>
9903
9904 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9905 before using it.
9906
9907 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9908
99092008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9910
9911 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9912 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9913 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9914 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9915 (EmacsApp-cursor_blink_handler): Remove declaration.
9916 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9917 match 01 Feb 2008 changes in xterm.c.
9918 (ns_read_socket): Add cast to avoid warning.
9919 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9920 GNUstep.
9921
99222008-08-20 Chong Yidong <cyd@stupidchicken.com>
9923
9924 * xselect.c (x_get_foreign_selection): Return nil if desired
9925 selection could not be obtained, instead of signalling an error.
9926
99272008-08-20 David Reitter <david.reitter@gmail.com>
9928
9929 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9930 * nsterm.m: Remove ns-specific code for cursor blinking.
9931 (ns_draw_window_cursor): Clear cursor properly rather than
9932 redrawing the area. Respect width of bar cursors.
9933 These changes enable the use of generic blink-cursor-mode and
9934 generic cursor types in NS and support smooth cursor movements (do
9935 not blink off after command).
9936 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9937 Nextstep, too.
9938
99392008-08-19 Kenichi Handa <handa@m17n.org>
9940
9941 * font.c (Vfont_log_deferred): New variable.
9942 (font_add_log): Check Vfont_log_deferred.
9943 (font_deferred_log): New function.
9944
9945 * font.h (font_deferred_log): Extern it.
9946
9947 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9948 for sorting.
9949 (face_for_char): Use deferred log.
9950
99512008-08-18 Kenichi Handa <handa@m17n.org>
9952
9953 * fontset.c (face_for_char): Add font log.
9954
9955 * font.c (font_add_log): Add the font properties :script, :lang,
9956 and :otf in the log.
9957
99582008-08-17 Chong Yidong <cyd@stupidchicken.com>
9959
9960 * xdisp.c: Remove dead code.
9961 (handle_invisible_prop, next_overlay_string): Defer call to
9962 setup_for_ellipsis.
9963 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9964
99652008-08-15 Chong Yidong <cyd@stupidchicken.com>
9966
9967 * xfaces.c (lookup_derived_face): Properly handle possible zero
9968 return value of get_lface_attributes.
9969 (merge_faces): Don't tell lookup_derived_face to signal an error
9970 if face is not found.
9971
9972 * dired.c (Fdirectory_files): Doc fix.
9973
9974 * process.c (make_process): Initialize kill_without_query struct
9975 member.
9976
99772008-08-15 Eli Zaretskii <eliz@gnu.org>
9978
9979 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9980 Alternative calculation of totphys for Visual Studio 6.
9981
9982 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9983
9984 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9985 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9986 All users changed.
9987 (stat): Only root directory passed to GetDriveType. Allow RAM
9988 disk as well as local fixed disk when w32-get-true-file-attributes
9989 is set to `local'.
9990 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9991 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9992 (w32_cached_id, w32_add_to_cache): New functions.
9993 (get_name_and_id): Look account names in the cache before calling
9994 lookup_account_sid.
9995 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9996 New initialization flags.
9997 (globals_of_w32): Initialize them to zero.
9998 (w32_system_process_attributes): Use w32_cached_id and
9999 w32_add_to_cache.
10000
100012008-08-14 Lawrence Mitchell <wence@gmx.li>
10002
10003 * lread.c (Fread_char, Fread_char_exclusive): If no character
10004 event is read before timeout is reached, return nil, rather than
10005 converting to a number.
10006
100072008-08-14 Chong Yidong <cyd@stupidchicken.com>
10008
10009 * fns.c (use_dialog_box): Doc fix.
10010
10011 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
10012 on OS X.
10013
100142008-08-13 Chong Yidong <cyd@stupidchicken.com>
10015
10016 * frame.c (Qns_parse_geometry): New var.
10017 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
10018
100192008-08-11 Chong Yidong <cyd@stupidchicken.com>
10020
10021 * xdisp.c (x_produce_glyphs): Handle the case when font has no
10022 space character in calculating tabs.
10023
100242008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
10025
10026 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
10027
100282008-08-10 Glenn Morris <rgm@gnu.org>
10029
10030 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
10031 silence gcc "limited range of data type" warnings in some
10032 make_fixnum_or_float calls.
10033
100342008-08-09 Eli Zaretskii <eliz@gnu.org>
10035
10036 * w32.c (w32_system_process_attributes): If the process does not
10037 exist, return nil.
10038
10039 * w32.c: Include thelp32.h, psapi.h and coding.h.
10040 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
10041 declarations.
10042 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
10043 (Process32Next_Proc): New typedefs.
10044 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
10045 (g_b_init_process32_next, g_b_init_open_thread_token)
10046 (g_b_init_impersonate_self, g_b_init_revert_to_self)
10047 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
10048 (g_b_init_get_process_working_set_size)
10049 (g_b_init_global_memory_status_ex): New static variables.
10050 (globals_of_w32): Initialize them.
10051 (create_toolhelp32_snapshot, process32_first, process32_next)
10052 (open_thread_token, impersonate_self, revert_to_self)
10053 (get_process_memory_info, get_process_working_set_size)
10054 (global_memory_status, global_memory_status_ex): New wrapper
10055 functions.
10056 (w32_list_system_processes, w32_system_process_attributes)
10057 (enable_privilege, restore_privilege, ltime, process_times):
10058 New functions.
10059 (convert_time_raw): New function.
10060 (convert_time): Remove conversion of FILETIME into time in 100
10061 nsec units, call convert_time_raw instead.
10062
10063 * process.h (w32_list_system_processes, w32_system_process_attributes):
10064 Add prototypes.
10065 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
10066 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
10067 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
10068 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
10069
10070 * process.c (Fsystem_process_attributes): Doc fix.
10071
100722008-08-08 Chong Yidong <cyd@stupidchicken.com>
10073
10074 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
10075 a continued multi-char glyph; if so, advance to the actual glyph.
10076
100772008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
10078
10079 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
10080
10081 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
10082 (.m.o): Use it.
10083 * config.in: Regenerate.
10084
100852008-08-07 Chong Yidong <cyd@stupidchicken.com>
10086
10087 * xdisp.c (redisplay_window): Revert last change.
10088 (try_window): Check bottom scroll margin too.
10089
100902008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10091
10092 * config.in: Regenerate.
10093
10094 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
10095 -list-load-path-shadows'.
10096 (nsgui.h): Reduce number of things depending on it.
10097
100982008-08-06 Chong Yidong <cyd@stupidchicken.com>
10099
10100 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
10101 instead of window-end which does the wrong thing at eob.
10102 (try_cursor_movement): Minor optimization.
10103 (redisplay_window): If scroll margin is defined, don't assume
10104 window doesn't need scrolling.
10105
101062008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10107
10108 * config.in: Regenerate.
10109
10110 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
10111 (mostlyclean): Don't delete *.d under NS.
10112
10113 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10114
101152008-08-06 Kenichi Handa <handa@m17n.org>
10116
10117 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10118
101192008-08-06 Andreas Schwab <schwab@suse.de>
10120
10121 * config.in: Regenerate.
10122
101232008-08-05 Chong Yidong <cyd@stupidchicken.com>
10124
10125 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10126 forcing a window start.
10127
10128 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10129 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10130
101312008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10132
10133 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10134 argument.
10135
101362008-08-05 Juanma Barranquero <lekktu@gmail.com>
10137
10138 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10139 <scroll-down-aggressively, before-change-functions>:
10140 <after-change-functions>: Reflow docstrings.
10141
101422008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10143 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10144
10145 Dock menu customization, based on a patch by Ken Raeburn, plus some
10146 other fixes.
10147 * nsmenu.m (dockMenu): New variable.
10148 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10149
10150 * nsterm.h (dockMenu): Declare.
10151
10152 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10153 (ns_term_init): Initialize dockMenu.
10154 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10155 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10156 left.
10157
10158 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10159
101602008-08-04 Chong Yidong <cyd@stupidchicken.com>
10161
10162 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10163
10164 * config.in: Regenerate.
10165
101662008-08-04 Seiji Zenitani <zenitani@mac.com>
10167
10168 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10169
101702008-08-04 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10173
101742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10175
10176 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10177
10178 * keyboard.h: Comment an #endif.
10179
10180 * lisp.h (have_menus_p): Adjust comment.
10181
10182 * menu.c (find_and_return_menu_selection): Fix comparison with
10183 client_data.
10184
10185 * nsmenu.m (popup_activated_flag): New variable.
10186 (popup_activated): New function.
10187 (menu-or-popup-active-p): New exported lisp definition.
10188 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10189 when popup done.
10190 (ns_popup_dialog): Set popup_activated_flag.
10191
10192 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10193 version for GNUstep (handled by conditional typedef in nsterm.m).
10194 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10195 in rgb.txt).
10196
10197 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10198
10199 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10200
10201 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10202
10203 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10204 shortcircuit if popup_activated like GTK and X toolkit.
10205
10206 * m/inter386.h: Change DARWIN to DARWIN_OS.
10207
10208 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10209 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10210 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10211 comment on NO_SOCK_SIGIO.
10212
102132008-08-03 Chong Yidong <cyd@stupidchicken.com>
10214
10215 * nsterm.m (windowDidResize): Remove stopModal call.
10216
102172008-08-03 Andreas Schwab <schwab@suse.de>
10218
10219 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10220 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10221
102222008-08-02 Chong Yidong <cyd@stupidchicken.com>
10223
10224 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10225 Don't use uninitialized pointer variable when using getrlimit.
10226
102272008-08-02 Jason Rumney <jasonr@gnu.org>
10228
10229 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10230
102312008-08-02 Eli Zaretskii <eliz@gnu.org>
10232
10233 * alloc.c (NSTATICS): Bump to 0x640.
10234
10235 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10236
10237 * lisp.h: Add prototype for directory_files_internal.
10238
10239 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10240 New functions.
10241 (syms_of_process): Defsubr them. Add initializations for various
10242 Q* symbols used in procfs_system_process_attributes.
10243 (procfs_list_system_processes, procfs_system_process_attributes)
10244 [HAVE_PROCFS]: New functions.
10245 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10246 (procfs_get_total_memory): New functions.
10247
102482008-08-01 Juanma Barranquero <lekktu@gmail.com>
10249
10250 * xfaces.c (Fx_load_color_file): Fix previous change;
10251 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10252
102532008-08-01 Michael Albinus <michael.albinus@gmx.de>
10254
10255 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10256
102572008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10258
10259 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10260
102612008-08-01 Chong Yidong <cyd@stupidchicken.com>
10262
10263 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10264
10265 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10266 define NSApplicationDelegateReplySuccess.
10267 (EmacsView -converstationIdentifier): Use long instead of
10268 NSInteger for GNUstep, since it doesn't have NSInteger.
10269
10270 * xmenu.c: Revert last change.
10271
10272 * keyboard.h: Fix last change.
10273
102742008-08-01 Juanma Barranquero <lekktu@gmail.com>
10275
10276 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10277 on Windows.
10278
102792008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10280
10281 Warning clearing and clean-up in NS port.
10282 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10283 Add prototypes.
10284 * nsgui.h (FACE_DEFAULT): Remove, unused.
10285 (XGCValues): Change colors to unsigned long.
10286 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10287 nsterm.m.
10288 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10289 (ns_list_fonts): Remove, unused.
10290 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10291 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10292 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10293 (nsfont_draw): Compare face colors to 0, not nil.
10294 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10295 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10296 (-addSubmenuWithTitle:): Use NSMenuItem class.
10297 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10298 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10299 (ns_clip_to_row): Make gc arg a BOOL.
10300 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10301 ns_clip_to_row() call.
10302 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10303 used). Cast FRAME_FONT assignments.
10304 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10305 (ns_string_to_lispmod): Change arg to const char.
10306 (ns_term_init): Use NSMenuItem class.
10307 (EmacsApp -openFile:): Move to different section of file.
10308 (EmacsApp -application:openFiles:): Don't return a value, call
10309 -replyToOpenOrPrint:.
10310 (EmacsView -keyDown:): Fix up cast.
10311 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10312 (EmacsView -menuDown:): Cast tag in call to
10313 find_and_call_menu_selection().
10314 (ns_list_fonts): Remove, unused.
10315 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10316 (ns_fontname_to_xlfd): Make static.
10317 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10318 Remove prototypes (now in keyboard.h).
10319 (next_menubar_widget_id): Remove, unused.
10320 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10321 Remove prototypes (now in keyboard.h).
10322 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10323
103242008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10325
10326 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10327 (floatfns.o): Depend on syssignal.h.
10328 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10329
10330 * systty.h: Fix previous change that removed BSD_TERMIOS.
10331 Add comments to #ifdefs.
10332
103332008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10334
10335 * w32fns.c (w32-load-color-file): Remove.
10336 (x-open-connection): Use renamed Fx_load_color_file.
10337 * xfaces.c (x-load-color-file): Add.
10338 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10339 Emacs.clr.
10340 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10341
103422008-07-31 Michael Albinus <michael.albinus@gmx.de>
10343
10344 * dbusbind.c (Fdbus_call_method_asynchronously)
10345 (Fdbus_method_error_internal): New defuns.
10346 (xd_read_message): Handle also reply messages.
10347 (Vdbus_registered_functions_table): Extend docstring.
10348
103492008-07-31 Juanma Barranquero <lekktu@gmail.com>
10350
10351 * keyboard.c (gobble_input): Fix previous change.
10352
103532008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10354
10355 * bitmaps/README:
10356 * xfns.c:
10357 * termcap.c:
10358 * term.c:
10359 * syswait.h:
10360 * systty.h:
10361 * systime.h:
10362 * syssignal.h:
10363 * sysdep.c:
10364 * process.h:
10365 * process.c:
10366 * print.c:
10367 * ndir.h:
10368 * lread.c:
10369 * keyboard.c:
10370 * getpagesize.h:
10371 * floatfns.c:
10372 * fileio.c:
10373 * emacs.c:
10374 * doc.c:
10375 * dispnew.c:
10376 * dired.c:
10377 * data.c:
10378 * callproc.c:
10379 * buffer.c:
10380 * README:
10381 * Makefile.in:
10382 * s/template.h:
10383 * s/msdos.h:
10384 * m/vax.h: Remove VMS support.
10385 * s/vms.h:
10386 * vlimit.h:
10387 * uaf.h:
10388 * temacs.opt:
10389 * param.h:
10390 * ioctl.h: Remove file.
10391
103922008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10393
10394 * s/ms-w32.h (MULTI_KBOARD): Remove.
10395 * xterm.c:
10396 * xselect.c:
10397 * xfns.c:
10398 * window.c:
10399 * w32term.c:
10400 * w32fns.c:
10401 * terminal.c:
10402 * termhooks.h:
10403 * term.c:
10404 * sysdep.c:
10405 * keyboard.h:
10406 * keyboard.c:
10407 * frame.h:
10408 * frame.c:
10409 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10410 * config.in: Regenerate.
10411
104122008-07-30 Jason Rumney <jasonr@gnu.org>
10413
10414 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10415
10416 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10417 (w32font_open_internal): Get unicode version of textmetrics.
10418 Don't enable or disable glyph indices here.
10419 (w32font_open): Disable use of glyph indices.
10420
10421 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10422
104232008-07-30 Chong Yidong <cyd@stupidchicken.com>
10424
10425 * minibuf.c (Vread_buffer_function): Doc fix.
10426
104272008-07-30 John Paul Wallington <jpw@pobox.com>
10428
10429 * minibuf.c (read_buffer_completion_ignore_case): New var.
10430 (Fread_buffer): Use it.
10431
104322008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10433
10434 * systty.h (sensemode): Remove empty #if. Remove reference to
10435 BSD_TERMIOS, unused.
10436
10437 * sysdep.c: Remove reference to DGUX.
10438 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10439
10440 * config.in: Regenerate.
10441
104422008-07-30 Jason Rumney <jasonr@gnu.org>
10443
10444 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10445
104462008-07-29 Jason Rumney <jasonr@gnu.org>
10447
10448 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10449 is populated.
10450 (uniscribe_encode_char): Always use uniscribe.
10451 Avoid using context if cache is populated.
10452
104532008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10454
10455 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10456 open menu.
10457
10458 * gtkutil.c (menu_nav_ended): Remove.
10459 (create_menus): Remove signal connect for menu_nav_ended.
10460
104612008-07-28 Chong Yidong <cyd@stupidchicken.com>
10462
10463 * xdisp.c (redisplay_window): Check return value of
10464 compute_window_start_on_continuation_line before forcing a window
10465 start.
10466
104672008-07-28 Jason Rumney <jasonr@gnu.org>
10468
10469 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10470
10471 * w32term.c (w32_enable_unicode_output, cleartype_active):
10472 Remove obsolete display options.
10473 (x_draw_glyph_string_background): Don't use old cleartype_active
10474 workaround.
10475 (w32_initialize): Remove cleartype_active initialization.
10476 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10477
104782008-07-28 Andreas Schwab <schwab@suse.de>
10479
10480 * lisp.h (init_weak_hash_tables, syms_of_font)
10481 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10482 (remove_hash_entry): Don't declare.
10483 * eval.c (maybe_call_debugger): Make static and move before use.
10484 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10485 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10486 * xterm.h (x_set_frame_alpha): Declare.
10487
104882008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10489
10490 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10491 (create_menus): Connect selection-done to menu_nav_ended.
10492
104932008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10494
10495 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10496 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10497 parameter with read of 'alpha' one.
10498 (Qns_frame_parameter): Remove.
5582fbc7 10499 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10500 (next-selection-coding-system, Vselection_coding_system)
10501 (Vnext_selection_coding_system): Drop.
10502
105032008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10504
10505 * nsfns.m (do-applescript, do_applescript): Rename to
10506 ns-do-applescript, ns_do_applescript, and move within file.
10507
105082008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10509
10510 Remove support for Mac Carbon.
10511 * mactoolbox.c:
10512 * macterm.h:
10513 * macterm.c:
10514 * macselect.c:
10515 * macmenu.c:
10516 * macgui.h:
10517 * macfns.c:
10518 * mac.c: Remove file.
10519 * s/darwin.h:
10520 * m/intel386.h:
10521 * xfaces.c:
10522 * xdisp.c:
10523 * window.c:
10524 * tparam.c:
10525 * termhooks.h:
10526 * termcap.c:
10527 * term.c:
10528 * syssignal.h:
10529 * sysselect.h:
10530 * sysdep.c:
10531 * process.c:
10532 * lread.c:
10533 * lisp.h:
10534 * keyboard.c:
10535 * image.c:
10536 * fringe.c:
10537 * frame.h:
10538 * frame.c:
10539 * fontset.c:
10540 * font.h:
10541 * font.c:
10542 * fns.c:
10543 * fileio.c:
10544 * emacs.c:
10545 * dispnew.c:
10546 * dispextern.h:
10547 * config.in:
10548 * atimer.c:
2ae37cf0 10549 * Makefile.in: Remove code for Carbon.
aac0c6e3 10550
f0131492 105512008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10552
10553 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10554
105552008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10556
10557 * macterm.h (kCGBitmapByteOrder32Host): New define for
10558 non-universal SDKs.
10559
10560 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10561 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10562
10563 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10564 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10565
105662008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10567
10568 * w32inevt.c: Include dispextern.h.
10569
105702008-07-26 Andreas Schwab <schwab@suse.de>
10571
10572 * print.c (print_object): Fix off-by-one in last change.
10573
105742008-07-25 Juanma Barranquero <lekktu@gmail.com>
10575
10576 * term.c (syms_of_term): Don't initialize default_orig_pair,
10577 default_set_foreground and default_set_background on Windows.
10578
105792008-07-25 Jason Rumney <jasonr@gnu.org>
10580
10581 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10582 ScriptItemize. Clean up return value checking. Remove unused
10583 variables.
10584 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10585 shaping engine.
10586
10587 * w32font.c (w32font_has_char): Handle the case where we can't
10588 determine the script for a character.
10589
105902008-07-25 Chong Yidong <cyd@stupidchicken.com>
10591
10592 * term.c (syms_of_term): Initialize default_orig_pair,
10593 default_set_foreground, and default_set_background.
10594
10595 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10596 clash (bug#86).
10597 (getloadavg): Callers changed.
10598
10599 * image.c (svg_load_image): Fix last change.
10600 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10601 image size is valid. Use g_object_unref instead of deprecated
10602 rsvg_handle_free to free rsvg handle.
10603 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10604
106052008-07-25 Jason Rumney <jasonr@gnu.org>
10606
10607 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10608 surrogates before looking up glyph index.
10609 (w32font_text_extents): Encode as surrogates if falling back to
10610 functions that need UTF-16 wide chars.
10611
10612 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10613 BMP as surrogates before looking up glyph index.
10614
106152008-07-25 Chong Yidong <cyd@stupidchicken.com>
10616
10617 * image.c (svg_load_image): Check for failure in return value of
10618 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10619
106202008-07-25 Jason Rumney <jasonr@gnu.org>
10621
10622 * w32font.c (Fx_select_font): Reverse sense of second arg.
10623
106242008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10625
10626 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10627 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10628
10629 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10630 (PURESIZE): Use it.
10631
106322008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10633
10634 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10635 * m/alpha.h (TEXT_END):
10636 * m/ibmrs6000.h (TEXT_END):
10637 * m/macppc.h (TEXT_END):
10638 * s/darwin.h (TEXT_END):
10639 * s/msdos.h (TEXT_END): Remove, unused.
10640 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10641 * s/cygwin.h: Remove comment.
10642
10643 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10644 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10645 * m/intel386.h (DOT_GLOBAL_START):
10646 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10647 (USG): Remove, file not used on USG platforms.
10648
10649 * Makefile.in (HAVE_X11): Remove empty #else.
10650
106512008-07-24 Andreas Schwab <schwab@suse.de>
10652
10653 * fileio.c (Finsert_file_contents): Properly adjust undo list
10654 after format conversion.
10655
106562008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10657
10658 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10659 (menu_nav_ended): Remove.
10660 (create_menus): Remove signal connect for menu_nav_ended.
10661 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10662 create_menus.
10663 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10664
106652008-07-23 Jason Rumney <jasonr@gnu.org>
10666
10667 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10668 with opened font.
10669 (w32font_open): Set font type to gdi.
10670
10671 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10672
106732008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10674
10675 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10676 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10677 defines it.
10678 * unexec.c (ADDR_CORRECT): Define unconditionally.
10679
10680 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10681
10682 * unexec.c: Remove code depending on !COFF and USG, the file is
10683 not used for such systems.
10684
10685 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10686 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10687 (LD_SWITCH_SYSTEM_1): Remove, update users.
10688
10689 * s/darwin.h (DATA_END):
10690 * m/intel386.h (DATA_END):
10691 * m/ibmrs6000.h (DATA_END):
10692 * m/alpha.h (DATA_END): Remove, unused.
10693
10694 * config.in: Regenerate.
10695 * s/ms-w32.h (subprocesses): Define unconditionally.
10696 * s/template.h (subprocesses): Update comment.
10697 * s/vms.h (subprocesses):
10698 * s/usg5-4.h (subprocesses):
10699 * s/hpux10-20.h (subprocesses):
10700 * s/gnu-linux.h (subprocesses):
10701 * s/cygwin.h (subprocesses):
10702 * s/bsd-common.h (subprocesses):
10703 * s/aix4-2.h (subprocesses):
10704 * s/darwin.h (subprocesses): Do not define, defined by default now.
10705
10706 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10707 Remove all references.
10708 (temacs): Add GNUstep specific ld flags.
10709
10710 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10711 similarly to what X does.
10712
107132008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10714
10715 * nsfns.m (x-list-fonts): Remove.
10716 (syms_of_nsfns): Drop the x-list-fonts declaration.
10717 * nsterm.m: Get rid of remaining "//" comments.
10718
107192008-07-22 Chong Yidong <cyd@stupidchicken.com>
10720
10721 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10722
10723 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10724 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10725 (Fns_own_selection_internal, Fx_disown_selection_internal)
10726 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10727
10728 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10729 ... */' style of docstrings. Doc fixes.
10730
107312008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10732
10733 * terminfo.c (UP, BC, PC): Undo previous change.
10734
10735 * nsfns.m: Rename ns prefixed functions/variables to the
10736 corresponding x versions. Update references.
10737
107382008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10739
10740 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10741
107422008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10743
10744 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10745 Remove forwarding functions.
10746 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10747 non-static.
10748 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10749 non-static.
10750 (ns_frame_parm_handlers): Use the new names.
10751 (syms_of_nsfns): Move to the end of file.
10752
10753 * nsterm.m (syms_of_nsterm): Move to the end of file.
10754
10755 * dispnew.c (init_display): Remove code for X10.
10756
107572008-07-22 Jason Rumney <jasonr@gnu.org>
10758
10759 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10760 bare drive.
10761
107622008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10763
10764 * nsterm.m (syms_of_nsterm): Remove debugging println.
10765
107662008-07-22 David Reitter <david.reitter@gmail.com>
10767
10768 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10769 Carbon implementation of the same functionality: execute arbitrary
10770 AppleScript code.
10771
107722008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10773
10774 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10775 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10776 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10777 (Fx_display_mm_height, Fx_display_mm_width)
10778 (Fx_display_backing_store, Fx_display_visual_class)
10779 (Fx_display_save_under, Fx_open_connection)
10780 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10781 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10782 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10783 (Fx_display_pixel_width, Fx_display_pixel_height)
10784 (Fx_display_usable_bounds, Fx_display_planes)
10785 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10786 ... */' style of docstrings.
10787
107882008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10789
10790 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10791 on this platform.
10792 (mips):
10793 * m/iris4d.h (mips): Do not define.
10794 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10795
10796 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10797
10798 * image.c:
10799 * nsfns.m:
10800 * nsselect.m:
10801 * nsterm.h:
10802 * nsterm.m: Rename ns prefixed functions/variables to the
10803 corresponding x versions. Update references.
10804
10805 * m/ibms390x.h (NO_REMAP): Do not undefine.
10806
10807 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10808
108092008-07-21 Chong Yidong <cyd@stupidchicken.com>
10810
10811 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10812 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10813 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10814 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10815 (Fns_display_mm_height, Fns_display_mm_width)
10816 (Fns_display_backing_store, Fns_display_visual_class)
10817 (Fns_display_save_under, Fns_open_connection)
10818 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10819 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10820 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10821 (Fns_display_pixel_width, Fns_display_pixel_height)
10822 (Fns_display_usable_bounds, Fx_display_planes)
10823 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10824
108252008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10826
10827 * print.c (print_object): Check print_depth before searching for
10828 circularities.
10829
108302008-07-21 Michael Albinus <michael.albinus@gmx.de>
10831
10832 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10833 only sprintf.
10834
108352008-07-21 Kenichi Handa <handa@m17n.org>
10836
10837 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10838
108392008-07-20 Andreas Schwab <schwab@suse.de>
10840
10841 * syntax.c (find_start_pos, find_start_value)
10842 (find_start_value_byte, find_start_begv, find_defun_start)
10843 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10844
108452008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10846
10847 * s/sol2-3.h: Insert contents of s/sol2.h.
10848 (LD_SWITCH_SYSTEM): Remove redundant definition.
10849 * s/sol2.h: Remove, unused.
10850
108512008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10852
10853 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10854
108552008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10856
10857 * Makefile.in (ns_appdir): Fix typo in find command.
10858
108592008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10860
10861 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10862
10863 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10864 added not supported anymore.
10865
10866 * s/usg5-4-2.h (LIBS_SYSTEM):
10867 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10868
10869 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10870 * s/lynxos.h (GETPGRP_NO_ARG):
10871 * s/hpux10-20.h (NO_SIOCTL_H):
10872 * s/gnu.h (GETPGRP_NO_ARG):
10873 * s/gnu-linux.h (NO_SIOCTL_H):
10874 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10875 * s/cygwin.h (GETPGRP_NO_ARG):
10876 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10877 (C_DEBUG_SWITCH): Remove duplicate definition.
10878
10879 * m/ibms390.h: Remove boilerplate comments.
10880
10881 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10882
10883 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10884 (wait_reading_process_output): Remove code for SunOS, platform not
10885 supported anymore. Use SOLARIS2 instead of sun.
10886
108872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10888
10889 * font.c (font_open_by_name): Under NS, default lface height to zero.
10890 (font_open_for_lface): Under NS, set size based on frame fontsize.
10891 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10892 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10893
108942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10895
10896 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10897 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10898 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10899 YES/NO.
10900 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10901 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10902 * Makefile.in (clean): Clear out build destination dir.
10903
109042008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10905
10906 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10907 xterm, xselect.
10908 * lisp.h: Remove declaration of hash_remove.
10909 * nsgui.h: Remove redefinitions of hash_remove.
10910 * fns.c (hash_remove): Rename to hash_remove_from_table.
10911
109122008-07-19 Seiji Zenitani <zenitani@mac.com>
10913
10914 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10915 strdup() the family UTF8String before modifying it.
10916
109172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10918
10919 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10920 NS_FACE_BACKGROUND with 0 instead of nil.
10921 * nsfont.m (nsfont_draw): Same.
10922
109232008-07-19 Chong Yidong <cyd@stupidchicken.com>
10924
10925 * nsfns.m (ns_set_background_color): Fix crash.
10926
109272008-07-18 Chong Yidong <cyd@stupidchicken.com>
10928
10929 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10930
109312008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10932
10933 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10934
109352008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10936
10937 * gtkutil.c: Include <config.h> instead of "config.h".
10938
10939 * lisp.h (Foverlay_buffer): Add EXFUN.
10940
10941 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10942 child process to complete child_setup. Undo 2005-09-21 change.
10943
10944 * s/darwin.h: Mention setsid after vfork.
10945
109462008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10947
10948 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10949 Depend on macgui.h.
10950
10951 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10952 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10953
10954 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10955 and f19.
10956 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10957
10958 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10959 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10960 Remove enumerators.
10961
10962 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10963 Check if FACE_FROM_ID returns NULL.
10964
109652008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10966
10967 * w32inevt.c (change_frame_size): Remove extern declaration.
10968 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10969 change_frame_size.
10970
109712008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10972
10973 * getloadavg.c: Revert last change (2008-07-15).
10974
109752008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10976
10977 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10978 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10979 from configure.
10980
109812008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10982
10983 * s/sol2.h:
10984 * s/sol2-4.h: Reorganize conditionals.
10985
10986 * ecrt0.c: Remove code depending on m68000, not used anymore.
10987
10988 * fns.c (hash_remove): Make static.
10989 * lisp.h (hash_remove): Don't prototype.
10990
10991 * m/ibmrs6000.h:
10992 * m/ibms390x.h:
10993 * m/macppc.h: Remove boilerplate comments.
10994
10995 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10996 Solaris, which does not need them.
10997
10998 * m/vax.h: Remove comments about unsupported systems.
10999
11000 * s/darwin.h: Reorganize ifdefs.
11001
110022008-07-17 Andreas Schwab <schwab@suse.de>
11003
11004 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
11005
110062008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
11007
11008 Use SDATA. Follow coding convention of placing operators at
11009 beginning of next line rather than end of previous line, and placing
11010 spaces around infix operators.
11011
11012 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
11013 in case it was defined already.
11014 USE @GNUSTEP_MAKEFILES@ rather than envvars.
11015 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
11016 ns_default.
11017 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
11018 Lisp_Objects.
11019 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
11020 (ns_defined_color, ns_color_to_lisp): Declare.
11021 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
11022 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
11023 it's accepted even with USE_LISP_UNION_TYPE.
11024 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
11025 (update_frame_tool_bar): Remove apparently obsolete tests for
11026 non-integerness of f->tool_bar_lines.
11027 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
11028 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
11029 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
11030 (nsfont_open): Don't confuse NULL for Qnil.
11031 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
11032 * menu.h (find_and_call_menu_selection):
11033 * menu.c (find_and_call_menu_selection): Use just int for vector size.
11034 (find_and_return_menu_selection): Always return something.
11035 * frame.h: Include dispextern.h for Display_Info.
11036 (display_x_get_resource): Declare.
11037
110382008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
11039
11040 * syntax.c: Remove stdio.h include accidentally introduced in
11041 Emacs.app commit.
11042 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
11043 NS_IMPL_COCOA.
11044 * keyboard.c (handle_async_input, input_available_signal): Remove
11045 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
11046
110472008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11048
11049 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
11050 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
11051 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
11052 Use SDATA.
11053
11054 * keymap.c: Remove all NS-specific code.
11055 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
11056 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
11057 where_is_preferred_modifier, return a different value depending on how
11058 preferred is the binding.
11059 (where_is_internal): Adjust accordingly.
11060 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
11061 Adjust to new preferred_sequence_p.
11062 (syms_of_keymap): Declare `where-is-preferred-modifier'.
11063 * keyboard.c (parse_solitary_modifier): Not static any more.
11064 * keyboard.h (parse_solitary_modifier): Declare.
11065
110662008-07-16 Andreas Schwab <schwab@suse.de>
11067
11068 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
11069 of easymenu.
11070
110712008-07-16 Chong Yidong <cyd@stupidchicken.com>
11072
11073 * xdisp.c (move_it_in_display_line): Account for word wrap, so
11074 that we don't move off the line.
11075
110762008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
11077
11078 * keyboard.c (Qsuper): Remove.
11079 (parse_menu_item): Don't call where_is_internal specially for NS.
11080
110812008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11082
11083 * s/gnu-linux.h: Remove boilerplate comments.
11084
11085 * m/alpha.h (__ELF__): Consolidate conditions.
11086
11087 * m/m68k.h (linux): Use GNU_LINUX instead.
11088 Remove boilerplate comments.
11089
11090 * m/intel386.h: Undo refactoring from previous change.
11091 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
11092 too, remove dead code.
11093 (linux): Use GNU_LINUX instead.
11094
110952008-07-16 Jason Rumney <jasonr@gnu.org>
11096
11097 * w32gui.h: Repeat 26 June changes lost by last change.
11098
110992008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
11100
11101 * systty.h: Remove code for Aix on 386, unsupported platform.
11102
11103 * s/ms-w32.h: Remove boilerplate comments.
11104 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
11105
11106 * s/gnu-linux.h (TERM): Remove support.
11107 (HAVE_SYSVIPC): Remove, unused.
11108 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
11109 for this system.
11110
11111 * process.c: Remove support for IRIS, unused.
11112 Remove support for TERM, not relevant anymore.
11113
11114 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11115 used with the definition.
11116
11117 * s/aix4-2.h (static): Do not undef.
11118
11119 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11120 only used on Aix.
11121 (HAVE_SYSVIPC): Remove, unused.
11122
11123 * m/hp800.h (CANNOT_DUMP): Do not undef.
11124
11125 * m/alpha.h: Fix comment.
11126
11127 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11128 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11129 used by this configuration.
11130 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11131 * unexec.c: Remove code depending on HPUX and
11132 USG_SHARED_LIBRARIES, not used with this file. Remove code
11133 depending on IRIS, unused. Remove if 0-ed code.
11134
11135 * s/template.h: Remove comments about static.
11136
11137 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11138 Remove if 0-ed code.
11139 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11140 were the same as the default.
11141 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11142 Remove boilerplate comments.
11143 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11144 (HAVE_SYSVIPC): Remove, unused.
11145 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11146
11147 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11148 Remove boilerplate comments.
11149 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11150 Remove boilerplate comments.
11151 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11152 Remove boilerplate comments.
11153 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11154
11155 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11156 USG systems which do not use DATA_SEG_BITS.
11157 Refactor code. Remove boilerplate comments.
11158
11159 * m/ibms390.h:
11160 * m/m68k.h:
11161 * s/bsd-common.h:
11162 * s/cygwin.h:
11163 * s/darwin.h:
11164 * s/freebsd.h:
11165 * s/gnu.h:
11166 * s/msdos.h: Remove boilerplate comments.
11167
11168 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11169 do not use this file.
aac0c6e3
MR
11170 (IRIS_4D): Remove, unused.
11171
11172 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11173 do not use this file.
aac0c6e3
MR
11174 (SIGN_EXTEND_CHAR):
11175 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11176 * unexmips.c: Remove file, unused.
11177
11178 * editfns.c (Fuser_full_name): Replace the only use of
11179 USER_FULL_NAME with its value.
11180 * config.in: Regenerate.
11181
111822008-07-16 David Reitter <david.reitter@gmail.com>
11183
11184 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11185 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11186
111872008-07-16 Glenn Morris <rgm@gnu.org>
11188
11189 * emacs.c (system-type): Doc fix.
11190
111912008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11192
11193 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11194 If the cache doesn't work, let's fix it, rather than work around it.
11195
111962008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11197
11198 * Makefile.in: Correct additions for nsfont.o in last commit.
11199 * nsfont.m: New file (forgot last commit).
11200
112012008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11202
11203 * callproc.c (set_initial_environment): Initialize
11204 Vprocess_environment under CANNOT_DUMP (fixes crash when
11205 batch-compiling for bootstrap).
11206
112072008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11208 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11209
11210 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11211 fix crash due to different init order.
11212
112132008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11214
11215 Changes and additions for NeXTstep windowing system (Cocoa and
11216 GNUstep) support.
11217
11218 * Makefile.in:
11219 * config.in: Support defines and build commands for NS port.
11220 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11221 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11222 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11223 windowing.
11224 (struct face): Add synth_ital field.
11225 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11226 (init_display): Initialize Vinitial_window_system to "ns" when so
11227 compiled.
11228 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11229 (display_arg): Use under NS.
11230 (main): Under NS, allocate autorelease pool and handle command line
11231 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11232 (standard_args): Add NS-specific args.
11233 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11234 * font.c (DEFAULT_ENCODING): New variable.
11235 (font_find_for_lface): Use it.
11236 (syms_of_font): Load syms_of_nsfont under NS.
11237 * font.h: Declare nsfont_driver when compiled under NS.
11238 * fontset.c: When compiling under NS, include nsterm.h.
11239 (fontset_from_font): Autoconstruct fontset under NS.
11240 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11241 symbol, document and use it.
11242 (do_switch_frame): When for_deletion under Cocoa, add
11243 Fraise_frame(Qnil).
11244 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11245 (x_get_arg): Allow "yes" and "no" as boolean values.
11246 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11247 Qright under Cocoa.
11248 (focus-follows-mouse): Default to 0 under NS.
11249 * frame.h (enum output_method): Add output_ns.
11250 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11251 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11252 (FRAME_WINDOW_P): NS-specific definition.
11253 * fringe.c (max_used_fringe_bitmap): Make public.
11254 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11255 (getloadavg): Use NeXT code under descendant OS's.
11256 * image.c (includes and header section, x_create_bitmap_from_data)
11257 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11258 (image_background_transparent, x_clear_image_1)
11259 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11260 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11261 (x_to_xcolors, x_from_xcolors, x_disable_image)
11262 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11263 other GUIs, including XPM support using code originally written for
11264 Carbon GUI.
11265 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11266 using NS API.
11267 (image_ascent): Use font metrics macros instead of direct struct field
11268 access.
11269 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11270 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11271 Also, handle NS as GTK for menu bar purposes.
11272 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11273 toolkit where they differ.
11274 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11275 use cachelist, still needed under NS.
11276 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11277 (struct widget_value): Define it here for menu.c.
11278 * keymap.c (includes): Include modifier internals.
11279 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11280 NS.
11281 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11282 support for preferring sequences using certain modifiers, specified by
11283 the FIRSTONLY argument.
11284 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11285 under NS GNUstep implementation.
11286 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11287 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11288 * menu.c: Include nsterm.h under NS.
11289 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11290 (free_menubar_widget_tree_value, update_submenu_strings)
11291 (find_and_call_menu_selection): Treat NS as X and NT.
11292 (find_and_return_menu_selection): New function, used for popup menus.
11293 * nsgui.h:
11294 * nsterm.h:
11295 * nsfns.m:
11296 * nsimage.m:
11297 * nsmenu.m:
11298 * nsselect.m:
11299 * nsterm.m: New files.
11300 * process.c (wait_reading_process_output): Under NS, call ns_select()
11301 instead of plain select().
11302 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11303 beginning of buffer.
11304 * sysselect.h (init_process): Rename when compiling under Cocoa to
11305 avoid name conflict.
11306 * termhooks.h (display_info): Add ns_display_info to union.
11307 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11308 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11309 COCOA environment.
11310 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11311 unexec() signature. (Note, this will dump, but the resulting file
11312 crashes; unexosx is used instead; keeping around for reference and
11313 possible aid in getting dump working under GNUstep.)
11314 * w32gui.h (button_type, widget_value): Remove definitions (now in
11315 keyboard.h).
11316 * window.c: Include nsterm.h when compiling under NS.
11317 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11318 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11319 other GUI windowing systems.
11320 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11321 GTK.
11322 (x_consider_frame_title): Under NS, set icon type and frame
11323 modified-state indicator; use ns_set_name_as_filename() when using
11324 formatted title.
11325 (update_window_cursor): Make public when compiling under NS.
11326 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11327 (hourglass_atimer, Vhourglass_delay
11328 * xfaces.c (header section, init_frame_faces, clear_font_table)
11329 (defined_color, unload_color, x_face_list_fonts)
11330 (prepare_face_for_display): Add NS support parallel to other GUIs.
11331 Emulate GCs like other non-X GUIs.
11332 (split_font_name): Don't lowercase font name under NS.
11333 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11334 under NS.
11335 * s/darwin.h: Add support for compilation under NS.
11336
113372008-07-15 Jason Rumney <jasonr@gnu.org>
11338
11339 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11340 (w32_show_hourglass): Rename from show_hourglass.
11341 (w32_hide_hourglass): Rename from hide_hourglass.
11342 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11343 (Vhourglass_delay): Declare extern.
11344 (hourglass_started): Remove.
11345
11346 * xdisp.c (Vhourglass_delay): Remove static.
11347 (hourglass_started, start_hourglass, cancel_hourglass):
11348 Don't include these versions on WINDOWSNT.
11349
113502008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11351
11352 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11353 variables (formerly in xfns.c).
11354 (show_hourglass, hide_hourglass): New prototypes (same).
11355 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11356 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11357 in xfns.c).
11358 (syms_of_xdisp): Declare/initialize display-hourglass,
11359 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11360 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11361 formerly in xfns.c.
11362 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11363 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11364 (start_hourglass, cancel_hourglass): Remove.
11365 (show_hourglass, hide_hourglass): Remove prototypes and static
11366 modifiers.
11367 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11368 hourglass_atimer, hourglass_shown_p declaration/initialization.
11369 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11370 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11371 (start_hourglass, cancel_hourglass): Remove.
11372 (show_hourglass, hide_hourglass): Remove prototypes and static
11373 modifiers.
11374 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11375 hourglass_atimer, hourglass_shown_p declaration/initialization.
11376 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11377 (DEFAULT_HOURGLASS_DELAY): Remove.
11378 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11379 hourglass_shown_p declaration/initialization.
11380
113812008-07-14 Jason Rumney <jasonr@gnu.org>
11382
11383 * w32fns.c (w32_get_arg): Remove wrapper function.
11384 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11385 directly.
11386 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11387
113882008-07-14 Kenichi Handa <handa@m17n.org>
11389
11390 * xfont.c (xfont_open): Add workaround for X's bug.
11391
113922008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11393
11394 * fontset.c: Include <stdio.h> unconditionally.
11395
113962008-07-13 Michael Albinus <michael.albinus@gmx.de>
11397
11398 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11399 for filtering.
11400
114012008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11402
11403 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11404
11405 * m/macppc.h:
11406 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11407
11408 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11409 (SPECIAL_EMACS_INT):
11410 * m/ia64.h (SPECIAL_EMACS_INT):
11411 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11412 * s/gnu.h (NLIST_STRUCT):
11413 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11414 * s/gnu-linux.h (LINUX):
11415 * s/msdos.h (HAVE_FACES):
11416 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11417
11418 * systty.h:
11419 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11420 anymore.
11421
114222008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11423
11424 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11425 always defined as int.
11426
11427 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11428 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11429 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11430 * s/freebsd.h (HAVE_WAIT_HEADER):
11431 * s/bsd-common.h (HAVE_UNION_WAIT):
11432 * s/aix4-2.h (HAVE_WAIT_HEADER):
11433 * m/mips.h (HAVE_UNION_WAIT):
11434 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11435 (COFF, static): Do not define, they are undefined later in the file.
11436
11437 * process.c (update_status): Don't use a union.
11438 (status_convert):
11439 (sigchld_handler): Use int instead of WAITTYPE.
11440
114412008-07-12 Chong Yidong <cyd@stupidchicken.com>
11442
11443 * indent.c (Fvertical_motion): Restore hscroll before moving to
11444 goal column.
11445
114462008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11447
11448 * lisp.h: Remove left over code.
11449
114502008-07-11 Andreas Schwab <schwab@suse.de>
11451
11452 * lisp.h: Fix logic in last change.
11453
11454 * menu.h: New file.
11455 * menu.c: Include it.
11456 * xmenu.c: Likewise.
11457 * Makefile.in: Update dependencies.
11458
114592008-07-11 Kenichi Handa <handa@m17n.org>
11460
11461 * fontset.c (fontset_from_font): Cancel the previous change.
11462
114632008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11464
11465 * lisp.h:
11466 * w32heap.c:
11467 * emacs.c:
11468 * alloc.c: Replace all references of NO_UNION_TYPE with
11469 USE_LISP_UNION_TYPE.
11470
11471 * m/xtensa.h (NO_UNION_TYPE):
11472 * m/vax.h (NO_UNION_TYPE):
11473 * m/template.h (NO_UNION_TYPE):
11474 * m/sparc.h (NO_UNION_TYPE):
11475 * m/mips.h (NO_UNION_TYPE):
11476 * m/macppc.h (NO_UNION_TYPE):
11477 * m/m68k.h (NO_UNION_TYPE):
11478 * m/iris4d.h (NO_UNION_TYPE):
11479 * m/intel386.h (NO_UNION_TYPE):
11480 * m/ibms390x.h (NO_UNION_TYPE):
11481 * m/ibms390.h (NO_UNION_TYPE):
11482 * m/ibmrs6000.h (NO_UNION_TYPE):
11483 * m/ia64.h (NO_UNION_TYPE):
11484 * m/hp800.h (NO_UNION_TYPE):
11485 * m/arm.h (NO_UNION_TYPE):
11486 * m/amdx86-64.h (NO_UNION_TYPE):
11487 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11488 defining it the same.
11489
114902008-07-10 Chong Yidong <cyd@stupidchicken.com>
11491
11492 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11493
114942008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11495
11496 * fileio.c:
50426a04 11497 * sysdep.c:
aac0c6e3
MR
11498 * systty.h:
11499 * m/ibmrs6000.h:
11500 * m/iris4d.h:
11501 * s/aix4-2.h:
11502 * s/freebsd.h:
11503 * s/gnu-linux.h:
11504 * s/hpux10-20.h:
11505 * s/hpux11.h:
11506 * s/netbsd.h:
11507 * s/sol2-3.h:
11508 * s/sol2-4.h:
11509 * s/sol2.h:
11510 * s/usg5-4.h:
11511 * s/vms.h: Remove references to unused variables.
11512
115132008-07-10 Andreas Schwab <schwab@suse.de>
11514
11515 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11516 pattern before matching the generic family.
11517
115182008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11519
11520 * unexec.c:
11521 * s/vms.h:
11522 * s/usg5-4-2.h:
11523 * s/sol2-5.h:
11524 * s/freebsd.h:
11525 * s/darwin.h: Remove dead code.
11526
11527 * m/template.h:
11528 * m/sparc.h:
11529 * m/mips.h:
11530 * m/m68k.h:
11531 * m/iris4d.h:
11532 * m/intel386.h:
11533 * m/ibms390x.h:
11534 * m/ibms390.h:
11535 * m/ia64.h:
11536 * m/hp800.h:
11537 * m/arm.h:
11538 * m/amdx86-64.h: Remove dead code and references to unused
11539 and compiler defined symbols.
11540
11541 * unexmips.c:
11542 * unexelf.c: Remove references to desupported systems.
11543
11544 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11545
11546 * m/powermac.h: Remove boilerplate comments.
11547 (NO_REMAP): Remove unused definition.
11548
11549 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11550 define them.
11551
115522008-07-10 Kenichi Handa <handa@m17n.org>
11553
11554 * xfont.c (xfont_open): Log the reason of failure.
11555
115562008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11557
11558 * fontset.c (fontset_get_font_group):
11559 * font.c (font_check_otf): Specify argument types.
11560
115612008-07-09 Kenichi Handa <handa@m17n.org>
11562
11563 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11564 non-ASCII char is found.
11565
11566 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11567 (reorder_font_vector): Change the arg preferred_family to font.
11568 Prefer the spec matching with font.
11569 (fontset_get_font_group): New function.
11570 (fontset_find_font): Change the format of an element of a realized
11571 fontset. Use fontset_get_font_group.
11572 (fontset_font): Try the current fontset, the default fontset, the
11573 fallbacks of the current fontset, and the fallbacks of the default
11574 fontset in this order.
11575 (face_for_char): Delete the shortcut to use the current font.
11576 (fontset_from_font): Don't set fonts for Latin in the fontset.
11577
11578 * font.h (font_make_object, font_match_p): Adjust prototypes.
11579
11580 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11581
11582 * font.c (font_make_object): New arg entity and pixelsize.
11583 (font_check_otf_features, font_check_otf): New functions.
11584 (font_match_p): Check :lang, :script, and :otf properties.
11585
11586 * xfont.c (xfont_open): Adjust it for the change of
11587 font_make_object.
11588 (xfont_text_extents): Fix initial setting of metrics.
11589
11590 * ftfont.c (struct ftfont_info): New member index, delete member
11591 fc_charset_idx. Make the member order compatible with struct
11592 xftfont_info.
11593 (fc_charset_table): Change charset names to registry names.
11594 (ftfont_pattern_entity): Delete the args registry and
11595 fc_charset_idx. Change the value of :font-entity property
11596 to (FONTNAME . INDEX). Always set :registry property to
11597 `iso10646-1'.
11598 (struct ftfont_cache_data): New struct.
11599 (ftfont_lookup_cache): New arg for_face.
11600 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11601 (ftfont_driver): Set the member otf_capability.
11602 (ftfont_get_charset): Adjust it for the change of
11603 fc_charset_table.
11604 (OTF_TAG_SYM): New macro.
11605 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11606 for the change of fc_charset_table.
11607 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11608 ftfont_pattern_entity. Add FC_INDEX to objset.
11609 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11610 and ftfont_pattern_entity.
11611 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11612 font_make_object, struct ftfont_info.
11613 (ftfont_has_char): Use ftfont_get_fc_charset.
11614 (ftfont_otf_features, ftfont_otf_capability): New functions.
11615 (ftfont_shape): Use ftfont_get_otf.
11616 (ftfont_text_extents): Fix initial setting of metrics.
11617
11618 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11619 member order compatible with struct ftfont_info.
11620 (xftfont_open): Add FC_CHARSET to the pattern. Set
11621 xftfont_info->ft_size. Don't unlock the face. Check BDF
11622 properties if appropriate.
11623 (xftfont_close): Unlock the face.
11624 (xftfont_anchor_point, xftfont_shape): Deleted.
11625 (syms_of_xftfont): Don't set members anchor_point and shape of
11626 xftfont_driver.
11627
11628 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11629 font_make_object.
11630
11631 * w32font.c (w32font_open): Adjust it for the change of
11632 font_make_object.
11633 (w32font_open_internal): Don't set properties of font_object here.
11634
116352008-07-08 Chong Yidong <cyd@stupidchicken.com>
11636
11637 * macfns.c (x_create_tip_frame):
11638 * w32fns.c (x_create_tip_frame):
11639 * xfns.c (x_create_tip_frame): Pass parameter argument to
11640 face-set-after-frame-default.
11641
11642 * xfaces.c (Finternal_merge_in_global_face): Save merged
11643 attributes for the default face back into the face vector.
11644
116452008-07-08 Andreas Schwab <schwab@suse.de>
11646
11647 * fontset.h: Declare fontset_from_font. Don't declare
11648 new_fontset_from_font and fontset_from_font_name.
11649 * xterm.c: Include "fontset.h".
11650 * Makefile.in (xterm.o): Update dependencies.
11651
116522008-07-08 Glenn Morris <rgm@gnu.org>
11653
11654 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11655 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11656
116572008-07-07 Chong Yidong <cyd@stupidchicken.com>
11658
11659 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11660 (x_set_frame_parameters): Don't bind it.
11661
116622008-07-07 Juanma Barranquero <lekktu@gmail.com>
11663
11664 * w32fns.c (map_w32_filename): Declare extern.
11665
116662008-07-07 Jason Rumney <jasonr@gnu.org>
11667
11668 * w32term.c (WS_EX_LAYERED): Define if not already.
11669
116702008-07-06 Chong Yidong <cyd@stupidchicken.com>
11671
11672 * xfaces.c (set_font_frame_param): Don't try to set the font
11673 parameter if it is still unspecified in the lface.
11674
116752008-07-05 Chong Yidong <cyd@stupidchicken.com>
11676
11677 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11678 face if it didn't already exist.
11679
11680 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11681
116822008-07-05 Andreas Schwab <schwab@suse.de>
11683
11684 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11685
116862008-07-05 Chong Yidong <cyd@stupidchicken.com>
11687
11688 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11689 word-wrapping.
11690 (IT_DISPLAYING_WHITESPACE): New macro.
11691 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11692 when word-wrapping. Simplify word-wrapping logic. Use correct
11693 pixel positions when saving copies of the iterator.
11694 (display_line): Use proper wrap point if the last character on a
11695 line was preceded by whitespace.
11696
116972008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11698
11699 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11700
117012008-07-04 Kenichi Handa <handa@m17n.org>
11702
11703 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11704
11705 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11706
117072008-07-02 Jason Rumney <jasonr@gnu.org>
11708
11709 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11710 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11711
11712 * xdisp.c (next_element_from_display_vector): Move assignment out
11713 of if statement.
11714
117152008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11716
11717 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11718
11719 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11720 (syms_of_fileio): Initialize and export them.
11721 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11722
11723 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11724 (Fsystem_move_file_to_trash): New function.
11725 (syms_of_w32fns): Export it to lisp.
11726
117272008-07-01 Jason Rumney <jasonr@gnu.org>
11728
11729 * w32font.c (w32font_text_extents): Don't count overhang as part
11730 of width.
11731
117322008-06-30 Miles Bader <miles@gnu.org>
11733
11734 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11735 Add `avoid_cursor_p' field.
11736
11737 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11738 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11739 (append_glyph, append_composite_glyph, produce_image_glyph)
11740 (append_stretch_glyph): Initialize avoid_cursor_p.
11741 (get_it_property): Rename from `get_line_height_property'.
11742 (x_produce_glyphs): Use get_it_property.
11743 (handle_line_prefix, push_display_prop): New functions.
11744 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11745 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11746 New variables.
11747 (syms_of_xdisp): Initialize them.
11748
117492008-06-30 Kenichi Handa <handa@m17n.org>
11750
11751 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11752 XftDefaultSubstitute (they are called in XftFontMatch).
11753 (xftfont_open): Fix args to ftfont_font_format.
11754
11755 * ftfont.c (fc_charset_table): New member lang.
11756 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11757 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11758 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11759 (ftfont_open): Fix args to ftfont_font_format.
11760 (ftfont_font_format): New arg filename.
11761
117622008-06-30 Chong Yidong <cyd@stupidchicken.com>
11763
11764 * xfaces.c (Finternal_merge_in_global_face): If default face was
11765 modified, realize it again. Update the font face attribute.
11766
117672008-06-29 Jason Rumney <jasonr@gnu.org>
11768
11769 * w32term.c (x_set_frame_alpha): Fix logic.
11770
117712008-06-29 Kenichi Handa <handa@m17n.org>
11772
11773 * fontset.c (Finternal_char_font): Return font-object instead of
11774 font-name.
11775
11776 * composite.c (get_composition_id): Fix the width calculation for TAB.
11777
117782008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11779
11780 * indent.c (Fvertical_motion): Properly handle float column arg.
11781
117822008-06-28 Jason Rumney <jasonr@gnu.org>
11783
11784 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11785 (pfnSetLayeredWindowAttributes): New function pointer.
11786 (w32_initialize): Initialize it when supported.
11787 (x_set_frame_alpha): New function.
11788
11789 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11790 (w32_frame_parm_handlers): Set alpha handler.
11791
11792 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11793
117942008-06-27 Jason Rumney <jasonr@gnu.org>
11795
11796 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11797 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11798 (w32_to_x_charset, x_to_w32_charset)
11799 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11800 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11801 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11802 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11803 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11804 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11805 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11806 (Qw32_charset_unicode): Remove.
11807 (syms_of_w32fns): Update for above changes.
11808
11809 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11810 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11811 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11812 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11813 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11814 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11815 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11816 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11817 (syms_of_w32font): Update for above changes.
11818
118192008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11820
11821 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11822 removed #if.
11823 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11824
118252008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11826 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11827
11828 * makefile.w32-in (LOCAL_FLAGS):
11829 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11830
11831 * sysdep.c (_spawnlp, _getpid):
11832 Declare with explicit _cdecl instead of _CRTAPI1.
11833
11834 * editfns.c (Fget_internal_run_time):
11835 Check for WINDOWSNT with #ifdef, not #if.
11836
118372008-06-26 Jason Rumney <jasonr@gnu.org>
11838
11839 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11840
11841 * w32term.c (x_draw_glyph_string_foreground)
11842 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11843 Use FONT_HANDLE macro.
11844 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11845
11846 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11847 (uniscribe_encode_char): Use FONT_HANDLE macro.
11848
11849 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11850 (w32font_text_extents): Use precast w32_font.
11851 (w32font_close): Free cached metrics.
11852 (w32font_open_internal): Allocate space for name on stack.
11853
118542008-06-26 Chong Yidong <cyd@stupidchicken.com>
11855
11856 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11857
118582008-06-26 Jason Rumney <jasonr@gnu.org>
11859
11860 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11861 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11862
118632008-06-26 Juanma Barranquero <lekktu@gmail.com>
11864
11865 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11866
118672008-06-26 Jason Rumney <jasonr@gnu.org>
11868
11869 * w32bdf.c, w32bdf.h: Remove obsolete files.
11870
11871 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11872
11873 * w32gui.h: Don't include w32bdf.h.
11874 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11875 Remove obsolete font support.
11876
11877 * w32font.h (struct w32font_info): Remove compat_w32_font.
11878 Add hfont member.
11879 (FONT_COMPAT): Remove obsolete macro.
11880
11881 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11882 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11883 (w32font_open_internal): Remove compat code. Set new hfont member.
11884 (Fx_select_font): Use new hfont member.
11885
11886 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11887 (uniscribe_encode_char): Use new hfont member.
11888
11889 * w32term.c (x_draw_glyph_string_foreground)
11890 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11891 (x_draw_glyph_string): Use metrics in w32font_info.
11892
118932008-06-26 Kenichi Handa <handa@m17n.org>
11894
11895 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11896
118972008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11898
11899 * unexnext.c:
11900 * m/ews4800.h:
11901 * m/hp9000s300.h:
11902 * m/ibm370aix.h:
11903 * m/mips-siemens.h:
11904 * m/ncr386.h:
11905 * m/next.h:
11906 * m/pmax.h:
11907 * m/powerpcle.h:
11908 * m/tandem-s2.h:
11909 * s/386bsd.h:
11910 * s/bsd386.h:
11911 * s/bsd4-1.h:
11912 * s/bsd4-2.h:
11913 * s/bsdos2-1.h:
11914 * s/bsdos2.h:
11915 * s/bsdos3.h:
11916 * s/bsdos4.h:
11917 * s/nextstep.h:
11918 * s/ultrix4-3.h:
11919 * s/usg5-0.h:
11920 * s/usg5-2-2.h:
11921 * s/usg5-2.h:
11922 * s/usg5-4-3.h:
11923 * s/ux4800.h:
11924 * s/uxpds.h:
11925 * s/uxpv.h: Remove support for obsolete systems.
11926 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11927 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11928 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11929 Remove, insert contents in s/aix4-2.h.
11930 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11931 * s/bsd4-3.h: Rename to ...
11932 * s/bsd-common.h: ... this.
11933 * data.c:
11934 * doc.c:
11935 * ecrt0.c:
11936 * emacs.c:
11937 * fileio.c:
11938 * floatfns.c:
11939 * keyboard.c:
11940 * mem-limits.h:
11941 * print.c:
11942 * process.c:
11943 * sysdep.c:
11944 * syssignal.h:
11945 * systty.h:
11946 * syswait.h:
11947 * term.c:
11948 * unexec.c:
11949 * unexelf.c:
11950 * unexhp9k800.c:
11951 * m/hp800.h:
11952 * m/ibmrs6000.h:
11953 * m/mips.h:
11954 * m/vax.h:
11955 * s/darwin.h:
11956 * s/freebsd.h:
11957 * s/gnu.h:
11958 * s/ms-w32.h:
11959 * s/msdos.h:
11960 * s/netbsd.h:
11961 * s/template.h: Remove references to obsolete variables.
11962
11963 * Makefile.in: Add dependencies for all unexec files.
11964 (admindir): Remove unused variable.
11965 (UNEXEC_SRC): Remove references.
11966
119672008-06-25 Chong Yidong <cyd@stupidchicken.com>
11968
11969 * xfns.c (x_default_font_parameter): If Xft is available, first
11970 try Monospace-12 for the default font.
11971
119722008-06-25 Jason Rumney <jasonr@gnu.org>
11973
11974 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11975
119762008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11977
11978 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11979
11980 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11981
119822008-06-25 Juanma Barranquero <lekktu@gmail.com>
11983
11984 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11985 <scroll-conservatively>: Fix typo in docstring.
11986
11987 * xselect.c (Fx_send_client_event): Doc fix.
11988
119892008-06-25 Kenichi Handa <handa@m17n.org>
11990
11991 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11992
11993 * font.c (font_parse_fcname): Remove unused variables.
11994 (font_sort_entites): Delete the arg SPEC. Caller changed.
11995 Fix for the case of ! best_only.
11996 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11997
11998 * lisp.h (Fstring_to_unibyte): EXFUN it.
11999
12000 * character.h (str_to_unibyte): Extern it.
12001
12002 * character.c (str_to_unibyte): New function.
12003
12004 * fns.c (Fstring_to_unibyte): New function.
12005 (syms_of_fns): Defsubr it.
12006
120072008-06-24 Kenichi Handa <handa@m17n.org>
12008
12009 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
12010 DPI too.
12011 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
12012
120132008-06-24 Andreas Schwab <schwab@suse.de>
12014
12015 * Makefile.in (${lispsource}loaddefs.el): Rename from
12016 ../lisp/loaddefs.el.
12017 (bootstrap-clean): Do what distclean does but don't remove
12018 Makefile.
12019 (distclean): Depend on bootstrap-clean and remove Makefile.
12020
120212008-06-24 Chong Yidong <cyd@stupidchicken.com>
12022
12023 * buffer.h (struct buffer): New member word_wrap.
12024
12025 * buffer.c (syms_of_buffer): New variables default-word-wrap and
12026 word-wrap.
12027 (init_buffer_once): Initialize them.
12028
12029 * dispextern.h (struct it): Replace bool truncate_lines_p with a
12030 line_wrap enum possessing three possible values.
12031
12032 * termopts.h: Replace truncate_partial_width_windows with
12033 Vtruncate_partial_width_windows.
12034
12035 * dispnew.c (direct_output_for_insert): Avoid direct output when
12036 inserting a space with word wrap on.
12037
12038 * indent.c (compute_motion): Obey integer values of
12039 truncate-partial-width-windows.
12040
12041 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
12042 replacing truncate_partial_width_windows.
12043 (init_iterator): If Vtruncate_partial_width_windows is an integer,
12044 truncate only if the window width is below that integer.
12045 (start_display, resize_mini_window, produce_stretch_glyph)
12046 (display_string, move_it_in_display_line_to): Use line_wrap.
12047 (back_to_previous_visible_line_start, reseat_1): Reset
12048 string_from_display_prop_p.
12049 (display_line): Extend default face to end of line when wrapping.
12050
120512008-06-24 Kim F. Storm <storm@cua.dk>
12052
12053 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
12054 to wrap continued lines at word boundaries.
12055
120562008-06-24 Jason Rumney <jasonr@gnu.org>
12057
12058 * font.c (Ffont_face_attributes): Multiply pixel size before point
12059 conversion to avoid multiplying rounding error.
12060
120612008-06-23 Jason Rumney <jasonr@gnu.org>
12062
12063 * w32term.c (x_draw_glyph_string_background)
12064 (x_draw_glyph_string): Remove old bdf font code.
12065
12066 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
12067
120682008-06-22 Kenichi Handa <handa@m17n.org>
12069
12070 * font.c (font_find_for_lface): Try the adstyle specified in
12071 the property of LFACE_FONT of LFACE (if any).
12072
120732008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 12074 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12075
12076 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
12077
120782008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
12079
12080 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
12081 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
12082 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
12083 (witness-emacs): Remove.
12084 (lisp, shortlisp): Move loaddefs.el earlier.
12085 (mostlyclean): Forget about witness-emacs.
12086
120872008-06-22 Glenn Morris <rgm@gnu.org>
12088
12089 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
12090 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
12091
120922008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12093
12094 * Makefile.in (PRECOMP): Remove.
12095 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
12096 (witness-emacs): Run `compile-first'.
12097 (.el.elc): Use the new compile-onefile target.
12098
120992008-06-21 Kenichi Handa <handa@m17n.org>
12100
12101 * xftfont.c (xftfont_open): Handle QCembolden only when
12102 FC_EMBOLDEN is defined.
12103
121042008-06-21 Andreas Schwab <schwab@suse.de>
12105
12106 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
12107 (.el.elc): Likewise.
12108
121092008-06-21 Miles Bader <miles@gnu.org>
12110
12111 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12112 build dir, not the lisp source dir.
12113
121142008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12115
12116 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12117 (bootstrapclean): Remove.
12118 (.el.elc): New rule.
12119 (PRECOMP): New var.
12120 (../lisp/subdirs.el): Remove.
12121 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12122 (witness-emacs): New target.
12123 (mostlyclean): Remove witness-emacs as well.
12124 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12125 Add witness-emacs dependency.
12126
121272008-06-20 Chong Yidong <cyd@stupidchicken.com>
12128
12129 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12130 defined by the font.
12131
121322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12133
12134 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12135 (bootstrap-clean): New target that keeps TAGS around.
12136 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12137 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12138
121392008-06-20 Jason Rumney <jasonr@gnu.org>
12140
12141 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12142 Remove obsolete font code.
12143
12144 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12145 to determine language support.
12146
121472008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12148
12149 * sysdep.c (cfsetspeed): New fun extracted from the code.
12150 (cfmakeraw): Move before first use.
12151
121522008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12153
12154 * sysdep.c (cfmakeraw): Provide fallback implementation.
12155 (serial_configure): Provide fallback implementation of cfsetspeed.
12156
121572008-06-20 Kenichi Handa <handa@m17n.org>
12158
12159 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12160 the pattern.
12161
12162 * fontset.c (fontset_from_font): Copy font_spec before changing
12163 the elements.
12164
12165 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12166
121672008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12168
12169 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12170 for explicit `font' parameters.
12171
12172 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12173
121742008-06-19 Kenichi Handa <handa@m17n.org>
12175
12176 * frame.c: Include <ctype.h>.
12177 (x_set_font_backend): Allow spacing characters in the X resource
12178 for FontBackend.
12179
121802008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12181
12182 * w32fns.c, xfns.c (Qfont_param): New var.
12183 (syms_of_w32fns): Initialize it.
12184 (x_default_font_parameter): Record explicit `font' into
12185 `font-parameter'.
12186
121872008-06-18 Kenichi Handa <handa@m17n.org>
12188
12189 * font.c (font_parse_xlfd): Fix previous change.
12190 (font_parse_fcname): Don't use :fc-unknown-spec.
12191 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12192 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12193 (font_add_log): Prepend the driver name to the resulting fonts.
12194
12195 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12196 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12197 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12198
12199 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12200 (QCembolden): New variables.
12201 (syms_of_xftfont): DEFSYM them.
12202 (xftfont_open): Call XftFontMatch. Don't trust the result of
12203 XftTextExtents8 if the pixel_size is less than 5.
12204
122052008-06-18 Andreas Schwab <schwab@suse.de>
12206
12207 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12208 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12209
122102008-06-18 Jason Rumney <jasonr@gnu.org>
12211
12212 * w32font.c (w32font_list, w32font_match): Add logging.
12213
12214 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12215
122162008-06-17 Chong Yidong <cyd@stupidchicken.com>
12217
12218 * font.c (font_parse_fcname): Store divider characters for
12219 unknown-spec list. For known key symbols, intern using correct
12220 symbol name.
12221
122222008-06-17 Kenichi Handa <handa@m17n.org>
12223
12224 * xfaces.c (realize_default_face): If the frame is not on window
12225 system, set the fontset of face to nil.
12226
122272008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12228
12229 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12230
122312008-06-16 Juanma Barranquero <lekktu@gmail.com>
12232
12233 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12234 (build_font_name_from_vector): Delete externs.
12235
12236 * xfaces.c (struct font_name): Don't declare.
12237
122382008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12239
12240 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12241
122422008-06-16 Chong Yidong <cyd@stupidchicken.com>
12243
12244 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12245
122462008-06-16 Juanma Barranquero <lekktu@gmail.com>
12247
12248 * font.c (Ffont_spec): Fix usage in docstring.
12249 (Ffont_face_attributes): Doc fix.
12250
122512008-06-16 Andreas Schwab <schwab@suse.de>
12252
12253 * font.c (Ffont_face_attributes): Fix definition.
12254
122552008-06-16 Jason Rumney <jasonr@gnu.org>
12256
12257 * font.h (font_style_symbolic_from_value): Remove.
12258
12259 * font.c (font_style_symbolic_from_value): Remove.
12260 (font_style_symbolic): Revert to pre 2008-06-13 version.
12261
12262 * w32font.c (w32_to_fc_weight): New function.
12263 (w32font_full_name, logfont_to_fcname): Use it.
12264
122652008-06-16 Kenichi Handa <handa@m17n.org>
12266
12267 * font.c (font_check_object): Delete it.
12268 (font_clear_cache): Check if a font-object is alive.
12269 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12270 font-object to nil.
12271 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12272 (font_at): Don't call font_check_object.
12273 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12274
122752008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12276
12277 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12278
122792008-06-16 Chong Yidong <cyd@stupidchicken.com>
12280
12281 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12282
122832008-06-15 Chong Yidong <cyd@stupidchicken.com>
12284
12285 * font.c (font_parse_fcname): Only one decimal point.
12286 (font_unparse_fcname): Handle data in family and foundry indices
12287 as symbols, not strings.
12288 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12289
12290 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12291
12292 * font.h (font_unparse_gtkname): Add prototype.
12293
122942008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12295
12296 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12297
122982008-06-15 Andreas Schwab <schwab@suse.de>
12299
12300 * font.c (font_update_drivers): Fix crash when no drivers match.
12301
123022008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12303
12304 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12305 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12306
123072008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12308
12309 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12310
123112008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12312
12313 * process.c (Fserial_process_configure, Fprocess_send_eof):
12314 Use EQ to compare Lisp_Objects.
12315
123162008-06-13 Jason Rumney <jasonr@gnu.org>
12317
12318 * w32fns.c (Fw32_select_font): Remove old font API function.
12319
12320 * w32font.c (logfont_to_fcname): New function.
12321 (Fx_select_font): New font dialog function compatible with
12322 GTK/fontconfig version.
12323
12324 * font.c (font_style_symbolic_from_value): New function.
12325 (font_style_symbolic): Use it.
12326
12327 * font.h (font_style_symbolic_from_value): Declare new function.
12328
123292008-06-13 Juanma Barranquero <lekktu@gmail.com>
12330
12331 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12332 <font-width-table>: Fix typos in docstrings.
12333
123342008-06-13 Daniel Engeler <engeler@gmail.com>
12335
12336 These changes add serial port access.
12337 * process.c: Add HAVE_SERIAL.
12338 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12339 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12340 (list_processes_1, select_wrapper, Fstop_process)
12341 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12342 (status_notify): Modify to handle serial processes.
12343 [HAVE_SERIAL] (Fserial_process_configure)
12344 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12345 New functions.
12346 * process.h (struct Lisp_Process): Add `type'.
12347 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12348 New functions.
12349 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12350 serial ports.
b71ac3dd 12351 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12352 * w32.h: Add FILE_SERIAL.
12353 (struct _child_process): Add ovl_read, ovl_write.
12354
123552008-06-13 Kenichi Handa <handa@m17n.org>
12356
12357 * dispextern.h (enum lface_attribute_index): New member
12358 LFACE_FOUNDRY_INDEX.
12359
12360 * font.c (font_score): Delete arg alternate_families. Check only
12361 weight, slant, width, and size. Ignore the difference of alias
12362 style symbols.
12363 (font_sort_entites): Adjust for the above change. Reflect the
12364 order of font-driver to scores.
12365 (font_list_entities): Don't check alternate_familes here.
12366 (font_clear_prop): Handle foundry.
12367 (font_update_lface): Don't parse "foundry-family" form here.
12368 Handle FONT_FOUNDRY_INDEX.
12369 (font_find_for_lface): Likewise. Handle alternate families here.
12370 If registry is nil, try iso8859-1 and ascii-0.
12371 (font_open_for_lface): Pay attention to size in ENTITY.
12372 (font_open_by_name): Simplify by calling font_load_for_lface.
12373 (free_font_driver_list): Delete it.
12374 (font_update_drivers): Preserve the order of backends.
12375 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12376 of font_score and font_sort_entites.
12377 (font_update_sort_order): Likewise.
12378
12379 * xfaces.c (LFACE_FOUNDRY): New macro.
12380 (check_lface_attrs): Check foundry.
12381 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12382 (merge_face_vectors): Check foundry.
12383 (merge_face_ref): Likewise.
12384 (Finternal_set_lisp_face_attribute): Likewise.
12385 (x_update_menu_appearance): Likewise.
12386 (Finternal_get_lisp_face_attribute): Likewise.
12387 (lface_hash): Likewise.
12388 (lface_same_font_attributes_p): Likewise.
12389 (x_supports_face_attributes_p): Likewise.
12390 (tty_supports_face_attributes_p): Likewise.
12391 (Finternal_set_alternative_font_family_alist): Intern strings.
12392 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12393 (realize_default_face): Set LFACE_FOUNDRY (lface).
12394
12395 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12396 font-driver at first.
12397
12398 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12399
124002008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12401
12402 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12403
124042008-06-12 Jim Meyering <meyering@redhat.com>
12405
12406 Make unexec_free handle NULL the same way free does.
12407 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12408
124092008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12410
12411 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12412 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12413 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12414 (WEAK_ALIAS): Simplify.
12415 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12416 when searching a unibyte buffer.
12417
124182008-06-12 Chong Yidong <cyd@stupidchicken.com>
12419
12420 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12421
124222008-06-12 Juanma Barranquero <lekktu@gmail.com>
12423
12424 * w32font.c: Include ctype.h.
12425
124262008-06-11 Jason Rumney <jasonr@gnu.org>
12427
12428 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12429 misreported as space.
12430 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12431 as aliases for registry iso10646-1.
12432
124332008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12434
12435 * buffer.c (clone_per_buffer_values): Skip `name'.
12436
124372008-06-11 Chong Yidong <cyd@stupidchicken.com>
12438
12439 * font.c (font_parse_fcname): Fix last change; accept decimal
12440 points in font size.
12441
124422008-06-10 Jason Rumney <jasonr@gnu.org>
12443
12444 * w32uniscribe.c (add_opentype_font_name_to_list):
12445 Skip non unicode fonts.
12446
124472008-06-10 Chong Yidong <cyd@stupidchicken.com>
12448
12449 * xfns.c (Fx_font_dialog): New function.
12450
12451 * gtkutil.c (xg_dialog_response_cb): Rename from
12452 xg_file_response_callback.
12453 (pop_down_dialog): Rename from pop_down_file_dialog.
12454 (xg_get_file_name): Callers changed.
12455 (xg_get_font_name): New function.
12456
12457 * gtkutil.h (xg_get_font_name): Insert prototype.
12458
124592008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12460
12461 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12462 x_underline_minimum_display_offset.
12463 (syms_of_xdisp): Declare it here rather than in xterm.c.
12464 * dispextern.h (underline_minimum_offset): Declare it.
12465 * w32term.c (x_draw_glyph_string): Use it.
12466 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12467 (syms_of_xterm): Don't declare it any more.
12468 (x_draw_glyph_string): Adjust to the new name.
12469
8719abec 124702008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12471
12472 * xterm.c (x_underline_minimum_display_offset): New var.
12473 (x_draw_glyph_string): Use it.
12474 (syms_of_xterm): Declare it.
12475
124762008-06-10 Chong Yidong <cyd@stupidchicken.com>
12477
12478 * font.c (font_parse_fcname): Accept GTK-style font names too.
12479
124802008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12481
12482 * dired.c (file_name_completion): Don't return t if the match is exact
12483 but with different capitalization.
12484 * minibuf.c (Ftry_completion): Simplify.
12485
12486 * window.c (Vwindow_point_insertion_type): New var.
12487 (set_window_buffer): Use it.
12488 (syms_of_window): Init and export it to Lisp.
12489
124902008-06-10 Kenichi Handa <handa@m17n.org>
12491
12492 * font.h (font_intern_prop): Prototype adjusted.
12493
12494 * font.c (font_intern_prop): New arg force_symbol.
12495 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12496 Adjust for the change of font_intern_prop.
12497
12498 * ftfont.c (ftfont_pattern_entity):
12499 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12500 (w32_registry):
12501 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12502 the change of font_intern_prop.
12503
125042008-06-09 Juanma Barranquero <lekktu@gmail.com>
12505
12506 * w32menu.c (digest_single_submenu): Declare extern.
12507
125082008-06-09 Jason Rumney <jasonr@gnu.org>
12509
12510 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12511
12512 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12513 (parse_single_submenu): Remove.
12514 (digest_single_submenu): Remove.
12515 (syms_of_w32menu): Don't initialise variables that have moved
12516 to menu.c.
12517 (set_frame_menubar): Sync with version in xmenu.c.
12518 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12519
12520 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12521 Make static again.
12522
125232008-06-09 Jason Rumney <jasonr@gnu.org>
12524
12525 Changes to w32 files related to the move of common menu code
12526 to menu.c on 2008-06-08 by Chong Yidong.
12527
12528 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12529 defs to w32gui.h.
12530 (single_keymap_panes, push_menu_item, push_menu_pane):
12531 Make globally visible.
12532
12533 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12534 (local_free, malloc_widget_value, free_widget_value)
12535 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12536 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12537 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12538 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12539 (menu_items, menu_items_allocated, menu_items_used)
12540 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12541 (init_menu_items, finish_menu_items, discard_menu_items)
12542 (grow_menu_items, push_submenu_start, push_submenu_end)
12543 (push_left_right_boundary, push_menu_pane, push_menu_item)
12544 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12545 (free_menubar_widget_tree_value, parse_single_submenu)
12546 (update_submenu_strings): Remove functions.
12547 (xmalloc_widget_value): Remove and declare extern.
12548
12549 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12550 (OBJ1): Build it.
12551
12552 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12553 (local_heap, local_alloc, local_free, malloc_widget_value)
12554 (free_widget_value): Define here.
12555
125562008-06-09 Kenichi Handa <handa@m17n.org>
12557
12558 * font.h (Qascii_0): Extern it.
12559
12560 * font.c (Qascii_0): New variable.
12561 (syms_of_font): DEFSYM it.
12562 (font_open_by_name): If the registry "iso8859-1" fails, try also
12563 "ascii-0".
12564
12565 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12566
125672008-06-08 Kenichi Handa <handa@m17n.org>
12568
12569 * .gdbinit (xfont): New command.
12570
125712008-06-08 Andreas Schwab <schwab@suse.de>
12572
12573 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12574 * Makefile.in (menu.o): Update dependencies.
12575
12576 * Makefile.in (obj): Always add menu.o.
12577 * emacs.c (main): Always call syms_of_menu.
12578 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12579
125802008-06-08 Chong Yidong <cyd@stupidchicken.com>
12581
12582 * Makefile.in: Compile menu.c.
12583
12584 * lisp.h: Declare syms_of_menu.
12585
12586 * emacs.c (main): Call syms_of_menu.
12587
12588 * keyboard.h: Relocate platform-independent menu definitions from
12589 xmenu.c.
12590
12591 * menu.c: New file. Relocate platform-independent menu
12592 definitions from xmenu.c. Suggested by Adrian Robert.
12593
12594 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12595 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12596 (menu_items_used, menu_items_n_panes)
12597 (menu_items_submenu_depth): Move to keyboard.h.
12598 (init_menu_items, finish_menu_items, unuse_menu_items)
12599 (discard_menu_items, restore_menu_items, save_menu_items)
12600 (grow_menu_items, push_submenu_start, push_submenu_end)
12601 (push_left_right_boundary, push_menu_pane, push_menu_item)
12602 (keymap_panes, single_keymap_panes, single_menu_item)
12603 (list_of_panes, list_of_items, find_and_call_menu_selection)
12604 (xmalloc_widget_value, free_menubar_widget_value_tree)
12605 (parse_single_submenu, digest_single_submenu)
12606 (update_submenu_strings): Move to menu.c.
12607
126082008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12609
12610 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12611
126122008-06-06 Miles Bader <miles@gnu.org>
12613
12614 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12615 face, not frame default.
12616
126172008-06-05 Martin Rudalics <rudalics@gmx.at>
12618
12619 * window.c (pop_up_windows, pop_up_frames)
12620 (display_buffer_reuse_frames, Vpop_up_frame_function)
12621 (Vdisplay_buffer_function, Veven_window_heights)
12622 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12623 (Vspecial_display_function, Vsame_window_buffer_names)
12624 (Vsame_window_regexps, split_height_threshold)
12625 (Vsplit_window_preferred_function): Move those vars to window.el.
12626 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12627 (Fdisplay_buffer): Move those functions to window.el.
12628 (syms_of_window): Remove corresponding declarations.
12629 (display_buffer): New function.
12630 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12631 * dispnew.c (Flast_nonminibuf_frame): New function.
12632 * buffer.c (Fpop_to_buffer): Move to window.el.
12633
126342008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12635
12636 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12637
126382008-06-05 Kenichi Handa <handa@m17n.org>
12639
12640 * coding.c (detect_coding): Fix previous change.
12641 (detect_coding_system): Likewise.
12642
126432008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12644
12645 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12646
12647 * keymap.c (Vminibuffer_local_filename_must_match_map):
12648 Rename from Vminibuffer_local_must_match_filename_map.
12649 (syms_of_keymap):
12650 * minibuf.c (Fcompleting_read): Adjust accordingly.
12651 * commands.h: Rename declaration as well.
12652
126532008-06-05 Kenichi Handa <handa@m17n.org>
12654
12655 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12656 family name.
12657 (Ffont_put): Likewise.
12658
12659 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12660 current font-spec.
12661
12662 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12663 is unspecified.
12664
12665 * xfaces.c (realize_x_face): If the font-related face attributes
12666 are the same as those of default face, realize a new fontset from
12667 default->fontset.
12668 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12669
126702008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12671
12672 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12673 (move_it_in_display_line): New wrapper.
12674
12675 * window.c (window_scroll_pixel_based_preserve_x)
12676 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12677 (window_scroll_pixel_based, window_scroll_line_based):
12678 Use them to preserve column positions.
12679 (syms_of_window): Initialize them.
12680
12681 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12682 (HPOS . VPOS) pair.
12683
12684 * dispextern.h (move_it_in_display_line): Declare.
12685
126862008-06-05 Juanma Barranquero <lekktu@gmail.com>
12687
12688 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12689 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12690 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12691
126922008-06-04 Juanma Barranquero <lekktu@gmail.com>
12693
12694 * window.c (Fset_window_parameter): Doc fix.
12695 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12696
126972008-06-04 Joakim Verona <joakim@verona.se>
12698
12699 * window.h (struct window): Add new member window_parameters.
12700
12701 * window.c (Fwindow_parameters, Fwindow_parameter)
12702 (Fset_window_parameter): New defuns.
12703 (syms_of_window): Defsubr the new defuns.
12704 (make_window): Initialize window_parameters to nil.
12705
127062008-06-04 John Paul Wallington <jpw@pobox.com>
12707
12708 * eval.c (Fdefmacro): Doc fix.
12709
127102008-06-04 Kenichi Handa <handa@m17n.org>
12711
12712 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12713 Be sure to call setup_coding_system when we find a proper coding system.
12714 (detect_coding_system): Fix handling of coding->head_ascii.
12715
127162008-06-03 Andreas Schwab <schwab@suse.de>
12717
12718 * font.c (font_prop_validate_spacing): Fix last change.
12719
127202008-06-03 Kenichi Handa <handa@m17n.org>
12721
12722 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12723 (font_parse_fcname): Fix handling of unknown key.
12724
12725 * xfont.c (xfont_list): Try an alias.
12726
12727 * charset.c (char_charset): Return NULL if the arg charset_list is
12728 specified and C doesn't belong to any of them.
12729
127302008-06-02 Chip Coldwell <coldwell@redhat.com>
12731
12732 * font.c (font_pixel_size): Don't take cdr of an integer.
12733
127342008-06-02 Jim Meyering <meyering@redhat.com>
12735
12736 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12737 * alloc.c (xfree): Return right away for a NULL arg.
12738 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12739 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12740 * mac.c (create_apple_event_from_event_ref): Likewise.
12741 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12742 Likewise.
12743 * doprnt.c (doprnt1): Likewise.
12744 * frame.c (frame): Likewise.
12745 * keyboard.c (wipe_kboard): Likewise.
12746 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12747 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12748 * term.c (tty_default_color_capabilities, maybe_fatal)
12749 (delete_tty): Likewise.
12750 * w16select.c (string): Likewise.
12751 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12752 * w32bdf.c (w32_free_bdf_font): Likewise.
12753 * w32fns.c (w32_unload_font): Likewise.
12754 * w32font.c (w32font_close): Likewise.
12755 * window.c (size_window): Likewise.
12756 * xselect.c (receive_incremental_selection): Likewise.
12757 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12758 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12759 * w32.c (stat): Likewise.
12760
12761 Remove useless if-before-free tests.
12762 * editfns.c (Fset_time_zone_rule): Likewise.
12763 * lread.c (nosuffix): Likewise.
12764 * ralloc.c (get_bloc): Likewise.
12765 * regex.c (reg_free): Likewise.
12766 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12767 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12768 * xsmfns.c (smc_save_yourself_CB): Likewise.
12769
127702008-06-02 Kenichi Handa <handa@m17n.org>
12771
12772 * font.c (font_find_for_lface): Handle float font size.
12773 (font_open_for_lface): Likewise.
12774
12775 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12776 comparing the properties.
12777
127782008-06-01 Jason Rumney <jasonr@gnu.org>
12779
12780 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12781 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12782 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12783 Don't add empty script list.
12784 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12785
127862008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12787
12788 * Makefile.in (dot, dotdot): Remove, update users.
12789 ".." has been used elsewhere in the file for a long time.
12790 (LIBXT_STATIC): Remove conditional based on unused variable.
12791
127922008-06-01 Miles Bader <miles@gnu.org>
12793
12794 * xfaces.c (Vface_remapping_alist): New variable.
12795 (syms_of_xfaces): Initialize it.
12796 (enum named_merge_point_kind): New type.
12797 (struct named_merge_point): Add `named_merge_point_kind' field.
12798 (push_named_merge_point): Make cycle detection respect different
12799 named-merge-point kinds.
12800 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12801 Remove face-name alias resolution.
12802 (lface_from_face_name): New definition using
12803 `lface_from_face_name_no_resolve'.
12804 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12805 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12806 (get_lface_attributes): New definition that layers face-remapping on
12807 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12808 (lookup_basic_face): New function.
12809 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12810 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12811 `get_lface_attributes'.
12812 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12813 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12814 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12815
12816 * xdisp.c (init_iterator): Pass base_face_id through
12817 `lookup_basic_face' when we actually use it as a face-id.
12818 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12819 DEFAULT_FACE_ID.
12820
12821 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12822 lookup the initial face-id.
12823
12824 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12825
128262008-06-01 Juanma Barranquero <lekktu@gmail.com>
12827
12828 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12829 (Fremove_text_properties): Fix typos in docstrings.
12830
128312008-05-31 Kenichi Handa <handa@m17n.org>
12832
12833 * font.c (font_list_entities): Fix the car part of data to be
12834 stored in the cache.
12835
12836 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12837
128382008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12839
12840 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12841 Add a `test' argument so another predicate than `equal' can be used.
12842 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12843 (map_char_table): Remove unused vars `c' and `i'.
12844 * lisp.h (Foptimize_char_table): Adjust declaration.
12845 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12846
128472008-05-30 Kenichi Handa <handa@m17n.org>
12848
12849 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12850 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12851 defined.
12852
128532008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12854
12855 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12856 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12857 frame-local settings for the same variable.
12858
128592008-05-30 Kenichi Handa <handa@m17n.org>
12860
12861 * fontset.c (Ffont_info): Move to font.c.
12862 (syms_of_fontset): Delete defsubr of Sfont_info.
12863
12864 * font.c (font_style_to_value, font_score): Delete casting of the
12865 args to xstcasecmp.
12866 (register_font_driver): Increment num_font_drivers only when
12867 registering the driver globally.
12868 (Ffont_info): Move from fontset.c. Handle a font object too.
12869 (syms_of_font): Defsubr Sfont_info.
12870
128712008-05-29 Kenichi Handa <handa@m17n.org>
12872
12873 * coding.h (enum define_coding_utf8_arg_index): New enum.
12874 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12875 coding_attr_utf_bom.
12876 (enum utf_bom_type): Rename from utf_16_bom_type.
12877 (struct utf_16_spec): Adjust for the above change.
12878 (struct coding_system): Add utf_8_bom in `spec' union.
12879
12880 * coding.c (CODING_UTF_8_BOM): New macro.
12881 (enum coding_category): Delete coding_category_utf_8, add
12882 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12883 coding_category_utf_8_sig.
12884 (CATEGORY_MASK_UTF_8): Delete it.
12885 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12886 (CATEGORY_MASK_UTF_8_SIG): New macros.
12887 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12888 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12889 CATEGORY_MASK_UTF_8_SIG.
12890 (CATEGORY_MASK_UTF_8): New macro.
12891 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12892 (detect_coding_utf_8): Check BOM.
12893 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12894 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12895 (encode_coding_utf_16): Likewise.
12896 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12897 (detect_coding, detect_coding_system): Handle utf-8-auto.
12898 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12899 (syms_of_coding): Fix setting up of Vcoding_category_table.
12900
129012008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12902
12903 * process.c (Faccept_process_output): If `millisec' is non-nil,
12904 `seconds' default to 0.
12905 (wait_reading_process_output): Also return non-nil if we read output
12906 from a non-running process.
12907
129082008-05-29 Jason Rumney <jasonr@gnu.org>
12909
12910 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12911 `raster' specified.
12912 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12913 in the uniscribe backend, but disallow any font that has no
12914 unicode subrange support.
12915
129162008-05-29 Juanma Barranquero <lekktu@gmail.com>
12917
12918 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12919 Fix typos in docstrings.
12920
129212008-05-29 Kenichi Handa <handa@m17n.org>
12922
12923 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12924 (Fx_family_fonts): Set frame correctly.
12925
129262008-05-28 Jason Rumney <jasonr@gnu.org>
12927
12928 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12929
129302008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12931
12932 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12933 calling build_annotations.
12934
129352008-05-28 Juanma Barranquero <lekktu@gmail.com>
12936
12937 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12938 (Fencode_coding_string):
12939 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12940 <latin-extra-code-table>: Fix typos in docstrings.
12941 (syms_of_coding) <coding-system-alist>: Doc fix.
12942 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12943
129442008-05-28 Kenichi Handa <handa@m17n.org>
12945
12946 * fontset.c (Ffont_info): Don't call font_close_object.
12947
12948 * font.c (font_parse_family_registry): Use Ffont_put to validate
12949 foundry and family.
12950 (font_delete_unmatched): Don't check spacing.
12951 (font_list_entities): Add spacing to the spec to list fonts.
12952
12953 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12954 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12955
12956 * coding.c (encode_coding_raw_text): Fix previous change.
12957 (encode_coding_object): When the dst_object is a buffer and is
12958 different from src_object, move gap to PT.
12959
129602008-05-27 Chong Yidong <cyd@stupidchicken.com>
12961
12962 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12963
129642008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12965
12966 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12967 all branches. Compute it differently.
12968
12969 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12970
129712008-05-27 Juanma Barranquero <lekktu@gmail.com>
12972
12973 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12974 into "else if () ... else ...".
12975
129762008-05-27 Jason Rumney <jasonr@gnu.org>
12977
12978 * w32font.c (w32font_open_internal): Determine if glyph indices
12979 are likely to work here.
12980
129812008-05-27 Chong Yidong <cyd@stupidchicken.com>
12982
12983 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12984 draw overlap glyphs with appropriate highlighting.
12985
129862008-05-27 Kenichi Handa <handa@m17n.org>
12987
12988 * xfont.c (xfont_open): Fix calculation of font->average_width.
12989
129902008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12991
12992 * casefiddle.c (casify_object): Try to guess better whether the
12993 argument is a byte or a char.
12994
129952008-05-26 Andreas Schwab <schwab@suse.de>
12996
12997 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12998 Always send multiples of format size.
12999
13000 * xterm.c (x_set_frame_alpha): Fix type mismatch.
13001
130022008-05-26 Jason Rumney <jasonr@gnu.org>
13003
13004 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
13005 (compute_metrics): Don't set failure if we just cleared the cache.
13006 (w32_weight_table): Remove unused variable.
13007 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
13008 backwards compatibility.
13009
130102008-05-25 Kenichi Handa <handa@m17n.org>
13011
13012 * w32term.c (x_draw_glyph_string):
13013 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
13014
13015 * xfaces.c: Delete unused function prototypes.
13016 (xstrlwr, font_frame): Delete them.
13017 (clear_face_cache): Delete unused variable.
13018
13019 * xftfont.c (xftfont_open): Delete unused variable.
13020 If underline_thickness is not 1, adjust underline_position.
13021
13022 * ftxfont.c (ftxfont_open): Delete unused variable.
13023
13024 * fontset.c (face_for_char): Optimize for the case of no charset
13025 property.
13026
13027 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
13028 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
13029 (otf_open, font_otf_capability, generate_otf_features)
13030 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13031 Comment out by surrounding "#if 0" and "#endif" for the moment.
13032 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
13033 (syms_of_font): Codes for accessing above commented out.
13034
130352008-05-24 Eli Zaretskii <eliz@gnu.org>
13036
13037 * w32proc.c: Include dispextern.h.
13038
13039 * w32.c: Include dispextern.h.
13040
130412008-05-23 Juanma Barranquero <lekktu@gmail.com>
13042
13043 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
13044 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
13045 Fix typos in docstrings.
13046
130472008-05-23 Jason Rumney <jasonr@gnu.org>
13048
13049 * xsmfns.c: Remove includes that are already included by config.h.
13050
130512008-05-23 Kenichi Handa <handa@m17n.org>
13052
13053 * charset.c (Qemacs, charset_emacs): New variables.
13054 (char_charset): Fix for non-Unicode characters.
13055 (syms_of_charset): Define charset_emacs.
13056
13057 * w32term.c (x_draw_glyph_string): Be sure to update
13058 s->underline_thickness and s->underline_position. Be sure to draw
13059 underline within the current line area.
13060
13061 * xterm.c (x_draw_glyph_string): Be sure to update
13062 s->underline_thickness and s->underline_position. Be sure to draw
13063 underline within the current line area.
13064
13065 * fontset.c: Delete unused variables and add casting for char *
13066 throughout the file.
13067 (fontset_font): Try the fallback fonts of the current fontset
13068 before consulting the default fontset.
13069
13070 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
13071
13072 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
13073
130742008-05-22 Jason Rumney <jasonr@gnu.org>
13075
13076 * font.c: Don't include strings.h.
13077
13078 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
13079
13080 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
13081 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
13082 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
13083 to call xstrcasecmp.
13084
13085 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
13086
13087 * fontset.c (fs_query_fontset): Use xstrcasecmp.
13088
13089 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
13090
13091 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
13092
130932008-05-22 Kenichi Handa <handa@m17n.org>
13094
13095 * puresize.h (BASE_PURESIZE): Increase to 1220000.
13096
13097 * font.c (font_prop_validate_style): Adjust for the format
13098 change of font_style_table.
13099
13100 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
13101 two args.
13102
13103 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
13104 two args.
13105
131062008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
13107
13108 * minibuf.c (keys_of_minibuf): Delete.
13109 * lisp.h (keys_of_minibuf): Delete.
13110 * emacs.c (main): Don't call keys_of_minibuf.
13111
131122008-05-22 Kenichi Handa <handa@m17n.org>
13113
13114 * ftfont.c (ftfont_resolve_generic_family): Rename from
13115 ftfont_list_generic_family. Return a single family for each
13116 generic family.
13117 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13118 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13119 Call font_add_log.
13120 (ftfont_match): Call font_add_log.
13121
13122 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13123 (FONT_DEBUG): Define it.
13124 (font_add_log): Extern it.
13125 (font_assert): Rename from xassert.
13126
13127 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13128 (xfont_list_family): Call font_add_log.
13129 (xfont_match): Likewise.
13130 (memq_no_quit): Delete.
13131
13132 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13133 call of Ffont_xlfd_name.
13134
13135 * xfaces.c (struct table_entry, slant_table, weight_table)
13136 (swidth_table): Move to font.c.
13137
13138 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13139 xassert are changed to font_assert. Delete many unused variables.
13140 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13141 New variables.
13142 (struct table_entry): Move from xfaces.c and modified.
13143 (weight_table, slant_table, width_table): Move from xfaces.c and
13144 contents adjusted for the change of struct table_entry.
13145 (font_style_to_value, font_style_symbolic): Adjust for the
13146 format change of font_style_table.
13147 (font_parse_family_registry): Don't overwrite existing foundry and
13148 family of font_spec.
13149 (font_score): Fix calculation of diff for sizes.
13150 (font_sort_entites): Call font_add_log.
13151 (font_delete_unmatched): Return a newly created list.
13152 (font_list_entities): Fix previous change. Call font_add_log.
13153 (font_matching_entity, font_open_entity, font_close_entity):
13154 Call font_add_log.
13155 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13156 (Finternal_set_font_style_table): Delete.
13157 (BUILD_STYLE_TABLE): New macro.
13158 (build_style_table): New function.
13159 (Vfont_log, font_log_env_checked): New variables.
13160 (font_add_log): New function.
13161 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13162 Declare Lisp variables "font-weight-table", "font-slant-table",
13163 "font-width-table", and "font-log". Initialize font_style_table.
13164
131652008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13166
13167 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13168
131692008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13170 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13171
13172 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13173 (Vframe_alpha_lower_limit): New variable.
13174 (x_set_alpha): New function.
13175
13176 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13177
13178 * xfns.c (x-create-frame, Qalpha):
13179 Initialize the frame parameter `alpha'.
13180 * xterm.c (OPAQUE, OPACITY): New.
13181 (x_set_frame_alpha): New function.
13182 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13183
13184 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13185 * w32fns.c (w32_frame_parm_handlers): Likewise.
13186
131872008-05-20 Jason Rumney <jasonr@gnu.org>
13188
13189 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13190 truetype fonts to opentype list.
13191
131922008-05-20 Juanma Barranquero <lekktu@gmail.com>
13193
13194 * fontset.c (Ffontset_info): Doc fix.
13195 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13196 <ignore-relative-composition>: Fix typos in docstrings.
13197
13198 * font.c (syms-of-font) <font-encoding-alist>:
13199 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13200 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13201 (Ffont_otf_alternates): Doc fixes.
13202
132032008-05-20 Kenichi Handa <handa@m17n.org>
13204
13205 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13206 font.h through out the file.
13207 (FONT_DRIVERS): Rename from FONTOBJ.
13208 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13209 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13210
13211 * emacs.c (main): Call syms_of_font unconditionally.
13212
13213 * font.h (find_font_encoding): Extern it.
13214
13215 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13216 fontset.c.
194d44e7 13217 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13218 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13219 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13220 only when HAVE_WINDOW_SYSTEM is defined.
13221 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13222 when HAVE_WINDOW_SYSTEM is defined.
13223
13224 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13225 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13226
13227 * xfaces.c: Include font.h unconditionally.
13228 (merge_face_ref, merge_face_vectors)
13229 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13230
132312008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13232
13233 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13234 indirect_variable.
13235 * eval.c (lisp_indirect_variable): New fun.
13236 (Fuser_variable_p): Use it.
13237
132382008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13239
13240 * lisp.h (indirect_variable):
13241 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13242 Use Lisp_Symbol pointers rather than Lisp_Object.
13243 Adjust callers.
13244 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13245 To this end, change calling-convention.
13246
13247 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13248 if some non-hidden buffers are selected by string&pred.
13249
132502008-05-19 Chong Yidong <cyd@stupidchicken.com>
13251
13252 * process.c (wait_reading_process_output): Always check status
13253 when in batch mode.
13254
132552008-05-19 Kenichi Handa <handa@m17n.org>
13256
13257 * font.c (font_list_entities): Fix handling of cache.
13258 (font_matching_entity): Likewise.
13259
13260 * ftfont.c (cs_iso8859_1): Delete.
13261 (ft_face_cache): New variable.
13262 (struct ftfont_info): New member fc_charset_idx.
13263 (ftfont_build_basic_charsets): Delete.
13264 (fc_charset_table): New variable.
13265 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13266 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13267 Callers changed.
13268 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13269 (ftfont_spec_pattern): New argument fc_charset_idx.
13270 Check registry more rigidly. Change callers.
13271 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13272 change of :font-entity property of the font.
13273
13274 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13275 property of the font.
13276
132772008-05-18 Juanma Barranquero <lekktu@gmail.com>
13278
13279 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13280 (Funencodable_char_position, Fcheck_coding_systems_region)
13281 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13282 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13283 (Ffind_operation_coding_system, Fset_coding_system_priority)
13284 (Fcoding_system_eol_type): Doc fixes.
13285
132862008-05-17 Glenn Morris <rgm@gnu.org>
13287
13288 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13289
132902008-05-16 Eli Zaretskii <eliz@gnu.org>
13291
13292 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13293 and st_gid.
13294
13295 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13296 HAVE_WINDOW_SYSTEM is not defined.
13297
13298 * xfaces.c (merge_face_ref, merge_face_vectors)
13299 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13300 HAVE_WINDOW_SYSTEM is defined.
13301 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13302
133032008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13304
13305 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13306
133072008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13308
13309 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13310
133112008-05-15 Kenichi Handa <handa@m17n.org>
13312
13313 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13314 preference.
13315
133162008-05-15 Glenn Morris <rgm@gnu.org>
13317
13318 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13319
133202008-05-15 Chong Yidong <cyd@stupidchicken.com>
13321
13322 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13323 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13324
13325 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13326
133272008-05-15 Kenichi Handa <handa@m17n.org>
13328
13329 * ftfont.c (ftfont_list): Downcase family name to check generic
13330 families.
13331
13332 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13333 font-spec for QCfont value.
13334
13335 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13336 buffer. Check the return value of it.
13337
133382008-05-14 Jason Rumney <jasonr@gnu.org>
13339
13340 * w32term.c (w32_get_glyph_overhangs): Remove.
13341 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13342
133432008-05-14 Kenichi Handa <handa@m17n.org>
13344
13345 * font.c (font_prop_validate): Make nil a valid value.
13346 (font_clear_cache): Check if the cached vector of entities is nil
13347 or not.
13348
133492008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13350
13351 * emacs.c (main_thread): Conditionalize on
13352 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13353 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13354
13355 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13356 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13357 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13358
133592008-05-14 Kenichi Handa <handa@m17n.org>
13360
13361 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13362 has no corresponding coding system.
13363
133642008-05-14 Jason Rumney <jasonr@gnu.org>
13365
13366 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13367
13368 * w32font.h (w32font_open_internal): Update declaration.
13369
13370 * w32font.c (w32font_open_internal): Change last argument from
13371 w32font_info struct to font object. Fill in font object from
13372 font_entity. Get Outline metrics if possible. Use them to
13373 calculate underline position and thickness. Use xlfd name as name
13374 property. Don't set codepage.
13375 (w32font_open): Pass font_object to w32font_open_internal. Don't
13376 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13377 (w32font_draw): Use s->font.
13378 (clear_cached_metrics): Don't clear non-existent blocks.
13379
13380 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13381 font was not found.
13382 (x_draw_glyph_string): Use underline position and thickness from font.
13383
13384 * w32uniscribe.c (uniscribe_open): Pass font_object to
13385 w32font_open_internal.
13386
133872008-05-14 Kenichi Handa <handa@m17n.org>
13388
13389 These changes are to delete all legacy font-handling codes, and
13390 make Emacs use only font-backends.
13391
13392 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13393 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13394
13395 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13396
13397 * charset.h (Vcharset_non_preferred_head)
13398 (Vcurrent_iso639_language): Extern them.
13399
13400 * charset.c (Vcharset_non_preferred_head): New variable.
13401 (Vcurrent_iso639_language): New variable.
13402 (syms_of_charset): Declare it as a Lisp variable.
13403 (char_charset): Don't check non preferred charsets. As a last
13404 resort, return charset_unicode.
13405 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13406
13407 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13408 conditionals. Don't check enable_font_backend. Delete all codes
13409 used only when USE_FONT_BACKEND is not defined.
13410
13411 * dispextern.h (struct glyph_string): Change type of `font' to
13412 `struct font *'.
13413 (struct glyph_string): New member underline_position and
13414 underline_thickness.
13415 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13416 (struct face): Change type of `font' to `struct font *'. Remove
13417 members `font_name', `font_info_id'.
13418 (per_char_metric, encode_char): Delete externs.
13419 (calc_pixel_width_or_height): Adjust the prototype.
13420
13421 * emacs.c (enable_font_backend): Delete extern.
13422 (main): Don't set enable_font_backend. Don't check the command
13423 line argument "-disable-font-backend".
13424
13425 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13426 (enum font_property_index): New members FONT_DPI_INDEX,
13427 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13428 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13429 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13430 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13431 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13432 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13433 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13434 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13435 (struct font_spec, struct font_entity): New structs.
13436 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13437 (struct font): Many members from old "struct font_info" moved to
13438 here. Members font and entity deleted.
13439 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13440 the new font-related objects.
13441 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13442 (CHECK_FONT_GET_OBJECT): Likewise.
13443 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13444 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13445 (struct font_driver): New members case_sensitive anc check. Type
13446 of the member list and open changed.
13447 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13448 (font_symbolic_width, font_find_object, font_get_spec)
13449 (font_set_lface_from_name): Delete extern.
13450 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13451
13452 * font.c: Include <strings.h>.
13453 (enable_font_backend): Delete it.
13454 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13455 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13456 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13457 (null_string): Delete it.
13458 (null_vector): Make it static.
13459 (font_family_alist): Delete it.
13460 (Qnormal): Extern it.
13461 (QCextra, QClanguage): Delete it.
13462 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13463 (font_make_spec, font_make_entity, font_make_object)
13464 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13465 the string. Callers changed.
13466 (font_pixel_size): Adjusted for the format change of font-related
13467 objects.
13468 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13469 (font_style_to_value, font_style_symbolic): New function.
13470 (build_font_family_alist): Delete it.
13471 (font_registry_charsets): Use Fassoc_string instead of
13472 assq_no_quit.
13473 (font_prop_validate_symbol): Don't return null_string.
13474 (font_prop_validate_style): Adjusted for the change of
13475 style-related values in a font vector.
13476 (font_property_table): Delete entries for QClanguage and
13477 QCantialias, add entries for QCavgwidth.
13478 (get_font_prop_index): Delete the 2nd argument FROM.
13479 (font_prop_validate): Arguments changed.
13480 (font_put_extra): Adjusted for the change of font-related objects.
13481 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13482 (font_parse_fcname, font_unparse_fcname)
13483 (font_prepare_composition): Likewise.
13484 (font_parse_family_registry): Renamed from font_merge_old_spec.
13485 (otf_open): Delete the 1st arg entity.
13486 (font_otf_capability): Adjusted for the above change.
13487 (font_score): New arg alternate_families. Adjusted for the change
13488 of font-related objects.
13489 (font_sort_entites): New arg best_only.
13490 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13491 Delete them.
13492 (font_match_p): Check alternate families.
13493 (font_find_object): Delete it.
13494 (font_check_object): New function.
13495 (font_clear_cache): Adjusted for the change of font-related objects.
13496 (font_delete_unmatched): New arg.
13497 (font_list_entities): Call font_driver->list with a spec that
13498 doesn't specify style-related properties.
13499 (font_matching_entity): Arguments changed. Caller changed.
13500 (font_open_entity): Adjusted for the change of font-related objects.
13501 (font_close_object, font_has_char, font_encode_char)
13502 (font_get_name, font_get_spec): Likewise.
13503 (font_spec_from_name, font_clear_prop, font_update_lface):
13504 New functions.
13505 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13506 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13507 (font_at): Adjusted for the change of font-related objects.
13508 (font_range): New function.
13509 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13510 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13511 (Fcopy_font_spec, Fmerge_font_spec): New function.
13512 (Ffont_family_list): Renamed from list-families.
13513 (Finternal_set_font_style_table): Arguments changed.
13514 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13515 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13516 change of font-related objects.
13517 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13518
13519 * fontset.h (struct font_info): Delete it. Most members go to
13520 struct font.
13521 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13522 (enum FONT_SPEC_INDEX): Delete it.
13523 (font_info, list_fonts_func, load_font_func, query_font_func)
13524 (set_frame_fontset_func, find_ccl_program_func)
13525 (get_font_repertory_func, new_fontset_from_font_name): Delete
13526 externs.
13527 (fontset_from_font_name): Extern it.
13528 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13529 (FONT_INFO_FROM_FACE): Deleted.
13530 (face_for_font): Adjust prototype.
13531
13532 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13533 conditionals. Don't check enable_font_backend. Delete all codes
13534 used only when USE_FONT_BACKEND is not defined.
13535 (get_font_info_func, list_font_func, load_font_func)
13536 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13537 (get_font_repertory_func): Delete them.
13538 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13539 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13540 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13541 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13542 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13543 (fontset_compare_rfontdef): New function.
13544 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13545 rfont-defs by qsort. Adjusted for the change of font-group vector.
13546 (load_font_get_repertory): Deleted.
13547 (fontset_find_font): Use new macros to ref/set elements of
13548 font-def and rfont-def.
13549 (fontset_font): Fix the timing of remembering that no font for C.
13550 (free_face_fontset): Do nothing if the face has no fontset.
13551 (face_suitable_for_char_p): Use new macros to ref/set elements of
13552 rfont-def.
13553 (face_for_char): Likewise. Call face_for_char with font_object.
13554 (fs_load_font): Delete. Delete #pragma surrounding it.
13555 (fs_query_fontset): Use strcasecmp instead of strcmp.
13556 (generate_ascii_font_name): Adjusted for the format change of
13557 font-spec.
13558 (Fset_fontset_font): Likewise. Use new macros to set elements of
13559 font-def.
13560 (Fnew_fontset): Use font_unparse_xlfd to generate
13561 FONTSET_ASCII (fontset).
13562 (new_fontset_from_font_name): Deleted.
13563 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13564 a fontset is already created for the font. FIx updating of
13565 Vfontset_alias_alist.
13566 (fontset_ascii_font): Deleted.
13567 (Ffont_info): Adjusted for the format change of font-spec.
13568 (Finternal_char_font): Likewise.
13569 (Ffontset_info): Likewise.
13570 (syms_of_fontset): Don't check load_font_func.
13571
13572 * fns.c (internal_equal): Handle PREV_FONT.
13573
13574 * frame.h: Delete USE_FONT_BACKEND conditional.
13575
13576 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13577 conditionals. Don't check enable_font_backend. Delete all codes
13578 used only when USE_FONT_BACKEND is not defined.
13579 (x_set_font): Call x_new_font, not x_new_fontset2.
13580 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13581 already set for the frame.
13582
13583 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13584 a font-entity by font_make_entity. Use font_intern_prop instead
13585 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13586 font property. If a font is scalable, set avgwidth property to 0.
13587 Set font-entity property by font_put_extra.
13588 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13589 (ffont_driver): Adjusted for the change of struct font_driver.
13590 (ftfont_spec_pattern): New function.
13591 (ftfont_list): Return a list, not vector.
13592 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13593 (ftfont_list_family): Don't downcase names.
13594 (ftfont_free_entity): Deleted.
13595 (ftfont_open): Return a font-object. Adjusted for the change of
13596 struct font. Get underline_thickness and underline_position from
13597 font property. Don't update dpyinfo->smallest_font_height and
13598 dpyinfo->smallest_char_width.
13599 (ftfont_close): Don't free `struct font'.
13600 (ftfont_has_char): Adjusted for the format change of font-entity.
13601 (ftfont_encode_char, ftfont_text_extents): Likewise.
13602
13603 * ftxfont.c (ftxfont_list): Return a list, not vector.
13604 (ftxfont_open): Return a font-object. Adjusted for the change of
13605 struct font. Get underline_thickness and underline_position from
13606 font property. Don't update dpyinfo->smallest_font_height and
13607 dpyinfo->smallest_char_width.
13608 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13609 (ftxfont_draw): Adjusted for the change of struct font.
13610
13611 * image.c (image_ascent): Don't include "charset.h". Include
13612 "character.h" and "font.h".
13613
13614 * lisp.h (enum pvec_type): New member PREV_FONT.
13615 (Fassoc_string): EXFUN it.
13616
13617 * print.c: Include font.h.
13618 (print_object): Handle font-related objects.
13619
13620 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13621 conditionals. Don't check enable_font_backend. Delete all codes
13622 used only when USE_FONT_BACKEND is not defined.
13623 (handle_auto_composed_prop): Do nothing if it->f is not on a
13624 window system. Check how many following characters can be
13625 displayed by the same font.
13626 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13627 'struct font *'.
13628 (get_char_face_and_encoding): Assign the whole encoding task to
13629 the `encode-char' method of a font driver.
13630 (fill_composite_glyph_string): Adjusted for the change of `struct
13631 face' and `struct glyph_string'.
13632 (fill_glyph_string): Likewise.
13633 (get_per_char_metric): Arguments changed.
13634 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13635 and `struct glyph_string'.
13636 (produce_stretch_glyph, calc_line_height_property)
13637 (x_produce_glyphs): Likewise.
13638
13639 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13640 conditionals. Don't check enable_font_backend. Delete all codes
13641 used only when USE_FONT_BACKEND is not defined. Use
13642 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13643 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13644 (Qp): Extern them.
13645 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13646 Deleted.
13647 (struct font_name): Deleted.
13648 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13649 (compare_fonts_by_sort_order): New function.
13650 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13651 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13652 Deleted.
13653 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13654 compare_fonts_by_sort_order.
13655 (Fx_font_family_list): Call Ffont_family_list.
13656 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13657 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13658 (face_symbolic_slant, face_symbolic_swidth)
13659 (split_font_name_into_vector, build_font_name_from_vector)
13660 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13661 (font_rescale_ratio, split_font_name, build_font_name)
13662 (free_font_names, sort_fonts, x_face_list_fonts)
13663 (face_font_available_p, sorted_font_list, cmp_font_names)
13664 (font_list_1, concat_font_list, font_list, remove_duplicates):
13665 Deleted.
13666 (Fx_list_fonts): Use Ffont_list.
13667 (LFACE_AVGWIDTH): Deleted.
13668 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13669 by FONTP.
13670 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13671 (set_lface_from_font_name): Delete it.
13672 (set_lface_from_font): Renamed from
13673 set_lface_from_font_and_fontset. Caller changed. Don't set
13674 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13675 for face.
13676 (merge_face_vectors): Copy font-spec if necessary.
13677 Clear properties of the font-spec if necessary.
13678 (merge_face_ref): Clear properties of the font-spec if necessary.
13679 (Finternal_set_lisp_face_attribute): Likewise.
13680 (set_font_frame_param): Use font_load_for_lface to load a
13681 font-object, and call Fmodify_frame_parameters with it.
13682 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13683 font name by Ffont_xlfd_name.
13684 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13685 QCslant, and QCwidth.
13686 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13687 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13688 Compare fonts by EQ.
13689 (lookup_non_ascii_face): Deleted.
13690 (face_for_font): The 2nd argument changed.
13691 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13692 Check atomic font properties by case insensitive.
13693 (realize_non_ascii_face): Set face->overstrike correctly.
13694 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13695 (dump_realized_face): Get font name from
13696 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13697
13698 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13699 conditionals. Don't check enable_font_backend. Delete all codes
13700 used only when USE_FONT_BACKEND is not defined.
13701 (xic_create_xfontset): Original code deleted and renamed from
13702 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13703 (x_make_gc): Don't set GCFont in GCs.
13704 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13705 opened by "fixed".
13706 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13707 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13708 get_font_repertory_func.
13709
13710 * xfont.c: Include <stdlib.h> and "ccl.h".
13711 (struct xfont_info): New structure.
13712 (xfont_query_font): Deleted.
13713 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13714 moved from xterm.c.
13715 (xfont_driver): Adjusted for the change of struct font_driver.
13716 (compare_font_names): New function.
13717 (xfont_list_pattern): Sort font names case insensitively. Make
13718 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13719 (xfont_list): Return a list, not vector.
13720 (xfont_match): If the font doesn't have QCname property, generate
13721 a name from the other font properties.
13722 (xfont_open): Return a font-object. Adjusted for the change of
13723 struct font. Get underline_thickness and underline_position from
13724 font property. Don't update dpyinfo->smallest_font_height and
13725 dpyinfo->smallest_char_width.
13726 (xfont_close): Don't free struct font.
13727 (xfont_prepare_face): Adjusted for the change of struct font.
13728 (xfont_done_face): Deleted.
13729 (xfont_has_char): Adjusted for the change of struct font.
13730 (xfont_encode_char, xfont_draw): Likewise.
13731 (xfont_check): New function.
13732
13733 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13734 callback function.
13735 (xftfont_match): Adjusted for the format change of font-entity.
13736 (xftfont_open): Adjusted for the format change of font-entity and
13737 font-object. Adjusted for the change of struct font. Return a
13738 font-object. Don't update dpyinfo->smallest_font_height and
13739 dpyinfo->smallest_char_width.
13740 (xftfont_close): Block input while calling XftFontClose.
13741 (xftfont_prepare_face): Don't block input while calling
13742 xftfont_get_colors. Adjusted for the change of struct font.
13743 (xftfont_shape): Return value of error case fixed.
13744
13745 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13746
13747 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13748 conditionals.
13749 (FONT_WIDTH): Return (f)->max_width.
13750 (struct x_display_info): Delete member `font'.
13751 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13752 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13753 (struct x_output): Change type of `font' to `struct font *'.
13754
13755 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13756 conditionals. Don't check enable_font_backend. Delete all codes
13757 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13758 (x_per_char_metric, x_encode_char): Deleted.
13759 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13760 (x_compute_glyph_string_overhangs): Adjusted for the change of
13761 `struct face'.
13762 (x_draw_glyph_string_foreground)
13763 (x_draw_composite_glyph_string_foreground): Likewise.
13764 (x_draw_glyph_string): Likewise. Use font->underline_position and
13765 font->underline_thickness.
13766 (x_new_font): Renamed from x_new_fontset2.
13767 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13768 (x_check_font): Call `check' method of a font driver.
13769 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13770 (x_query_font, x_get_font_repertory): Deleted.
13771 (x_find_ccl_program): Renamed and moved to xfont.c.
13772 (x_redisplay_interface): Adjusted for the change of `struct
13773 redisplay_interface'.
13774
13775 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13776 conditionals. Don't check enable_font_backend. Delete all codes
13777 used only when USE_FONT_BACKEND is not defined. Surround non-used
13778 code by "#ifdef OLD_FONT" and "endif".
13779 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13780
13781 * w32font.h (struct w32font_info): New member.
13782 (FONT_COMPAT): New macro.
13783 (w32font_open_internal): Prototype adjusted.
13784
13785 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13786 OLD_FONT" and "endif".
13787
13788 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13789 conditionals. Don't check enable_font_backend. Delete all codes
13790 used only when USE_FONT_BACKEND is not defined.
13791 (w32font_open): Return a font-object. Make a font-object by
13792 font_make_object. Adjusted for the change of struct w32font_info.
13793 (w32font_close): Don't free struct font. Adjusted for the change
13794 of struct w32font_info.
13795 (w32font_encode_char, w32font_text_extents, w32font_draw):
13796 Adjusted for the change of struct w32font_info.
13797 (w32font_draw): Likewise.
13798 (w32font_list_internal): Return a list, not vector.
13799 (w32font_open_internal): Change the 4th arg to font-object.
13800 Adjusted for the change of struct w32font_info and font-object format.
13801 (add_font_name_to_list): Don't downcase names.
13802 (w32_enumfont_pattern_entity): Make a font-entity by
13803 font_make_entity. Adjusted for the format change of font-entity.
13804 Use FONT_SET_STYLE to set a style-related font property. If a
13805 font is scalable, set avgwidth property to 0. Set font-entity
13806 property by font_put_extra.
13807 (font_matches_spec): Adjusted for the format change of font-entity.
13808 (w32_weight_table, w32_decode_weight): New variables.
13809 (w32_encode_weight): New function.
13810 (fill_in_logfont): Adjusted for the format change of font-spec.
13811 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13812 weight value.
13813 (w32font_driver): Adjusted for the change of struct font_driver.
13814
13815 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13816 conditionals. Don't check enable_font_backend. Surround non-used
13817 code by "#ifdef OLD_FONT" and "endif".
13818 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13819 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13820
13821 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13822 conditionals. Don't check enable_font_backend. Delete all codes
13823 used only when USE_FONT_BACKEND is not defined. Surround non-used
13824 code by "#ifdef OLD_FONT" and "endif".
13825
13826 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13827 (uniscribe_open): Return value changed to font-object.
13828 Adjusted for the format change of font-object.
13829 (uniscribe_otf_capability): Adjusted for the change of struct font.
13830 (add_opentype_font_name_to_list): Don't downcase names.
13831 (uniscribe_font_driver): Adjusted for the change of struct
13832 font_driver.
13833
138342008-05-13 Chong Yidong <cyd@stupidchicken.com>
13835
13836 * dispnew.c (update_frame_1): Check if tty output is still valid
13837 before flushing it.
13838
138392008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13840
13841 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13842 to Gtk+ menus.
13843
138442008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13845
13846 * dired.c (file_name_completion): Tweak the code so as to always do it
13847 in a single pass. Tighten the scope of some variables.
13848
13849 * dired.c (Qdefault_directory): New var.
13850 (file_name_completion): Use it instead of Fexpand_file_name.
13851 (syms_of_dired): Initialize it.
13852
138532008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13854
13855 * fileio.c (double_dollars): Remove dead code.
13856
138572008-05-10 Eli Zaretskii <eliz@gnu.org>
13858
13859 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13860 Mention w32-get-true-file-attributes in doc string.
13861
13862 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13863
138642008-05-09 Glenn Morris <rgm@gnu.org>
13865
13866 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13867 2008-04-23.
13868
138692008-05-09 Eli Zaretskii <eliz@gnu.org>
13870
13871 Support for reporting owner and group of each file on MS-Windows:
13872 * dired.c (stat_uname, stat_gname): New functions, with special
13873 implementation for w32.
13874 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13875
13876 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13877 (dflt_group_name): New static variable.
13878 (dflt_group): Rename from the_group.
13879 (init_user_info): Init dflt_group fields. Get user's group name
13880 from LookupAccountSid.
13881 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13882 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13883 New initialization states.
13884 (globals_of_w32): Initialize them to zero. Initialize the default
13885 group name to "None".
13886 (GetFileSecurity_Name): New global var, the name of the function
13887 to call for GetFileSecurity.
13888 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13889 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13890 (get_file_security, get_security_descriptor_owner)
13891 (get_security_descriptor_group, is_valid_sid)
13892 (get_file_security_desc, get_rid, get_name_and_id)
13893 (get_file_owner_and_group): New functions.
13894 (stat): Use get_file_security_desc and get_file_owner_and_group to
13895 report the owner and primary group of each file. Don't ignore the
13896 high 32 bits of file's size, now that st_size is 64-bit wide.
13897 Fix test when to get true file attributes.
13898 (init_user_info): Use get_rid instead of equivalent inline code.
13899 (fstat): Don't ignore the high 32 bits of file's size.
13900
139012008-05-09 Chong Yidong <cyd@stupidchicken.com>
13902
13903 * image.c (png_load): Use correct bit-depth for setting background
13904 color.
13905
139062008-05-08 Eli Zaretskii <eliz@gnu.org>
13907
13908 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13909 epa-hook.elc.
13910
139112008-05-08 Juanma Barranquero <lekktu@gmail.com>
13912
13913 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13914
139152008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13916
13917 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13918 because the original parameters are in pure storage now.
13919 (mac_window): Remove unused params. Update callers.
13920
139212008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13922
13923 * lread.c (substitute_object_recurse): Use lower-level primitives.
13924 Don't signal errors when traversing sub-char-tables.
13925 Don't loop over all the possible characters when traversing char-tables.
13926
13927 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13928 just like we do in print.c.
13929
139302008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13931
13932 * minibuf.c (Ftry_completion): Remove code left over from when we used
13933 scmp instead of Fcompare_strings.
13934
139352008-05-04 Juanma Barranquero <lekktu@gmail.com>
13936
13937 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13938
139392008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13940
13941 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13942 Create bitmap context in native byte order.
13943
13944 * macterm.c (XDrawLine)
13945 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13946 context in native byte order.
13947
139482008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13949
13950 * config.in: Regenerate.
13951
13952 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13953 New definitions for Image I/O support.
13954 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13955 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13956 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13957 (mac_data_provider_release_data, image_load_image_io)
13958 [USE_MAC_IMAGE_IO]: New functions.
13959 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13960 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13961 (init_image_func_pointer) [MAC_OSX]: Remove function.
13962 (image_load_quartz2d) [MAC_OSX]: Check availability of
13963 CGImageCreateWithPNGDataProvider at compile time.
13964 Use lowercase `false' for boolean constant.
13965 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13966 Use image_load_image_io.
13967 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13968 Don't check MyCGImageCreateWithPNGDataProvider.
13969 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13970 Don't call init_image_func_pointer.
13971
13972 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13973
13974 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13975 Make variable non-static.
13976 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13977 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13978
13979 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13980 (RED_FROM_ULONG): Mask off higher bits.
13981 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13982
13983 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13984 Include AvailabilityMacros.h.
13985 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13986 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13987
139882008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13989
13990 * chartab.c (Fset_char_table_range): If range is t, really set all
13991 chars to that value.
13992
139932008-05-03 Eli Zaretskii <eliz@gnu.org>
13994
13995 * dired.c (Ffile_attributes): Don't allow the device number become
13996 negative.
13997
139982008-05-02 Daiki Ueno <ueno@unixuser.org>
13999
14000 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
14001
140022008-05-02 Juri Linkov <juri@jurta.org>
14003
14004 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
14005 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
14006 DEFAULT argument as a list of default values in docstrings.
14007
140082008-05-01 Chong Yidong <cyd@stupidchicken.com>
14009
14010 * puresize.h (BASE_PURESIZE): Increase to 1210000.
14011
140122008-05-01 Martin Rudalics <rudalics@gmx.at>
14013
14014 * dispnew.c (change_frame_size_1): Preserve small windows when
14015 shrinking frames by calling set_window_height|width with third
14016 arg 2.
14017
14018 * window.h (struct window): Replace field too_small_ok by field
14019 resize_proportionally.
14020
14021 * window.c (make_window): Initialize resize_proportionally.
14022 (enlarge_window): Temporarily set resize_proportionally to make
14023 sure that shrink_windows does scale the window proportionally.
14024 (shrink_windows): When window has resize_proportionally set try
14025 to shrink it proportionally by stealing from other windows.
14026 (struct saved_window, Fset_window_configuration)
14027 (compare_window_configurations): Handle resize_proportionally.
14028 (WINDOW_TOTAL_SIZE): New macro.
14029 (window_min_size, shrink_windows, size_window): Use it.
14030 (check_min_window_sizes): Remove. Invalid values of
14031 window-min-height|width are handled by window_min_size_2 now.
14032 (size_window, Fsplit_window, enlarge_window)
14033 (adjust_window_trailing_edge, grow_mini_window): Don't call
14034 check_min_window_sizes.
14035 (window_min_size_2, window_min_size_1, window_min_size):
14036 New argument safe_p for retrieving "safe" minimum sizes.
14037 (Fdisplay_buffer, Fsplit_window, enlarge_window)
14038 (adjust_window_trailing_edge, grow_mini_window):
14039 Adjust arguments of window_min_size... functions.
14040 (shrink_windows): Argument min_size removed. New argument
14041 safe_p allows shrinking windows to their safe minimum sizes.
14042 Calculate minimum size and decide whether a window shall be
14043 deleted for each window individually.
14044 (size_window): When nodelete_p equals 2, tell shrink_windows to
14045 delete windows only if their new minimum size is no more safe.
14046 (shrink_window_lowest_first): Call window_min_size_1 to make
14047 sure to preserve modeline of bottom-most window when resizing
14048 the minibuffer.
14049 (Fset_window_configuration, Fcurrent_window_configuration)
14050 (compare_window_configurations): Do not handle
14051 window-min-height|width any more.
14052 (syms_of_window): Clarify window-min-height|width doc-strings.
14053
140542008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
14055
14056 * dired.c (file_name_completion): Fix up the encoding/decoding issue
14057 some more. Copy some of the code from Ftry_completions.
14058 Remove special case code that dates back to initial revision when the
14059 slash was only added when necessary and that can't trigger nowadays.
14060
140612008-04-27 Kenichi Handa <handa@m17n.org>
14062
14063 * font.c (font_prop_validate): Signal `error' instead of `font'.
14064
140652008-04-29 Jason Rumney <jasonr@gnu.org>
14066
14067 * w32fns.c (Fw32_battery_status): New defun.
14068 (syms_of_w32fns): Defsubr it.
14069
140702008-04-28 Andreas Schwab <schwab@suse.de>
14071
14072 * dired.c (file_name_completion): Fix another mixing of encoded
14073 and decoded names.
14074
140752008-04-28 Juanma Barranquero <lekktu@gmail.com>
14076
14077 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
14078
140792008-04-27 Juanma Barranquero <lekktu@gmail.com>
14080
14081 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
14082
140832008-04-27 Andreas Schwab <schwab@suse.de>
14084
14085 * dired.c (file_name_completion): Fix inappropriate mixing of
14086 encoded and decoded names.
14087
14088 * xterm.c (XTread_socket): Fix use of uninitialized variable.
14089
14090 * puresize.h (BASE_PURESIZE): Increase to 1200000.
14091
140922008-04-26 Eli Zaretskii <eliz@gnu.org>
14093
14094 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
14095 2008-03-31, it's not needed anymore with `struct stat' definition
14096 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
14097 for the same reasons.
14098
140992008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
14100
14101 * m/sparc.h: Additional redefinitions for GNU/Linux.
14102
141032008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14104
14105 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
14106 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
14107 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
14108 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
14109 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14110 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
14111 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14112 Likewise.
14113
14114 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14115 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14116 (mac_ax_number_of_characters): Add externs.
14117 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14118 [USE_MAC_TSM]: Likewise.
14119 (mac_handle_text_input_event) [MAC_OSX]:
14120 Handle kEventTextInputOffsetToPos for no active input area case.
14121 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14122 (mac_handle_document_access_event)
14123 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14124 (install_application_handler) [MAC_OSX]: Register handlers for
14125 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14126 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14127 Register mac_handle_document_access_event.
14128
14129 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14130 Make functions non-static.
14131
141322008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14133
14134 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14135 (read_file_name_completion_ignore_case, insert_default_directory)
14136 (Qdefault_directory): Move to minibuffer.el.
14137 (Fread_file_name): Call the new `read-file-name' instead.
14138
141392008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14140
14141 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14142 Make function non-static.
14143 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14144 Remove function.
14145 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14146 Move to mactoolbox.c.
14147 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14148
14149 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14150 (mac_rect_make): New macro.
14151
14152 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14153 instead of float.
14154 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14155 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14156 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14157 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14158 CGRectMake.
14159 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14160 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14161 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14162 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14163 instead of WindowRef in argument type.
14164 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14165 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14166 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14167 instead of DISPLAY. All uses changed.
14168 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14169 (x_calc_absolute_position): Simplify so as not to use
14170 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14171
14172 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14173 instead of WindowRef in argument type.
14174 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14175 [TARGET_API_MAC_CARBON]: Remove externs.
14176 (create_apple_event, mac_event_parameters_to_lisp)
14177 [TARGET_API_MAC_CARBON]: Add externs.
14178
14179 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14180 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14181 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14182 is clicked.
14183 (x_activate_menubar): Remove extern for saved_menu_event_location.
14184 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14185 Move from mac.c.
14186
141872008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14188
14189 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14190 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14191
141922008-04-23 Jason Rumney <jasonr@gnu.org>
14193
14194 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14195 attributes only for local files.
14196
14197 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14198 default to Qlocal.
14199
142002008-04-22 Juri Linkov <juri@jurta.org>
14201
14202 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14203 read-buffer-to-switch instead of using the letter "B".
14204
142052008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14206
14207 * fileio.c (Qdefault_directory): New variable.
14208 (Fread_file_name): Use it to pass `dir' to the completion functions.
14209
142102008-04-20 Chong Yidong <cyd@stupidchicken.com>
14211
14212 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14213
142142008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14215
14216 * keyboard.c (Vpre_help_message): Remove.
14217 (show_help_echo): Remove default C code.
14218
14219 * dired.c (directory_files_internal, file_name_completion):
14220 Only call ENCODE_FILE if the string is indeed decoded.
14221
142222008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14223
14224 * Makefile.in (TOOLKIT_DEFINES): Remove.
14225 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14226
142272008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14228
14229 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14230 (mactoolbox.o): New target.
14231
14232 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14233 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14234
14235 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14236 Use mac_set_frame_window_background instead of XSetWindowBackground.
14237 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14238 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14239 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14240 instead of SetWindowTitleWithCFString.
14241 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14242 Move function to mactoolbox.c.
14243 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14244 Use mac_set_window_modified instead of SetWindowModified.
14245 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14246 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14247 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14248 FrontNonFloatingWindow. Use mac_activate_window instead of
14249 ActivateWindow. Use mac_active_non_floating_window instead of
14250 ActiveNonFloatingWindow.
14251 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14252 Use mac_show_hourglass and mac_hide_hourglass.
14253 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14254 instead of GetGlobalMouse.
14255 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14256 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14257 Use mac_bring_window_to_front instead of BringToFront.
14258 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14259 mactoolbox.c.
14260 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14261 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14262 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14263 mactoolbox.c.
14264
14265 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14266 (XtPointer): Move typedef from macmenu.c.
14267 (enum button_type): Move enum from macmenu.c.
14268 (widget_value): Move typedef from macmenu.c.
14269 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14270 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14271 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14272 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14273 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14274 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14275 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14276 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14277 (Selection): Move typedef from macselect.c.
14278 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14279 macterm.c.
14280 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14281 (mac_is_window_collapsed, mac_bring_window_to_front)
14282 (mac_send_window_behind, mac_hide_window, mac_show_window)
14283 (mac_collapse_window, mac_front_non_floating_window)
14284 (mac_active_non_floating_window, mac_activate_window)
14285 (mac_move_window_structure, mac_move_window, mac_size_window)
14286 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14287
14288 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14289 (enum mac_menu_kind): Move enum to mactoolbox.c.
14290 (min_menu_id): Move variable to mactoolbox.c.
14291 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14292 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14293 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14294 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14295 [TARGET_API_MAC_CARBON]: Likewise.
14296 (XtPointer): Move typedef to macgui.h.
14297 (enum button_type): Move enum to macgui.h.
14298 (widget_value): Move typedef to macgui.h.
14299 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14300 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14301 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14302 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14303 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14304 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14305 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14306 (popup_activated_flag): Make variable non-static.
14307 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14308 (add_menu_item, fill_menu, dispose_menus):
14309 Move functions to mactoolbox.c.
14310 (restore_show_help_function, menu_target_item_handler)
14311 (install_menu_target_item_handler, mac_handle_dialog_event)
14312 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14313 [TARGET_API_MAC_CARBON]: Likewise.
14314 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14315 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14316 (find_and_call_menu_selection, name_is_separator): Make function
14317 non-static.
14318 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14319 to mactoolbox.c.
14320 (set_frame_menubar): Don't call install_menu_quit_handler.
14321 (menu_item_selection): New variable.
14322 (mac_menu_show): Use create_and_show_popup_menu.
14323 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14324 selection but set variable menu_item_selection. All uses changed.
14325 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14326 Call install_menu_quit_handler. Move to mactoolbox.c.
14327
14328 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14329 (Selection): Move typedef to macgui.h.
14330 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14331 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14332 Make variables non-static.
14333 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14334 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14335 Make functions non-static.
14336 (Vmac_service_selection) [MAC_OSX]: Likewise.
14337 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14338 (mac_valid_selection_target_p, mac_clear_selection)
14339 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14340 (mac_put_selection_value, mac_selection_has_target_p)
14341 (mac_get_selection_value, mac_get_selection_target_list)
14342 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14343 Move functions to mactoolbox.c.
14344 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14345 Likewise.
14346 (copy_scrap_flavor_data, mac_handle_service_event)
14347 (install_service_handler) [MAC_OSX]: Likewise.
14348 (syms_of_macselect) <Vmac_dnd_known_types>:
14349 Use mac_dnd_default_known_types.
14350
14351 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14352 Move to mactoolbox.c.
14353 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14354 (Fx_selection_owner_p): Add EXFUN.
14355 (install_window_handler, remove_window_handler, XSetWindowBackground):
14356 Remove externs.
14357 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14358 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14359 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14360 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14361 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14362 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14363 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14364 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14365 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14366 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14367 (mac_valid_selection_target_p, mac_clear_selection)
14368 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14369 (mac_put_selection_value, mac_selection_has_target_p)
14370 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14371 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14372 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14373 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14374 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14375 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14376 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14377 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14378 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14379
14380 * mactoolbox.c: New file.
14381
143822008-04-18 Jason Rumney <jasonr@gnu.org>
14383
14384 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14385
143862008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14387
14388 * character.c (Fmultibyte_char_to_unibyte):
14389 Return latin1 chars unchanged.
14390
14391 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14392 relocated if it points to `name'.
14393
143942008-04-17 Kenichi Handa <handa@m17n.org>
14395
14396 * data.c (Faset): Allow setting a multibyte character in an
14397 ASCII-only unibyte string.
14398
14399 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14400
144012008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14402
14403 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14404 done in config.h.
14405
144062008-04-16 Juanma Barranquero <lekktu@gmail.com>
14407
14408 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14409 (Fchar_direction): Add usage in the docstring.
14410
144112008-04-15 Chong Yidong <cyd@stupidchicken.com>
14412
14413 * keyboard.c (read_key_sequence): Remove always-true checks.
14414
144152008-04-14 Jason Rumney <jasonr@gnu.org>
14416
14417 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14418 compatibility struct, for better underline positioning.
14419
144202008-04-13 David Hansen <david.hansen@gmx.net>
14421
14422 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14423 string.
14424
144252008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14426
14427 * m/hp800.h (XUINT, XSET): Remove.
14428
144292008-04-12 Juanma Barranquero <lekktu@gmail.com>
14430
14431 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14432 previous change.
14433
144342008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14435
14436 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14437 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14438
144392008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14440
14441 * keymap.h (map_keymap_canonical): Declare.
14442 * xmenu.c (single_keymap_panes): Use it.
14443
144442008-04-11 Glenn Morris <rgm@gnu.org>
14445
14446 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14447 set the target's value to that of the alias.
14448
144492008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14450
14451 * term.c (set_tty_color_mode): Left over typo.
14452
144532008-04-10 Michael Albinus <michael.albinus@gmx.de>
14454
14455 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14456 only after check for file name handler functions. Signal, when
14457 native functionality is not supported.
14458 (syms_of_fileio): Declare it unconditionally.
14459
144602008-04-10 Jason Rumney <jasonr@gnu.org>
14461
14462 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14463 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14464
14465 * w32.c (logon_network_drive): Also logon to remote drives that
14466 are mapped to drive letters.
14467
144682008-04-10 Glenn Morris <rgm@gnu.org>
14469
14470 * xdisp.c (truncate-partial-width-windows): Doc fix.
14471
144722008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14473
14474 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14475 Move functions to minibuffer.el.
14476 (syms_of_fileio): Don't declare them.
14477
144782008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14479
14480 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14481 (syms_of_minibuf): Remove its initialization.
14482
14483 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14484
144852008-04-09 Juanma Barranquero <lekktu@gmail.com>
14486
14487 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14488
144892008-04-09 Jason Rumney <jasonr@gnu.org>
14490
14491 * makefile.w32-in (distclean): Delete makefile too.
14492 (maintainer-clean): New target.
14493
14494 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14495
14496 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14497 for new font backend and composite cases.
14498
144992008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14500
14501 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14502 Most of the code moved to run_timers.
14503 (do_pending_atimers): Call run_timers.
14504 (run_timers): New function.
14505
14506 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14507 run atimers.
14508
14509 * process.c (wait_reading_process_output): The same as above.
14510
145112008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14512
14513 * minibuf.c (last_exact_completion): Remove variable.
14514 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14515 (complete_and_exit_1, complete_and_exit_2)
14516 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14517 (Fdisplay_completion_list, display_completion_list_1)
14518 (Fminibuffer_completion_help, Fself_insert_and_exit)
14519 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14520 minibuffer.el.
14521 (syms_of_minibuf): Remove corresponding initializations.
14522
14523 * keyboard.c (Qdeactivate_mark): New var.
14524 (command_loop_1): Use it to call `deactivate-mark'.
14525 (syms_of_keyboard): Initialize it.
14526
14527 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14528 to another frame.
14529 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14530 Don't call set_tty_color_mode.
14531 (store_frame_param): Reset previous_frame rather than call
14532 set_tty_color_mode.
14533 * term.c (set_tty_color_mode): Rewrite.
14534 * dispextern.h (set_tty_color_mode): New type.
14535 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14536
145372008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14538
14539 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14540 for generic chars, which do not exist any more in emacs-unicode.
14541
145422008-04-08 Michael Albinus <michael.albinus@gmx.de>
14543
14544 * coding.c (detect_coding_emacs_mule)
14545 (Ffind_operation_coding_system): Fix typo.
14546
145472008-04-08 Jason Rumney <jasonr@gnu.org>
14548
14549 * w32uniscribe.c (SNAME): Extract only symbol name.
14550
14551 * w32font.h (struct w32_metric_cache): New struct.
14552 (w32font_info): Use it.
14553 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14554 (CACHE_BLOCKSIZE): New constants.
14555
14556 * w32font.c (Qja, Qko, Qzh): New symbols.
14557 (syms_of_w32font): Initialise them.
14558 (font_matches_spec): Use them to filter by language.
14559 (recompute_cached_metrics): Remove function.
14560 (compute_metrics, clear_cached_metrics): New functions.
14561 (w32font_encode_char): Use them to manage metric cache.
14562 (w32font_text_extents): Cache metrics for all glyphs on demand.
14563 Delay converting glyph indices to WORD until needed.
14564 (w32font_open_internal): Initialize metric cache to empty.
14565 (registry_to_w32_charset): Charset should always be a symbol.
14566 (fill_in_logfont, list_all_matching_fonts): Family should
14567 always be a symbol.
14568
145692008-04-06 Jason Rumney <jasonr@gnu.org>
14570
14571 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14572 Give up if glyph indices not supported. Use uniscribe obtained
14573 ABC widths for individual metrics. Map glyph clusters back to
14574 characters using fClusterStart flag. Return number of glyphs
14575 produced, not chars processed.
14576 (uniscribe_shape): Map char at FROM to current glyph.
14577
145782008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14579
14580 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14581 Use SetMenuItemHierarchicalMenu.
14582
145832008-04-05 Jason Rumney <jasonr@gnu.org>
14584
14585 * image.c (pbm_load): Allow color values up to 65535.
14586 Throw an error if max_color_idx is outside the supported range.
14587 Report an error when image size is invalid.
14588 Read two bytes at a time when raw images have max_color_idx above 255.
14589
aac0c6e3
MR
145902008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14591
14592 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14593 append "CCL: Quitted" when the CCL program is quitted.
14594 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14595
14596 * ccl.h (struct ccl_program): New member quit_silently.
14597
145982008-04-05 Chong Yidong <cyd@stupidchicken.com>
14599
14600 * search.c (compile_pattern_1): Treat non-nil and non-string of
14601 search-spaces-regexp as nil.
14602
14603 * minibuf.c (Fassoc_string): Tweak docstring.
14604
146052008-04-05 Eli Zaretskii <eliz@gnu.org>
14606
14607 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14608 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14609 2008-03-14 to force inode be positive.
14610
14611 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14612 _S_* ones, since we now use our own sys/stat.h.
14613 (stat, fstat): Don't mangle the inode number.
14614 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14615
146162008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14617
14618 * frame.h (struct frame): Give one more bit to `visible' since we use
14619 values larger than 1 to indicate obscured frames on ttys.
14620
14621 * keymap.c (Qkeymap_canonicalize): New var.
14622 (Fmap_keymap_internal): New fun.
14623 (describe_map): Use keymap-canonicalize.
14624
14625 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14626 (Fundo_boundary): Set them.
14627 (syms_of_undo): Initialize them.
14628 (record_point): Use them instead of last_point_position*.
14629 (last_undo_buffer): Change type.
14630
146312008-04-04 Jason Rumney <jasonr@gnu.org>
14632
14633 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14634 (recompute_cached_metrics): Don't set ascent and descent per char.
14635
14636 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14637 (uniscribe_check_otf): Add GC protection before consing.
14638 Rearrange loop for counting features.
14639
146402008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14641
14642 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14643 buffer with byte-size of source buffer.
14644
146452008-04-03 Chong Yidong <cyd@stupidchicken.com>
14646
14647 * callint.c (Fcall_interactively): Handle temporary region even
14648 when shift-select-mode is off.
14649
146502008-04-03 Jason Rumney <jasonr@gnu.org>
14651
14652 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14653
146542008-04-03 Kenichi Handa <handa@m17n.org>
14655
14656 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14657 (CATEGORY_MASK_UTF_16): Likewise.
14658 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14659 binary file.
14660 (detect_coding): Add null-byte detection for a binary file.
14661 (detect_coding_system): Likewise.
14662
146632008-04-03 Jason Rumney <jasonr@gnu.org>
14664
14665 * w32uniscribe.c: New file.
14666
14667 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14668
14669 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14670
14671 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14672 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14673 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14674 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14675 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14676 (Qphonetic): New symbols.
14677 (syms_of_w32font): Initialize them.
14678 (font_supported_scripts): Use them.
14679 (w32font_list_family): List all charsets.
14680 (w32font_text_extents, recompute_cached_metrics): Fix metric
14681 calculations.
14682 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14683 Give opentype fonts their own format.
14684 (font_matches_spec): New arguments backend and logfont.
14685 Handle :otf spec for uniscribe backend.
14686 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14687 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14688
14689 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14690 font backend.
14691 (globals_of_w32fns): Initialize uniscribe font backend.
14692
14693 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14694 dependencies.
14695 (w32uniscribe.$(O)): New file to build.
14696 (FONT_OBJ): Include w32uniscribe.$(O).
14697 (LIBS): Add uniscribe libraries.
14698
14699 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14700
147012008-04-02 Chong Yidong <cyd@stupidchicken.com>
14702
14703 * callint.c (Vshift_select_mode): New var.
14704 (Finteractive): Document new ^ spec.
14705 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14706 is present.
14707
14708 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14709 (command_loop_1): Avoid running the direct display versions of
14710 forward-char and backward-char if shift-selection may occur.
14711 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14712 shift-translation takes place.
14713
14714 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14715 avoid clobbering by define-minor-mode.
14716
14717 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14718 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14719
14720 * syntax.c (Fforward_word): Add ^ interactive spec.
14721
14722 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14723 (Fscroll_right): Add ^ interactive spec.
14724
147252008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14726
14727 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14728
14729 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14730
14731 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14732
147332008-03-31 Juri Linkov <juri@jurta.org>
14734
14735 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14736
147372008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14738
14739 * gtkutil.c (xg_set_geometry): Fix indentation.
14740 (xg_resize_outer_widget): Remove.
14741 (x_wm_size_hint_off): Fix indentation.
14742 (xg_frame_set_char_size): Call flush_and_sync after
14743 gtk_window_resize.
14744 (x_wm_set_size_hint): Pass NULL as geometry window to
14745 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14746 Add menu bar and tool bar height to base height.
14747 (xg_update_frame_menubar, free_frame_menubar)
14748 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14749 (update_frame_tool_bar, free_frame_tool_bar):
14750 Change xg_resize_outer_widget to xg_frame_set_char_size.
14751
147522008-03-30 Michael Albinus <michael.albinus@gmx.de>
14753
14754 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14755 (Fdbus_call_method): New parameter TIMEOUT.
14756 (dbus-send-signal): Optimize UNGCPRO call.
14757
147582008-03-29 Juri Linkov <juri@jurta.org>
14759
14760 * window.c (Fdisplay_buffer): Move call to
14761 Vsplit_window_preferred_function out of conditions that check
14762 if window is eligible for vertical splitting.
14763 When Vsplit_window_preferred_function is non-nil, call it and use
14764 its non-nil return value as window. Otherwise, continue doing
14765 vertical splitting using Fsplit_window with arg horflag=nil.
14766 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14767 default value from `split-window' to nil.
14768
147692008-03-29 Juri Linkov <juri@jurta.org>
14770
14771 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14772 for interactive code letters 'b' and 'B'.
14773
147742008-03-29 Eli Zaretskii <eliz@gnu.org>
14775
14776 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14777 multibyte string.
14778
147792008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14780
14781 * keyboard.c (pending_funcalls): New var.
14782 (timer_check): Run it.
14783 (syms_of_keyboard): Initialize it.
14784 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14785 (Vdelete_terminal_functions): New vars.
14786 (syms_of_terminal): Initialize them.
14787 (Fdelete_terminal): Run delete-terminal-functions.
14788 * xdisp.c (safe_eval): Rewrite.
14789 (safe_call2): New fun.
14790 * frame.c (Qdelete_frame_functions): New var.
14791 (syms_of_frame): Initialize it.
14792 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14793 * lisp.h (safe_call2, pending_funcalls): Declare.
14794
147952008-03-28 Andreas Schwab <schwab@suse.de>
14796
14797 * indent.c (Fmove_to_column): Move declaration before statements.
14798
147992008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14800
14801 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14802 (struct frame): Use bit fields for boolean vars.
14803
14804 * process.c (server_accept_connection): Simplify naming.
14805 (emacs_get_tty_pgrp): Use SDATA.
14806
14807 * coding.c (decode_coding_object): Fix last change.
14808
148092008-03-27 Jason Rumney <jasonr@gnu.org>
14810
14811 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14812
148132008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14814
14815 * charset.c (Fdefine_charset_internal): Change the way of
14816 registering charsets in Vcharset_order_list.
14817 (syms_of_charset): Make the charset `eight-bit' supplementary.
14818
148192008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14820
14821 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14822 operations, to avoid having the difference between pointers
14823 overflow.
14824
148252008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14826
14827 * indent.c (check_display_width): New fun.
14828 (scan_for_column): Use it.
14829
14830 * data.c (syms_of_data): Mark most-positive-fixnum and
14831 most-negative-fixnum as constants.
14832
14833 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14834
14835 * indent.c (scan_for_column): Extract from current_column_1.
14836 Merge with the same code from Fmove_to_column.
14837 (current_column_1, Fmove_to_column): Use it.
14838
148392008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14840
14841 * keymap.c (map_keymap_internal): New fun.
14842 (map_keymap): Use it.
14843 (Fmap_keymap_internal): New fun.
14844 (Fmap_keymap): Remove left-out test from before make_save_value.
14845
14846 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14847
14848 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14849 Use XCAR/XCDR.
14850
14851 * process.h (struct Lisp_Process): Remove filter_multibyte.
14852 * process.c (QCfilter_multibyte): Remove.
14853 (setup_process_coding_systems): Don't use filter_multibyte.
14854 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14855 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14856 (Fset_process_filter_multibyte): Change the coding-system to
14857 approximate the previous behavior.
14858 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14859 coding-system.
14860
14861 * coding.c (decode_coding_object): When not decoding into a buffer,
14862 obey the coding system's preference of (uni|multi)byte.
14863
148642008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14865
14866 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14867 every char is changed and has a different byte-length.
14868 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14869 Fix int -> EMACS_INT.
14870
148712008-03-23 David Hansen <david.hansen@gmx.net>
14872
14873 * dbusbind.c (xd_read_message): Remove extra copying of message
14874 strings. Check for NULL `interface' or `member'.
14875
148762008-03-22 Eli Zaretskii <eliz@gnu.org>
14877
14878 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14879 cFileName a file name that includes `?' characters, use the 8+3
14880 alias in cAlternateFileName instead.
14881
148822008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14883
14884 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14885
148862008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14887
14888 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14889 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14890 work on current_buffer only instead (that was already the case
14891 for some of the code anyway).
14892 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14893 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14894 (SET_PT, SET_PT_BOTH): Adjust.
14895 * intervals.h (set_point, temp_set_point, set_point_both)
14896 (temp_set_point_both): Remove redundant declarations.
14897
148982008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14899
14900 * fileio.c (Finsert_file_contents):
14901 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14902 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14903 when buffer != current_buffer anyway.
14904
149052008-03-20 Andreas Schwab <schwab@suse.de>
14906
14907 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14908 as default.
14909
149102008-03-19 Jason Rumney <jasonr@gnu.org>
14911
14912 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14913 (syms_of_w32fns): Initialize them.
14914 (HOURGLASS_ID): New constant.
14915 (x_window_to_frame): Don't check hourglass_window.
14916 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14917 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14918 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14919 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14920 Only change the cursor if hourglass is not active.
14921 (Fx_create_frame): Initialize frame's current_cursor.
14922 (hourglass_atimer): Remove.
14923 (hourglass_started): New function.
14924 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14925 (show_hourglass): Adapt to w32, changing argument to frame.
14926
14927 * w32term.h (struct w32_output): Remove hourglass_window.
14928 Add current_cursor.
14929
14930 * eval.c (call_debugger, Fsignal):
14931 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14932 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14933 (Fexecute_extended_command, cancel_hourglass_unwind):
14934 * minibuf.c (read_minibuf):
14935 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14936
149372008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14938
14939 * window.c (run_funs): New fun.
14940 (run_window_configuration_change_hook): Use it to run the buffer-local
14941 and the global part of the hook.
14942
14943 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14944 (unwind_format_mode_line): Restore selected window.
14945 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14946
149472008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14948
14949 * editfns.c (Fchar_equal): Check they are valid characters.
14950
14951 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14952
149532008-03-17 Andreas Schwab <schwab@suse.de>
14954
14955 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14956 against a charset.
14957
14958 * lisp.h (Fbuffer_list): Declare.
14959
149602008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14961
aac0c6e3
MR
14962 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14963 handlebox_widget is != 0.
14964
149652008-03-16 Juri Linkov <juri@jurta.org>
14966
14967 * callint.c (Fcall_interactively): For interactive code letters
14968 'b' and 'B' put the buffer list into the list of default "future"
14969 values of the minibuffer.
14970
149712008-03-16 Andreas Schwab <schwab@suse.de>
14972
14973 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14974 modifiers.
14975
14976 * regex.c (re_match_2_internal): Correct matching of a charset
14977 against latin-1 characters.
14978
149792008-03-16 Kenichi Handa <handa@m17n.org>
14980
14981 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14982 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14983 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14984 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14985 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14986 CHAR_STRING_ADVANCE.
14987 (produce_chars): Fix for the case that the source and the
14988 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14989 instead of CHAR_STRING_ADVANCE.
14990 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14991 STRING_CHAR_ADVANCE.
14992
149932008-03-15 Andreas Schwab <schwab@suse.de>
14994
14995 * regex.c (re_match_2_internal): Correct matching of eight bit
14996 characters in unibyte strings.
14997
149982008-03-15 Martin Rudalics <rudalics@gmx.at>
14999
15000 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
15001 at end of range when it coincides with the end of the buffer.
15002
150032008-03-14 Eli Zaretskii <eliz@gnu.org>
15004
15005 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
15006
15007 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
15008
150092008-03-14 Jason Rumney <jasonr@gnu.org>
15010
15011 * editfns.c (initial_tz): New variable.
15012 (syms_of_editfns): Initialize it.
15013 (Fset_time_zone_rule): Set it when first called.
15014 Use it when TZSTRING is nil.
15015
15016 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
15017 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
15018 (monitor_from_point_fn, get_monitor_info_fn): New globals.
15019 (globals_of_w32fns): Initialize them.
15020 (compute_tip_xy): Use them to position tooltips.
15021
150222008-03-14 Glenn Morris <rgm@gnu.org>
15023
15024 * emacs.c (main): Revert previous change.
15025 (standard_args): Revert -internal-script back to -scriptload,
15026 and remove the long-option form.
15027
150282008-03-13 Glenn Morris <rgm@gnu.org>
15029
15030 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
15031 Remove option -enable-font-backend.
15032
150332008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
15034
15035 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
15036
150372008-03-11 Jan Djärv <jan.h.d@swipnet.se>
15038
15039 * xterm.c (x_connection_closed): For GTK: If this is the last
15040 terminal just exit without closing the display.
15041
150422008-03-11 Jason Rumney <jasonr@gnu.org>
15043
15044 * w32font.c (w32font_full_name): Use floor to round.
15045
f0131492 150462008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
15047
15048 * sound.c (alsa_configure): Declare vol at beginning of block.
15049
15050 * fontset.c (Ffontset_info): Remove extra semicolon.
15051
150522008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
15053
15054 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
15055 size of resulting string.
15056
150572008-03-10 Jason Rumney <jasonr@gnu.org>
15058
15059 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
15060
150612008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15062
15063 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
15064 Don't pretend as if characters with display property haven't been
15065 consumed for string-replacing-string case.
15066
150672008-03-08 Kim F. Storm <storm@cua.dk>
15068
15069 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
15070 (get_next_display_element, next_element_from_string)
15071 (next_element_from_ellipsis, next_element_from_buffer): Use it.
15072
150732008-03-08 Andreas Schwab <schwab@suse.de>
15074
15075 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
15076
150772008-03-06 Jason Rumney <jasonr@gnu.org>
15078
15079 * w32font.c (w32_registry): Take font_type argument. Use ANSI
15080 when charset not specified. Only translate ANSI to unicode when
15081 font_type is truetype.
15082 (w32font_coverage_ok): New function.
15083 (add_font_entity_to_list): Use it to filter unsuitable fonts.
15084
150852008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
15086
15087 * lread.c (Fread_char): Resolve modifiers.
15088 (Fread_char_exclusive): Likewise.
15089
15090 * character.c (char_resolve_modifier_mask): New function.
15091 (char_string): Use char_resolve_modifier_mask.
15092 (Fchar_resolve_modifiers): New function.
15093 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
15094 function.
15095
150962008-03-04 Jason Rumney <jasonr@gnu.org>
15097
15098 * makefile.w32-in: Always include w32font.c in the build.
15099 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
15100
151012008-03-04 Andreas Schwab <schwab@suse.de>
15102
15103 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
15104 (versionclean): Likewise.
15105
151062008-03-04 Juanma Barranquero <lekktu@gmail.com>
15107
15108 * .cvsignore: Add oo.
15109
151102008-03-03 Andreas Schwab <schwab@suse.de>
15111
15112 * coding.c (decode_coding_object): Inhibit gap shrinking while
15113 decoding in place.
15114
151152008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15116
15117 * w32term.c: Remove unused include "gnu.h".
15118 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15119
15120 * gnu.h: Rename to ...
15121 * emacs-icon.h: ... this.
15122 * xterm.c: Use emacs-icon.h instead of gnu.h.
15123 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15124
151252008-03-03 Juanma Barranquero <lekktu@gmail.com>
15126
15127 * w32font.c: Include math.h.
15128
151292008-03-03 Jason Rumney <jasonr@gnu.org>
15130
15131 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15132 Compute options separately.
15133 (w32font_open_internal): Set glyph_idx before caching metrics.
15134
15135 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15136 Define if system headers don't.
15137 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15138 (w32font_encode_char): Don't declare here.
15139
15140 * w32font.c (Quniscribe, QCformat): New symbols.
15141 (syms_of_w32font): Define them.
15142 (w32font_has_char): Indicate uncertainty.
15143 (w32font_encode_char): Encode as glyph point. Make static.
15144 (recompute_cached_metrics): New function.
15145 (w32font_open_internal): Use it. Set font to use glyph points
15146 initially. Set format based on type of font.
15147 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15148 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15149 on it. Set format based on information available here.
15150 (add_font_entity_to_list): Identify backend based on opentype_only.
15151
151522008-03-02 Andreas Schwab <schwab@suse.de>
15153
15154 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15155
15156 * coding.c (decode_coding_big5, produce_chars):
15157 Fix typos in last change.
15158
151592008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15160
15161 * gnu.h: New icon.
15162
151632008-03-02 Kenichi Handa <handa@m17n.org>
15164
15165 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15166 `dos', don't decode '\r' if that is the last in the source.
15167 (decode_coding_utf_16, decode_coding_emacs_mule)
15168 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15169 (decode_coding_raw_text, decode_coding_charset): Likewise.
15170 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15171
151722008-03-01 Jason Rumney <jasonr@gnu.org>
15173
15174 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15175
151762008-03-01 Kim F. Storm <storm@cua.dk>
15177
15178 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15179
151802008-03-01 Jason Rumney <jasonr@gnu.org>
15181
15182 * w32font.c (w32font_full_name): New function.
15183 (w32font_open_internal): Use it.
15184
151852008-03-01 Kim F. Storm <storm@cua.dk>
15186
15187 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15188
151892008-03-01 Jason Rumney <jasonr@gnu.org>
15190
15191 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15192
151932008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15194
15195 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15196 xg_frame_resized when the event is for the edit widget.
15197
15198 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15199
15200 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15201 set_char_size.
15202 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15203 operations on widgets here. Just set frame size if needed.
15204 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15205 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15206 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15207 the whole frame.
15208 (xg_create_tool_bar): Move attachment of the tool bar to
15209 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15210 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15211
152122008-03-01 Jason Rumney <jasonr@gnu.org>
15213
15214 * w32fns.c (w32_msg_pump): Disable debug code.
15215
152162008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15217
15218 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15219
152202008-02-29 Chong Yidong <cyd@stupidchicken.com>
15221
15222 * xdisp.c (next_overlay_string): Don't set
15223 overlay_strings_at_end_processed_p if we're currently reading from
15224 a display string.
15225
152262008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15227
15228 * xdisp.c (get_overlay_strings_1): Fix typo.
15229
152302008-02-29 Chong Yidong <cyd@stupidchicken.com>
15231
15232 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15233
152342008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15235
15236 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15237
15238 * xdisp.c (display_mode_element): Cancel the previous change.
15239 (decode_mode_spec): Likewise.
15240 (handle_auto_composed_prop): Don't make composition if it->string
15241 is a string.
15242
152432008-02-27 Kim F. Storm <storm@cua.dk>
15244
15245 * lisp.h (GLYPH): Change type from int to struct with separate char
15246 and face_id members.
15247 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15248 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15249 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15250 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15251 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15252 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15253 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15254 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15255 handle new Lisp glyph code encoding, either an integer or a cons.
15256
15257 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15258 (GLYPH_ALIAS): Delete.
15259 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15260 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15261 (GLYPH_FROM_CHAR): Replace macro by ...
15262 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15263
15264 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15265 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15266 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15267 (GLYPH_INVALID_P): New macro.
15268 (spec_glyph_lookup_face): Update prototype.
15269
15270 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15271 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15272 new glyph code encoding.
15273 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15274 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15275
15276 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15277 Adapt to new glyph type and new glyph code encoding.
15278
15279 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15280
15281 * indent.c (current_column, current_column_1, Fmove_to_column)
15282 (compute_motion): Adapt to new glyph code encoding.
15283
15284 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15285
152862008-02-27 Chong Yidong <cyd@stupidchicken.com>
15287
15288 * process.c (wait_reading_process_output): Check for window
15289 changes caused by timers.
15290 Suggested by Johan Bockgård.
15291
152922008-02-27 Glenn Morris <rgm@gnu.org>
15293
15294 * emacs.c (USAGE1): Add `--disable-font-backend'.
15295
152962008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15297
15298 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15299 is made to the buffer.
15300
153012008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15302
15303 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15304 (face_at_string_position):
15305 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15306 (face_at_string_position):
15307 * xdisp.c (display_string, next_overlay_change):
15308 * buffer.h (overlays_at):
15309 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15310 Update callers.
15311
153122008-02-26 Chong Yidong <cyd@stupidchicken.com>
15313
15314 * editfns.c (Fformat): Doc fix.
15315
153162008-02-26 Juanma Barranquero <lekktu@gmail.com>
15317
15318 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15319 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15320 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15321
153222008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15323
15324 * buffer.c (Fbuffer_swap_text): New function.
15325 (syms_of_buffer): Defsubr it.
15326
153272008-02-25 Chong Yidong <cyd@stupidchicken.com>
15328
15329 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15330
153312008-02-25 Jason Rumney <jasonr@gnu.org>
15332
15333 * w32font.c (w32font_draw): Draw one character at a time when padding.
15334
153352008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15336
15337 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15338 Handle a nil arg. Use run_window_configuration_change_hook.
15339 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15340 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15341 Use run_window_configuration_change_hook.
15342
153432008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15344
15345 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15346 1-pixel width.
15347
153482008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15349
15350 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15351 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15352 if the glyph in the font is zero pixel with.
15353
15354 * dispextern.h (struct glyph_string): New member padding_p.
15355
15356 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15357
15358 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15359
15360 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15361
15362 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15363
15364 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15365
153662008-02-25 Jason Rumney <jasonr@gnu.org>
15367
15368 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15369
153702008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15371
15372 Allow fine-grained image-cache flushing.
15373 * dispextern.h (struct image): Add `dependencies' field.
15374 (clear_image_caches): Change arg to Lisp_Object.
15375 * image.c (make_image): Initialize `dependencies' field.
15376 (clear_image_cache): Change arg to allow fine-grained flushing.
15377 Perform the flush even if image-cache-eviction-delay is nil.
15378 (clear_image_caches): Change arg to Lisp_Object.
15379 (Fclear_image_cache): Expand meaning of the argument.
15380 (mark_image): Mark `dependencies' field.
15381 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15382 (lface_hash): Use XHASH rather than XFASTINT.
15383 (face_at_buffer_position): Fix int -> EMACS_INT position.
15384 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15385 (select_frame_for_redisplay): Remove code duplication.
15386 (redisplay_internal): Adapt arg to call to clear_image_caches.
15387
153882008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15389
15390 * s/vms4-0.h:
15391 * s/vms4-2.h:
15392 * s/vms4-4.h:
15393 * s/vms5-5.h: Remove, unused.
15394
15395 * s/irix5-2.h:
15396 * s/irix6-0.h:
15397 * s/riscos5.h:
15398 * s/mach-bsd4-3.h:
15399 * m/mips4.h: Remove files for obsolete systems.
15400
15401 * Makefile.in:
15402 * filelock.c:
15403 * unexmips.c:
15404 * m/hp9000s300.h:
15405 * m/iris4d.h:
15406 * s/aix3-1.h:
15407 * s/hpux.h:
15408 * s/msdos.h:
15409 * s/usg5-0.h:
15410 * s/usg5-2-2.h:
15411 * s/usg5-2.h:
15412 * s/usg5-3.h: Remove references to obsolete variables.
15413
15414 * s/irix5-0.h: Remove, move all the contents ...
15415 * s/irix6-5.h: ... here. Simplify.
15416 * config.in: Regenerate.
15417
154182008-02-24 Jason Rumney <jasonr@gnu.org>
15419
15420 * w32term.c (x_draw_glyph_string_background): Clear the background
15421 manually when cleartype is in use.
15422 (x_draw_glyph_string_foreground): Draw text transparently when
15423 cleartype is in use.
15424
15425 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15426 a font into it unless we have to.
15427
154282008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15429
15430 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15431 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15432
aac0c6e3
MR
154332008-02-18 Jason Rumney <jasonr@gnu.org>
15434
15435 * w32fns.c (Fw32_shell_execute): Encode parameters.
15436
154372008-02-09 Eli Zaretskii <eliz@gnu.org>
15438
15439 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15440
154412008-02-05 Juanma Barranquero <lekktu@gmail.com>
15442
15443 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15444
154452008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15446
15447 * xterm.c (x_set_offset): Don't change the gravity if
15448 CHANGE_GRAVITY is -1.
15449
154502008-02-23 Chong Yidong <cyd@stupidchicken.com>
15451
15452 * fileio.c (auto_save_error_occurred): New var.
15453 (auto_save_error): Set it.
15454 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15455 error occurred.
15456
154572008-02-23 Eli Zaretskii <eliz@gnu.org>
15458
15459 * w32.c (globals_of_w32): Add initializations for
15460 g_b_init_get_sid_sub_authority and
15461 g_b_init_get_sid_sub_authority_count.
15462
154632008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15464
15465 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15466 (font_parse_xlfd): Use them for sanity check.
15467 (Finternal_set_font_style_table): Make sure the table is bijective.
15468
15469 Consolidate the image_cache to the terminal struct.
15470 * termhooks.h (P_): Remove redundant def.
15471 (struct terminal): New field `image_cache'.
15472 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15473 of FRAME_X_IMAGE_CACHE.
15474 * xterm.h (struct x_display_info): Remove image_cache field.
15475 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15476 * w32term.h (struct w32_display_info): Remove image_cache field.
15477 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15478 * macterm.h (struct mac_display_info): Remove image_cache field.
15479 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15480 * xterm.c (x_term_init):
15481 * w32term.c (w32_term_init):
15482 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15483 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15484 Remove declarations.
15485 (clear_image_caches, mark_image_cache): New declarations.
15486 * xfaces.c (clear_face_cache):
15487 * xdisp.c (redisplay_internal): Use clear_image_caches.
15488 * image.c (clear_image_cache): Don't check that a frame is on
15489 a window-system before checking if it shares the same cache.
15490 (clear_image_caches): New function.
15491 (Fclear_image_cache): Use it.
15492 (mark_image): Move from allo.c.
15493 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15494 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15495 (mark_object): Don't call mark_image_cache for frames.
15496 (mark_terminals): Call mark_image_cache.
15497
15498 * lisp.h (Fdelete_terminal): Declare.
15499
15500 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15501 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15502 wrong_type_argument.
15503
155042008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15505
15506 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15507 malayalam.el, and tamil.el. Add sinhala.el.
15508
155092008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15510
15511 * xterm.c (x_connection_closed): Consolidate identical tests.
15512 (x_delete_terminal): Don't crash if called via x_connection_closed.
15513
155142008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15515
15516 * xdisp.c (decode_mode_spec): New arg string.
15517 (display_mode_element): Adjust for the above change.
15518
155192008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15520
15521 * callint.c (Fcall_interactively): Use AREF.
15522
155232008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15524
15525 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15526
155272008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15528
15529 * xfns.c (Fx_show_tip): Set string to " " if empty.
15530
155312008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15532
15533 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15534 with Qt.
15535
155362008-02-17 Kenichi Handa <handa@m17n.org>
15537
15538 * ftfont.c (ftfont_shape): Return Lispy number.
15539
15540 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15541 for GCs.
15542 (Finternal_set_font_selection_order): Call font_update_sort_order
15543 only when enable_font_backend is set.
15544 (realize_x_face): Set face->font_info to that of default face only
15545 when enable_font_backend is set.
15546
15547 * xdisp.c (handle_composition_prop): Set it->c to the fist
15548 character of the composed region.
15549 (fill_composite_glyph_string): Set base_face->font_info to
15550 s->font_info. Get a face for ascii from base_face->ascii_face.
15551 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15552 with a face already decided.
15553 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15554 non-negative.
15555 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15556 call font_prepare_composition unconditionally.
15557
15558 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15559
15560 * xterm.h (struct x_display_info): New member font.
15561
15562 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15563 (x_set_mouse_face_gc, x_new_font): Likewise.
15564 (x_term_init): Setup display_info->font.
15565 (x_delete_terminal): Free display_info->font.
15566
15567 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15568
15569 * ftxfont.c (ftxfont_default_fid): Delete it.
15570 (ftxfont_open): Set xfont->fid to 0.
15571 (ftxfont_end_for_frame): Clear data specific to the frame and the
15572 font-driver.
15573
15574 * xftfont.c (xftfont_default_fid): Delete it.
15575 (xftfont_open): Set xfont->fid to 0.
15576
15577 * fontset.c (FONTSET_OBJLIST): New macro.
15578 (fontset_find_font): Update font-object list of the fontset.
15579 (free_realized_fontset): New function.
15580 (free_face_fontset): Call free_realized_fontset.
15581 (Ffont_info): Call font_close_object only when enable_font_backend
15582 is set.
15583
15584 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15585 [HAVE_NTGUI]: Include w32term.h.
15586 [MAC_OS]: Include macterm.ch.
15587 (font_otf_ValueRecord): Use make_number.
15588 (font_finish_cache): Fix handling of reference count.
15589 (font_clear_cache): Update num_fonts.
15590 (font_open_entity): Update smallest_char_width and
15591 smallest_font_height of the frame.
15592 (font_close_object): Update num_fonts.
15593 (Fclear_font_cache): Fix finding the target cache data.
15594
155952008-02-16 Glenn Morris <rgm@gnu.org>
15596
15597 * fontset.c (Finternal_char_font): Fix compilation warning.
15598
155992008-02-16 Eli Zaretskii <eliz@gnu.org>
15600
15601 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15602 instead of char arrays. Enlarge the size of array passed to
15603 get_token_information.
15604
15605 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15606 warnings.
15607
156082008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15609
15610 * .gdbinit: Don't set `args', it breaks gdb --args.
15611
156122008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15613
15614 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15615 within a narrowed buffer.
15616
156172008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15618
15619 * coding.c (decode_coding_object, encode_coding_object):
15620 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15621
156222008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15623
15624 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15625 hardcoding 1.
15626 (detect_coding_system):
15627 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15628 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15629 * insdel.c (insert_from_gap):
15630 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15631 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15632 (string_to_multibyte):
15633 * character.c (chars_in_text, multibyte_chars_in_text):
15634 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15635
15636 * character.h (FETCH_STRING_CHAR_ADVANCE)
15637 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15638 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15639 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15640
15641 * casefiddle.c (casify_region): Only call after-change and composition
15642 functions on the part of the region that was changed.
15643
15644 * keyboard.c (read_avail_input):
15645 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15646
156472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15648
15649 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15650 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15651
156522008-02-11 Juanma Barranquero <lekktu@gmail.com>
15653
15654 * w32menu.c (push_submenu_start, push_submenu_end)
15655 (push_left_right_boundary, push_menu_pane, push_menu_item):
15656 * keyboard.c (read_key_sequence): Don't pass args with side effects
15657 to AREF, it fails when compiling with -DENABLE_CHECKING.
15658
156592008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15660
15661 * Makefile.in (${lispsource}international/charprop.el):
15662 Delete this target.
15663
15664 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15665 emacs-unicode-2.
15666
156672008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15668
15669 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15670
156712008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15672
15673 * frame.c (Qnoelisp): New symbol.
15674 (syms_of_frame): Initialize it.
15675 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15676 harmless Elisp code, from a strong `force' from x_connection_closed.
15677 * frame.h (Qnoelisp): Declare.
15678 * xterm.c (x_connection_closed): Pass `noelisp'.
15679
15680 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15681 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15682 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15683 rather than `int' for the type of `type'.
15684
156852008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15686
15687 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15688
15689 * Makefile.in (GNUC): Remove support for gcc-1.x.
15690
156912008-02-10 Richard Stallman <rms@gnu.org>
15692
15693 * lisp.h (ASET): Use AREF, not ASLOT.
15694
156952008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15696
15697 * lisp.h (ASET): Check bounds.
15698
156992008-02-10 Glenn Morris <rgm@gnu.org>
15700
15701 * buffer.c (mode-name): Doc fix.
15702
157032008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15704
15705 * Makefile.in:
15706 * emacs.c:
15707 * gmalloc.c:
15708 * keyboard.c:
15709 * lisp.h:
15710 * m/ibm370aix.h:
15711 * process.c:
15712 * regex.c:
15713 * s/hpux.h:
15714 * sysdep.c:
15715 * sysselect.h:
15716 * systty.h:
15717 * unexec.c:
15718 * w32term.c:
15719 * xsmfns.c:
15720 * xterm.c: Remove code that deals with obsolete variables.
15721
15722 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15723
15724 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15725 nothing else needs it anymore.
15726
157272008-02-09 Eli Zaretskii <eliz@gnu.org>
15728
15729 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15730 instead of unibyte_char_to_multibyte.
15731
157322008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15733
15734 * s/gnu-linux.h: Remove commented out code.
15735
15736 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15737
15738 * Makefile.in: Update what RMS says about using autoconf.
15739 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15740 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15741 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15742 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15743
157442008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15745
15746 * keymap.c (Fkey_description): Move side effect outside of macro call.
15747
15748 * xfaces.c (Finternal_make_lisp_face):
15749 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15750
15751 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15752 (syms_of_fontset): Use ASET.
15753
15754 * fns.c (concat): Move side effect outside of macro call.
15755 (hash_clear): Use ASET.
15756
157572008-02-08 Richard Stallman <rms@gnu.org>
15758
15759 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15760 If FORCE, and frame has a surrogate minibuffer for another frame,
15761 delete the other frame first.
15762
157632008-02-07 Timo Savola <timo.savola@iki.fi>
15764
15765 * xterm.c (x_detect_focus_change): Handle embed client message.
15766 (handle_one_xevent): Ditto.
15767 (handle_one_xevent): If embedded and we get a button press/release,
15768 request focus.
15769 (xembed_set_info, xembed_send_message): New functions.
15770 (x_make_frame_visible): Call xembed_set_info if embedded.
15771 (x_make_frame_invisible): Call xembed_set_info if embedded.
15772 (x_term_init): Initialize Xatom_XEMBED.
15773 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15774 (x_iconify_frame): Ditto.
15775
15776 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15777 (enum xembed_info, enum xembed_message, enum xembed_focus)
15778 (enum xembed_modifier, enum xembed_accelerator): New.
15779 (xembed_set_info, xembed_send_message): Declare.
15780 (FRAME_X_EMBEDDED_P): New.
15781
15782 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15783 gtk_plug_new.
15784
15785 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15786 window ID of a frame.
15787 (x_window): Reparent frame if embedded.
15788 (Fx_create_frame): Don't set border width if embedded.
15789
15790 * emacs.c (USAGE3): Add --parent-id.
15791 (standard_args): Ditto.
15792
157932008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15794
15795 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15796
157972008-02-07 Jim Meyering <meyering@redhat.com>
15798
15799 Use "do...while (0)", not "if (1)...else" in macro definitions.
15800 The latter provokes a warning from gcc about the empty else, when
15801 followed by ";". Also, without that trailing semicolon, it would
15802 silently swallow up any following statement.
15803 * syntax.h (SETUP_SYNTAX_TABLE)
15804 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15805 * buffer.h (DECODE_POSITION): Likewise.
15806 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15807 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15808 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15809 (FETCH_CHAR_ADVANCE): Likewise.
15810 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15811
158122008-02-07 Jim Meyering <meyering@redhat.com>
15813
15814 * lread.c [lint]: Don't include <sys/inode.h>.
15815
158162008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15817
15818 * xselect.c (x_handle_dnd_message):
15819 * xmenu.c (digest_single_submenu, xmenu_show):
15820 * xdisp.c (with_echo_area_buffer_unwind_data)
15821 (format_mode_line_unwind_data, unwind_format_mode_line)
15822 (display_menu_bar):
15823 * eval.c (Ffetch_bytecode):
15824 * doc.c (store_function_docstring):
15825 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15826 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15827 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15828
158292008-02-07 Kenichi Handa <handa@m17n.org>
15830
15831 * ftxfont.c (ftxfont_open): Don't set
15832 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15833
15834 * ftfont.c (ftfont_open): Fix previous change.
15835
158362008-02-06 Jason Rumney <jasonr@gnu.org>
15837
15838 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15839 Use cached metrics for ASCII characters.
15840 (w32font_open_internal): Don't set font's owning_frame.
15841 Cache metrics for ASCII characters.
15842
15843 * w32font.h (struct w32font_info): Add ascii_metrics.
15844 Remove owning_frame.
15845
158462008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15847
15848 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15849 to negative value.
15850
15851 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15852
15853 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15854
15855 * charset.c (syms_of_charset): Set QCtest and Qeq.
15856
158572008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15858
15859 * process.c (Fstart_process):
15860 * callproc.c (Fcall_process): Handle the case where
15861 Funhandled_file_name_directory returns nil.
15862
15863 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15864 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15865 * font.c (check_gstring): Use them and AREF to access the vector before
15866 we know it's really a gstring.
15867 (Ffont_shape_text): Fix typo.
46e722a9 15868 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15869
15870 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15871 Declare.
15872
15873 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15874
158752008-02-05 Jason Rumney <jasonr@gnu.org>
15876
15877 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15878 Set smallest_font_height and smallest_char_width in display info.
15879
158802008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15881
15882 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15883
158842008-02-05 Miles Bader <miles@gnu.org>
15885
15886 * xfaces.c (get_lface_attributes, merge_named_face)
15887 (lookup_named_face, lookup_derived_face, realize_named_face):
15888 Revert 2008-02-01 change by cyd@stupidchicken.com.
15889
158902008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15891
15892 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15893 fallback fonts.
15894 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15895
158962008-02-04 Jason Rumney <jasonr@gnu.org>
15897
15898 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15899 set full_name.
15900 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15901
159022008-02-03 Jason Rumney <jasonr@gnu.org>
15903
15904 * makefile.w32-in (OBJ1): Include font.o here.
15905 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15906
159072008-02-02 Jason Rumney <jasonr@gnu.org>
15908
15909 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15910
159112008-02-01 Jason Rumney <jasonr@gnu.org>
15912
15913 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15914
15915 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15916
159172008-02-01 Andreas Schwab <schwab@suse.de>
15918
15919 * Makefile.in (shortlisp, lisp): Update for rename of
15920 ../lisp/language/myanmar.el.
15921
159222008-02-01 Chong Yidong <cyd@stupidchicken.com>
15923
15924 * xfaces.c (get_lface_attributes): Delete function.
15925 (merge_named_face, lookup_named_face, lookup_derived_face)
15926 (realize_named_face): Call lface_from_face_name directly, and use
15927 the fact that merge_face_vectors does not alter its FROM argument.
15928
159292008-02-01 Jason Rumney <jasonr@gnu.org>
15930
15931 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15932 input in the default locale. Handle non-Unicode multibyte input.
15933
159342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15935
15936 * fontset.c (reorder_font_vector): Exclude nil elements from the
15937 font group. Don't try multiple fonts.
15938 (fontset_font): Adjust for the above change.
15939 (Finternal_char_font): Return nil if the found font doesn't
15940 contain the character ch.
15941
15942 * Makefile.in (lisp, shortlisp): Add cham.el.
15943
159442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15945
15946 * font.h (FONTP): Make it return 1 also for a font-object.
15947
15948 * .gdbinit (xfontset): New function.
15949
15950 * font.c (font_find_for_lface): Check if the character C is
15951 supported or not only for the first font.
15952
15953 * fontset.c (reorder_font_vector): Fix typo.
15954 (fontset_find_font): Don't add a font-spec specifying a script.
15955 Use 0 (not Qt) for the indication of empty font-group. Change the
15956 format of RFONT-DEF. Return Qt if no font in the font-group
15957 support the character.
15958 (fontset_font): Adjust for the above change. If no font was
15959 found the character, remember that.
15960 (face_for_char): Adjust for the change of RFONT-DEF.
15961 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15962 no font for the target.
15963 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15964
159652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15966
15967 * font.c (font_load_for_face): Handle the case that the font in
15968 face->lface is a string.
15969
159702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15971
15972 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15973
159742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15975
15976 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15977 Fix previous change. If the frame is not on a window system,
15978 signal an error.
15979
159802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15981
15982 * coding.c (decode_coding_object, encode_coding_object): Adjust
15983 marker positions after conversion.
15984
15985 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15986
159872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15988
15989 * font.c (font_find_for_lface): Fix the handling of the return
15990 value of font_has_char.
15991 (Ffont_shape_text): Fix previous change.
15992
15993 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15994 (fontset_ref_and_range): Delete it.
15995 (fontset_find_font): Call char_table_ref_and_range instead of
15996 FONTSET_REF_AND_RANGE.
15997 (make_fontset): Don't setup font groups of Latin here.
15998 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15999 (new_fontset_from_font): Make the specified font the default for
16000 all Latin characters.
16001
160022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16003
16004 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
16005 is on a window system before accessing the fontset of the frame.
16006
160072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16008
16009 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
16010
16011 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
16012 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
16013
16014 * font.c (Ffont_shape_text): If the font driver doesn't have a
16015 shaper function, make zero-width glyphs to have at least one-pixel
16016 width. Fix setting of `to' field of glyphs.
16017
160182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16019
16020 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
16021 glyphs.
16022
16023 * font.h (struct font_driver): Improve docstring of member `shape'.
16024
160252008-02-01 Kenichi Handa <handa@m17n.org>
16026
16027 * composite.c (syms_of_composite): Fix docstring of
16028 auto-composition-function.
16029
16030 * font.h (LGLYPH_SIZE): New macro.
16031
16032 * font.c (Ffont_fill_gstring): Stop filling when a character not
16033 supported by the font is found.
16034 (Ffont_shape_text): When a shape callback function returns nil,
16035 try at most two more times with larger gstring.
16036 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
16037
16038 * xdisp.c (handle_auto_composed_prop): Change the argument to
16039 auto-composition-function.
16040
16041 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
16042 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
16043 Lispy glyph and store it in the lgstring.
16044
16045 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
16046
16047 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
16048
160492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16050
16051 * font.c (Ffont_shape_text): Avoid unnecessary composition.
16052
16053 * fontset.c (Vfont_encoding_charset_alist): New variable.
16054 (syms_of_fontset): DEFVAR it.
16055 (reorder_font_vector, fontset_find_font): Optimize for the case of
16056 no need of reordering.
16057 (face_for_char): Map the charset property by
16058 Vfont_encoding_charset_alist.
16059
160602008-02-01 Jason Rumney <jasonr@gnu.org>
16061
16062 * w32font.c (logfonts_match): Don't check adstyle here.
16063 (font_matches_spec): Check here against physical font instead.
16064 (add_font_entity_to_list): Avoid some substitutions.
16065
16066 * font.c (font_parse_fcname): Default weight and slant to normal.
16067 (font_score): Prefer normal fonts if weight or slant unspecified.
16068 (font_score) [WINDOWSNT]: Scale weight difference down to closer
16069 match freetype scores.
16070
160712008-02-01 Jason Rumney <jasonr@gnu.org>
16072
16073 * w32font.c (w32font_text_extents): Don't use the frame stored in the
16074 font, as it may have been deleted.
16075 (w32_enumfont_pattern_entity): Map generic family to adstyle using
16076 most common hyphenless variation.
16077 (logfonts_match): Check generic family.
16078 (font_matches_spec): Don't check generic family here.
16079 (fill_in_logfont): Set generic family based on adstyle.
16080
16081 * w32font.h (w32font_get_cache): Update declaration.
16082
160832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16084
16085 * ftfont.c (ftfont_get_cache): Adjust the argument type.
16086
16087 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
16088 If none of the new drivers are available, call font_update_drivers
16089 with the old drivers.
16090
16091 * w32font.c (w32font_get_cache): Adjust the argument type.
16092
16093 * xfont.c (xfont_get_cache): Adjust the argument type.
16094
16095 * font.h (struct font_driver): Change argument type of get_cache.
16096
16097 * xftfont.c (xftfont_start_for_frame): Delete prototype.
16098
16099 * font.c (Ffont_get): Fix arguments to Fassoc.
16100 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
16101 (font_clear_cache): New function.
16102 (font_list_entities, font_matching_entity): Use font_get_cache.
16103 (font_update_drivers): Call font_clear_cache when finishing a driver.
16104
16105 * fontset.c (fontset_find_font): Fix previous change.
16106
161072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16108
16109 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
16110 dpyinfo->font_table.
16111 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16112 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16113
16114 * font.c (font_at): Handle the case that the arg C is negative.
16115 Handle the unibyte case.
16116 (Ffont_at): Call font_at with the arg C -1.
16117
16118 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16119 the position here, and call font_at with the arg C -1.
16120 Don't check the range of the existing composition at the point.
16121
161222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16123
16124 * fontset.c (fontset_add): New args charset_id and family.
16125 Change caller.
16126 (load_font_get_repertory, fontset_find_font): Assume that
16127 font_spec is always a font-spec object.
16128 (Fset_fontset_font): Always store a font-spec object in a fontset.
16129
16130 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16131 instead of get_property_and_range.
16132
161332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16134
16135 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16136 (xftfont_open): Don't keep locking face.
16137 (xftfont_close): Don't unlock face.
16138 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16139
16140 * fontset.c (fontset_find_font): Don't prefer a font of
16141 supplementary charset.
16142
161432008-02-01 Kenichi Handa <handa@m17n.org>
16144
16145 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16146 script, langsys_tag to langsys, new member script.
16147 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16148 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16149 listing to the script specified in that property. Fix arg to
16150 OTF_check_features.
16151
161522008-02-01 Jason Rumney <jasonr@gnu.org>
16153
16154 * w32font.h: New file.
16155
16156 * w32font.c: Include it.
16157 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16158 (w32font_open): Set owning_frame.
16159 (w32font_text_extents): Use owning_frame.
16160 (struct font_callback_data): Add opentype_only field.
16161 (add_font_entity_to_list): Use it to filter fonts.
16162 Don't check against full name.
16163 (w32font_list_internal): New function.
16164 (w32font_list): Use it.
16165 (w32font_match_internal): New function.
16166 (w32font_match): Use it.
16167 (w32font_open_internal): New function.
16168 (w32font_open): Use it.
16169 (w32font_get_cache, w32font_close, w32font_has_char)
16170 (w32font_encode_char, w32font_text_extents, w32font_draw):
16171 Make non-static.
16172
16173 * makefile.w32-in (w32font.o): Depend on w32font.h.
16174
161752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16176
16177 * charset.c (Fdefine_charset_internal): Record a supplementary
16178 charset at the tail of Vcharset_order_list.
16179
16180 * font.c (Ffont_shape_text): Fix the return value.
16181
16182 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16183
16184 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16185
161862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16187
16188 * ftfont.c (struct OpenTypeSpec): New struct.
16189 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16190 (ftfont_get_open_type_spec): New function.
16191 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16192
16193 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16194
161952008-02-01 Jason Rumney <jasonr@gnu.org>
16196
16197 * w32font.c (add_font_entity_to_list): Compare only the beginning
16198 of full name.
16199
162002008-02-01 Kenichi Handa <handa@m17n.org>
16201
16202 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16203 Never return HANDLED_RECOMPUTE_PROPS.
16204
162052008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * font.c (font_gstring_produce): Delete it.
16208
16209 * composite.h (COMPOSITION_METHOD):
16210 Handle COMPOSITION_WITH_GLYPH_STRING.
16211
162122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16213
16214 * xfont.c (Qx): Delete.
16215 (syms_of_xfont): Don't initialize Qx.
16216
16217 * composite.h (enum composition_method):
16218 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16219
162202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16221
16222 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16223 (choose_face_font): Accept new form of font-spec.
16224
16225 * frame.h (font_driver_list): Declare it unconditionally.
16226 (struct frame): Define members font_driver_list and font_data_list
16227 unconditionally.
16228
16229 * fontset.c: Include "font.h" unconditionally.
16230 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16231 (Fset_fontset_font): Accept a font-spec object.
16232
16233 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16234 PIXEL_SIZE part a wild card.
16235
16236 * dispextern.h (struct glyph_string): Define members clip and
16237 num_clips unconditionally.
16238 (struct face): Define members font_info and extra unconditionally.
16239
16240 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16241 ftfont_info only when HAVE_LIBOTF is defined.
16242
162432008-02-01 Andreas Schwab <schwab@suse.de>
16244
16245 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16246 and end.
16247
162482008-02-01 Jason Rumney <jasonr@gnu.org>
16249
16250 * w32font.c (w32font_driver): Add new fields.
16251
162522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16253
16254 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16255 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16256 (LIBES): Add @M17N_FLT_CFLAGS@.
16257
16258 * composite.c (compose_text): Don't treat the new style
16259 composition specially.
16260
16261 * emacs.c (main): Call syms_of_font unconditionally.
16262
16263 * font.h (FONT_ENTITY_NOT_LOADABLE)
16264 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16265 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16266 (struct font_driver): New member shape.
16267 (font_registry_charsets): Extern it.
16268 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16269 (font_otf_capability, font_drive_otf): Delete their externs.
16270
16271 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16272 (font_charset_alist, font_registry_charsets): Move from xfont.c
16273 and rename.
16274 (font_prop_validate_otf): New function.
16275 (font_property_table): Register it for QCotf.
16276 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16277 (font_drive_otf): Delete.
16278 (font_prepare_composition): New arg F. Adjust for the change of
16279 lispy gstring.
16280 (font_find_for_lface): New arg C.
16281 (font_load_for_face): Adjust for the change of font_find_for_lface.
16282 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16283 lispy gstring.
16284 (Ffont_shape_text): New function.
16285 (Fopen_font): If the font size is not given, use 12-pixel.
16286 (Ffont_at): New arg STRING.
16287 (syms_of_font): Initalize font_charset_alist.
16288 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16289 conditionally.
16290
16291 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16292 fonts of the same font-spec. Change the format of RFONT-DEF.
16293 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16294 Adjust for the change of RFONT-DEF.
16295 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16296
16297 * ftfont.h: New file.
16298
16299 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16300 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16301 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16302 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16303 font_otf_capability and font_drive_otf, set ftfont_shape.
16304 (ftfont_list): Adjust for the change of :otf property value.
16305 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16306 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16307 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16308 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16309 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16310 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16311
16312 * w32term.c (x_draw_composite_glyph_string_foreground):
16313 Adjust for the change of lispy gstring.
16314
16315 * xdisp.c (handle_composition_prop): Adjust for the change of
16316 lispy gstring. Call a function for auto-composition with the
16317 third arg it->window.
16318 (fill_composite_glyph_string): Adjust for the change of lispy string.
16319 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16320
16321 * xfaces.c (set_font_frame_param): Adjust for the change of
16322 font_find_for_lface.
16323
16324 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16325 (xfont_registry_charsets): Likewise. Change caller.
16326 (syms_of_xfont): Don't handle x_font_charset_alist.
16327
16328 * xftfont.c: Include "ftfont.h".
16329 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16330 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16331 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16332 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16333 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16334 Set xftfont_driver.shape to xftfont_shape.
16335
16336 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16337 the change of lispy gstring.
16338
163392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16340
16341 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16342
163432008-02-01 Jason Rumney <jasonr@gnu.org>
16344
16345 * w32font.c (w32font_draw): Fill background manually.
16346
163472008-02-01 Jason Rumney <jasonr@gnu.org>
16348
16349 * font.c (Qfontp): Remove unused symbol.
16350 (QCantialias): New symbol.
16351 (syms_of_font): Define it.
16352 (font_property_table): Set a validator for QCantialias.
16353
16354 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16355 Define if not already.
16356 (QCfamily): Share with xfaces.c.
16357 (Qstandard, Qsubpixel, Qnatural): New symbols.
16358 (syms_of_w32font): Define them. Don't define QCfamily here.
16359 (w32_antialias_type, lispy_antialias_type): New functions.
16360 (w32_enumfont_pattern_entity): New arg requested_font.
16361 Set antialias parameter if non-default was requested.
16362 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16363
163642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16365
16366 * lread.c (read1): Undo the previous change.
16367
163682008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16369
16370 * frame.c (Fdelete_frame): Call font_update_drivers only when
16371 USE_FONT_BACKEND is defined.
16372
163732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16374
16375 * font.h (struct font_bitmap): New member bits_per_pixel.
16376 (struct font_driver): New members start_for_frame and end_for_frame.
16377 (struct font_data_list): New struct.
16378 (font_put_frame_data, font_get_frame_data): Extern them.
16379
16380 * frame.h (struct frame): New member font_data_list.
16381
16382 * font.c (font_update_drivers): Call driver->start_for_frame and
16383 driver->end_for_frame at proper timings.
16384 (font_put_frame_data, font_get_frame_data): New functions.
16385 (Ffont_spec): Add usage in the docstring.
16386
16387 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16388 (Fdelete_frame): Call font_update_drivers.
16389
16390 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16391 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16392 (xftfont_get_xft_draw): New function.
16393 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16394 (xftfont_end_for_frame): New function.
16395 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16396
16397 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16398 Change argument. Cache GCs in the per-frame data.
16399 (struct ftxfont_frame_data): New struct.
16400 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16401 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16402 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16403 (ftxfont_end_for_frame): New function.
16404 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16405
16406 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16407
164082008-02-01 Kenichi Handa <handa@m17n.org>
16409
16410 * xselect.c (Vselection_coding_system)
16411 (Vnext_selection_coding_system): Delete them.
16412 (syms_of_xselect): Don't declare selection-coding-system and
16413 next-selection-coding-system. They are declared in select.el.
16414
164152008-02-01 Jason Rumney <jasonr@gnu.org>
16416
16417 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16418
16419 * w32fns.c: Include imm.h.
16420 (get_composition_string_fn, get_ime_context_fn): New optional
16421 system functions.
16422 (globals_of_w32fns): Load them from imm32.dll.
16423 (ignore_ime_char): New flag.
16424 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16425 WM_IME_ENDCOMPOSITION messages.
16426
16427 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16428 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16429
164302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16431
16432 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16433 (READCHAR_REPORT_MULTIBYTE): New macro.
16434 (readchar): New 2nd arg MULTIBYTE.
16435 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16436 Make symbol's name multibyte according to the multibyteness of the
16437 source.
16438
164392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16440
16441 * xfaces.c (face_for_overlay_string): Call lookup_face with
16442 correct arguments (fix of synching with the trunk).
16443
164442008-02-01 Kenichi Handa <handa@m17n.org>
16445
16446 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16447 (font_prop_validate_non_neg, font_prop_validate_spacing):
16448 Delete argument prop_index.
16449 (font_property_table): Change arguments to validater. Change Callers.
16450 (font_lispy_object): Delete.
16451 (font_at): Use font_find_object instead fo font_lispy_object.
16452
164532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16454
16455 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16456 and file names.
16457
164582008-02-01 Jason Rumney <jasonr@gnu.org>
16459
16460 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16461 (font_matches_spec): Remove debug output.
16462 (add_font_entity_to_list): Avoid using substituted fonts.
16463
164642008-02-01 Jason Rumney <jasonr@gnu.org>
16465
16466 * doc.c (Fsnarf_documentation):
16467 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16468
164692008-02-01 Miles Bader <miles@gnu.org>
16470
16471 * dispextern.h (struct glyph_row): Only define "clip" field if
16472 HAVE_WINDOW_SYSTEM is defined.
16473
164742008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16475
16476 Fix up multi-tty merge.
16477
16478 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16479 and indentation.
16480
16481 * xfaces.c (free_realized_face, clear_face_gcs):
16482 Include font_done_for_face in the input_blocked section, just in case.
16483
16484 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16485 (get_char_face_and_encoding): Undo last change and remove the *other*
16486 duplicate definition (i.e. keep the one that's better scoped and that
16487 includes code for the font-backend).
16488
16489 * terminal.c (create_terminal): Default keyboard_coding to
16490 `no-conversion' and terminal_coding to `undecided'.
16491
16492 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16493
16494 * fontset.c (free_realized_fontsets): Check that the table entry does
16495 contain a fontset before trying to compare it to `base'.
16496
16497 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16498 syms_of_charset, and syms_of_coding earlier because init_window_once
16499 now needs Vcoding_system_hash_table to be setup.
16500
16501 * coding.h (default_buffer_file_coding): Remove.
16502
16503 * coding.c (default_buffer_file_coding): Remove.
16504 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16505 than ->symbol, and use the terminal-local coding system.
16506 (syms_of_coding): Don't setup the coding-systems that are not
16507 terminal-local.
16508 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16509
16510 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16511 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16512
16513 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16514 in chartab.c and were re-added here by mistake.
16515 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16516
16517 * doc.c (Fsnarf_documentation):
16518 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16519 src to etc.
16520
16521 * ChangeLog.10: Add mistakenly removed entry.
16522
165232008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16524
16525 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16526
165272008-02-01 Miles Bader <miles@gnu.org>
16528
16529 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16530 Add extra args to FACE_FOR_CHAR.
16531
165322008-02-01 Kenichi Handa <handa@m17n.org>
16533
16534 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16535 in sequence.
16536
16537 * chartab.c (map_sub_char_table, map_char_table): If the range
16538 contains just one character, call the function with that character
16539 even if the depth is not 3.
16540
165412008-02-01 Jason Rumney <jasonr@gnu.org>
16542
16543 * w32font.c (w32font_text_extents): Calculate metrics for the
16544 whole string.
16545
165462008-02-01 Jason Rumney <jasonr@gnu.org>
16547
16548 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16549
165502008-02-01 Jason Rumney <jasonr@gnu.org>
16551
16552 * w32term.c (x_set_glyph_string_clipping): Use
16553 get_glyph_string_clip_rects.
16554 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16555 Adjust for the change of struct glyph_string.
16556
16557 * w32font.c (w32font_draw): Do clipping here.
16558
165592008-02-01 Kenichi Handa <handa@m17n.org>
16560
16561 * xftfont.c (xftfont_draw): Adjust for the change of struct
16562 glyph_string.
16563
16564 * xterm.c (x_set_glyph_string_clipping): Use
16565 get_glyph_string_clip_rects.
16566 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16567 Adjust for the change of struct glyph_string.
16568
16569 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16570 the resulting clip(s}.
16571 (expose_overlaps): Add arg r. Change callers. Set it to
16572 row->clip temporarily.
16573 (expose_window): Redraw rows overlapping the exposed area.
16574
16575 * dispextern.h (struct glyph_row): New member clip.
16576 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16577 clip_height, new member clip, and num_clips.
16578
165792008-02-01 Kenichi Handa <handa@m17n.org>
16580
16581 * data.c (Fchar_or_string_p): Fix docstring.
16582
165832008-02-01 Kenichi Handa <handa@m17n.org>
16584
16585 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16586 create a temporary XftDraw object.
16587
165882008-02-01 Kenichi Handa <handa@m17n.org>
16589
16590 * font.c (Ffontp): Fix docstring.
16591
16592 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16593 strong evidence of ISO-2022.
16594
165952008-02-01 Kenichi Handa <handa@m17n.org>
16596
16597 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16598 SYNTAX_ENTRY_FOLLOW_PARENT.
16599
166002008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16601
16602 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16603 its type.
16604 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16605 Update to the new type of weak_hash_tables and next_weak.
16606
16607 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16608 a plain C pointer to Lisp_Hash_Table.
16609
16610 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16611 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16612 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16613 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16614 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16615 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16616 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16617 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16618 (GC_EQ): Remove since they've been identical to their non-GC_
16619 alter-egos ever since the markbit was eradicated.
16620
16621 * alloc.c:
16622 * buffer.c:
16623 * buffer.h:
16624 * data.c:
16625 * fileio.c:
16626 * filelock.c:
16627 * fns.c:
16628 * frame.h:
16629 * lisp.h:
16630 * macterm.c:
16631 * print.c:
16632 * process.c:
16633 * w32fns.c:
16634 * w32menu.c:
16635 * w32term.c:
16636 * xfns.c:
16637 * xmenu.c:
16638 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16639
166402008-02-01 Kenichi Handa <handa@m17n.org>
16641
16642 * chartab.c (map_sub_char_table): Make it work for the top-level
16643 char-table. Fix handling of parent char-table.
16644 (map_char_table): Adjust for the above change.
16645
166462008-02-01 Jason Rumney <jasonr@gnu.org>
16647
16648 * w32font.c (Qgdi): Rename from Qw32.
16649
166502008-02-01 Jason Rumney <jasonr@gnu.org>
16651
16652 * w32bdf.c (get_quoted_string): Make function static.
16653
166542008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16657 bigger ascent and descent than those of the font, use them as
16658 font's ascent and descent.
16659
166602008-02-01 Kenichi Handa <handa@m17n.org>
16661
16662 * Makefile.in (${lispsource}international/charprop.el): Move this
16663 target within "#ifdef HAVE_UNIDATA" and "#endif".
16664
166652008-02-01 Kenichi Handa <handa@m17n.org>
16666
16667 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16668 (shortlisp): Add ../lisp/language/tai-viet.el.
16669
166702008-02-01 Ulrich Mueller <ulm@gentoo.org>
16671
16672 * Makefile.in (${lispsource}international/charprop.el): Depend on
16673 temacs${EXEEXT}.
16674
166752008-02-01 Jason Rumney <jasonr@gnu.org>
16676
16677 * w32font.c (w32font_close): Delete the GDI font object.
16678
16679 * w32menu.c: Include character.h.
16680
16681 * w32proc.c: Likewise.
16682
16683 * w32select.c: Likewise.
16684
16685 * makefile.w32-in (w32proc.o): Depend on character.h.
16686
166872008-02-01 Jason Rumney <jasonr@gnu.org>
16688
16689 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16690
16691 * w32menu.c (syms_of_w32menu): Likewise.
16692
16693 * w32proc.c (syms_of_ntproc): Likewise.
16694
16695 * w32select.c (syms_of_w32select): Likewise.
16696
16697 * w32term.c (syms_of_w32term): Likewise.
16698
166992008-02-01 Jason Rumney <jasonr@gnu.org>
16700
16701 * w32font.c (w32font_draw): Delete brush after using it.
16702
167032008-02-01 Jason Rumney <jasonr@gnu.org>
16704
16705 * w32font.c (w32font_open): Don't set font_idx.
16706 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16707 to font settings.
16708 (w32font_draw): Fill background explicitly.
16709
167102008-02-01 Jason Rumney <jasonr@gnu.org>
16711
16712 * w32term.c (w32_initialize): Don't call w32font_initialize.
16713
16714 * w32font.c (w32font_info): Remove subranges.
16715 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16716 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16717 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16718 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16719 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16720 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16721 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16722 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16723 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16724 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16725 New symbols.
16726 (font_callback_data): New struct.
16727 (w32font_list, w32font_match): Use it.
16728 (w32font_open): Don't populate subranges.
16729 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16730 (w32font_encode_char): Always return unicode code-point as-is.
16731 (w32font_text_extents): Supply a transformation matrix to
16732 GetGlyphOutline. Never look up by glyph index. Avoid looping
16733 twice. Use unicode version of GetTexExtentPoint32 instead of
16734 glyph index version.
16735 (set_fonts_frame): Remove.
16736 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16737 set frame parameter. Use backward compatible fake foundries.
16738 Save generic family in extra slot under QCfamily. Make width slot
16739 constant. Save QCspacing value. Save list of scripts instead of
16740 binary subranges.
16741 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16742 (add_font_entity_to_list): Use font_callback_data struct. Filter
16743 unwanted fonts.
16744 (add_one_font_entity_to_list): Use font_callback_data struct.
16745 (w32_registry): Default to iso10646_1.
16746 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16747 string font registries. Don't fill in font name if it is a generic
16748 family name, fill family instead. Use spacing, family and script
16749 extra info to fill pitch, family and charset fields.
16750 (list_all_matching_fonts): Use font_callback_data struct.
16751 (unicode_range_for_char): Remove.
16752 (font_supported_scripts): New function.
16753 (w32font_initialize): Remove.
16754 (syms_of_w32font): Update which symbols are defined.
16755
167562008-02-01 Jason Rumney <jasonr@gnu.org>
16757
16758 * font.c (font_pixel_size): Reverse assq_no_quit args.
16759
16760 * w32term.h (FONT_WIDTH): Report max width, not average.
16761 (FONT_MAX_WIDTH): Remove.
16762 (FONT_AVG_WIDTH): New macro.
16763
16764 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16765 redefinition of FONT_WIDTH.
16766
16767 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16768 (w32_cache_char_metrics): Use FONT_WIDTH.
16769
16770 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16771
167722008-02-01 Jason Rumney <jasonr@gnu.org>
16773
16774 * w32font.c (w32font_open): Make lfHeight negative.
16775
16776 * w32fns.c (x_default_font_parameter): Use new style font name.
16777 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16778
167792008-02-01 Jason Rumney <jasonr@gnu.org>
16780
16781 * w32font.c (QCsubranges): New symbol.
16782 (w32font_open, w32font_has_char): Get subranges from subproperty
16783 of extra.
16784 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16785 (syms_of_w32font): Define :subranges symbol.
16786
16787 * font.c (font_put_extra): Expose externally.
16788
16789 * font.h (font_put_extra): Move declaration from font.c.
16790
16791 * font.c (Ffont_get): Use font driver to determine otf capability.
16792 (adjust_anchor): Check if driver defines anchor_point before using.
16793
16794 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16795 (w32font_draw): Use options.
16796 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16797 Fix detection of truetype fonts.
16798 (registry_to_w32_charset): Handle charsets other than iso8859-1
16799 expressed as lisp symbols.
16800 (w32_registry): Express charset as lisp symbol.
16801 (fill_in_logfont): Reverse pixel and point height logic.
16802 Don't set width here. Set quality to default.
16803
16804 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16805 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16806
16807 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16808 Remove redundant loop and allocation.
16809
16810 * makefile.w32-in (font.o, w32font.o): New objects.
16811 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16812 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16813
16814 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16815 STORE_XCHARB a valid l-value.
16816
16817 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16818 calculations for non-Truetype fonts.
16819 (x_draw_glyph_string): Sync with xterm.c.
16820 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16821 Remove redundant code.
16822 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16823
16824 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16825 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16826
16827 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16828 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16829
16830 * w32font.c: New file for w32 font backend.
16831
168322008-02-01 Kenichi Handa <handa@m17n.org>
16833
16834 * term.c: Don't include "buffer.h" twice.
16835
168362008-02-01 Kenichi Handa <handa@m17n.org>
16837
16838 * character.c (Funibyte_string): New function.
16839 (syms_of_character): Defsubr it.
16840
168412008-02-01 Jason Rumney <jasonr@gnu.org>
16842
16843 * w32term.c [USE_FONT_BACKEND]:
16844 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16845 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16846 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16847 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16848 (x_free_frame_resources): Sync with xterm.c.
16849
168502008-02-01 Andreas Schwab <schwab@suse.de>
16851
16852 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16853 char-table size.
16854
168552008-02-01 Kenichi Handa <handa@m17n.org>
16856
16857 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16858
168592008-02-01 Kenichi Handa <handa@m17n.org>
16860
16861 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16862 font_otf_gpos, add font_drive_otf.
16863
16864 * fontset.c (fontset_find_font): Pay attention to font size
16865 specified for a font.
16866 (reorder_font_vector): Check contents of font_def.
16867
16868 * font.c (struct otf_list): Delete it.
16869 (otf_list): Make it a lisp variable.
16870 (otf_open): Use lispy otf_list.
16871 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16872 (check_otf_features): New function.
16873 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16874 New functions.
16875 (font_drive_otf): New function merging font_otf_gsub and
16876 font_otf_gpos.
16877 (font_open_for_lface): New arg spec. Change argument order.
16878 (font_load_for_face): Adjust for the change of font_open_for_lface.
16879 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16880 Ffont_otf_gpos.
16881 (syms_of_font): Staticpro otf_list. Delete defsubr of
16882 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16883
16884 * xfaces.c (set_font_frame_param): Adjust for the change of
16885 font_open_for_lface.
16886
16887 * font.h (font_open_for_lface): Adjust prototype.
16888 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16889 member otf_drive.
16890 (font_otf_gsub, font_otf_gpos): Delete externs.
16891 (font_drive_otf): Extern it.
16892
168932008-02-01 Kenichi Handa <handa@m17n.org>
16894
16895 * font.c (font_at): If the window W is not on a window system,
16896 return Qnil.
16897
16898 * coding.c (produce_chars, encode_coding): Don't call
16899 insert_from_gap if no characters to produce.
16900
169012008-02-01 Kenichi Handa <handa@m17n.org>
16902
16903 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16904 Fclear_face_cache.
16905
16906 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16907
169082008-02-01 Miles Bader <miles@gnu.org>
16909
16910 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16911 Parse "--disable-font-backend" option.
16912 (standard_args): Add "--disable-font-backend" option.
16913
169142008-02-01 Kenichi Handa <handa@m17n.org>
16915
16916 * fontset.c (fontset_find_font): New function.
16917 (fontset_font): Use fontset_find_font.
16918 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16919 Register the specified font for all Latin characters.
16920 (new_fontset_from_font): Register the specified font for all Latin
16921 characters.
16922 (dump_fontset): For a realized fontset, include the base fontset
16923 name in the returned vector.
16924
169252008-02-01 Kenichi Handa <handa@m17n.org>
16926
16927 * character.h (CHAR_STRING): Cast C to unsigned on calling
16928 char_string.
16929
16930 * character.c (char_string): Type of arg C changed to unsigned.
16931 Signal an error if C is an invalid character code.
16932
16933 * editfns.c (general_insert_function, Fchar_to_string):
16934 Use CHARACTERP, not INTEGERP.
16935
169362008-02-01 Kenichi Handa <handa@m17n.org>
16937
16938 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16939 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16940
16941 * regex.c (analyse_first): Fix for multibyte characters in "case
16942 charset:" and "case categoryspec:".
16943
169442008-02-01 Andreas Schwab <schwab@suse.de>
16945
16946 * Makefile.in (LIBES): Move standard libraries to the end.
16947
169482008-02-01 Kenichi Handa <handa@m17n.org>
16949
16950 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16951 nonzero, don't shrink the buffer nextb.
16952
16953 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16954
16955 * coding.c (coding_alloc_by_making_gap): New arg offset.
16956 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16957 offset.
16958 (decode_coding_iso_2022): Update coding->safe_charsets.
16959 (decode_coding_gap): Temporarily set
16960 current_buffer->text->inhibit_shrinking to 1.
16961
169622008-02-01 Kenichi Handa <handa@m17n.org>
16963
16964 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16965 indexing into elements of s->cmp and s->char2b.
16966
169672008-02-01 Juanma Barranquero <lekktu@gmail.com>
16968
16969 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16970
169712008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16974 target_multibyte instead of multibyte.
16975 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16976 (bcmp_translate): Change the argument name from multibyte to
16977 target_multibyte.
16978
169792008-02-01 Kenichi Handa <handa@m17n.org>
16980
16981 These changes are to compile a regexp into a pattern that can be
16982 used both for multibyte and unibyte targets.
16983
16984 * Makefile.in (search.o): Depend on charset.h.
16985
16986 * character.c (multibyte_char_to_unibyte_safe): New function.
16987
16988 * search.c: Include "charset.h".
16989 (compile_pattern_1): Delete argument multibyte. Don't set
16990 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16991 (compile_pattern): Don't compare cp->buf.target_multibyte.
16992 Compare cp->buf.charset_unibyte.
16993 (compile_pattern): Set cp->buf.target_multibyte.
16994
16995 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16996
16997 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16998
16999 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
17000 multibyte. Change callers.
17001 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
17002 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
17003 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
17004 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
17005 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
17006 (regex_compile): Make the compiled pattern usable both for
17007 multibyte and unibyte targets.
17008 (analyse_first): Make the fastmap usable both for multibyte and
17009 unibyte targets.
17010 (TRANSLATE_VIA_MULTIBYTE): Delete.
17011 (re_match_2_internal): Pay attention to the case that the
17012 multibyteness of bufp and target may be different.
17013
170142008-02-01 Kenichi Handa <handa@m17n.org>
17015
17016 * xdisp.c (x_produce_glyphs): When a font is not found, make the
17017 empty box occupy at least one column width.
17018
170192008-02-01 Miles Bader <miles@gnu.org>
17020
17021 * Makefile.in: Remove redundant HAVE_XFT clause.
17022
170232008-02-01 Kenichi Handa <handa@m17n.org>
17024
17025 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
17026
170272008-02-01 Kenichi Handa <handa@m17n.org>
17028
17029 * fontset.c (Finternal_char_font): Fix for the case of POSITION
17030 being nil.
17031
170322008-02-01 Kenichi Handa <handa@m17n.org>
17033
17034 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
17035
170362008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
17039
170402008-02-01 Kenichi Handa <handa@m17n.org>
17041
17042 * search.c (simple_search): Fix previous change.
17043
170442008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * xftfont.c (ftfont_font_format): Extern declaration.
17047
17048 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
17049
17050 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
17051 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
17052
17053 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
17054 (ftfont_font_format): Fix previous change.
17055
17056 * font.h (Ffont_xlfd_name): EXFUN it.
17057
17058 * font.c (font_parse_xlfd): Fix the array size of `f'.
17059 (register_font_driver): Use EQ to compare driver->type.
17060
17061 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
17062 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
17063 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
17064
170652008-02-01 Kenichi Handa <handa@m17n.org>
17066
17067 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
17068 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * xfont.c (xfont_open): Set font->format.
17073
17074 * xftfont.c (xftfont_open): Set font->format.
17075
17076 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
17077 (ftfont_list): Include FC_FONTFORMAT in FcObject.
17078 (ftfont_open): Set font->format.
17079 (ftfont_font_format): New function.
17080
17081 * font.h (struct font): New member format.
17082
17083 * font.c (Qopentype): New variable.
17084 (syms_of_font): Defsym it.
17085 (Fquery_font): Change the format of the last element of the return
17086 value.
17087
170882008-02-01 Kenichi Handa <handa@m17n.org>
17089
17090 * xfns.c (xic_create_xfontset): Try the default fontset name as a
17091 last resort.
17092
170932008-02-01 Kenichi Handa <handa@m17n.org>
17094
17095 * coding.c (detect_coding_charset): Fix detection of multi-byte
17096 charset.
17097
170982008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
17099
17100 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
17101
171022008-02-01 Kenichi Handa <handa@m17n.org>
17103
17104 * xdisp.c (get_next_display_element): Set it->face_id for the
17105 first component of a composition.
17106 (x_produce_glyphs): Check if the font is changed or not for composition.
17107
171082008-02-01 Kenichi Handa <handa@m17n.org>
17109
17110 * fontset.c (Qlatin): New variable.
17111 (syms_of_fontset): Define it as a lisp symbol.
17112 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17113
171142008-02-01 Kenichi Handa <handa@m17n.org>
17115
17116 * font.c (font_unparse_fcname): Pay attention to the case that
17117 some of font property is a null string.
17118
171192008-02-01 Kenichi Handa <handa@m17n.org>
17120
17121 * term.c: Include "composite.h".
17122 (encode_terminal_code): Output all components of composition.
17123 Check the size of encode_terminal_src.
17124 (produce_glyphs): For composition, call produce_composite_glyph.
17125 (append_composite_glyph, produce_composite_glyph): New functions.
17126
17127 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17128 is not found, get font_info from the current ascii face.
17129
171302008-02-01 Kenichi Handa <handa@m17n.org>
17131
17132 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17133 buffer-file-name to Qnil before calling insert_from_buffer.
17134
17135 * font.c (font_unparse_fcname): Pay attention to the case that
17136 foundry is a null string.
17137
171382008-02-01 Kenichi Handa <handa@m17n.org>
17139
17140 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17141
17142 * font.c (Qunicode_sip): New variable.
17143 (syms_of_font): Declare it as a Lisp symbol.
17144
17145 * font.h (Qunicode_sip): Extern it.
17146
171472008-02-01 Kenichi Handa <handa@m17n.org>
17148
17149 * composite.c (get_composition_id): Pay attention to TAB component.
17150
17151 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17152 TAB. Adjust for the change of s->char2b which always points to
17153 the first element of allocated memory.
17154
17155 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17156
17157 * xdisp.c (handle_composition_prop): Set it->c to the first
17158 non-TAB component.
17159 (fill_composite_glyph_string): Change argument.
17160 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17161 (x_produce_glyphs): Fix handling of left/right padding.
17162
171632008-02-01 Kenichi Handa <handa@m17n.org>
17164
17165 * coding.c (detect_coding_system): Fix for handling off
17166 inhibit_iso_escape_detection. Fix for the case that no coding
17167 system is defined for a specific coding category.
17168
171692008-02-01 Kenichi Handa <handa@m17n.org>
17170
17171 * font.c (font_matching_entity): Delete unused local var.
17172
17173 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17174 opening a font.
17175
17176 * fileio.c (Finsert_file_contents): On recovering a file, assume
17177 Unix-like eol.
17178 (choose_write_coding_system): On auto-saving a file, force
17179 Unix-like eol.
17180
17181 * coding.c (setup_coding_system): Fix setting of
17182 coding->common_flags based on eol_type.
17183 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17184 inherit from it.
17185
171862008-02-01 Kenichi Handa <handa@m17n.org>
17187
17188 * alloc.c (NSTATICS): Increas to 0x600.
17189
171902008-02-01 Kenichi Handa <handa@m17n.org>
17191
17192 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17193 (ftfont_list): Don't check :name property.
17194 (ftfont_match): New function.
17195 (ftfont_pattern_entity): If the pattern doesn't contain
17196 FC_SPACING, don't assume FC_MONO.
17197
17198 * font.h (struct font_driver): New member `match'.
17199 (font_update_drivers): Adjust prototype.
17200
17201 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17202 property of FONT.
17203 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17204 them unconditionally.
17205 (font_matching_entity): New function.
17206 (font_open_by_name): Try font_matching_entity if exact match is
17207 not found.
17208 (font_update_drivers): Delete the arg FONT. Return a list of
17209 actually used backends. Don't free faces, font caches here.
17210 Don't store data in frame parameters. Don't call x_set_font.
17211 (Ffont_spec): Store :name property as is.
17212 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17213 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17214 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17215 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17216 Call font->driver->otf_gsub instead of font_otf_gsub.
17217
17218 * frame.c (x_set_font_backend): Do more works that were done in
17219 font_update_drivers before.
17220
17221 * xfont.c (xfont_match): New function.
17222 (xfont_driver): Set xfont_driver.match to xfont_match.
17223 (xfont_draw): Set font in GC if necessary.
17224
17225 * ftxfont.c (ftxfont_match): New function.
17226 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17227
17228 * xftfont.c (xftfont_match): New function.
17229 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17230
172312008-02-01 Kenichi Handa <handa@m17n.org>
17232
17233 * font.h (struct font): New member scalable.
17234 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17235 (font_otf_gsub): Adjust prototype.
17236
17237 * font.c (font_otf_capability): Fix handling of the default langsys.
17238 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17239 Check the contents of SPEC.
17240 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17241 (check_gstring): New function.
17242 (REPLACEMENT_CHARACTER): New macro.
17243 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17244 glyph codes of GSTRING.
17245 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17246 (font_prepare_composition): Set cmp->glyph_len.
17247 (font_open_entity): Set font->scalable.
17248 (Ffont_get): Handle :otf property.
17249 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17250 functions.
17251 (Fquery_font): Use font->font.full_name.
17252 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17253 Sfont_otf_alternates.
17254
17255 * ftfont.c (ftfont_open): Set font->font.full_name and
17256 font->font.name properly. Fix calculation of font->font.height
17257 and font->min_width.
17258
17259 * ftxfont.c (ftxfont_create_gcs): New function.
17260 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17261 (ftxfont_draw_backgrond): Fix filling region.
17262 (ftxfont_default_fid): New function.
17263 (ftxfont_open): Set xfont->fid to the return value of
17264 ftxfont_default_fid.
17265 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17266 (ftxfont_done_face): Free only GCs that are created by
17267 ftxfont_create_gcs.
17268 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17269
17270 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17271 Clip to src->width, etc (not src->clip_XXX).
17272
17273 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17274 FontBackend frame parameter.
17275
172762008-02-01 Kenichi Handa <handa@m17n.org>
17277
17278 * font.h (struct font_driver_list): New member `on'.
17279 (Fclear_font_cache): EXFUN it.
17280 (font_update_drivers): Extern it.
17281
17282 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17283 (font_list_entities): Check driver_list->on.
17284 (register_font_driver): Initalize `on' member to 0.
17285 (font_update_drivers): New function.
17286 (Fclear_font_cache): Check driver_list->on.
17287
17288 * frame.h (Qfont_backend): Extern it.
17289 (x_set_font_backend): Extern it.
17290
17291 * frame.c (Qfont_backend): New variable.
17292 (frame_parms): New element for font-backend.
17293 (x_set_font_backend): New function.
17294
17295 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17296 FontBackend frame parameter.
17297 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17298 x_set_font_backend.
17299
17300 * xfont.c (xfont_list): Don't try listing by :name property if the
17301 name is not for XLFD.
17302
173032008-02-01 Kenichi Handa <handa@m17n.org>
17304
17305 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17306 (LGLYPH_SET_TO): New macros.
17307 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17308 element of G is vector or not.
17309 (font_at): Extern it.
17310
17311 * font.c: Include window.h.
17312 (font_lispy_object): New function.
17313 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17314 end of valid glyph.
17315 (font_close_object): Fix getting (struct font *).
17316 (font_at): New function.
17317 (Ffont_get): If FONT is a font-object, get entity from it.
17318 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17319 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17320 range check.
17321 (Ffont_at): New function.
17322 (syms_of_font): Defsubr Sfont_at.
17323
17324 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17325 before the entry for Qcomposition.
17326 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17327 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17328 the font in gstring.
17329 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17330 LGLYPH_FORM (g) to detect the end of valid glyph.
17331 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17332 we are composing with gstring.
17333
17334 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17335 Check if adjustment is vector or not.
17336
17337 * Makefile.in (font.o): Make it depends on window.h.
17338
173392008-02-01 Kenichi Handa <handa@m17n.org>
17340
17341 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17342 adjustment is vector or not.
17343
173442008-02-01 Miles Bader <miles@gnu.org>
17345
17346 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17347
173482008-02-01 Kenichi Handa <handa@m17n.org>
17349
17350 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17351 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17352 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17353
17354 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17355 (DEVICE_DELTA): Fix typo.
17356 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17357 LGLYPH format.
17358
17359 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17360 the change of LGLYPH format.
17361
173622008-02-01 Kenichi Handa <handa@m17n.org>
17363
17364 * ftfont.c (ftfont_list): Fix typo.
17365 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17366
173672008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17368
17369 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17370
17371 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17372 xftface_info is non-NULL.
17373
173742008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17375
17376 * ftfont.c (ftfont_list): Move misplaced #endif.
17377
173782008-02-01 Kenichi Handa <handa@m17n.org>
17379
17380 * ftfont.c (ftfont_list): Pay attention to the case that
17381 FC_CAPABILITY is not defined.
17382
173832008-02-01 Kenichi Handa <handa@m17n.org>
17384
17385 * xftfont.c (xftfont_open): Set charset related members to -1.
17386
17387 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17388 QCname.
17389 (ftfont_open): Set charset related members to -1.
17390
17391 * fontset.c (Votf_script_alist): New variable.
17392 (syms_of_fontset): Initialize it.
17393 (fontset_font): Delete unused variable.
17394
17395 * fontset.h (Votf_script_alist): Extern it.
17396
17397 * font.c (font_find_for_lface): Optimize code.
17398
17399 * font.h (font_close_object, font_merge_old_spec): Extern them.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17404 (syms_of_font): Initialize them.
17405 (font_pixel_size): Allow float value in dpi.
17406 (font_prop_validate_type): Delete.
17407 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17408 Change caller.
17409 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17410 (font_prop_validate_extra): Delete.
17411 (font_prop_validate_spacing): New function.
17412 (font_property_table): Add elements for all known properties.
17413 (get_font_prop_index): Rename from check_font_prop_name. New
17414 argument FROM. Change caller.
17415 (font_prop_validate): Validate all known properties.
17416 (font_put_extra): Delete argument force. Change caller.
17417 (font_expand_wildcards): Make it static. Fix the way of shrinking
17418 the possible range.
17419 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17420 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17421 Change caller.
17422 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17423 (font_parse_fcname): Delete argument merge. Fix parsing of point
17424 size. Don't validate properties values here. Change caller.
17425 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17426 (font_open_by_name): Delete unused variable.
17427 (Ffont_spec): Likewise. Validate property values.
17428 (Ffont_match_p): New function.
17429
17430 * font.h (QCscalable): Extern it.
17431 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17432
17433 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17434
17435 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17436 (xfont_list_pattern): New function.
17437 (xfont_list): Use xfont_list_pattern.
17438
174392008-02-01 Kenichi Handa <handa@m17n.org>
17440
17441 * font.h (Flist_fonts): EXFUN it.
17442
174432008-02-01 Jason Rumney <jasonr@gnu.org>
17444
17445 * w32term.c (w32_initialize): Add back smoothing_type and
17446 smoothing_enabled definitions.
17447
174482008-02-01 Kenichi Handa <handa@m17n.org>
17449
17450 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17451 s->face->font on determining underline position.
17452
174532008-02-01 Kenichi Handa <handa@m17n.org>
17454
17455 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17456 (font_has_char): Accept font-object too.
17457 (font_find_for_lface): Try at first with a size specified in face.
17458
174592008-02-01 Kenichi Handa <handa@m17n.org>
17460
17461 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17462 font_open_by_name.
17463
174642008-02-01 Kenichi Handa <handa@m17n.org>
17465
17466 * font.h (QCspacing, QCdpi): Extern them.
17467 (enum font_spacing): New enum.
17468 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17469
17470 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17471 (QCspacing, QCdpi): New variables.
17472 (syms_of_font): Initialize them.
17473 (font_pixel_size): New function.
17474 (font_put_extra): New function.
17475 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17476 in FONT_EXTRA.
17477 (font_parse_fcname): Handle enumerated values (e.g. bold).
17478 Fix handling font size. Add QCname property that contains only
17479 unknown properties.
17480 (font_score): Change argument. Change caller. Pay attention to
17481 FONT_PIXEL_SIZE_QUANTUM.
17482 (font_sort_entites, font_list_entities, font_find_for_lface)
17483 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17484 (Ffont_spec): Add QCname property that contains only unknown properties.
17485
17486 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17487 include weight in listing pattern, instead check weight of each
17488 listed font. Don't include scalable in pattern. Pay attention to
17489 FONT_PIXEL_SIZE_QUANTUM.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * font.c (font_parse_fcname): Fix parsing of point-size.
17494 (font_unparse_fcname): Produce symbolic names for style properties.
17495 (font_list_entities): Handle float size correctly.
17496 (font_open_by_name): Prefer `normal' property values if the name
17497 doesn't specify them.
17498
17499 * fontset.c (Finternal_char_font): Use font_get_name, not
17500 Ffont_xlfd_name.
17501
17502 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17503 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17504 pattern. Don't force scalable.
17505
17506 * xftfont.c (xftfont_open): For generating a name, start from
17507 96-byte buffer.
17508
175092008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17510
17511 * frame.h (x_new_fontset2): Fix prototype.
17512
175132008-02-01 Kenichi Handa <handa@m17n.org>
17514
17515 * font.h (struct font_driver): Delete member parse_name.
17516 (font_match_p, font_get_spec, font_parse_fcname)
17517 (font_unparse_fcname): Extern them.
17518 (font_get_name): Adjust prototype.
17519
17520 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17521 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17522 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17523 unnecessary checks for weight, slant, and swidth.
17524 (font_parse_fcname): New function.
17525 (font_unparse_fcname): New function.
17526 (font_parse_name): New function.
17527 (font_match_p): New function.
17528 (font_get_name): Change return value to Lisp string.
17529 (font_get_spec): New function.
17530 (Qunspecified, Qignore_defface): Don't extern them.
17531 (font_find_for_lface): Assume that LFACE is fully specified.
17532 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17533 object, use it for FACE.
17534 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17535 driver->parse_name.
17536 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17537
17538 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17539 prototype.
17540
17541 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17542 argument F. Don't call Fnew_fontset. Instead, directly call
17543 make_fontset.
17544
17545 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17546
17547 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17548 of x_new_fontset2.
17549
17550 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17551 (Qsans__serif): New variables.
17552 (ftfont_generic_family_list): New variable.
17553 (syms_of_ftfont): Initialize the above variables.
17554 (ftfont_pattern_entity): Delete argument NAME.
17555 (ftfont_list_generic_family): New function.
17556 (ftfont_parse_name): Delete this function.
17557 (ftfont_list): Try generic family only when FcFontList found no font.
17558 (ftfont_list_family): Fix args to FcObjectSetBuild.
17559
17560 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17561 object in attrs[LFACE_FONT_INDEX].
17562 (set_lface_from_font_name): Cancel all changes for font-backend.
17563 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17564 function.
17565 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17566 font object in QCfont attribute.
17567 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17568 (realize_default_face) [USE_FONT_BACKEND]: Call
17569 set_lface_from_font_and_fontset.
17570
17571 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17572 "fixed", and signal error here if no suitable font was found.
17573
17574 * xfont.c (xfont_parse_name): Delete this function.
17575
17576 * xftfont.c (xftfont_open): Change coding style of error
17577 handling. Generate fontconfig's fontname pattern.
17578
17579 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17580 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17581
17582 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17583 Both args FONTSET and FONT_OBJECT must be existing ones.
17584
175852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17586
17587 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17588
175892008-02-01 Kenichi Handa <handa@m17n.org>
17590
17591 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17592
17593 * font.h (struct font): Fix typo.
17594
17595 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17596 XLFD_XXX_INDEX.
17597 (enum xlfd_field_mask): New enum.
17598 (intern_font_field): Changed argument. Change caller. If digits
17599 are followed by non-digits, return a symbol.
17600 (font_expand_wildcards): New function.
17601 (font_parse_xlfd): Fix wildcard handling.
17602 (Ffont_spec): If :name is specified, reflect the info in the other
17603 properties.
17604
17605 * ftfont.c (ftfont_pattern_entity): Fix typo.
17606 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17607 locale.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17612
17613 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17614 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17615 registry doesn't specify encoding part.
17616 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17617 (font_open_by_name): At first try parsing the name.
17618 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17619 as Lisp symbols.
17620
17621 * fontset.c (reorder_font_vector): Pay attention to the case that
17622 the 3rd element of font_def is nil.
17623 (fontset_font): For the default fontset, append one more fontset
17624 elements for a script-based font specification. Don't add script
17625 attribute on finding a font.
17626 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17627 font name.
17628 (fontset_ascii_font): If a font can't be opened, return nil.
17629
17630 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17631 (ftfont_pattern_entity): New function.
17632 (ftfont_get_cache): Assume that freetype_font_cache is already
17633 initialized.
17634 (ftfont_list): Handle the case that a file is specified in font
17635 name. Use ftfont_pattern_entity to generate entities.
17636 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17637 (syms_of_ftfont): Initialize freetype_font_cache.
17638
17639 * xftfont.c (xftfont_open): Make the font name fontconfig's
17640 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17641 (xftfont_close): Free font->font.name if not NULL.
17642
17643 * xfont.c (xfont_list): If script is specified for a font, return
17644 null_vector.
17645 (xfont_list_family): Declare argument type.
17646
17647 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17648 name, set LFACE_FONT (lface) to nil.
17649
17650 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17651 return Qnil.
17652
176532008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17656 (standard_args): Add "-enable-font-backend".
17657
176582008-02-01 Kenichi Handa <handa@m17n.org>
17659
17660 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17661 (struct xftdraw_list, xftdraw_list): Delete them.
17662 (register_xftdraw, check_xftdraw): Delete them.
17663 (xftfont_prepare_face): Don't call register_xftdraw.
17664 (xftfont_done_face): Don't call check_xftdraw.
17665 (xftfont_draw): Get background color only when with_background is
17666 nonzero.
17667
17668 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17669
176702008-02-01 Kenichi Handa <handa@m17n.org>
17671
17672 These changes are for the new font handling codes.
17673
17674 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17675 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17676 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17677 (FONTSRC, FONTOBJ): New variables.
17678 (obj): Add $(FONTOBJ).
17679 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17680 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17681 @LIBOTF_LIBS@.
17682 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17683 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17684
17685 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17686
17687 * character.h (Vscript_representative_chars): Extern it.
17688
17689 * character.c (Vscript_representative_chars): New variable.
17690 (syms_of_character): Declare it as a Lisp variable.
17691
17692 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17693 enable_font_backend is nonzero, accept the composition method
17694 COMPOSITION_WITH_GLYPH_STRING.
17695
17696 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17697 enumeration COMPOSITION_WITH_GLYPH_STRING.
17698
17699 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17700 members clip_x, clip_y, clip_width, and clip_height.
17701 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17702
17703 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17704 --enable-font-backend. Call syms_of_font.
17705
17706 * fns.c (assoc_no_quit): New function.
17707
17708 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17709 (face_for_font, new_fontset_from_font)
17710 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17711
17712 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17713 (fontset_font, fontset_ascii, face_for_char)
17714 (make_fontset_for_ascii_face, Ffont_info)
17715 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17716 is nonzero, use font-backend mechanism.
17717 (find_font_encoding): Make it non-static.
17718 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17719 New functions.
17720
17721 * frame.h (struct frame): New members resx and resy.
17722 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17723 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17724
17725 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17726 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17727
17728 * lisp.h (assoc_no_quit): Extern it.
17729
17730 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17731 Through out the file, use FONT_INFO_FROM_FACE instead of
17732 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17733 rif->per_char_metric.
17734 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17735 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17736 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17737 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17738 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17739 nonzero, use font-backend mechanism.
17740 (get_per_char_metric): New function.
17741
17742 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17743 (set_lface_from_font_name)
17744 (set_font_frame_param, free_realized_face)
17745 (prepare_face_for_display, clear_face_gcs)
17746 (Finternal_set_font_selection_order, realize_x_face)
17747 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17748 font-backend mechanism.
17749 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17750 (load_face_font) [USE_FONT_BACKEND]: Abort.
17751 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17752 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17753
17754 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17755 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17756 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17757 nonzero, register all available font drivers. Call
17758 x_default_font_parameter for deciding a font.
17759 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17760
17761 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17762 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17763 (x_set_glyph_string_clipping_exactly)
17764 (x_compute_glyph_string_overhangs)
17765 (x_draw_glyph_string_foreground)
17766 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17767 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17768 enable_font_backend is nonzero, use font-backend mechanism.
17769 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17770
177712008-02-01 Kenichi Handa <handa@m17n.org>
17772
17773 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17774 system_eol_type.
17775 (syms_of_coding): Initialize system_eol_type.
17776
17777 * process.c (Fset_process_coding_system): Inherit system's eol
17778 format if necessary.
17779
177802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17781
17782 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17783
177842008-02-01 Kenichi Handa <handa@m17n.org>
17785
17786 * coding.c (decode_eol): Pay attention to buffer relocation in
17787 del_range_2.
17788 (decode_coding): Call decode_eol before restoring undo_list.
17789
177902008-02-01 Kenichi Handa <handa@m17n.org>
17791
17792 * charset.c (Fdefine_charset_internal): Fix setting of
17793 emacs_mule_bytes.
17794
177952008-02-01 Kenichi Handa <handa@m17n.org>
17796
17797 * keyboard.c (read_char): Check if C is a character or not before
17798 looking up Vkeyboard_translate_table.
17799
178002008-02-01 Kenichi Handa <handa@m17n.org>
17801
17802 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17803 condition to terminate the loop.
17804
178052008-02-01 Kenichi Handa <handa@m17n.org>
17806
17807 * coding.c (produce_composition): Compare charbuf[i] instead of
17808 args[i] against 0.
17809 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17810
178112008-02-01 Kenichi Handa <handa@m17n.org>
17812
17813 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17814 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17815 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17816 detect_coding.
17817 (emacs_mule_char): Handle old style (Emacs 20) component character
17818 of a composition.
17819 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17820 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17821 composition rule.
17822 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17823
178242008-02-01 Kenichi Handa <handa@m17n.org>
17825
17826 * coding.c (encode_coding_ccl): Allocate destination dynamically
17827 when necessary.
17828
178292008-02-01 Kenichi Handa <handa@m17n.org>
17830
17831 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17832 the loop. When quitted, show a proper error message.
17833
178342008-02-01 Kenichi Handa <handa@m17n.org>
17835
17836 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17837 src->clip_head and src->clip_tail temporarily instead of src->hl.
17838
17839 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17840 character sequence.
17841 (Fccl_execute_on_string): Use ASET, not XSET.
17842
178432008-02-01 Kenichi Handa <handa@m17n.org>
17844
17845 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17846
178472008-02-01 Kenichi Handa <handa@m17n.org>
17848
17849 * coding.c (decode_coding): Fix the condition of terminating the
17850 decoding loop.
17851
178522008-02-01 Kenichi Handa <handa@m17n.org>
17853
17854 * data.c (Faset): On setting a character bigger than 255 in a
17855 unibyte string, signal an error instead of make the string multibyte.
17856
178572008-02-01 Kenichi Handa <handa@m17n.org>
17858
17859 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17860 made by a mapping table.
17861
178622008-02-01 Kenichi Handa <handa@m17n.org>
17863
17864 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17865 not.
17866 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17867 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17868
17869 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17870 s->face is NULL or not.
17871
178722008-02-01 Kenichi Handa <handa@m17n.org>
17873
17874 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17875 (x_draw_glyph_string): Fix drawing of right_overhang and
17876 left_overhang around/on cursor.
17877
17878 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17879
178802008-02-01 Kenichi Handa <handa@m17n.org>
17881
17882 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17883
178842008-02-01 Kenichi Handa <handa@m17n.org>
17885
17886 * coding.c (Fdefine_coding_system_internal)
17887 (Fdefine_coding_system_alias): Avoid a duplicated element in
17888 Vcoding_system_alist.
17889
178902008-02-01 Kenichi Handa <handa@m17n.org>
17891
17892 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17893
17894 * coding.c (Qcoding_system_define_form): New variable.
17895 (syms_of_coding): Intern and staticpro it.
17896 (Fcoding_system_p): Check Qcoding_system_define_form.
17897 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17898
17899 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17900 Fcoding_system_p.
17901 (CHECK_CODING_SYSTEM): If ID is not available, call
17902 Fcheck_coding_system.
17903 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17904 Try also Fcheck_coding_system.
17905
179062008-02-01 Kenichi Handa <handa@m17n.org>
17907
17908 * coding.c (code_conversion_restore): GCPRO arg.
17909
179102008-02-01 Kenichi Handa <handa@m17n.org>
17911
17912 * character.c (lisp_string_width): Check multibyteness of STRING.
17913
179142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17915
17916 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17917 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17918 (decode_mac_font_name): Use decode_coding_c_string instead of
17919 decode_coding.
17920 (x_load_font): Initialize fontp->fontset to -1. Set
17921 fontp->encoding_type.
17922
179232008-02-01 Kenichi Handa <handa@m17n.org>
17924
17925 * search.c (search_buffer): Give up BM search on case-fold-search
17926 if one of a target character has a case-equivalence of different
17927 byte length even if that target charcter is an ASCII.
17928 (simple_search): Fix calculation of byte length of matched text.
17929 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17930
179312008-02-01 Kenichi Handa <handa@m17n.org>
17932
17933 * coding.c (decode_coding): Fix handling of invalid bytes.
17934
179352008-02-01 Kenichi Handa <handa@m17n.org>
17936
17937 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17938 Unicode characters.
17939
179402008-02-01 Kenichi Handa <handa@m17n.org>
17941
17942 * coding.c (encode_coding_object): If a pre-write-conversion
17943 function makes a new buffer, kill it.
17944
179452008-02-01 Kenichi Handa <handa@m17n.org>
17946
17947 * coding.c (QCascii_compatible_p): New variable.
17948 (syms_of_coding): Initialize it.
17949 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17950 calling string_char.
17951 (record_conversion_result): Add `default:' case.
17952 (coding_charset_list): Delete unused variable `coding_type'.
17953 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17954 property in the plist of the coding system.
17955 (Fcoding_system_put): Check QCascii_compatible_p.
17956
179572008-02-01 Miles Bader <miles@gnu.org>
17958
17959 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17960 removed calculation of frame `f', as it's now used.
17961
179622008-02-01 Kenichi Handa <handa@m17n.org>
17963
17964 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17965 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17966 (UNIDATA): New variable.
17967 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17968 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17969 $(RUN_TEMACS) unconditionally.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17974 (admindir): New variable.
17975 ($(lispsource)international/charprop.el): New target.
17976
179772008-02-01 Miles Bader <miles@gnu.org>
17978
17979 * character.c (chars-in-region): Remove obsolete function.
17980 (syms_of_character): Remove its initialization.
17981
179822008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17983
17984 * w32select.c (validate_coding_system)
17985 (setup_windows_coding_system): New functions.
17986 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17987 setup_windows_coding_system.
17988 (setup_config, Fw32_get_clipboard_data): Use
17989 validate_coding_system.
17990 (Fx_selection_exists): Move call to setup_config to a place
17991 where signals are allowed.
17992
17993 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17994 (Fcheck_coding_system): Add declarations.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17999
180002008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18001
18002 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
18003 string as the second argument for x_new_fontset.
18004
180052008-02-01 Kenichi Handa <handa@m17n.org>
18006
18007 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
18008 (encode_coding_object): Use safe_call instead of call2.
18009
180102008-02-01 Kenichi Handa <handa@m17n.org>
18011
18012 * fontset.c (Fset_fontset_font): Check family element of a given vector.
18013
18014 * Makefile.in (lisp): Include charprop.el.
18015
180162008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18017
18018 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
18019 Not sure if it's unnecessary.
18020
180212008-02-01 Steven Tamm <steventamm@mac.com>
18022
18023 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
18024 some possibly unnecessary fontset checking code that crashed
18025 when creating a new frame.
18026
180272008-02-01 Kenichi Handa <handa@m17n.org>
18028
18029 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
18030 lookup_face.
18031
18032 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
18033
18034 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
18035
180362008-02-01 Kenichi Handa <handa@m17n.org>
18037
18038 * coding.c: Cancel the change done in HEAD on 2008-02-01.
18039 (coding_charset_list): New function.
18040
18041 * coding.h (coding_charset_list): Extern it.
18042
180432008-02-01 Kenichi Handa <handa@m17n.org>
18044
18045 * fontset.c (Fset_fontset_font): Call find_font_encoding with
18046 concatenation of family and registry.
18047
180482008-02-01 Kenichi Handa <handa@m17n.org>
18049
18050 * character.h (BYTE8_STRING): Fix typo.
18051
18052 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
18053 string to multibyte (sync to HEAD).
18054
18055 * casefiddle.c (casify_region): Handle changes in byte-length
18056 using replace_range_2 (sync to HEAD).
18057
180582008-02-01 Andreas Schwab <schwab@suse.de>
18059
18060 * chartab.c (map_char_table): GCPRO table and arg.
18061
180622008-02-01 Kenichi Handa <handa@m17n.org>
18063
18064 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
18065 already at limit.
18066
180672008-02-01 Kenichi Handa <handa@m17n.org>
18068
18069 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
18070 instead of fast_c_string_match_ignore_case.
18071 (find_font_encoding): Change argument to Lisp_Object. Use
18072 fast_string_match_ignore_case instead of
18073 fast_c_string_match_ignore_case. Change caller.
18074
180752008-02-01 Kenichi Handa <handa@m17n.org>
18076
18077 * xdisp.c (get_next_display_element): In unibyte case, decide to
18078 display in octal form by checking a character by
18079 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
18080
18081 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
18082
18083 * character.c (unibyte_has_multibyte_table): New variable.
18084
18085 * character.h (unibyte_has_multibyte_table): Extern it.
18086 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
18087
180882008-02-01 Kenichi Handa <handa@m17n.org>
18089
18090 * coding.c (encode_coding_iso_2022): Fix handling of charset
18091 annotation.
18092
180932008-02-01 Kenichi Handa <handa@m17n.org>
18094
18095 * coding.c (setup_coding_system): If coding_system is nil, use
18096 Qundecided.
18097 (Fterminal_coding_system): Return nil if terminal coding system is
18098 `undecided'.
18099 (syms_of_coding): Define coding-system `undecided' here. Setup
18100 terminal_coding as `undecided'.
18101
181022008-02-01 Kenichi Handa <handa@m17n.org>
18103
18104 * xdisp.c (message_dolog, set_message_1): Call
18105 unibyte_char_to_multibyte with arg type int.
18106
18107 * lread.c (read1): Fix reading of a char-table.
18108
18109 * print.c (print_object): Include sub char-table in circularities
18110 detection.
18111
181122008-02-01 Kenichi Handa <handa@m17n.org>
18113
18114 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18115 Append the found sequences in car of ARGS instead of prepending.
18116
181172008-02-01 Kenichi Handa <handa@m17n.org>
18118
18119 * fileio.c (report_file_error): Make a unibyte string from
18120 strerror (errorno).
18121 (Fsubstitute_in_file_name): Fix the arg to
18122 unibyte_char_to_multibyte. It is evaluated twice.
18123
181242008-02-01 Kenichi Handa <handa@m17n.org>
18125
18126 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18127
181282008-02-01 Kenichi Handa <handa@m17n.org>
18129
18130 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18131 BOM is not found.
18132 (detect_coding, detect_coding_system): Optimization for ISO-2022
18133 when no 8-bit data is found.
18134
181352008-02-01 Jason Rumney <jasonr@gnu.org>
18136
18137 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18138
181392008-02-01 Kenichi Handa <handa@m17n.org>
18140
18141 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18142 CHARS.
18143
181442008-02-01 Steven Tamm <steventamm@mac.com>
18145
18146 * macterm.c (mac_encode_char): Add charset argument and update
18147 to use encoding_type.
18148 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18149 switch to pure fontset.
18150 (decode_mac_font_name): Temporarily remove decoding.
18151 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18152 (x_load_font): Temporarily remove encoding.
18153
181542008-02-01 Kenichi Handa <handa@m17n.org>
18155
18156 * xfaces.c (Fface_font): If frame is not on a window system,
18157 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18158 refer to face->font.
18159 (split_font_name_into_vector, build_font_name_from_vector)
18160 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18161 when HAVE_WINDOW_SYSTEM is defined.
18162
181632008-02-01 Kenichi Handa <handa@m17n.org>
18164
18165 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18166 (x_produce_glyphs): Fix setting of members of cmp in case
18167 cmp->glyph_len is zero.
18168
18169 * fontset.c (Fset_fontset_font): Fix docstring.
18170 (Ffontset_info): Make it backward compatible. New arg ALL.
18171
181722008-02-01 Kim F. Storm <storm@cua.dk>
18173
18174 * process.c (read_process_output): Grow decoding_buf when needed;
18175 this could cause a crash in allocate_string and compact_small_strings.
18176
181772008-02-01 Kenichi Handa <handa@m17n.org>
18178
18179 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18180
181812008-02-01 Kenichi Handa <handa@m17n.org>
18182
18183 * coding.c (setup_coding_system): Set coding->common_flags
18184 correctly for raw-text.
18185 (consume_chars): On encoding unibyte text by raw-text, don't check
18186 multibyte form.
18187 (encode_coding): On encoding by raw-text, never use translation tables.
18188
18189 * fileio.c (e_write): Short cut for the case of no encoding.
18190
181912008-02-01 Kenichi Handa <handa@m17n.org>
18192
18193 * coding.c (detect_coding, detect_coding_system): Delete unused
18194 variables.
18195
181962008-02-01 Kenichi Handa <handa@m17n.org>
18197
18198 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18199 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18200
182012008-02-01 Kenichi Handa <handa@m17n.org>
18202
18203 * coding.c (Ffind_coding_systems_region_internal): Include
18204 raw-text and no-conversion in the result.
18205
182062008-02-01 Kenichi Handa <handa@m17n.org>
18207
18208 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18209 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18210 FONT_DEF.
18211 (font_def_arg, add_arg, from_arg, to_arg): New args.
18212 (set_fontset_font): Change argument.
18213 (Fset_fontset_font): Fix for the case that TARGET is a script
18214 name and charset name.
18215 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18216
182172008-02-01 Kenichi Handa <handa@m17n.org>
18218
18219 * fontset.c (fontset_font): Rename from fontset_face. Change return
18220 value.
18221 (face_suitable_for_char_p, face_for_char): Adjust for the change
18222 of fontset_font.
18223 (make_fontset_for_ascii_face): Fix setting of the fontset element
18224 for ASCII.
18225 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18226 to get a font name.
18227 (Ffontset_info): Adjust for the change of fontset_font.
18228
18229 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18230
18231 * character.h (LEADING_CODE_LATIN_1_MIN)
18232 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18233
182342008-02-01 Kenichi Handa <handa@m17n.org>
18235
18236 * editfns.c (check_translation): New function.
18237 (Ftranslate_region_internal): Handle M:N mapping.
18238
182392008-02-01 Kenichi Handa <handa@m17n.org>
18240
18241 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18242
182432008-02-01 Kenichi Handa <handa@m17n.org>
18244
18245 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18246 goto invalid_code.
18247 (decode_coding_iso_2022): Fix handling of invalid designation.
18248
18249 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18250 after calling code_conversion_save.
18251
182522008-02-01 Kenichi Handa <handa@m17n.org>
18253
18254 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18255
18256 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18257
18258 * fontset.c: Include "intervals.h".
18259 (fontset_face): Fix comparing of Lisp_Objects.
18260 (free_face_fontset, new_fontset_from_font_name): Fix
18261 Lisp_Object/int mixup.
18262
18263 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18264
18265 * coding.c: Add many prototypes for static functions.
18266 (get_translation_table): Allow max_lookup to be NULL.
18267 (decode_coding, Ffind_coding_systems_region_internal)
18268 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18269 get_translation_table with max_lookup NULL.
18270
182712008-02-01 Kenichi Handa <handa@m17n.org>
18272
18273 * coding.c (get_translation_table): Declare it as Lisp_Object.
18274 (LOOKUP_TRANSLATION_TABLE): New macro.
18275 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18276 instead of CHAR_TABLE_REF.
18277
182782008-02-01 Kenichi Handa <handa@m17n.org>
18279
18280 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18281 annotation data format.
18282 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18283 Change arguments FROM and TO to single argument NCHARS. Change caller.
18284 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18285 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18286 (decode_coding_ccl, decode_coding_charset): Pay attention to
18287 coding->charbuf_used.
18288 (get_translation): New function.
18289 (produce_chars): New arguments translation_table and last_block.
18290 Translate characters here. Return number of carryover chars.
18291 Change caller.
18292 (produce_composition): New argument pos. Change caller.
18293 Adjust for the change of annotation data format.
18294 (produce_charset, produce_annotation): Likewise.
18295 (decode_coding, encode_coding): Don't call translate_chars.
18296 (consume_chars): New arg translation_table. Change caller.
18297 (translate_chars): Delete.
18298 (syms_of_coding): Make translation-table's number of extra slots 2.
18299
183002008-02-01 Kenichi Handa <handa@m17n.org>
18301
18302 * search.c (simple_search): Fix setting this_pos_byte in backward
18303 search.
18304
18305 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18306 byte sequence.
18307 (detect_coding_ccl): Fix setting of the variable valids.
18308
183092008-02-01 Kenichi Handa <handa@m17n.org>
18310
18311 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18312
18313 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18314
18315 * editfns.c (Ftranslate_region_internal): Rename from
18316 Ftranslate_region. Accept a char-table in TABLE.
18317 (syms_of_editfns): Defsubr Stranslate_region_internal.
18318
18319 * xfaces.c (set_lface_from_font_name): If a font is specified for
18320 a frame, generate a fontset from the font.
18321 (build_scalable_font_name): If the scalable font is requested for
18322 a specific size, don't change that size.
18323 (try_font_list): Try a scalable font also in the case that a
18324 pattern string is specified.
18325
183262008-02-01 Kenichi Handa <handa@m17n.org>
18327
18328 * xfaces.c (Fface_font): New optional arg CHARACTER.
18329
183302008-02-01 Kenichi Handa <handa@m17n.org>
18331
18332 * charset.h (CHARSET_OFFSET): New macro.
18333
183342008-02-01 Kenichi Handa <handa@m17n.org>
18335
18336 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18337
18338 * fontset.c (fontset_face): Handle the case that repertory is a
18339 char-table.
18340 (find_font_encoding): Return nil for unknown encoding.
18341 (Fset_fontset_font): Ignore a font of unknown encoding.
18342
183432008-02-01 Kenichi Handa <handa@m17n.org>
18344
18345 * keymap.c (describe_vector): Handle default value of a char table.
18346
18347 * fontset.c (fontset_face): Handle fallback fonts correctly.
18348 (Ffontset_info): Return infomation about fallback fonts.
18349
183502008-02-01 Kenichi Handa <handa@m17n.org>
18351
18352 * fontset.c (FONTSET_DEFAULT): New macro.
18353 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18354 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18355 the case that it is nil.
18356 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18357 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18358
18359 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18360 subset or superset.
18361
183622008-02-01 Kenichi Handa <handa@m17n.org>
18363
18364 * emacs.c (main): Call init_charset after syms_of_XXX.
18365
18366 * charset.c (Vcharset_map_directory): Delete.
18367 (Vcharset_map_path): New variable.
18368 (load_charset_map_from_file): Use Vcharset_map_path instead.
18369 (init_charset): Initialize Vcharset_map_path.
18370 (syms_of_charset): Delete declaration of "charset-map-directory",
18371 add declaration of "charset-map-path".
18372
183732008-02-01 Kenichi Handa <handa@m17n.org>
18374
18375 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18376 ASCII only string.
18377
18378 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18379
18380 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18381 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18382
183832008-02-01 Kenichi Handa <handa@m17n.org>
18384
18385 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18386
18387 * coding.c (QCmnemonic, QCdefalut_char)
18388 (QCdecode_translation_table, QCencode_translation_table)
18389 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18390 (get_translation_table): Return a list of translation tables if
18391 necessary.
18392 (decode_coding): Call get_translation_table with ENCODEP 0.
18393 (char_encodable_p): If translation_table is non-nil, always call
18394 translate_char.
18395 (Fdefine_coding_system_internal): Accept list of translation
18396 tables as :encode-translation-table and :decode-translation-table.
18397 (Fcoding_system_put): New function.
18398 (syms_of_coding): Declare new symbols. Defsubr
18399 Scoding_system_put.
18400 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18401 typically JISX0212.
18402
18403 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18404 when the charset is superset type.
18405
18406 * character.c (translate_char): Accept list of translation tables.
18407
184082008-02-01 Kenichi Handa <handa@m17n.org>
18409
18410 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18411 (CODING_ATTR_TRANS_TBL): New macro.
18412
18413 * coding.c (get_translation_table): New function.
18414 (translate_chars): Fix the bug of skipping annotation data.
18415 (decode_coding, encode_coding): Utilize get_translation_table.
18416 (char_encodable_p, Funencodable_char_position): Translate char if
18417 necessary.
18418 (Ffind_coding_systems_region_internal)
18419 (Fcheck_coding_systems_region): Setup translation table for encode
18420 in a coding system attribute vector in advance.
18421 (Fdefine_coding_system_internal): Allow a symbol as translation
18422 table. For shift-jis type coding system, allow 4th charset.
18423
184242008-02-01 Kenichi Handa <handa@m17n.org>
18425
18426 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18427
18428 * xdisp.c (get_next_display_element): Pass -1 as POS to
18429 FACE_FOR_CHAR if displaying a C-string.
18430
184312008-02-01 Kenichi Handa <handa@m17n.org>
18432
18433 * composite.c (get_composition_id): Handle xoff and yoff in a
18434 composition rule.
18435
18436 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18437 (struct composition): New member lbearing and rbearing.
18438
18439 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18440 (x_get_glyph_overhangs): Handle a composition glyph.
18441 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18442
18443 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18444 composition glyph.
18445
184462008-02-01 Kenichi Handa <handa@m17n.org>
18447
18448 * print.c: Include charset.h.
18449 (Vprint_charset_text_property): New variable.
18450 (Qdefault): Extern it.
18451 (PRINT_STRING_NON_CHARSET_FOUND)
18452 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18453 (print_check_string_result): New variable.
18454 (print_check_string_charset_prop): New function.
18455 (print_prune_charset_plist): New variable.
18456 (print_prune_string_charset): New function.
18457 (print_object): Call print_prune_string_charset if
18458 Vprint_charset_text_property is not t.
18459 (print_interval): Print nothing if interval->plist is nil.
18460 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18461 variable. Init and staticpro print_prune_charset_plist.
18462
184632008-02-01 Kenichi Handa <handa@m17n.org>
18464
18465 * fontset.c (new_fontset_from_font_name): Use the specified font
18466 for all characters in the new fontset.
18467
18468 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18469 OBJECT args.
18470
18471 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18472 OBJECT args for composition too.
18473
18474 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18475 OBJECT args.
18476
184772008-02-01 Kenichi Handa <handa@m17n.org>
18478
18479 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18480
18481 * fontset.c (reorder_font_vector): Adjust for the change of
18482 FONT_DEF format.
18483 (fontset_face): New arg id. Change caller.
18484 (face_for_char): New args pos and object.
18485 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18486 (fs_query_fontset): Check NAME by Fassoc too.
18487 (Fset_fontset_font): Allow non-XLFD font name.
18488 (Ffontset_info): Adjust for the change of FONT_DEF format.
18489
18490 * fontset.h (face_for_char): Adjust prototype.
18491
18492 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18493 (append_space, extend_face_to_end_of_line)
18494 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18495 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18496
18497 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18498 POS and OBJECT args.
18499
18500 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18501 POS and OBJECT args.
18502
185032008-02-01 Jason Rumney <jasonr@gnu.org>
18504
18505 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18506 of GlobalAlloc'ed memory.
18507
185082008-02-01 Kenichi Handa <handa@m17n.org>
18509
18510 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18511
18512 * charset.h (charset_table_used): Delete extern.
18513
18514 * charset.c (charset_table_used): Make it static.
18515 (map_charset_chars): Fix args to c_function with.
18516
18517 * chartab.c (map_sub_char_table_for_charset): Fix args to
18518 c_function with.
18519
18520 * coding.h (enum coding_result_code): Delete
18521 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18522
18523 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18524 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18525 (Vlast_code_conversion_error): New variables.
18526 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18527 (ONE_MORE_BYTE): Record error if any instead of signaling an
18528 error. If non-ASCII multibyte char is found, return the negative
18529 value of the code. All callers changed to check it.
18530 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18531 (record_conversion_result): New function. Change all codes setting
18532 coding->result to call this function.
18533 (detect_coding_utf_8, decode_coding_utf_8)
18534 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18535 Don't use the local variable incomplete.
18536 (emacs_mule_char): Change the second arg to `const'.
18537 (decode_coding): Fix of flushing out unprocessed data.
18538 (make_conversion_work_buffer): Fix making of a work buffer.
18539 (decode_coding_object): Return coding->dst_object.
18540
18541 * fontset.c (set_fontset_font): Fix args.
18542
18543 * lisp.h (CHARACTERBITS): Define as 22.
18544
18545 * process.c (send_process): Be sure to set coding->src_multibyte.
18546
18547 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18548
185492008-02-01 Kenichi Handa <handa@m17n.org>
18550
18551 * xdisp.c (handle_auto_composed_prop): Give limit to
18552 Fnext_single_char_property_change.
18553
185542008-02-01 Kenichi Handa <handa@m17n.org>
18555
18556 * composite.c (syms_of_composite): Don't make the composition hash
18557 table weak.
18558
18559 * fontset.c (Fset_fontset_font): Fix docstring.
18560
18561 * lisp.h (detect_coding_system): Adjust prototype.
18562
18563 * fileio.c (kill_workbuf_unwind): Delete this function.
18564 (Finsert_file_contents): Adjust the call of detect_coding_system.
18565 Get conversion_buffer by code_conversion_save. Use the macro
18566 CODING_MAY_REQUIRE_DECODING. After decoding, update
18567 coding_system.
18568
18569 * coding.h (make_conversion_work_buffer): Delete extern.
18570 (code_conversion_save): Extern it.
18571
18572 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18573 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18574 (decode_coding_utf_8): Don't do eol converion.
18575 (detect_coding_utf_16): Check coding->src_chars, not
18576 coding->src_bytes. Add heuristics for those that have no signature.
18577 (decode_coding_emacs_mule, decode_coding_iso_2022)
18578 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18579 Don't do eol converion.
18580 (adjust_coding_eol_type): Return a new coding system.
18581 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18582 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18583 each change.
18584 (decode_coding): Pay attention to undo_list. Do eol conversion for
18585 all types of coding-systems (if necessary).
18586 (Vcode_conversion_work_buf_list): Delete it.
18587 (Vcode_conversion_reused_workbuf): Rename from
18588 Vcode_conversion_reused_work_buf.
18589 (Vcode_conversion_workbuf_name): New variable.
18590 (reused_workbuf_in_use): New variable.
18591 (make_conversion_work_buffer): Delete the arg DEPTH.
18592 (code_conversion_restore): Change argument to cons.
18593 (code_conversion_save): Delete the argument BUFFER. Change callers.
18594 (detect_coding_system): New argument src_chars. Change callers.
18595 Fix for utf-16 detection.
18596 (init_coding_once): Don't use ISO_carriage_return.
18597 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18598 reused_workbuf_in_use.
18599
186002008-02-01 Kenichi Handa <handa@m17n.org>
18601
18602 * keymap.c (store_in_keymap): Pay attention to the case that idx
18603 is a cons specifying a character range.
18604
186052008-02-01 Kenichi Handa <handa@m17n.org>
18606
18607 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18608 HANDLED_RECOMPUTE_PROPS.
18609
18610 * coding.c (Fdefine_coding_system_internal): Fix checking of
18611 ascii compatibility.
18612
186132008-02-01 Kenichi Handa <handa@m17n.org>
18614
18615 * charset.c (find_charsets_in_text): Delete unused locale variable.
18616 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18617
18618 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18619 Resync charset_list to Vemacs_mule_charset_list.
18620
18621 * keymap.c (store_in_keymap): Pay attention to the case that idx
18622 is a cons specifying a character range.
18623
186242008-02-01 Kenichi Handa <handa@m17n.org>
18625
18626 * composite.c (update_compositions): Bind inhibit-read-only, etc
18627 to t before calling remove-list-of-text-properties.
18628
18629 * print.c (print_object): Always print ASCII chars as is.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18634
18635 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18636 is a char table.
18637
186382008-02-01 Kenichi Handa <handa@m17n.org>
18639
18640 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18641
186422008-02-01 Kenichi Handa <handa@m17n.org>
18643
18644 * xfaces.c (set_lface_from_font_name): Fix for the case that
18645 FONTNAME is not fontset name.
18646
186472008-02-01 Kenichi Handa <handa@m17n.org>
18648
18649 * fns.c (base64_encode_1): Fix previous change.
18650
186512008-02-01 Kenichi Handa <handa@m17n.org>
18652
18653 * fontset.c (set_fontset_font): New function.
18654 (Fset_fontset_font): If a font is specified for a charset, use
18655 map_charset_chars to store the font spec in a fontset.
18656
186572008-02-01 Kenichi Handa <handa@m17n.org>
18658
18659 * fontset.c (fontset_face): Create a fallback fontset on demand.
18660 (make_fontset): Don't create a fallback fontset here.
18661 (free_face_fontset): Free a fallback fontset (if any) too.
18662 (n_auto_fontsets): Delete this variable.
18663 (auto_fontset_alist): New variable.
18664 (new_fontset_from_font_name): Check auto_fontset_alist.
18665 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18666 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18667 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18668 Defsubr Sfontset_list_all.
18669
186702008-02-01 Kenichi Handa <handa@m17n.org>
18671
18672 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18673
186742008-02-01 Kenichi Handa <handa@m17n.org>
18675
18676 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18677
186782008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * editfns.c (Fgoto_char): Fix docstring.
18681
186822008-02-01 Kenichi Handa <handa@m17n.org>
18683
18684 * insdel.c (insert_from_gap): Adjust intervals correctly.
18685
186862008-02-01 Jason Rumney <jasonr@gnu.org>
18687
18688 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18689 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18690 (w32_initialize): Try to load it.
18691 (x_get_font_repertory): Use it if available.
18692 (w32_encode_char): Add shortcut for unicode output.
18693
18694 * w32fns.c (w32_load_system_font): Default charset to -1.
18695 (x_to_w32_charset): Match all fonts for unicode.
18696 (w32_to_x_charset): New parameter matching. Don't return partial
18697 or wildcard charsets.
18698 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18699 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18700 (w32_to_x_font): Match charset to real charset.
18701 (enum_font_cb2): Always list unicode versions.
18702
18703 * makefile.w32-in (temacs): Increase EMHEAP.
18704
187052008-02-01 Jason Rumney <jasonr@gnu.org>
18706
18707 * w32term.c (w32_encode_char): New charset parameter.
18708 font_info.encoding becomes encoding_type.
18709 (x_get_font_repertory): New function. Warning: stub only!
18710 (x_new_font): Return quickly if font already set.
18711 (x_new_fontset): fontsetname parameter is Lisp_Object.
18712 Use new fs_query_fontset. Try new_fontset_from_font_name.
18713 Use fontset_name for return value.
18714
18715 * w32term.h: Declare x_get_font_repertory.
18716
18717 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18718 place of find_charset_in_text. Use encode_coding_object in place
18719 of encode_coding.
18720 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18721 decode_coding.
18722
18723 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18724 of x_new_fontset.
18725 (w32_load_system_font): Initialize charset as unicode.
18726 font_info.encoding becomes encoding_type.
18727 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18728 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18729 (syms_of_w32fns): Set get_font_repertory_func.
18730
18731 * w32console.c: Include character.h. Use terminal_encode_buffer
18732 from term.c.
18733 (write_glyphs): Use new version of encode_terminal_code. Use
18734 encode_coding_object in place of encode_coding.
18735
18736 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18737 encoding becomes encoding_type.
18738
18739 * term.c (terminal_encode_buffer): Make externally visible.
18740
18741 * makefile.w32-in: Add character.h dependancies.
18742 (character.o, chartab.o): New targets.
18743
187442008-02-01 Kenichi Handa <handa@m17n.org>
18745
18746 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18747 CODING_ID_EOL_TYPE.
18748
187492008-02-01 Andreas Schwab <schwab@suse.de>
18750
18751 * coding.c (produce_chars): Revert last change.
18752
187532008-02-01 Kenichi Handa <handa@m17n.org>
18754
18755 * charset.h (charset_unicode): Extern it.
18756
18757 * charset.c (string_xstring_p): Check by (C >= 0x100).
18758 (find_charsets_in_text): Change format of the arc CHARSETS. New
18759 arg MULTIBYTE.
18760 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18761 change of find_charsets_in_text.
18762 (Fsplit_char): Fix doc. Never return unknown.
18763
18764 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18765
18766 * coding.c (Fdefine_coding_system_alias): Update
18767 Vcoding_system_list.
18768
18769 * fontset.c (load_font_get_repertory): Pay attention to the case
18770 that ENCODING of a font is specified by a char-table.
18771
18772 * xterm.c (x_get_font_repertory): Handle the case that the
18773 encoding of font is other than Unicode.
18774
187752008-02-01 Kenichi Handa <handa@m17n.org>
18776
18777 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18778 if a character is encodable by the terminal coding system. If
18779 not, produces proper number of `?'s. Update
18780 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18781 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18782
187832008-02-01 Kenichi Handa <handa@m17n.org>
18784
18785 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18786 variables.
18787 (encode_terminal_code): Change argument. Encode multiple
18788 characters at once. Store the result of encoding in
18789 terminal_encode_buffer.
18790 (write_glyphs, insert_glyphs): Adjust for the change of
18791 encode_terminal_code.
18792 (term_init): Initialize terminal_encode_buffer and
18793 terminal_encode_buf_size.
18794
18795 * coding.c (consume_chars): If coding->src_object is nil, don't
18796 check annotation.
18797
187982008-02-01 Kenichi Handa <handa@m17n.org>
18799
18800 * character.c (char_string): Use ASCII_CHAR_P instead of
18801 SINGLE_BYTE_CHAR_P.
18802
188032008-02-01 Kenichi Handa <handa@m17n.org>
18804
18805 * xdisp.c (handle_auto_composed_prop): Check if the last
18806 characters of auto-composed region is newly composed with the
18807 following characters.
18808 (handle_composition_prop): Fix checking of point being inside
18809 composition.
18810
188112008-02-01 Kenichi Handa <handa@m17n.org>
18812
18813 * fns.c (concat): Don't change multibyteness of the result by
18814 concatenating an 8-bit character.
18815
18816 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18817 multibyteness of the result when newelt is an 8-bit character.
18818
188192008-02-01 Dave Love <fx@gnu.org>
18820
18821 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18822 EMACS_INT.
18823
18824 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18825
18826 * xfaces.c (face_numeric_value): Declare dim size_t.
18827 (Finternal_lisp_face_equal_p): Remove unused f.
18828
18829 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18830 (MATRIX_ROW): Remove unused vars.
18831 (draw_glyphs, x_insert_glyphs, fast_find_position)
18832 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18833 byte/char counts.
18834
18835 * regex.c (regex_compile): Remove unused var.
18836
18837 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18838
18839 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18840 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18841
18842 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18843
18844 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18845
18846 * fileio.c (Fwrite_region): Remove unused var.
18847
18848 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18849 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18850
18851 * composite.c (Fremove_list_of_text_properties): Declare.
18852
18853 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18854 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18855 (coding_inherit_eol_type): Remove unused attrs.
18856 (detect_coding): Cast arg of detect_eol.
18857
18858 * charset.c (syms_of_charset): Remove unused var p.
18859 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18860 byte/char counts.
18861
18862 * casetab.c (set_case_table): Remove unused var.
18863
18864 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18865 unused vars.
18866
188672008-02-01 Dave Love <fx@gnu.org>
18868
18869 * xterm.c (x_bitmap_mask): Declare.
18870
188712008-02-01 Dave Love <fx@gnu.org>
18872
18873 * xterm.c (x_term_init): Fix type error.
18874
18875 * lisp.h: Add Funibyte_char_to_multibyte.
18876
18877 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18878 (Fset_coding_system_priority): Doc fix.
18879
18880 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18881
18882 * indent.c (check_composition): Make start and end EMACS_INT.
18883
18884 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18885
18886 * xdisp.c (handle_composition_prop, check_point_in_composition):
18887 Make buffer positions EMACS_INT.
18888
18889 * composite.c (find_composition, run_composition_function)
18890 (update_compositions, Ffind_composition_internal): Make buffer
18891 positions EMACS_INT.
18892
18893 * composite.h (find_composition, update_compositions): Make
18894 position args EMACS_INT.
18895
18896 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18897
18898 * intervals.c (get_property_and_range):
18899 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18900
18901 * unexalpha.c: Don't include varargs.h.
18902
189032008-02-01 Dave Love <fx@gnu.org>
18904
18905 * coding.h (ENCODE_UTF_8): New.
18906
18907 * Makefile.in (gtkutil.o): Depend on coding.h.
18908
18909 * coding.c (Fset_coding_system_priority): Doc fix.
18910
189112008-02-01 Kenichi Handa <handa@m17n.org>
18912
18913 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18914 the case of auto saving.
18915
189162008-02-01 Andreas Schwab <schwab@suse.de>
18917
18918 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18919 `range' from GC.
18920
189212008-02-01 Kenichi Handa <handa@m17n.org>
18922
18923 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18924
189252008-02-01 Kenichi Handa <handa@m17n.org>
18926
18927 * fileio.c (choose_write_coding_system): Return a decided coding system.
18928 (Fwrite_region): Set Vlast_coding_system_used to the return value
18929 of choose_write_coding_system.
18930
189312008-02-01 Kenichi Handa <handa@m17n.org>
18932
18933 * charset.c (Fset_charset_priority): Pay attention to duplicated
18934 arguments.
18935
18936 * coding.c (QCcategory): New variable.
18937 (syms_of_coding): Defsym it. Set all elements of
18938 Vcoding_category_table and their symbol values.
18939 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18940 coding-category-XXX, and coding-category-list.
18941 (Fdefine_coding_system_internal): Add category in the plist.
18942
189432008-02-01 Kenichi Handa <handa@m17n.org>
18944
18945 * callproc.c (Fcall_process): Handle carryover correctly.
18946
18947 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18948 (raw_text_coding_system): Check NILP (coding_system).
18949 (coding_inherit_eol_type): Check NILP (coding_system) and
18950 NILP (parent).
18951 (consume_chars): Fix for the case of raw-text.
18952
18953 * process.c (read_process_output): Handle carryover correctly.
18954
189552008-02-01 Dave Love <fx@gnu.org>
18956
18957 * regex.c (re_search_2): Fix last change.
18958
189592008-02-01 Kenichi Handa <handa@m17n.org>
18960
18961 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18962 target_multibyte. Even in a unibyte case, return a converted
18963 multibyte char.
18964 (GET_CHAR_AFTER): New macro.
18965 (PATFETCH): Translate via multibyte char.
18966 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18967 (SETUP_MULTIBYTE_RANGE): New macro.
18968 (regex_compile): Setup compiled code so that its multibyteness
18969 matches that of a target. Fix the handling of "[X-YZ]" using
18970 SETUP_MULTIBYTE_RANGE.
18971 (analyse_first) <charset>: For filling fastmap for all multibyte
18972 characters, don't check by BASE_LEADING_CODE_P.
18973 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18974 the same as RE_MULTIBYTE_P (bufp) now.
18975 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18976 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18977 (TRANSLATE_VIA_MULTIBYTE): New macro.
18978 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18979 It is the same as RE_MULTIBYTE_P (bufp) now.
18980 <exactn>: Translate via multibyte.
18981 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18982 translate it.
18983 <charset, charset_not>: Fetch a character by
18984 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18985 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18986 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18987 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18988 by GET_CHAR_AFTER.
18989 (bcmp_translate): Likewise.
18990
18991 * search.c (compile_pattern): Check the member target_multibyte,
18992 not the member multibyte of buf.
18993
18994 * lread.c (read1): While reading a string, set force_singlebyte
18995 and force_multibyte correctly.
18996
18997 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18998 up of unibyte_to_multibyte_table.
18999
190002008-02-01 Kenichi Handa <handa@m17n.org>
19001
19002 * coding.c (setup_coding_system): If coding has
19003 post-read-conversion or pre-write-conversion, set
19004 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
19005 respectively.
19006 (decode_coding_gap): Run post-read-conversion if any.
19007
19008 * fileio.c (Finsert_file_contents): Even if we read into a
19009 unibyte buffer, check if we must decode the result or not.
19010
190112008-02-01 Kenichi Handa <handa@m17n.org>
19012
19013 * coding.c (make_conversion_work_buffer): Change the work buffer
19014 name to the same one as that of Emacs 21.
19015
190162008-02-01 Kenichi Handa <handa@m17n.org>
19017
19018 * coding.h (make_conversion_work_buffer): Adjust prototype.
19019 (code_conversion_restore): Don't extern it.
19020
19021 * coding.c (detected_mask): Delete unused variable.
19022 (decode_coding_iso_2022): Pay attention to the byte sequence of
19023 CTEXT extended segment, and retain those bytes as is.
19024 (decode_coding_ccl): Delete unused variable `valids'.
19025 (setup_coding_system): Delete unused variable `category'.
19026 (consume_chars): Delete unused variable `category'. Make it work
19027 for non-multibyte case.
19028 (make_conversion_work_buffer): Change argument.
19029 (saved_coding): Delete unused variable.
19030 (code_conversion_restore): Don't check saved_coding->destination.
19031 (code_conversion_save): New function.
19032 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
19033 instead of record_unwind_protect.
19034 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
19035 (detect_coding_system): Delete unused variable `mask'.
19036 (Fdefine_coding_system_internal): Delete unused variable id.
19037
19038 * fileio.c (kill_workbuf_unwind): New function.
19039 (Finsert_file_contents): On replacing, call
19040 make_conversion_work_buffer with correct args, and call
19041 record_unwind_protect with the first arg kill_workbuf_unwind.
19042
19043 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
19044
190452008-02-01 Kenichi Handa <handa@m17n.org>
19046
19047 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
19048 (fontset_add): Fix for the case that TO is less than TO1.
19049 (Ffontset_info): Don't use fallback fontset on checking the
19050 default fontset.
19051 (dump_fontset): New function for debugging.
19052
19053 * coding.c (Fdefine_coding_system_internal): Fix for the case that
19054 coding_type is Qcharset.
19055
190562008-02-01 Kenichi Handa <handa@m17n.org>
19057
19058 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
19059 (map_char_table): Don't inherit the value from the parent on
19060 initializing VAL. Adjust for the above change.
19061
190622008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * coding.c (Qsignature, Qendian): Delete these variables.
19065 (syms_of_coding): Don't initialize them.
19066 (CATEGORY_MASK_UTF_16_AUTO): New macro.
19067 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
19068 detect_info->found.
19069 (decode_coding_utf_16): Don't detect BOM here.
19070 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
19071 is NOT utf_16_without_bom.
19072 (setup_coding_system): For a coding system of type utf-16, check
19073 if the attribute :endian is Qbig or not (not nil or not), and set
19074 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
19075 (detect_coding): If coding type is utf-16 and BOM detection is
19076 required, detect it.
19077 (Fdefine_coding_system_internal): For a coding system of type
19078 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
19079
190802008-02-01 Kenichi Handa <handa@m17n.org>
19081
19082 * coding.c (coding_set_source): Fix for the case that the current
19083 buffer is different from coding->src_object.
19084 (decode_coding_object): Don't use the conversion work buffer if
19085 DST_OBJECT is a buffer.
19086
190872008-02-01 Dave Love <fx@gnu.org>
19088
19089 * lread.c (read_emacs_mule_char) [len==2]: Index
19090 emacs_mule_charset correctly.
19091
190922008-02-01 Dave Love <fx@gnu.org>
19093
19094 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
19095 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
19096 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
19097 treated specially.)
19098 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
19099 (detected_mask): Remove Big5 bits.
19100
191012008-02-01 Kenichi Handa <handa@m17n.org>
19102
19103 The following changes are to make the font rescaling facility
19104 compatible with Emacs 21.
19105
19106 * xfaces.c (Vface_font_rescale_alist): Rename from
19107 Vface_resizing_fonts.
19108 (struct font_name): Rename member resizing_ratio to rescale_ratio.
19109 (font_rescale_ratio): Rename from font_resizing_ratio.
19110 (split_font_name): Set font->rescale_ratio.
19111 (better_font_p): Pay attention to font->rescale_ratio.
19112 (build_scalable_font_name): Likewise. Change RESX, and RESY
19113 fields.
19114 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19115
191162008-02-01 Kenichi Handa <handa@m17n.org>
19117
19118 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19119 (Qutf_16_le): Remove these variables.
19120 (syms_of_coding): Don't DEFSYM them.
19121 (decode_coding_utf_16): Fix handling of BOM.
19122 (encode_coding_utf_16): Fix handling of BOM.
19123
191242008-02-01 Kenichi Handa <handa@m17n.org>
19125
19126 * fileio.c (Finsert_file_contents): On replacing, before decoding
19127 the file into the work buffer, set point of the work buffer to the end.
19128
191292008-02-01 Dave Love <fx@gnu.org>
19130
19131 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19132
191332008-02-01 Dave Love <fx@gnu.org>
19134
19135 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19136 and fix C types.
19137
191382008-02-01 Kenichi Handa <handa@m17n.org>
19139
19140 * xdisp.c (SKIP_GLYPHS): New macro.
19141 (set_cursor_from_row): Pay attention to string display properties.
19142
19143 * category.c (copy_category_entry): Fix for the case that RANGE
19144 is an integer.
19145
19146 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19147
19148 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19149
191502008-02-01 Kenichi Handa <handa@m17n.org>
19151
19152 * charset.c (Fcharset_id_internal): New function.
19153 (syms_of_charset): Defsubr it.
19154
19155 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19156 with the last arg charset_list acquired from coding.
19157 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19158 the attribute coding_attr_ccl_valids.
19159
19160 * coding.h (enum define_coding_ccl_arg_index): Set the first
19161 member coding_arg_ccl_decoder to coding_arg_max.
19162
19163 * ccl.h (ccl_driver): Adjust prototype.
19164
19165 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19166 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19167 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19168 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19169 last arg Qnil.
19170
191712008-02-01 Kenichi Handa <handa@m17n.org>
19172
19173 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19174 call encode_char.
19175
19176 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19177
191782008-02-01 Dave Love <fx@gnu.org>
19179
19180 * composite.c (syms_of_composite): Make composition_hash_table weak.
19181
191822008-02-01 Kenichi Handa <handa@m17n.org>
19183
19184 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19185 (font_name_registry): Don't extern them.
19186 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19187
19188 * fontset.h (Qfontset): Don't extern it.
19189 (new_fontset_from_font_name): Extern it.
19190
19191 * fontset.c: Give 8 extra slots to fontset objects.
19192 (Qfontset_info): New variable.
19193 (syms_of_fontset): Defsym it.
19194 (FONTSET_FALLBACK): New macro.
19195 (fontset_face): Try also the default fontset.
19196 (make_fontset): Realize a fallback fontset from the default fontset.
19197 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19198 using split_font_name_into_vector and build_font_name_from_vector.
19199 (Fset_fontset_font): Access the elements of font_spec by enum
19200 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19201 name by using split_font_name_into_vector.
19202 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19203 generate a proper font name from the fontset name. Update
19204 Vfontset_alias_alist.
19205 (n_auto_fontsets): New variable.
19206 (new_fontset_from_font_name): New function.
19207 (Ffont_info): Store the information about fonts generated from the
19208 default fontset in the first extra slot of the returned char-table.
19209
19210 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19211 (font_name_registry): Delete function.
19212 (split_font_name_into_vector): New function.
19213 (build_font_name_from_vector): New function.
19214 (font_list): The argument REGISTRY is now a list of registry names.
19215 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19216 specifies an explicit font name, return the name as is. Make a
19217 list of registy names.
19218
19219 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19220 of x_new_fontset.
19221 (Fx_create_frame): Don't call x_new_fontset here. Just use
19222 x_list_fonts to check the existence of fonts.
19223
19224 * xterm.h (x_new_fontset): Adjust prototype.
19225
19226 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19227 string. Use new_fontset_from_font_name to create a fontset from a
19228 font name.
19229
192302008-02-01 Kenichi Handa <handa@m17n.org>
19231
19232 * syntax.c (Vfind_word_boundary_function_table): New name for
19233 Vnext_word_boundary_function_table.
19234 (find-word-boundary-function-table): New name for
19235 next-word-boundary-function-table.
19236
192372008-02-01 Dave Love <fx@gnu.org>
19238
19239 * Makefile.in: Fix some dependencies.
19240
19241 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19242 set it to nil before returning.
19243
19244 * composite.c (update_compositions): Fix type error.
19245
19246 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19247
192482008-02-01 Kenichi Handa <handa@m17n.org>
19249
19250 * xterm.c (x_new_font): Optimize for the case that the font is
19251 already set for the frame.
19252
192532008-02-01 Kenichi Handa <handa@m17n.org>
19254
19255 * chartab.c (char_table_ascii): Check if the char table contents
19256 is sub-char-table or not.
19257 (char_table_set, char_table_set_range): Fix argument to
19258 char_table_ascii.
19259
19260 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19261 (detect_coding_utf_8, detect_coding_utf_16)
19262 (detect_coding_emacs_mule, detect_coding_iso_2022)
19263 (detect_coding_sjis, detect_coding_big5)
19264 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19265 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19266 sequence is valid in this coding system. Change callers.
19267 (MAX_ANNOTATION_LENGTH): New macro.
19268 (ADD_ANNOTATION_DATA): New macro.
19269 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19270 ADD_ANNOTATION_DATA. Change the format of annotation data.
19271 (ADD_CHARSET_DATA): New macro.
19272 (emacs_mule_char): New argument ID. Change callers.
19273 (decode_coding_emacs_mule, decode_coding_iso_2022)
19274 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19275 Produce charset annotation data in coding->charbuf.
19276 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19277 to charset annotation data in coding->charbuf.
19278 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19279 coding->common_flags if the coding system is iso-2022 based and
19280 uses designation.
19281 (produce_composition): Adjust for the new annotation data format.
19282 (produce_charset): New function.
19283 (produce_annotation): Handle charset annotation.
19284 (handle_composition_annotation, handle_charset_annotation): New
19285 functions.
19286 (consume_chars): Handle charset annotation. Utilize the above two
19287 functions.
19288 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19289 buffer, get the deleted text as a string and set
19290 coding->src_object to that string.
19291 (detect_coding, detect_coding_system): Use the new struct
19292 coding_detection_info.
19293
19294 * coding.h (struct coding_detection_info): New structure.
19295 (struct coding_system): Adjust prototype of the member `detector'.
19296 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19297
192982008-02-01 Kenichi Handa <handa@m17n.org>
19299
19300 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19301
193022008-02-01 Dave Love <fx@gnu.org>
19303
19304 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19305 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19306 to new local and nullify apropos_accumulate before returning.
19307 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19308
193092008-02-01 Kenichi Handa <handa@m17n.org>
19310
19311 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19312 correctly.
e3eea1fc 19313
aac0c6e3
MR
193142008-02-01 Dave Love <fx@gnu.org>
19315
19316 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19317
193182008-02-01 Kenichi Handa <handa@m17n.org>
19319
19320 The following changes are to make character composition happen
19321 automatically on displaying.
19322
19323 * Makefile.in (lisp, shortlisp): Add composite.elc.
19324
19325 * composite.h (Qauto_composed, Vauto_composition_function)
19326 (Qauto_composition_function): Extern them.
19327
19328 * composite.c (Vcomposition_function_table)
19329 (Qcomposition_function_table): Delete variables.
19330 (Qauto_composed, Vauto_composition_function)
19331 (Qauto_composition_function): New variables.
19332 (run_composition_function): Don't call
19333 compose-chars-after-function.
19334 (update_compositions): Clear `auto-composed' text property.
19335 (compose_chars_in_text): Delete this function.
19336 (syms_of_composite): Staticpro Qauto_composed and
19337 Qauto_composition_function. Declare Vauto_composition_function as
19338 a Lisp variable.
19339
19340 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19341
19342 * xdisp.c (it_props): Add an entry for Qauto_composed.
19343 (handle_auto_composed_prop): New function.
19344
19345 * xselect.c (selection_data_to_lisp_data): Don't call
19346 compose_chars_in_text.
19347
193482008-02-01 Dave Love <fx@gnu.org>
19349
19350 * keyboard.c (read_char): Modify checking around use of
19351 Vkeyboard_translate_table.
19352
19353 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19354 and fix C types.
19355
193562008-02-01 Kenichi Handa <handa@m17n.org>
19357
19358 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19359 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19360 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19361 the case that the last byte is '\r' correctly.
19362 (decode_coding): Flush out the unprocessed data correctly.
19363 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19364
193652008-02-01 Dave Love <fx@gnu.org>
19366
19367 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19368 Add XK_ISO... case.
19369 (xaw_scroll_callback): Revert last change.
19370
193712008-02-01 Kenichi Handa <handa@m17n.org>
19372
19373 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19374
193752008-02-01 Kenichi Handa <handa@m17n.org>
19376
19377 * xfaces.c (Vface_resizing_fonts): New variable.
19378 (struct font_name): New member `resizing_ratio'.
19379 (font_resizing_ratio): New function.
19380 (split_font_name): Set font->resizing_ratio.
19381 (better_font_p): Pay attention to font->resizing_ratio.
19382 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19383 RESX, and RESY fields.
19384 (try_alternative_families): Try scalable fonts if
19385 Vscalable_fonts_allowed is not Qt.
19386 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19387
193882008-02-01 Dave Love <fx@gnu.org>
19389
19390 * xterm.c (xaw_scroll_callback): Cast correctly.
19391
193922008-02-01 Dave Love <fx@gnu.org>
19393
19394 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19395 (lispy_kana_keys): Comment out.
19396 (make_lispy_event) [XK_kana_A]: Comment out.
19397
19398 * xterm.c (xaw_scroll_callback): Cast call_data.
19399 (XTread_socket): Deal with ASCII keysyms.
19400 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19401
194022008-02-01 Dave Love <fx@gnu.org>
19403
19404 * xterm.c (Vx_keysym_table): New.
19405 (syms_of_xterm): Initialize it.
19406 (XTread_socket): Use it.
19407 From head: Eliminate incorrect optimization that tried to avoid
19408 decoding the output of X*LookupString.
19409 (x_get_font_repertory): Delete charset declaration.
19410
194112008-02-01 Kenichi Handa <handa@m17n.org>
19412
19413 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19414 return 0.
19415 (Fdefine_coding_system_internal): Setup
19416 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19417
194182008-02-01 Dave Love <fx@gnu.org>
19419
19420 * coding.c (Fcheck_coding_system): Doc fix.
19421
19422 * editfns.c (Finsert_byte): Return a proper value.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * coding.c (decode_coding): Fix args to translate_chars. Pay
19427 attention to Vstandard_translation_table_for_decode.
19428 (encode_coding): Fix args to translate_chars. Pay attention to
19429 Vstandard_translation_table_for_encode.
19430
19431 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19432 SINGLE_BYTE_CHAR_P.
19433
19434 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19435 not by SINGLE_BYTE_CHAR_P.
19436
19437 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19438 SINGLE_BYTE_CHAR_P.
19439
19440 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19441 SINGLE_BYTE_CHAR_P.
19442
19443 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19444 by SINGLE_BYTE_CHAR_P.
19445
19446 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19447 SINGLE_BYTE_CHAR_P.
19448
194492008-02-01 Dave Love <fx@gnu.org>
19450
19451 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19452
194532008-02-01 Dave Love <fx@gnu.org>
19454
19455 * fns.c (Flanginfo): Fix typo.
19456
19457 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19458
194592008-02-01 Kenichi Handa <handa@m17n.org>
19460
19461 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19462 (detect_coding_emacs_mule, detect_coding_iso_2022)
19463 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19464 incomplete byte sequence. Don't update *mask when correctly detected.
19465 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19466 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19467 (detect_coding, detect_coding_system): Adjust for the changes above.
19468
194692008-02-01 Kenichi Handa <handa@m17n.org>
19470
19471 * character.c (char_string): Rename from
19472 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19473 (string_char): Rename from string_char.
19474
19475 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19476 if C is greater than MAX_3_BYTE_CHAR.
19477 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19478 string_char instead of string_char_with_unification.
19479
194802008-02-01 Dave Love <fx@gnu.org>
19481
19482 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19483
194842008-02-01 Kenichi Handa <handa@m17n.org>
19485
19486 * keymap.c (push_key_description): Pay attention to force_multibyte.
19487
19488 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19489
194902008-02-01 Dave Love <fx@gnu.org>
19491
19492 * charset.c (define_charset_internal): Rename `supprementary'.
19493
19494 * Makefile.in (lisp, shortlisp): Remove latin-N.
19495
194962008-02-01 Dave Love <fx@gnu.org>
19497
19498 * xfns.c (x_window, x_window): Use use_xim.
19499
19500 * xterm.c (use_xim): Initialize.
19501 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19502 (x_term_init): Maybe set use_xim.
19503
19504 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19505
195062008-02-01 Kenichi Handa <handa@m17n.org>
19507
19508 * search.c (search_buffer): Fix case-fold-search of multibyte
19509 characters.
19510 (boyer_moore): Rename the last argument to char_high_bits.
19511
195122008-02-01 Kenichi Handa <handa@m17n.org>
19513
19514 * xdisp.c (display_string): Fix for the case of zero width glyph.
19515
19516 * xfns.c (x_set_font): Change the error message of the case that
19517 x_new_fontset returns Qt.
19518
19519 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19520 (Finternal_set_lisp_face_attribute): Use signal_error for the
19521 error of invalid fontset.
19522
19523 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19524 fontset, return Qt.
19525
195262008-02-01 Dave Love <fx@gnu.org>
19527
19528 * unexelf.c (unexec): Make .got handling not SGI-specific.
19529
19530 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19531
19532 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19533
19534 * keyboard.c (read_key_sequence): Fix type error.
19535
19536 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19537 type error.
19538
19539 * fontset.c (fontset_add): Return Lisp_Object.
19540
195412008-02-01 Dave Love <fx@gnu.org>
19542
19543 * charset.h (charset_ordered_list_tick): Declare extern.
19544
195452008-02-01 Kenichi Handa <handa@m17n.org>
19546
19547 The following changes (and some of 2008-02-01 changes of mine) are
19548 for handling syntax, category, and case conversion for unibyte
19549 characters by converting them to multibyte on the fly. With these
19550 changes, we don't have to setup syntax and case tables for unibyte
19551 characters in each language environment.
19552
19553 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19554 multibyte if necessary.
19555
19556 * bytecode.c (Fbyte_code): Likewise.
19557
19558 * character.h (LEADING_CODE_LATIN_1_MIN)
19559 (LEADING_CODE_LATIN_1_MAX): New macros.
19560 (unibyte_to_multibyte_table): Extern it.
19561 (unibyte_char_to_multibyte): New macro.
19562 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19563 (CHAR_LEADING_CODE): New macro.
19564 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19565
19566 * character.c (unibyte_to_multibyte_table): New variable.
19567 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19568 (multibyte_char_to_unibyte): If C is an eight-bit character,
19569 convert it to the corresponding byte value.
19570
19571 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19572 not 1, signals an error. Update the elements of
19573 unibyte_to_multibyte_table.
19574 (init_charset_once): Initialize unibyte_to_multibyte_table.
19575 (syms_of_charset): Define the charset `iso-8859-1'.
19576
19577 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19578 as is without converting it to unibyte. In a unibyte buffer,
19579 convert C to multibyte before checking the syntax.
19580
19581 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19582
19583 * minibuf.c (Fminibuffer_complete_word): Use the macro
19584 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19585
19586 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19587
19588 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19589 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19590 that is zero, convert an eight-bit char to multibyte.
19591 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19592 non-emacs case.
19593 (PATFETCH): Convert an eight-bit char to multibyte.
19594 (HANDLE_UNIBYTE_RANGE): New macro.
19595 (regex_compile): Setup the compiled pattern for multibyte chars
19596 even if the given regex string is unibyte. Use PATFETCH_RAW
19597 instead of PATFETCH in many places. To handle `charset'
19598 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19599 only for ASCII chars.
19600 (analyse_first) <exactn>: Simplify because the compiled pattern
19601 is multibyte.
19602 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19603 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19604 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19605 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19606 multibyte always 1.
19607 (re_search_2): In emacs, set the locale variable multibyte to 1,
19608 otherwise to 0. New local variable target_multibyte. Check it
19609 to decide the multibyteness of STR1 and STR2. If
19610 target_multibyte is zero, convert unibyte chars to multibyte
19611 before translating and checking fastmap.
19612 (TARGET_CHAR_AND_LENGTH): New macro.
19613 (re_match_2_internal): In emacs, set the locale variable multibyte
19614 to 1, otherwise to 0. New local variable target_multibyte. Check
19615 it to decide the multibyteness of STR1 and STR2. Use
19616 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19617 <charset, charset_not>: If multibyte is nonzero, check fastmap
19618 only for ASCII chars. Call bcmp_translate with
19619 target_multibyte, not with multibyte.
19620 <begline>: Declare the local variable C as `unsigned'.
19621 (bcmp_translate): Change the last arg name to target_multibyte.
19622
19623 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19624 the regexp pattern and the matching target. Set cp->buf.multibyte
19625 to the multibyteness of the regexp pattern. Set
19626 cp->but.target_multibyte to the multibyteness of the matching target.
19627 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19628 FETCH_STRING_CHAR_ADVANCE.
19629 (Freplace_match): Convert unibyte chars to multibyte.
19630
19631 * syntax.c (char_quoted, back_comment, scan_words)
19632 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19633 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19634 unibyte chars to multibyte.
19635 (skip_chars): Delete the arg syntaxp, and move the code for
19636 handling syntaxes to skip_syntaxes. Change callers.
19637 Fix the case that the multibyteness of STRING and the current
19638 buffer doesn't match.
19639 (skip_syntaxes): New function.
19640 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19641 SINGLE_BYTE_CHAR_P.
19642
196432008-02-01 Kenichi Handa <handa@m17n.org>
19644
19645 * xfaces.c (QCfontset): New variable.
19646 (LFACE_FONTSET): New macro.
19647 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19648 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19649 (Finternal_set_lisp_face_attribute)
19650 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19651 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19652 check also LFACE_FONTSET_INDEX.
19653 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19654 attrs[LFACE_FONT_INDEX].
19655 (syms_of_xfaces): Intern and staticpro QCfontset.
19656
19657 * dispextern.h (enum lface_attribute_index): New member
19658 LFACE_FONTSET_INDEX.
19659
19660 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * coding.c (coding_set_destination): Fix coding->destination for
19665 the case converting a region.
19666 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19667 (encode_coding_object): Fix coding->dst_pos and
19668 coding->dst_pos_byte for the case converting a region.
19669
19670 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19671
19672 * character.h (BYTE8_STRING): New macro.
19673
19674 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19675
196762008-02-01 Kenichi Handa <handa@m17n.org>
19677
19678 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19679 characters by octal form.
19680
19681 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19682
19683 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19684 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19685 _fetch_multibyte_char_len.
19686 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19687
19688 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19689
19690 * casefiddle.c (casify_object): Simplify. Handle the case that
19691 the case conversion change the byte length.
19692 (casify_region): Likewise.
19693
19694 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19695
19696 * character.c (_fetch_multibyte_char_len): Delete this variable.
19697 (syms_of_character): Setup Vprintable_chars.
19698
19699 * editfns.c (Fchar_equal): Fix for the unibyte case.
19700 (Finsert_byte): New function.
19701 (syms_of_editfns): Defsubr it.
19702
19703 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19704 of direct code 0x3ffff.
19705
19706 * search.c (Freplace_match): Fix for the unibyte case.
19707
197082008-02-01 Kenichi Handa <handa@m17n.org>
19709
19710 * lread.c (safe_to_load_p): Fix the logic.
19711
19712 * syntax.c (scan_words): Don't treat characters belonging to
19713 different scripts as constituting a word.
19714
19715 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19716
19717 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19718
19719 * emacs.c (main): In the case of --unibyte, instead of aborting on
19720 finding non-empty buffer, make it unibyte.
19721
197222008-02-01 Kenichi Handa <handa@m17n.org>
19723
19724 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19725 to create a fontset.
19726
197272008-02-01 Dave Love <fx@gnu.org>
19728
19729 * character.c (Funibyte_char_to_multibyte): Doc fix.
19730
19731 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19732
197332008-02-01 Kenichi Handa <handa@m17n.org>
19734
19735 * fontset.c (fontset_add): Make the type `int'.
19736 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19737
19738 * character.c (unibyte_char_to_multibyte)
19739 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19740 charset_unibyte, not charset_primary.
19741
19742 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19743
19744 * charset.c (charset_unibyte): Rename from charset_primary.
19745 (Funibyte_charset): Rename from Fprimary_charset.
19746 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19747 (syms_of_charset): Adjust for the above changes.
19748
19749 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19750 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19751 it->multibyte_p is zero.
19752
19753 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19754 Delete extern.
19755
197562008-02-01 Kenichi Handa <handa@m17n.org>
19757
19758 * coding.c (Fdefine_coding_system_internal): Fix category setting
19759 for a coding system of type iso-2022.
19760
197612008-02-01 Kenichi Handa <handa@m17n.org>
19762
19763 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19764
197652008-02-01 Kenichi Handa <handa@m17n.org>
19766
19767 * syntax.c (Vnext_word_boundary_function_table): New variable.
19768 (next-word-boundary-function-table): Declare it as a Lisp variable
19769 in syms_of_syntax.
19770 (scan_words): Call functions in Vnext_word_boundary_function_table
19771 if any.
19772
19773 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19774
19775 * fontset.c (fs_load_font): If fontp->charset is not negative,
19776 return fontp without setting its members.
19777
197782008-02-01 Dave Love <fx@gnu.org>
19779
19780 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19781
19782 * m/sparc.h (HAVE_ALLOCA): Delete.
19783
19784 * s/irix6-5.h: Don't include strings.h.
19785 (bcopy, bzero, bcmp): Don't undef.
19786
19787 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19788
19789 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19790 (TIOCSIGSEND): Don't test IRIX6.
19791 (bcopy, bzero, bcmp): Define conditionally.
19792
197932008-02-01 Kenichi Handa <handa@m17n.org>
19794
19795 * buffer.c (Qas, Qmake, Qto): New variables.
19796 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19797 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19798
19799 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19800 we are inserting a process output into a multibyte buffer.
19801
19802 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19803 multibyte_char_to_unibyte.
19804
19805 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19806 by the primary charset, make it eight-bit char.
19807 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19808
19809 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19810 (charset_8_bit__control, charset_8_bit_graphic)
19811 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19812 (define_charset_internal): New function.
19813 (syms_of_charset): Call define_charset_internal for pre-defined
19814 charsets.
19815
19816 * charset.h (charset_8_bit): Extern it.
19817
19818 * coding.c (make_conversion_work_buffer): Adjust for the change
19819 of Fset_buffer_multibyte.
19820 (encode_coding_raw_text): Increment p0 in the loop.
19821
19822 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19823
19824 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19825 for the change of Fset_buffer_multibyte.
19826
19827 * fns.c (Fstring_to_multibyte): New function.
19828 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19829
198302008-02-01 Dave Love <fx@gnu.org>
19831
19832 * xfns.c (x_put_x_image): Declare args.
19833
19834 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19835 (try_font_list): Declare an arg.
19836
19837 * xdisp.c (message2_nolog, set_message): Declare an arg.
19838
19839 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19840
19841 * syntax.c (scan_sexps_forward): Declare an arg.
19842
19843 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19844 Declare an arg.
19845
19846 * lisp.h (Fnew_fontset): Declare.
19847
19848 * keymap.c (push_key_description): Call CHARACTERP correctly.
19849
19850 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19851 (face_for_char): Delete unused vars.
19852 (Fset_fontset_font): Doc fix. Delete unused vars.
19853
19854 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19855
19856 * composite.c (update_compositions): Declare arg.
19857
19858 * cm.c (calccost, cmgoto): Declare args.
19859
19860 * charset.c: Remove `emacs' conditional. Doc fixes.
19861 (map_char_table_for_charset): Declare.
19862
19863 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19864
19865 * ccl.c: Remove `emacs' conditional.
19866
198672008-02-01 Kenichi Handa <handa@m17n.org>
19868
19869 The following changes are to allow specifying multiple font
19870 patterns for a character range (specified by script or charset).
19871
19872 * Makefile.in (abbrev.o): Depend on syntax.h.
19873 (xfaces.o): Depend on charset.h.
19874
19875 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19876 SINGLE_BYTE_CHAR_P.
19877
19878 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19879
19880 * character.h (Vchar_script_table): Extern it.
19881
19882 * character.c (Vscript_alist): Delete.
19883 (Vchar_script_table, Qchar_script_table): New variable.
19884 (syms_of_character): Declare Vchar_script_table as a lisp variable
19885 and initialize it.
19886
19887 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19888 have property char-table-extra-slots, make no extra slot.
19889
19890 * dispextern.h (struct face): Delete member `charset'.
19891 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19892 SINGLE_BYTE_CHAR_P.
19893 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19894 Add prototypes.
19895 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19896 (generate_ascii_font_name): Rename from generate_ascii_font.
19897
19898 * fontset.h (get_font_repertory_func): New prototype.
19899 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19900 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19901
19902 * fontset.c (Qprepend, Qappend): New variables.
19903 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19904 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19905 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19906 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19907 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19908 (load_font_get_repertory): New functions.
19909 (fontset_set): Delete.
19910 (fontset_face): New arg FACE. Return face ID, not face.
19911 Complete re-write to handle new fontset structure. Change caller.
19912 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19913 (face_for_char): Don't call lookup_face.
19914 (make_fontset_for_ascii_face): New arg FACE.
19915 (fs_load_font): New arg CHARSET_ID. Don't check
19916 Vfont_encoding_alist here.
19917 (find_font_encoding): New function.
19918 (list_fontsets): Use STRINGP, not ! NILP.
19919 (accumulate_script_ranges): New function.
19920 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19921 re-written to handle new fontset structure.
19922 (Ffontset_font): Return a copy of element.
19923 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19924 docstring of font-encoding-alist.
19925
19926 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19927 (Fset_fotset_font): Fix arguments to 5.
19928
19929 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19930
19931 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19932 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19933 (highlight_trailing_whitespace): Adjust for the change of
19934 lookup_named_face.
19935
19936 * xfaces.c: Include charset.h.
19937 (load_face_font): Delete argument C. Change caller.
19938 (generate_ascii_font_name): Rename from generate_ascii_font.
19939 (font_name_registry): New function.
19940 (cache_face): Store ascii faces before non-ascii faces in buckets.
19941 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19942 Lookup only ascii faces.
19943 (lookup_non_ascii_face): New function.
19944 (lookup_named_face): Delete argument C. Change caller.
19945 (lookup_derived_face): Delete argument C. Change caller.
19946 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19947 a string, just call font_list with it.
19948 (choose_face_font): Delete arguments FACE and C. New arg
19949 FONT_SPEC. Change caller.
19950 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19951 Change caller.
19952 (realize_non_ascii_face): New function.
19953 (realize_x_face): Call load_face_font here.
19954 (realize_tty_face): Delete argument C. Change caller.
19955 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19956 get a face ID.
19957 (dump_realized_face): Don't print charset of FACE.
19958
19959 * xfns.c (x_set_font): Always call x_new_fontset and
19960 store_frame_parameter.
19961 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19962 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19963
19964 * xterm.h (x_get_font_repertory): Extern it.
19965
19966 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19967 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19968 it->multibyte_p is zero.
19969 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19970 (x_new_fontset): If FONTSETNAME doesn't match any existing
19971 fontsets, create a new one.
19972 (x_get_font_repertory): New function.
19973
199742008-02-01 Kenichi Handa <handa@m17n.org>
19975
19976 * coding.c (Ffind_coding_systems_region_internal): Detect an
19977 ASCII only string correctly.
19978
19979 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19980 version is 0.
19981
199822008-02-01 Kenichi Handa <handa@m17n.org>
19983
19984 * lread.c: Include "coding.h".
19985 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19986 (load_each_byte, unread_char): New variables.
19987 (readchar_backlog): Delete.
19988 (readchar): Return a character unless load_each_byte is nonzero.
19989 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19990 cons. If unread_char is not -1, simply return it.
19991 (unreadchar): Handle the case that readcharfun is
19992 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19993 (read_multibyte): Delete.
19994 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19995 (read_emacs_mule_char): New functions.
19996 (Fload): Even if the file doesn't have the extension ".elc", if
19997 safe_to_load_p returns a positive version number, assume that the
19998 file contains bytecompiled code. If the version is less than 22,
19999 load the file while decoding multibyte sequences by emacs-mule.
20000 (readevalloop): Don't use readchar_backlog.
20001 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
20002 (Fread_from_string): Pay attention to the case that STREAM is a cons.
20003 (read_escape): Delete the arg BYTEREP.
20004 (read1): Set load_each_byte to 1 temporarily while handling
20005 #@NUMBER. Don't call read_multibyte.
20006 (read_vector): Call Fread with a cons. If readcharfun is
20007 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
20008 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
20009 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
20010 and Qload_force_doc_strings.
20011
200122008-02-01 Kenichi Handa <handa@m17n.org>
20013
20014 * xdisp.c (face_before_or_after_it_pos): Call
20015 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20016
200172008-02-01 Kenichi Handa <handa@m17n.org>
20018
20019 * character.h (TRAILING_CODE_P): New macro.
20020 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
20021 (string_char_with_unification): Fix prototype.
20022 (Vscript_alist): Extern it.
20023
20024 * character.c (Vscript_alist): New variable.
20025 (string_char_with_unification, str_as_unibyte)
20026 (string_escape_byte8): Add `const' to local variables.
20027 (syms_of_character): Declare script-alist as a Lisp variable.
20028
20029 * charset.h (Vcharset_ordered_list): Extern it.
20030 (charset_ordered_list_tick): Extern it.
20031 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
20032 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
20033 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
20034 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
20035 (Funify_charset): Adjust for the change of Funify_charset.
20036
20037 * charset.c (charset_ordered_list_tick): New variable.
20038 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
20039 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
20040 deunify intead of unify a charset.
20041 (string_xstring_p): Add `const' to local variables.
20042 (find_charsets_in_text): Add `const' to arguments and local variables.
20043 (encode_char): Adjust for the change of Funify_charset. Fix
20044 detecting of invalid code.
20045 (Fset_charset_priority): Increment charset_ordered_list_tick.
20046 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
20047 and TO_CODE.
20048
20049 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
20050 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
20051 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
20052 (decode_coding_ccl, consume_chars)
20053 (Ffind_coding_systems_region_internal)
20054 (Fcheck_coding_systems_region): Add `const' to local variables.
20055
20056 * print.c (print_object): Use octal form for printing the
20057 contents of a bool vector.
20058
200592008-02-01 Dave Love <fx@gnu.org>
20060
20061 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
20062 <version == 20>: Refuse to load.
20063
200642008-02-01 Dave Love <fx@gnu.org>
20065
20066 * fns.c: Move coding.h.
20067 (Qcodeset, Qdays, Qmonths): New.
20068 (concat): Use CHARACTERP instead of INTEGERP.
20069 (Flocale_codeset): Delete.
20070 (Flanginfo): New function.
20071 (syms_of_fns): Change accordingly.
20072
20073 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
20074
200752008-02-01 Dave Love <fx@gnu.org>
20076
20077 * casetab.c (init_casetab_once, init_casetab_once): Fix
20078 CHAR_TABLE_SET call.
20079
20080 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
20081
20082 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
20083
20084 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
20085 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
20086 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
20087
20088 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
20089
20090 * coding.c (ENCODE_DESIGNATION, decode_eol)
20091 (make_conversion_work_buffer, code_conversion_restore)
20092 (Fdefine_coding_system_internal): Convert Lisp types.
20093 (code_conversion_restore): Use EQ, not ==.
20094 (Fencode_coding_string): Fix code_convert_string call.
20095
20096 * coding.h (code_convert_region): Fix prototype.
20097
20098 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
20099
20100 * fontset.c (fontset_ref, fontset_set, fs_load_font)
20101 (Ffontset_info): Convert Lisp types.
20102
20103 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
20104
20105 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
20106
20107 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
20108
20109 * chartab.c: Include "...h", not <...h> in some cases.
20110
20111 * callproc.c (Fcall_process): Remove unused variables.
20112
201132008-02-01 Dave Love <fx@gnu.org>
20114
20115 * coding.c (Fset_coding_system_priority): Allow null arg list.
20116
201172008-02-01 Dave Love <fx@gnu.org>
20118
20119 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20120 (Fself_insert_and_exit): Use CHARACTERP.
20121
20122 * callproc.c (Fcall_process): Remove unused vars.
20123
20124 * xterm.c (XTread_socket): Add extra dead keysyms.
20125
20126 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20127
20128 * dispextern.h: Remove prototypes for redraw_frame,
20129 redraw_garbaged_frames.
20130
20131 * cmds.c (Fself_insert_command): Use CHARACTERP.
20132
20133 * chartab.c (make_sub_char_table): Remove unused var.
20134 (Fset_char_table_default, Fmap_char_table): Doc fix.
20135
20136 * keymap.c (access_keymap): Remove generic char code.
20137 (push_key_description): Use CHARACTERP.
20138
201392008-02-01 Dave Love <fx@gnu.org>
20140
20141 * charset.c: Doc fixes.
20142 (Funify_charset): Extra checking.
20143
201442008-02-01 Dave Love <fx@gnu.org>
20145
20146 * lread.c: Remove some unused variables.
20147 (safe_to_load_p): If safe, return the magic number version byte.
20148 (Fload): Maybe use load-with-code-conversion.
20149
201502008-02-01 Kenichi Handa <handa@m17n.org>
20151
20152 * category.c (Fmodify_category_entry): Don't modify the contents
20153 of category_set for characters out of the range. Avoid
20154 unnecessary modification.
20155
20156 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20157 Vchar_unify_table. The default value of the table is now nil.
20158
20159 * character.c (syms_of_character): Setup Vchar_width_table for
20160 eight-bit-control and raw-byte chars.
20161
20162 * charset.h (enum define_charset_arg_index): Delete
20163 charset_arg_parents and add charset_arg_subset and
20164 charset_arg_superset.
20165 (enum charset_attr_index): Delete charset_parents and add
20166 charset_subset and charset_superset.
20167 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20168 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20169 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20170 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20171 (CHARSET_SUPERSET): New macros.
20172 (charset_work): Extern it.
20173 (ENCODE_CHAR): Use charset_work.
20174 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20175 (map_charset_chars): Extern it.
20176
20177 * charset.c (load_charset_map): Set the default value of encoder
20178 and deunifier char-tables to nil.
20179 (map_charset_chars): Change argument. Change callers. Use
20180 map_char_table_for_charset instead of map_char_table.
20181 (Fmap_charset_chars): New optional args from_code and to_code.
20182 (Fdefine_charset_internal): Adjust for the change of
20183 `define-charset' (:parents -> :subset or :superset).
20184 (charset_work): New variable.
20185 (encode_char, syms_of_charset): Adjust for the change of
20186 Fdefine_charset_internal.
20187 (Ffind_charset_string): Setup the vector `charsets' correctly.
20188
20189 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20190 the previous change.
20191 (char_table_ref_and_range): Adjust for the above change.
20192 (map_sub_char_table_for_charset): New function.
20193 (map_char_table_for_charset): New function.
20194
20195 * keymap.c (describe_vector): Handle a char-table directly here.
20196 (describe_char_table): Delete.
20197
20198 * lisp.h (map_charset_chars): Delete.
20199
202002008-02-01 Dave Love <fx@gnu.org>
20201
20202 * fns.c (count_combining): Comment out (unused).
20203 (Flocale_codeset): New.
20204 (syms_of_fns): Defsubr it.
20205
20206 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20207 (size_t): Remove.
20208
202092008-02-01 Dave Love <fx@gnu.org>
20210
20211 * Makefile.in (chartab.o): Depend on charset.h.
20212
202132008-02-01 Kenichi Handa <handa@m17n.org>
20214
20215 * character.c (syms_of_character): Set the default value of
20216 Vprintable_chars to Qnil.
20217
202182008-02-01 Dave Love <fx@gnu.org>
20219
20220 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20221
202222008-02-01 Kenichi Handa <handa@m17n.org>
20223
20224 * charset.c (load_charset_map): Handle the case that from < to
20225 correctly.
20226
20227 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20228 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20229 Pay attention to raw-8-bit chars.
20230
202312008-02-01 Kenichi Handa <handa@m17n.org>
20232
20233 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20234 It is not bytecompiled now.
20235
20236 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20237 (charset_jisx0208): New variables.
20238 (Fdefine_charset_internal): Setup them if appropriate.
20239 (init_charset_once): Initialize them to -1.
20240
20241 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20242 (charset_jisx0208): Extern them.
20243
20244 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20245 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20246 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20247 (setup_iso_safe_charsets): Fix arguments to Fassq.
20248 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20249 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20250 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20251 (encode_coding_iso_2022): Change the 1st arg to
20252 ENCODE_ISO_CHARACTER to a variable.
20253
202542008-02-01 Kenichi Handa <handa@m17n.org>
20255
20256 * charset.h (enum define_charset_arg_index): New enums
20257 charset_arg_min_code and charset_arg_max_code.
20258 (struct charset): New member char_index_offset.
20259
20260 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20261 Take charset->char_index_offset into account.
20262 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20263 args[charset_arg_max_code]. Setup charset.char_index_offset.
20264 (syms_of_charset): Fix args to Fdefine_charset_internal.
20265
202662008-02-01 Dave Love <fx@gnu.org>
20267
20268 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20269
202702008-02-01 Dave Love <fx@gnu.org>
20271
20272 * coding.c: Doc fixes.
20273 (Fcoding_system_aliases): Fix return value.
20274 (Qmac): Remove (duplicated) definition.
20275
202762008-02-01 Dave Love <fx@gnu.org>
20277
362654a6
JB
20278 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20279 New functions.
aac0c6e3
MR
20280
20281 * character.c (Fstring): Doc fix.
20282
20283 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20284
362654a6 20285 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20286 (font-encoding-alist): Doc fix.
20287
202882008-02-01 Dave Love <fx@gnu.org>
20289
20290 * term.c (costs_set): Declare static, non-initialized for pcc.
20291 (encode_terminal_code): Remove unused var.
20292
20293 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20294 for K&R.
20295
20296 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20297
20298 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20299 (suffixes): Move out of make_subsidiaries for K&R.
20300
20301 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20302
20303 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20304
203052008-02-01 Dave Love <fx@gnu.org>
20306
20307 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20308
20309 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20310
203112008-02-01 Yong Lu <lyongu@asia-infonet.com>
20312
20313 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20314
20315 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20316
203172008-02-01 Kenichi Handa <handa@m17n.org>
20318
20319 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20320 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20321
203222008-02-01 Kenichi Handa <handa@m17n.org>
20323
20324 * coding.c (decode_coding_charset): Adjust for the change of
20325 Fdefine_coding_system_internal.
20326 (Fdefine_coding_system_internal): For a coding system of
20327 `charset' type, store a list of charset IDs in
20328 `charset_attr_charset_valids' element of coding attributes.
20329
203302008-02-01 Kenichi Handa <handa@m17n.org>
20331
20332 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20333 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20334 caller. Handle 2-byte and 3-byte charsets correctly.
20335 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20336 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20337 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20338 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20339 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20340 sequence.
20341 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20342 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20343 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20344 and alt&rule composition.
20345 (decode_coding_iso_2022): Handle composition correctly.
20346 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20347
20348 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20349 re-defining a charset. If the charset has :emacs-mule-id, setup
20350 emacs_mule_bytes.
20351 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20352
203532008-02-01 Kenichi Handa <handa@m17n.org>
20354
20355 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20356 (encode_coding_big5, encode_coding_charset): If coding requires safe
20357 encoding, produce a character specified by
20358 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20359
203602008-02-01 Dave Love <fx@gnu.org>
20361
20362 * xterm.c (XSetIMValues): Declare.
20363
20364 * process.c: Conditionally include sys/wait.h, pty.h.
20365
20366 * print.c (print_object): Fix print format for 64-bit systems.
20367
20368 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20369
20370 * buffer.c (emacs_strerror): Declare.
20371
20372 * fontset.c (Fclear_face_cache): Declare.
20373 (accumulate_font_info): Comment-out (unused).
20374 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20375 variables.
20376
20377 * character.h (string_escape_byte8): Declare.
20378
20379 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20380 unused vars.
20381 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20382 (Fmap_charset_chars): Doc fix.
20383
20384 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20385 (Fset_coding_system_priority, Fset_coding_system_priority)
20386 (Fdefine_coding_system_internal): Doc fix.
20387
203882008-02-01 Dave Love <fx@gnu.org>
20389
20390 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20391
203922008-02-01 Kenichi Handa <handa@m17n.org>
20393
20394 * character.c (string_escape_byte8): Make multibyte string with
20395 correct size.
20396
20397 * charset.c (Fmake_char): Delete unnecessary code.
20398
203992008-02-01 Kenichi Handa <handa@m17n.org>
20400
20401 * xfns.c (x_encode_text): Allocate coding.destination here, and
20402 call encode_coding_object with dst_object Qnil.
20403
20404 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20405 multibyte form correctly.
20406
20407 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20408 against Vfont_encoding_alist.
20409
20410 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20411 handling of charset list.
20412 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20413 (decode_coding_object): Move point to coding->dst_pos before
20414 calling post-read-conversion function.
20415 (encode_coding_object): Give correct arguments to
20416 pre-write-conversion. Ignore the return value of
20417 pre-write-conversion function. Pay attention to the case that
20418 pre-write-conversion changes the current buffer. If dst_object is
20419 Qt, even if coding->src_bytes is zero, allocate at least one byte
20420 to coding->destination.
20421
20422 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20423
20424 * charset.c (Fmake_char): Make it more backward compatible.
20425 (Fmap_charset_chars): Fix docstring.
20426
204272008-02-01 Dave Love <fx@gnu.org>
20428
20429 * coding.c: Doc fixes.
20430 (Fdefine_coding_system_alias): Use names, not symbols, in
20431 coding-system-alist.
20432
204332008-02-01 Kenichi Handa <handa@m17n.org>
20434
20435 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20436 of calling free_realized_face.
20437
204382008-02-01 Yong Lu <lyongu@asia-infonet.com>
20439
20440 * charset.c (read_hex): Don't treat SPC as a comment starter.
20441 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20442 (Fdecode_char): Fix typo.
20443
204442008-02-01 Kenichi Handa <handa@m17n.org>
20445
20446 * charset.h (struct charset): New member `code_space_mask'.
20447
20448 * coding.c (coding_set_source): Delete the local variable beg_byte.
20449 (encode_coding_charset, Fdefine_coding_system_internal):
20450 Delete the local variable charset.
20451 (Fdefine_coding_system_internal): Setup
20452 attrs[coding_attr_charset_valids] correctly.
20453
20454 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20455 member to check if CODE is valid or not.
20456 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20457 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20458 is within the range of charset->min_code and carset->max_code.
20459
204602008-02-01 Dave Love <fx@gnu.org>
20461
20462 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20463
20464 * dispextern.h (generate_ascii_font): Fix return type.
20465
20466 * xfaces.c (generate_ascii_font): Fix arg declaration.
20467
20468 * coding.c (coding_inherit_eol_type)
20469 (Fset_terminal_coding_system_internal)
20470 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20471
204722008-02-01 Kenichi Handa <handa@m17n.org>
20473
20474 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20475 multiple charsets correctly.
20476
204772008-02-01 Kenichi Handa <handa@m17n.org>
20478
20479 * search.c (boyer_moore): Fix handling of multibyte character
20480 translation.
20481
20482 * xdisp.c (display_mode_element): When the variable `elt' is
20483 changed, update `this' and `lisp_string'.
20484
204852008-02-01 Kenichi Handa <handa@m17n.org>
20486
20487 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20488
20489 * callproc.c (Fcall_process): Be sure to give the current buffer
20490 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20491
20492 * charset.c (struct charset_map_entries): New struct.
20493 (load_charset_map): Rename from parse_charset_map. New args
20494 entries and n_entries. Change caller.
20495 (load_charset_map_from_file): Rename from load_charset_map.
20496 Change caller. New arg control_flag. Call load_charset_map at
20497 the tail.
20498 (load_charset_map_from_vector): New function.
20499 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20500 (encode_char): If the charset is compact, change a character index
20501 to a code point.
20502
20503 * coding.c (coding_alloc_by_making_gap): Check the case that the
20504 source and destination are the same correctly.
20505 (decode_coding_raw_text): Set coding->consumed_char and
20506 coding->consumed to 0.
20507 (produce_chars): If coding->chars_at_source is nonzero, update
20508 coding->consumed_char and coding->consumed before calling
20509 alloc_destination.
20510 (Fdefine_coding_system_alias): Register ALIAS in
20511 Vcoding_system_alist.
20512 (syms_of_coding): Define `no-conversion' coding system at the tail.
20513
20514 * fileio.c (Finsert_file_contents): Set coding_system instead of
20515 val. If the current buffer is multibyte, always call
20516 decode_coding_gap.
20517
20518 * xfaces.c (try_font_list): Give higher priority to fontset's
20519 family than face's family.
20520
205212008-02-01 Kenichi Handa <handa@m17n.org>
20522
20523 * callproc.c (Fcall_process): Be sure to give the current buffer
20524 to decode_coding_c_string.
20525
20526 * xfaces.c (try_font_list): Give a family specified in a fontset
20527 higher priority than a family specified in a face.
20528
205292008-02-01 Kenichi Handa <handa@m17n.org>
20530
20531 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20532 Fix arguments to insert_from_buffer.
20533
20534 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20535
205362008-02-01 Kenichi Handa <handa@m17n.org>
20537
20538 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20539 (decode_coding_gap): Set coding->dst_multibyte correctly.
20540
205412008-02-01 Kenichi Handa <handa@m17n.org>
20542
20543 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20544 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20545 (encode_coding_utf_16): Substitute coding->default_char for
20546 non-Unicode characters.
20547 (decode_coding): Don't call record_insert here.
20548 (setup_coding_system): Initialize `surrogate' of
20549 coding->spec.utf_16 to 0.
20550 (EMIT_ONE_BYTE): Fix for multibyte case.
20551
20552 * insdel.c (insert_from_gap): Call record_insert.
20553
205542008-02-01 Kenichi Handa <handa@m17n.org>
20555
20556 * casefiddle.c (casify_region): Fix multibyte case.
20557
20558 * character.c (c_string_width): Add return type `int'.
20559 (char_string_with_unification): Delete arg ADVANCED.
20560
20561 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20562 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20563 (CHAR_STRING_ADVANCE): Make it do-while statement.
20564
20565 * chartab.c (sub_char_table_set_range): Optimize for the case
20566 DEPTH == 3. Add workaround code for a GCC optimization bug.
20567
20568 * charset.c (parse_charset_map): Remove an unused variable.
20569
20570 * coding.c: Delete unused variables.
20571
20572 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20573 earlier. If inserted is zero and the coding system doesn't
20574 require flushing, don't call decode_coding_gap.
20575
20576 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20577
205782008-02-01 Kenichi Handa <handa@m17n.org>
20579
20580 The following changes are for using Unicode as an internal
20581 character model, and use UTF-8 format for buffer/string
20582 representation.
20583
20584 * .gdbinit (xchartable): Adjust for the change of char table structure.
20585 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20586
20587 * Makefile.in (obj): Add character.o and chartab.o.
20588 (lisp, shortlisp): Remove utf-8.elc.
20589 (*.o): For many files, change dependency on charset.h to
20590 character.h, and add dependency on character.h.
20591 (character.o, chartab.o): New targets.
20592
20593 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20594 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20595 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20596 of "charset.h".
20597
20598 * dired.c, filelock.c: Include "character.h".
20599
20600 * alloc.c: Include "character.h" instead of "charset.h".
20601 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20602 (syms_of_alloc): Remove defsubr for Smake_char_table.
20603
20604 * buffer.c: Include "character.h" instead of "charset.h", don't
20605 include "coding.h".
20606 (Fset_buffer_multibyte): Adjust for UTF-8.
20607
20608 * buffer.h: EXFUN Fbuffer_live_p.
20609
20610 * callproc.c: Include "character.h" instead of "charset.h".
20611 (Fcall_process): Big change for the new code-conversion APIs.
20612
20613 * casetab.c: Include "character.h" instead of "charset.h".
20614 (set_canon, set_identity, shuffle): Adjust for the new
20615 map_char_table spec.
20616 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20617 accessing the char table structure.
20618
20619 * chartab.c: New file that implements char table.
20620
20621 * category.c: Include "character.h".
20622 (copy_category_entry): New function.
20623 (copy_category_table): Call map_char_table and copy_category_entry.
20624 (Fmake_category_table): Initialize all top-level slots.
20625 (char_category_set): New function.
20626 (modify_lower_category_set): Delete.
20627 (Fmodify_category_entry): Call char_table_ref_and_range.
20628
20629 * category.h (CATEGORY_SET): Just call char_category_set.
20630
20631 * ccl.c: Include "character.h".
20632 (Qccl, Qcclp): New variables.
20633 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20634 it's less than 256.
20635 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20636 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20637 and DST type.
20638 (ccl_driver): Change types of argument, adjust code accordingly.
20639 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20640 ccl_driver.
20641 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20642
20643 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20644 New members src_multibyte, dst_multibyte, consumed, and produced.
20645 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20646 (CODING_SPEC_CCL_PROGRAM): New macro.
20647 (ccl_driver): Update prototype.
20648 (Qccl, Qcclp, Fccl_program_p): Extern them.
20649 (CHECK_CCL_PROGRAM): New macro.
20650
20651 * character.c, character.h, chartab.c: New files.
20652
20653 * charset.c: Mostly re-written. Move character and multibyte sequence
20654 handling codes to character.c.
20655
20656 * charset.h: Mostly re-written. Move character and multibyte sequence
20657 handling codes to character.h.
20658
20659 * coding.c, coding.h: Mostly re-written.
20660
20661 * composite.c: Include "character.h" instead of "charset.h".
20662 (CHAR_WIDTH): Move to character.h.
20663 (HASH_KEY, HASH_VALUE): Delete.
20664
20665 * composite.h (enum composition_method): Change order of enumeration
20666 symbols.
20667
20668 * data.c: Include "character.h" instead of "charset.h".
20669 (Faref): Call CHAR_TABLE_REF for a char table.
20670 (Faset): Call CHAR_TABLE_SET for a char table.
20671
20672 * dispextern.h (free_realized_face, check_face_attribytes)
20673 (generate_ascii_font): Extern them.
20674 (free_realized_multibyte_face): Delete extern.
20675
20676 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20677 table structure.
20678
20679 * editfns.c: Include "character.h" instead of "charset.h".
20680 (Fchar_to_string): Always call CHAR_STRING.
20681
20682 * emacs.c (main): Call init_charset_once, init_charset,
20683 syms_of_chartab, and syms_of_character.
20684
20685 * fileio.c: Include "character.h" instead of "charset.h".
20686 (Finsert_file_contents): Big change for the new code-conversion API.
20687 (choose_write_coding_system, Fwrite_region): Likewise.
20688 (build_annotations_2): Delete.
20689 (e_write): Big change for the new code-conversion API.
20690
20691 * fns.c: Include "character.h" instead of "charset.h".
20692 (copy_sub_char_table): Move to chartab.c.
20693 (Fcopy_sequence): Call copy_char_table for a char table.
20694 (concat): Delete codes calling count_multibyte.
20695 (string_char_to_byte, string_byte_to_char): Adjust for the new
20696 multibyte form.
20697 (internal_equal): Adjust for the change of char table structure.
20698 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20699 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20700 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20701 (char_table_translate, optimize_sub_char_table)
20702 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20703 chartab.c.
20704 (char_table_ref_and_index): Delete.
20705 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20706 (Fmd5): Call preferred_coding_system instead of accessing
20707 Vcoding_category_list. Adjust for the new code-conversion API.
20708 (syms_of_fns): Move defsubr for char table related functions to
20709 chartab.c.
20710
20711 * fontset.c: Mostly re-written.
20712
20713 * fontset.h (struct font_info): Change type of the member encoding_type.
20714 (enum FONT_SPEC_INDEX): New enum.
20715 (fontset_font_pattern, fs_load_font): Update prototype.
20716 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20717
20718 * indent.c: Include "character.h" instead of "charset.h".
20719 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20720
20721 * insdel.c: Include "character.h" instead of "charset.h".
20722 (copy_text): Don't refer to Vnonascii_translation_table.
20723 (insert_from_gap): New function.
20724
20725 * keyboard.c: Include "character.h" instead of "charset.h".
20726 (command_loop_1): Never call direct_output_forward_char before
20727 a non-ASCII character.
20728 (read_char): If Vkeyboard_translate_table is a char table, always
20729 translate a character.
20730
20731 * keymap.c: Include "character.h".
20732 (store_in_keymap): Handle the case that IDX is a cons.
20733 (Fdefine_key): Handle the case that KEY is a cons and the car part
20734 is also a cons (range).
20735 (push_key_description): Adjust for the new character code.
20736 (describe_vector): Call describe_char_table for a char table.
20737 (describe_char_table): New function.
20738
20739 * keymap.h (describe_char_table): Extern it.
20740
20741 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20742 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20743 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20744 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20745 Delete.
20746 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20747 structure.
20748 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20749 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20750 (CHARTAB_SIZE_BITS_3): New macros.
20751 (chartab_size): Extern it.
20752 (struct Lisp_Char_Table): Re-design.
20753 (struct Lisp_Sub_Char_Table): New structure.
20754 (HASH_KEY, HASH_VALUE): Move from fns.c.
20755 (CHARACTERBITS): Define as 22.
20756 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20757 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20758 (GC_SUB_CHAR_TABLE_P): New macro.
20759 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20760 (code_convert_string_norecord): Deleted extern.
20761 (init_character_once, syms_of_character, init_charset)
20762 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20763
20764 * lread.c: Include "character.h".
20765 (read_multibyte): New arg NBYTES.
20766 (read_escape): Change the meaning of returned *BYTEREP.
20767 (to_multibyte): Delete.
20768 (read1): Adjust the handling of char table and string.
20769
20770 * print.c: Include "character.h" instead of "charset.h".
20771 (print_string): Convert 8-bit raw bytes to octal form by
20772 string_escape_byte8.
20773 (print_object): Adjust for the new multibyte form. Print 8-bit
20774 raw bytes always in octal form. Handle sub char table correctly.
20775
20776 * process.c: Include "character.h" instead of "charset.h".
20777 (read_process_output, send_process): Adjust for the new
20778 code-conversion API.
20779
20780 * puresize.h (BASE_PURESIZE): Increase.
20781
20782 * regex.c: Include "character.h" instead of "charset.h".
20783 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20784 (regex_compile): Accept a range whose starting and ending
20785 character have different leading bytes.
20786 (analyse_first): Adjust for the above change.
20787
20788 * search.c: Include "character.h" instead of "charset.h".
20789 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20790 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20791
20792 * syntax.c: Include "character.h" instead of "charset.h".
20793 (syntax_parent_lookup): Delete.
20794 (Fmodify_syntax_entry): Accept a cons as CHAR.
20795 (skip_chars): Adjust for the new multibyte form.
20796 (init_syntax_once): Call char_table_set_range instead of directly
20797 accessing the structure of a char table.
20798
20799 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20800 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20801 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20802 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20803
20804 * term.c: Include "buffer.h" and "character.h".
20805 (encode_terminal_code, write_glyphs): Adjust for the new
20806 code-conversion API.
20807 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20808
20809 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20810
20811 * xdisp.c: Include "character.h".
20812 (get_next_display_element): Adjust for the new multibyte form.
20813 (disp_char_vector): Adjust for the new char table structure.
20814 (decode_mode_spec_coding): Adjust for the new structure of
20815 coding system.
20816 (decode_mode_spec): Adjust for the new code-conversion API.
20817
20818 * xfaces.c: Include "character.h" instead of "charset.h".
20819 (load_face_font): Adjust for the change of choose_face_font and
20820 FS_LOAD_FONT.
20821 (generate_ascii_font): New function.
20822 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20823 (set_font_frame_param): Adjust for the change of choose_face_font.
20824 (free_realized_face): Make it public.
20825 (free_realized_faces_for_fontset): Rename from
20826 free_realized_multibyte_face. Free also faces realized for ASCII.
20827 (choose_face_font): Change arguments. Adjust for the change of
20828 fontset_font_pattern and FS_LOAD_FONT.
20829
20830 * xfns.c: Include "character.h".
20831 (x_encode_text): Adjust for the new code-conversion API.
20832
20833 * xselect.c: Don't include "charset.h".
20834 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20835
20836 * xterm.c: Include "character.h".
20837 (x_encode_char): New argument CHARSET. Change caller.
20838 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20839 Call ENCODE_CHAR instead of SPLIT_CHAR.
20840 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20841 CHAR_WIDTH instead of CHARSET_WIDTH.
20842 (XTread_socket): Adjust for the new code-conversion API.
20843 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20844 (x_load_font): Adjust for the change of struct font.
20845
208462008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20847
20848 * xfaces.c (face_at_buffer_position): Remove unused vars.
20849
208502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20851
20852 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20853 Fix overflow checking.
20854
208552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20856
20857 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20858 Cancel previous change.
20859
208602008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20861
20862 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20863 ccl->eight_bit_control. Fix check for buffer overflow.
20864 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20865 (ccl_driver): Initialize extra_bytes to 0.
20866
208672008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20868
20869 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20870 return it ORed with ctrl_modifier.
20871
208722008-01-29 Miles Bader <miles@gnu.org>
20873
20874 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20875
208762008-01-28 Jason Rumney <jasonr@gnu.org>
20877
20878 * w32.c (stat): Don't double check for networked drive.
20879
208802008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20881
20882 * window.c (run_window_configuration_change_hook): New function.
20883 Code extracted from set_window_buffer. Set the selected frame.
20884 (set_window_buffer): Use it.
20885 * window.h (run_window_configuration_change_hook): Declare.
20886 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20887
20888 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20889
208902008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20891
20892 * Makefile.in: Remove references to unused macros.
20893
208942008-01-26 Eli Zaretskii <eliz@gnu.org>
20895
20896 * w32.c (g_b_init_get_sid_sub_authority)
20897 (g_b_init_get_sid_sub_authority_count): New static variables.
20898 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20899 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20900 (init_user_info): Use them to retrieve uid and gid.
20901 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20902 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20903 st_uid and st_gid of the file.
20904
209052008-01-26 Jason Rumney <jasonr@gnu.org>
20906
20907 * w32.c (logon_network_drive): New function.
20908 (stat): Use it.
20909
209102008-01-26 Chong Yidong <cyd@stupidchicken.com>
20911
20912 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20913 invisible text covered with an ellipsis.
20914
209152008-01-25 Richard Stallman <rms@gnu.org>
20916
20917 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20918 jump back to beginning. Move some other initializations after that.
20919 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20920 New variables.
20921 (syms_of_xdisp): Init them.
20922
20923 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20924
20925 * buffer.c (reset_buffer_local_variables):
20926 Implement `permanent-local-hook'.
20927 (Qpermanent_local_hook): New variable.
20928 (syms_of_buffer): Init and staticpro it.
20929
209302008-01-25 Michael Albinus <michael.albinus@gmx.de>
20931
20932 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20933
209342008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20935
20936 * fns.c (Fclrhash): Return TABLE.
20937
209382008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20939
20940 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20941 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20942 is set even without positional changes.
20943 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20944
20945 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20946
209472008-01-23 Jason Rumney <jasonr@gnu.org>
20948
20949 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20950
20951 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20952 the unicode range available in MULE by locale-coding-system.
20953 Improve dbcs lead byte detection. Set event timestamp and modifiers
20954 earlier.
20955
209562008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20957
20958 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20959 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20960 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20961 when used on child processes.
20962
209632008-01-21 Michael Albinus <michael.albinus@gmx.de>
20964
20965 * dbusbind.c (Fdbus_method_return_internal): Rename from
20966 Fdbus_method_return.
20967 (Fdbus_unregister_object): Move to dbus.el.
20968 (Fdbus_call_method, Fdbus_method_return_internal)
20969 (Fdbus_send_signal): Improve debug messages.
20970
209712008-01-20 Martin Rudalics <rudalics@gmx.at>
20972
20973 * undo.c (undo_inhibit_record_point): New variable.
20974 (syms_of_undo): Initialize it.
20975 (record_point): Don't record point when undo_inhibit_record_point
20976 is set.
20977
209782008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20979
20980 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20981
20982 * xdisp.c (Qauto_hscroll_mode): New var.
20983 (syms_of_xdisp): Initialize it.
20984 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20985 window's buffer.
20986 (hscroll_windows): Don't check automatic_hscrolling_p here.
20987
20988 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20989 vscroll if we're setting window-buffer to the value it already has.
20990
209912008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20992
20993 * m/intel386.h: Remove references to XENIX.
20994
209952008-01-17 Andreas Schwab <schwab@suse.de>
20996
20997 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20998 instead of HAVE_X86_64_LIB64_DIR.
20999 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
21000
210012008-01-17 Glenn Morris <rgm@gnu.org>
21002
21003 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
21004 to HAVE_X86_64_LIB64_DIR.
21005
210062008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
21007
21008 * s/irix3-3.h:
21009 * s/irix4-0.h:
21010 * s/386-ix.h:
21011 * s/domain.h:
21012 * s/hpux9-x11r4.h:
21013 * s/hpux9shxr4.h: Remove files for systems no longer supported.
21014
21015 * sysdep.c: Remove code containing references to symbols defined
21016 by unsupported systems.
21017
210182008-01-16 Glenn Morris <rgm@gnu.org>
21019
21020 * coding.c (select-safe-coding-system-function): Doc fix.
21021
210222008-01-15 Glenn Morris <rgm@gnu.org>
21023
21024 * config.in: Revert 2008-01-13 change: this is a generated file.
21025
210262008-01-13 Tom Tromey <tromey@redhat.com>
21027
21028 * lisp.h: Fix typo.
21029
210302008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21031
21032 * m/sequent-ptx.h:
21033 * m/sequent.h:
21034 * s/ptx.h:
21035 * s/ptx4-2.h:
21036 * s/ptx4.h: Remove files for systems no longer supported.
21037
21038 * callproc.c (Fcall_process): Fix previous change.
21039
210402008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
21041
21042 * unexsunos4.c: Remove file, system not supported anymore.
21043
21044 * m/mips.h:
21045 * m/intel386.h:
21046 * callproc.c:
21047 * config.in:
21048 * ecrt0.c:
21049 * emacs.c:
21050 * fileio.c:
21051 * frame.c:
21052 * getpagesize.h:
21053 * keyboard.c:
21054 * lread.c:
21055 * process.c:
21056 * puresize.h:
21057 * sysdep.c:
21058 * systty.h:
21059 * syswait.h:
21060 * unexec.c:
21061 * xdisp.c:
21062 * alloc.c: Remove code containing references to symbols defined by
21063 unsupported systems.
21064
210652008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
21066
21067 * coding.c (detect_coding_mask): Fix previous change.
21068
210692008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
21070
21071 * coding.c (detect_coding_iso2022): New arg
21072 latin_extra_code_state. Allow Latin extra codes only
21073 when *latin_extra_code_state is nonzero.
21074 (detect_coding_mask): If there is a NULL byte, detect the encoding
21075 as UTF-16 or binary. If Latin extra codes exist, detect the
21076 encoding as ISO-2022 only when there's no other proper encoding is
21077 found.
21078
210792008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21080
21081 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
21082 #ifdef MAC_OS.
21083
210842008-01-08 Richard Stallman <rms@gnu.org>
21085
21086 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
21087
210882008-01-06 Nick Roberts <nickrob@snap.net.nz>
21089
21090 * keyboard.c (parse_menu_item): Don't enclose key bindings on
21091 menu bar in parentheses.
21092
210932008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
21094
21095 * m/7300.h:
21096 * m/acorn.h:
21097 * m/alliant-2800.h:
21098 * m/alliant.h:
21099 * m/alliant1.h:
21100 * m/alliant4.h:
21101 * m/altos.h:
21102 * m/amdahl.h:
21103 * m/apollo.h:
21104 * m/att3b.h:
21105 * m/aviion-intel.h:
21106 * m/aviion.h:
21107 * m/celerity.h:
21108 * m/clipper.h:
21109 * m/cnvrgnt.h:
21110 * m/convex.h:
21111 * m/cydra5.h:
21112 * m/delta88k.h:
21113 * m/dpx2.h:
21114 * m/dual.h:
21115 * m/elxsi.h:
21116 * m/f301.h:
21117 * m/gould-np1.h:
21118 * m/gould.h:
21119 * m/i860.h:
21120 * m/ibmps2-aix.h:
21121 * m/ibmrt-aix.h:
21122 * m/ibmrt.h:
21123 * m/irist.h:
21124 * m/is386.h:
21125 * m/isi-ov.h:
21126 * m/mega68.h:
21127 * m/mg1.h:
21128 * m/news-r6.h:
21129 * m/news-risc.h:
21130 * m/news.h:
21131 * m/nh3000.h:
21132 * m/nh4000.h:
21133 * m/ns16000.h:
21134 * m/ns32000.h:
21135 * m/nu.h:
21136 * m/orion.h:
21137 * m/orion105.h:
21138 * m/paragon.h:
21139 * m/pfa50.h:
21140 * m/plexus.h:
21141 * m/pyramid.h:
21142 * m/pyrmips.h:
21143 * m/sh3el.h:
21144 * m/sps7.h:
21145 * m/sr2k.h:
21146 * m/stride.h:
21147 * m/sun1.h:
21148 * m/sun2.h:
21149 * m/sun3-68881.h:
21150 * m/sun3-fpa.h:
21151 * m/sun3-soft.h:
21152 * m/sun3.h:
21153 * m/sun386.h:
21154 * m/symmetry.h:
21155 * m/tad68k.h:
21156 * m/tahoe.h:
21157 * m/targon31.h:
21158 * m/tek4300.h:
21159 * m/tekxd88.h:
21160 * m/tower32.h:
21161 * m/tower32v3.h:
21162 * m/ustation.h:
21163 * m/wicat.h:
21164 * m/xps100.h:
21165 * s/cxux.h:
21166 * s/cxux7.h:
21167 * s/dgux.h:
21168 * s/dgux4.h:
21169 * s/dgux5-4-3.h:
21170 * s/dgux5-4r2.h:
21171 * s/esix.h:
21172 * s/esix5r4.h:
21173 * s/hiuxmpp.h:
21174 * s/hiuxwe2.h:
21175 * s/iris3-5.h:
21176 * s/iris3-6.h:
21177 * s/isc2-2.h:
21178 * s/isc3-0.h:
21179 * s/isc4-0.h:
21180 * s/isc4-1.h:
21181 * s/newsos5.h:
21182 * s/newsos6.h:
21183 * s/osf1.h:
21184 * s/osf5-0.h:
21185 * s/riscix1-1.h:
21186 * s/riscix12.h:
21187 * s/sco4.h:
21188 * s/sco5.h:
21189 * s/sunos4-0.h:
21190 * s/sunos4-1.h:
21191 * s/sunos413.h:
21192 * s/sunos4shr.h:
21193 * s/umax.h:
21194 * s/unipl5-2.h:
21195 * s/xenix.h:
21196 * cxux-crt0.s:
21197 * unexapollo.c:
21198 * unexconvex.c:
21199 * unexenix.c:
21200 * unexsni.c: Remove files for systems no longer supported.
21201
21202 * m/intel386.h: Remove references to unsupported systems.
21203
21204 * w32.c (get_emacs_configuration): Remove reference to i860.
21205
21206 * sysdep.c: Remove dead code.
21207
212082008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21209
21210 * s/rtu.h:
21211 * m/masscomp.h: Remove files. Platform is obsolete.
21212
212132008-01-04 Michael Albinus <michael.albinus@gmx.de>
21214
21215 * dbusbind.c (Fdbus_method_return): New function.
21216 (xd_read_message): Add the serial number to the event.
21217 (Fdbus_register_method): Activate the function.
21218
212192008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21220
21221 * keyboard.c (read_key_sequence): Fix typo.
21222
212232008-01-03 Michael Albinus <michael.albinus@gmx.de>
21224
21225 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21226 (xd_signature, xd_append_arg): Handle element type detection for
21227 empty arrays.
21228 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21229 SDATA () calls; this must be solved more general.
21230 (Fdbus_register_signal): Use SBYTES instead of strlen.
21231
212322008-01-03 Magnus Henoch <magnus@zemdatav>
21233
21234 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21235 unsigned int for byte values (necessary for big-endian platform).
21236 (Fdbus_call_method): Handle the case of no returned arguments.
21237
212382007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21239
21240 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21241
212422007-12-31 Magnus Henoch <mange@freemail.hu>
21243
21244 * dbusbind.c (xd_signature): Signature of variant is just "v".
21245
212462007-12-30 Michael Albinus <michael.albinus@gmx.de>
21247
21248 * dbusbind.c: Fix several errors and compiler warnings.
21249 Reported by Tom Tromey <tromey@redhat.com>.
21250 (XD_ERROR, XD_DEBUG_MESSAGE)
21251 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21252 (xd_append_arg): Part for basic D-Bus types rewritten.
21253 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21254 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21255 appropriate.
21256 (xd_read_message): Return Qnil. Don't signal an error; it is not
21257 useful during event reading.
21258 (Fdbus_register_signal): Signal an error if the check for
21259 FUNCTIONP fails.
21260 (Fdbus_register_method): New function. The implementation is not
21261 complete, the call of the function signals an error therefore.
21262 (Fdbus_unregister_object): New function, renamed from
21263 Fdbus_unregister_signal. The initial check signals an error, if
21264 the object is not well formed.
21265
212662007-12-30 Richard Stallman <rms@gnu.org>
21267
21268 * textprop.c (get_char_property_and_overlay):
21269 Signal error if POSITION is out of range in a buffer.
21270
212712007-12-29 Martin Rudalics <rudalics@gmx.at>
21272
21273 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21274 because the original parameters are in pure storage now.
21275
212762007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21277
21278 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21279
212802007-12-22 Eli Zaretskii <eliz@gnu.org>
21281
21282 * callint.c (syms_of_callint) <command-history>: Add reference to
21283 history-length in the doc string.
21284
212852007-12-17 Jason Rumney <jasonr@gnu.org>
21286
21287 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21288 before passing as wParam.
21289
212902007-12-22 Michael Albinus <michael.albinus@gmx.de>
21291
21292 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21293 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21294 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21295 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21296 as number.
21297 (Fdbus_call_method): Fix docstring.
21298
212992007-12-21 Michael Albinus <michael.albinus@gmx.de>
21300
21301 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21302 New macros.
21303 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21304 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21305 Simplify.
21306 (xd_signature): New function.
21307 (xd_append_arg): Compute also signatures. Major rewrite.
21308 (xd_retrieve_arg): Make debug messages friendly.
21309 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21310 Check for signatures of arguments.
21311
213122007-12-19 Michael Albinus <michael.albinus@gmx.de>
21313
21314 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21315 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21316 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21317 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21318 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21319 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21320 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21321 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21322 (xd_retrieve_value): Remove. Functionality included in ...
21323 (xd_append_arg): New function.
21324 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21325
213262007-12-16 Michael Albinus <michael.albinus@gmx.de>
21327
21328 * dbusbind.c (top): Include <stdio.h>.
21329 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21330 dbus_message_new_method_call and dbus_message_new_signal.
21331 (Fdbus_register_signal): Rename unique_name to uname.
21332 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21333 non-existing unique name. Fix typos in matching rule. Return an
21334 object which is useful in Fdbus_unregister_signal.
21335 (Fdbus_unregister_signal): Reimplementation, in order to remove
21336 only the corresponding entry.
21337 (Vdbus_registered_functions_table): Change the order of entries.
21338 Apply these changes in xd_read_message and Fdbus_register_signal.
21339
213402007-12-16 Andreas Schwab <schwab@suse.de>
21341
21342 * fileio.c (Finsert_file_contents): Fix overflow check to not
21343 depend on undefined integer overflow.
21344
213452007-12-14 Jason Rumney <jasonr@gnu.org>
21346
21347 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21348 for characters above 127.
21349
213502007-12-13 Jason Rumney <jasonr@gnu.org>
21351
21352 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21353 before dereferencing array.
21354 (lookup_vk_code): Remove zero comparison.
21355
213562007-12-14 Michael Albinus <michael.albinus@gmx.de>
21357
21358 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21359 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21360 Use `unsigned int' instead of `uint'.
21361 (xd_read_message, Fdbus_register_signal): Split expressions into
21362 multiple lines before operators "&&" and "||", according to the
21363 GNU Coding Standards.
21364
213652007-12-14 Eli Zaretskii <eliz@gnu.org>
21366
21367 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21368
213692007-12-12 Juri Linkov <juri@jurta.org>
21370
21371 * buffer.c (Frename_buffer): In interactive spec replace
21372 `read-buffer' with `read-string' that uses `buffer-name-history'
21373 as history, and the current buffer's name as default.
21374
213752007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21376
21377 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21378 manipulating the backtrace manually.
21379 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21380 (struct backtrace, backtrace_list): Remove.
21381 (command_loop_1): Remove dead var `no_direct'.
21382
21383 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21384 preserve non-built-in buffer-local variables.
21385 (Fkill_all_local_variables): Don't re-create&re-set permanent
21386 buffer-local variables.
21387
213882007-12-09 Juri Linkov <juri@jurta.org>
21389
21390 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21391 Lisp code that uses `read-buffer' with current buffer as default.
21392
213932007-12-08 Michael Albinus <michael.albinus@gmx.de>
21394
21395 * dbusbind.c (xd_read_message): Generate an event for every
21396 registered handler. There might be several handlers registered
21397 for the same signal.
21398 (Fdbus_register_signal): Don't overwrite a registration for the
21399 same signal. Add a new registration if handlers are different.
21400 (Vdbus_registered_functions_table): Rework doc string.
21401
214022007-12-07 Michael Albinus <michael.albinus@gmx.de>
21403
21404 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21405 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21406 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21407 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21408 Unify argument lists.
21409 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21410 arguments and hash table keys. Use unique name for service.
21411 (Fdbus_unregister_signal): Remove checks.
21412 (Vdbus_registered_functions_table): Fix doc string.
21413
214142007-12-05 Magnus Henoch <mange@freemail.hu>
21415
21416 * process.c (make_process): Initialize pty_flag to 0.
21417
214182007-12-05 Jason Rumney <jasonr@gnu.org>
21419
21420 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21421 specified XBMs.
21422
214232007-12-05 Richard Stallman <rms@gnu.org>
21424
21425 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21426
214272007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21428
21429 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21430 New variable.
21431 (mac_try_close_socket) [MAC_OSX]: New function.
21432 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21433 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21434
21435 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21436 Use mac_try_close_socket.
21437
214382007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21439
21440 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21441 reloc_base.
21442 (copy_dysymtab): Compute relocation base here.
21443 (rebase_reloc_address) [__ppc64__]: New function.
21444 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21445 changed.
21446
214472007-12-05 Jason Rumney <jasonr@gnu.org>
21448
21449 * w32proc.c (sys_spawnve): Quote args with wildcards.
21450
214512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21452
21453 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21454 __objc_* sections.
21455 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21456
214572007-12-05 Michael Albinus <michael.albinus@gmx.de>
21458
21459 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21460 Move check for Vdbus_registered_functions_table to
21461 xd_read_queued_messages.
21462 (xd_read_queued_messages): Protect xd_read_message calls by
21463 internal_condition_case_1.
21464
214652007-12-04 Michael Albinus <michael.albinus@gmx.de>
21466
21467 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21468 Qdbus_system_bus and Qdbus_session_bus, respectively.
21469 (Vdbus_intern_symbols): Remove.
21470 (Vdbus_registered_functions_table): New hash table.
21471 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21472 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21473 Rewrite in order to manage registered functions by hash table
21474 Vdbus_registered_functions_table.
21475
214762007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21477
21478 * xterm.c: Update URL to Window Manager Specification in comment.
21479
214802007-12-02 Michael Albinus <michael.albinus@gmx.de>
21481
21482 * config.in (HAVE_DBUS): Add.
21483
21484 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21485 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21486 (obj): Add $(DBUS_OBJ).
21487 (LIBES): Add $(DBUS_LIBS).
21488 (dbusbind.o): New target.
21489
21490 * dbusbind.c: New file.
21491
21492 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21493
21494 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21495 (Qdbus_event): New Lisp symbol.
21496 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21497 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21498 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21499
21500 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21501
215022007-12-01 Richard Stallman <rms@gnu.org>
21503
21504 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21505
215062007-11-30 Jason Rumney <jasonr@gnu.org>
21507
21508 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21509 (w32con_reset_terminal_modes): Clear screen buffer.
21510 (w32_face_attributes): Don't use color indexes that are out of range.
21511 Only reverse the default colors.
21512
21513 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21514 WINDOWSNT.
21515
21516 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21517
215182007-11-29 Jason Rumney <jasonr@gnu.org>
21519
21520 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21521 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21522 if the terminal colors are initialized.
21523 (unspecified_fg, unspecified_bg): Remove unused declarations.
21524
215252007-11-29 Andreas Schwab <schwab@suse.de>
21526
21527 * keyboard.c (apply_modifiers): Fix typo.
21528
215292007-11-29 Richard Stallman <rms@gnu.org>
21530
21531 * keymap.c (Fcurrent_local_map): Doc fix.
21532
215332007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21534
21535 * s/gnu-kfreebsd.h: New file.
21536
215372007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21538
21539 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21540 Don't cast redundantly.
21541
21542 * keyboard.c (KEY_TO_CHAR): New macro.
21543 (parse_modifiers, apply_modifiers): Accept integer arguments.
21544 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21545 for chars and symbol keys.
21546 After doing such remapping, apply function-key-map again.
21547
215482007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21549
21550 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21551 compiled anymore.
21552
215532007-11-26 Andreas Schwab <schwab@suse.de>
21554
21555 * process.c (list_processes_1): Fix indentation level of the
21556 command column.
21557
215582007-11-23 Andreas Schwab <schwab@suse.de>
21559
21560 * editfns.c (Fformat): Handle %c specially since it requires the
21561 argument to be of type int.
21562
215632007-11-23 Markus Triska <markus.triska@gmx.at>
21564
21565 * emacs.c (main): Call init_editfns before init_process, since
21566 init_process sets Vprocess_connection_type depending on OS release.
21567
215682007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21569
21570 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21571 (find_symbol_value): Use do_symval_forwarding.
21572
21573 * data.c (set_internal): Set the value in the `cons-cell' (for
21574 Buffer_Local_values) not only for frame-local variables.
21575
215762007-11-22 Andreas Schwab <schwab@suse.de>
21577
21578 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21579 values to sprintf.
21580 * keymap.c (Fsingle_key_description): Likewise.
21581 * print.c (print_object): Likewise.
21582
215832007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21584
21585 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21586 file for image is nil.
21587
215882007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21589
21590 * term.c: Include stdarg.h.
21591 (fatal): Implement using varargs.
21592 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21593
215942007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21595
21596 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21597 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21598 Update call to buffer_slot_type_mismatch.
21599 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21600 (buffer_slot_type_mismatch): Update.
21601 * buffer.c (buffer_local_types): Remove.
21602 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21603 (defvar_per_buffer): Set the type in the buffer_objfwd.
21604
216052007-11-21 Jason Rumney <jasonr@gnu.org>
21606
21607 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21608 CreateFileMapping returns NULL on failure.
21609
216102007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21611
21612 * search.c (Fset_match_data): Remove the `evaporate' feature.
21613 (unwind_set_match_data): Don't use the `evaporate' feature.
21614
216152007-11-21 Jason Rumney <jasonr@gnu.org>
21616
21617 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21618
21619 * w32console.c (w32con_write_glyphs): Remove unused variables.
21620
216212007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21622
21623 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21624
21625 * s/darwin.h (MULTI_KBOARD): Remove.
21626
21627 * macfns.c (x_create_tip_frame, Fx_create_frame)
21628 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21629
216302007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21631
21632 * buffer.c (Fbuffer_local_value): Remove redundant test.
21633 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21634 than in `current-buffer' to match the comment.
21635 Do the swap using swap_in_global_binding.
21636
21637 * data.c (store_symval_forwarding, set_internal):
21638 * eval.c (specbind): Remove dead code.
21639
21640 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21641 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21642 Since we do not want to see internal Lisp_*fwd objects here.
21643
216442007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21645
21646 * sysdep.c (init_system_name): Use getaddrinfo if available.
21647
21648 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21649 (x_scroll_bar_note_movement): start, end, with, height in struct
21650 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21651
216522007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21653
21654 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21655
216562007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21657
21658 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21659 This undoes Richard's change of 14-Oct-2002.
21660
21661 * alloc.c (allocate_other_vector):
21662 * lisp.h (allocate_other_vector): Remove.
21663
21664 * window.c (struct save_window_data): Move non-lisp data to the end
21665 and make it `int' rather than Lisp_Object.
21666 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21667 Done wrap/unwrap integer values.
21668 (Fset_window_configuration, compare_window_configurations):
21669 Update use of fields to their new types.
21670
21671 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21672 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21673 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21674 (SET_SCROLL_BAR_X_WINDOW): Remove.
21675 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21676 Access the new x_window field directly.
21677 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21678 Don't wrap/unwrap integers into Lisp_Objects.
21679 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21680 (x_scroll_bar_report_motion):
21681 Don't wrap/unwrap integers into Lisp_Objects.
21682 (x_term_init): Use SDATA.
21683 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21684 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21685 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21686 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21687 * xfns.c (x_set_background_color):
21688 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21689 Access the new x_window field directly.
21690
21691 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21692 (allocate_pseudovector): Make non-static.
21693
21694 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21695 (allocate_pseudovector): Declare.
21696 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21697
216982007-11-15 Andreas Schwab <schwab@suse.de>
21699
21700 * editfns.c (Fformat): Correctly format EMACS_INT values.
21701 Also take precision into account when formatting an integer.
21702
21703 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21704
217052007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21706
21707 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21708 (syms_of_keyboard): Defsubr it.
21709
21710 * data.c (swap_in_global_binding): Fix longstanding bug where
21711 store_symval_forwarding was not called with the right second argument,
21712 thus causing objfwd-ing from being dropped.
21713
217142007-11-14 Juanma Barranquero <lekktu@gmail.com>
21715
21716 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21717 (Fx_display_pixel_height, Fx_display_planes)
21718 (Fx_display_color_cells, Fx_server_max_request_size)
21719 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21720 (Fx_display_visual_class, Fx_display_save_under):
21721 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21722 (Fx_display_pixel_height, Fx_display_planes)
21723 (Fx_display_color_cells, Fx_server_max_request_size)
21724 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21725 (Fx_display_mm_height, Fx_display_mm_width)
21726 (Fx_display_backing_store, Fx_display_visual_class)
21727 (Fw32_select_font, Fx_display_save_under):
21728 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21729 (Fx_display_pixel_height, Fx_display_planes)
21730 (Fx_display_color_cells, Fx_server_max_request_size)
21731 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21732 (Fx_display_save_under): Fix typos in docstrings.
21733
217342007-11-14 Juanma Barranquero <lekktu@gmail.com>
21735
21736 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21737 corresponding to deleted entries; they are an implementation detail.
21738 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21739 Remove variables.
21740 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21741 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21742 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21743 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21744 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21745 (Fw32_define_rgb_color, Fw32_load_color_file)
21746 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21747 Fix typos in docstrings.
21748 (Fx_server_version): Reflow docstring.
21749 (Fw32_shell_execute): Doc fixes.
21750
217512007-11-13 Juanma Barranquero <lekktu@gmail.com>
21752
21753 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21754 if w32_parse_hot_key returned nil.
21755
217562007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21757
21758 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21759
217602007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21761
aac0c6e3
MR
21762 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21763
21764 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21765
21766 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21767 Remove W32_SCROLL_BAR_CLICK_EVENT.
21768
21769 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21770 Add MULTIMEDIA_KEY_EVENT.
21771
21772 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21773 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21774 (make_lispy_event) [WINDOWSNT]: Use it to translate
21775 MULTIMEDIA_KEY_EVENT.
21776
21777 * w32term.h (WM_APPCOMMAND): Define if not already.
21778 (GET_APPCOMMAND_LPARAM): Likewise.
21779
21780 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21781 WM_APPCOMMAND.
21782
21783 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21784 (syms_of_w32fns): Export and initialize it.
21785 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21786
217872007-11-09 Chong Yidong <cyd@stupidchicken.com>
21788
21789 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21790 twice.
21791
21792 * xdisp.c (handle_face_prop): Fix last change.
21793
217942007-11-09 Richard Stallman <rms@gnu.org>
21795
21796 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21797 not just for after-strings and before-strings.
21798 Call face_for_overlay_string and pass the overlay to it.
21799 (handle_display_prop): Determine whether property came from an overlay.
21800 Pass OVERLAY arg to handle_single_display_spec.
21801 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21802 (load_overlay_strings): Fill in it->string_overlays.
21803 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21804
21805 * xfaces.c (face_for_overlay_string): Function renamed from
21806 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21807
21808 * dispextern.h (struct it): New elt string_overlays.
21809 New elt from_overlay, also in stack.
21810 Rearrange a few elements.
21811 (face_for_overlay_string): Decl renamed from
21812 face_at_buffer_position_no_overlays, and add argument.
21813
218142007-11-09 Richard Stallman <rms@gnu.org>
21815
21816 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21817 to get the base face for an overlay string.
21818
21819 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21820
21821 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21822
21823 * xdisp.c (handle_stop): Move some code out of loop.
21824
218252007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21826
21827 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21828 Fix conversion from Lisp object to ATSUFontID.
21829
218302007-11-09 Jason Rumney <jasonr@gnu.org>
21831
21832 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21833
218342007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21835
21836 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21837 Don't assume regions are aligned to page boundary.
21838 (print_load_command_name): Add LC_UUID if defined.
21839
218402007-11-09 Richard Stallman <rms@gnu.org>
21841
21842 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21843
218442007-11-07 Jason Rumney <jasonr@gnu.org>
21845
21846 * s/windows95.h: Remove.
21847
218482007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21849
21850 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21851 abort with a message on unhandled store_type values.
21852
218532007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21854
21855 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21856 Remove HAVE_X11R5 and HAVE_X11R4.
21857
218582007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21859
21860 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21861
218622007-11-01 Johan Bockgård <bojohan@gnu.org>
21863
21864 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21865 Don't set s->stippled_p here, since it has already been set by
21866 x_set_glyph_string_gc from x_draw_glyph_string.
21867
218682007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21869
21870 * sunfns.c: Remove file.
21871
21872 * m/sun386.h:
21873 * m/sun2.h:
21874 * m/sparc.h: Remove Sun windows code.
21875
218762007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21877
21878 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21879 (init_keyboard): Set current_kboard's window-system to nil.
21880 (tty_read_avail_input): Typo.
21881 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21882
218832007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21884
21885 * s/usg5-4.h:
21886 * s/usg5-3.h:
21887 * s/ptx.h:
21888 * m/is386.h:
21889 * m/ibmps2-aix.h:
21890 * Makefile.in: Remove all mentions of X10.
21891
21892 * dispnew.c (syms_of_display): Don't mention version 10.
21893
218942007-10-28 Juanma Barranquero <lekktu@gmail.com>
21895
21896 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21897 ($(BLD)/abbrev.$(O)): Remove.
21898
218992007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21900
21901 Rewrite abbrev.c in Elisp.
21902 * image.c (Qcount): Don't declare as extern.
21903 (syms_of_image): Initialize and staticpro `Qcount'.
21904 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21905 * emacs.c (main): Don't call syms_of_abbrev.
21906 * Makefile.in (obj): Remove abbrev.o.
21907 (abbrev.o): Remove.
21908 * abbrev.c: Remove.
21909
219102007-10-26 Martin Rudalics <rudalics@gmx.at>
21911
21912 * window.c (window_min_size_2): Don't count header-line.
21913
219142007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21915
21916 * frame.h (struct frame): Move all bit fields after the first bit
21917 field to take advantage of the available space. Group all the
21918 chars together to reduce wasted space due to padding.
21919
219202007-10-26 Juanma Barranquero <lekktu@gmail.com>
21921
21922 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21923
21924 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21925 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21926 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21927 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21928 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21929 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21930 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21931 (last_marked, mark_object_loop_halt): Make static.
21932
21933 * frame.c (syms_of_frame) <delete-frame-functions>:
21934 Fix typo in docstring.
21935
219362007-10-25 Juanma Barranquero <lekktu@gmail.com>
21937
21938 * w32.c (init_environment): Fix tiny memory leak.
21939 (w32_get_resource): Remove unused variable `ok'.
21940
219412007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21942
21943 Make `window-system' into a keyboard-local variable (rather than
21944 frame-local as done originally by multi-tty).
21945
21946 * keyboard.h (struct kboard): Add Vwindow_system.
21947 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21948 (mark_kboards): Mark Vwindow_system.
21949
21950 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21951 (init_display): Don't set the obsolete `window-system' frame-param.
21952
21953 * xterm.c (x_term_init):
21954 * w32term.c (w32_create_terminal):
21955 * term.c (init_tty): Set Vwindow_system.
21956 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21957 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21958
21959 * xfns.c (Fx_create_frame, x_create_tip_frame):
21960 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21961 * macfns.c (Fx_create_frame):
21962 Don't set the obsolete `window-system' frame-param.
21963
21964 * frame.h (Qwindow_system): Remove.
21965 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21966 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21967
219682007-10-24 Richard Stallman <rms@gnu.org>
21969
21970 * frame.c (x_figure_window_size): For fullscreen case,
21971 set USPosition | PPosition without clobbering rest of window_prompting.
21972
21973 * keyboard.c (Fcurrent_idle_time): Doc fix.
21974
21975 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21976
219772007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21978
21979 * process.c (unwind_request_sigio): Only define if __ultrix__.
21980
21981 * callproc.c (child_setup): Remove spurious *.
21982
21983 * lisp.h (Fget_text_property): Declare.
21984 (have_menus_p): Declare it here rather than in sys-dep header files.
21985 * macterm.h (have_menus_p):
21986 * msdos.h (have_menus_p):
21987 * xterm.h (have_menus_p): Remove.
21988
21989 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21990 (Fmake_variable_frame_local): Just check the variable's const-ness
21991 rather than checking nil or t.
21992
219932007-10-22 Jason Rumney <jasonr@gnu.org>
21994
21995 * w32fns.c: Include math.h.
21996 (w32_abort): Declaration moved to nt/config.nt.
21997
21998 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21999 (abort): Redefinition moved to nt/config.nt.
22000
22001 * m/windowsnt.h: Remove.
22002
220032007-10-22 Juanma Barranquero <lekktu@gmail.com>
22004
22005 * emacs.c (Fdump_emacs): Fix typo in message.
22006 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
22007 <installation-directory>: Reflow docstring.
22008
220092007-10-22 Juri Linkov <juri@jurta.org>
22010
22011 * minibuf.c: Allow minibuffer default to be a list of default values.
22012 With empty input use the first element of this list as returned default.
22013 (string_to_object)
22014 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
22015 (read_minibuf): If defalt is cons, set histstring to its car.
22016 (Fread_string): If default_value is cons, set val to its car.
22017 (Fread_buffer): If def is cons, use its car.
22018 (Fcompleting_read): If defalt is cons, set val to its car.
22019
220202007-10-21 Michael Albinus <michael.albinus@gmx.de>
22021
22022 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
22023
220242007-10-20 Juanma Barranquero <lekktu@gmail.com>
22025
22026 * doc.c (Fdocumentation): Check for advice in all cases.
22027
220282007-10-19 Chong Yidong <cyd@stupidchicken.com>
22029
22030 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
22031
220322007-10-19 Richard Stallman <rms@gnu.org>
22033
22034 * doc.c (Fdocumentation): Check for and handle an advised function.
22035
220362007-10-19 Juanma Barranquero <lekktu@gmail.com>
22037
22038 * process.c (Fset_process_filter): Doc fix.
22039
220402007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
22041
22042 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
22043 which caused key-translation-map to applied repeatedly (thus breaking
22044 double-mode).
22045
220462007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22047
22048 * xselect.c (x_own_selection, x_handle_selection_clear)
22049 (x_clear_frame_selections):
22050 * w32menu.c (list_of_panes, list_of_items):
22051 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
22052 * textprop.c (validate_plist, interval_has_all_properties)
22053 (interval_has_some_properties, interval_has_some_properties_list)
22054 (add_properties, text_property_list):
22055 * process.c (Fget_buffer_process, list_processes_1, status_notify):
22056 * minibuf.c (Fassoc_string):
22057 * macselect.c (x_own_selection, x_clear_frame_selections)
22058 (Fx_disown_selection_internal):
22059 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
22060 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
22061
220622007-10-17 Chong Yidong <cyd@stupidchicken.com>
22063
22064 * process.c: Link to libs for calling res_init() if available.
22065 (Fmake_network_process): Call res_init() before getaddrinfo or
22066 gethostbyname, if possible.
22067
220682007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
22069
22070 * lread.c (read1): Set pvectype for char_tables.
22071
22072 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
22073 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
22074 Add type checks.
22075 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
22076
22077 * alloc.c (free_misc): Use XMISCTYPE.
22078 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
22079
220802007-10-17 Glenn Morris <rgm@gnu.org>
22081
22082 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
22083 (syms_of_minibuf): Add Qcompletion_ignore_case.
22084 * dired.c (Qcompletion_ignore_case): Change to external.
22085 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
22086 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
22087 (Fread_file_name): Use it rather than intern'ing.
22088
22089 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
22090 (Fread_coding_system): Ignore case of user input.
22091
220922007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22093
22094 * xdisp.c (handle_display_prop): Ignore display specs after
22095 replacing one when string text is being replaced.
22096 (handle_single_display_spec): Pretend as if characters with display
22097 property haven't been consumed only when buffer text is being replaced.
22098
220992007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
22100
22101 * xfns.c (Fx_create_frame, Fx_display_list):
22102 * window.c (window_fixed_size_p, enlarge_window)
22103 (shrink_window_lowest_first):
22104 * macterm.c (init_font_name_table):
22105 * macfns.c (Fx_create_frame, Fx_display_list):
22106 * lread.c (close_load_descs):
22107 * keyboard.c (read_char_x_menu_prompt):
22108 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
22109 * coding.c (code_convert_region_unwind): Test the type of an object
22110 rather than just !NILP before extracting data from it.
22111
22112 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22113
22114 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22115 (XMISCANY): New macro.
22116 (XMISCTYPE): Use it.
22117 (struct Lisp_Misc_Any): New type.
22118 (union Lisp_Misc): Use it.
22119 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22120 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22121 (find_symbol_value, set_internal, default_value, Fset_default)
22122 (Fmake_variable_buffer_local, Fmake_local_variable)
22123 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22124 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22125 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22126 * alloc.c (allocate_buffer): Set the size and tag.
22127 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22128 Use XMISCANY.
22129 (die): Follow the GNU convention for error messages.
22130 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22131 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22132 tag any more.
22133 (set_buffer_internal_1):
22134 * frame.c (store_frame_param):
22135 * eval.c (specbind):
22136 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22137
22138 * doc.c (Fsnarf_documentation): Simplify.
22139
221402007-10-14 Juanma Barranquero <lekktu@gmail.com>
22141
22142 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22143 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22144
221452007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22146
22147 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22148
221492007-10-14 Juanma Barranquero <lekktu@gmail.com>
22150
22151 * eval.c (do_autoload): Don't save autoloads.
22152
22153 * data.c (Ffset): Save autoload of the function being set.
22154
221552007-10-07 John Paul Wallington <jpw@pobox.com>
22156
22157 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22158 parameter before setting up faces.
22159
221602007-10-13 Eli Zaretskii <eliz@gnu.org>
22161
22162 * ccl.c (Fregister_code_conversion_map):
22163 * keyboard.c (append_tool_bar_item): Reformat last change.
22164
22165 * lisp.h (eabs): Rename from `abs'. All callers changed.
22166
221672007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22168
22169 * buffer.c (add_overlay_mod_hooklist):
22170 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22171 * fontset.c (make_fontset):
22172 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22173 (append_tool_bar_item):
22174 * macmenu.c (grow_menu_items):
22175 * w32menu.c (grow_menu_items):
22176 * xmenu.c (grow_menu_items): Use larger_vector.
22177
221782007-10-13 Eli Zaretskii <eliz@gnu.org>
22179
22180 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22181 selected frame'' on MSDOS).
22182
221832007-10-12 Martin Rudalics <rudalics@gmx.at>
22184
22185 * frame.c (Qexplicit_name): New variable.
22186 (x_report_frame_params): Report it in parameter alist.
22187 (syms_of_frame): Intern and staticpro it.
22188
221892007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22190
22191 * macfns.c (x_create_tip_frame): Set terminal for frame.
22192
221932007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22194
22195 * frame.c (Qenvironment): Remove.
22196 (syms_of_frame) <Qenvironment>: Don't initialize.
22197 (Fdelete_frame): Don't treat the `environment' param specially.
22198 * frame.h (Qenvironment): Don't declare.
22199 * callproc.c (set_initial_environment): Don't set unused frame param.
22200
22201 * frame.c (Fframe_with_environment): Remove.
22202 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22203
22204 * lisp.h (Fframe_with_environment): Don't declare.
22205
222062007-10-10 Juanma Barranquero <lekktu@gmail.com>
22207
22208 * indent.c (indent_tabs_mode, last_known_column)
22209 (last_known_column_modified): Make static.
22210 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22211
222122007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22213
22214 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22215
222162007-10-09 Jason Rumney <jasonr@gnu.org>
22217
22218 * w32term.c (x_set_window_size): Disable code that attempts to tell
22219 Lisp code about a size change before it actually happens.
22220
222212007-10-09 Richard Stallman <rms@gnu.org>
22222
22223 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22224 return HANDLED_RETURN.
22225
222262007-10-08 Martin Rudalics <rudalics@gmx.at>
22227
22228 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22229 when there's an unread command event.
22230
22231 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22232 window autoselection act appropriately when leaving selected frame.
22233 (syms_of_frame): Initialize focus_follows_mouse.
22234 * frame.h (focus_follows_mouse): Extern it.
22235 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22236 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22237 * msdos.c (dos_rawgetc): Likewise.
22238 * w32term.c (w32_read_socket): Likewise.
22239 * xterm.c (handle_one_xevent): Likewise.
22240 * xdisp.c (syms_of_xdisp): In doc-string of
22241 mouse-autoselect-window mention focus-follows-mouse.
22242
222432007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22244
22245 * macterm.c (mac_load_query_font): Fix missing return value.
22246 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22247 Add BLOCK_INPUT.
22248
222492007-10-08 Richard Stallman <rms@gnu.org>
22250
22251 * xdisp.c (get_window_cursor_type): Implement documented behavior
22252 for cursor-in-non-selected-windows = t.
22253
222542007-10-08 Jason Rumney <jasonr@gnu.org>
22255
22256 * w32.c (w32_get_resource): Always close registry keys.
22257
222582007-10-08 Jason Rumney <jasonr@gnu.org>
22259
22260 * makefile.w32-in (LIBS): Add COMCTL32.
22261
22262 * w32fns.c (globals_of_w32fns): Init common controls.
22263
222642007-10-08 Richard Stallman <rms@gnu.org>
22265
22266 * image.c (our_memory_buffer): Rename from omfib_buffer.
22267
222682007-10-08 Richard Stallman <rms@gnu.org>
22269
22270 * buffer.c (Foverlays_at): Doc fix.
22271
222722007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22273
22274 * fns.c (Fplist_put): Preserve uneven tail data.
22275
222762007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22277
22278 * termhooks.h (enum event_kind): Remove trailing comma.
22279
22280 * frame.h (enum): Remove trailing comma.
22281
222822007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22283
22284 * w32proc.c (delete_child): Don't terminate threads of zombies.
22285
222862007-10-08 Martin Rudalics <rudalics@gmx.at>
22287
22288 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22289
22290 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22291 last-repeatable-command.
22292 (init_kboard): Initialize Vlast_repeatable_command.
22293 (command_loop_1): Set it to real_this_command unless that was
22294 bound to an input event.
22295 (mark_kboards): Mark it.
22296
222972007-10-08 Richard Stallman <rms@gnu.org>
22298
22299 * eval.c (condition-case): Doc fix.
22300
223012007-10-08 Masatake YAMATO <jet@gyve.org>
22302
22303 * xfaces.c (tty_supports_face_attributes_p): Fix code
22304 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22305 was copied and not edited.
22306
223072007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22308
22309 Add new `input-decode-map' keymap and use it for terminal
22310 escape sequences.
22311 * keyboard.h (struct kboard): Add Vinput_decode_map.
22312 Remove Vlocal_key_translation_map.
22313 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22314 (init_kboard): Init input-decode-map.
22315 Replace local-key-translation-map back with key-translation-map.
22316 (syms_of_keyboard): Declare input-decode-map.
22317 Remove local-key-translation-map. Update docstrings.
22318 (mark_kboards): Mark Vinput_decode_map.
22319 Don't mark Vlocal_key_translation_map.
22320 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22321 Replace local-key-translation-map back with key-translation-map.
22322 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22323 Bind in input-decode-map rather than function-key-map.
22324
22325 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22326 This was made redundant by the previous introduction of XSETPVECTYPE.
22327
223282007-10-09 Richard Stallman <rms@gnu.org>
22329
22330 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22331
223322007-09-29 Richard Stallman <rms@gnu.org>
22333
22334 * eval.c (internal_condition_case_2, internal_condition_case_1)
22335 (internal_condition_case): Reenable abort if x_catching_errors ()
22336 to see if that really happens and why.
22337
223382007-10-06 Andreas Schwab <schwab@suse.de>
22339
22340 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22341
223422007-10-04 Juanma Barranquero <lekktu@gmail.com>
22343
22344 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22345
223462007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22347
22348 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22349
223502007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22351
22352 * window.h (struct window):
22353 * window.c (struct save_window_data, struct saved_window):
22354 * termhooks.h (struct terminal):
22355 * process.h (struct Lisp_Process):
22356 * frame.h (struct frame):
22357 * buffer.h (struct buffer):
22358 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22359 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22360 The size field of (pseudo)vectors is now unsigned.
22361 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22362
22363 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22364 Turn `count' into an integer.
22365
22366 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22367 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22368 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22369 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22370 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22371
22372 * alloc.c (allocate_pseudovector): New fun.
22373 (ALLOCATE_PSEUDOVECTOR): New macro.
22374 (allocate_window, allocate_terminal, allocate_frame)
22375 (allocate_process): Use it.
22376 (mark_vectorlike): New function.
22377 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22378 (mark_terminals): Use it.
22379 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22380 (Fmake_byte_code): Use XSETPVECTYPE.
22381
22382 * frame.c (Fframe_parameters): Minor simplification.
22383
22384 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22385
22386 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22387
22388 * buffer.c (Fget_buffer_create, init_buffer_once):
22389 * lread.c (defsubr):
22390 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22391
22392 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22393 defined differently in the m/*.h files.
22394 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22395 (XSETPVECTYPE): New macro.
22396 (XSETPSEUDOVECTOR): Use it.
22397
22398 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22399 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22400
22401 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22402 * lread.c (defvar_per_buffer):
22403 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22404
22405 * window.c (candidate_window_p): Only consider as visible frames that
22406 are on the same terminal.
22407
22408 * m/ibms390x.h (MARKBIT): Remove unused macro.
22409
224102007-10-01 Juanma Barranquero <lekktu@gmail.com>
22411
22412 * lread.c (Fload): Fix typo in docstring.
22413
224142007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22415
22416 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22417 of a non-zero value can't yield zero.
22418
224192007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22420
22421 * term.c (term_clear_mouse_face, term_mouse_highlight)
22422 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22423
22424 * print.c (safe_debug_print): Use XHASH.
22425
22426 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22427 Lisp elements such as tags.
22428 (XHASH): New macro.
22429 (EQ): Use it.
22430 (SREF, SSET, STRING_COPYIN): Use SDATA.
22431 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22432
22433 * alloc.c (mark_terminal): Remove left-over declaration.
22434 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22435 (allocate_vectorlike): Remove type argument. Adjust callers.
22436 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22437 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22438
22439 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22440 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22441 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22442 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22443 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22444 Use them.
22445
22446 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22447 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22448 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22449
224502007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22451
22452 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22453 loaded by default.
22454
224552007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22456
22457 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22458 on this tty.
22459 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22460
22461 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22462 Update all users.
22463 (handle_one_term_event): Use Gpm_DrawPointer.
22464 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22465 Signal errors instead of returning nil. Always return nil.
22466 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22467 Make it a noop if gpm-mouse was not activated.
22468 (syms_of_term): Update names.
22469
224702007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22471
22472 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22473 (init_sys_modes): Check that gpm_tty is the current tty.
22474
22475 * alloc.c (allocate_terminal): Set the vector size to only count the
22476 lisp fields. Initialize those to nil.
22477 (mark_object): Don't treat terminals specially.
22478 (mark_terminal): Remove.
22479 (mark_terminals): Use mark_object instead.
22480
22481 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22482 the GC to the beginning.
22483
22484 * indent.h:
22485 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22486
22487 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22488
224892007-09-25 Jason Rumney <jasonr@gnu.org>
22490
22491 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22492
22493 * w32console.c (create_w32cons_output): Remove.
22494
22495 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22496
22497 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22498 (reset_sys_modes): Use reset_terminal_modes_hook.
22499
225002007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22501
22502 * eval.c (do_autoload): Don't output any message.
22503
225042007-09-24 Juri Linkov <juri@jurta.org>
22505
22506 * emacs.c (standard_args): Change priority of "--no-splash"
22507 from 40 to 3. Add "--no-desktop" with the same priority.
22508
225092007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22510
22511 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22512 and optimize the case where they are all 1.
22513
225142007-09-23 Johannes Weiner <hannes@saeurebad.de>
22515
22516 * lisp.h (abs): Define if not defined.
22517 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22518 Don't define `abs', since it's defined in lisp.h.
22519
225202007-09-22 Eli Zaretskii <eliz@gnu.org>
22521
22522 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22523 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22524 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22525 (init_tty): Use DEV_TTY instead of "/dev/tty".
22526 [WINDOWSNT]: No need to protect from NAME arg being null.
22527
225282007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22529
22530 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22531 up the tty state.
22532
225332007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22534
22535 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22536 (gpm_tty): Change its type.
22537 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22538 (gpm_tty): Change its type and initialize it.
22539 (Fterm_open_connection): Check the frame is indeed a tty.
22540 Use the new gpm_tty.
22541 (Fterm_close_connection): Use the new gpm_tty.
22542 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22543 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22544
225452007-09-21 Juanma Barranquero <lekktu@gmail.com>
22546
22547 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22548 underline_color, to draw strike-through.
22549
225502007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22551
22552 * lisp.h (allocate_terminal): Declare.
22553
22554 * window.c (candidate_window_p): Consider frames that are being placed
22555 by the user as somewhere between visible and iconified.
22556 (window_loop): Prefer windows on the current frame.
22557 (Fselect_window): Move the use of select-frame to the beginning so we
22558 can just delegate all the work (it'll call us back anyway).
22559
22560 * frame.c (Qdisplay_environment_variable):
22561 * frame.h (Qdisplay_environment_variable): Delete.
22562
22563 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22564 of the first arg, since that value may be a union.
22565
22566 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22567 parameter rather than Qdisplay_environment_variable. If all else
22568 fails, look for DISPLAY in initial-environment.
22569
225702007-09-21 Glenn Morris <rgm@gnu.org>
22571
22572 * Makefile.in (emacstool): Remove target.
22573 (lisp, shortlisp): Remove termdev.elc.
22574
225752007-09-21 Markus Triska <markus.triska@gmx.at>
22576
22577 * xterm.c (x_delete_display): Compile session management conditionally.
22578
225792007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22580
22581 * callproc.c (getenv_internal_1): New function.
22582 (getenv_internal): Use it.
22583 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22584
22585 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22586 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22587 (Fset_terminal_parameter): Work with dead terminals as well.
22588 (Fmodify_terminal_parameters): Remove.
22589
22590 * terminal.c (get_terminal): Handle terminals.
22591 Make sure the terminal returned is live.
22592 (create_terminal): Use allocate_terminal.
22593 (mark_terminals): Move to alloc.c.
22594 (delete_terminal): Use terminal->name as liveness status.
22595 NULL out fields after freeing their contents.
22596 Don't deallocate the object.
22597 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22598 rather than an int.
22599 (Fterminal_live_p): Accept non-integer arguments.
22600 (Fterminal_list): Return terminal objects rather than an ints.
22601
22602 * alloc.c (enum mem_type): New member for `terminal' objects.
22603 (allocate_terminal): New function.
22604 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22605 Handle terminals.
22606 (mark_terminal): New fun.
22607 (mark_terminals): Move from terminal.c.
22608
22609 * term.c (get_tty_terminal): Don't treat output_initial specially.
22610 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22611 (delete_tty): Use terminal->name as liveness status.
22612
22613 * termhooks.h (struct terminal): Make it into a pseudovector.
22614 Remove `deleted' replaced by checking `name's nullness.
22615
22616 * print.c (print_object): Handle terminals.
22617
22618 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22619 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22620
22621 * frame.c (make_terminal_frame):
22622 * keyboard.c (tty_read_avail_input):
22623 * w32term.c (x_delete_terminal):
22624 * xfns.c (Fx_create_frame, x_create_tip_frame):
22625 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22626
226272007-09-20 Glenn Morris <rgm@gnu.org>
22628
22629 * process.c (Fmake_network_process): Doc fix.
22630
226312007-09-19 Jason Rumney <jasonr@gnu.org>
22632
22633 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22634
226352007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22636
22637 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22638 Fix a C warning regarding variable constness.
22639
22640 * xterm.c (handle_one_xevent): Fix a C warning.
22641
226422007-09-18 Jason Rumney <jasonr@gnu.org>
22643
22644 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22645
226462007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22647
22648 * gtkutil.c (gdpy_def): New variable.
22649 (xg_initialize): Initialize gdpy_def.
22650 (xg_display_close): If no other display exists, set gdpy_def to a
22651 new connection.
22652
226532007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22654
22655 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22656 when we have no file name for the icon.
22657 (xg_tool_bar_expose_callback): Remove.
22658 (xg_create_tool_bar): Don't connect expose signal to
22659 xg_tool_bar_expose_callback.
22660 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22661
226622007-09-16 Andreas Schwab <schwab@suse.de>
22663
22664 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22665 values instead of zapping them.
22666
226672007-09-14 Glenn Morris <rgm@gnu.org>
22668
22669 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22670 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22671 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22672 scope and rename to omfib_buffer for clarity.
22673 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22674
226752007-09-14 Kenichi Handa <handa@m17n.org>
22676
22677 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22678
226792007-09-13 Jason Rumney <jasonr@gnu.org>
22680
22681 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22682
22683 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22684
22685 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22686 (mac_term_init): Call here instead, passing rif.
22687
226882007-09-13 Glenn Morris <rgm@gnu.org>
22689
22690 * s/hpux.h: No longer define `static' as nothing.
22691
226922007-09-13 Johan Bockgård <bojohan@gnu.org>
22693
22694 * callint.c (Fcall_interactively): Remove unused var `fun'.
22695
226962007-09-12 Romain Francoise <romain@orebokech.com>
22697
22698 * window.c (prefer_window_split_horizontally, display_buffer):
22699 Revert 2007-09-08 change.
22700
227012007-09-12 Glenn Morris <rgm@gnu.org>
22702
22703 * alloca.c: Remove file.
22704 * Makefile.in (alloca): Do not undef.
22705 (allocaobj, alloca.o): Remove.
22706 (otherobj): Remove allocaobj.
22707 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22708 * regex.c (C_ALLOCA): Remove all references and code that was only
22709 used when this was defined.
22710 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22711 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22712 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22713
22714 * Makefile.in (SOURCES, unlock, relock): Delete.
22715
22716 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22717 (menu_grab_callback): All uses changed.
22718
22719 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22720 (x_reply_selection_request): All uses changed.
22721
227222007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22723
22724 * lread.c (load_warn_old_style_backquotes): Change message to look
22725 better when it appears in the middle of byte-compiler messages.
22726
227272007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22728
22729 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22730
22731 * xterm.c (x_create_terminal): Add comment.
22732
22733 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22734
227352007-09-10 Richard Stallman <rms@gnu.org>
22736
22737 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22738
227392007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22740
22741 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22742 (DEFUN): Document `intspec', use it instead of `prompt'.
22743
22744 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22745
22746 * data.c (Finteractive_form): If the interactive specification starts
22747 with a `(', use it as a Lisp form.
22748
22749 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22750 name and file modes.
22751
22752 * callint.c (Fcall_interactively): Comment fixes.
22753
227542007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22755
22756 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22757 and compiled functions.
22758
227592007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22760
22761 * window.c (prefer_window_split_horizontally): New variable.
22762 (display_buffer): Consider splitting window horizontally depending
22763 on prefer_window_split_horizontally.
22764
227652007-09-08 Eli Zaretskii <eliz@gnu.org>
22766
22767 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22768
227692007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22770
22771 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22772
22773 * frame.c (x_set_frame_parameters): Check number is positive before
22774 using XFASTINT.
22775
22776 * window.c (freeze_window_start): Don't presume selected_window holds
22777 a window object.
22778 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22779
227802007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22781
22782 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22783
227842007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22785
22786 * window.c (Vsplit_window_preferred_function): New var.
22787 (Fdisplay_buffer): Use it.
22788 (syms_of_window): Export, and initialize it.
22789
227902007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22791
22792 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22793
227942007-09-06 Glenn Morris <rgm@gnu.org>
22795
22796 * gtkutil.c (menu_grab_callback) <cnt>:
22797 * xselect.c (x_reply_selection_request) <cnt>: Move static
22798 variable to file scope.
22799
228002007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22801
22802 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22803 consistent values of selected_frame and selected_window.
22804
228052007-09-04 Jason Rumney <jasonr@gnu.org>
22806
22807 * w32console.c (initialize_w32_display): Zero unused hooks.
22808
228092007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22810
22811 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22812 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22813
228142007-09-04 Jason Rumney <jasonr@gnu.org>
22815
22816 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22817 in w32console.c. Set up input. Remove XXX comments that have been
22818 confirmed as correct.
22819
22820 * s/ms-w32.h (MULTI_KBOARD): Define.
22821
22822 * w32console.c (one_and_only_w32cons): Remove.
22823 (initialize_w32_display): Take terminal argument.
22824
22825 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22826 initialize_w32_display.
22827 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22828
22829 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22830
22831 * keyboard.c (discard_mouse_events): Discard it.
22832 (make_lispy_event): Translate it to a lisp event.
22833 (lispy_wheel_names): Add wheel-left and right events.
22834 (syms_of_keyboard): Enlarge wheel_syms.
22835
22836 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22837 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22838
22839 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22840
22841 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22842 from WM_MOUSEHWHEEL.
22843 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22844
22845 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22846 terminal.
22847
22848 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22849 keyboard for the terminal.
22850
228512007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22852
22853 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22854 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22855 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22856 and resume-tty-function to resume-tty-hook.
22857 (Fsuspend_tty, Fresume_tty): Use new names.
22858
228592007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22860
22861 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22862 if it starts with "n:".
22863
228642007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22865
22866 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22867
228682007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22869
22870 * frame.h:
22871 * frame.c (Qterm_environment_variable): Remove.
22872 (syms_of_frame): Don't init and staticpro it.
22873
22874 * callproc.c (getenv_internal): Remove special case for $TERM.
22875
22876 * callproc.c (Vinitial_environment): New variable.
22877 (set_initial_environment): Initialize it.
22878 (syms_of_callproc): Declare it.
22879 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22880 TERM under which a process runs is never related to the TERM in which
22881 Emacs is running.
22882
228832007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22884
22885 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22886 * s/darwin.h: ... do it here.
22887
228882007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22889
22890 * lisp.h (set_initial_environment): Rename from set_global_environment.
22891
22892 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22893 removed by mistake on the multi-tty branch.
22894
22895 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22896 (Fmodify_frame_parameters): Return a value.
22897
22898 * image.c (png_load): Comment-out var only used in commented-out code.
22899
22900 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22901 before passing it to mark_object.
22902
22903 * xfaces.c (internal_resolve_face_name): Return a value.
22904 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22905
22906 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22907 (x_icon): Comment-out var only used in commented-out code.
22908
229092007-08-29 Romain Francoise <romain@orebokech.com>
22910
22911 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22912 QUIT hasn't been provided.
22913
229142007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22915
22916 * callproc.c (child_setup, getenv_internal): Use the
22917 display-environment-variable and term-environment-variable frame params.
22918 (set_initial_environment): Initialise Vprocess_environment.
22919
22920 * config.in: Disable multi-keyboard support on a mac.
22921
22922 * frame.c (Qterm_environment_variable)
22923 (Qdisplay_environment_variable): New variables.
22924 (syms_of_frame): Intern and staticpro them.
22925 (Fmake_terminal_frame): Disable output method test.
22926
22927 * frame.h: Declare them here.
22928
22929 * macfns.c (x_set_mouse_color): Get rif from the frame.
22930 (x_set_tool_bar_lines): Don't use updating_frame.
22931 (mac_window): Add 2 new parameters for consistency with other systems.
22932 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22933 frame parameters following what is done in X11 and w32. Don't use
22934 FRAME_MAC_DISPLAY_INFO.
22935 (Fx_open_connection, start_hourglass): Remove window-system check.
22936 (x_create_tip_frame): Get the keyboard from the terminal.
22937
22938 * macmenu.c: Reorder includes.
22939 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22940
22941 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22942 terminal parameter.
22943 (x_clear_frame): Add a frame parameter.
22944 (note_mouse_movement): Get rif from the frame.
22945 (mac_term_init): Initialize the terminal.
22946 (mac_initialize): Make static and move terminal initialization ...
22947 (mac_create_terminal): ... to this new function.
22948
22949 * macterm.h (struct mac_display_info): Add terminal.
22950 (mac_initialize): Delete declaration.
22951
22952 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22953
22954 * sysdep.c: Comment out text after #endif.
22955
22956 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22957 is defined. Better initialize ttys in windows. Use terminal
22958 specific mouse_position_hook.
22959
22960 * termhooks.h (union display_info): Add mac_display_info.
22961
22962 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22963 Set the default minibuffer frame, window_system and the rest of the
22964 frame parameters following what is done in X11.
22965
22966 * w32term.c (w32_initialize): Make static.
22967
22968 * xselect.c (x_handle_selection_clear): Only access
22969 terminal->kboard when MULTI_KBOARD is defined.
22970
22971 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22972 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22973
229742007-08-29 Jason Rumney <jasonr@gnu.org>
22975
22976 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22977 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22978
22979 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22980 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22981
22982 * keyboard.c (restore_kboard_configuration): Only define when
22983 MULTI_KBOARD defined.
22984
22985 * makefile.w32-in: Update dependancies from Makefile.in.
22986 (OBJ1): Add terminal.$(O)
22987
22988 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22989 Don't define function body.
22990 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22991
22992 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22993
22994 * w32.c (request_sigio, unrequest_sigio): Remove.
22995
22996 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22997 (w32con_clear_frame, w32con_clear_end_of_line)
22998 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22999 (w32con_delete_glyphs, w32con_set_terminal_window)
23000 (scroll_line, w32_sys_ring_bell): Add frame arg.
23001 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
23002 Add terminal arg.
23003 (PICK_FRAME): Remove.
23004 (w32con_write_glyphs): Use frame specific terminal coding.
23005 (one_and_only_w32cons): New global variable.
23006 (initialize_w32_display): Use it for storing hooks.
23007 (create_w32cons_output): New function.
23008
23009 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
23010 arg a frame.
23011
23012 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
23013 Set window_system.
23014 (x_set_tool_bar_lines): Don't use updating_frame.
23015 (Fx_create_frame): Set terminal and ref count.
23016 (Fx_open_connection): Remove window-system check.
23017
23018 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
23019
23020 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
23021 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
23022 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
23023 Add frame arg.
23024 (x_delete_terminal, w32_create_terminal): New functions.
23025 (w32_term_init): Create a terminal.
23026 (w32_initialize): Move terminal specific initialization to
23027 w32_create_terminal.
23028
23029 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
23030 (w32_clear_rect, w32_clear_area): Use background from frame.
23031 (w32_display_info): Add terminal.
23032 (w32_sys_ring_bell, x_delete_display): Declare here.
23033
23034 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
23035
23036 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
23037
230382007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
23039
23040 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
23041 Fix get_named_tty calls for the controlling tty.
23042
230432007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
23044
194d44e7 23045 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
23046
230472007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
23048
23049 * term.c (tty_insert_glyphs): Add missing first parameter.
23050
230512007-08-29 Károly Lőrentey <karoly@lorentey.hu>
23052
23053 * buffer.c (Fbuffer_list, Fbury_buffer):
23054 Take frame->buried_buffer_list into account.
23055
23056 * cm.c (current_tty): New variable, for cmputc().
23057 (cmputc): Use it.
23058 (cmcheckmagic): Add tty parameter, look up terminal streams there.
23059 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
23060 (cmgoto): Add tty parameter. Pass it on to calccost().
23061 Use emacs_tputs() instead of tputs().
23062
23063 * cm.h (emacs_tputs): New macro to set current_tty, and then call
23064 tputs().
23065 (current_tty): New variable, for cmputc().
23066 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
23067
23068 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
23069 (internal_condition_case, internal_condition_case_1)
23070 (internal_condition_case_2): Don't abort when x_catching_errors.
23071
23072 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
23073 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
23074 prevent crashes caused by bogus longjmps in read_char.
23075
23076 * keymap.h (Fset_keymap_parent): Add EXFUN.
23077
23078 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
23079 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23080 Remove redundant definition.
23081
23082 * macfns.c (x_set_mouse_color, x_make_gc):
23083 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23084
23085 * w32term.c (x_free_frame_resources):
23086 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23087 (w32_initialize): Use the accessor macros for terminal characteristics.
23088
23089 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
23090 Use the accessor macros for terminal characteristics.
23091 * msdos.c (internal_terminal_init): Use the accessor macros for
23092 terminal characteristics.
23093 (ScreenVisualBell, internal_terminal_init):
23094 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23095
23096 * termopts.h (no_redraw_on_reenter): Declare.
23097
23098 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
23099 (mark_terminals, mark_ttys): Declare.
23100 (Fgarbage_collect): Call them.
23101 (mark_object): Mark buried_buffer_list.
23102
23103 * prefix-args.c: Include stdlib.h for exit.
23104
23105 * syssignal.h: Add comment.
23106
23107 * indent.c: Include stdio.h.
23108
23109 * window.h (Vinitial_window_system): Declare.
23110 (Vwindow_system): Delete declaration.
23111
23112 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23113
23114 * image.c (lookup_image): Don't initialize `c' until the xasserts
23115 have been run.
23116
23117 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23118 FRAME_FOREGROUND_PIXEL.
23119
23120 * print.c (print_preprocess): Don't lose print_depth levels while
23121 iterating.
23122
23123 * widget.c (update_from_various_frame_slots):
23124 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23125
23126 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23127 frames.
23128 (window_internal_height): Remove bogus make_number call.
23129 (init_window_once): Call make_terminal_frame with two zero parameters.
23130
23131 * fileio.c (Fread_file_name): Update comment.
23132
23133 * callint.c (Fcall_interactively):
23134 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23135 Make sure it is correctly unwound.
23136
23137 * xsmfns.c (x_session_close): New function.
23138
23139 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23140 Delete declarations.
23141
23142 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23143 (x_output): Remove background_pixel and foreground_pixel fields.
23144 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23145 (x_delete_device, x_session_close): Declare.
23146
23147 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23148 (read_filtered_event): Call `read_char' with a local
23149 `wrong_kboard_jmpbuf'.
23150
23151 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23152 Don't call single_kboard_state. Use FRAME_RIF.
23153
23154 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23155 systems.
23156
23157 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23158 (Fframe_with_environment, Fset_input_meta_mode)
23159 (Fset_quit_char): EXFUN.
23160 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23161 (init_sys_modes, reset_sys_modes): Update prototypes.
23162 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23163
23164 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23165 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23166 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23167 Delete declarations.
23168 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23169 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23170 New declarations.
23171
23172 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23173 already does that during init_display(). Call syms_of_keymap
23174 before syms_of_keyboard. Call `syms_of_terminal'.
23175 Call set_initial_environment, not set_process_environment.
23176 (shut_down_emacs): Call reset_all_sys_modes() instead of
23177 reset_sys_modes().
23178
23179 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23180 (internal_resolve_face_name, resolve_face_name_error): New functions.
23181 (resolve_face_name): Protect against loops and errors thrown by Fget.
23182 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23183 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23184
23185 * scroll.c: Replace CURTTY() with local variables throughout the
23186 file (where applicable).
23187 (calculate_scrolling, calculate_direct_scrolling)
23188 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23189 characteristics.
23190
23191 * keymap.c (Vfunction_key_map): Remove.
23192 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23193 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23194 (Vkey_translation_map): Remove.
23195 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23196 (Fdescribe_buffer_bindings)
23197 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23198 Update for terminal-local key-translation-map.
23199
23200 * Makefile.in (callproc.o): Update dependencies.
23201 (lisp, shortlisp): Add termdev.elc.
23202 (obj): Add terminal.o.
23203 (terminal.o): Add dependencies.
23204 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23205 (data.o, fns.o): Add termhooks.h dependency.
23206 (SOME_MACHINE_LISP): Add dnd.elc.
23207 (minibuf.o): Fix typo.
23208 Update dependencies.
23209
23210 * data.c (do_symval_forwarding, store_symval_forwarding)
23211 (find_symbol_value): Use the selected frame's keyboard, not
23212 current_kboard.
23213
23214 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23215 Vwindow_system.
23216
23217 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23218 Fmenu_bar_open.
23219 (syms_of_xmenu): Update defsubr.
23220 (mouse_position_for_popup, Fx_popup_menu)
23221 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23222 (set_frame_menubar, free_frame_menubar)
b97439ce 23223 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23224 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23225 an X frame.
23226
23227 * xselect.c (x_own_selection): Abort if not an X frame.
23228 (some_frame_on_display): Check if it is an X frame.
23229 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23230
23231 * coding.c: Include frame.h and termhooks.h.
23232 (terminal_coding, keyboard_coding): Delete.
23233 (Fset_terminal_coding_system_internal)
23234 (Fset_keyboard_coding_system_internal)
23235 (Fkeyboard_coding_system)
23236 (Fterminal_coding_system): Add a terminal parameter.
23237 Get terminal_coding from the terminal.
23238 (init_coding_once): Don't call setup_coding_system here.
23239
23240 * dispextern.h (set_scroll_region, turn_off_insert)
23241 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23242 (tty_clear_end_of_line, tty_setup_colors)
23243 (delete_tty, updating_frame)
23244 (produce_special_glyphs, produce_glyphs, write_glyphs)
23245 (insert_glyphs): Remove.
23246 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23247 (tty_turn_off_highlight, get_tty_size): Add declaration.
23248 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23249
23250 * frame.h (enum output_method): Add output_initial.
23251 (struct x_output): Delete.
23252 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23253 Access foreground_pixel and background_pixel directly from the frame.
23254 (tty_display): Delete.
23255 (struct frame): Add buried_buffer_list, foreground_pixel,
23256 background_pixel and terminal. Delete kboard.
23257 (union output_data): Add tty.
23258 (FRAME_KBOARD): Get the kboard from the terminal.
23259 (FRAME_INITIAL_P): New macro.
23260 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23261 (Qterm_environment_variable, Qdisplay_environment_variable)
23262 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23263 New declarations.
23264
23265 * termchar.h (tty_output, tty_display_info): New structures.
23266 (tty_list): Declare.
23267 (FRAME_TTY, CURTTY): New macros.
23268 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23269 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23270 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23271 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23272
23273 * callproc.c: Include frame.h and termhooks.h, for terminal
23274 parameters.
23275 (add_env): New function.
23276 (child_setup): Use it.
23277 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23278 (getenv_internal): Fix get_terminal_param call.
23279 (Fgetenv_internal, egetenv): Update doc.
23280 (syms_of_callproc): Initialize Vprocess_environment to nil.
23281 Register and initialize them. Remove obsolete defvars. Update doc
23282 strings.
23283 (child_setup): Handle Vlocal_environment_variables.
23284 (getenv_internal): Add terminal parameter.
23285 Handle Vlocal_environment_variables.
23286 (Fgetenv_internal): Add terminal parameter.
23287 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23288 environment in a frame (not terminal) parameter. Update doc strings.
23289 (set_initial_environment): Rename from set_global_environment.
23290 Store Emacs environment in initial frame parameter.
23291
23292 * xdisp.c (redisplay_internal): Update references to
23293 `previous_terminal_frame'.
23294 (display_mode_line, Fformat_mode_line): Replace calls to
23295 `push_frame_kboard' with `push_kboard'.
23296 (get_glyph_string_clip_rects): Add extra parentheses and
23297 braces to prevent compiler warnings.
23298 (calc_pixel_width_or_height): Add xassert to check that the
23299 frame is alive. Don't call `lookup_image' on a termcap frame.
23300 (message2_nolog, message3_nolog, redisplay_internal)
23301 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23302 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23303 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23304 (Fx_display_pixel_width, Fx_display_pixel_height)
23305 (Fx_display_planes, Fx_display_color_cells)
23306 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23307 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23308 (Fx_display_backing_store, Fx_display_visual_class)
23309 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23310 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23311
23312 * xfns.c (x_set_foreground_color x_set_background_color)
23313 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23314 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23315 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23316 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23317 terminal that is being deleted.
23318 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23319 frame parameter, and make sure it overrides any user-supplied setting.
23320 (Fx_close_connection, Fx_synchronize): Unify argument names with
23321 the rest of the DEFUNs.
23322
23323 * dispnew.c (Fsend_string_to_terminal): Update call to
23324 `get_tty_terminal'.
23325 (Fredraw_frame, Fsend_string_to_terminal)
23326 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23327 FRAME_TERMCAP_P and FRAME_TTY.
23328 (window_change_signal): Don't believe width/height values that are
23329 impossibly small.
23330 (Vinitial_window_system): Rename from Vwindow_system.
23331 (termscript, Wcm, rif): Delete.
23332
23333 * termhooks.h (struct terminal): New struct containing the
23334 previously global text display hooks and new members NAME,
23335 DELETED and PARAM_ALIST.
23336 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23337 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23338 (FRAME_RIF): New macros.
23339 (get_terminal_param, get_device): New declarations.
23340 (termscript): Delete declaration.
23341
23342 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23343 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23344 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23345 FRAME_FOREGROUND_PIXEL.
23346 (x_fully_uncatch_errors): Disable definition.
23347 (x_scroll_bar_expose): Fix reference to foreground pixel.
23348 (XTread_socket): Disable loop on all X displays.
23349 (x_delete_terminal): Don't set terminal->deleted and let
23350 delete_terminal delete the frames on the terminal.
23351 (x_delete_display): Doc update to reflect changes in
23352 delete_terminal.
23353 (x_display_info) <terminal>: Move member earlier in the struct.
23354 (deleting_tty): Remove old variable.
23355 (Fsuspend_tty): Call clear_tty_hooks.
23356 (Fresume_tty, init_tty): Call set_tty_hooks.
23357 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23358 errors on X frames.
23359 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23360 (handle_one_xevent): Initialize `f' to NULL.
23361 (x_delete_terminal, x_create_terminal): New functions.
23362 (XTset_terminal_modes, XTreset_terminal_modes)
23363 (XTread_socket, x_connection_closed, x_term_init)
23364 (x_term_init, x_delete_display): Add terminal parameter.
23365 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23366 X connections.
23367
23368 * frame.c: Include termchar.h.
23369 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23370 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23371 (Qdisplay_environment_variable): New vars.
23372 (Fframep): Deal with output_initial.
23373 (Fframe-live-p): Doc fix.
23374 (Fwindow-system): New function.
23375 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23376 (make_terminal_frame): Don't create frames on a terminal that is
23377 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23378 (store_frame_param): Check for found_for_frame before calling XFRAME.
23379 (Fmake_terminal_frame): Handle NULL tty names correctly.
23380 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23381 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23382 frames to refer to a deleted frame in their 'environment parameter.
23383 (Fframe_with_environment): New function.
23384 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23385 (get_future_frame_param): New function.
23386 (Fmake_terminal_frame): Use it.
23387 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23388
23389 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23390 * sysdep.c (reset_sys_modes): Update for renames.
23391
23392 * keyboard.c (tty_read_avail_input): New function.
23393 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23394 (syms_of_keyboard): Defsubr them.
23395 (Fset_input_meta_mode, Fset_quit_char): New functions.
23396 (Fset_input_mode): Split to above functions.
23397 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23398 parameter. Use it in call to `read_char'.
23399 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23400 Set wrong_kboard_jmpbuf correctly in recursive calls.
23401 Use current_kboard to access Vkeyboard_translate_table.
23402 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23403 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23404 Update longjmp invocations. Remember the original current_kboard,
23405 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23406 changes it. Comment out unnecessary calls to
23407 `record_single_kboard_state' and `any_kboard_state'.
23408 Update recursive calls.
23409 (wrong_kboard_jmpbuf): Remove global variable.
23410 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23411 Handle deleted interrupted_kboards correctly; that is a legal
23412 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23413 and read_char calls. Abort if interrupted_kboard died in read_char.
23414 (any_kboard_state, single_kboard_state)
23415 (push_frame_kboard): Remove function.
23416 (pop_kboard): Switch out of single_kboard mode if the kboard has
23417 been deleted. Remove unused variable. Help debugging by not
23418 changing current_kboard unnecessarily. Set current_kboard to the
23419 kboard of the selected frame when the stored kboard object has
23420 been deleted before pop_kboard.
23421 (temporarily_switch_to_single_kboard): Change first parameter to a
23422 frame pointer. Throw an error when caller wants to change kboards
23423 while in single_kboard mode. Don't push_kboard if we weren't in
23424 single kboard state. Don't pop_kboard if we popped into any
23425 kboard state.
23426 (restore_kboard_configuration): Abort if pop_kboard changed the
23427 kboard in single_kboard mode. Call pop_kboard only after setting
23428 up single_kboard mode.
23429 (Frecursive_edit): Switch to single_kboard mode only in nested
23430 command loops.
23431 (cmd_error, command_loop, command_loop_1, timer_check):
23432 Comment out unnecessary call to `any_kboard_state' and
23433 `record_single_kboard_state'.
23434 (delete_kboard): Exit single_kboard mode if we have just deleted
23435 that kboard. Use FRAME_KBOARD.
23436 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23437 `fatal_error_signal'.
23438 (record_single_kboard_state): Don't push_kboard if we weren't in
23439 single kboard state. Don't pop_kboard if we popped into any
23440 kboard state.
23441 (push_frame_kboard): Rename to push_kboard.
23442 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23443 (read_avail_input): Read input from all terminals.
23444 (mark_kboards): Also mark Vkeyboard_translate_table.
23445 (kbd_buffer_store_event_hold): Simplify condition.
23446 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23447 (Vkeyboard_translate_table): Move to struct kboard.
23448 (init_kboard): Initialize Vkeyboard_translate_table.
23449 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23450 Vkeyboard_translate_table. Update doc strings. Update docs of
23451 local-function-key-map and function-key-map.
23452
23453 * terminal.c: New file.
23454
23455 * term.c: Include errno.h.
23456 (Vring_bell_function, device_list, initial_device)
23457 (next_device_id, ring_bell, update_begin, update_end)
23458 (set_terminal_window, cursor_to, raw_cursor_to)
23459 (clear_to_end, clear_frame, clear_end_of_line)
23460 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23461 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23462 (syms_of_term): Move their initialization to terminal.c.
23463 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23464 (Ftty_display_color_cells)
23465 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23466 (clear_tty_hooks, set_tty_hooks)
23467 (init_tty, maybe_fatal): New functions.
23468 (Ftty_type): Return nil if terminal is not on a tty instead of
23469 throwing an error. Doc update.
23470 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23471 Doc update. Initialize new subrs and variables.
23472 (delete_tty): Use terminal->deleted.
23473 (tty_set_terminal_modes): Rename from set_terminal_modes.
23474 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23475 (set_scroll_region): Rename to `tty_set_scroll_region'.
23476 (turn_on_insert): Rename to `tty_turn_on_insert'.
23477 (turn_off_insert): Rename to `tty_turn_off_insert'.
23478 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23479 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23480 (toggle_highligh): Rename to `tty_toggle_highlight'.
23481 (background_highlight): Rename to `tty_background_highlight'.
23482 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23483 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23484 (tty_set_scroll_region, tty_background_highlight)
23485 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23486 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23487 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23488 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23489 Add static modifier.
23490 (tty_reset_terminal_modes, tty_set_terminal_window)
23491 (tty_set_scroll_region, tty_background_highlight)
23492 (tty_highlight_if_desired, tty_cursor_to)
23493 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23494 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23495 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23496 renames.
23497
234982007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23499
23500 * keyboard.c: Qrtl is new.
23501 (parse_tool_bar_item): Handle :rtl keyword.
23502 (syms_of_keyboard): Intern :rtl keyword.
23503
23504 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23505
23506 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23507 so no Lisp code is executed.
23508 (file_for_image, find_rtl_image): New functions.
23509 (xg_get_image_for_pixmap): Use file_for_image.
23510 (update_frame_tool_bar): If direction is RTL, use RTL image if
23511 defined. Use Gtk stock images if defined.
23512
235132007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23514
23515 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23516 for nonexistent or zero-width glyph in composition glyph.
23517
235182007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23519
23520 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23521
23522 * xdisp.c (Finvisible_p): New function.
23523 (syms_of_xdisp): defsubr it.
23524
235252007-08-24 Juanma Barranquero <lekktu@gmail.com>
23526
23527 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23528 Doc fixes.
23529
235302007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23531
23532 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23533
235342007-08-24 Martin Rudalics <rudalics@gmx.at>
23535
23536 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23537 whether decoding has modified buffer contents.
23538
235392007-08-24 Jason Rumney <jasonr@gnu.org>
23540
23541 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23542 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23543 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23544 (init_svg_functions) [HAVE_NTGUI]: New function.
23545 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23546 (svg_load_image): Use them.
23547 (svg_load_image) [HAVE_NTGUI]: Implement background.
23548
235492007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23550
23551 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23552 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23553 (LIBX): Remove @RSVG_LIBS@.
23554 (LIBES): Add $(RSVG_LIBS).
23555
23556 * image.c (svg_load_image): Blend with specified background if exists.
23557 Use IMAGE_BACKGROUND. Add Mac OS Support.
23558
23559 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23560 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23561 Remove macros.
23562 [MAC_OSX] (socket_callback): Do nothing.
23563 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23564 ReceiveNextEvent.
23565 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23566 socket_callback.
23567 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23568
235692007-08-22 Glenn Morris <rgm@gnu.org>
23570
23571 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23572
235732007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23574
23575 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23576
23577 * image.c: Add support for SVG images. Some additional comments
23578 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23579 (svg_image_p): New function to test for SVG image.
23580 (svg_load): New function to load SVG image.
23581 (svg_load_image): New function, helper for svg_load.
23582 (Qsvg): New Lisp_object.
23583 (svg_keyword_index): New enum.
23584 (svg_format): New static `image_keyword' struct.
23585 (svg_type): New static `image_type' struct.
23586 (librsvg/rsvg.h): Include it.
23587
235882007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23589
23590 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23591
235922007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23593
23594 * lread.c (Qold_style_backquotes): New var.
23595 (syms_of_lread): Init and staticpro it.
23596 (load_warn_old_style_backquotes): New fun.
23597 (Fload): Use them to warn about old style backquotes.
23598 (end_of_file_error, Fload): Remove unused vars.
23599
23600 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23601
23602 * lread.c (Vold_style_backquotes): New var.
23603 (syms_of_lread): Init and export it to Elisp.
23604 (read1): Set it when we find an old-style (back)quote.
23605
236062007-08-22 Jason Rumney <jasonr@gnu.org>
23607
23608 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23609
236102007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23611
23612 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23613
236142007-08-19 Richard Stallman <rms@gnu.org>
23615
23616 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23617
236182007-08-19 Andreas Schwab <schwab@suse.de>
23619
23620 * alloc.c (pure): Round PURESIZE up.
23621
236222007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23623
23624 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23625 active frame.
23626
236272007-08-16 Richard Stallman <rms@gnu.org>
23628
23629 * eval.c (Fcommandp): Add parens to clarify.
23630
23631 * minibuf.c (Fall_completions): Use enum for type of table.
23632
23633 * emacs.c (USAGE2): Improve text.
23634
236352007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23636
23637 * term.c (tty_default_color_capabilities): Declare static
23638 variables in file scope, to avoid HPUX compiler problem.
23639
236402007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23641
23642 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23643 to gtk_toolbar_insert.
23644
236452007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23646
23647 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23648
23649 * insdel.c (reset_var_on_error): New fun.
23650 (signal_before_change, signal_after_change):
23651 Use it to reset (after|before)-change-functions to nil in case of error.
23652 Bind inhibit-modification-hooks to t.
23653 Don't bind (after|before)-change-functions to nil while they run.
23654
236552007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23656
23657 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23658 filling pixmap with stippled background.
23659
236602007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23661
23662 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23663 Don't use invisible frame as parent window for repositioning.
23664
236652007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23666
23667 * print.c (new_backquote_output): Rename from old_backquote_output.
23668 (print): Inverse its logic (according to its name) so as to match the
23669 behavior of new_backquote_flag in lread.c.
23670
236712007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23672
23673 * gmalloc.c (posix_memalign): New function.
23674
23675 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23676 ActivateControl/DeactivateControl here.
23677 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23678 frame-notice-user-settings is non-nil.
23679 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23680 for kEventParamFMFontStyle.
23681 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23682 mac_pass_command_to_system and mac_pass_control_to_system here.
23683 (XTread_socket): Call ActivateControl/DeactivateControl here.
23684 (XTread_socket) [TARGET_API_MAC_CARBON]:
23685 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23686 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23687 for window repositioning.
23688
236892007-08-08 Glenn Morris <rgm@gnu.org>
23690
23691 * Replace `iff' in doc-strings and comments.
23692
236932007-08-07 Chong Yidong <cyd@stupidchicken.com>
23694
23695 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23696
236972007-08-07 Martin Rudalics <rudalics@gmx.at>
23698
23699 * fileio.c (Finsert_file_contents): Run format-decode and
23700 after_insert_file_functions on entire buffer when REPLACE is
23701 non-nil and inhibit modification_hooks and point_motion_hooks.
23702 For consistency, run after_insert_file_functions iff something
23703 got inserted. Move signal_after_change and update_compositions
23704 after code running after_insert_file_functions. Make sure that
23705 undo_list doesn't record intermediate steps of the decoding process.
23706
237072007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23708
23709 * emacs.c (main)
23710 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23711 Call malloc_enable_thread on interactive startup.
23712
23713 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23714 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23715 [USE_PTHREAD]: Conditionalize with it.
23716 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23717 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23718 New functions.
23719
237202007-08-06 Chong Yidong <cyd@stupidchicken.com>
23721
23722 * xdisp.c (redisplay_window): When restoring original buffer
23723 position, make sure it is still valid.
23724
23725 * image.c (png_load): Ignore png-supplied background color.
23726
237272007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23728
23729 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23730 Use kCFAbsoluteTimeIntervalSince1970.
23731
23732 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23733 New variable.
23734 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23735 event loop should be quit.
23736 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23737 Quit dialog event loop if quit_dialog_event_loop is set.
23738
23739 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23740 (Selection): New typedef. Use instead of ScrapRef.
23741 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23742 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23743 (mac_clear_selection): Rename from clear_scrap.
23744 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23745 scrap_has_target_type. All uses changed.
23746 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23747 (mac_selection_has_target_p): New functions.
23748 (mac_put_selection_value): Rename from put_scrap_string.
23749 (mac_get_selection_value): Rename from get_scrap_string.
23750 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23751 (put_scrap_private_timestamp, scrap_has_target_type)
23752 (get_scrap_private_timestamp): Remove functions.
23753 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23754 (x_own_selection, x_get_local_selection):
23755 Use mac_valid_selection_value_p.
23756 (x_own_selection): Don't use put_scrap_private_timestamp.
23757 Record OWNERSHIP-INFO into Vselection_alist instead.
23758 (x_get_local_selection): Don't check type if request is local.
23759 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23760 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23761
237622007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23763
23764 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23765 add comment explaining why.
23766
237672007-08-03 Richard Stallman <rms@gnu.org>
23768
23769 * fileio.c (Fvisited_file_modtime): Use make_time.
23770
237712007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23772
23773 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23774 build.
23775
237762007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23777
23778 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23779
237802007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23781
23782 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23783
237842007-07-30 Richard Stallman <rms@gnu.org>
23785
23786 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23787
237882007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23789
23790 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23791
237922007-07-28 Nick Roberts <nickrob@snap.net.nz>
23793
23794 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23795 remote default-directory.
23796
23797 * buffer.c (mode-line-format): Update doc string.
23798
237992007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23800
23801 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23802 scroll bar gap.
23803 (x_scroll_bar_create): Set bar->fringe_extended_p.
23804 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23805 on frame edge. Check fringe background extension. Don't clear
23806 extended fringe background area.
23807
23808 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23809 (w32_fill_area): Enclose multiple statements with do ... while (0).
23810
23811 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23812 Extend fringe background to scroll bar gap.
23813 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23814 Set bar->fringe_extended_p.
23815 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23816 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23817 background extension. Don't clear extended fringe background area.
23818
23819 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23820 New member fringe_extended_p.
23821
238222007-07-25 Glenn Morris <rgm@gnu.org>
23823
23824 * Relicense all FSF files to GPLv3 or later.
23825
23826 * COPYING: Switch to GPLv3.
23827
238282007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23829
23830 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23831
23832 * data.c (Finteractive_form): Check for the presence of an
23833 `interactive-form' symbol property more thoroughly.
23834
23835 * data.c (Finteractive_form): Use an `interactive-form' property if
23836 present, analogous to the function-documentation property.
23837
238382007-07-24 Jason Rumney <jasonr@gnu.org>
23839
23840 * w32fns.c (x_real_positions): Get real position from OS instead of
23841 calculating it.
23842
238432007-07-23 Jason Rumney <jasonr@gnu.org>
23844
23845 * filelock.c (current_lock_owner): Allow for @ sign in username.
23846
238472007-07-22 Nick Roberts <nickrob@snap.net.nz>
23848
23849 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23850 remote default-directory.
23851
23852 * buffer.c (mode-line-format): Describe above case in doc string.
23853
238542007-07-20 Eli Zaretskii <eliz@gnu.org>
23855
23856 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23857 Define if not defined.
23858
238592007-07-18 Jason Rumney <jasonr@gnu.org>
23860
23861 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23862
238632007-07-18 Richard Stallman <rms@gnu.org>
23864
23865 * data.c (Fsetq_default): Doc fix.
23866
23867 * eval.c (Fsetq): Doc fix.
23868
238692007-07-18 Juanma Barranquero <lekktu@gmail.com>
23870
23871 * coding.c (Ffind_operation_coding_system):
23872 * eval.c (For, Fand): Doc fixes.
23873 Reported by Johan Bockgård.
23874
238752007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23876
23877 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23878
23879 * xterm.h: Declare x_ewmh_activate_frame.
23880
23881 * xterm.c (x_ewmh_activate_frame): New function.
23882 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23883
238842007-07-17 Martin Rudalics <rudalics@gmx.at>
23885
23886 * window.c (Fdisplay_buffer): If largest or LRU window is the
23887 only window, split it even if it is not eligible for splitting.
23888 This restores the original behavior broken by the 2007-07-15
23889 change.
23890
238912007-07-17 Glenn Morris <rgm@gnu.org>
23892
23893 * abbrev.c (abbrev_check_chars): New function.
23894 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23895 Call abbrev_check_chars to check abbrev characters are word
23896 constituents. Doc fix.
23897
238982007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23899
23900 * process.c (Fstart_process, Fmake_network_process)
23901 (read_process_output): Fix up last changes.
23902
239032007-07-16 Eli Zaretskii <eliz@gnu.org>
23904
23905 * makefile.w32-in (clean): Don't delete *~.
23906
239072007-07-16 Andreas Schwab <schwab@suse.de>
23908
23909 * window.c (Fdisplay_buffer): Use NILP.
23910 (Fset_window_scroll_bars): Likewise.
23911
239122007-07-15 Martin Rudalics <rudalics@gmx.at>
23913
23914 * window.c (window_min_size_2): New function.
23915 (window_min_size_1, size_window, Fdisplay_buffer)
23916 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23917 windows without mode- or header-lines when window-min-height is
23918 too small.
23919 (size_window): Reset nodelete_p after testing it, following an
23920 earlier note by Kim F. Storm.
23921 (display_buffer): Do not set split_height_threshold to twice the
23922 value of window_min_height to avoid changing the value of a
23923 customizable variable. Rather explicitly check whether the
23924 height of the window that shall be splitted is at least as large
23925 as split_height_threshold.
23926 (Fwindow_full_width_p): New defun.
23927 (syms_of_window): Defsubr it.
23928
23929 * window.h: Add EXFUN for Fwindow_full_width_p.
23930
239312007-07-14 Jason Rumney <jasonr@gnu.org>
23932
23933 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23934
239352007-07-14 Richard Stallman <rms@gnu.org>
23936
23937 * eval.c (maybe_call_debugger): New function.
23938 (find_handler_clause): Use maybe_call_debugger.
23939 Call it when the handler says `debug'.
23940 Eliminate DEBUGGER_VALUE_PTR.
23941 (Fsignal): Eliminate debugger_value.
23942 (Qdebug): New variable.
23943 (syms_of_eval): Initialize it.
23944
239452007-07-14 Juanma Barranquero <lekktu@gmail.com>
23946
23947 * eval.c (Fprogn):
23948 * keyboard.c (Ftrack_mouse):
23949 * print.c (Fwith_output_to_temp_buffer):
23950 * window.c (Fsave_window_excursion): Doc fix.
23951
239522007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23953
23954 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23955
239562007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23957
23958 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23959 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23960 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23961 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23962 Remove unused encoding_carryover.
23963 * process.c: Adjust all functions accordingly.
23964
239652007-07-12 Richard Stallman <rms@gnu.org>
23966
23967 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23968
239692007-07-11 Jason Rumney <jasonr@gnu.org>
23970
23971 * makefile.w32-in (LIBS): Include OLE32.
23972
23973 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23974 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23975
239762007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23977
23978 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23979 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23980 from a Lisp_Object into a bare pointer.
23981 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23982 Adjust the code correspondingly.
23983
23984 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23985
23986 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23987 (term_show_mouse_face): Remove unused var `j'.
23988 (handle_one_term_event): Remove unused vars `i' and `j'.
23989 Don't cast return value of ttyname since it's not necessary.
23990
239912007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23992
23993 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23994 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23995
23996 * fns.c (map_char_table): Use an array of int for `indices' rather than
23997 an array of Lisp_Objects (which are only ever integers anyway).
23998 (Fmap_char_table): Update caller.
23999 * lisp.h: Update prototype.
24000 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
24001 * fontset.c (Ffontset_info):
24002 * casetab.c (set_case_table): Update callers.
24003
24004 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
24005
24006 * keymap.c (struct accessible_keymaps_data)
24007 (struct where_is_internal_data): New structures.
24008 (accessible_keymaps_1, where_is_internal_1): Use them to change
24009 interface to adhere to the one used by map_keymap.
24010 (Faccessible_keymaps, where_is_internal): Use map_keymap.
24011 (accessible_keymaps_char_table, where_is_internal_2): Remove.
24012
24013 * keymap.h (map_keymap_function_t): More informative prototype.
24014
240152007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
24016
24017 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
24018 (looking_at_1): Don't change search_regs and last_thing_searched
24019 if `inhibit-changing-match-data' is non-nil.
24020 (string_match_1, search_buffer, set_search_regs): Likewise.
24021 (syms_of_search): Add Lisp level definition for
24022 `inhibit-changing-match-data' and set it to nil.
24023 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
24024 start and end of the match, instead of using values in search_regs.
24025
240262007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
24027
24028 * minibuf.c (Fcompleting_read): New value `confirm-only'
24029 for `require-match'.
24030
240312007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
24032
24033 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
24034 part of the 2007-06-27 change to syms_of_fileio.
24035
240362007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24037
24038 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
24039 Check WINDOWP before using XWINDOW. Consolidate return statements.
24040
240412007-06-27 Richard Stallman <rms@gnu.org>
24042
24043 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
24044
240452007-06-27 Juanma Barranquero <lekktu@gmail.com>
24046
24047 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
24048
240492007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24050
24051 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
24052 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
24053 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
24054 (_free_internal, memalign): Use them.
24055 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
24056 Initialize to PTHREAD_MUTEX_INITIALIZER.
24057 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
24058 (morecore_nolock): Rename from morecore. All uses changed.
24059 Use only nolock versions of internal allocation functions.
24060 (_malloc_internal_nolock, _realloc_internal_nolock)
24061 (_free_internal_nolock): New functions created from
24062 _malloc_internal, _realloc_internal, and _free_internal.
24063 (_malloc_internal, _realloc_internal, _free_internal): Use them.
24064 Copy hook value to automatic variable before its use.
24065 (memalign): Copy hook value to automatic variable before its use.
24066
240672007-06-26 Kenichi Handa <handa@m17n.org>
24068
24069 * coding.c (Ffind_operation_coding_system): Docstring improved.
24070 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
24071
240722007-06-25 David Kastrup <dak@gnu.org>
24073
24074 * keymap.c (Fcurrent_active_maps): Add `position' argument.
24075 (Fwhere_is_internal): Adjust call to `current-active-maps' to
24076 cater for additional parameter.
24077
24078 * keymap.h: Adjust number of parameters to `current-active-maps'.
24079
24080 * doc.c (Fsubstitute_command_keys): Adjust call of
24081 `current-active-maps'.
24082
240832007-06-25 David Kastrup <dak@gnu.org>
24084
24085 * callint.c (Fcall_interactively): Make the parsing of interactive
24086 specs somewhat more readable.
24087
240882007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24089
24090 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
24091 to scroll bar gap also when bitmap fills fringe. Draw only foreground
24092 if extended background has already been filled.
24093
240942007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24095
24096 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
24097 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
24098
24099 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
24100 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
24101 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
24102 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
24103 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
24104 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
24105 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
24106 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
24107 Run timers during dialog popup.
24108 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
24109
241102007-06-21 Jason Rumney <jasonr@gnu.org>
24111
24112 * image.c (convert_mono_to_color_image): Swap fore and background.
24113
241142007-06-20 Jason Rumney <jasonr@gnu.org>
24115
24116 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24117 (w32_free_bdf_font): Unmap memory not handle.
24118
241192007-06-20 Sam Steingold <sds@gnu.org>
24120
24121 * gmalloc.c (__morecore): Fix the declaration to comply with the
24122 definition.
24123
241242007-06-20 Juanma Barranquero <lekktu@gmail.com>
24125
24126 * w32term.c (w32_delete_display): Remove leftover declaration.
24127 (w32_define_cursor, w32_initialize): Make static.
24128
24129 * w32.c (_wsa_errlist): Fix typo in error message.
24130 (init_environment): Ignore any environment variable from the
24131 registry having a null value.
24132
241332007-06-20 Glenn Morris <rgm@gnu.org>
24134
24135 * Makefile.in (LIBGIF): Default to -lgif.
24136
241372007-06-17 Jason Rumney <jasonr@gnu.org>
24138
24139 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24140 unicode strings.
24141
241422007-06-16 Juanma Barranquero <lekktu@gmail.com>
24143
24144 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24145 Fix typo in docstring.
24146
241472007-06-16 Eli Zaretskii <eliz@gnu.org>
24148
24149 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24150 and their keybindings.
24151
241522007-06-15 Chong Yidong <cyd@stupidchicken.com>
24153
24154 * composite.c (update_compositions): Fix last fix.
24155
241562007-06-14 Jason Rumney <jasonr@gnu.org>
24157
24158 * w32.c (get_process_times_fn): New function pointer.
24159 (globals_of_w32): Intialize it if present in kernel32.dll.
24160 (w32_get_internal_run_time): New function.
24161
24162 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24163
241642007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24165
24166 * composite.c (update_compositions): Check the validness of
24167 compositions.
24168
241692007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24170
24171 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24172 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24173
24174 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24175 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24176
24177 * macgui.h (USE_MAC_TOOLBAR): New define.
24178
24179 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24180 Return immediately unless popup is activated.
24181
24182 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24183 background to scroll bar gap.
24184 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24185 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24186 scroll bars on frame edge. Check fringe background extension.
24187 Don't clear extended fringe background area.
24188 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24189 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24190 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24191 [USE_MAC_TOOLBAR]: New macros.
24192 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24193 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24194 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24195 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24196 [USE_MAC_TOOLBAR]: New functions.
24197 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24198 manually if previous repositioning has failed.
24199 (mac_handle_keyboard_event): Use precomputed event kind.
24200 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24201 as tool bar item click. Handle mouse movement over tool bar items.
24202
24203 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24204 toolbar_win_gravity.
24205 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24206 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24207 Add externs.
24208
24209 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24210 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24211
242122007-06-14 Chong Yidong <cyd@stupidchicken.com>
24213
24214 * image.c (search_image_cache): Remove unused variable.
24215
242162007-06-13 Chong Yidong <cyd@stupidchicken.com>
24217
24218 * xfns.c, xmenu.c: Link to xaw3d if available.
24219
242202007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24221
24222 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24223 frame_foreground and frame_background.
24224
24225 * image.c (lookup_image): Save frame foreground and background colors.
24226 (search_image_cache): Check if saved and current frame colors match.
24227
242282007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24229
24230 * regex.c (regex_compile): Remove the `regnum' counter.
24231 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24232
242332007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24234
24235 * term.c: Include intervals.h to declare Fget_text_property.
24236
242372007-06-10 Jason Rumney <jasonr@gnu.org>
24238
24239 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24240
242412007-06-08 Juanma Barranquero <lekktu@gmail.com>
24242
24243 * callint.c (Fcall_interactively):
24244 * editfns.c (Fdelete_and_extract_region):
24245 * fileio.c (Fread_file_name):
24246 * fns.c (Fmapconcat):
24247 * keyboard.c (cmd_error_internal):
24248 * keymap.c (Fkey_description):
24249 * lread.c (openp):
24250 * minibuf.c (read_minibuf):
24251 * search.c (wordify):
24252 * sunfns.c (sel_read):
24253 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24254 * xfns.c (x_default_scroll_bar_color_parameter):
24255 * xmenu.c (menu_help_callback):
24256 * xselect.c (Fx_get_atom_name):
24257 * xterm.c (x_term_init): Use empty_unibyte_string.
24258
242592007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24260
24261 * alloc.c (init_strings): Initialize canonical empty strings.
24262 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24263 canonical empty string when the requested size is 0.
24264
24265 * emacs.c (empty_unibyte_string): Rename from empty_string.
24266 (empty_multibyte_string): New canonical empty string.
24267 (syms_of_emacs): Don't initialize empty_string.
24268
24269 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24270 string, if appropriate.
24271 (empty_unibyte_string, empty_multibyte_string): New externs.
24272 (empty_string): Remove extern.
24273
24274 * lread.c (syms_of_lread): Use empty_unibyte_string.
24275
242762007-06-07 Jason Rumney <jasonr@gnu.org>
24277
24278 * s/ms-w32.h: Don't define HAVE_TZNAME.
24279
24280 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24281
242822007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24283
24284 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24285
24286 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24287 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24288
24289 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24290 Don't call next handler.
24291 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24292 Remove argument. Install handler to application.
24293 (set_frame_menubar): Don't change deep_p.
24294 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24295 FRAME_OUTER_TO_INNER_DIFF_Y.
24296 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24297 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24298 [HAVE_DIALOGS]: New macros.
24299 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24300 Use them.
24301 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24302
24303 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24304 init_service_handler. All callers changed. Return OSStatus value.
24305
24306 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24307 All callers changed so as not to call SetPortWindowPort.
24308 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24309 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24310 mac_draw_string_common.
24311 (mac_draw_image_string_qd): Likewise.
24312 (mac_draw_string_common): Use them. Add INLINE.
24313 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24314 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24315 GetGlobalMouse.
24316 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24317 and FRAME_OUTER_TO_INNER_DIFF_Y.
24318 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24319 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24320 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24321 repositioning window to mac_handle_window_event.
24322 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24323 saving window location to mac_handle_window_event
24324 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24325 (install_menu_target_item_handler): Remove argument in extern.
24326 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24327 Also accept command events.
24328 (do_keystroke): New function created from XTread_socket.
24329 (init_command_handler): Remove functions.
24330 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24331 and save window location by kEventWindowShowing and kEventWindowHiding
24332 handlers here. Don't call next handler for window state change and
24333 focus events.
24334 (mac_handle_application_event, mac_handle_keyboard_event)
24335 [TARGET_API_MAC_CARBON]: New functions.
24336 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24337 kEventWindowShowing and kEventWindowHiding events. Move installation
24338 of mouse, font, text input and menu target item handlers to
24339 install_application_handler.
24340 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24341 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24342 New function.
24343 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24344 Register it.
24345 (XTread_socket) [TARGET_API_MAC_CARBON]:
24346 Consolidate SendEventToEventTarget calls.
24347 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24348 Move application activation handler to mac_handle_application_event.
24349 Move keyboard handler to mac_handle_keyboard_event.
24350 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24351 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24352 init_command_handler. Call install_application_handler.
24353
24354 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24355 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24356
243572007-06-07 Glenn Morris <rgm@gnu.org>
24358
24359 * emacs.c (main): Use `emacs-copyright' in --version output.
24360
243612007-06-06 Chong Yidong <cyd@stupidchicken.com>
24362
24363 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24364
243652007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24366
24367 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24368
24369 * macgui.h: Replace WindowPtr with WindowRef.
24370
24371 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24372 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24373 Replace ControlHandle with ControlRef.
24374 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24375
24376 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24377 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24378 Replace ControlHandle with ControlRef.
24379 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24380 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24381
24382 * macterm.h (struct scroll_bar): Rename member control_handle_low
24383 and control_handle_high to control_ref_low and control_ref_high.
24384 All uses changed.
24385 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24386 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24387 respectively. All uses changed.
24388 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24389 (install_window_handler, remove_window_handler): Replace WindowPtr
24390 with WindowRef in externs.
24391
243922007-06-05 Juanma Barranquero <lekktu@gmail.com>
24393
24394 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24395
243962007-06-03 Nick Roberts <nickrob@snap.net.nz>
24397
24398 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24399
24400 * frame.c (Fmouse_position, Fmouse_pixel_position):
24401 Condition on HAVE_GPM too.
24402
24403 * term.c (term_mouse_highlight): Remove unused variables.
24404 (Fterm_open_connection): Set gpm_zerobased to 1.
24405 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24406 Use zero based co-ordinates.
24407 (handle_one_term_event): Report a drag as mouse movement too.
24408
24409 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24410
244112007-06-03 Chong Yidong <cyd@stupidchicken.com>
24412
24413 * image.c (search_image_cache): New function. Require background
24414 color match if background color is unspecified in the image spec.
24415 (uncache_image, lookup_image): Use it.
24416
244172007-06-01 Juanma Barranquero <lekktu@gmail.com>
24418
24419 * window.c (Fshrink_window): Reflow docstring.
24420
244212007-06-02 Chong Yidong <cyd@stupidchicken.com>
24422
24423 * Version 22.1 released.
24424
244252007-06-01 Richard Stallman <rms@gnu.org>
24426
24427 * xfns.c (x_encode_text): Add GCPRO.
24428
244292007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24430
24431 * xfns.c (x_set_name_internal): Save encoded name before
24432 x_encode_text in case string data is relocated.
24433
244342007-05-31 Richard Stallman <rms@gnu.org>
24435
24436 * buffer.c (syms_of_buffer): Doc fix.
24437
244382007-05-30 Nick Roberts <nickrob@snap.net.nz>
24439
24440 * sysdep.c (init_sys_modes): Add rather than replace with
24441 O_NONBLOCK.
24442
24443 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24444 term_mouse_moveto.
24445
24446 * termhooks.h (term_mouse_moveto): New extern.
24447
24448 * term.c (mouse_face_window): Rename...
24449 (Qmouse_face_window): ...to this.
24450 (term_show_mouse_face, term_clear_mouse_face)
24451 (term_mouse_highlight): Use Qmouse_face_window.
24452 (term_mouse_moveto): New function.
24453 (term_mouse_position): Make it work.
24454 (syms_of_term): Uncomment assignment to mouse_position_hook.
24455 Staticpro Qmouse_face_window.
24456
244572007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24458
24459 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24460 around current_column call.
24461
244622007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24463
24464 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24465 * xdisp.c (next_element_from_buffer):
24466 * window.c (delete_window):
24467 * term.c (term_mouse_highlight):
24468 * msdos.c (getdefdir):
24469 * macterm.c (mac_create_bitmap_from_bitmap_data)
24470 (init_font_name_table):
24471 * fns.c (Fsxhash):
24472 * data.c (Fmake_local_variable):
24473 * ccl.c (ccl_driver): Likewise.
24474
244752007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24476
24477 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24478 Call mac_wakeup_from_rne on window size change.
24479
244802007-05-25 Chong Yidong <cyd@stupidchicken.com>
24481
24482 * image.c (uncache_image): Fix typo.
24483
244842007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24485
24486 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24487
244882007-05-22 Richard Stallman <rms@gnu.org>
24489
24490 * xterm.c (x_connection_closed): Remove NO_RETURN.
24491
244922007-05-22 Martin Rudalics <rudalics@gmx.at>
24493
24494 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24495
244962007-05-21 Chong Yidong <cyd@stupidchicken.com>
24497
24498 * image.c (uncache_image): New function.
24499 (Fimage_refresh): New function.
24500
245012007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24502
24503 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24504
245052007-05-20 Nick Roberts <nickrob@snap.net.nz>
24506
24507 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24508 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24509
245102007-05-20 Nick Roberts <nickrob@snap.net.nz>
24511
24512 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24513 conditional on [HAVE_GPM_H].
24514
245152007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24516
24517 * syntax.c (skip_chars): Update syntax-table only after we checked that
24518 the new location is valid.
24519
245202007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24521
24522 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24523 mac_get_window_bounds.
24524
245252007-05-20 Nick Roberts <nickrob@snap.net.nz>
24526
24527 * Makefile.in (LIBGPM): Allow it to be set from configure.
24528 If set then link Emacs with it.
24529
24530 * config.in: Regenerate.
24531
24532 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24533 New externs.
24534
24535 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24536 Include gpm.h.
24537 (handle_one_term_event, term_gpm): New externs.
24538
24539 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24540 and allow it to be interrupted by SIGIO.
24541
24542 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24543 (wait_reading_process_output): Wait on gpm_fd too.
24544 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24545 (add_gpm_wait_descriptor_called_flag): New variable.
24546 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24547
24548 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24549 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24550 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24551 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24552 (make_lispy_event): Add case GPM_CLICK_EVENT.
24553 (read_avail_input): Handle mouse input.
24554
24555 * term.c (write_glyphs_with_face): New function.
24556 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24557 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24558 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24559 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24560 (last_mouse_x, last_mouse_y): New variables.
24561 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24562 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24563 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24564 (Fterm_close_connection): New functions.
24565 (term_init): Initialise mouse_face_window.
24566
245672007-05-19 Chong Yidong <cyd@stupidchicken.com>
24568
24569 * xdisp.c (redisplay_window): If first window line is a
24570 continuation line, recompute the new window start instead of
24571 recentering.
24572
245732007-05-18 Glenn Morris <rgm@gnu.org>
24574
24575 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24576 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24577
245782007-05-17 Glenn Morris <rgm@gnu.org>
24579
24580 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24581
245822007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24583
24584 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24585 dead key repeat and up events.
24586
245872007-05-14 Chong Yidong <cyd@stupidchicken.com>
24588
24589 * image.c (pbm_load): Check image size for monochrome pbm.
24590
245912007-05-13 Chong Yidong <cyd@stupidchicken.com>
24592
24593 * xterm.c (XTread_socket): Revert last change.
24594
245952007-05-12 Chong Yidong <cyd@stupidchicken.com>
24596
24597 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24598
24599 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24600
246012007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24602
24603 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24604 mixup (YAILOM).
24605
246062007-05-07 Andreas Schwab <schwab@suse.de>
24607
24608 * keymap.c (Flookup_key): Fix typo in last change.
24609
246102007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24611
24612 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24613 mapping for unibyte strings.
24614
246152007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24616
24617 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24618 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24619
246202007-04-29 Richard Stallman <rms@gnu.org>
24621
24622 * insdel.c (replace_range): For undo, record insertion first.
24623
246242007-04-29 Andreas Schwab <schwab@suse.de>
24625
24626 * lisp.h (VECSIZE): Use OFFSETOF.
24627
246282007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24629
24630 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24631 disabled lines.
24632
246332007-04-28 Richard Stallman <rms@gnu.org>
24634
24635 * lread.c (read_escape): In a string, \s is always space.
24636
246372007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24638
24639 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24640
24641 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24642 submenu for menu bar items.
24643
24644See ChangeLog.10 for earlier changes.
24645
24646;; Local Variables:
24647;; coding: utf-8
24648;; add-log-time-zone-rule: t
aac0c6e3
MR
24649;; End:
24650
e3eb1dae 24651 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24652
24653 This file is part of GNU Emacs.
24654
24655 GNU Emacs is free software: you can redistribute it and/or modify
24656 it under the terms of the GNU General Public License as published by
24657 the Free Software Foundation, either version 3 of the License, or
24658 (at your option) any later version.
24659
24660 GNU Emacs is distributed in the hope that it will be useful,
24661 but WITHOUT ANY WARRANTY; without even the implied warranty of
24662 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24663 GNU General Public License for more details.
24664
24665 You should have received a copy of the GNU General Public License
24666 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24667
24668;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40