* dbus.texi (Receiving Method Calls): Add optional argument
[bpt/emacs.git] / src / ChangeLog
CommitLineData
971de7fb
DN
12010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * alloc.c: Convert function definitions to standard C.
4 * atimer.c:
5 * bidi.c:
6 * bytecode.c:
7 * callint.c:
8 * callproc.c:
9 * casefiddle.c:
10 * casetab.c:
11 * category.c:
12 * ccl.c:
13 * character.c:
14 * charset.c:
15 * chartab.c:
16 * cmds.c:
17 * coding.c:
18 * composite.c:
19 * data.c:
20 * dbusbind.c:
21 * dired.c:
22 * dispnew.c:
23 * doc.c:
24 * doprnt.c:
25 * ecrt0.c:
26 * editfns.c:
27 * fileio.c:
28 * filelock.c:
29 * filemode.c:
30 * fns.c:
31 * font.c:
32 * fontset.c:
33 * frame.c:
34 * fringe.c:
35 * ftfont.c:
36 * ftxfont.c:
37 * gtkutil.c:
38 * indent.c:
39 * insdel.c:
40 * intervals.c:
41 * keymap.c:
42 * lread.c:
43 * macros.c:
44 * marker.c:
45 * md5.c:
46 * menu.c:
47 * minibuf.c:
48 * prefix-args.c:
49 * print.c:
50 * ralloc.c:
51 * regex.c:
52 * region-cache.c:
53 * scroll.c:
54 * search.c:
55 * sound.c:
56 * strftime.c:
57 * syntax.c:
58 * sysdep.c:
59 * termcap.c:
60 * terminal.c:
61 * terminfo.c:
62 * textprop.c:
63 * tparam.c:
64 * undo.c:
65 * unexelf.c:
66 * window.c:
67 * xfaces.c:
68 * xfns.c:
69 * xfont.c:
70 * xftfont.c:
71 * xgselect.c:
72 * xmenu.c:
73 * xrdb.c:
74 * xselect.c:
75 * xsettings.c:
76 * xsmfns.c:
77 * xterm.c: Likewise.
78
ae492bec
EZ
792010-07-03 Eli Zaretskii <eliz@gnu.org>
80
76ea4cc9
EZ
81 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
82 frames other than the initial one. Fix reversal of colors when
83 `reverse' is specified in the frame parameters. Call
84 update_face_from_frame_parameter instead of
85 internal-set-lisp-face-attribute. Initialize screen colors from
86 initial_screen_colors[] when f->default_face_done_p is zero,
87 instead of depending on being called with default-frame-alist as
88 the alist argument.
89
90 * xfaces.c (update_face_from_frame_parameter): Move out of
91 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
92 with HAVE_WINDOW_SYSTEM.
93
1e6255ae
EZ
94 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
95 to menu-bar-mode, if not set in the frame parameters or in
96 default-frame-alist.
97
ae492bec
EZ
98 * w32console.c (sys_tputs): Adjust argument list to prototype in
99 term.c.
100
3a35a84c
JB
1012010-07-03 Juanma Barranquero <lekktu@gmail.com>
102
103 * lisp.h (memory_warnings): Fix prototype.
104
105 * cm.h (evalcost): Fix prototype.
106
107 * cm.c (evalcost): Fix arg type.
108
c532d349
DN
1092010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
110
111 * term.c (term_clear_mouse_face, Fidentity):
112 * syssignal.h (signal_handler_t):
113 * lisp.h (memory_warnings):
114 * coding.h (preferred_coding_system):
115 * cm.h (evalcost):
116 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
117
c0b36d46
EZ
1182010-07-02 Eli Zaretskii <eliz@gnu.org>
119
120 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
121 from prototypes.
122
123 * msdos.h (load_pixmap): Don't define away.
124
383e0970
J
1252010-07-02 Jan Djärv <jan.h.d@swipnet.se>
126
f57e2426
J
127 * lisp.h:
128 * atimer.h: Remove define for P_.
129
130 * alloc.c: Remove __P and P_ from .c and .m files.
131 * atimer.c:
132 * buffer.c:
133 * callint.c:
134 * category.c:
135 * charset.c:
136 * chartab.c:
137 * cm.c:
138 * coding.c:
139 * composite.c:
140 * data.c:
141 * dired.c:
142 * dispnew.c:
143 * doc.c:
144 * editfns.c:
145 * emacs.c:
146 * eval.c:
147 * fileio.c:
148 * filelock.c:
149 * fns.c:
150 * font.c:
151 * fontset.c:
152 * frame.c:
153 * ftfont.c:
154 * ftxfont.c:
155 * gmalloc.c:
156 * gtkutil.c:
157 * image.c:
158 * indent.c:
159 * intervals.c:
160 * keyboard.c:
161 * keymap.c:
162 * lread.c:
163 * marker.c:
164 * menu.c:
165 * minibuf.c:
166 * print.c:
167 * process.c:
168 * scroll.c:
169 * search.c:
170 * sound.c:
171 * strftime.c:
172 * syntax.c:
173 * sysdep.c:
174 * term.c:
175 * terminal.c:
176 * textprop.c:
177 * unexalpha.c:
178 * w32console.c:
179 * w32fns.c:
180 * w32font.c:
181 * w32menu.c:
182 * w32term.c:
183 * w32uniscribe.c:
184 * window.c:
185 * xdisp.c:
186 * xfaces.c:
187 * xfns.c:
188 * xfont.c:
189 * xftfont.c:
190 * xmenu.c:
191 * xselect.c:
192 * xterm.c: Likewise.
193
383e0970 194 Remove P_ and __P macros.
f57e2426
J
195 * atimer.h: Remove P_ and __P macros.
196 * buffer.h:
383e0970
J
197 * category.h:
198 * ccl.h:
199 * character.h:
200 * charset.h:
201 * cm.h:
202 * coding.h:
203 * composite.h:
204 * dispextern.h:
205 * disptab.h:
9e892c8d 206 * dosfns.h:
383e0970
J
207 * font.h:
208 * fontset.h:
209 * frame.h:
210 * gtkutil.h:
211 * indent.h:
212 * intervals.h:
213 * keyboard.h:
214 * keymap.h:
215 * lisp.h:
216 * macros.h:
217 * md5.h:
218 * menu.h:
219 * msdos.h:
220 * nsterm.h:
221 * puresize.h:
222 * region-cache.h:
223 * syntax.h:
224 * syssignal.h:
225 * systime.h:
226 * termhooks.h:
9e892c8d 227 * w32font.h:
383e0970
J
228 * w32term.h:
229 * widget.h:
230 * window.h:
231 * xgselect.h:
232 * xsettings.h:
233 * xterm.h: Likewise.
234
98601119
DN
2352010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
236
d9170db5
DN
237 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
238
98601119
DN
239 Cleanup old code.
240 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
241 * syssignal.h: Remove code for Lynx, not supported anymore.
242 * vm-limit.c: Remove unused code the depends on emacs not being
243 defined and NO_LIM_DATA being defined.
244 * mem-limits.h: Remove dead code.
245
1f984e12
J
2462010-07-01 Jan Djärv <jan.h.d@swipnet.se>
247
c49d071a
J
248 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
249
9d5405ec
J
250 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
251 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
252
7a18115b
J
253 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
254 parameters, they are already absolute.
255
581a8100
J
256 * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed
257 FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
258
259 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH
260
261 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update
262 FRAME_TOOLBAR_HEIGHT.
263
1f984e12
J
264 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Add
265 BLOCK/UNBLOCK_INPUT so asserts don't trigger.
266
c1ef4455
CY
2672010-06-30 Chong Yidong <cyd@stupidchicken.com>
268
269 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
270 check default-frame-alist.
271
ce8f5a9a
AS
2722010-06-30 Andreas Schwab <schwab@linux-m68k.org>
273
274 * process.c (create_process): Avoid using invalid file descriptors.
275
276 * callproc.c (child_setup): Avoid closing a file descriptor twice.
277
bf935339
J
2782010-06-30 Jan Djärv <jan.h.d@swipnet.se>
279
280 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
281 Improve documentation. Return font regardless of use_system_font.
282 (syms_of_xsettings): Improve documentation for font-use-system-font.
283
769e9d47
KH
2842009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
285
286 * xftfont.c (xftfont_open): Check font width one by one also when
287 spacing is dual.
288
289 * ftfont.c (ftfont_open): Ditto.
290
6259c2ec
GM
2912010-06-30 Glenn Morris <rgm@gnu.org>
292
a46007e9
GM
293 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
294
6259c2ec
GM
295 * Makefile.in (CANNOT_DUMP): Update for configure name change.
296
297 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
298 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
299 * s/darwin.h (SYSTEM_MALLOC):
300 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
301
5d1d3d04
J
3022010-06-29 Jan Djärv <jan.h.d@swipnet.se>
303
304 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
305 (ns_get_screen): Don't assign integer to f.
306 (Fx_display_color_cells): Declarations before statements.
307
e547b051
J
3082010-06-28 Jan Djärv <jan.h.d@swipnet.se>
309
5fc8e5bc
J
310 * xfns.c (x_default_font_parameter): Remove got_from_system
311 (Bug#6526).
312
e547b051
J
313 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
314 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
315 defines based on what configure finds.
316
317 * xterm.c (XTflash): Use gtk_widget_get_window.
318 (xg_scroll_callback): Use gtk_adjustment_get_upper and
319 gtk_adjustment_get_page_size.
320 (handle_one_xevent): Use gtk_widget_get_mapped.
321 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
322 messages.
323
324 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
325
326 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
327 HAVE_GTK_FILE_SELECTION_NEW.
328
329 * gtkutil.c (xg_display_open, xg_display_close): Remove
330 HAVE_GTK_MULTIDISPLAY, it is always defined.
331 (xg_display_open): Return type is void.
332 (gtk_widget_set_has_window)
333 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
334 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
335 (gtk_adjustment_set_page_increment)
336 (gtk_adjustment_get_step_increment): #define these if not found
337 by configure.
338 (remove_submenu): New define based on Gtk+ version.
339 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
340 gtk_widget_get_window.
341 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
342 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
343 (create_dialog): Use gtk_dialog_get_action_area and
344 gtk_dialog_get_content_area.
345 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
346 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
347 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
348 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
349 g_object_ref and g_object_unref.
350 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
351 gtk_widget_get_sensitive.
352 (xg_update_submenu): Use remove_submenu.
353 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
354 properties instead to get old x and y position.
355 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
356 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 357 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
358 (xg_get_tool_bar_widgets): New function.
359 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
360 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
361 (toolbar_set_orientation): New #define based on if configure
362 finds gtk_orientable_set_orientation.
363 (xg_create_tool_bar): Call toolbar_set_orientation.
364 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
365 instead of gtk_box_pack_start_defaults.
366
b9229673
CY
3672010-06-28 Chong Yidong <cyd@stupidchicken.com>
368
369 * cmds.c (Fdelete_backward_char): Move into Lisp.
370
bbc803b0
DN
3712010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
372
373 * s/freebsd.h (BSD4_2): Remove redundant definition.
374 bsd-common.h defines it already.
375
6431f2e6
CY
3762010-06-27 Chong Yidong <cyd@stupidchicken.com>
377
378 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
379 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
380 tool-bar-mode, which are now set using these X resources at
381 startup, to determine the defaults (Bug#2249).
382
383 * w32fns.c (Fx_create_frame):
384 * nsfns.m (Fx_create_frame): Likewise.
385
386 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
387
8c079ebb
JB
3882010-06-24 Juanma Barranquero <lekktu@gmail.com>
389
390 * gtkutil.c (xg_update_scrollbar_pos):
391 Avoid C99 mid-block variable declaration.
392
e9b7ab96
JD
3932010-06-22 Jan Djärv <jan.h.d@swipnet.se>
394
bc869eca
JD
395 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
396
2b7e356a 397 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
398
399 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
400 if height is less than scroll bar min size.
401 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
402
e9b7ab96
JD
403 * xfns.c (x_default_font_parameter): Try to open font from system
404 before using it (bug#6478). Rename got_from_gconf to got_from_system.
405
32a679fd
JD
4062010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
407
408 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
409
70c4cfbb
EZ
4102010-06-20 Eli Zaretskii <eliz@gnu.org>
411
412 * xdisp.c (try_scrolling): When scroll-conservatively is set to
413 most-positive-fixnum, be extra accurate when scrolling window
414 start, to avoid missing the cursor line.
415
ad5a12b5
EZ
4162010-06-19 Eli Zaretskii <eliz@gnu.org>
417
418 * xdisp.c (try_scrolling): Compute the limit for searching point
419 in forward scroll from scroll_max, instead of an arbitrary limit
420 of 10 screen lines. See
421 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
422 and
423 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
424 for details.
425
2a64315a 4262010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
427
428 * editfns.c (Fbyte_to_string): Pacify compiler.
429
288cf4e9
SM
4302010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
431
432 * lread.c (read1): Phase out old-style backquotes a bit more.
433
6e6e5760
EZ
4342010-06-12 Eli Zaretskii <eliz@gnu.org>
435
cbc4fd20
EZ
436 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
437 bidimirror.h.
438
439 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
440
317fbf33
EZ
441 * bidi.c (bidi_initialize): Remove explicit initialization of
442 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 443 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 444 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
445
446 * biditype.h: New file.
447
cbc4fd20
EZ
448 * bidimirror.h: New file.
449
6e6e5760
EZ
450 * window.c (syms_of_window): Doc fix (bug#6409).
451
4176cba2
RF
4522010-06-12 Romain Francoise <romain@orebokech.com>
453
454 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
455 ediff-hook.
456
cb4bfcb5
GM
4572010-06-10 Glenn Morris <rgm@gnu.org>
458
64c60c2f
GM
459 * editfns.c (Fbyte_to_string): Pacify compiler.
460
cb4bfcb5
GM
461 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
462
e454a4a3
SM
4632010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
464
465 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
466 Check `object's type before accessing its guts.
467
c1b1acc2
DN
4682010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
469
470 * s/usg5-4.h: Fix previous change.
471 Suggested by Lawrence Mitchell <wence@gmx.li>
472
657d4c0b
AS
4732010-06-08 Andreas Schwab <schwab@linux-m68k.org>
474
475 * minibuf.c (Fall_completions): Add more checks.
476
9b27fd9f
JB
4772010-06-08 Juanma Barranquero <lekktu@gmail.com>
478
479 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
480
a99ebb40
DN
4812010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
482
d7c5d87d
DN
483 * lread.c (X_OK): Remove, unused.
484
0263a941
DN
485 * dispnew.c: Remove obsolete comment.
486
a99ebb40
DN
487 Remove INCLUDED_FCNTL.
488 * xterm.c (INCLUDED_FCNTL):
489 * callproc.c (INCLUDED_FCNTL):
490 * alloc.c (INCLUDED_FCNTL):
491 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
492 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
493
13b5221f
MR
4942010-06-07 Martin Rudalics <rudalics@gmx.at>
495
496 * window.c (Fselect_window): Move `record_buffer' up to the
497 beginning of this function, so the buffer gets recorded
498 even if the selected window does not change.
499 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
500
5220357f
JB
5012010-06-07 Juanma Barranquero <lekktu@gmail.com>
502
503 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
504 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
505
3085237c
DN
5062010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
507
508 Remove BSTRING related code, all platforms define it.
509 * s/usg5-4.h (BSTRING): Remove definition.
510 * s/template.h (BSTRING):
511 * s/msdos.h (BSTRING):
512 * s/ms-w32.h (BSTRING):
513 * s/hpux10-20.h (BSTRING):
514 * s/gnu-linux.h (BSTRING):
515 * s/darwin.h (BSTRING):
516 * s/cygwin.h (BSTRING):
517 * s/bsd-common.h (BSTRING):
518 * s/aix4-2.h (BSTRING): Likewise.
519 * sysdep.c: Remove code depending on BSTRING not being defined.
520
409f2919
JB
5212010-06-05 Juanma Barranquero <lekktu@gmail.com>
522
523 Remove obsolete macro BASE_LEADING_CODE_P.
524 * character.h (BASE_LEADING_CODE_P): Remove.
525 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
526 * buffer.c (Fset_buffer_multibyte):
527 * indent.c (scan_for_column, compute_motion):
528 * insdel.c (count_combining_before, count_combining_after):
529 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
530
087fc47a
JB
5312010-06-04 Juanma Barranquero <lekktu@gmail.com>
532
533 Turn `directory-sep-char' into a noop.
534
535 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
536 (DIRECTORY_SEP): Define unconditionally.
537
538 * s/ms-w32.h (DIRECTORY_SEP): Remove.
539
540 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
541 call dostounix_filename directly.
542
543 * fileio.c (CORRECT_DIR_SEPS): Remove.
544 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
545 (Fsubstitute_in_file_name): Use dostounix_filename instead.
546 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
547 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
548
549 * w32proc.c (CORRECT_DIR_SEPS): Remove.
550 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
551
0eb7675e
AS
5522010-06-03 Andreas Schwab <schwab@linux-m68k.org>
553
554 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 555 address. (Bug#6346)
0eb7675e 556
78edd3b7
JB
5572010-06-03 Juanma Barranquero <lekktu@gmail.com>
558
559 * ccl.c (Fccl_program_p): Fix typo in docstring.
560
eb697db5
DN
5612010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
562
563 Move UNEXEC definition to autoconf.
564 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
565 * s/sol2-10.h (UNEXEC):
566 * s/irix6-5.h (UNEXEC):
567 * s/hpux10-20.h (UNEXEC):
568 * s/gnu-linux.h (UNEXEC):
569 * s/darwin.h (UNEXEC):
570 * s/cygwin.h (UNEXEC):
571 * s/bsd-common.h (UNEXEC):
572 * s/aix4-2.h (UNEXEC):
573 * m/alpha.h (UNEXEC): Likewise.
574 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
575
aa3830c4
JB
5762010-06-03 Juanma Barranquero <lekktu@gmail.com>
577
578 Remove obsolete pre-unicode2 macros.
579 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
580 * composite.c (composition_reseat_it):
581 * data.c (Faset):
582 * fns.c (Ffillarray):
583 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
584 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
585
d234d13e
JL
5862010-06-03 Juri Linkov <juri@jurta.org>
587
588 * buffer.c (Fother_buffer): Add CHECK_FRAME.
589 (Fswitch_to_buffer): Remove unused variable `err'.
590
0d4bcf4d
GM
5912010-06-03 Glenn Morris <rgm@gnu.org>
592
e23dc1e2
GM
593 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
594
05b09564
GM
595 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
596 now that AH_BOTTOM does it.
597
824e2978
GM
598 * m/hp800.h (HAVE_ALLOCA):
599 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
600
0d4bcf4d
GM
601 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
602 Remove NOT_C_CODE tests, it is always true now.
603
c55d2abf
DN
6042010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
605
08a494a3
DN
606 Fix config.h includes.
607 * xsettings.c:
608 * xgselect.c:
609 * nsterm.m:
610 * nsselect.m:
611 * nsimage.m:
612 * nsfont.m:
613 * nsfns.m:
614 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
615 other files do.
616
75934b1d
DN
617 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
618
9f32a766
DN
619 * s/sol2-6.h: Remove obsolete comments.
620
c55d2abf
DN
621 Remove unnecessary alloca.h includes.
622 * keymap.c: Do not include alloca.h, config.h does that.
623 * sysdep.c: Likewise. Do not define fwrite, not used.
624
06ac62b4
SM
6252010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
626
627 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
628 the HAVE_TERMIO where it belongs (bug#6149).
629
1ab8293c
SM
6302010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
631
632 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
633 of bug#6305).
634
6dcfd253
EZ
6352010-05-30 Eli Zaretskii <eliz@gnu.org>
636
637 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
638 state is always cached (bug#6306).
639
6d26bbb2
EZ
6402010-05-29 Eli Zaretskii <eliz@gnu.org>
641
06fa4a23
EZ
642 Fix cursor motion in bidi-reordered continued lines.
643 * xdisp.c (try_cursor_movement): Backup to non-continuation line
644 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
645 over continuation lines in bidi-reordered buffers. Return
646 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
647 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
648
f5783df3
MA
6492010-05-28 Michael Albinus <michael.albinus@gmx.de>
650
651 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
652
7d56b2dd
KH
6532010-05-28 Kenichi Handa <handa@m17n.org>
654
655 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
656 Don't sheck SPEC if it is nil.
657 (font_list_entities): Call font_delete_unmatched if
b925d231 658 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 659
e58d4ff7
GM
6602010-05-28 Glenn Morris <rgm@gnu.org>
661
662 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
663
f1a5d776
CY
6642010-05-27 Chong Yidong <cyd@stupidchicken.com>
665
666 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
667 whether to trash.
668 (internal_delete_file, Frename_file): Callers changed.
669 (delete_by_moving_to_trash): Doc fix.
670 (Fdelete_directory_internal): Don't move to trash.
671
672 * callproc.c (delete_temp_file):
673 * buffer.c (Fkill_buffer): Callers changed.
674
675 * lisp.h: Update prototype.
676
f44a59e6
CY
6772010-05-27 Chong Yidong <cyd@stupidchicken.com>
678
679 * xdisp.c (redisplay_window): After redisplay, check if point is
680 still valid before setting it (Bug#6177).
681
81ac4f35
GM
6822010-05-27 Glenn Morris <rgm@gnu.org>
683
684 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
685 Convert comments to Makefile format.
686
687 * Makefile.in (bootstrap-clean): No more Makefile.c.
688
ccd89fb3
GM
6892010-05-26 Glenn Morris <rgm@gnu.org>
690
90278cb6
GM
691 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
692 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
693
ccd89fb3
GM
694 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
695 Remove.
696 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
697
b7050583
KH
6982010-05-26 Kenichi Handa <handa@m17n.org>
699
700 * composite.c (composition_compute_stop_pos): Fix condition for
701 backward scanning.
702
e5458003
GM
7032010-05-25 Glenn Morris <rgm@gnu.org>
704
c345fe90
GM
705 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
706 Move before TEMACS_LDFLAGS.
707 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
708 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
709
2e0689ab
GM
710 * Makefile.in (NOT_C_CODE): No longer define.
711 (config.h): No longer include.
712
8009a5e8
GM
713 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
714 variables it may reference.
715
e5458003
GM
716 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
717 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
718
10f72a37
KH
7192010-05-25 Kenichi Handa <handa@m17n.org>
720
721 * dispextern.h (struct composition_it): New members rule_idx and
722 charpos.
723
724 * xdisp.c (set_iterator_to_next): While scanning backward, assume
725 that the character positions of IT point the last character of the
726 current grapheme cluster.
727 (next_element_from_composition): Don't change character positions
728 of IT.
729 (append_composite_glyph): Set glyph->charpos to
730 it->cmp_it.charpos.
731
732 * composite.c (autocmp_chars): Change the first argument to RULE,
733 and try composition with RULE only.
734 (composition_compute_stop_pos): Record the index number of the
735 composition rule in CMP_IT->rule_idx.
736 (composition_reseat_it): Call autocmp_chars repeatedly until the
737 correct rule of the composition is found.
738 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
739 is at the last character of the current grapheme cluster when
740 CMP_IT->reversed_p is nonzero.
741
171eda53 7422010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 743
171eda53
SM
744 * editfns.c (Fbyte_to_string): New function.
745
66a9f7f4
SM
7462010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
747
748 * process.c (Fmake_network_process): Set :host to nil if it's not used.
749 Suggested by Masatake YAMATO <yamato@redhat.com>.
750
d8c315d1
EZ
7512010-05-23 Eli Zaretskii <eliz@gnu.org>
752
171eda53 753 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 754
f5b416d2 7552010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
756
757 * s/netbsd.h: If terminfo is found, use it in preference to
758 termcap. (Bug#6190) [Backport from trunk]
759
0416466c
EZ
7602010-05-19 Eli Zaretskii <eliz@gnu.org>
761
11117830 762 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
763
764 * dispextern.h (struct glyph_row): New members minpos and maxpos.
765 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
766 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
767 and maxpos members instead of start.pos and end.pos, respectively.
768
769 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
770 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
771 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
772 (try_window_reusing_current_matrix, try_window_id):
773 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
774 (init_from_display_pos, init_iterator): Use EMACS_INT for
775 character and byte positions.
66a9f7f4 776 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
777 arguments for minimum and maximum buffer positions seen by
778 display_line for this row. Don't use iterator to find the
779 position following the maximum one; instead, increment the
11117830
EZ
780 position found by display_line directly. Fix logic; eol_pos
781 should be tested before the rest. Handle the case of characters
782 delivered from display vector (bug#6036). Fix tests related to
783 it->method. Handle the truncated_on_right_p rows.
784 (RECORD_MAX_MIN_POS): New macro.
785 (display_line): Use it to record the minimum and maximum buffer
786 positions for glyphs in the row being assembled. Record the
787 position of the newline that terminates the line. If word wrap is
788 in effect, restore minimum and maximum positions seen up to the
789 wrap point, when iterator returns to it.
790 (try_window_reusing_current_matrix): Give up if in bidi-reordered
791 row and cursor not already at point. Restore original pre-bidi
792 code for unidirectional buffers.
d36fe237
EZ
793
794 * dispnew.c (increment_row_positions, check_matrix_invariants):
795 Increment and check row->start.pos and row->end.pos, in addition
796 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
797
11117830
EZ
798 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
799 Display truncated_on_left_p and truncated_on_right_p flags.
800 Formatting fixes.
801 (pmtxrows): Display the ordinal number of each row. Don't display
802 rows beyond the last one.
803
804 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
805 it is not copied by bidi_copy_it.
806
6e83d800
EZ
8072010-05-22 Eli Zaretskii <eliz@gnu.org>
808
809 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
810 (Bug#6237)
811
110683ad
CY
8122010-05-22 Chong Yidong <cyd@stupidchicken.com>
813
814 * image.c (Fimage_flush): Rename from image-refresh.
815
98fe5161
CY
8162010-05-21 Chong Yidong <cyd@stupidchicken.com>
817
818 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
819 just one window.
820
821 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
822 (clear_image_cache): If the number of cached images is unusually
823 large, decrease the cache eviction delay (Bug#6230).
824
e8752c66
GM
8252010-05-21 Glenn Morris <rgm@gnu.org>
826
66dbf213
GM
827 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
828 Move these rules to ns.mk.
829 * ns.mk: New file.
830
04384b2d
GM
831 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
832
e8752c66
GM
833 * Makefile.in (CANNOT_DUMP): New, set by configure.
834 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
835
2e2bbddb
JL
8362010-05-20 Juri Linkov <juri@jurta.org>
837
838 * fileio.c (Fdelete_file): Change interative spec to use
839 `read-file-name' like in `find-file-read-args' where the default
840 value is `default-directory' instead of `buffer-file-name'.
841 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
842
31c4aaf6
KR
8432010-05-20 Kevin Ryde <user42@zip.com.au>
844
845 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
846 (Voverriding_terminal_local_map, Vsystem_key_alist)
847 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
848
9d5cf9b6
GM
8492010-05-20 Glenn Morris <rgm@gnu.org>
850
851 * Makefile.in (DEPDIR): New constant.
852 (DEPFLAGS): Set with configure, not cpp.
853 (MKDEPDIR): New, set by configure.
854 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
855 (clean): Use $DEPDIR.
856 (deps_frag): Include from configure.
857 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
858 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
859
ead6f8f5
EZ
860 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
861 reallocation of the cache. (Bug#6210)
862
7f34aec3
GM
8632010-05-19 Glenn Morris <rgm@gnu.org>
864
d494e8f2
GM
865 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
866
c1d0dcfd
GM
867 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
868 (GNULIB_VAR): Remove.
869 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
870
871 * m/ibms390x.h (LINKER):
872 * m/macppc.h (LINKER) [GNU_LINUX]:
873 * s/aix4-2.h (ORDINARY_LINK):
874 * s/cygwin.h (LINKER):
875 * s/darwin.h (ORDINARY_LINK):
876 * s/gnu.h (ORDINARY_LINK):
877 * s/netbsd.h (LINKER):
878 * s/usg5-4.h (ORDINARY_LINK):
879 Move to configure.
880
7f34aec3
GM
881 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
882
754790b6
CY
8832010-05-18 Chong Yidong <cyd@stupidchicken.com>
884
885 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
886 prevent stack overflow if number of arguments is too large
887 (Bug#6214).
888
161e44d1
JB
8892010-05-18 Juanma Barranquero <lekktu@gmail.com>
890
891 * charset.c (load_charset_map_from_file): Don't call close after fclose.
892
be4ff9da
GM
8932010-05-18 Glenn Morris <rgm@gnu.org>
894
9539dc5d
GM
895 * s/gnu-linux.h: Combine two conditionals.
896
897 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
898 $(POST_ALLOC_OBJ).
899
40dc6bf4
GM
900 * Makefile.in (RALLOC_OBJ): New, set by configure.
901 (rallocobj): Replace with the previous variable.
902 (otherobj): Use $RALLOC_OBJ.
903
904 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
905 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
906
be4ff9da
GM
907 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
908 (gmallocobj, vmlimitobj): Replace with previous two variables.
909 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
910
16455a85
GM
9112010-05-17 Glenn Morris <rgm@gnu.org>
912
913 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
914 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
915
5fdb7468
GM
9162010-05-16 Glenn Morris <rgm@gnu.org>
917
7ca1f3f9
GM
918 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
919
7541dad5
GM
920 * Makefile.in (clean): Get rid of HAVE_NS conditional.
921
da53fab9
GM
922 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
923 trailing "/".
924
b02a6645
GM
925 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
926 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
927
8877ca0f
GM
928 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
929 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
930 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
931 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
932 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
933
5fdb7468
GM
934 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
935 Remove ${STARTFLAGS}, nothing ever sets it.
936
95adb4b1
DN
9372010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
938
939 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
940
676b6304
GM
9412010-05-16 Glenn Morris <rgm@gnu.org>
942
9beab9ce
GM
943 * Makefile.in (LIBX_BASE): Always define.
944
8a95f0e7
GM
945 * Makefile.in (LIBX_OTHER): Move out of cpp section.
946
676b6304
GM
947 * Makefile.in (LIBXT): Always define.
948
6e546d18
GM
9492010-05-15 Glenn Morris <rgm@gnu.org>
950
4235ca47 951 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 952
6e546d18
GM
953 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
954 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
955
8c5ff6dd
KR
9562010-05-15 Ken Raeburn <raeburn@raeburn.org>
957
560bb7ae 958 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
959 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
960
8b4eb796
KR
961 * emacs.c (main): Initialize initial-environment and
962 process-environment before generating from env, not after.
963
8c5ff6dd
KR
964 Handle --version reasonably in CANNOT_DUMP configuration.
965 * emacs.c (emacs_version, emacs_copyright): New string variables.
966 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
967 (syms_of_emacs): Defvar them, and initialize them from the C
968 string variables.
969 (main): If initialization hasn't been done, print initial version
970 info from the C strings, instead of starting an interactive session.
971
dbd3f723
EZ
9722010-05-15 Eli Zaretskii <eliz@gnu.org>
973
d20e1419
EZ
974 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
975 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
976 (bidi_paragraph_init): Remove redundant assertion that we are at
977 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
978
979 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
980 (syms_of_xdisp): Defsubr it.
981
d36fe237
EZ
982 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
983
dbd3f723
EZ
984 * Makefile.in: Fix MSDOS-related comments.
985
02be533b
GM
9862010-05-15 Glenn Morris <rgm@gnu.org>
987
1a82cca9
GM
988 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
989 (really-lwlib, really-oldXMenu): Always define.
990 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
991
3df7b338
GM
992 * Makefile.in: Simplify cpp conditional.
993
2b5f541b
GM
994 * Makefile.in (${ns_appdir}): Simplify using umask.
995
02be533b
GM
996 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
997
4e2db1fe
SM
9982010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
999
1000 * eval.c (specbind): Remove left-over duplicate test.
1001 Disallow let-binding frame-local vars. Add comment.
1002
4b292a22
EZ
10032010-05-14 Eli Zaretskii <eliz@gnu.org>
1004
2fe72643 1005 Make the cache of bidi iterator states dynamically allocated.
1edbd309 1006 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
1007 (bidi_init_it): Call it.
1008 (bidi_cache_iterator_state): Enlarge the cache if needed.
1009
4e2db1fe 1010 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
1011 bidi_get_next_char_visually. All callers changed.
1012
82ebc97b
KH
10132010-05-14 Kenichi Handa <handa@m17n.org>
1014
1015 * dispextern.h (struct composition_it): New member reversed_p.
1016
1017 * composite.c (composition_compute_stop_pos): Search backward if
1018 ENDPOS < CHARPOS.
1019 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
1020 Set CMP_IT->reversed_p.
b4b6e17e 1021 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 1022
4e2db1fe
SM
1023 * xdisp.c (set_iterator_to_next):
1024 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
1025 scanning backward. Call composition_compute_stop_pos if scan
1026 direction is changed.
1027 (next_element_from_buffer): Call composition_compute_stop_pos with
1028 negative ENDPOS if we are scanning backward.
1029 (next_element_from_composition): Pay attention to
1030 IT->cmp_it.reversed_p.
1031
0e5d7800
KH
10322010-05-14 Kenichi Handa <handa@m17n.org>
1033
560bb7ae 1034 * font.c (font_range): Return the range for the font found at first.
0e5d7800 1035
cb027b32
GM
10362010-05-14 Glenn Morris <rgm@gnu.org>
1037
177b0288
GM
1038 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
1039
fbc00890
GM
1040 * Makefile.in (mktime, X11, register): Move undefs to configure.
1041
f14d1dfd
GM
1042 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
1043 (MSDOS_X_OBJ): New variable.
1044 (MSDOS_SUPPORT_REAL): New constant.
1045 (MSDOS_SUPPORT): Set as a variable, not with cpp.
1046 (obj): Use MSDOS_X_OBJ.
1047 (lisp): Use MSDOS_SUPPORT as a variable.
1048
11842bd8
GM
1049 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
1050 (GPM_MOUSE_SUPPORT): Now it's a constant.
1051 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
1052 not cpp.
1053
489d31a4 1054 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 1055 (ns_appresdir): Remove, unused.
e20f1f07 1056
489d31a4
GM
1057 * Makefile.in (SHELL): Move outside cpp section.
1058
cb027b32
GM
1059 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
1060
5a903aa9
GM
10612010-05-13 Glenn Morris <rgm@gnu.org>
1062
3369c79f
GM
1063 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
1064 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
1065
d5e982a6
GM
1066 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
1067 HAVE_WINDOW_SYSTEM must be too.
1068
6192e163
GM
1069 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
1070 (lisp): Remove WINNT_SUPPORT.
1071
472c5d6b
GM
1072 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
1073 Let configure set these variables (to empty) in this case as well.
1074
0116466b
GM
1075 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
1076 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
1077
5a903aa9
GM
1078 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
1079 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
1080 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
1081 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
1082 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 1083 the values output by configure.
5a903aa9
GM
1084 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
1085
1a0d7c06
GM
10862010-05-12 Glenn Morris <rgm@gnu.org>
1087
b5457f14
GM
1088 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
1089 (LINKER_WAS_SPECIFIED): Remove.
1090
1a0d7c06
GM
1091 * Makefile.in (LIB_GCC): Set using configure, not cpp.
1092 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
1093 * m/arm.h (LIB_GCC) [GNU_LINUX]:
1094 * s/cygwin.h (LIB_GCC):
1095 * s/freebsd.h (LIB_GCC):
1096 * s/gnu-linux.h (LIB_GCC):
1097 * s/msdos.h (LIB_GCC):
1098 * s/netbsd.h (LIB_GCC):
1099 Move to configure.
1100
3ffd4615 11012010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
1102
1103 * ftfont.c: Fix incorrect parentheses of #if condition for
1104 definining M17N_FLT_USE_NEW_FEATURE.
1105
acddf8ae
GM
11062010-05-11 Glenn Morris <rgm@gnu.org>
1107
1108 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
1109 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
1110
ae5e04fa
EZ
11112010-05-10 Eli Zaretskii <eliz@gnu.org>
1112
1113 * xdisp.c (init_iterator): Don't turn on bidi reordering in
1114 unibyte buffers. See
1115 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
1116
7490175b
GM
11172010-05-10 Glenn Morris <rgm@gnu.org>
1118
97efb629
GM
1119 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
1120 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
1121 (LIBES): Use LIBS_SYSTEM as a variable.
1122 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
1123 * s/aix4-2.h (LIBS_SYSTEM):
1124 * s/freebsd.h (LIBS_SYSTEM):
1125 * s/hpux10-20.h (LIBS_SYSTEM):
1126 * s/sol2-6.h (LIBS_SYSTEM):
1127 * s/unixware.h (LIBS_SYSTEM):
1128 Move to configure.
1129
7490175b
GM
1130 * s/aix4-2.h (MAIL_USE_LOCKF):
1131 * s/bsd-common.h (MAIL_USE_FLOCK):
1132 * s/darwin.h (MAIL_USE_FLOCK):
1133 * s/gnu-linux.h (MAIL_USE_FLOCK):
1134 * s/irix6-5.h (MAIL_USE_FLOCK):
1135 * s/template.h (MAIL_USE_FLOCK):
1136 Move to configure.
1137
0235128c 11382010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
1139
1140 * Version 23.2 released.
1141
0235128c 11422010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
1143
1144 * composite.c (autocmp_chars): Save point as marker before calling
1145 auto-composition-function (Bug#5984).
1146
1147 * lisp.h (restore_point_unwind): Add prototype.
1148
1149 * fileio.c (restore_point_unwind): Remove static attribute.
1150
0235128c 11512010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
1152
1153 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
1154 new feature of libotf and m17n-flt.
0235128c
SM
1155 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
1156 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
1157 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
1158 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
1159 that OUT is NULL. Use OTF_drive_gsub_with_log and
1160 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
1161 OTF_drive_gpos.
1162 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
1163 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
1164 Setup mflt_enable_new_feature and mflt_try_otf.
1165
4721152c
J
11662010-05-08 Jan Djärv <jan.h.d@swipnet.se>
1167
1168 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
1169
1170 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
1171 box and toolbar (Bug #6139).
1172 (xg_create_tool_bar): Remove comment (Bug #6139).
1173 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
1174 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
1175
ee0a16cf
JB
11762010-05-08 Juanma Barranquero <lekktu@gmail.com>
1177
1178 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
1179 Update dependencies.
1180
96d79611
EZ
11812010-05-08 Eli Zaretskii <eliz@gnu.org>
1182
1183 * fringe.c (update_window_fringes): Set up truncation bitmaps for
1184 R2L lines.
1185
40c17879
GM
11862010-05-08 Glenn Morris <rgm@gnu.org>
1187
7b42b29f
GM
1188 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
1189
40c17879
GM
1190 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
1191 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
1192 (termcapobj): Replace with TERMCAP_OBJ.
1193 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
1194 (LIBES): Use LIBS_TERMCAP as a variable.
1195
1196 * s/freebsd.h (osreldate.h): No longer include, since this file
1197 does not use __FreeBSD_version any more.
1198
1199 * s/aix4-2.h (TERMINFO):
1200 * s/cygwin.h (TERMINFO):
1201 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1202 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
1203 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1204 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
1205 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
1206 * s/irix6-5.h (TERMINFO):
1207 * s/netbsd.h (LIBS_TERMCAP):
1208 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
1209 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
1210 * s/usg5-4.h (TERMINFO):
1211 Move to configure.
1212
94b612ad
SM
12132010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
1214
1215 * eval.c (unbind_to): Don't unbind a local binding into the global
1216 binding when the local binding disappeared. Inversely, don't unbind
1217 a global binding into a newly created local binding.
1218 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
1219 can specify the frame to use, when applicable. Adjust callers.
1220
15e12598 12212010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 1222 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
1223
1224 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
1225
f724825e
EZ
12262010-05-07 Eli Zaretskii <eliz@gnu.org>
1227
5cba3209
EZ
1228 * w32fns.c: Include w32.h.
1229 (Fw32_shell_execute): Decode the error message before passing it
1230 to `error'. (Bug#6126)
1231
d16bdfc3
EZ
1232 * msdos.c (dos_set_window_size):
1233 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
1234 instead of `XSYMBOL (foo)->value'.
1235
59d93e87
EZ
12362010-05-07 Eli Zaretskii <eliz@gnu.org>
1237
9fdec8bc
EZ
1238 Fix the MS-DOS build, broken by autoconfiscation.
1239
1240 * Makefile.in: Don't use Make-style comments past the "start of
1241 cpp stuff" line.
1242 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
1243
1244 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
1245 edited directly by msdos/sed1v2.inp).
f724825e 1246
2f86b22b
GM
12472010-05-07 Glenn Morris <rgm@gnu.org>
1248
1249 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
1250 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
1251 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
1252 move out of cpp section.
1253 * s/freebsd.h (LD_SWITCH_SYSTEM):
1254 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
1255 * s/netbsd.h (LD_SWITCH_SYSTEM):
1256 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
1257
49ebbd65
DN
12582010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
1259
1260 Define LIB_STANDARD and START_FILES using autoconf.
1261 * s/usg5-4.h (LIB_STANDARD):
1262 * s/netbsd.h (START_FILES):
1263 * s/irix6-5.h (LIB_STANDARD):
1264 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
1265 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1266 * s/freebsd.h (START_FILES):
1267 * s/darwin.h (START_FILES):
1268 * s/cygwin.h (START_FILES):
1269 * s/aix4-2.h (LIB_STANDARD):
1270 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1271 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1272 autoconf, not cpp.
1273
d43c06d6
DN
12742010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1275
28823648
DN
1276 Remove NEED_BSDTTY and NEED_UNISTD_H.
1277 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1278 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1279 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1280 <sys/ptyio.h> and <unistd.h>.
1281
aca00430
DN
1282 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1283
d43c06d6
DN
1284 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1285 * s/gnu.h (START_FILES): Remove empty definition.
1286
3e56b11d
JD
12872010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1288
1289 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1290
e3cf0cde
GM
12912010-05-06 Glenn Morris <rgm@gnu.org>
1292
1293 * Makefile.in (CPP, LN_S): Remove unused variables.
1294
774b9a60
SM
12952010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1296
1297 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1298
4ab92842
LM
12992010-05-05 Lawrence Mitchell <wence@gmx.li>
1300
1301 * m/sparc.h: Fix typo in earlier change.
1302
178f2507
SM
13032010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1304
1305 Misc tweaks.
1306 * eval.c (Fdefvaralias): Remove unintended nested if.
1307 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1308
80f00217 13092010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1310
1311 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1312
ef03a4e6
DN
13132010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1314
58eb6cf0
DN
1315 Remove BSD_PGRPS.
1316 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1317 * s/gnu-linux.h (BSD_PGRPS): Remove.
1318 * term.c (dissociate_if_controlling_tty):
1319 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1320 (init_sys_modes, reset_sys_modes):
1321 * emacs.c (main):
1322 * callproc.c (Fcall_process, child_setup): Remove code depending
1323 on BSD_PGRPS.
1324
ef03a4e6
DN
1325 Remove POSIX_SIGNALS.
1326 * s/usg5-4.h (POSIX_SIGNALS):
1327 * s/netbsd.h (POSIX_SIGNALS):
1328 * s/msdos.h (POSIX_SIGNALS):
1329 * s/ms-w32.h (POSIX_SIGNALS):
1330 * s/hpux11.h (POSIX_SIGNALS):
1331 * s/gnu.h (POSIX_SIGNALS):
1332 * s/gnu-linux.h (POSIX_SIGNALS):
1333 * s/freebsd.h (POSIX_SIGNALS):
1334 * s/darwin.h (POSIX_SIGNALS):
1335 * s/cygwin.h (POSIX_SIGNALS):
1336 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1337 * s/unixware.h:
1338 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1339 * process.c (create_process):
1340 * syssignal.h:
1341 * sysdep.c (wait_for_termination, init_signals):
1342 * process.c (create_process):
1343 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1344 remove all code that assumes the contrary.
1345
49628785
GM
13462010-05-04 Glenn Morris <rgm@gnu.org>
1347
27a2cdfc
GM
1348 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1349 variable.
1350 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1351 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1352 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1353 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1354 LD_SWITCH_SYSTEM_tmp.
1355 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1356 New variables, set by configure.
1357
eb21eab5
GM
1358 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1359 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1360 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1361 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1362 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1363
49628785
GM
1364 * s/aix4-2.h (C_SWITCH_SYSTEM):
1365 * m/alpha.h (C_SWITCH_MACHINE):
1366 Move to configure.in.
1367 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1368 New variables, set by configure.
1369 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1370 $c_switch_machine and $c_switch_system.
1371
7dff330b
DN
13722010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1373
1374 * s/hpux10-20.h (LIB_STANDARD): New definition.
1375 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1376 on it, not used anymore.
1377
53967e09
CY
13782010-05-03 Chong Yidong <cyd@stupidchicken.com>
1379
1380 * eval.c (internal_condition_case_n): Rename from
1381 internal_condition_case_2.
1382 (internal_condition_case_2): New function.
1383
1384 * xdisp.c (safe_call): Use internal_condition_case_n.
1385
1386 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1387 (internal_delete_file, Frename_file): Callers changed.
1388
1389 * buffer.c (Fkill_buffer):
1390 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1391
1392 * lisp.h: Update prototypes.
1393
3dee6fdb
GM
13942010-05-03 Glenn Morris <rgm@gnu.org>
1395
1396 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1397 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1398 (LIBXT): Set with configure, not cpp.
1399 (LIBX): Remove.
1400 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1401
a101e0fb
DN
14022010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1403
1404 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1405 The FreeBSD is not needed, the default works, Solaris version is
1406 not needed, and the remaining case is not supported by configure.
1407
f63d0028
JD
14082010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1409
1410 * xsmfns.c (CHDIR_OPT): New define.
1411 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1412 restarting emacs.
1413
1414 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1415 shut_down_emacs.
1416
1417 * emacs.c (USAGE1): Mention --chdir.
1418 (main): Handle --chdir.
1419 (standard_args): Add --chdir.
1420 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1421 #5552).
1422
e4814a9f
DN
14232010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1424
cd03c74a
DN
1425 Remove LD_SWITCH_MACHINE.
1426 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1427 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1428
c3a398a1
DN
1429 Clean up IRIX code.
1430 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1431 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1432
87e7285c
DN
1433 Clean up AIX code.
1434 * m/ibmrs6000.inp: Remove file, unused.
1435 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1436 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1437 definition ...
1438 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1439
80f00217
JB
1440 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1441 unused.
e4814a9f 1442
59ca28de
EZ
14432010-05-01 Eli Zaretskii <eliz@gnu.org>
1444
197daef4
EZ
1445 Emulate POSIX_SIGNALS on MS-Windows.
1446
1447 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1448 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1449
1450 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1451 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1452 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1453
80f00217
JB
1454 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1455 New stubs.
197daef4 1456
af7c7572
EZ
1457 Miscellaneous fixes of bidi display.
1458
59ca28de
EZ
1459 * xdisp.c (find_row_end): New function, refactored from display_line.
1460 (display_line): Use it.
017ea819
EZ
1461 (extend_face_to_end_of_line): In almost-filled rows, extend only
1462 if the row is R2L and not continued.
166e930d 1463 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1464 Preserve overlay and string info in row->end.
166e930d
EZ
1465 (insert_left_trunc_glyphs): Support addition of left truncation
1466 glyphs to R2L rows.
b47e0dcf 1467 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1468 glyph between adjacent windows. Fix a crash when a display string
1469 is continued to the next line. Don't return zero if cursor was
1470 found by `cursor' property of a display string.
b47e0dcf
EZ
1471 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1472 test for that explicitly.
59ca28de 1473
7acac9f4
GM
14742010-05-01 Glenn Morris <rgm@gnu.org>
1475
1476 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1477 for clarity.
1478 (OTHER_OBJ): Remove.
1479 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1480 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1481
45841e65
KK
14822010-05-01 Karel Klíč <kklic@redhat.com>
1483
1484 * fileio.c (Ffile_selinux_context): Context functions may return null.
1485
afc61943
DN
14862010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1487
80f00217 1488 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1489
5a1bb006
GM
14902010-04-30 Glenn Morris <rgm@gnu.org>
1491
1492 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1493 (OTHER_OBJ): Define as a separate variable, for clarity.
1494
210af043
J
14952010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1496
1497 * xsettings.c: include limits.h and update file comment.
1498
0a7df391
GM
14992010-04-30 Glenn Morris <rgm@gnu.org>
1500
d5096f16
GM
1501 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1502 Set with configure, not cpp.
1503 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1504
7eb1ac33
GM
1505 * Makefile.in (mallocobj): Remove.
1506 (otherobj): Simplify using @OTHER_OBJ@.
1507
517d086b
GM
1508 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1509 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1510 Don't bother making nsgui.h dependency platform-specific.
1511
0a7df391
GM
1512 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1513
d6d23852
SM
15142010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1515
d2630aef
SM
1516 * process.c (read_process_output, exec_sentinel): Don't burp if the
1517 sentinel/filter kills the current buffer (bug#6060).
1518
f9dddf52 1519 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1520 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1521 Remove unused var `args'.
1522 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1523 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1524 * doc.c (store_function_docstring): Use XSETCAR.
1525
f1e3642a
GM
15262010-04-28 Glenn Morris <rgm@gnu.org>
1527
faf535f8
GM
1528 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1529 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1530
c40f9449
GM
1531 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1532
658f86ca
GM
1533 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1534 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1535
bc0b5f61
GM
1536 * Makefile.in (FONT_OBJ): New, set by configure.
1537 (FONT_DRIVERS): Use $FONT_OBJ.
1538
294c50a0
GM
1539 * Makefile.in (LIBXMU): Set with configure, not cpp.
1540 * s/aix4-2.h (LIBXMU):
1541 * s/hpux10-20.h (LIBXMU):
1542 Remove definition, now set in configure.
1543
e6ec4e99
GM
1544 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1545
f1e3642a
GM
1546 * m/amdx86-64.h [i386]: Move this test to configure.in.
1547
c6ea2936
GM
15482010-04-27 Glenn Morris <rgm@gnu.org>
1549
8fdac2c3
GM
1550 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1551 * s/unixware.h (NEED_LIBW): Remove definition.
1552
986fb647
GM
1553 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1554 (TOOLKIT_LIBW): New, set by configure.
1555 (@X_TOOLKIT_TYPE@): No longer define it.
1556
c6ea2936
GM
1557 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1558 (MOTIF_LIBW): Set with configure, not cpp.
1559 * s/aix4-2.h (LIB_MOTIF):
1560 * s/gnu-linux.h (LIB_MOTIF):
1561 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1562
aaa36002
DN
15632010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1564
1565 Reduce CPP usage.
1566 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1567 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1568 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1569 definitions and undefs. Inline definitions in the only user.
1570 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1571
b678dd8b
GM
15722010-04-27 Glenn Morris <rgm@gnu.org>
1573
76cda504
GM
1574 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1575 since the defaults (set by the system file) are fine in most cases.
1576 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1577 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1578 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1579 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1580 Remove definitions, since they are set correctly in s/gnu-linux.h.
1581 * s/freebsd.h (START_FILES, LIB_STANDARD):
1582 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1583 * s/hpux10-20.h (START_FILES):
1584 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1585 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1586
b678dd8b
GM
1587 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1588 (MOTIF_LIBW): Use $LIBXP.
1589 (otherobj): Use $WIDGET_OBJ.
1590
9452ded1
DN
15912010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1592
7e10844c
DN
1593 * Makefile.in (LIBS_MACHINE): Remove, unused.
1594
9452ded1
DN
1595 Use autoconf instead of cpp for LIB_MATH.
1596 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1597 * s/cygwin.h (LIB_MATH): Likewise.
1598 * Makefile.in (LIB_MATH): Do not define with cpp.
1599 (LIBES): Use autoconf for LIB_MATH.
1600
fcebfc6a
KH
16012010-04-26 Kenichi Handa <handa@m17n.org>
1602
1603 * composite.c (Ffind_composition_internal): Fix the return value
1604 for an automatic composition.
1605
39e2ad1b
DN
16062010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1607
1608 Remove all NO_ARG_ARRAY uses.
1609 * fns.c (concat2, concat3, nconc2):
1610 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1611 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1612 * m/xtensa.h (NO_ARG_ARRAY):
1613 * m/template.h (NO_ARG_ARRAY):
1614 * m/sparc.h (NO_ARG_ARRAY):
1615 * m/sh3.h (NO_ARG_ARRAY):
1616 * m/mips.h (NO_ARG_ARRAY):
1617 * m/macppc.h (NO_ARG_ARRAY):
1618 * m/iris4d.h (NO_ARG_ARRAY):
1619 * m/intel386.h (NO_ARG_ARRAY):
1620 * m/ibms390x.h (NO_ARG_ARRAY):
1621 * m/ibms390.h (NO_ARG_ARRAY):
1622 * m/ibmrs6000.h (NO_ARG_ARRAY):
1623 * m/ia64.h (NO_ARG_ARRAY):
1624 * m/hp800.h (NO_ARG_ARRAY):
1625 * m/arm.h (NO_ARG_ARRAY):
1626 * m/amdx86-64.h (NO_ARG_ARRAY):
1627 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1628
adf4f59c
EZ
16292010-04-25 Eli Zaretskii <eliz@gnu.org>
1630
6bdf5d65
EZ
1631 * xdisp.c (display_line): Don't assume 2nd call to
1632 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1633 (iterate_out_of_display_property): New function, body from pop_it.
1634 (pop_it): Use it.
adf4f59c 1635
dfbbda83
GM
16362010-04-24 Glenn Morris <rgm@gnu.org>
1637
1638 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1639 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1640 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1641 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1642
2d4018aa
EZ
16432010-04-24 Eli Zaretskii <eliz@gnu.org>
1644
a49884a6
EZ
1645 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1646 use `get_next_display_element' and `set_iterator_to_next' to
1647 advance to the next character, when looking for the character that
1648 begins the next row.
1649
76db6fcc 1650 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1651 definition of "struct Lisp_Symbol".
1652
70eab5c1
GM
16532010-04-24 Glenn Morris <rgm@gnu.org>
1654
1655 * Makefile.in (CRT_DIR): New variable, set by configure.
1656 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1657 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1658
1ad4cc3d
DN
16592010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1660
e769f484
DN
1661 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1662
4196ff33
DN
1663 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1664
879b0ee4
DN
1665 Remove redundant flags.
1666 * s/freebsd.h (C_SWITCH_SYSTEM):
1667 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1668 * s/netbsd.h (C_SWITCH_SYSTEM):
1669 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1670 of these.
1671
03cbbcb8
DN
1672 Simplify m/intel386.h.
1673 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1674 user: ecrt0.c.
1675 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1676 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1677 the only user: s/unixware.h.
1678 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1679 from m/intel386.h.
1680 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1681 moved here from m/intel386.h.
1682
1ad4cc3d
DN
1683 * m/mips.h: Remove #if 0 code.
1684
8785b888
EZ
16852010-04-23 Eli Zaretskii <eliz@gnu.org>
1686
728588cc
EZ
1687 Fix display of composed characters from L2R scripts in bidi buffers.
1688 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1689 After advancing IT past the composition, resync the bidi iterator
1690 with IT's position. (Bug#5977)
1691
a63f80b4
DN
16922010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1693
1694 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1695 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1696
ff5dec5c
SM
16972010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1698
1699 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1700
8785b888
EZ
17012010-04-23 Eli Zaretskii <eliz@gnu.org>
1702
58ccf243 1703 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1704 * xdisp.c (pop_it): When the stack is popped after displaying
1705 from a string, bidi-iterate to exit from the text portion covered
1706 by the `display' property or overlay. (Bug#5988, bug#5920)
1707
feeb1604
DN
17082010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1709
8e324eb6
DN
1710 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1711 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1712
809fcaba
DN
1713 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1714 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1715
ed710380
DN
1716 Simplify STARTFILES definition.
1717 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1718 relying on Makefile.in to define it.
1719 * s/cygwin.h (START_FILES): Likewise.
1720 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1721
feeb1604
DN
1722 Clean up Solaris code.
1723 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1724 (LIB_MOTIF): Remove, configure takes care of this.
1725 (NOT_USING_MOTIF): Remove, unused.
1726 * xrdb.c: Remove #if 0-ed #include.
1727 (SYSV): Remove conditional for old SysV.
1728 * sysdep.c (closedir): Remove conditional code for Solaris,
1729 Solaris has closedir.
1730
a0d0b563
JD
17312010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1732
1733 * xsettings.c (read_and_apply_settings): Check if current_font is
1734 NULL before strcmp (Bug#6001).
1735
56bae7c7
DN
17362010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1737
1738 Clean up HP-UX files.
1739 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1740 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1741 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1742 * s/hpux10-20.h: ... to the only user, here.
1743
372b7a95
EZ
17442010-04-21 Eli Zaretskii <eliz@gnu.org>
1745
1746 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1747 use buffer-local values of paragraph-start and paragraph-separate.
1748 <paragraph_start_re, paragraph_separate_re>: Rename from
1749 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1750 (Bug#5992)
1751
f904c0f9
JD
17522010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1753
1754 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1755 current_tool_bar_style are new.
1756 (store_config_changed_event): Rename from store_font_changed_event.
1757 (XSETTINGS_TOOL_BAR_STYLE): New define.
1758 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1759 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1760 HAVE_XFT.
1761 (something_changedCB): store_font_changed_event is now
1762 store_config_changed_event
1763 (parse_settings): Rename from parse_xft_settings. Read
1764 non-xft xsettings outside #ifdef HAVE_XFT.
1765 (read_settings): Renamed from read_xft_settings.
1766 (apply_xft_settings): Take current settings as parameter. Do not
1767 call read_(xft)_settings.
1768 (read_and_apply_settings): New function.
1769 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1770 read_and_apply_settings if there are settings to be read.
1771 (init_xsettings): Renamed from init_xfd_settings.
1772 Call read_and_apply_settings unconditionally.
1773 (xsettings_initialize): Call init_xsettings.
1774 (Ftool_bar_get_system_style): New function.
1775 (syms_of_xsettings): Define Qmonospace_font_name and
1776 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1777 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1778 dynamic-setting.
31a01b90 1779 Move misplaced HAVE_GCONF
f904c0f9
JD
1780
1781 * xsettings.h (Ftool_bar_get_system_style): Declare.
1782
1783 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1784 Qtext, Qboth, Qboth_horiz are new.
1785 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1786 Vtool_bar_style, tool_bar_max_label_size.
1787
1788 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1789
1790 * keyboard.c: QClabel is new.
1791 (parse_tool_bar_item): Take out QClabel from tool bar items.
1792 Try to construct a label if ther is no QClabel.
1793 (syms_of_keyboard): Intern :label as QClabel.
1794
1795 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1796 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1797 New.
1798
1799 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1800 dynamic-setting.el.
1801
1802 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1803 (xg_make_tool_item, xg_show_toolbar_item): New function.
1804 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1805 Call xg_make_tool_item to make a tool bar item.
1806 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1807
1808 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1809 into account for toolbars.
1810
c632dfda
JD
18112010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1812
1813 * data.c (make_blv): Declarations before code (Bug#5993).
1814
10efe302
GM
18152010-04-21 Glenn Morris <rgm@gnu.org>
1816
1817 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1818 Define using autoconf, not cpp.
1819 (LIBXSM): New variable, set by autoconf.
1820 (LIBXT): Use $LIBXSM.
1821
4285ac5a
DN
18222010-04-21 Dan Nicolaescu <local_user@dannlt>
1823
3ec759e7
DN
1824 Remove NOMULTIPLEJOBS, unused.
1825 * s/template.h (NOMULTIPLEJOBS):
1826 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1827
4285ac5a
DN
1828 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1829 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1830 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1831 detects -znocombreloc and passes it to the linker
1832 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1833
2807228d
GM
18342010-04-21 Glenn Morris <rgm@gnu.org>
1835
1836 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1837
574c05e2
KK
18382010-04-21 Karel Klíč <kklic@redhat.com>
1839
1840 * Makefile.in (LIBSELINUX_LIBS): New.
1841 (LIBES): Add $LIBSELINUX_LIBS.
1842 * eval.c, lisp.h (call7): New function.
1843 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1844 (Ffile_selinux_context, Fset_file_selinux_context):
1845 New functions.
1846 (Fcopy_file): New parameter preserve-selinux-context.
1847 (Frename_file): Preserve selinux context when renaming by copy-file.
1848
91eac4bb 18492010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 1850 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1851
50426a04
JB
1852 Don't depend on cm.c or termcap.c on Windows, use stubs.
1853 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1854 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1855 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1856 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1857 (sys_tputs, sys_tgetstr): New stubs.
1858 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1859 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1860
938efb77
JB
18612010-04-20 Juanma Barranquero <lekktu@gmail.com>
1862
1863 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1864
b4bf28b7
SM
18652010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1866
8b1e1112
SM
1867 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1868 Just signal a warning rather than an error when inside a let.
1869 (Fmake_variable_frame_local): Add the same test.
1870
933ac235
SM
1871 * font.c (syms_of_font): Make the style table vars read-only.
1872
b4bf28b7
SM
1873 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1874 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1875
1876 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1877
93d68d0c
EZ
18782010-04-20 Eli Zaretskii <eliz@gnu.org>
1879
1880 Fix R2L paragraph display on TTY.
1881
1882 * xdisp.c (unproduce_glyphs): New function.
1883 (display_line): Use it when produced glyphs are discarded from R2L
1884 glyph rows.
1885 (append_composite_glyph): In R2L rows, prepend the glyph rather
1886 than appending it.
1887
1888 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1889 rather than append it. Set up the resolved_level and bidi_type
1890 attributes of the appended glyph.
283ccc18
EZ
1891 (produce_special_glyphs): Mirror the backslash continuation
1892 character in R2L lines.
93d68d0c 1893
283ccc18 1894 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1895
283ccc18
EZ
1896 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1897 append_stretch_glyph.
1898 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1899 off-by-one error in computing x at end of text in the row.
1900 (append_stretch_glyph): In reversed row, prepend the glyph rather
1901 than append it. Set resolved_level and bidi_type of the glyph.
1902 (extend_face_to_end_of_line): If the row is reversed, prepend a
1903 stretch glyph whose width is such that the rightmost glyph will be
1904 drawn at the right margin of the window. Fix off-by-one error on
1905 TTY frames in testing whether a line needs face extension. Fix
1906 face extension at ZV. If this is the last glyph row, use
1907 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1908 region face.
1909 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1910 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1911 row->continuation_lines_width.
283ccc18
EZ
1912 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1913 are at ZV. Fixes a crash when reseated to ZV by
1914 try_window_reusing_current_matrix.
45903529
EZ
1915 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1916 which happens with R2L glyph rows. Fixes a crash when inserting a
1917 character at end of an R2L line.
283ccc18
EZ
1918 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1919 treat them as having zero-width characters. Improve comments.
1920 Don't reverse pos_before and pos_after for reversed glyph rows.
1921 Set cursor.x to negative value when the cursor might be on the
1922 left fringe.
1923 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1924 left fringe, not the right one.
f951a506
EZ
1925 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1926 (erase_phys_cursor): For reversed cursor_row, support cursor on
1927 the left fringe.
1928
283ccc18
EZ
1929 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1930 of continuation indicators on the fringes.
1931 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1932 left fringe.
1933
f951a506
EZ
1934 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1935 draw cursor on the left fringe.
1936
1937 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1938 cursor on the left fringe.
1939
f951a506
EZ
1940 * dispnew.c (update_text_area): Handle reversed desired rows when
1941 the cursor is on the left fringe.
1942 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1943 below, not by 0, for when the cursor is on the left fringe.
1944
3bb49aaf
JD
19452010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1946
1947 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1948 widget is a scrollbar.
1949
c0be27fd
KH
19502010-04-20 Kenichi Handa <handa@m17n.org>
1951
1952 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1953 only when the arg CHARSET_LIST is nil.
1954
ce5b453a
SM
19552010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1956
1957 Make variable forwarding explicit rather the using special values.
1958 Basically, this makes the structure of buffer-local values and object
1959 forwarding explicit in the type of Lisp_Symbols rather than use
1960 special Lisp_Objects for that. This tends to lead to slightly more
1961 verbose code, but is more C-like, simpler, and makes it easier to make
1962 sure we handled all cases, among other things by letting the compiler
1963 help us check it.
1964 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1965 Removing forwarding objects.
1966 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1967 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1968 explicit rather than hiding them inside Lisp_Object "values".
1969 (XFWDTYPE): New macro.
1970 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1971 (XBUFFER_LOCAL_VALUE): Remove.
1972 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1973 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1974 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1975 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1976 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1977 Remove the Lisp_Misc_* header.
1978 (struct Lisp_Buffer_Local_Value): Redefine.
1979 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1980 (struct Lisp_Misc_Any): Add filler to get the right size.
1981 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1982 Lisp_Intfwd.
1983 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1984 (DEFVAR_KBOARD): Allocate a forwarding object.
1985 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1986 (let_shadows_global_binding_p): New function.
1987 (union Lisp_Val_Fwd): New type.
1988 (make_blv): New function.
1989 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1990 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1991 (swap_in_symval_forwarding, find_symbol_value, Fset)
1992 (let_shadows_buffer_binding_p, set_internal, default_value)
1993 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1994 (Fkill_local_variable, Fmake_variable_frame_local)
1995 (Flocal_variable_p, Flocal_variable_if_set_p)
1996 (Fvariable_binding_locus):
1997 * xdisp.c (select_frame_for_redisplay):
1998 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1999 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
2000 * frame.c (store_frame_param):
2001 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
2002 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
2003 value structure.
2004 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
2005 (clone_per_buffer_values): Only adjust markers into the current buffer.
2006 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
2007 (Fbuffer_local_value, set_buffer_internal_1)
2008 (swap_out_buffer_local_variables):
2009 Adapt to the new symbol value structure.
2010 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
2011 (defvar_per_buffer): Take a new arg for the fwd object.
2012 (buffer_lisp_local_variables): Return a proper alist (different fix
2013 for bug#4138).
2014 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
2015 (Fgarbage_collect): Don't handle buffer_defaults specially.
2016 (mark_object): Handle new symbol value structure rather than the old
2017 special Lisp_Misc_* objects.
2018 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
2019 * term.c (set_tty_color_mode):
2020 * bidi.c (bidi_initialize): Don't access the ->value field directly.
2021 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
2022 a buffer_local_flags.
2023 * print.c (print_object): Get rid of impossible forwarding objects.
2024
fd3998ff
EZ
20252010-04-19 Eli Zaretskii <eliz@gnu.org>
2026
2027 * bidi.c (bidi_get_type, bidi_get_category)
2028 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
2029 (bidi_type_of_next_char, bidi_level_of_next_char):
2030 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 2031
e42cd1a7
JB
20322010-04-19 Juanma Barranquero <lekktu@gmail.com>
2033
2034 * dired.c (Ffile_attributes): Fix typo in docstring.
2035
6e104790 20362010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
2037
2038 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
2039 NSInteger (Bug#5811).
2040
6e104790 20412010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
2042
2043 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
2044 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
2045
6e104790 20462010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
2047
2048 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
2049
6e104790
SM
20502010-04-19 Chong Yidong <cyd@stupidchicken.com>
2051
2052 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
2053 terminal frames (Bug#5837).
2054
37dcfea0
EZ
20552010-04-19 Eli Zaretskii <eliz@gnu.org>
2056
d1da276f
EZ
2057 * .gdbinit (xsubchartable): New command.
2058
37dcfea0
EZ
20592010-04-19 Eli Zaretskii <eliz@gnu.org>
2060
2061 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 2062 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
2063 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
2064 and
2065 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
2066
e9515805
SM
20672010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
2068
2069 * alloc.c (Fpurecopy): Hash-cons if requested.
2070 (syms_of_alloc): Update purify-flag docstring.
2071
22aa44a8
JD
20722010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2073
2074 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
2075 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2076
ebb5722e
EZ
20772010-04-17 Eli Zaretskii <eliz@gnu.org>
2078
2079 Fix a crash when an NSM character is inserted at BEGV.
2080
2081 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
2082 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
2083 NEUTRAL_B or UNKNOWN_BT.
2084
0f4442ef
EZ
20852010-04-16 Eli Zaretskii <eliz@gnu.org>
2086
2087 * xdisp.c (set_cursor_from_row): Don't consider possibility of
2088 other rows with cursor unless they are different from this row and
2089 this row is part of a continued line. (Bug#5943)
2090
7d4e45f8
DN
20912010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
2092
2093 * s/freebsd.h: Restore osreldate.h include.
2094 Suggested by Naohiro Aota.
2095
5ba5ec85
J
20962010-04-16 Jan Djärv <jan.h.d@swipnet.se>
2097
2098 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
2099
20af301d
CY
21002010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
2101
2102 * s/cygwin.h: Avoid linking against static libgcc.
2103
a4b000fb
JL
21042010-04-15 Juri Linkov <juri@jurta.org>
2105
2106 * window.c: Add Qscroll_command.
2107 Remove Vscroll_preserve_screen_position_commands.
2108 (window_scroll_pixel_based, window_scroll_line_based): Check the
2109 `scroll-command' property on the last command instead of searching
2110 the last command in Vscroll_preserve_screen_position_commands.
2111 (syms_of_window): Initialize and staticpro `Qscroll_command'.
2112 Put Qscroll_command property on Qscroll_up and Qscroll_down.
2113 (scroll-preserve-screen-position): Doc fix.
2114 (Vscroll_preserve_screen_position_commands): Remove variable.
2115
bc319ba4
DN
21162010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2117
6bb24457
DN
2118 * xdisp.c (message): Do not use NO_ARG_ARRAY.
2119
19d4c244
DN
21202010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
2121
2122 Reduce cpp use in Makefile.in.
2123 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
2124 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
2125 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
2126 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
2127 (CRT0_COMPILE): Remove, inline it in the only user.
2128
32129746
JL
21292010-04-14 Juri Linkov <juri@jurta.org>
2130
2131 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
2132 `scroll-up-command' and `M-v' from `scroll-down' to
2133 `scroll-down-command'.
2134
9013a7f8
JL
21352010-04-14 Juri Linkov <juri@jurta.org>
2136
2137 * window.c (Vscroll_preserve_screen_position_commands): New variable
2138 with the default value as the list of Qscroll_down and Qscroll_up.
2139 (window_scroll_pixel_based, window_scroll_line_based): Search the
2140 last command in the list Vscroll_preserve_screen_position_commands
2141 instead of comparing with Qscroll_up and Qscroll_down.
2142
4bef8d26
JD
21432010-04-13 Jan Djärv <jan.h.d@swipnet.se>
2144
92848133
JD
2145 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
2146 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
2147 does that.
2148
4bef8d26
JD
2149 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
2150 to zero.
2151
58b963f7
SM
21522010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2153
84164a0d
SM
2154 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
2155
2b0a91e7
SM
2156 Try to solve the problem of spurious EOF chars in long lines of text
2157 sent to interactive subprocesses.
2158 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
2159 (system_process_attributes): Remove unused var `ttotal'.
2160 * process.c (send_process): Don't bother breaking long line with EOF
2161 chars when talking to ttys any more.
2162 (wait_reading_process_output): Output a warning when called in such
2163 a way that it could block without being interruptible.
2164
58b963f7
SM
2165 Try to detect file modification within the same second.
2166 * buffer.h (struct buffer): New field modtime_size.
2167 * buffer.c (reset_buffer): Initialize it.
2168 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
2169 (Fverify_visited_file_modtime): Check it.
2170 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
2171 (Fset_visited_file_modtime): Set (or clear) it.
2172
01f5787b
SM
21732010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2174
2175 * process.c (status_notify): Remove unused var `ro'.
2176
83725342
JD
21772010-04-12 Jan Djärv <jan.h.d@swipnet.se>
2178
2179 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
2180 more than one visual (Bug#5938).
2181
b9465836
DN
21822010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
2183
50426a04
JB
2184 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
2185 Undefine.
b9465836 2186
8d9c8ece
DN
21872010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2188
b1f52161
DN
2189 Remove C_SWITCH_SYSTEM_TEMACS.
2190 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
2191 (malloc, realloc, free): Use emacs, not temacs for conditional
2192 definition.
2193
2194 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
2195 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
2196
8d9c8ece
DN
2197 Use autoconf, not cpp for some variables.
2198 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
2199 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
2200 (ALL_CFLAGS): Use them as make variables.
2201 (really-lwlib, really-oldXMenu): Do not pass them.
2202
1ecb2d3f
JD
22032010-04-11 Jan Djärv <jan.h.d@swipnet.se>
2204
2205 * xmenu.c (apply_systemfont_to_dialog): New.
2206 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
2207
3a4fa2f2
SM
22082010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2209
97e53006
SM
2210 * process.c (exec_sentinel): Preserve current-buffer.
2211
3a4fa2f2
SM
2212 * process.c (read_process_output): Move the save-current-buffer to
2213 apply to both the filter and the non-filter branches.
2214
88df7221
DN
22152010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
2216
2217 * s/msdos.h (UNEXEC): New definition.
2218
5634ff85
YM
22192010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2220
6eff5c3d
YM
2221 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
2222 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
2223
2224 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
2225 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
2226 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
2227 TRY_WINDOW_CHECK_MARGINS.
2228
2229 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
2230 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
2231 width only when it is for padding.
5634ff85 2232
b13aef54
J
22332010-04-09 Jan Djärv <jan.h.d@swipnet.se>
2234
2235 * xfns.c (Fx_show_tip): Call try_window in a loop until
2236 fonts_changed_p is zero (Bug#2423).
2237
21d28484
EZ
22382010-04-08 Eli Zaretskii <eliz@gnu.org>
2239
2240 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
2241 the end of TEXT_AREA. (Bug#5856)
2242
0269ef77
JD
22432010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2244
2245 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
2246 HAVE_GCONF.
2247
5930fe97
EZ
22482010-04-08 Eli Zaretskii <eliz@gnu.org>
2249
2250 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
2251 prev.orig_type, for resolving type of NSM. (Bug#5858)
2252
99852628
JD
22532010-04-08 Jan Djärv <jan.h.d@swipnet.se>
2254
2255 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
2256 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
2257 in current_font.
2258 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
2259 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
2260 New functions.
2261 (syms_of_xsettings): Initialize current_font.
2262 defsubr Sfont_get_system_normal_font.
99852628
JD
2263
2264 * xsettings.h (Ffont_get_system_normal_font,
2265 xsettings_get_system_normal_font): Declare.
2266
2267 * xfns.c (extern xlwmenu_default_font): Remove.
2268 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2269 to xlwmenu.c.
2270
2271 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2272 menu items in UTF-8.
2273
2274 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2275 (apply_systemfont_to_menu): New function.
2276 (set_frame_menubar, create_and_show_popup_menu): Call
2277 apply_systemfont_to_menu.
2278
7fc874c4
J
22792010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2280
2281 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2282 FRAME_LINE_TO_PIXEL_Y.
2283
2284 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2285 pixelwidth/height.
2286
863bf481
DN
22872010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2288
5e5a3b92
DN
2289 Simplify code for HP machines.
2290 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2291 for GNU_LINUX, not needed.
2292 (UNEXEC, NEED_BSDTTY): Move definitions...
2293 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2294
863bf481
DN
2295 * m/iris4d.h (UNEXEC): Move definition ...
2296 * s/irix6-5.h (UNEXEC): ... here.
2297
3e6bec3b
JD
22982010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2299
2300 * xfns.c (set_machine_and_pid_properties): New function.
2301 (Fx_create_frame): Call set_machine_and_pid_properties.
2302
2912322b
SM
23032010-04-03 Eli Zaretskii <eliz@gnu.org>
2304
1502b819
EZ
2305 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2306 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2307 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2308
2912322b
SM
2309 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2310 in this function. (Bug#5703)
2311
23122010-04-03 Chong Yidong <cyd@stupidchicken.com>
2313
2314 * nsterm.h: Fix last change.
2315
c435b432
DN
23162010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2317
a568f507
DN
2318 * m/intel386.h (NO_REMAP): Move definition ...
2319 * s/msdos.h (NO_REMAP): ... here.
2320
4cd9f6c2
DN
2321 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2322
c435b432
DN
2323 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2324 used on those platforms.
2325
42a2c622
DN
23262010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2327
2328 Remove extern errno declarations.
2329 * xterm.c:
2330 * xrdb.c:
2331 * w32term.c:
2332 * unexec.c:
2333 * unexaix.c:
2334 * sysdep.c:
2335 * process.c:
2336 * lread.c:
2337 * keyboard.c:
2338 * floatfns.c:
2339 * filelock.c:
2340 * fileio.c:
2341 * emacs.c (main):
2342 * ecrt0.c:
2343 * dispnew.c:
2344 * callproc.c:
2345 * buffer.c: Remove errno extern declarations.
2346 * s/netbsd.h (NEED_ERRNO): Remove.
2347
8224f93d
DN
23482010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2349
2350 Remove all uses of LIBX11_SYSTEM.
2351 * Makefile.in (LIBX11_SYSTEM): Remove.
2352 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2353 instead.
2354
814062c7
EZ
23552010-04-01 Eli Zaretskii <eliz@gnu.org>
2356
ed68db4d
EZ
2357 Remove support for DJGPP v1.x (bug#5813).
2358
2359 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2360 * s/msdos.h:
2361 * unexec.c (make_hdr, copy_text_and_data):
2362 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2363 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2364 (IT_set_terminal_modes, __write, _rename, gethostname)
2365 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2366 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2367 the value of __DJGPP__.
ed68db4d
EZ
2368 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2369 compatibility code.
8224f93d
DN
2370 * lread.c:
2371 * gmalloc.c (memalign):
2372 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2373 * emacs.c (main):
2374 * dosfns.c (init_dosfns):
ed68db4d
EZ
2375 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2376
52f4d8d5
EZ
23772010-04-01 Eli Zaretskii <eliz@gnu.org>
2378
814062c7
EZ
2379 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2380 string with `cursor' property comes from an `after-string'
2381 overlay. (Bug#5816)
2382
0dc2e11d
GM
23832010-04-01 Glenn Morris <rgm@gnu.org>
2384
2385 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2386 Define as Makefile variables.
2387 (LIBX): Use above variables rather than directly using autoconf.
2388
1d29df59
DN
23892010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2390
2391 Clean up BSD_SYSTEM use.
2392 * xterm.c:
2393 * process.c:
2394 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2395 for including <sys/ioctl.h>.
2396 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2397 code is only used for MSDOS.
2398
1546c559
JL
23992010-03-31 Juri Linkov <juri@jurta.org>
2400
2401 * image.c: Add `Qextension_data'.
2402 (syms_of_image): Initialize and staticpro `Qextension_data'.
2403 (Fimage_metadata): Rename from `Fimage_extension_data'.
2404 (gif_load): Put GIF extension data to the property
2405 `Qextension_data'.
2406
6521c534
CY
24072010-03-31 Chong Yidong <cyd@stupidchicken.com>
2408
2409 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2410 * nsterm.h: Fix prototype.
2411
52c30783
EZ
24122010-03-31 Eli Zaretskii <eliz@gnu.org>
2413
2414 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2415 trailing whitespace in right-to-left rows.
2416
855a0da7
SM
24172010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2418
2419 Get rid of the direct_output optimizations.
2420 * keyboard.c (nonundocount): Remove extern declaration.
2421 (command_loop_1): Remove brittle optimisation for cheap and
2422 common operations.
2423 * xdisp.c (redisplay_internal): Don't bother checking
2424 redisplay_performed_directly_p any more.
2425 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2426 any more.
2427 * dispnew.c (redisplay_performed_directly_p)
2428 (direct_output_for_insert, direct_output_forward_char):
2429 * dispextern.h (redisplay_performed_directly_p)
2430 (direct_output_for_insert, direct_output_forward_char): Remove.
2431 * cmds.c (nonundocount): Make it static.
2432
85738751 24332010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2434
2435 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2436
85738751 24372010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2438
2439 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2440 invisible (Bug#5766).
2441
85738751 24422010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2443
855a0da7
SM
2444 * xdisp.c (x_consider_frame_title, update_window_cursor):
2445 Remove HAVE_NS conditionals.
194d44e7 2446 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2447
2448 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2449 filename for the title.
2450 (ns_set_doc_edited): Do nothing if the selected window is a
2451 minibuffer window.
2452
2453 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2454 ns_set_doc_edited.
2455
2456 * nsterm.m: Remove unneeded prototype.
2457
85738751 24582010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2459
2460 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2461 in the DOC file. (Bug#5336)
2462
85738751 24632010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2464
2465 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2466
75d1428c
SM
24672010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2468
2469 * window.c (keys_of_window): Remove redundant/overridden bindings.
2470
82043cfb
EZ
24712010-03-30 Eli Zaretskii <eliz@gnu.org>
2472
2473 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2474 Restore original behavior when the iterator is not bidi_p.
2475
b5dd0ae7
DN
24762010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2477
2478 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2479
bd924a5d
EZ
24802010-03-30 Eli Zaretskii <eliz@gnu.org>
2481
2482 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2483 are outside the range of cached character positions.
2484
3580374b
JB
24852010-03-30 Juanma Barranquero <lekktu@gmail.com>
2486
2487 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2488
a7b02820
EZ
24892010-03-30 Eli Zaretskii <eliz@gnu.org>
2490
2491 Initial support for bidirectional editing.
2492
2493 * Makefile.in (obj): Include bidi.o.
2494 (bidi.o): New target.
2495
2496 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2497 ($(BLD)/bidi.$(O)): New target.
2498
2499 * bidi.c: New file.
2500
2501 * buffer.h (struct buffer): New members bidi_display_reordering
2502 and bidi_paragraph_direction.
2503
2504 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2505 and bidi_paragraph_direction.
2506 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2507 and bidi-paragraph-direction.
2508 (Fbuffer_swap_text): Swap the values of
2509 bidi_display_reordering and bidi_paragraph_direction.
2510
2511 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2512 (bidi_type_t, bidi_dir_t): New types.
2513 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2514 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2515 prev_stop, base_level_stop, and eol_pos.
2516 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2517 (IT_STACK_SIZE): Enlarge to 5.
2518 (struct glyph_row): New member reversed_p.
2519 <string_buffer_position>: Update prototype.
2520 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2521 glyph_row if bidi_it.paragraph_dir == R2L.
2522 (struct glyph): New members resolved_level and bidi_type.
2523
2524 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2525 processing or buffer's direction is right-to-left.
2526 (prepare_desired_row): Preserve the reversed_p flag.
2527 (row_equal_p): Compare the reversed_p attributes as well.
2528
2529 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2530 bidi_init_it and set it->paragraph_embedding from the current
2531 buffer's value of bidi_paragraph_direction.
2532 (reseat_1): Initialize bidi_it.first_elt.
2533 (set_iterator_to_next, next_element_from_buffer): Use the value of
2534 paragraph_embedding to determine the paragraph direction.
2535 (set_iterator_to_next): Under bidi reordering, call
2536 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2537 new_paragraph flag is set in the bidi iterator.
2538 (next_element_from_buffer): If bidi_it.first_elt is set,
2539 initialize paragraph direction and find the first character to
2540 display in the visual order. If reseated to a middle of a line,
2541 prime the bidi iterator starting at the line's beginning. Handle
2542 the situation where we overstepped stop_charpos due to
2543 non-linearity of the bidi iteration. Likewise for when we back up
2544 beyond the previous stop_charpos. When moving across stop_charpos,
2545 record it in prev_stop.
2546 (display_line): Set row->end and it->start for the next row to the
2547 next character in logical order. Always extend reversed_p rows to
2548 the end of line, even if they end at ZV. Copy the reversed_p flag
2549 to the next glyph row. Keep calling set_cursor_from_row for
2550 bidi-reordered rows even if we already have a possible candidate
2551 for cursor position. Set row_end after all the row's glyphs have
2552 been produced, by looping over the glyphs. Record the position
2553 after EOL in it->eol_pos, and use it to set end_pos of the last
2554 row produced for a continued line.
2555 <Qright_to_left, Qleft_to_right>: New variables.
2556 (syms_of_xdisp): Initialize and staticpro them.
2557 (string_buffer_position_lim): New function.
2558 (string_buffer_position): Most of code moved to
2559 string_buffer_position_lim. Last argument and return value are
2560 now EMACS_INT; all callers changed.
2561 (set_cursor_from_row): Rewritten to support bidirectional text and
2562 reversed glyph rows.
2563 (text_outside_line_unchanged_p, try_window_id): Disable
2564 optimizations if we are reordering bidirectional text and the
2565 paragraph direction can be affected by the change.
2566 (append_glyph, append_composite_glyph)
2567 (produce_image_glyph, append_stretch_glyph): Set the
2568 resolved_level and bidi_type members of each glyph.
2569 (append_glyph): If the glyph row is reversed, prepend the glyph
2570 rather than appending it.
2571 (handle_stop_backwards): New function.
2572 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2573 (reseat): call handle_stop_backwards to recompute prev_stop and
2574 base_level_stop for the new position.
2575 (handle_invisible_prop): Under bidi iteration, skip invisible text
2576 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2577 paragraph direction. Update IT->prev_stop after skipping
2578 invisible text.
2579 (move_it_in_display_line_to): New variables prev_method
2580 and prev_pos. Compare for strict equality in
2581 BUFFER_POS_REACHED_P.
2582 (try_cursor_movement): Examine all the candidate rows that occlude
2583 point, to return the best match. If rows are bidi-reordered
2584 and point moved backwards, back up to the row that is not a
2585 continuation line, and start looking for a suitable row from
2586 there.
2587
2588 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2589 rather than appending, if the glyph_row's reversed_p flag is set.
2590 Set the resolved_level and bidi_type members of each glyph.
2591
2592 * .gdbinit (pbiditype): New command.
2593 (pgx): Use it to display bidi level and type of the glyph.
2594 (pitx): Display some bidi information about the iterator.
2595 (prowlims, pmtxrows): New commands.
2596
32a8894e
DN
25972010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2598
2599 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2600 * s/usg5-4.h (LIBS_DEBUG):
2601 * s/irix6-5.h (C_DEBUG_SWITCH):
2602 * s/gnu-linux.h (LIBS_DEBUG):
2603 * s/darwin.h (LIBS_DEBUG):
2604 * s/bsd-common.h (LIBS_DEBUG):
2605 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2606 * m/iris4d.h (LIBS_DEBUG):
2607 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2608
2609 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2610 (LIBS_DEBUG): Remove definition.
2611
649dbf36
CY
26122010-03-27 Chong Yidong <cyd@stupidchicken.com>
2613
2614 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2615 Windows.
2616
cad4261f
YM
26172010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2618
2619 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2620 `connect' (Bug#5723).
2621
cd591dbc
HE
26222010-03-25 Helmut Eller <eller.helmut@gmail.com>
2623
2624 * process.c (Fmake_network_process): Call `select' for interrupted
2625 `connect' rather than creating new socket (Bug#5173).
2626
e867cb5d 26272010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2628
2629 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2630
2631 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2632
2633 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2634
e867cb5d 26352010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2636
2637 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2638 XLoadQueryFont.
2639
e867cb5d 26402010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2641
2642 * coding.c (decode_coding_ccl): Fix previous change for the
2643 multibyte case.
fb608df3
KH
2644 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2645 case that the output buffer is fullfilled.
2646 (encode_coding): Setup ccl program here.
fbdc1721 2647
5845f0ed
DN
26482010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2649
814fb708
DN
2650 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2651
5845f0ed
DN
2652 Simplify LIBS_MACHINE definitions.
2653 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2654 * m/iris4d.h (LIBS_MACHINE): Likewise.
2655 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2656 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2657 * s/netbsd.h: Remove commented out code.
5845f0ed 2658
b7064064
DN
26592010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2660
df7734b2
DN
2661 Remove dead code dealing with POSIX_SIGNALS.
2662 * atimer.c (set_alarm): Remove dead code, all USG systems define
2663 POSIX_SIGNALS.
2664 * data.c (arith_error): Likewise.
2665 * keyboard.c (input_available_signal, handle_user_signal)
2666 (interrupt_signal): Likewise.
2667 * process.c (sigchld_handler): Likewise.
2668 (create_process): Remove if 0 code. Remove HPUX conditional when
2669 !defined (POSIX_SIGNALS), it cannot be true.
2670 * syssignal.h: Remove USG5_4 and USG conditionals when
2671 !POSIX_SIGNALS, they cannot be true.
2672
b7064064
DN
2673 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2674 NO_SOCK_SIGIO, not used anymore.
2675
55da5ee3
DN
26762010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2677
0be96e3a
DN
2678 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2679 support vax on BSDs.
2680
55da5ee3
DN
2681 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2682 * s/aix4-2.h (ORDINARY_LINK): ... here.
2683
c0282183
AS
26842010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2685
82c3d67a
AS
2686 * Makefile.in (abs_builddir): Define.
2687 (bootstrap_exe): Use it.
2688 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2689
3613edce
SM
26902010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2691
2692 * Makefile.in (bootstrap_exe): Use an absolute name.
2693
7f110ddc
DN
26942010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2695
22e87574
DN
2696 Remove support for old GNU/Linux using libc version 5.
2697 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2698 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2699
05a670e6
DN
2700 Consolidate redundant definitions in s/bsd-common.h.
2701 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2702 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2703 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2704 doing it in all files that include this one.
2705 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2706 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2707 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2708 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2709 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2710 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2711 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2712 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2713 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2714
2968f561
DN
2715 Consolidate redundant definitions.
2716 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2717 it's undefined in all files that include this one.
2718 (POSIX_SIGNALS): Define here instead of doing it in all files that
2719 include this one.
2720 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2721 (POSIX_SIGNALS): Do not define.
2722 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2723 (POSIX_SIGNALS): Do not define.
2724 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2725 (POSIX_SIGNALS): Do not define.
2726
15d25dc0
DN
2727 Remove support for old UNIX System V systems.
2728 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2729 * s/usg-5-4-2.h: Remove.
2730
07e339e4
DN
2731 Remove support for Solaris on PPC and for old versions.
2732 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2733 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2734 that cancel each other.
2735 * s/sol2-3.h:
2736 * s/sol2-4.h:
2737 * s/sol2-5.h: Remove.
2738 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2739 (NO_REMAP): Remove, unused.
2740 (UNEXEC): Move definition ...
2741 * s/aix4-2.h (UNEXEC): ... here.
2742
7f110ddc
DN
2743 * s/openbsd.h: Remove support for non-ELF and for systems that do
2744 not support shared libraries.
2745 * s/netbsd.h:
2746 * s/freebsd.h: Likewise.
2747
605f35cd
DN
27482010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2749
2750 Remove non-working support for lynxos 3.0.
2751 * s/lynxos.h: Remove file.
2752
2753 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2754 COFF_BSD_SYMBOLS, nothing defines it anymore.
2755
aed71cf4
DN
27562010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2757
2758 Remove obsolete uses of HAVE_SHM.
2759 * emacs.c (standard_args):
2760 (Fdump_emacs):
2761 (syms_of_emacs): Remove code depending on HAVE_SHM.
2762
2763 * alloc.c: Remove HAVE_SHM dependent definition.
2764
2765 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2766
aded53ff
GM
27672010-03-18 Glenn Morris <rgm@gnu.org>
2768
17284745
GM
2769 * emacs.c (USAGE4): Hard-code bug address.
2770 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2771 (bug_reporting_address): Remove.
2772 (main): Don't call bug_reporting_address.
2773
aded53ff
GM
2774 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2775 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2776
303500aa
CY
27772010-03-15 Chong Yidong <cyd@stupidchicken.com>
2778
2779 * xfns.c (Fx_create_frame):
2780 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2781 on left.
2782
cef3058f
CY
27832010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2784
2785 * editfns.c (Fformat): Account for string precision when computing
2786 field width (Bug#5710).
2787
a647d59d
CY
27882010-03-12 Chong Yidong <cyd@stupidchicken.com>
2789
4fa42018
CY
2790 * xfns.c (Fx_create_frame): Set default to Qright.
2791
a647d59d
CY
2792 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2793 all window systems.
2794
6da23aaa
EZ
27952010-03-12 Eli Zaretskii <eliz@gnu.org>
2796
a96f6398 2797 These changes remove termcap.c from the build on Posix platforms.
83d02def 2798 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2799 (MSDOS_OBJ): ...to here.
2800 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2801 now identical to when LIBS_TERMCAP is defined.
2802
2803 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2804
2805 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2806
a96f6398 2807 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2808
288f9fc0
CY
28092010-03-10 Chong Yidong <cyd@stupidchicken.com>
2810
2811 * Branch for 23.2.
2812
d48cd3f4
SM
28132010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2814
2815 Cleanup setup of gl_state in various parts of the code.
2816 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2817 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2818 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2819 (skip_chars):
2820 * regex.c (regex_compile): Use it.
2821 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2822 it's now set in regex_compile when/if we need it.
2823
618db430
SM
28242010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2825
c0335e02
SM
2826 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2827 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2828 (QUIT): Use it to consolidate code and remove redundancy.
2829 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2830
254c06a8
SM
2831 * regex.c (regex_compile): Setup gl_state as well.
2832
618db430
SM
2833 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2834 (in_classes): Use CONSP before XCAR/XCDR.
2835
233f0c9f
CY
28362010-03-03 Chong Yidong <cyd@stupidchicken.com>
2837
2838 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2839 definitions, so that keyboard macros are correctly handled
2840 (Bug#5481).
2841
75f80e63
EZ
28422010-03-02 Eli Zaretskii <eliz@gnu.org>
2843
2844 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2845 text that could be relocated inside the call to emacs_mule_char.
2846 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2847 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2848
dcfb9bc4
KH
28492010-03-02 Kenichi Handa <handa@m17n.org>
2850
fc9a17bc
KH
2851 * character.c (parse_str_as_multibyte): Fix handling of the
2852 multibyte form of raw-bytes.
2853 (str_as_multibyte): Likewise.
2854
dcfb9bc4
KH
2855 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2856 form of raw-bytes.
2857
412c01b6
CY
28582010-02-28 Chong Yidong <cyd@stupidchicken.com>
2859
2860 * charset.c (load_charset_map_from_file)
2861 (load_charset_map_from_vector): Zero out allocated
2862 charset_map_entries before using them.
2863
df7e1ea0
AS
28642010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2865
2866 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2867
fe69a722
CY
28682010-02-27 Chong Yidong <cyd@stupidchicken.com>
2869
4ed28cf4
CY
2870 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2871 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2872
7379cfce
KH
28732010-02-26 Kenichi Handa <handa@m17n.org>
2874
f88cc4d6
KH
2875 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2876
7379cfce
KH
2877 * xdisp.c (reseat_to_string): Fix previous change.
2878
cf2fdcfb
CY
28792010-02-26 David Reitter <david.reitter@gmail.com>
2880
2881 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2882 Lisp_Object (Bug#4736).
2883
cc6c7c75
KH
28842010-02-25 Kenichi Handa <handa@m17n.org>
2885
2886 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2887
32e737d7
JD
28882010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2889
2890 * xterm.c (XTflash): Move declarations before statements.
2891
2892 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2893 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2894 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2895 (xg_create_tool_bar): Remove unused variables.
2896 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2897 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2898
676cae9f
CY
28992010-02-21 Chong Yidong <cyd@stupidchicken.com>
2900
2901 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2902
886cc2b8
SM
29032010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2904
2905 * term.c (fatal): Add a final \n if needed (bug#5596).
2906
ddb2d8e2
CY
29072010-02-18 Chong Yidong <cyd@stupidchicken.com>
2908
2909 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2910
2a4f8d3d
GM
29112010-02-18 Glenn Morris <rgm@gnu.org>
2912
2913 * callint.c (Finteractive): Doc fix.
2914
ebaf11b6
KH
29152010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2916
886cc2b8
SM
2917 * coding.c (record_conversion_result):
2918 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2919 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2920 memory allocation error.
2921
d0396581
KH
29222010-02-17 Kenichi Handa <handa@m17n.org>
2923
886cc2b8
SM
2924 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2925 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2926 (decode_coding): Setup ccl program here. Keep looping when the
2927 decoder stopped because the output buffer is
2928 fullfilled (bug#5534).
2929
2930 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2931
98599f74
JD
29322010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2933
471e4f04 2934 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2935 bug #5571.
886cc2b8 2936 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2937 overdrawn.
98599f74 2938
182659ae
JD
29392010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2940
2941 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2942 doing_interact here.
2943 (ice_connection_closed): New function.
2944 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2945 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2946 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2947 returns I/O error.
2948 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2949 bug #5512.
2950
9be32c4e 29512010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2952
2953 * nsfont.m (nsfont_open): The system's value for the font descent
2954 is negative, so round it down to avoid clipping.
2955
a2f3eb19
CY
29562010-02-06 Chong Yidong <cyd@stupidchicken.com>
2957
2958 * charset.c (load_charset_map_from_file)
2959 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2960 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2961
3088147c
CY
29622010-02-05 Chong Yidong <cyd@stupidchicken.com>
2963
2964 * charset.c (load_charset_map_from_file): Allocate large
2965 charset_map_entries structure on the heap rather than the stack.
2966 (Bug#5526).
2967
b57d9029
KH
29682010-01-31 Kenichi Handa <handa@m17n.org>
2969
2970 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2971 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2972
c67d885b
CY
29732010-01-31 Chong Yidong <cyd@stupidchicken.com>
2974
2975 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2976 <deactivated@gmail.com> (Bug#3605).
2977
8fab2362
CY
29782010-01-31 David De La Harpe Golden <david@harpegolden.net>
2979
2980 * fileio.c (Frename_file): Correctly rename symlinks to
2981 directories (Bug#5496).
2982
cb2a62f2
CY
29832010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2984
2985 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2986
944c7a26
AS
29872010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2988
2989 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2990
c024ac08
CY
29912010-01-29 Chong Yidong <cyd@stupidchicken.com>
2992
2993 * frame.c (DEFAULT_ROWS): Change default to 35.
2994
2995 * xfns.c (x_default_font_parameter): Change default XFT font to
2996 monospace-10 (Bug#3643).
2997
af93af83
EZ
29982010-01-29 Eli Zaretskii <eliz@gnu.org>
2999
3000 * w32inevt.c (key_event): Remove unnecessary comparison of
3001 event->uChar.AsciiChar with 128.
3002
ca0eb708
CY
30032010-01-28 Chong Yidong <cyd@stupidchicken.com>
3004
b242dbfc
CY
3005 * fileio.c (Frename_file): Fix last change (Bug#5487).
3006
ca0eb708
CY
3007 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
3008
3009 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
3010
45d45af5
JD
30112010-01-28 Jan Djärv <jan.h.d@swipnet.se>
3012
3013 * xfns.c (Fx_create_frame): Remove window size matching code from
3014 2010-01-15.
a73f9c9d 3015 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 3016
7e233730
JR
30172010-01-27 Jason Rumney <jasonr@gnu.org>
3018
3019 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 3020 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 3021
86e893e3
KH
30222010-01-27 Kenichi Handa <handa@m17n.org>
3023
3024 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 3025 pattern string (Bug#4209).
86e893e3 3026
8719abec
CY
30272010-01-27 David De La Harpe Golden <david@harpegolden.net>
3028
3029 * fileio.c (Frename_file): Call copy-directory and
3030 delete-directory for directories, in order to handle cross-device
3031 renaming (Bug#3353).
3032
844794c8
JD
30332010-01-25 Jan Djärv <jan.h.d@swipnet.se>
3034
aa3e13b5 3035 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 3036 sizes 24 and 10. Bug #3643.
844794c8 3037
bd4b5750
SM
30382010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3039
8dc1adf6 3040 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
3041 * keymap.c (shadow_lookup): Add `remap' arg.
3042 (describe_map, describe_vector): Update calls to shadow_lookup.
3043 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
3044 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
3045 perform remapping during shadow_lookup check of remapped_sequences.
3046
285d07e2
CY
30472010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
3048
3049 * image.c (png_load): Use png_sig_cmp instead of the obsolete
3050 png_check_sig, which has been removed in libpng 1.4.
3051
c6d09b8d
CY
30522010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3053
3054 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
3055 lacks this header file).
3056
3d782998
YM
30572010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3058
3059 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
3060 as in Emacs 22.
3061
2aff7c53
YM
30622010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3063
3064 * lisp.h (make_pure_string): String pointer arg now points to const.
3065
3066 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
3067 args now point to const.
3068
74327f7a
EZ
30692010-01-22 Eli Zaretskii <eliz@gnu.org>
3070
3071 * lread.c (Fload): Don't treat files without .elc extension as
3072 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
3073 them. (bug#5303)
3074
4d1e6632
KH
30752010-01-20 Kenichi Handa <handa@m17n.org>
3076
3077 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
3078 treat the source as actual byte sequence.
3079
1fdede8f
AM
30802010-01-19 Alan Mackenzie <acm@muc.de>
3081
3082 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 3083 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
3084 `signal_after_change_p' to `coherent_change_p', and make the
3085 invocation of `modify_region' conditional on it.
3086
67477f30
JD
30872010-01-19 Jan Djärv <jan.h.d@swipnet.se>
3088
3089 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
3090 for debug purpose.
3091 (syms_of_xsettings): Declare xft-settings.
3092
244b023e
CY
30932010-01-18 Chong Yidong <cyd@stupidchicken.com>
3094
3095 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
3096
617364fe
CY
30972010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3098
3099 * xterm.c (event_handler_gdk): Block input (Bug#5037).
3100
4fe22cdf
CY
31012010-01-16 Chong Yidong <cyd@stupidchicken.com>
3102
3103 * emacs.c (standard_args): Adjust arg priorities to reflect how
3104 they are processed in startup.el.
3105
e118d2be
AS
31062010-01-16 Andreas Schwab <schwab@linux-m68k.org>
3107
3108 * Makefile.in (lisp, shortlisp): Update.
3109
523ae620
SM
31102010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
3111
3112 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
3113 code, link the new kboard into all_kboard before running Lisp code,
3114 and protect the new terminal with GCPRO (Bug#5365).
3115 (x_term_init): Remove unused var `atom'.
3116 (x_delete_display, x_delete_terminal): Remove unused var `i'.
3117
f0d13888
JD
31182010-01-15 Jan Djärv <jan.h.d@swipnet.se>
3119
3120 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
3121 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
3122 to find out usable size of the desktop. Don't make frames larger than
ac146f82 3123 this. Bug #3643.
f0d13888 3124
cc320f07
KH
31252010-01-15 Kenichi Handa <handa@m17n.org>
3126
3127 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
3128
7ffdf101
CY
31292010-01-15 Chong Yidong <cyd@stupidchicken.com>
3130
3131 * nsterm.m (Qnone): Define.
3132
3133 * nsfns.m (Qnone): Move definition to nsterm.m.
3134
d12bd917
KH
31352010-01-14 Kenichi Handa <handa@m17n.org>
3136
3137 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
3138 systems.
3139
d9a7c140
KH
31402010-01-14 Kenichi Handa <handa@m17n.org>
3141
3142 Make auto-composition work on all buffers even if they are
3143 fundamental mode.
3144
3145 * composite.c (Vauto_composition_mode): New variable.
3146 (composition_compute_stop_pos): Check Vauto_composition_mode
3147 instead of Vauto_composition_function.
3148 (composition_adjust_point, Ffind_composition_internal): Likewise.
3149 (syms_of_composite): Declare Lisp variable
3150 "auto-composition-mode" here.
3151
63286bb2
CY
31522010-01-13 Chong Yidong <cyd@stupidchicken.com>
3153
3154 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
3155 during call to vendor-specific-keysyms (Bug#5365).
3156
c2623ee7
YM
31572010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3158
3159 * keyboard.c (input_available_signal) [SYNC_INPUT]:
3160 Call SIGNAL_THREAD_CHECK (Bug#5333).
3161
3162 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
3163 Call SIGNAL_THREAD_CHECK.
3164
0b5397c2
SM
31652010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
3166
3167 Try to fix bug#5314. This is probably not the final word, tho.
3168 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
3169 recent-auto-save-p as a side-effect.
3170 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
3171 * buffer.c (Fkill_buffer, reset_buffer):
3172 * editfns.c (Fsubst_char_in_region):
3173 * fileio.c (Finsert_file_contents, Fdo_auto_save)
3174 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
3175
dc954cb2
KH
31762010-01-13 Kenichi Handa <handa@m17n.org>
3177
3178 Display buffer name, etc. in mode line by composing correctly.
3179
3180 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
3181 STRING is not nil.
0b5397c2 3182 (display_mode_element): Adjust for the change of
dc954cb2
KH
3183 decode_mode_spec and display_line.
3184 (decode_mode_spec): Change arg MULTIBYTE to STRING.
3185 (display_string): Handle the case that STRING is non-null and
3186 LISP_STRING is not nil.
3187
0b5397c2
SM
3188 * xterm.c (x_draw_composite_glyph_string_foreground):
3189 Pay attention to s->face->overstrike.
dc954cb2
KH
3190
3191 * composite.c (composition_reseat_it): Don't check PT if STRING is
3192 non nil.
3193
4a00eaca
YM
31942010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3195
3196 * keyboard.c (read_char): Don't apply previous change when current
3197 buffer is unchanged by command execution.
3198
60abb287
JD
31992010-01-12 Jan Djärv <jan.h.d@swipnet.se>
3200
3201 * keyboard.c (read_char): Return after executing from special map.
3202
893db5bc
GM
32032010-01-12 Glenn Morris <rgm@gnu.org>
3204
3205 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
3206 bug-gnu-emacs rather than emacs-pretest-bug.
3207
4d03ece0
CY
32082010-01-11 Chong Yidong <cyd@stupidchicken.com>
3209
3210 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
3211 initializing the Lisp variables that depend on them.
3212
1df47e38
YM
32132010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3214
3215 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
3216 Clear areas that will not be updated after change of menu bar lines.
3217 Clear the menu bar window's current matrix when the window gets empty.
3218
2f1c6384
CY
32192010-01-09 Chong Yidong <cyd@stupidchicken.com>
3220
e398c61c
CY
3221 * intervals.h, textprop.c (extend_property_ranges): Return value
3222 and args changed. Discard properties that begin at or after the
3223 new end (Bug#5306).
3224
3225 * editfns.c (Fformat): Caller changed.
3226
e5a29a10
CY
3227 * nsterm.m (ns_set_default_prefs): Delete function.
3228 (syms_of_nsterm): Initialize ns_command_modifier,
3229 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
3230 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
3231
2f1c6384
CY
3232 * xdisp.c (pos_visible_p): Check for invisible text at the correct
3233 position (Bug#4040).
3234
d427a9fa
EZ
32352010-01-09 Eli Zaretskii <eliz@gnu.org>
3236
3237 * editfns.c (Ffloat_time): Doc fix.
3238
21b9df2f
JD
32392010-01-09 Jan Djärv <jan.h.d@swipnet.se>
3240
3241 * xfns.c (Fx_create_frame): Don't create frame larger than display
3242 by default bug#3643.
3243
4b00d3b1
YM
32442010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3245
3246 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
3247 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
3248 windows above internal border.
3249
3250 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
3251 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
3252 windows above internal border.
3253
3254 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
3255 tool bar windows specially.
3256
3257 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
3258
3259 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
3260 specially.
3261 (XTflash): Take account of menu bar height.
3262
3263 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
3264 specially.
3265
5075d853
JD
32662010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3267
ac146f82 3268 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
3269 also be true before we can return early (bug #5339).
3270
474217c8
CY
32712010-01-06 David Reitter <david.reitter@gmail.com>
3272
3273 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3274 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3275 (Bug#3233).
3276
c0e6d47d
JD
32772010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3278
d0cf45b7
JD
3279 * font.c (font_open_entity): Enable chache and call cached_font_ok
3280 for the driver if defined.
3281 (QCuser_spec): New symbol.
3282 (font_spec_from_name): Save name as user-spec.
3283 (font_load_for_lface): Keep user-spec instead of name.
3284 (font_open_by_name): Save name as user-spec.
3285 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3286 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3287
3288 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3289 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3290 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3291
3292 * font.h (struct font_driver): Add cached_font_ok.
3293
c0e6d47d
JD
3294 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3295
7c583cd8
JD
32962010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3297
3298 * xterm.c (x_new_font): Move code for setting rows/cols before
3299 resizing ...
ac146f82 3300 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3301
3302 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3303 (xg_frame_resized, xg_frame_set_char_size):
3304 Call xg_clear_under_internal_border.
7c583cd8 3305 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3306
03f77f0a
CY
33072010-01-05 Chong Yidong <cyd@stupidchicken.com>
3308
3309 * keyboard.c (read_key_sequence): Catch keyboard switch after
3310 making a new tty frame (Bug#5095).
3311
2a1ef5be
KH
33122010-01-05 Kenichi Handa <handa@m17n.org>
3313
3314 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3315
e3eb1dae
SM
33162010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3317
3318 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3319 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3320 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3321
777013f2
MA
33222010-01-03 Michael Albinus <michael.albinus@gmx.de>
3323
3324 * dbusbind.c (xd_add_watch): Improve debug message.
3325 (xd_remove_watch): Improve debug message. If DATA is the session
3326 bus, unset D-Bus session environment.
3327 (Fdbus_init_bus): Pass the bus as argument to
3328 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3329
8932b1c2
CY
33302010-01-01 Chong Yidong <cyd@stupidchicken.com>
3331
87231e2c
CY
3332 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3333
4801c5fa
CY
3334 * lread.c (syms_of_lread): Make it clearer that these are the
3335 names of loaded files (Bug#5068).
3336
8932b1c2
CY
3337 * eval.c (run_hook_with_args): Handle the case where the global
3338 value has the obsolete single-function form (Bug#5026).
3339
11e3c684
CY
33402009-12-27 Chong Yidong <cyd@stupidchicken.com>
3341
3342 * minibuf.c (Fall_completions): Minor optimization.
3343
5b28ce35
EZ
33442009-12-26 Eli Zaretskii <eliz@gnu.org>
3345
5ce6e4f4
JB
3346 * .gdbinit (pgx): Fix display of composite glyphs.
3347 Display cmp.from and cmp.to as well.
3348 (pitx): Fix last change.
5b28ce35 3349
bcffff46
KH
33502009-12-25 Kenichi Handa <handa@m17n.org>
3351
3352 * composite.h (composition_adjust_point): Update prototype.
3353
3354 * composite.c (composition_reseat_it): Don't make a composition
3355 spanning over point.
3356 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3357 composable characters.
3358 (composition_adjust_point): New arg NEW_PT. Callers changed.
3359
3360 * keyboard.c (command_loop_1): Force redisplay if the last point
3361 was within a composition.
3362 (adjust_point_for_property): Don't adjust point for automatic
3363 composition when called after buffer modification.
3364
3f670e9a
EZ
33652009-12-19 Eli Zaretskii <eliz@gnu.org>
3366
5ce6e4f4
JB
3367 * .gdbinit (pitx): Don't use enum names, use their values.
3368 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3369 (pgx): Don't use enum names, use their values.
3370 (pitmethod): New helper command.
3371 (pitx): Use it to display iteration method.
3372 (pgrowit): New command.
3373
ad903955
EZ
3374 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3375
3f670e9a
EZ
3376 Update dependencies in Makefile.in.
3377
3378 * Makefile.in (alloc.o): Depend on termhooks.h.
3379 (atimer.o): Depend on blockinput.h.
3380 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3381 and frame.h.
3382 (callint.o): Depend on systime.h, coding.h, and composite.h.
3383 (callproc.o): Depend on buffer.h.
3384 (casefiddle.o): Don't depend on charset.h.
3385 (casetab.o): Depend on character.h.
3386 (ccl.o): Depend on composite.h.
3387 (chartab.o): Depend on ccl.h.
3388 (cm.o): Depend on dispextern.h.
3389 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3390 (coding.o): Don't depend on $(INTERVALS_H).
3391 (composite.o): Don't depend on dispextern.h explicitly (it's in
3392 $(INTERVALS_H)). Depend on ccl.h.
3393 (data.o): Depend on systime.h, coding.h, composite.h,
3394 dispextern.h, font.h, and ccl.h.
3395 (dired.o): Depend on composite.h.
3396 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3397 composite.h (it's in $(INTERVALS_H)).
3398 (doc.o): Depend on systime.h, coding.h, and composite.h.
3399 (editfns.o): Don't depend explicitly on dispextern.h.
3400 (emacs.o): Depend on frame.h and coding.h.
3401 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3402 (fileio.o): Depend on frame.h and commands.h. Don't depend
3403 explicitly on dispextern.h.
3404 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3405 composite.h.
3406 (fns.o): Don't depend on termhooks.h.
3407 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3408 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3409 coding.h, $(INTERVALS_H), window.h, xterm.h.
3410 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3411 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3412 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3413 fontset.h, ccl.h, and ftfont.h.
3414 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3415 (gtkutil.o): Depend on dispextern.h and composite.h.
3416 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3417 termhooks.h, and ccl.h.
3418 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3419 (intervals.o): Depend on systime.h and coding.h.
3420 (keyboard.o): Depend on composite.h and coding.h.
3421 (keymap.o): Depend on coding.h and frame.h.
3422 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3423 (macros.o): Depend on systime.h, coding.h, and composite.h.
3424 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3425 and atimer.h.
3426 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3427 dispextern.h explicitly.
0b5397c2
SM
3428 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3429 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3430 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3431 (regex.o): Don't depend on charset.h.
3432 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3433 (search.o): Don't depend explicitly on composite.h.
3434 (sound.o): Depend on atimer.h and systime.h.
3435 (syntax.o): Don't depend explicitly on composite.h.
3436 (sysdep.o): Depend on coding.h and composite.h.
3437 (term.o): Depend on xterm.h and buffer.h.
3438 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3439 (textprop.o): Don't depend on dispextern.h explicitly.
3440 (undo.o): Depend on dispextern.h.
3441 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3442 dispextern.h and composite.h explicitly.
3443 (xdisp.o): Depend on ccl.h.
3444 (xfaces.o): Depend on coding.h and ccl.h.
3445 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3446 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3447 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3448 ftfont.h.
3449 (xgselect.o): New dependency.
3450 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3451 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3452 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3453 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3454 (xsmfns.o): Depend on frame.h and dispextern.h.
3455 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3456 sysselect.h.
3457
7a6f7fea
AS
34582009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3459
3460 * font.c (Fclear_font_cache): Pass correct cache argument to
3461 font_clear_cache.
3462
f4c21026
AS
34632009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3464
3465 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3466 twice.
3467
f7ab0997
CY
34682009-12-15 Chong Yidong <cyd@stupidchicken.com>
3469
3470 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3471 calling file-remote-p. Reported by Jim Meyering.
3472
fa8e045a
MA
34732009-12-15 Michael Albinus <michael.albinus@gmx.de>
3474
3475 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3476 avoid compiler warnings. (Bug #5217)
fa8e045a 3477
a63dba42
KH
34782009-12-14 Kenichi Handa <handa@m17n.org>
3479
3480 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3481 in 8-bit encoding.
3482
5ce6e4f4 34832009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3484
3485 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3486 tooltip windows.
3487
223e5fc6
JD
34882009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3489
36acb2a7
JD
3490 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3491 Xatom_net_window_type.
3492
3493 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3494 Xatom_net_window_type.
3495
b8f00677
JD
3496 * xterm.c (my_log_handler): New function.
3497 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3498 so we can filter out buggy messages. (Bug #5120).
b8f00677 3499
e5f0bc9a
JD
3500 * xterm.c (xg_scroll_callback): Parameter list changed,
3501 use parameter GtkScrollType to determine scroll/line/page.
3502 Only allow dragging if a button < 4 is grabbed (bug #5177).
3503 (xg_end_scroll_callback): New function.
3504 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3505 xg_create_scroll_bar.
3506
3507 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3508 (scroll_end_callback): Remove.
3509 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3510 button-release-event. Replace value-changed event with change-value,
3511 bug #5177,
3512 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3513 bug #5177.
3514
3515 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3516 (xg_create_scroll_bar): Add GCallback end_callback.
3517
223e5fc6
JD
3518 * xftfont.c (QClcdfilter): New variable.
3519 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3520 (syms_of_xftfont): Initialize QClcdfilter.
3521
3c055b77
JD
35222009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3523
3524 * xsettings.c (struct xsettings): Add member seen.
3525 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3526 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3527 (apply_xft_settings): Only update Xft settings with what member seen
3528 indicates as new.
3529
05fe33ff
EZ
35302009-12-12 Eli Zaretskii <eliz@gnu.org>
3531
3532 * dispextern.h (struct text_pos): Use EMACS_INT;
3533 (struct glyph): Use EMACS_INT for charpos.
3534 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3535 region_beg_charpos, region_end_charpos,
3536 redisplay_end_trigger_charpos, and also for
3537 iterator_stack_entry.end_charpos and
3538 iterator_stack_entry.stop_charpos.
3539
e8d7886a
JD
35402009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3541
5ce6e4f4 3542 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3543 (xg_create_scroll_bar): Call scroll_end_callback on button release
3544 event (bug #5177).
3545 (xg_event_is_for_scrollbar): != replaced with ==.
3546
d0db2ec8
KH
35472009-12-12 Kenichi Handa <handa@m17n.org>
3548
3549 * ftfont.c (struct ftfont_info): New member matrix.
3550 (ftfont_open): Setup xftfont_info->matrix.
3551 (MFLTFontFT): New member matrix.
3552 (FLOOR, CEIL, ROUND): New macros.
3553 (ftfont_get_metrics): Handle matrix transformation.
3554 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3555
3556 * xftfont.c (struct xftfont_info): New member matrix.
3557 (xftfont_open): Setup xftfont_info->matrix.
3558
35592009-12-10 Kenichi Handa <handa@m17n.org>
3560
3561 * xdisp.c (append_space_for_newline): Consider face-remapping.
3562
2cc7b62f
AS
35632009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3564
b87dd913
AS
3565 * xsettings.c: Include "keyboard.h".
3566
eba5eb94
AS
3567 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3568
2cc7b62f
AS
3569 Fix implicit function declarations.
3570 * cmds.c: Include "frame.h".
3571 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3572 * frame.h: Move declaration of delete_frame outside of
3573 HAVE_WINDOW_SYSTEM.
3574
a4ef73c8
CY
35752009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3576
3577 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3578
3579 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3580 GTK builds.
3581
944a300c
AS
35822009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3583
3584 * unexelf.c (unexec): Don't search for .data twice.
3585
022eef62
CY
35862009-12-05 Chong Yidong <cyd@stupidchicken.com>
3587
426ac949
CY
3588 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3589 if push failed.
3590 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3591 of push_display_prop (Bug#5000).
3592
022eef62
CY
3593 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3594 value of font_list_entities (Bug#5085).
3595
be95bee9
JB
35962009-12-04 Juanma Barranquero <lekktu@gmail.com>
3597
3598 Fix `string-to-number' to deal consistently with integers and floats.
3599 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3600 trailing characters, not just whitespace.
3601 (read1): Pass new arg 0 to keep old behavior.
3602 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3603 trailing chars, as it is already done for integers. Doc fixes.
3604 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3605
24c2d7ce
EZ
36062009-12-04 Eli Zaretskii <eliz@gnu.org>
3607
0b5397c2
SM
3608 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3609 Delete unused enumeration value.
24c2d7ce 3610
7e694795
EZ
36112009-12-03 Eli Zaretskii <eliz@gnu.org>
3612
3613 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3614
84b31826
SM
36152009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3616
3617 * process.c (Fmake_network_process): Fix up the tests for
3618 "connectionless socket", so they DTRT for seqpacket sockets as well.
3619
f00c449b
SM
36202009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3621
3622 * process.c (Qseqpacket): New symbol.
3623 (HAVE_SEQPACKET): New macro.
3624 (Fmake_network_process): Accept new :type `seqpacket'.
3625 (init_process): Add `seqpacket' feature when applicable.
3626 (syms_of_process): Initialize Qseqpacket.
3627
8096a0ff
YM
36282009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3629
3630 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3631 if entity is Qnil.
3632
3e0de07f
SM
36332009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3634
3635 * print.c (print_preprocess): Preprocess the key_and_value table of
3636 hashtables, even tho they're "hidden" (bug#5082).
3637
abeafb2a
JD
36382009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3639
3640 * frame.c (frame_make_pointer_invisible)
3641 (frame_make_pointer_visible): Declare f before statements.
3642
4bf47195
EZ
36432009-11-28 Eli Zaretskii <eliz@gnu.org>
3644
3645 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3646 omitted dependencies on lisp.h.
3647
c525b3f2
JD
36482009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3649
ece2d4ed
JD
3650 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3651 is NULL.
3652
3653 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3654
3655 * frame.c (frame_make_pointer_invisible)
3e0de07f 3656 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3657 frame.
3658
c525b3f2
JD
3659 * search.c (simple_search): Remove warning by making *p const.
3660
2f00e299
DN
36612009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3662
3663 * xdisp.c (power_letter): Remove duplicate const.
3664
084b049b
JD
36652009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3666
a1fadc6f
JD
3667 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3668
5ce6e4f4 3669 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3670 defaults (bug #5025).
3671
28259cac
SM
36722009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3673
3674 * insdel.c (adjust_markers_for_delete): Move it in the
3675 right direction! (bug#4803)
3676
e8e14166
YM
36772009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3678
3679 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3680
3681 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3682
86677b58
GM
36832009-11-24 Glenn Morris <rgm@gnu.org>
3684
3685 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3686
581e51e8
JD
36872009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3688
cfc86c7a
JD
3689 * Makefile.in: Must create deps for ecrt0.o in its rule.
3690
581e51e8
JD
3691 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3692 because that is what Gtk+ font dialog understands.
3693
3694 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3695 of Fcopy_sequence.
3696 (font_open_by_name): Put name given into QCname for font-object returned.
3697
3698 * frame.c (x_set_font): Save original font name as frame parameter
3699 font-parameter.
3700
3701 * xsettings.c (set_default_xft_settings): New function.
3702 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3703 is found.
3704
8b264ecb
AS
37052009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3706
3707 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3708 searching backwards through multibyte buffer.
3709
872870b2
JD
37102009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3711
3712 * xterm.c: #include xgselect.h.
3713 (x_initialize): Call xgselect_initialize.
3714
3715 * xsettings.c (something_changedCB): C++ comments => C comments.
3716 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3717 does that now.
3718
3719 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3720 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3721 (scroll_bar_button_cb): Remove.
5ce6e4f4 3722 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3723 event.
3724 (xg_create_scroll_bar): Don't bind button-press-event and
3725 button-release-event.
3726
3727 * process.c: Include xgselect.h if defined (USE_GTK) ||
3728 defined (HAVE_GCONF).
3729 (wait_reading_process_output): Call xg_select for the same condition.
3730
3731 * xgselect.c (xg_select): New function to better integrate with
3732 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3733
3734 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3735
3736 * Makefile.in (XOBJ): Add xgselect.o.
3737
62a6e103
AS
37382009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3739
0b5397c2
SM
3740 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3741 Remove ignored second argument. All callers changed.
62a6e103
AS
3742 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3743 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3744 * xdisp.c (string_char_and_length): Likewise.
3745
b0ca0f33
DN
37462009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3747
3748 * xterm.c (x_new_font):
3749 * print.c (print_object):
3750 * cmds.c (Fself_insert_command): Move declarations before statements.
3751
dd5a6279
CY
37522009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3753
3754 * s/cygwin.h: Remove unneeded linker flags.
3755
4a8e097d
JD
37562009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3757
0d1d0d26
JD
3758 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3759
3760 * xsettings.h: Declare xsettings_get_system_font.
3761
3762 * xsettings.c (xsettings_get_system_font): New function.
3763 (init_gconf): No use initiating gconf unless we have Xft also.
3764 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3765 HAVE_GCONF.
3766
4a8e097d
JD
3767 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3768 add a blank entry so it doesn't collapse into nothing.
3769
8ab1650e
SM
37702009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3771
3772 * lread.c (Funintern): Comment out last change.
3773
82c602f0
RS
37742009-11-19 Richard Stallman <rms@gnu.org>
3775
3776 * lread.c (Funintern): Error if symbol is t or nil.
3777
87e32266
SM
37782009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3779
3780 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3781 representation of Lisp integers.
3782 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3783
1b9ac145
AS
37842009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3785
3786 * lisp.h: Remove declaration of Ffont_get_system_font.
3787 * xfns.c: Move include of "xsettings.h".
3788 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3789
dfb3c4c6
JD
37902009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3791
87e32266
SM
3792 * xsettings.c (something_changedCB, Ffont_get_system_font):
3793 Check use_system_font.
dfb3c4c6
JD
3794 (syms_of_xsettings): DEFVAR font-use-system-font.
3795
9370c1d8
AS
37962009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3797
25fe851a
AS
3798 * xfns.c (x_default_font_parameter): Remove dead assignment.
3799
9370c1d8
AS
3800 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3801
637fa988
JD
38022009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3803
87e32266 3804 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3805 not have FC_LCD_*. #define them if not there.
a6eb20d8 3806
87e32266 3807 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3808
637fa988
JD
3809 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3810
3811 * xterm.c (handle_one_xevent): Call xft_settings_event for
3812 ClientMessage, PropertyNotify and DestroyNotify.
3813 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3814 Call xsettings_initialize.
3815
3816 * xftfont.c (xftfont_fix_match): New function.
3817 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3818 Call xftfont_fix_match after XftFontMatch.
3819
3820 * xfont.c (xfont_driver): Initialize all members.
3821
87e32266
SM
3822 * xfns.c (x_default_font_parameter):
3823 Try font from Ffont_get_system_font.
637fa988
JD
3824 Do not get font from x_default_parameter if we got one from
3825 Ffont_get_system_font.
87e32266 3826 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3827
3828 * w32font.c (w32font_driver): Initialize all members.
3829
3830 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3831
3832 * lisp.h: Declare syms_of_xsettings.
3833
87e32266
SM
3834 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3835 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3836
3837 * ftfont.c (ftfont_filter_properties): New function.
3838
3839 * frame.c (x_set_font): Remove unused variable lval.
3840
87e32266 3841 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3842
3843 * font.c (font_put_extra): Don't return if val is nil, it means
3844 boolean option is off.
3845 (font_parse_fcname): Collect all extra properties in extra_props
3846 and call filter_properties for all drivers with extra_props and
3847 font as parameter.
87e32266
SM
3848 (font_open_entity): Do not use cache, it does not pick up new
3849 fontconfig settings like hinting.
637fa988
JD
3850 (font_load_for_lface): If spec had a name in it, store it in entity.
3851
a73f9c9d 3852 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3853
3854 * config.in: HAVE_GCONF is new.
3855
3856 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3857 xsettings.o is new.
3858
5a942932
KH
38592009-11-17 Kenichi Handa <handa@m17n.org>
3860
3861 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3862 back to the default font in case that no suitable font is found.
3863
b7c7a4d1
SM
38642009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3865
3866 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3867 Suggested by Chad Brown <yandros@mit.edu>.
3868 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3869
072f1e39
JD
38702009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3871
3872 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3873
5d1e70a2
AS
38742009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3875
87e32266 3876 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3877
a53cfbe5
JD
38782009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3879
473a99b7
JD
3880 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3881 has a parent.
3882
a53cfbe5 3883 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3884 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3885
3886 * config.in: Generated (AUTO_DEPEND).
3887
f04bb9b2
MA
38882009-11-13 Michael Albinus <michael.albinus@gmx.de>
3889
b7c7a4d1 3890 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3891 Vdbus_registered_functions_table, because it contains also
3892 properties. Fix docstring.
b7c7a4d1 3893 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3894
8f11f7ec
SM
38952009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3896
3897 * alloc.c (mark_object): Don't reprocess marked strings.
3898 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3899 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3900
8a605fe8
KH
39012009-11-13 Kenichi Handa <handa@m17n.org>
3902
8f11f7ec 3903 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3904 semantics of Vword_combining_categories.
3905 (Vword_combining_categories): Describe the slight change of the
3906 semantics.
3907
241c4680
EZ
39082009-11-13 Eli Zaretskii <eliz@gnu.org>
3909
3910 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3911
3912 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3913
5d58e44c
SM
39142009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3915
3916 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3917
5e13f9d3
JB
39182009-11-12 Juanma Barranquero <lekktu@gmail.com>
3919
3920 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3921
cf54c754
DR
39222009-11-11 David Reitter <david.reitter@gmail.com>
3923
3924 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3925 variables to fix 2009-11-09 change.
3926
a4ada374
DN
39272009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3928
91433552
DN
3929 * process.c (ifflag_def): Make flag_sym constant.
3930 (Fnetwork_interface_info): Use a constant pointer.
3931 (ifflag_table):
3932 * xfns.c (cursor_bits):
3933 * xdisp.c (power_letter):
3934 * termcap.c (speeds, esctab):
3935 * sysdep.c (baud_convert):
3936 * keyboard.c (lispy_accent_codes, modifier_names):
3937 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3938 (jpeg_format, tiff_format, gif_format, svg_format)
3939 (interlace_start, interlace_increment, gs_format):
3940 * gtkutil.c (separator_names):
3941 * fringe.c (swap_nibble):
3942 * fns.c (base64_value_to_char, base64_char_to_value):
3943 * fileio.c (make_temp_name_tbl):
3944 * coding.c (suffixes): Make constant.
3945
f4265f6c
DN
3946 * frame.c (make_initial_frame):
3947 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3948 build_string.
3949 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3950
04420943
DN
3951 * s/freebsd.h:
3952 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3953
0a5d24ae
DN
3954 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3955 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3956
a4ada374
DN
3957 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3958 * xterm.c (syms_of_xterm):
3959 * xfaces.c (syms_of_xfaces):
3960 * xdisp.c (syms_of_xdisp):
3961 * lread.c (syms_of_lread):
3962 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3963 build_string.
91433552 3964
a4ada374
DN
3965 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3966
af98fc7f
SM
39672009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3968
8ab1650e 3969 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3970
e90292a9
JD
39712009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3972
3973 * keyboard.h: Declare timer_check.
3974
3975 * keyboard.c (timer_check_2): New function that does what the old
3976 timer_check did.
3977 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3978 returned, i.e. don't return -1 with timers pending.
3979
3980 * process.c: Remove extern declaration of timer_check.
3981
3982 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3983 even if timer_check returned -1.
3984
af98fc7f
SM
3985 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3986 xg_dialog_data.
e90292a9
JD
3987 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3988 the event loop.
3989 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3990 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3991 Destroy the dialog after xg_dialog_run.
3992
045b83c0
SM
39932009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3994
3995 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3996
1fb99a3a
JD
39972009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3998
3999 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
4000
04e452cb
JB
40012009-11-09 Juanma Barranquero <lekktu@gmail.com>
4002
4003 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
4004
ef7417fd
SM
40052009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
4006
4007 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
4008 w32menu.c, and nsmenu.m.
4009 Simplify the obsolete case where position is nil.
4010 (cleanup_popup_menu): New function, moved from nsmenu.m.
4011 (struct skp): Remove slot `notreal'.
4012 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
4013 adjust callers.
4014 (single_menu_item): Adjust call to parse_menu_item.
4015 (syms_of_menu): Defsubr x-popup-menu.
4016 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
4017 (keymap_panes): Don't export any more.
4018 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
4019 (xmenu_show): Declare.
4020 * keyboard.c (parse_menu_item): Remove arg `notreal'.
4021 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
4022 * keyboard.h (parse_menu_item): Update declaration.
4023 * xmenu.c (Fx_popup_menu): Remove.
4024 (syms_of_xmenu): Don't defsubr x-popup-menu.
4025 * w32menu.c (Fx_popup_menu): Remove.
4026 (syms_of_w32menu): Don't defsubr x-popup-menu.
4027 * nsmenu.m (cleanup_popup_menu): Remove.
4028 (ns_menu_show): Rename from ns_popup_menu and remove all the code
4029 moved to menu.c's Fx_popup_menu.
4030 (Fx_popup_menu): Remove.
4031 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
4032 menu_items (it's done in menu.c already).
4033
424d6179
SM
40342009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
4035
4036 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
4037 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
4038
c0df13a6 40392009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
4040
4041 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 4042 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
4043 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
4044 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
4045
2de9f71c
SM
40462009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4047
4048 Let integers use up 2 tags to give them one extra bit and thus double
4049 their range.
4050 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
4051 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
4052 New macros.
4053 (enum Lisp_Type): Use them. Give explicit values.
4054 (Lisp_Type_Limit): Remove.
4055 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
4056 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
4057 Pay attention to USE_2_TAGS_FOR_INTS.
4058 (INTEGERP): Use LISP_INT_TAG_P.
4059 * fns.c (internal_equal): Simplify the default case.
4060 (sxhash): Use case_Lisp_Int.
4061 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
4062 any more.
4063 (Ftype_of): Use case_Lisp_Int.
4064 (store_symval_forwarding): Take into account the fact that Ints can
4065 now have more than one tag.
4066 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
4067 buffer_slot_type_mismatch):
4068 * xfaces.c (face_attr_equal_p):
4069 * print.c (print_object):
4070 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
4071 Use case_Lisp_Int.
4072
323637a2
EZ
40732009-11-06 Eli Zaretskii <eliz@gnu.org>
4074
7ac65b38
EZ
4075 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
4076
323637a2
EZ
4077 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
4078 warning.
4079
e511451f
JD
40802009-11-06 Jan Djärv <jan.h.d@swipnet.se>
4081
4082 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
4083
4084 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
4085
4086 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
4087 ButtonPressRelease and MotionNotify (bug#4870).
4088
5e2327cf
DN
40892009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
4090
5adc433e
DN
4091 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
4092
d67b4f80
DN
4093 * xterm.c (syms_of_xterm):
4094 * xselect.c (syms_of_xselect):
4095 * xmenu.c (syms_of_xmenu):
4096 * xfns.c (syms_of_xfns):
4097 * xfaces.c (syms_of_xfaces):
4098 * xdisp.c (syms_of_xdisp):
4099 * window.c (syms_of_window):
4100 * w32fns.c (syms_of_w32fns):
4101 * undo.c (syms_of_undo):
4102 * textprop.c (syms_of_textprop):
4103 * terminal.c (syms_of_terminal):
4104 * syntax.c (syms_of_syntax):
4105 * sound.c (syms_of_sound):
4106 * search.c (syms_of_search):
4107 * print.c (syms_of_print):
4108 * minibuf.c (syms_of_minibuf):
4109 * macros.c (syms_of_macros):
4110 * keymap.c (syms_of_keymap, initial_define_key)
4111 (initial_define_lispy_key):
4112 * keyboard.c (syms_of_keyboard):
4113 * insdel.c (syms_of_insdel):
4114 * image.c (syms_of_image):
4115 * fringe.c (syms_of_fringe):
4116 * frame.c (syms_of_frame):
4117 * fontset.c (syms_of_fontset):
4118 * fns.c (syms_of_fns):
4119 * fns.c (syms_of_fns):
4120 * fileio.c (syms_of_fileio):
4121 * fileio.c (syms_of_fileio):
4122 * eval.c (syms_of_eval):
4123 * doc.c (syms_of_doc):
4124 * dispnew.c (syms_of_display):
4125 * dired.c (syms_of_dired):
4126 * dbusbind.c (syms_of_dbusbind):
4127 * data.c (syms_of_data):
4128 * composite.c (syms_of_composite):
4129 * coding.c (syms_of_coding):
4130 * cmds.c (syms_of_cmds):
4131 * charset.c (define_charset_internal, syms_of_character):
4132 * ccl.c (syms_of_ccl):
4133 * category.c (syms_of_category, init_category_once):
4134 * casetab.c (syms_of_casetab):
4135 * casefiddle.c (syms_of_casefiddle):
4136 * callint.c (syms_of_callint):
4137 * bytecode.c (syms_of_bytecode):
4138 * buffer.c (keys_of_buffer, syms_of_buffer):
4139 * alloc.c (syms_of_alloc):
4140 * process.c (syms_of_process, init_process):
4141 * lread.c (syms_of_lread, init_obarray):
4142 * font.c (build_style_table):
4143 * emacs.c (syms_of_emacs, main): Replace calls to intern with
4144 intern_c_string, calls to make_pure_string with
4145 make_pure_c_string. Use pure_cons instead of Fcons.
4146
5e2327cf
DN
4147 * process.c (socket_options): Make it const.
4148 (set_socket_option, init_process): Use a const pointer.
4149
4150 * lread.c (intern_c_string): New function.
4151 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4152 (defvar_int): Uset it. Make the name const char*.
4153
4154 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
4155 (defvar_int): Update prototypes.
4156 (DEFUN, EXFUN): Support for prototypes is now required.
4157 (intern_c_string): New prototype.
4158 (struct Lisp_Subr): Make symbol_name constant.
4159
4160 * font.c (struct table_entry): Remove unused member. Make NAMES
4161 constant.
4162 (weight_table, slant_table, width_table): Make constant.
4163
4164 * emacs.c (struct standard_args): Make name and longname constant.
4165
4166 * character.h (DEFSYM): Use intern_c_string.
4167
a56eaaef
DN
41682009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
4169
4170 * alloc.c (make_pure_c_string): New function.
4171
4172 * eval.c (Fautoload): Purecopy all arguments.
4173
f6a07420
KH
41742009-11-05 Kenichi Handa <handa@m17n.org>
4175
4176 * fileio.c (Finsert_file_contents): Be sure set coding-system of
4177 the buffer in case of replace.
4178
5d28d4b1
DN
41792009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
4180
4181 * puresize.h (BASE_PURESIZE): Increase to 1620000.
4182
b349d111
SM
41832009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4184
d528b1ce
SM
4185 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
4186 when applicable (bug#4851).
4187
b349d111
SM
4188 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
4189 (P_): Support for prototypes is now required.
4190
c38eb027
CY
41912009-10-31 Chong Yidong <cyd@stupidchicken.com>
4192
4193 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
4194 (Bug#4827).
4195
0405f8d9
EZ
41962009-10-30 Eli Zaretskii <eliz@gnu.org>
4197
d528b1ce 4198 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 4199
ca0a881a
DN
42002009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
4201
4202 * puresize.h (BASE_PURESIZE): Increase to 1470000.
4203
d528b1ce
SM
4204 * lread.c (Fload): Purecopy the file name when building
4205 Vpreloaded_file_list.
ca0a881a 4206
47e0e0e4
JR
42072009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
4208
4209 * w32fns.c (syms_of_w32fns): Change default value of
4210 w32-scroll-lock-modifier to nil. (Bug#2827)
4211
057bce6f
JB
42122009-10-26 Juanma Barranquero <lekktu@gmail.com>
4213
782a943e 4214 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 4215
242bc74c
AS
42162009-10-26 Andreas Schwab <schwab@redhat.com>
4217
4218 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
4219
522d013a
JB
42202009-10-26 Juanma Barranquero <lekktu@gmail.com>
4221
4222 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
4223 For delta < 0, skip check that only makes sense when the mini-window
4224 is going to be enlarged. (Bug#4534)
4225
18060980
CY
42262009-10-25 Chong Yidong <cyd@stupidchicken.com>
4227
4228 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4229 string in menu maps (Bug#4471).
4230
fec8f0fe
CY
42312009-10-24 Chong Yidong <cyd@stupidchicken.com>
4232
4233 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
4234 FRAME_NS_VIEW on terminal frames (Bug#4765).
4235
10d66ec0
AS
42362009-10-24 Andreas Schwab <schwab@linux-m68k.org>
4237
1cae01f7
AS
4238 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
4239 DBUS_TYPE_UINTnn separately to get proper sign extension.
4240
58a12889
AS
4241 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
4242 can properly handle unsigned types.
d528b1ce 4243 (make_uid, make_gid): Remove.
58a12889 4244
987c9327
AS
4245 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
4246 types again.
4247
522d013a 4248 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
4249 (system_process_attributes): Likewise.
4250
905a9ed3
DN
42512009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
4252
4253 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
4254
4255 * eval.c (Fautoload): Purecopy the filename. Simplify.
4256
4257 * category.c (Fdefine_category): Purecopy docstring.
4258
a599b3e8
AS
42592009-10-23 Andreas Schwab <schwab@linux-m68k.org>
4260
7b792fc9
AS
4261 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
4262
a599b3e8
AS
4263 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
4264
b35ac83e
CY
42652009-10-23 Chong Yidong <cyd@stupidchicken.com>
4266
4267 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4268 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4269 (Bug#4775).
4270
e8903e00
SM
42712009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4272
4273 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4274 (init_fileio_once):
4275 * lisp.h (init_fileio_once): Remove.
4276 * emacs.c (main): Don't call init_fileio_once.
4277
8f43cbf3
DN
42782009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4279
4280 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4281
26898943
AS
42822009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4283
4284 * doprnt.c (doprnt): Fix overflow check.
4285
5c646d5a
JD
42862009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4287
3132a7ea
JD
4288 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4289
5c646d5a
JD
4290 * xterm.h (x_wait_for_event): Declare it.
4291
4292 * xterm.c (pending_event_wait): New variable.
4293 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4294 see pending_event_wait.eventtype.
4295 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4296 (x_new_font): Call change_frame_size with new rows/columns before we
4297 try to resize the frame.
5c646d5a 4298 (x_wait_for_event): New function.
d528b1ce
SM
4299 (x_set_window_size_1): Don't change gravity unless change_gravity
4300 is set.
5c646d5a
JD
4301 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4302 don't change frame size, instead wait for the ConfigureNotify.
4303 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4304 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4305 (x_initialize): Initialize pending_event_wait.
4306
4307 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4308 size.
4309
4310 * widget.c (EmacsFrameSetValues): Add comment.
4311 (EmacsFrameSetCharSize): Just call x_set_window_size.
4312
4313 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4314 x_wait_for_event.
d528b1ce 4315 (flush_and_sync): Remove again.
5c646d5a
JD
4316 (xg_get_font_name): Suggest monospace if no previous font is known.
4317
e9c1637d
SM
43182009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4319
4320 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4321 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4322
5a72cccb
YM
43232009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4324
4325 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4326 processing pending events when event is filtered for input method.
ab04798f 4327 (Bug#3681)
5a72cccb 4328
2629aa37
JB
43292009-10-20 Juanma Barranquero <lekktu@gmail.com>
4330
4331 * fns.c: Add #endif accidentally removed in previous change.
4332
c3417a74
DN
43332009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4334
4335 * fns.c: Remove code for unsupported system: MAC_OS.
4336 * image.c: Likewise. Include setjmp.h.
4337
9685cef2
JD
43382009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4339
4340 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4341 pixel -1 (bug #4742).
4342
d7306fe6
DN
43432009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4344
019d2c4c
DN
4345 * process.c (create_pty): Remove conditionals for no longer
4346 supported systems: UNIPLUS and RTU.
4347
ee6bacd4
DN
4348 * xterm.c:
4349 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4350
d7306fe6
DN
4351 * alloc.c: Do not define struct catchtag.
4352 * eval.c: Move struct catchtag definition ...
4353 * lisp.h: ... here.
4354
4355 * image.c: Move png.h #include earlier to avoid warnings.
4356
4357 * xterm.c:
4358 * xsmfns.c:
4359 * xselect.c:
4360 * xrdb.c:
4361 * xmenu.c:
4362 * xftfont.c:
4363 * xfont.c:
4364 * xfns.c:
4365 * xfaces.c:
4366 * xdisp.c:
4367 * window.c:
4368 * widget.c:
4369 * w32xfns.c:
4370 * w32uniscribe.c:
4371 * w32term.c:
4372 * w32select.c:
4373 * w32reg.c:
4374 * w32proc.c:
4375 * w32menu.c:
4376 * w32inevt.c:
4377 * w32heap.c:
4378 * w32font.c:
4379 * w32fns.c:
4380 * w32console.c:
4381 * w32.c:
4382 * w16select.c:
4383 * vm-limit.c:
4384 * unexsol.c:
4385 * unexec.c:
4386 * unexcw.c:
4387 * unexaix.c:
4388 * undo.c:
4389 * tparam.c:
4390 * textprop.c:
4391 * terminfo.c:
4392 * terminal.c:
4393 * termcap.c:
4394 * term.c:
4395 * syntax.c:
4396 * sound.c:
4397 * sheap.c:
4398 * search.c:
4399 * scroll.c:
4400 * region-cache.c:
4401 * regex.c:
4402 * ralloc.c:
4403 * process.c:
4404 * print.c:
b024548b
DN
4405 * nsterm.m:
4406 * nsselect.m:
4407 * nsmenu.m:
4408 * nsimage.m:
4409 * nsfont.m:
4410 * nsfns.m:
d7306fe6
DN
4411 * msdos.c:
4412 * minibuf.c:
4413 * menu.c:
4414 * marker.c:
4415 * macros.c:
4416 * keymap.c:
4417 * keyboard.c:
4418 * intervals.c:
4419 * insdel.c:
4420 * indent.c:
4421 * gtkutil.c:
4422 * ftxfont.c:
4423 * ftfont.c:
4424 * fringe.c:
4425 * frame.c:
4426 * fontset.c:
4427 * font.c:
4428 * fns.c:
4429 * floatfns.c:
4430 * filelock.c:
4431 * fileio.c:
4432 * emacs.c:
4433 * editfns.c:
4434 * dosfns.c:
4435 * doprnt.c:
4436 * doc.c:
4437 * dispnew.c:
4438 * dired.c:
4439 * dbusbind.c:
4440 * data.c:
4441 * composite.c:
4442 * coding.c:
4443 * cmds.c:
4444 * cm.c:
4445 * chartab.c:
4446 * charset.c:
4447 * character.c:
4448 * ccl.c:
4449 * category.c:
4450 * casetab.c:
4451 * casefiddle.c:
4452 * callproc.c:
4453 * callint.c:
4454 * bytecode.c:
4455 * buffer.c:
4456 * atimer.c: Include setjmp.h. (Bug#4643)
4457
fd5f21e6
SM
44582009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4459
4c0354d7
SM
4460 Remove leftover table unibyte_to_multibyte_table.
4461 * character.c (unibyte_to_multibyte_table): Remove.
4462 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4463 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4464 * character.h (UNIBYTE_TO_CHAR): New macro.
4465 (MAKE_CHAR_MULTIBYTE): Use it.
4466 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4467 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4468 (message_dolog, set_message_1):
4469 * search.c (Freplace_match):
4470 * editfns.c (Fcompare_buffer_substrings):
4471 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4472 (concat):
4473 * insdel.c (copy_text, count_size_as_multibyte):
4474 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4475 * term.c (produce_glyphs):
4476 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4477 * regex.c (RE_CHAR_TO_MULTIBYTE):
4478 * cmds.c (internal_self_insert):
4479 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4480
fd5f21e6
SM
4481 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4482
4418646e
DN
44832009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4484
4485 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4486
35f5c1d2
JB
44872009-10-16 Juanma Barranquero <lekktu@gmail.com>
4488
4489 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4490
a0cd8f6b
AR
44912009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4492
4493 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4494 still needed under Tiger.
4495
4496 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4497
4498 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4499 __Apple__.
4500
4501 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4502
01a8d3fa
KH
45032009-10-15 Kenichi Handa <handa@m17n.org>
4504
4505 * print.c (print_object): Escape a symbol like "2E10" too.
4506
bf6c75c9 45072009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4508
4509 Cleanups and changes for 64-bit compile under Snow Leopard.
4510 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4511
4512 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4513
c5959062 4514 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4515 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4516 cast argument.
4517 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4518 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4519
4520 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4521
4522 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4523 where appropriate.
4524
4525 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4526 where appropriate.
6e4780c5
JB
4527 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4528 Use stringWithUTF8String.
bf6c75c9
AR
4529 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4530
6e4780c5
JB
4531 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4532 Add formal protocol mention to inheritance.
bf6c75c9
AR
4533 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4534
6e4780c5
JB
4535 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4536 Fix printf format.
bf6c75c9
AR
4537 (ns_query_color): Use CGFloat where appropriate.
4538 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4539 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4540 argument.
4541
3d87f118
AR
4542 * config.in (NS_HAVE_NSINTEGER): Drop.
4543
a95c8102
AR
4544 * dbusbind.c (dbus-method-return-internal)
4545 (dbus-method-error-internal): Use long format in printf, and cast
4546 argument.
4547
4548 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4549 in printf, and cast argument.
4550
6873acca 4551 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4552 cast argument.
4553
9ec6f100
GM
45542009-10-11 Glenn Morris <rgm@gnu.org>
4555
4556 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4557
5be883cd
JD
45582009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4559
4560 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4561 menu bar with a small width so it doesn't enlarge the frame.
4562
d7a39b51
JB
45632009-10-08 Juanma Barranquero <lekktu@gmail.com>
4564
4565 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4566
0c2b6f8e
GM
45672009-10-06 Glenn Morris <rgm@gnu.org>
4568
4569 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4570 SOME_MACHINE_LISP (this enters indirectly via DOC).
4571
e02131a2
EZ
45722009-10-05 Eli Zaretskii <eliz@gnu.org>
4573
4574 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4575
b4744254
EZ
45762009-10-04 Eli Zaretskii <eliz@gnu.org>
4577
4578 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4579 Doc fix.
4580
dbf64827
JB
45812009-10-03 Martin Rudalics <rudalics@gmx.at>
4582
4583 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4584
e9a0aef8
MA
45852009-10-02 Michael Albinus <michael.albinus@gmx.de>
4586
d528b1ce 4587 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4588 used anymore outside fileio.c.
4589
4590 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4591
64eb2b56
JB
45922009-10-01 Juanma Barranquero <lekktu@gmail.com>
4593
4594 * lisp.h (Qdelete_directory_internal):
4595 Declare, instead of Qdelete_directory.
4596
4597 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4598
9d28c33e
SM
45992009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4600
4601 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4602
9d8f3bd9
MA
46032009-10-01 Michael Albinus <michael.albinus@gmx.de>
4604
9d28c33e 4605 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4606 Fdelete_directory. It is not a command anymore. It has no file
4607 name handler.
4608
9694740b
SM
46092009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4610
4611 * xdisp.c (get_next_display_element): Use an enum in last change.
4612
748e162f
KH
46132009-09-28 Kenichi Handa <handa@m17n.org>
4614
9694740b 4615 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4616 unibyte_display_via_language_environment in handling
4617 Vnobreak_char_display.
4618
17efd58d
AR
46192009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4620
4621 * nsterm.h (ns_app_name): New extern variable.
4622
4623 * nsterm.m (ns_app_name): New variable.
4624 (ns_term_init): Set and use it.
4625 (ns_term_shutdown): Use it.
4626
4627 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4628 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4629
4630 * nsfns.m (ns_set_name_iconic, ns_set_name)
4631 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4632 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4633
9694740b
SM
4634 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4635 Remove double-casting in client_data comparison.
31c2d412 4636
3208cb35
YM
46372009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4638
4639 * keyboard.c (make_lispy_event): Remember last wheel direction.
4640 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4641
b7d552d6
GM
46422009-09-26 Glenn Morris <rgm@gnu.org>
4643
4644 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4645 internal.elc. Add term/pc-win.elc.
4646 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4647 term/x-win.elc.
4648 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4649 term/w32-win.elc.
4650 (NS_SUPPORT): New.
4651 (lisp): Add NS_SUPPORT.
4652 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4653
4ff670a8
DR
46542009-09-25 David Reitter <david.reitter@gmail.com>
4655
4656 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4657 on Mac OS X 10.6+ (bug#4513).
4658
feabfb6c
JB
46592009-09-24 Juanma Barranquero <lekktu@gmail.com>
4660
4661 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4662 some parts of Emacs code (like font selection) don't grok them.
4663 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4664
de59072a
AS
46652009-09-24 Andreas Schwab <schwab@redhat.com>
4666
4667 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4668
a489517b
JB
46692009-09-24 Juanma Barranquero <lekktu@gmail.com>
4670
4671 * dired.c (Fdirectory_files): Fix typo in docstring.
4672
0592970c
AR
46732009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4674
4675 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4676 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4677 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4678 under GNUstep.
4679 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4680
4681 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4682 glyph advancement.
4683
48e8a88b
AR
46842009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4685
4686 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4687 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4688
4689 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4690 deleted (bug #4492).
4691
e14f0a78
AR
4692 * nsfont.m (Vns_reg_to_script): New lisp variable.
4693 (syms_of_nsfont): Declare it.
4694 (ns_registry_to_script): New function.
4695 (ns_get_req_script): Call it.
4696 (ns_findfonts): Don't give up on non-unicode registry.
4697
4698 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4699
5b650faa
SM
47002009-09-20 Tom Tromey <tromey@redhat.com>
4701
4702 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4703 batch mode (bug#4228).
4704
a489517b 47052009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4706
4707 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4708 carefully. (Bug #4339)
0bae4e09 4709
fcfe06f3
CY
47102009-09-18 Chong Yidong <cyd@stupidchicken.com>
4711
d798ba87 4712 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4713
31642728
AR
47142009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4715
4716 * emacs.c (inhibit_x_resources): Update doc string for NS.
4717 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4718 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4719
4720 * nsterm.h (ns_no_defaults): Remove.
4721
4722 * nsterm.m (ns_no_defaults): Remove.
4723 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4724 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4725 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4726 don't update the NSWindow itself.
4727 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4728 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4729
4730 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4731 ns_use_qd_smoothing.
4732
4733 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4734 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4735 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4736 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4737
8686ac71
JB
47382009-09-17 Juanma Barranquero <lekktu@gmail.com>
4739
4740 * emacs.c (inhibit_x_resources): New variable.
4741 (main) [HAVE_NS]: Don't process --quick command line option.
4742 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4743
4744 * lisp.h (inhibit_x_resources): Declare it extern.
4745
4746 * w32reg.c (x_get_string_resource):
4747 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4748
e227ba05
EZ
47492009-09-17 Eli Zaretskii <eliz@gnu.org>
4750
362654a6
JB
4751 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4752 Add lisp/term/internal.elc.
e227ba05 4753
742d40e8
SM
47542009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4755
4756 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4757 (bug#4461).
4758
005bd5a2
DN
47592009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4760
4761 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4762
4763 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4764 (OBJECTS_MACHINE): Remove, unused.
4765
f9af9719
SM
47662009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4767
4768 * frame.c (x_get_resource_string): Remove unused.
4769
0307c7d2
JD
47702009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4771
4772 * xterm.c (x_new_font): Call change_frame_size before calling
4773 x_set_window_size, in case frame size won't change.
4774
4775 * frame.c (x_set_font): Remove dead code.
4776
428b13d6
SM
47772009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4778
4779 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4780
5766c380
SM
47812009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4782
4783 * lread.c (Fload): Don't output a message after loading an obsolete
4784 package any more (done in Lisp now).
4785
2fd0161b
CY
47862009-09-12 Chong Yidong <cyd@stupidchicken.com>
4787
4788 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4789
bc5e75b6
SM
47902009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4791
4792 * keymap.c (Fwhere_is_internal): Use nconc2.
4793
c31c985e
AM
47942009-09-11 Alan Mackenzie <acm@muc.de>
4795
4796 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4797 batch mode.
4798
78012bd2
AS
47992009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4800
4801 * xdisp.c (display_mode_element): Detect cycles.
4802
9d889332
SM
48032009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4804
4805 * keymap.c (where_is_internal): Don't erroneously return nil right after
4806 filling the cache.
4807 (where_is_internal_1): Fix up typo.
4808
7ab5d780
GM
48092009-09-11 Glenn Morris <rgm@gnu.org>
4810
4811 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4812 share a common doc-string.
4813
5238a749
SM
48142009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4815
66d77eda
SM
4816 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4817 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4818
5238a749
SM
4819 * keymap.c (QCadvertised_binding): New constant.
4820 (syms_of_keymap): Initialize it.
4821 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4822 if applicable.
4823
19f48442
SM
48242009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4825
50d4ba39
SM
4826 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4827 (parse_menu_item): Streamline since bindings are recomputed all the
4828 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4829 more and don't support lmenu's menu-alias any more either.
4830
a88a5372
SM
4831 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4832 (where_is_internal): Strip it down to only traverse the keymaps.
4833 Move the cache handling from Fwhere_is_internal to here.
4834 (Fwhere_is_internal): Move the handling of remapping and the choice of
4835 the best binding from where_is_internal to here.
4836 Unify the cached/noncached paths, so remapping is also handled
4837 correctly when the cache is used, and so the cache can be used to
4838 speed up remap-handling when applicable.
4839 Give preference to non-remapped bindings.
4840 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4841 non-remapped bindings.
4842 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4843 command remapping.
4844
19f48442
SM
4845 * xdisp.c (display_mode_element): Move list length limit from 50 to
4846 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4847
599498c3 48482009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4849
4850 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4851
f9b7b5ac
SM
48522009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4853
a53af587
JB
4854 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4855 (Bug#4334)
4856
f9b7b5ac
SM
4857 * keymap.c (where_is_internal): Filter out shadowed remappings.
4858 Assume that where_is_internal returns unshadowed bindings to simplify
4859 the code and get rid of the gotos. Use ASIZE.
4860
04f4b72d
JD
48612009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4862
4da146f2
JD
4863 * xterm.c (x_focus_changed): If we get a focusout and pointer
4864 is invisible, make it visible.
4865
04f4b72d
JD
4866 * xterm.h: Remove condition for declaration of
4867 x_*_window_to_frame.
4868
7cef7ce3
SM
48692009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4870
4871 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4872 initial terminal as well.
4873
a54fa5b7
JD
48742009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4875
4876 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4877 x_menubar_window_to_frame.
a54fa5b7 4878
50426a04 4879 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4880 (XTmouse_position): Do not return valid positions
4881 for clicks in the menubar and the toolbar for Gtk+.
4882
4883 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4884 if the widget for the event has the same top level as a frame,
4885 return the frame.
4886 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4887 internal windows, bug #4122.
4888 (x_non_menubar_window_to_frame): Remove.
4889
5a021dd0
GM
48902009-09-02 Glenn Morris <rgm@gnu.org>
4891
4892 * buffer.c (default-major-mode): Move most of the doc from here...
4893 (major-mode): ... to here.
4894
548fe2f3
NR
48952009-08-30 Nick Roberts <nickrob@snap.net.nz>
4896
4897 * process.c (wait_reading_process_output): Keep the descriptor
4898 when pty is used by a non-child process, e.g., in I/O buffer of
4899 GDB this allows inferior to be restarted.
4900
e0840eef
EZ
49012009-08-29 Eli Zaretskii <eliz@gnu.org>
4902
4903 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4904 both branches into one.
4905
82e98df4
SM
49062009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4907
4908 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4909 (main): Use enable-multibyte-characters rather than
4910 default-enable-multibyte-characters. Output a warning message when
4911 running a unibyte session.
4912
890617cb
YM
49132009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4914
4915 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4916 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4917 (copy_data_segment): Also copy __program_vars section.
4918 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4919 (dump_it) [LC_DYLD_INFO]: Use it.
4920
4921 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4922
e7adeadc
EZ
49232009-08-28 Eli Zaretskii <eliz@gnu.org>
4924
4925 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4926 $(SRC)/buildobj.h.
4927 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4928 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4929 $(SRC)/buildobj.h.
4930 (clean): Add buildobj.h.
4931
3ed8bbdc
TZ
49322009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4933
4934 * print.c (print_object): Set escapeflag to 1 when printing
4935 hashtable keys and values.
4936
155a6764
SM
49372009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4938
4939 * lread.c (read_integer): Use doubles (and potentially return a float
4940 number) as we do in string-to-number.
4941 (read1): Use strtol to read integers, signal errors on strtol's
4942 overflow and use floats if strtol's output is too large for
4943 Elisp integers.
4944
877610de
EZ
49452009-08-27 Eli Zaretskii <eliz@gnu.org>
4946
4947 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4948 (make-buildobj-SH): Fix last change.
4949 (SRC): Move to before where it's first used.
4950
ef73e7be
KH
49512009-08-27 Kenichi Handa <handa@m17n.org>
4952
550c8289
KH
4953 * process.c (send_process): Use encode_coding_object instead of
4954 encode_coding_string to perform eol-conversion even if the string
4955 is unibyte.
4956
60afa08d
KH
4957 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4958 character.
4959
ef73e7be 4960 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4961 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4962
7b3a82d7
DN
49632009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4964
5654bf63
DN
4965 * callproc.c (Fcall_process): Remove always true #if.
4966
7b3a82d7
DN
4967 * lisp.h: Replace #if 0 code for checking with text pointing to
4968 the --enable-checking configure flag.
4969
4970 * emacs.c (main): Mention the --enable-profiling configure flag
4971 instead of using CFLAGS.
4972
878bde49
KR
49732009-08-26 Ken Raeburn <raeburn@raeburn.org>
4974
4975 * Makefile.in (buildobj.h): New target.
4976 (doc.o): Depend on it.
4977 (temacs${EXEEXT}): Don't generate buildobj.lst.
4978 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4979 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4980 ($(BLD)/doc.$(O)): Depend on it.
4981 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4982 provided by Eli Zaretskii.)
4983 ($(TEMACS)): Don't generate buildobj.lst.
4984 * doc.c: Include buildobj.h.
4985 (buildobj): New static variable.
4986 (Fsnarf_documentation): Use it, instead of opening and reading
4987 buildobj.lst.
4988
1574224c
MA
49892009-08-25 Michael Albinus <michael.albinus@gmx.de>
4990
4991 * dbusbind.c (Fdbus_call_method)
4992 (Fdbus_call_method_asynchronously): Use English numeric format for
4993 timeout values in doc string.
4994
d9da2f45
KH
49952009-08-25 Kenichi Handa <handa@m17n.org>
4996
ef73e7be
KH
4997 * alloc.c (mark_char_table): New function.
4998 (mark_object): Use mark_char_table for a char-table.
4999
d9da2f45
KH
5000 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
5001 (CHAR_TABLE_REF): Use it.
5002
c8edcc01
KR
50032009-08-23 Ken Raeburn <raeburn@raeburn.org>
5004
5005 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
5006 before invoking the newly build emacs to check for load-path
5007 shadowing.
5008
7763401b
GM
50092009-08-22 Glenn Morris <rgm@gnu.org>
5010
5011 * Makefile.in (bootstrap_exe): New variable.
5012 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
5013 Use ${bootstrap_exe}.
5014
729eadda
EZ
50152009-08-22 Eli Zaretskii <eliz@gnu.org>
5016
5017 * coding.h (encode_coding_string): Don't encode unibyte strings.
5018 (Bug#4047)
5019
eb4c6ace
MA
50202009-08-22 Michael Albinus <michael.albinus@gmx.de>
5021
5022 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
5023
5024 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
5025 intended as hotfix only.
5026 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
5027
36e34d1b
AR
50282009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5029
5030 * nsterm.m (ns_get_color): Update documentation properly for last
5031 change, and clean up loose ends in the code left by it. Fix
5032 longstanding bug with 16-bit hex parsing, and add support for
5033 yet another X11 format (rgb:r/g/b) for compatibility.
5034 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
5035 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
5036
f983eb8a
SM
50372009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
5038
5039 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
5040
3f56d3c6
MA
50412009-08-20 Michael Albinus <michael.albinus@gmx.de>
5042
5043 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
5044 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
5045 (xd_initialize, xd_pending_messages): Check, whether
5046 $DBUS_SESSION_BUS_ADDRESS is set.
5047
fb641d68
YM
50482009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5049
5050 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
5051
5052 * nsterm.m (ns_get_color): Remove incompatible color formats again.
5053
cf59a374
GM
50542009-08-20 Glenn Morris <rgm@gnu.org>
5055
5056 * emacs.c (system-type): Doc fix.
5057
1373f3be
SM
50582009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5059
5060 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
5061 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
5062
058ed861
MA
50632009-08-18 Michael Albinus <michael.albinus@gmx.de>
5064
1373f3be
SM
5065 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
5066 New functions.
058ed861
MA
5067 (xd_initialize): Revert change from 2009-08-16.
5068
563a866e 50692009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
5070
5071 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 5072 font-group vector, return nil.
5fc05db0 5073
e42bdf01
CY
50742009-08-17 Chong Yidong <cyd@stupidchicken.com>
5075
5076 * process.c (status_notify): Don't perform redisplay.
5077 (Fdelete_process, list_processes_1, process_send_signal):
5078 Expliticly perform redisplay.
5079 (wait_reading_process_output): Always check process status, but
5080 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
5081
4230ab74
KR
50822009-08-17 Ken Raeburn <raeburn@raeburn.org>
5083
1373f3be 5084 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
5085 (XFLOAT_INIT): New macro for storing a float value.
5086 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
5087 * fns.c (sxhash): Copy out the value of a float in order to
5088 examine its bytes.
5089 * dbusbind.c (xd_append_arg): Likewise.
5090
4230ab74
KR
5091 * emacs.c (main): Don't call syms_of_data twice.
5092
a0645cdd
MA
50932009-08-16 Michael Albinus <michael.albinus@gmx.de>
5094
5095 * dbusbind.c (xd_initialize): Add connection file descriptor to
5096 input_wait_mask, in order to let select() detect, whether a new
5097 message has been arrived.
ca4f31ea 5098 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 5099
485db0ba
MA
51002009-08-15 Michael Albinus <michael.albinus@gmx.de>
5101
1373f3be
SM
5102 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
5103 New functions.
485db0ba
MA
5104
5105 * lisp.h (xd_pending_messages): Declare.
5106
5107 * keyboard.c (readable_events): Call xd_pending_messages.
5108
b5b98ff4
CY
51092009-08-15 Chong Yidong <cyd@stupidchicken.com>
5110
1373f3be 5111 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 5112
f8354c6e
CY
5113 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
5114
b5b98ff4
CY
5115 * buffer.c (set_buffer_internal_1)
5116 (swap_out_buffer_local_variables): Check for unbound local
5117 variables (Bug#4138).
5118
8b9fc636
EZ
51192009-08-14 Eli Zaretskii <eliz@gnu.org>
5120
5121 * process.c (create_pty): Fix last change.
5122
ce959360
CY
51232009-08-13 Chong Yidong <cyd@stupidchicken.com>
5124
5125 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
5126 (xbm_load_image): Caller changed.
64b807c9 5127 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 5128
c7baf7e9
NR
51292009-08-13 Nick Roberts <nickrob@snap.net.nz>
5130
5131 * process.c (create_pty): New function.
5132 (Fstart_process): Use it to allow Emacs to just associate a pty
5133 with the buffer. See associated change in gdb-mi.el.
5134 (list_processes_1): Deal with no program name.
5135 (start_process_unwind): Use pid == -2 to mean no process.
5136
1ac9108a
SM
51372009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5138
5139 * cmds.c (nonundocount): New global variable.
5140 (keys_of_cmds): Initialize it.
5141 (Fself_insert_command): Use it to combine upto 20 sequential chars
5142 into a single undo entry, just like the Qself_insert_command code in
5143 keyboard.c does.
5144 Call frame_make_pointer_invisible, also like the Qself_insert_command
5145 code in keyboard.c does.
5146 * keyboard.c (command_loop_1): Use the new global nonundocount rather
5147 than its own local replacement for it.
5148
e267324c
KR
51492009-08-10 Ken Raeburn <raeburn@raeburn.org>
5150
1ac9108a 5151 * fns.c (concat): Don't re-set string length to its current value.
77437343 5152
1ac9108a
SM
5153 * coding.h (decode_coding_string, encode_coding_string):
5154 Use SBYTES macro.
f0bed503 5155
1ac9108a 5156 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
5157 (doprnt): Merge with doprnt1, discarding lispstrings code.
5158 * lisp.h (doprnt_lisp): Don't declare.
5159
416e006d
JL
51602009-08-07 Juri Linkov <juri@jurta.org>
5161
5162 * puresize.h (BASE_PURESIZE): Increase to 1270000.
5163
6f7d5780
DN
51642009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5165
5166 * print.c (syms_of_print): Undo previous change.
5167
f19a0f5b
TZ
51682009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
5169
5170 * lread.c (read1, syms_of_lread): Read hashtables back from the
5171 readable format.
5172
5173 * print.c (print_preprocess, print_object): Print hashtables fully
5174 and readably.
5175 (syms_of_print): Provide 'hashtable-print-readable.
5176
b9173dc2
AR
51772009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5178
5179 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
5180 no family set.
5181 (nsfont_open): Handle case when entity has no family.
5182
1586503c
AR
51832009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5184
5185 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
5186 element, not a list, for match case.
5187
087048cd
KH
51882009-07-28 Kenichi Handa <handa@m17n.org>
5189
5190 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
5191 rigidly.
5192
5193 * xfont.c (xfont_list_pattern): Don't ignore the return value of
5194 font_parse_xlfd. Check font properties more rigidly.
5195
780c2506
DN
51962009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5197
31fd7c5c
JB
5198 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
5199 bsd-common.h.
780c2506 5200
a8c0cc18
KH
52012009-07-27 Kenichi Handa <handa@m17n.org>
5202
5203 * xfaces.c (face_with_height): Call font_clear_prop.
5204
4fbe2306
CY
52052009-07-26 Chong Yidong <cyd@stupidchicken.com>
5206
111d9af3
CY
5207 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
5208
5209 * xterm.c (x_term_init): Use Qx.
5210
4fbe2306
CY
5211 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
5212
1ac9108a 5213 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
5214 (ns_get_color): Revert 2009-07-16 change.
5215
beb0b7f9
EZ
52162009-07-25 Eli Zaretskii <eliz@gnu.org>
5217
5218 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 5219 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 5220
2baf5e76
KR
52212009-07-25 Ken Raeburn <raeburn@raeburn.org>
5222
1ac9108a
SM
5223 * coding.h (decode_coding_string, encode_coding_string):
5224 Use SCHARS macro.
8890e5f5 5225
2baf5e76 5226 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 5227 (load_depth): Delete.
2baf5e76
KR
5228 (Qload_in_progress): New variable.
5229 (load_unwind): Don't reference load_depth or load_in_progress.
5230 (Fload): Likewise; specbind Qload_in_progress instead.
5231 (init_lread): Don't initialize load_depth.
5232 (syms_of_lread): Initialize and protect Qload_in_progress.
5233
1395c6f5
AR
52342009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5235
5236 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
5237
4e2f36cf
AR
52382009-07-23 Yavor Doganov <yavor@gnu.org>
5239
5240 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
5241
5dd9a6f7
AR
52422009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5243
5244 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
5245 Bugs 3792, 3720, 2402.
5246 (ns_lookup_indexed_color): Check for bad index.
5247 (ns_index_color): Init unused slot to 0.
5248 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
5249 Bug 3714, possibly 3082.
5dd9a6f7 5250
c902b920
JR
52512009-07-22 Jason Rumney <jasonr@gnu.org>
5252
1ac9108a
SM
5253 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
5254 Position IME window at cursor (Bug#2570).
c902b920
JR
5255 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
5256 (globals_of_w32fns): Dynamically load functions required above.
5257
5258 * w32term.c (w32_draw_window_cursor): Send message to reposition
5259 any IME window.
5260
090101cf
CY
52612009-07-21 Chong Yidong <cyd@stupidchicken.com>
5262
5263 * fileio.c: Revert 2009-07-16 changes.
5264 (Vauto_save_include_big_deletions): New variable.
5265 (Fdo_auto_save): Disable auto-save only if
5266 auto-save-include-big-deletions is nil.
5267
e6583e3d
CY
52682009-07-21 Chong Yidong <cyd@stupidchicken.com>
5269
5270 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5271 the overflowed pixels into account (Bug#3879).
5272
ece435a5
KR
52732009-07-21 Ken Raeburn <raeburn@raeburn.org>
5274
5275 * lread.c (load_depth): New variable.
5276 (Fload, load_unwind, init_lread): Set it to the load recursion
5277 depth; set load_in_progress as a simple boolean based on the
5278 current load_depth. (Bug#3892)
5279
40b2d973
AR
52802009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5281
5282 * nsfont.m (ns_has_attribute): Remove.
5283 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5284
10be7e0d
JL
52852009-07-18 Juri Linkov <juri@jurta.org>
5286
5287 * process.c (Fset_process_query_on_exit_flag): Mention killing
5288 a buffer in docstring.
5289
fa055055
KH
52902009-07-17 Kenichi Handa <handa@m17n.org>
5291
5292 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5293
042f7b69
YM
52942009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5295
5296 * nsfns.m (Fns_set_alpha): Remove function.
5297 (syms_of_nsfns): Don't defsubr it.
5298
5299 * nsterm.m (ns_get_color): Remove incompatible color formats.
5300 (ns_color_to_lisp): Generate #rrggbb color format string.
5301
4be941e3
RS
53022009-07-16 Richard Stallman <rms@gnu.org>
5303
5304 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5305 (Fset_buffer_auto_saved): Handle save_length = -2.
5306
4e6b227d
CY
53072009-07-16 Chong Yidong <cyd@stupidchicken.com>
5308
5309 * xterm.c (Qx_gtk_map_stock): New var.
5310
5311 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5312 of calling intern each time.
5313
a1856973
YM
53142009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5315
5316 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5317 does tiling.
5318
5319 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5320
497e54d8
KH
53212009-07-14 Kenichi Handa <handa@m17n.org>
5322
72d36834
KH
5323 * font.c (font_vconcat_entity_vectors): New function.
5324 (struct font_sort_data): New member font_driver_preference.
5325 (font_compare): Check font_driver_preference.
5326 (font_sort_entities): The format of the first argument changed.
5327 (font_delete_unmatched): Likewise.
5328 (font_list_entities): The return type changed.
5329 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5330 (font_find_for_lface): Adjuste for the above changes.
5331 Don't suppress the checking of C even if the repertory supports it.
5332 (Flist_fonts): Adjust for the above changes.
72d36834 5333
1ac9108a
SM
5334 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5335 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5336 Reject a font who has adstyle property that is different from a
5337 langname derived from registry property.
1ac9108a 5338 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5339
b6046155
EZ
53402009-07-13 Eli Zaretskii <eliz@gnu.org>
5341
5342 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5343 local copy of dirfilename.
5344
fb6b6049
KH
53452009-07-13 Kenichi Handa <handa@m17n.org>
5346
e2402a5e
KH
5347 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5348 against max_char.
5349
fb6b6049
KH
5350 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5351 calling XSYMBOL (sym).
5352
65156807
EZ
53532009-07-11 Eli Zaretskii <eliz@gnu.org>
5354
1ac9108a
SM
5355 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5356 New function.
5357 (directory_files_internal) [WINDOWSNT]:
5358 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5359 the filesystem of the directory is fast or slow.
5360
5361 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5362 file name.
5363 (is_slow_fs): New function.
5364 (stat): Use it to determine whether to issue more system calls to
5365 get accurate file attributes, when w32-get-true-file-attributes is
5366 `local'.
5367
e0ab5fcf
JD
53682009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5369
5370 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5371 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5372 parameter font-parameter as default to the font dialog.
5373
784ceded
KH
53742009-07-10 Kenichi Handa <handa@m17n.org>
5375
5376 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5377
fb8edc0b
EZ
53782009-07-09 Eli Zaretskii <eliz@gnu.org>
5379
1ac9108a 5380 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5381
fb8edc0b
EZ
5382 * w32.c (stat): Treat UNC file names as residing on remote
5383 drives. (Bug#3542)
5384
635c75b1
KH
53852009-07-09 Kenichi Handa <handa@m17n.org>
5386
5387 * fontset.c (fontset_find_font): Fix previous change.
5388
c1d5ce94
MA
53892009-07-08 Michael Albinus <michael.albinus@gmx.de>
5390
5391 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5392 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5393 error flag.
5394
edb61b39
KH
53952009-07-08 Kenichi Handa <handa@m17n.org>
5396
374bf7e4
KH
5397 * fontset.c (fontset_find_font): Fix the logic of handling
5398 charset_matched.
5399 (font_for_char): Delete unused var.
5400 (generate_ascii_font_name): Delete it.
5401
edb61b39
KH
5402 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5403
5404 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5405 (encode_coding_sjis): Fix the code range check.
5406
0f3f018c
CY
54072009-07-07 Chong Yidong <cyd@stupidchicken.com>
5408
5409 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5410 (Fexpand_file_name): Copy string data properly (Bug#3772).
5411
fcaf6f3a
JD
54122009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5413
5414 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5415 first MapNotify.
5416
6809ca75
KH
54172009-07-07 Kenichi Handa <handa@m17n.org>
5418
5419 * character.h (unibyte_has_multibyte_table): Delete extern.
5420 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5421
5422 * charset.c (Fset_charset_priority): Update charset_unibyte.
5423 (syms_of_charset): Initialize charset_unibyte.
5424
5425 * character.c (unibyte_has_multibyte_table): Delete it.
5426 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5427 charset_unibyte.
5428 (multibyte_char_to_unibyte_safe): Likewise.
5429 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5430
1ac9108a 5431 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5432 (x_produce_glyphs): Likewise.
5433
5434 * .gdbinit (xcharset): Fix the treating $arg0.
5435
ad9e2d54
EZ
54362009-07-04 Eli Zaretskii <eliz@gnu.org>
5437
5438 Emulation of `getloadavg' on MS-Windows.
50426a04 5439 * w32.c: Include float.h.
ad9e2d54
EZ
5440 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5441 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5442 (get_native_system_info, get_system_times): New functions.
5443 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5444 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5445 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5446 g_b_init_get_system_times, and num_of_processors.
5447
0a3472c7
JR
54482009-07-03 Jason Rumney <jasonr@gnu.org>
5449
5450 * w32term.c (w32_initialize): Use standard types.
5451
80904120
EZ
54522009-07-03 Eli Zaretskii <eliz@gnu.org>
5453
5454 * dired.c (Ffile_attributes): Decode user and group names by the
5455 locale's encoding. (Bug#3443)
5456
6978862d
DN
54572009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5458
f8d23104
DN
5459 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5460 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5461
5462 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5463
5464 * term.c (init_tty): Remove spurious #ifdef.
5465
6978862d
DN
5466 * m/mips.h: Mention this file is also used for netbsd.
5467 * m/pmax.h: Remove file.
5468
e044e4fc
JD
54692009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5470
5471 * xterm.h (struct x_display_info): Add invisible_cursor.
5472 (struct x_output): Add current_cursor.
5473
5474 * xterm.c (XTtoggle_invisible_pointer): New function.
5475 (x_define_frame_cursor): Don't define cursor if invisible or the
5476 same as before. Set current_cursor.
5477 (x_create_terminal): Set toggle_invisible_pointer_hook.
5478
5479 * xfns.c (make_invisible_cursor): New function.
5480 (x_set_mouse_color): Call make_invisible_cursor.
5481 Set current_cursor.
5482 (x_window): Set current_cursor.
5483
5484 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5485
5486 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5487 inserting a character.
5488 (read_avail_input): Call frame_make_pointer_visible.
5489
5490 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5491 (frame_make_pointer_invisible, frame_make_pointer_visible):
5492 New functions.
e044e4fc
JD
5493 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5494
5495 * frame.h: Declare frame_make_pointer_invisible and
5496 frame_make_pointer_visible.
5497 (struct frame): Add pointer_invisible.
5498
574c8efa
JD
54992009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5500
7b507248
JD
5501 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5502 frame isn't visible.
5503 (xg_frame_resized): If width/height is -1, get size of window
5504 from X server.
5505
5506 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5507 for MapNotify.
5508
835bdaa7 5509 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5510 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5511 (flush_and_sync): Reintroduce.
574c8efa 5512
3f1c6666 55132009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5514
31fd7c5c 5515 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5516
5517 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5518 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5519
5520 * frame.h: Declare Qsticky.
5521
cad9ef74
JD
5522 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5523
5524 * nsfns.m (ns_frame_parm_handlers): Ditto.
5525
5526 * frame.c: Declare Qsticky.
5527 (frame_parms): Add sticky.
5528
5529 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5530
5531 * xterm.h: Declare x_set_sticky.
5532
5533 * xterm.c (x_set_sticky): New function.
5534
69b16610
JD
5535 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5536 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5537 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5538
5539 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5540
5541 * frame.c: Qmaximized is new.
5542 (x_set_frame_parameters): Do not handle fullscreen specially.
5543 Only set width and height if explicitly set.
5544 (x_set_fullscreen): Handle Qmaximized.
5545 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5546 (syms_of_frame): Initialize Qmaximized.
5547
1ac9108a
SM
5548 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5549 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5550
5551 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5552 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5553 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5554 set gravity to NorthWestGravity when USE_GTK.
5555 (set_wm_state): New function.
31fd7c5c 5556 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5557 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5558 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5559 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5560 to x_real_positions and x_fullscreen_adjust.
5561
5562 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5563 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5564 flush_and_sync.
5565 (xg_height_changed): New function.
5566 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5567 and gtk_window_set_policy. Set frame gravity after parsing the
5568 geometry string.
3f1c6666
JD
5569 (xg_update_frame_menubar, free_frame_menubar)
5570 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5571 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5572 Remove calls to xg_frame_set_char_size.
5573
fd503d99
KH
55742009-07-01 Kenichi Handa <handa@m17n.org>
5575
5576 * keyboard.c (decode_keyboard_code): New function.
5577 (tty_read_avail_input): Decode the input bytes if necessary.
5578
1ac9108a
SM
5579 * coding.c (setup_coding_system):
5580 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5581 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5582 use Qno_conversion.
5583
24ed93fb
YM
55842009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5585
5586 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5587
99061dfc
CY
55882009-06-30 Chong Yidong <cyd@stupidchicken.com>
5589
1ac9108a 5590 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5591
ff90fbde
JR
55922009-06-30 Jason Rumney <jasonr@gnu.org>
5593
5594 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5595 is already loaded.
5596 Set user model ID if supported (bug#1849).
5597
5f445726
JM
55982009-06-29 Jim Meyering <meyering@redhat.com>
5599
5600 Remove useless if-before-xfree test.
5601 * nsfont.m (nsfont_close): Remove useless test.
5602 * term.c (delete_tty): Likewise.
5603 * w32.c (system_process_attributes): Likewise.
5604 * w32font.c (w32font_close): Likewise.
5605 * xfaces.c (x_free_gc): Likewise.
5606 * xselect.c (buffer): Likewise.
5607
b9607587
AS
56082009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5609
5610 * process.c (send_process): Keep decoded string in a local
5611 variable and protect it from GC. (Bug#3521)
5612
89ba96f4
EZ
56132009-06-28 Eli Zaretskii <eliz@gnu.org>
5614
5615 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5616 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5617
098a1589
CY
56182009-06-28 Chong Yidong <cyd@stupidchicken.com>
5619
485422be
CY
5620 * xdisp.c (start_display, handle_face_prop)
5621 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5622 (redisplay_window, try_window_id, produce_image_glyph):
5623 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5624
098a1589
CY
5625 * xterm.c (x_update_window_begin, x_new_focus_frame)
5626 (x_scroll_bar_handle_click, handle_one_xevent)
5627 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5628 (x_make_frame_visible, x_make_frame_invisible)
5629 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5630 code chunks that are now obsolete.
5631
78c38319
MA
56322009-06-28 Michael Albinus <michael.albinus@gmx.de>
5633
5634 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5635 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5636 for hours, when optimzation is enabled.
5637 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5638 (xd_read_message): Make them static.
5639
4189ed40
CY
56402009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5641
5642 * term.c (turn_on_face): Allow simultaneously bold and dim
5643 terminal faces (Bug#3530).
5644
cd9b5e16
CY
56452009-06-27 Chong Yidong <cyd@stupidchicken.com>
5646
4e23bedb
CY
5647 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5648
cd9b5e16
CY
5649 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5650 truncation glyphs (Bug#3686).
5651
07cc3c35
GM
56522009-06-27 Glenn Morris <rgm@gnu.org>
5653
5654 * m/pmax.h: Restore file, with only netbsd portions.
5655
31fd7c5c 56562009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5657
cd9b5e16 5658 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5659
42d4a64f
KH
56602009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5661
5662 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5663 the arg FORCE_SYMBOL.
5664
930fe55b 56652009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5666
5667 * fontset.c (fontset_find_font): When a usable rfont_def is found
5668 in a fallback font-group, make it the first element of the group.
5669
57ebc3fd
CY
56702009-06-24 Chong Yidong <cyd@stupidchicken.com>
5671
5672 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5673
f084f942
KH
56742009-06-24 Kenichi Handa <handa@m17n.org>
5675
5676 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5677 set for C.
5678 (fontset_font): Record the availability of a font for C both in
5679 the realized fontsets of the current one and the default one.
5680
2f686c87
DN
56812009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5682
5683 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5684 conditional, it is always defined on AIX.
5685
666e158e
MB
56862009-06-23 Miles Bader <miles@gnu.org>
5687
5688 * window.c (Vrecenter_redisplay): New variable.
5689 (syms_of_window): Initialize it.
5690 (Qtty): New extern declaration.
5691 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5692
c6da7cd2
JM
56932009-06-23 Jim Meyering <meyering@redhat.com>
5694
1ac9108a
SM
5695 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5696 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5697 pointer dereferences are guaranteed to be valid.
c6da7cd2 5698
678dca3d
KH
56992009-06-23 Kenichi Handa <handa@m17n.org>
5700
74d75424
KH
5701 * emacs.c (main): Call init_font ().
5702
5703 * font.h (Vfont_log): Extern it.
5704 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5705
5706 * font.c (font_sort_entities, font_list_entities)
5707 (font_matching_entity, font_open_entity)
5708 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5709 (Vfont_log): Delete static.
5710 (font_log_env_checked): Delete this variable.
5711 (font_add_log): Don't check font_log_env_checked.
5712 (font_deferred_log): Check Vfont_log.
5713 (init_font): New function.
5714
678dca3d
KH
5715 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5716
5717 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5718
5719 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5720
5721 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5722
5723 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5724 (face_for_char): Don't call font_deferred_log here.
5725 (font_for_char): Likewise.
5726
8a668709
CY
57272009-06-22 Chong Yidong <cyd@stupidchicken.com>
5728
9a01ee33
CY
5729 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5730 rather than its background_width for drawing the overline and
5731 underline (Bug#489).
5732
5733 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5734 rather than its background_width for drawing the overline and
5735 underline (Bug#489).
ec7c9926
CY
5736 (xg_default_icon_file): New variable.
5737 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5738 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5739
8a668709
CY
5740 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5741 (load_overlay_strings): Remove externs.
5742 (fast_find_position): Function deleted.
5743 (mouse_face_from_buffer_pos): New function, based on
5744 fast_find_position. Correctly handle before-strings,
5745 display-strings, and after-strings (Bug#1220).
5746 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5747
4d4c02d8
CY
57482009-06-21 Chong Yidong <cyd@stupidchicken.com>
5749
1ac9108a 5750 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5751 (move_it_in_display_line_to, move_it_in_display_line_to)
5752 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5753
70243478
CY
57542009-06-21 Chong Yidong <cyd@stupidchicken.com>
5755
5756 * Branch for 23.1.
5757
13087e59
JR
57582009-06-21 Jason Rumney <jasonr@gnu.org>
5759
5760 * w32term.c (keyboard_codepage): New static variable.
5761 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5762 (w32_read_socket) [WM_CHAR]: Use it to decode character
5763 input (bug#3237).
5764 (w32_initialize): Initialize it.
5765 (codepage_for_locale): New function.
5766
4735b74e
KR
57672009-06-20 Ken Raeburn <raeburn@raeburn.org>
5768
5769 * process.c (status_message): Pass Faset index argument as a lisp
5770 object, so as to work with USE_LISP_UNION_TYPE.
5771
0e727afa
YM
57722009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5773
5774 * coding.c (Ffind_coding_systems_region_internal):
5775 Cache checked characters.
5776
cf299835
KH
57772009-06-18 Kenichi Handa <handa@m17n.org>
5778
1ac9108a 5779 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5780
90f20d94
AS
57812009-06-18 Andreas Schwab <aschwab@redhat.com>
5782
5783 * xdisp.c (redisplay_internal): Check that the frame is still
5784 live after redisplay of its windows.
5785 (redisplay_windows): Check that the window is still live.
5786
7f1faf1c
KH
57872009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5788
5789 * coding.c (detect_coding_utf_16): Fix previous change.
5790
cc13543e
KH
57912009-06-16 Kenichi Handa <handa@m17n.org>
5792
5793 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5794 UTF-16 by checking the dispersion of Eth and Oth bytes.
5795
977b85f4
AS
57962009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5797
5798 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5799
66bd43d1
KH
58002009-06-15 Kenichi Handa <handa@m17n.org>
5801
5802 * process.c (status_message): Fix previous change. Be sure to
5803 decode a localized string.
5804
cb5ca9c5
YM
58052009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5806
5807 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5808 add comment explaining why.
5809
ec7709ba 58102009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5811
ec7709ba 5812 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5813
4b7f335c
AR
58142009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5815
5816 * nsfont.m (ns_attribute_value): Remove.
5817 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5818 (ns_has_attribute): Shrink the normal range.
5819 (ns_findfonts): Don't worry about requested spec in determining
5820 need for synthItal.
e41820ee 5821 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5822
73b26103
SZ
58232009-06-14 Seiji Zenitani <zenitani@mac.com>
5824
5825 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5826
5753e4da
KH
58272009-06-11 Kenichi Handa <handa@m17n.org>
5828
5829 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5830 overhang for the static composition case.
5831
3561b671
KH
58322009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5833
5753e4da
KH
5834 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5835 overhang for the automatic composition case.
5836
3561b671
KH
5837 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5838 composition case.
5839
852bbd41
CY
58402009-06-10 Chong Yidong <cyd@stupidchicken.com>
5841
5842 * xdisp.c (get_next_display_element): When handling wrap-prefix
5843 and line-prefix, treat \n as a control character (bug#3502).
5844
9903d1e6
KH
58452009-06-10 Kenichi Handa <handa@m17n.org>
5846
5847 * font.c (font_parse_family_registry): Fix for one-char foundry.
5848 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5849
0bcbaaaa
CY
58502009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5851
5852 * process.c (status_message): Fix handling of multibyte signal
5853 string (Bug#3499).
5854
40aa3f13
JM
58552009-06-09 Jim Meyering <meyering@redhat.com>
5856
1f80c7e2
CY
5857 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5858 color name is missing.
40aa3f13 5859
72d51285
KH
58602009-06-09 Kenichi Handa <handa@m17n.org>
5861
5862 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5863 FROM-CODE and TO-CODE are codepoints of CHARSET.
5864
c1d04d84
AR
58652009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5866
5867 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5868
58692009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5870
5871 Changes to support :script/:lang/:otf in NS font driver.
5872 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5873 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5874 indicate not part of font driver interface, and change callers.
5875 (ns_get_family): Remove pointless null check.
5876 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5877 ns_spec_to_descriptor, ns_descriptor_to_entity.
5878 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5879 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5880 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5881 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5882 (ns_get_req_script, ns_accumulate_script_ranges)
5883 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5884 New functions.
5885 (nsfont_list, nsfont_match): Use ns_findfonts.
5886 (nsfont_open): Use font descriptor instead of traits.
5887 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5888 (dump_glyphstring): Rename to ns_dump_glyphstring.
5889
c7eb9816
AR
5890 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5891
c1d04d84
AR
5892 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5893
5894 * fontset.c (fontset_from_font): Remove NS-specific code.
5895
ec7709ba 58962009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5897
5898 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5899 nonactive windows.
5900
31fd7c5c 59012009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5902
1ac9108a 5903 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5904
68852c13 59052009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5906
5907 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5908
6756cd1d
CY
59092009-06-07 Chong Yidong <cyd@stupidchicken.com>
5910
5911 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5912 account for the overflowing of newlines into the last glyph on the
5913 display line (Bug#3482).
5914
28bf482a
DR
59152009-06-05 David Reitter <david.reitter@gmail.com>
5916
ec7709ba
JB
5917 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5918 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5919 Fns_selection_exists_p, Fns_selection_owner_p.
5920
fdb55376
JR
59212009-06-03 Jason Rumney <jasonr@gnu.org>
5922
5923 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5924 available. (Bug#3379)
5925
05129fbe
KH
59262009-05-29 Kenichi Handa <handa@m17n.org>
5927
1ac9108a
SM
5928 * coding.c (get_translation_table):
5929 Check Venable_character_translation.
05129fbe 5930
ec7709ba 59312009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5932
ec7709ba
JB
5933 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5934 (x_make_frame_visible): Move frame to front rather than calling
15891144 5935 ns_raise_frame().
ec7709ba 5936 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5937 isn't key window.
ec7709ba 5938 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5939 drawRect may be called by NSView even if the frame is hidden.
5940
ec7709ba
JB
5941 * nsfns.m (Fx_create_frame): Follow other ports in
5942 determining visibility; default to t. Ensure async_visible is set.
15891144 5943
21f73755
EZ
59442009-05-23 Eli Zaretskii <eliz@gnu.org>
5945
5946 * dired.c (Ffile_attributes): Doc fix.
5947
34001e41
CY
59482009-05-22 Chong Yidong <cyd@stupidchicken.com>
5949
5950 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5951
46306a17
SM
59522009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5953
5954 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5955 and xfont_scratch_props.
5956 (syms_of_xfont): Do it here instead.
5957 (xfont_find_ccl_program): Delete, unused.
5958 (xfont_open): Delete unused var `i'.
5959
ef6e0694
KH
59602009-05-21 Kenichi Handa <handa@m17n.org>
5961
5962 * fontset.c (Qlatin): Don't make it static.
5963
46306a17
SM
5964 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5965 New functions.
ef6e0694
KH
5966 (xfont_scripts_cache, xfont_scratch_props): New variables.
5967 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5968 (xfont_list_pattern): Argument changed. Callers changed.
5969 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5970 (xfont_list): Don't reject a font spec with :script property.
5971 (xfont_has_char): Fix setting of encoding.
5972 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5973 xfont_scratch_props.
5974
59752009-05-19 Kenichi Handa <handa@m17n.org>
5976
46306a17 5977 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5978 Callers changed.
5979
59802009-05-18 Kenichi Handa <handa@m17n.org>
5981
5982 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5983
ac71ced7
SM
59842009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5985
5986 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5987 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5988
1c6d1051
YM
59892009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5990
5991 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5992 (x_delete_terminal): Dissociate resource database from display and
5993 then call XrmDestroyDatabase before closing display.
5994
9b9b779c
AR
59952009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5996
5997 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5998 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5999 whether selected frame is viable before raising it (based on patch
6000 by David Reitter), and improve commentary.
6001 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 6002
cccd42d5
KH
60032009-05-15 Kenichi Handa <handa@m17n.org>
6004
6005 * font.c (Ffont_spec): Check arguments.
6006
337fbd17
CY
60072009-05-14 Chong Yidong <cyd@stupidchicken.com>
6008
6009 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
6010 weight when testing attributes (Bug#3282).
6011
47a6002f
JD
60122009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6013
6014 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
6015 what we expect to get in the next ConfigureNotify event.
6016
9cb363db
YM
6017 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
6018 before Xft one (Bug#1696).
6019
b9126609
CY
60202009-05-07 David Reitter <david.reitter@gmail.com>
6021
6022 * nsfns.m (Fx_display_planes): Compute bitplanes using
6023 NSBitsPerPixelFromDepth (Bug#3207).
6024
27a69fd9
CY
60252009-05-10 Chong Yidong <cyd@stupidchicken.com>
6026
6027 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
6028
00f37552
TTN
60292009-05-10 Ulrich Mueller <ulm@gentoo.org>
6030
6031 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
6032
2d82a920
DR
60332009-05-07 David Reitter <david.reitter@gmail.com>
6034
ec7709ba
JB
6035 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
6036 Respect mouse face background.
2d82a920 6037
46b0d52d
DR
60382009-05-07 David Reitter <david.reitter@gmail.com>
6039
ec7709ba
JB
6040 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
6041 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
6042 in ns_update_begin and ns_update_end.
6043
ce1b23bb
SM
60442009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6045
5996e1b7
SM
6046 * nsfns.m (ns_get_screen): Rewrite.
6047 Don't presume selected-frame is of type `ns'.
6048
ba98e3a0
SM
6049 * font.c (font_update_drivers): Sanity fallback to avoid disabling
6050 all drivers.
6051
ce1b23bb
SM
6052 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
6053
bcda200f
YM
60542009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6055
6056 * keyboard.h (add_user_signal): Fix typo in extern.
6057
6058 * lisp.h (add_user_signal): Remove extern.
6059
6060 * unexelf.c (unexec): Consider a section to precede the .bss section
6061 if its addresses overlap that of .bss.
6062 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
6063 instead of dumping process.
6064
864660a2
SM
60652009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6066
6067 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
6068
50da4e56
SM
60692009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
6070
6071 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
6072
51520a1a
DN
60732009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
6074
6075 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
6076 any statements.
6077
409ea3a1
AS
60782009-05-02 Andreas Schwab <schwab@linux-m68k.org>
6079
59c4c60f
AS
6080 * process.c (read_process_output): Make sure the current buffer is
6081 always restored.
6082
409ea3a1
AS
6083 * coding.c (record_conversion_result): Don't modify
6084 Vlast_code_conversion_error for successful result.
6085 (alloc_destination): Don't clobber conversion result. (Bug#1650)
6086
56f00ed2
KH
60872009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6088
6089 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 6090 (load_charset_map): Remove unnecessary code.
56f00ed2 6091
4491c9d2
DR
60922009-04-30 David Reitter <david.reitter@gmail.com>
6093
35f5b128 6094 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
6095 through f24.
6096
6970f632
CY
60972009-04-30 Chong Yidong <cyd@stupidchicken.com>
6098
6099 * xfaces.c (face_at_buffer_position): New arg base_face_id.
6100
6101 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
6102 face_at_buffer_position.
6103 (face_before_or_after_it_pos, get_next_display_element)
6104 (note_mouse_highlight): Update face_at_buffer_position call.
6105
6106 * term.c (term_mouse_highlight):
6107 * msdos.c (IT_note_mouse_highlight):
6108 * fontset.c (Finternal_char_font):
35f5b128 6109 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
6110
6111 * dispextern.h (face_at_buffer_position): Update prototype.
6112
0c616f63
KH
61132009-04-30 Kenichi Handa <handa@m17n.org>
6114
35f5b128 6115 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 6116
ad3aaf33
AS
61172009-04-29 Andreas Schwab <schwab@linux-m68k.org>
6118
6119 * callproc.c (Fcall_process): Fix GC protection. Make sure
6120 current buffer is always restored.
6121
c3c963a0
YM
61222009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6123
6124 * atimer.c (init_atimer): Also clear stopped_atimers.
6125
6126 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
6127
7e3386cb
YM
6128 * process.c (create_process): Clean up merger residues of
6129 2008-07-17 change.
6130
91f68422
CY
61312009-04-29 Ulrich Mueller <ulm@gentoo.org>
6132
6133 * lread.c (Vread_circle): New variable.
6134 (read1): Disable recursive read if Vread_circle is nil.
6135
24b34550
KH
61362009-04-29 Kenichi Handa <handa@m17n.org>
6137
6138 * fontset.h (set_default_ascii_font): Delete extern.
6139
6140 * fontset.c (set_default_ascii_font): Delete this unused function.
6141
6142 * frame.c (x_set_font): When ARG is a font-object, check if the
6143 font-object matches with the ASCII font-spec of the frame's
9c358bda 6144 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 6145
77bf07e1
AS
61462009-04-28 Andreas Schwab <schwab@linux-m68k.org>
6147
6148 * fns.c (Flocale_info): Protect vector from GC during decoding.
6149
6150 * process.c (Fstart_process): Protect argv strings from GC during
6151 encoding.
6152
2c55aacf
AS
61532009-04-27 Andreas Schwab <schwab@linux-m68k.org>
6154
6155 * sysdep.c: Include <ctype.h>.
6156
b892d3c9
DR
61572009-04-27 David Reitter <david.reitter@gmail.com>
6158
35f5b128 6159 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
6160 Remove commented-out code.
6161
9d0644c4
JB
61622009-04-26 Johan Bockgård <bojohan@gnu.org>
6163
6164 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6165
b7053016
JR
61662009-04-25 Jason Rumney <jasonr@gnu.org>
6167
6168 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
6169
4e8231f3
YM
61702009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6171
6172 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
6173 Swap bytes in short integer if fringe bitmap width > 8.
6174
493dcf2c
KH
61752009-04-23 Kenichi Handa <handa@m17n.org>
6176
6177 * xfaces.c (Fx_list_fonts): If a font size is specified in
6178 PATTERN, set it in returned scalable fonts.
6179
401e9e57
CY
61802009-04-22 Chong Yidong <cyd@stupidchicken.com>
6181
708e05dc
CY
6182 * keyboard.c (Fset_input_meta_mode): Doc fix.
6183
6184 * dispnew.c (Fsend_string_to_terminal): Doc fix.
6185
1ac9108a 6186 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
6187
6188 * coding.c (Fterminal_coding_system): Doc fix.
6189
6190 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
6191 (Fx_display_pixel_height, Fx_display_planes)
6192 (Fx_display_color_cells, Fx_server_max_request_size)
6193 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6194 (Fx_display_mm_height, Fx_display_mm_width)
6195 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
6196 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
6197 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
6198 (check_x_display_info): Handle terminal objects instead of
6199 terminal ids.
6200
401e9e57
CY
6201 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
6202 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
6203 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
6204 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 6205
df80c7f0
KH
62062009-04-21 Kenichi Handa <handa@m17n.org>
6207
5a8f12af 6208 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 6209 (font_score): Check AVGWIDTH too.
908567ef 6210
df80c7f0
KH
6211 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
6212 worst case.
1ac9108a
SM
6213 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
6214 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 6215
705af33f
JR
62162009-04-19 Jason Rumney <jasonr@gnu.org>
6217
6218 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 6219 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
6220
6221 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
6222 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
6223 get_phys_cursor_geometry.
6224
b71ac3dd 6225 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
6226 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
6227 using get_phys_cursor_geometry.
6228
6229 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
6230 correctly calculated.
6231
dc2933eb
JD
62322009-04-19 Jan Djärv <jan.h.d@swipnet.se>
6233
1ac9108a
SM
6234 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
6235 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
6236 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
6237 is deprecated.
6238
973e7849
AS
62392009-04-18 Andreas Schwab <schwab@linux-m68k.org>
6240
6241 * font.c (font_put_frame_data): Use xfree instead of free.
6242
314d66f4
JB
62432009-04-17 Juanma Barranquero <lekktu@gmail.com>
6244
6245 * w32font.c (Qja, Qko): Remove declarations.
6246 (syms_of_w32font): Don't DEFSYM them.
6247
cf702558
CY
62482009-04-17 Chong Yidong <cyd@stupidchicken.com>
6249
6250 * font.c (Qja, Qko): Move definitions here from ftfont.c.
6251
6252 * font.h (Qja, Qko): Extern them.
6253
6254 * ftfont.c (Qja, Qko): Remove declarations.
6255
6256 * xfont.c (Qja, Qko): Remove declarations.
6257
b50504f5
KH
62582009-04-17 Kenichi Handa <handa@m17n.org>
6259
bde25748
KH
6260 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
6261 string from a vector to handle Latin-1 characters correctly.
6262
b50504f5
KH
6263 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
6264 entity even if the cache hits.
6265
f4646fff
AS
62662009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6267
6268 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 6269 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 6270
e7deaab0
AS
6271 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6272 * lisp.h: Adjust prototypes.
6273
0a0e7d49
CY
62742009-04-16 Chong Yidong <cyd@stupidchicken.com>
6275
6276 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6277 change (Bug#3003).
6278
3c908a57
KH
62792009-04-16 Kenichi Handa <handa@m17n.org>
6280
1ac9108a 6281 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6282
6283 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6284 adstyle.
6285
6286 * ftfont.c (Qja, Qko): Don't make them static.
6287 (enum ftfont_cache_for): New enum.
6288 (fc_charset_table): Undo the previous change.
6289 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6290 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6291 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6292 non-scarable font, try to get AVERAGE_WIDTH.
6293 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6294 Change ft_face_cache from a list of a hash-table. Don't check
6295 `ja' and `ko' adstyle here.
6296 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6297 FTFONT_CACHE_FOR_CHARET.
6298 (ftfont_get_charset): Undo the previous change.
1ac9108a 6299 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6300 (ftfont_close): Likewise.
6301 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6302
6303 * font.c (font_sort_entites): Change the meaning of the arg
6304 BEST-ONLY. Don't optimize for VEC of lenght 1.
6305 (font_select_entity): Just return the value of font_sort_entites.
6306
6307 * xfaces.c (merge_face_vectors): Reflect font properties in
6308 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6309 font_clear_prop if a face attribute doesn't change.
6310
3c908a57
KH
6311 * charset.h (charset_ksc5601): Extern it.
6312
6313 * charset.c (charset_ksc5601): New variable.
6314 (Fdefine_charset_internal): Set charset_ksc5601.
6315 (init_charset_once): Initialize charset_ksc5601 to -1.
6316
d65859c3
DN
63172009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6318
6319 * fileio.c (history_delete_duplicates): Remove unused declaration.
6320
6321 * callint.c (history_delete_duplicates): New declaration.
6322 (Fcall_interactively): Remove command history duplicates when
6323 history_delete_duplicates is true.
6324
3ba010e5
EZ
63252009-04-14 Eli Zaretskii <eliz@gnu.org>
6326
6327 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6328
06f19b91
KH
63292009-04-14 Kenichi Handa <handa@m17n.org>
6330
6331 * font.c (Ffont_info): Fix docstring. Fix the second element of
6332 the returned value (bug#2949).
6333
2cce8bfc
CY
63342009-04-14 Chong Yidong <cyd@stupidchicken.com>
6335
6336 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6337
d156542d
KH
63382009-04-14 Kenichi Handa <handa@m17n.org>
6339
6340 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6341 encoding charset is ascii_compatible.
6342
6343 * charset.c (Fdefine_charset_internal): Make charset
6344 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6345 code_offset is 0, and covers all ASCII characters.
6346
86fa089e
SM
63472009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6348
6349 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6350 (ns_string_to_pasteboard_internal):
6351 * nsmenu.m (process_dialog):
6352 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6353 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6354 * lisp.h (Fx_load_color_file): Declare.
6355
a8a3728b
KH
63562009-04-13 Kenichi Handa <handa@m17n.org>
6357
1ac9108a 6358 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6359 (font_select_entity): Suppress the code to optimize for the same
6360 kind of fonts.
6361 (font_load_for_lface): Get a font that supports at least ASCII
6362 characters.
6363
6364 * ftfont.c (Qja, Qko): New variables.
6365 (fc_charset_table): Delete uniquifier data for iso8859-1.
6366 (ftfont_get_latin1_charset): New function.
6367 (get_adstyle_property): New function.
6368 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6369 bitmap fonts.
6370 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6371 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6372 `ko' or `ja'.
6373 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6374 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6375 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6376 property.
6377 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6378 (syms_of_ftfont): DEFSYM Qja and Qko.
6379
483670b5
KH
63802009-04-09 Kenichi Handa <handa@m17n.org>
6381
12b55765
KH
6382 * charset.c (map_charset_chars): For a charset of `superset'
6383 method, fix calculation of code range.
6384
483670b5
KH
6385 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6386 from the list of extra properties.
6387 (font_clear_prop): Be sure to delete `:name' font property.
6388
57d3b93b
KH
63892009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6390
b4b2c2ca
YM
6391 * dispnew.c (redraw_overlapping_rows): Fix detection of
6392 overlapping for topmost and bottommost rows.
6393
1ac9108a 6394 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6395
472c3609
JR
63962009-04-06 Jason Rumney <jasonr@gnu.org>
6397
6398 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6399
ab193662
KH
64002009-04-06 Kenichi Handa <handa@m17n.org>
6401
6402 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6403
6404 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6405
0c26f026
KH
64062009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6407
6408 * ftfont.c (ftfont_open): Fix checking of the return value of
6409 FT_Load_Char. Fix setting font->underline_thickness.
6410
e173bbce
CY
64112009-04-04 Chong Yidong <cyd@stupidchicken.com>
6412
6413 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6414 (Fterminal_parameters, Fterminal_parameter)
6415 (Fset_terminal_parameter): In doc string, refer to terminal
6416 objects rather than terminal ids.
6417
693a2698
EZ
64182009-04-04 Eli Zaretskii <eliz@gnu.org>
6419
6420 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6421 ret_lim_data. (Bug#2867)
6422
d5221487
CY
64232009-04-03 Chong Yidong <cyd@stupidchicken.com>
6424
6425 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6426 so they don't get wider than the window, matching 2006-01-23
6427 change to the partner function in xdisp.c (Bug#2800).
6428
223509a3
KH
64292009-04-03 Kenichi Handa <handa@m17n.org>
6430
6431 * print.c (print_object): Make each lowest sub_char_table start a
6432 new line (Bug#2866).
6433
74fcd0b1
KH
64342009-04-02 Kenichi Handa <handa@m17n.org>
6435
6436 * fontset.c (fontset_font): Record no-font when a fontset
6437 explicitly tells not to try another font-specs.
6438
c542407d
SM
64392009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6440
6441 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6442
e3869731
KH
64432009-03-30 Kenichi Handa <handa@m17n.org>
6444
d8d2f142
KH
6445 * fontset.c (fontset_from_font): Specify only registry in a
6446 font-spec for all characters supported by that registry.
6447
e3869731
KH
6448 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6449 even if HAVE_M17N_FLT is not defined.
6450
5da5f805
CY
64512009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6452
6453 * ftfont.c: Conditionalize prototyping and use of
6454 ftfont_variation_glyphs.
6455
ab226c50
SM
64562009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6457
9628fed7
SM
6458 * frame.c (delete_frame): Work around compiler bug.
6459
6460 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6461 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6462 Some more EMACS_INT.
6463 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6464
6465 * xdisp.c (dump_glyph): Fix typo.
6466
ae19ba7c
SM
6467 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6468 (adjust_markers_gap_motion, adjust_markers_for_delete)
6469 (adjust_markers_for_insert, adjust_point)
6470 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6471 (make_gap, copy_text, count_size_as_multibyte, insert)
6472 (insert_and_inherit, insert_before_markers)
6473 (insert_before_markers_and_inherit, insert_1)
6474 (count_combining_before, count_combining_after, insert_1_both)
6475 (insert_from_string, insert_from_string_before_markers)
6476 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6477 (insert_from_buffer_1, adjust_after_replace)
6478 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6479 (replace_range_2, del_range, del_range_1, del_range_byte)
6480 (del_range_both, del_range_2, modify_region)
6481 (prepare_to_modify_buffer, signal_before_change)
6482 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6483 for buffer positions and sizes.
6484 * lisp.h: Adjust prototypes accordingly.
6485
6486 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6487 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6488 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6489
ab226c50
SM
6490 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6491
46dfb8fb
JD
64922009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6493
6494 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6495 lines and columns so we keep the same pixel height and width.
6496
6497 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6498 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6499 (x_handle_net_wm_state): New function to update frame parameter
6500 fullscreen.
6501 (x_term_init): Initialize atoms for _NET_WM_STATE.
6502
6503 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6504
d347e494
SM
65052009-03-27 Kevin Ryde <user42@zip.com.au>
6506
6507 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6508 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6509 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6510 (Fgpm_mouse_stop): Pass that new parameter.
6511 * termhooks.h (close_gpm): Adjust prototype.
6512
84db11d6
SM
65132009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6514
c95a5008
SM
6515 * lisp.h (Fx_focus_frame): Declare.
6516
84db11d6
SM
6517 * callint.c (Fcall_interactively): For '^' just delegate the work to
6518 handle-shift-selection.
6519 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6520
0a1958d6
CY
65212009-03-24 Chong Yidong <cyd@stupidchicken.com>
6522
0bfdff23
CY
6523 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6524
0a1958d6
CY
6525 * data.c (Qinteractive_form): New variable.
6526 (Finteractive_form): Use it.
6527
6528 * eval.c (Fcommandp): Use Qinteractive_form.
6529
58aec0d6
JR
65302009-03-24 Jason Rumney <jasonr@gnu.org>
6531
6532 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6533 Calculate total size precisely. Decode environment variables
6534 before substituting. (Bug#38)
6535
553dd618
KH
65362009-03-24 Kenichi Handa <handa@m17n.org>
6537
6538 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6539 encoding (Bug#2722).
553dd618 6540
c39ea606
JD
65412009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6542
6543 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6544 that gdpy is set.
6545
bc9b2b5e
AM
65462009-03-22 Alan Mackenzie <acm@muc.de>
6547
6548 * callint.c (Finteractive): Clarify the doc string - even
6549 promptless elements need \n separators.
6550
9f995a76
JR
65512009-03-22 Jason Rumney <jasonr@gnu.org>
6552
6553 * w32term.c (syms_of_w32term): Doc fix for
6554 x-use-underline-position-properties.
6555
22749e9a
EZ
65562009-03-21 Eli Zaretskii <eliz@gnu.org>
6557
6558 * w32.c (getpwuid): Change argument type to unsigned.
6559 (struct w32_id): Change type of `rid' member to unsigned.
6560 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6561 argument ID to unsigned. All callers changed.
6562 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6563
e00553bf
EZ
65642009-03-20 Eli Zaretskii <eliz@gnu.org>
6565
6566 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6567 negative, produce a float value.
6568
6569 * dired.c (make_uid, make_gid): New functions.
6570 (Ffile_attributes): Use them to avoid negative UID and GID.
6571
f761d6b6
JB
65722009-03-20 Juanma Barranquero <lekktu@gmail.com>
6573
6574 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6575 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6576 Fix typos in docstrings.
6577
d507f8d7
KH
65782009-03-19 Kenichi Handa <handa@m17n.org>
6579
6580 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6581 changed, use font_load_for_lface to get a new font object.
6582 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6583
6584 * frame.c (x_set_font): Handle the case that ARG is a cons.
6585
c68845e0
GM
65862009-03-19 Glenn Morris <rgm@gnu.org>
6587
6588 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6589
bfa49dd1
CY
65902009-03-19 Chong Yidong <cyd@stupidchicken.com>
6591
6592 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6593
8458d4c1
KH
65942009-03-19 Kenichi Handa <handa@m17n.org>
6595
6596 * charset.c (load_charset_map_from_file): When a mapfile can't be
6597 loaded, signal an error.
6598
78e7d1fe
EZ
65992009-03-18 Eli Zaretskii <eliz@gnu.org>
6600
6601 * dired.c (Ffile_attributes): Make sure UID and GID are always
6602 positive, even if the value is too large for a positive EMACS_INT.
6603 Doc fix.
6604
6605 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6606
5da9fdfa
YM
66072009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6608
6609 * xmenu.c (xdialog_show): Move Fredisplay call ...
6610 (Fx_popup_dialog): ... here.
6611
7519c40d
SM
66122009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6613
6614 * dired.c (file_name_completion): Disable the first optimization just
6615 installed, since it is not implemented correctly.
6616
2cd298e2
SM
66172009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6618
6619 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6620 only if the entry can affect bestmatch.
2cd298e2
SM
6621 Stop the search early, as Ftry_completion already does.
6622
48d37adf
CY
66232009-03-17 Chong Yidong <cyd@stupidchicken.com>
6624
e10c9c93 6625 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6626
9286b16a
CY
66272009-03-15 Chong Yidong <cyd@stupidchicken.com>
6628
6629 * keyboard.c (parse_menu_item): Don't display remappings as menu
6630 equivalent bindings (Bug#788).
6631
f7b146dc
JR
66322009-03-15 Jason Rumney <jasonr@gnu.org>
6633
6634 * w32term.h (WM_EMACS_PAINT): New message.
6635 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6636 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6637 before passing to lisp thread. (Bug#950)
6638
f761d6b6 66392009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6640
d93f9575
CY
6641 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6642 variable as it was never reset.
6643 (ns_term_init): Remove initialization of Lisp-settable defaults
6644 and ns_expand_space.
6645 (-setPanelFromDefaultValues): Remove ns_expand_space.
6646 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6647 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6648 i.e. no additional spacing, similar to Carbon port.
6649
d93f9575
CY
6650 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6651 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6652
305018ec
JD
66532009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6654
6655 * sound.c (alsa_configure): Remove call to deprecated
6656 snd_pcm_sw_params_set_xfer_align.
6657
f761d6b6 66582009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6659
6660 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6661 after clicking in a detached tool bar.
6662 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6663
46e722a9
SM
66642009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6665
348db3dd
SM
6666 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6667 int/Lisp_Object mixup).
46e722a9 6668
a3d16f39
KH
66692009-03-13 Kenichi Handa <handa@m17n.org>
6670
6671 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6672 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6673 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6674 (set_fontset_font): Change ARG to a vector. Handle range_list in
6675 ARG correctly.
6676 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6677 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6678 the above change.
6679 (fontset_from_font): Fix previous change.
fe24f56a 6680 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6681 entry. If FONTSET is the default fontset, don't set the extra
6682 slot of the returning char-table.
6683
b066e6b6
JB
66842009-03-12 Juanma Barranquero <lekktu@gmail.com>
6685
6686 * nsfns.m (Fx_close_connection): Doc fix.
6687 (Fns_do_applescript): Reflow docstring.
6688 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6689 (Fx_display_pixel_width, Fx_display_pixel_height)
6690 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6691 Fix typos in docstrings.
6692 (Fns_set_alpha): Fix typos in error messages.
6693
d472514e 66942009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6695
d472514e 6696 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6697 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6698 were used for such events.
6699
d472514e
JB
6700 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6701 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6702
d472514e 6703 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6704 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6705
fb930676
KH
67062009-03-11 Kenichi Handa <handa@m17n.org>
6707
ff85581a
KH
6708 * font.h (font_open_by_spec): Extern it.
6709
c50b7e98
KH
6710 * font.c (font_open_by_spec): New function.
6711 (font_open_by_name): Use font_open_by_spec.
6712
fb930676
KH
6713 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6714 fontset of the frame.
6715
6716 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6717 modify the default font of frames that use this fontset.
6718 (num_auto_fontsets): New variable.
6719 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6720 name. Be sure to set FONTSET_ASCII to the correct font name.
6721 (update_auto_fontset_alist): New function.
6722
df4e8455
JB
67232009-03-11 Juanma Barranquero <lekktu@gmail.com>
6724
6725 * makefile.w32-in: Update dependencies.
6726
0a375797
AR
67272009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6728
6729 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6730
61313fa3
SM
67312009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6732
6733 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6734
b55103fb
CY
67352009-03-10 Chong Yidong <cyd@stupidchicken.com>
6736
6737 * lread.c (Feval_buffer): Doc fix.
6738
dde2559c
KH
67392009-03-09 Kenichi Handa <handa@m17n.org>
6740
6741 * charset.c (Qfile_name_handler_alist): Extern it.
6742 (load_charset_map_from_file): Temporarily bind
6743 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6744
df4e8455 67452009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6746
47f588bb
GM
6747 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6748 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6749
4ddf94bd
AR
67502009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6751
4c9bdfc2
AR
6752 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6753 (x_set_window_size): Change back to calculated method of setting
6754 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6755 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6756 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6757
fe41ae9e
AR
6758 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6759
4c9bdfc2
AR
6760 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6761 accelerator in parens under GNUstep.
6762
825d0875
KH
67632009-03-06 Kenichi Handa <handa@m17n.org>
6764
6765 These changes are to detect incorrect composition sequence without
f3b3be74 6766 looking ahead the source. (Bug#2370)
825d0875
KH
6767
6768 * coding.h: Include "composite.h".
6769 (enum compisition_state): New enum.
6770 (struct compisition_status): New struct.
6771 (struct iso_2022_spec): New member cmp_status.
6772 (struct emacs_mule_spec): New struct.
6773 (struct coding_system): New members ctext_extended_segment_len and
6774 embedded_utf_8. Change the union member
6775 spec.emacs_mule_full_support to spec.emacs_mule.
6776
6777 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6778 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6779 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6780 (ADD_COMPOSITION_DATA): New arg nbytes.
6781 (emacs_mule_char): New arg cmp_status.
6782 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6783 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6784 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6785 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6786 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6787 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6788 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6789 (EMACS_MULE_COMPOSITION_END): New macro.
6790 (emacs_mule_finish_composition): New function.
6791 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6792 (decode_coding_emacs_mule): Avoid long looking ahead while
6793 handling composition.
6794 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6795 (ENCODE_COMPOSITION_RULE): New macro.
6796 (finish_composition): New function.
6797 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6798 (DECODE_COMPOSITION_START): New implementation.
6799 (DECODE_COMPOSITION_END): Likewise.
6800 (STORE_COMPOSITION_RULE): New macro.
6801 (decode_coding_iso_2022): Avoid long looking ahead while handling
6802 composition, CTEXT extended segment, and embedded UTF-8.
6803 (setup_coding_system): For a coding of type iso-2022, reset
6804 CODING_ISO_EXTSEGMENT_LEN (coding) and
6805 CODING_ISO_EMBEDDED_UTF_8 (coding).
6806 (get_translation): Delete arguments last_block, from_nchars,
6807 to_nchars. Callers changed.
6808 (produce_chars): Don't modify charbuf. Adjusted for the change of
6809 get_translation.
98a326f7 6810 (produce_composition): Adjust for the new annotation sequence.
825d0875 6811 (handle_composition_annotation): Likewise.
98a326f7 6812 (consume_chars): Adjust for the change of get_translation.
825d0875 6813
ccbc4452
AR
68142009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6815
4ddf94bd 6816 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6817
988a7ddb
KH
68182009-03-05 Kenichi Handa <handa@m17n.org>
6819
6820 * font.c (font_select_entity): New function.
6821 (font_find_for_lface): Use font_select_entity to select a font.
6822
6823 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6824 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6825 font with C restriction.
6826
98a326f7 68272009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6828
be1bce46 6829 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6830
10ea2b82
JR
68312009-03-04 Jason Rumney <jasonr@gnu.org>
6832
2c93b248 6833 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6834 characters that have already been read. (Bug#2569)
2c93b248 6835
10ea2b82
JR
6836 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6837 Log an error message if check_image_size failed.
6838 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6839 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6840
71a0c011
EZ
68412009-03-02 Eli Zaretskii <eliz@gnu.org>
6842
6843 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6844 when decoding process output.
6845
2f63bba8
RS
68462009-03-01 Richard M Stallman <rms@gnu.org>
6847
6848 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6849
6850 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6851
0a9564cb
EZ
68522009-02-28 Eli Zaretskii <eliz@gnu.org>
6853
6854 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6855 (decode_coding_emacs_mule, decode_coding_iso_2022)
6856 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6857 (decode_coding_raw_text, decode_coding_charset)
6858 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6859 Honor inhibit-eol-conversion. (Bug #2186)
6860
449148b3
JR
68612009-02-28 Jason Rumney <jasonr@gnu.org>
6862
6863 * coding.c (detect_coding_charset): If not checking latin extra,
6864 fail on characters between 0x80 and 0xA0. (Bug#2354)
6865
a4aee864
EZ
68662009-02-28 Eli Zaretskii <eliz@gnu.org>
6867
6868 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6869 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6870
d88bee5a
GM
68712009-02-27 Glenn Morris <rgm@gnu.org>
6872
6873 * callint.c (Finteractive): Doc fix.
6874
a808f22d
KH
68752009-02-27 Kenichi Handa <handa@m17n.org>
6876
6877 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6878
caf8d60c
CY
68792009-02-27 Chong Yidong <cyd@stupidchicken.com>
6880
6881 * font.c (font_style_to_value): Set value for unknown symbols to
6882 100 instead of 255.
b61137ea
CY
6883 (weight_table, slant_table, width_table): Treat "unspecified" as
6884 the default value.
caf8d60c 6885
1a0de25c
JB
68862009-02-26 Juanma Barranquero <lekktu@gmail.com>
6887
6888 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6889
8fc45744
JB
68902009-02-25 Juanma Barranquero <lekktu@gmail.com>
6891
107bd7d1
JB
6892 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6893 error as soon as a recursive load is detected.
8fc45744 6894
f097e223
AR
68952009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6896
6897 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6898 before caching.
6899
8810a12f
KH
69002009-02-24 Kenichi Handa <handa@m17n.org>
6901
6902 * fontset.c (fontset_find_font): Fix the condition for checking
6903 unavailable font.
6904
2c7d1565
GM
69052009-02-24 Glenn Morris <rgm@gnu.org>
6906
6907 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6908 whitespace that confuses documentation.
6909
a20878b6
MB
69102009-02-23 Miles Bader <miles@gnu.org>
6911
6912 * process.c (Flist_system_processes, Fprocess_attributes)
6913 (syms_of_process): Rename `system-process-attributes' to
6914 `process-attributes'.
6915
b3b58c01
AS
69162009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6917
1b3b981b
AS
6918 * coding.h (struct coding_system): Make safe_charsets a pointer to
6919 unsigned char.
6920 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6921 being 255.
6922 (SAFE_CHARSET_P): Likewise.
6923 (setup_iso_safe_charsets): Properly setup safe_charsets.
6924 (Fdefine_coding_system_internal): Likewise.
6925 (setup_coding_system): Likewise. Remove unneeded casts.
6926 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6927 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6928 unneeded casts.
6929
b3b58c01
AS
6930 * insdel.c (del_range_2): Don't modify gap contents when called
6931 from decode_coding_object. (Bug#1809)
6932
0b6f228c
CY
69332009-02-21 Chong Yidong <cyd@stupidchicken.com>
6934
6935 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6936 Qfont_object.
6937 (Ftype_of): Recognize font objects.
6938
6939 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6940
6941 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6942 moved to data.c.
6943
52f8870b
AR
69442009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6945
6946 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6947 async_iconified. Based on a patch by Christian Lynbech
6948 <christian.lynbech@tieto.com>.
6949 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6950
7087d5e9
GM
69512009-02-20 Glenn Morris <rgm@gnu.org>
6952
6953 * syntax.c (Fskip_chars_forward): Fix doc typo.
6954
41d2ceef
CY
69552009-02-20 Chong Yidong <cyd@stupidchicken.com>
6956
6957 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6958
1a3b7ca6
CY
69592009-02-19 Chong Yidong <cyd@stupidchicken.com>
6960
6961 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6962
73cce38d
KH
69632009-02-19 Kenichi Handa <handa@m17n.org>
6964
6965 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6966 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6967
a51092ee
DN
69682009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6969
6970 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6971
c423ecca
KH
69722009-02-18 Kenichi Handa <handa@m17n.org>
6973
6974 * font.c (font_check_otf_features): Fix handling of `nil' element.
6975 (Ffont_spec): Describe :lang and :otf in the docstring.
6976
4c1958f4
AS
69772009-02-16 Andreas Schwab <schwab@suse.de>
6978
6979 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6980 string.
6981
5704f39a
KH
69822009-02-16 Kenichi Handa <handa@m17n.org>
6983
6984 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6985 (Bug#1723)
5704f39a 6986
8f0085aa
CY
69872009-02-14 Chong Yidong <cyd@stupidchicken.com>
6988
a057d86a 6989 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6990
6991 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6992 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6993
aff01dd9
EZ
69942009-02-14 Eli Zaretskii <eliz@gnu.org>
6995
6996 * msdos.c (MAX_SCREEN_BUF): New macro.
6997 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6998 Encode the entire run of glyphs sharing the same face, instead of
6999 doing that one glyph at a time (fixes a bug with displaying
7000 double-size characters).
7001
ba301db3
AR
70022009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
7003
7004 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
7005
7006 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
7007 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 7008 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
7009
7010 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 7011 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 7012
51d861de
SM
70132009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
7014
ac146f82 7015 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
7016 invisible areas.
7017
7fed8996
JR
70182009-02-12 Jason Rumney <jasonr@gnu.org>
7019
631ea4fb
JR
7020 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
7021 (add_font_entity_to_list): Call check_face_name even when family
7022 is unspecified.
7023
cb4a3e42
JR
7024 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7025 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 7026 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 7027
7fed8996 7028 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 7029 raster fonts. (Bug#2219)
7fed8996 7030
895416e3
KH
70312009-02-12 Kenichi Handa <handa@m17n.org>
7032
7033 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
7034 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
7035 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 7036 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7037 (find_automatic_composition): While looking forward and backward,
7038 check static composition. Fix where to stop looking forward.
7039 (composition_adjust_point): Fix checking of static composition.
7040 (Fcomposition_get_gstring): Pay attention to
1dacf998 7041 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
7042
7043 * lisp.h (fast_looking_at): Extern it.
7044
7045 * search.c (fast_looking_at): New function.
7046
51d861de 7047 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
7048 <struct glyph>.u.cmp.to.
7049 (append_composite_glyph): Likewise.
7050
51d861de 7051 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
7052 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
7053 composition.
51d861de 7054 (append_composite_glyph): Adjust for the change of
895416e3
KH
7055 <strcut glyph>.u.cmp.to.
7056
8510724d
JB
70572009-02-11 Juanma Barranquero <lekktu@gmail.com>
7058
7059 * casetab.c (init_casetab_once):
7060 * coding.c (ALLOC_CONVERSION_WORK_AREA):
7061 * font.c (font_update_lface):
7062 * fontset.c (Fnew_fontset):
7063 * ftfont.c (ftfont_drive_otf):
7064 * xfont.c (xfont_open):
7065 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
7066
294fa707
SM
70672009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
7068
7069 * fileio.c (Fwrite_region): !NILP -> CONSP.
7070
b5bfebec
AS
70712009-02-10 Andreas Schwab <schwab@suse.de>
7072
7073 * process.c (send_process): Properly relocate pointer into data
adab88bd 7074 when using encoded data. (Bug#2272)
b5bfebec 7075
cb84a2be
KH
70762009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
7077
7078 * coding.c (detect_coding_charset): Fix previous change.
7079
89e09428
JR
70802009-02-08 Jason Rumney <jasonr@gnu.org>
7081
7082 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 7083 disappeared while hourglass was displayed. (Bug #2193)
89e09428 7084
4470a277
AS
70852009-02-07 Andreas Schwab <schwab@suse.de>
7086
7087 * unexelf.c (unexec): Fix error message.
7088
3175b12a
AR
70892009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
7090
7091 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 7092 when modal window is active. (Bug #2152)
3175b12a
AR
7093 (applicationShouldTerminate:): Remove now-unneeded while loop
7094 around NSRunAlertPanel.
7095
7096 * nsmenu.m (popupSession): New file-global variable.
7097 (pop_down_menu): End the popupSession before closing dialog.
7098 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
7099 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
7100 don't query NSApp for events (just sleep instead).
7101
8434d0b8
EZ
71022009-02-07 Eli Zaretskii <eliz@gnu.org>
7103
51d861de
SM
7104 * coding.c (syms_of_coding) <translation-table-for-input>:
7105 Modify doc string to discourage use for character code unification.
8434d0b8 7106
aa82edfd
CY
71072009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7108
7109 * atimer.c (run_timers): Update pending_atimers.
7110
2d283c7c
CY
71112009-02-06 Chong Yidong <cyd@stupidchicken.com>
7112
eb306cab
CY
7113 * image.c (svg_load_image): Fix last change.
7114
2d283c7c
CY
7115 * xfns.c (Fx_create_frame): Signal an error if no font is
7116 found (Bug#2147).
7117
4d8e170e
JB
71182009-02-05 Juanma Barranquero <lekktu@gmail.com>
7119
7120 * character.c (syms_of_character) <script-representative-chars>:
7121 Fix typo in docstring.
7122
c96169a0
AR
71232009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7124
7125 * nsmenu.m (pop_down_menu): New function.
7126 (ns_popup_dialog): Call it on unwind.
7127 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
7128 call timer_check() (Bug#2154).
7129 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
7130 handling_signal is set.
7131 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
7132
31fd7c5c 7133 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
7134
7135 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
7136
7137 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
7138
51d861de
SM
7139 * keyboard.c (poll_for_input_1, handle_async_input):
7140 Set handling_signal under HAVE_NS.
c96169a0 7141
aacd8ba1
GM
71422009-02-04 Glenn Morris <rgm@gnu.org>
7143
7144 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
7145
4cb75c4b
KH
71462009-02-04 Kenichi Handa <handa@m17n.org>
7147
7148 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
7149
7150 * charset.c (Fchar_charset): New optional arg restriction.
7151
7152 * coding.h (coding_system_charset_list): Extern it.
7153
7154 * coding.c (coding_system_charset_list): New function.
7155
7156 * composite.c: Include coding.h and termhooks.h.
7157 (composition_gstring_p): Fix for the terminal case.
7158 (composition_gstring_width): Likewise.
7159 (fill_gstring_body): Likewise.
7160 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
7161 the frame.
7162 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
7163 is within a composition.
867d4bb3 7164 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
7165
7166 * term.c (encode_terminal_code): Fix handling of composition.
7167 (produce_composite_glyph): For static composition, get pixel_width
7168 from struct composition.
7169
826ba17e
AS
71702009-02-02 Andreas Schwab <schwab@suse.de>
7171
7172 * unexelf.c (unexec): Handle unaligned bss offset.
7173
8ad093db
AR
71742009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7175
7176 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
7177 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 7178
8ad093db
AR
7179 * keyboard.c (handle_interrupt): Don't call
7180 quit_throw_to_read_char() under NS.
d0a76a6e 7181
8ad093db
AR
7182 * blockinput.h: Remove NS-specific code.
7183
4d18a7a2
DN
71842009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
7185
db878925
DN
7186 * dispnew.c (window_change_signal): Don't try to get the size of a
7187 suspended tty frame.
7188 * term.c (Fresume_tty): Resize if the size has changed while the
7189 tty was suspended.
7190
4d18a7a2
DN
7191 * alloc.c (mark_stack): Properly conditionalize previous change.
7192
8984df7c
JB
71932009-01-30 Juanma Barranquero <lekktu@gmail.com>
7194
7195 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
7196 * w32term.c (w32_read_socket) [SYNC_INPUT]:
7197 Remove; this code is not used on Windows.
7198
75f4f1ac
EZ
71992009-01-30 Eli Zaretskii <eliz@gnu.org>
7200
7201 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
7202 EOLs that also has stray ^M characters.
7203
07a1e794
JB
72042009-01-30 Juanma Barranquero <lekktu@gmail.com>
7205
7206 * atimer.c (run_timers, alarm_signal_handler):
7207 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
7208 * w32inevt.c (w32_console_read_socket):
7209 * w32term.c (w32_read_socket):
7210 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
7211
a8b11cc9
CY
72122009-01-30 Chong Yidong <cyd@stupidchicken.com>
7213
7214 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
7215 Initialize it as a relative filename pattern.
7216 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
7217 (Fcall_process_region): Simplify temp file creation using
7218 temporary-file-directory.
7219
c279587b
EZ
72202009-01-29 Eli Zaretskii <eliz@gnu.org>
7221
7222 * msdos.c: Rename pending_signals to msdos_pending_signals.
7223 (sig_suspender, sigprocmask): Adjust.
7224
a8fe3242
CY
72252009-01-29 Chong Yidong <cyd@stupidchicken.com>
7226
7227 * keyboard.c (pending_signals): New var.
7228 (poll_for_input, input_available_signal, init_keyboard): Set it.
7229 (process_pending_signals): New function.
7230
7231 * lisp.h (QUIT): Check pending_signals instead of
7232 interrupt_input_pending. Use process_pending_signals.
7233
51d861de 7234 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 7235
51d861de 7236 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
7237
7238 * sysdep.c (emacs_write): Use process_pending_signals.
7239
7240 * xterm.c (XTread_socket): Update pending_signals.
7241
7242 * w32term.c (w32_read_socket): Update pending_signals.
7243
7244 * w32inevt.c (w32_console_read_socket): Update pending_signals.
7245
6570a1c4
KH
72462009-01-29 Kenichi Handa <handa@m17n.org>
7247
7248 * xftfont.c (xftfont_has_char): New function.
7249 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
7250
d72a4afa
AR
72512009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7252
7253 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
7254 under GNUstep.
7255 (ns_query_color): New declaration.
7256
7257 * nsterm.m (ns_confirm_quit): New variable.
7258 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
7259 (EmacsApp-applicationShouldTerminate:): Use it.
7260 (EmacsPrefsController): Let user set it.
7261 (ns_query_color): New function.
7262 (ns_defined_color): Use it.
7263 (ns_initialize): Drop.
7264 (ns_term_init): Add two lines from ns_initialize(), and set
7265 input_interrupt_mode to nil.
7266
7267 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 7268 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 7269
9fe78804
KH
72702009-01-28 Kenichi Handa <handa@m17n.org>
7271
7272 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
7273 (fontset_get_font_group): Remember that no font-group is specified
7274 for C.
9fe78804 7275
fa57de36
CY
72762009-01-27 Chong Yidong <cyd@stupidchicken.com>
7277
930600e9
CY
7278 * fns.c (concat): Check for string overflow (bug#1787).
7279
fa57de36
CY
7280 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7281 Quadruple undo limits (bug#1501).
7282
7179ce7b
KH
72832009-01-27 Kenichi Handa <handa@m17n.org>
7284
7285 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7286 directly use GT_Get_Char_index.
7287
7288 * xftfont.c (struct xftfont_info): New member `index'.
7289
7290 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7291 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7292
5be8fcc0
CY
72932009-01-26 Kenichi Handa <handa@m17n.org>
7294
7295 * fontset.c (fontset_find_font): Fix handling of non-cons return
7296 value of fontset_get_font_group.
7297 (fontset_font): Revert last change.
7298
19ae3e61
JR
72992009-01-26 Jason Rumney <jasonr@gnu.org>
7300
7301 * w32font.c (w32font_list_internal): Return quickly if registry is
7302 unknown. Simplify final return.
7303 (add_font_entity_to_list): Break complex logic down into more
7304 manageable chunks. Move unknown registry check to
7305 w32font_list_internal.
7306
8612b71a
AR
73072009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7308
7309 Changes to remove Feval calls from GUI under NS.
7310
d8038940
JB
7311 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7312 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7313 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7314
7315 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7316 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7317 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7318 instead of NON_ASCII_KEYSTROKE_EVENT.
7319 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7320 (EmacsApp-applicationShouldTerminate:): Query user.
7321 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7322 instead of Feval.
7323
7324 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7325
7326 * keyboard.c (kbd_buffer_get_event): Check for it.
7327 (keys_of_keyboard): Define lispy keys for
7328 ns-put/unput-working-text.
7329
7330 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7331 versions.
7332 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7333
6288ae55
CY
73342009-01-25 Chong Yidong <cyd@stupidchicken.com>
7335
7336 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7337 setting current_buffer directly. (Bug#2044)
6288ae55 7338
289e7f8f
CY
73392009-01-24 Chong Yidong <cyd@stupidchicken.com>
7340
5ce87308 7341 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7342 any work. (Bug#1952, bug#1990).
5ce87308 7343
64cc3cf6 7344 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7345
b3243e6f
AR
73462009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7347
7348 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7349 (ns_no_defaults): New declaration.
7350 (main): Use it.
e0d2e69a 7351
d900b2af 7352 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7353
d900b2af 7354 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7355
d900b2af
AR
7356 * nsterm.m (ns_no_defaults): New variable.
7357 (ns_initialize): Don't read defaults when ns_no_defaults.
7358 (EmacsView-readSelectionFromPasteboard:)
7359 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7360 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7361 (ns_dumpglyphs_stretch): New function.
7362 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7363 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7364
e0d2e69a
AR
7365 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7366
3ac71f5d
CY
73672009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7368
7369 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7370 call for Sparc64.
7371
3fe53a83
AR
73722009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7373
7374 * nsfns.m:
7375 * nsgui.h:
7376 * nsmenu.m:
7377 * nsselect.m:
7378 * nsterm.h:
7379 * nsterm.m: Remove '23' comments that indicated code added during
7380 update from emacs-20 -> emacs-23.
7381
10f87c6f 73822009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7383
7384 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7385 ns_alternate_modifier. (Bug#1217)
a3b53a85 7386
c7cef62d
AR
7387 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7388 Display all shortcuts, including those w/o super modifier.
7389
575fb8bd
AR
7390 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7391
918b848b
CY
73922009-01-22 Chong Yidong <cyd@stupidchicken.com>
7393
7394 * fileio.c (Vwrite_region_post_annotation_function)
7395 (Vwrite_region_annotation_buffers): New vars.
7396 (build_annotations_unwind): Just reset
7397 Vwrite_region_annotation_buffers.
7398 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7399 Call write-region-post-annotation-function.
7400 (build_annotations): Add to Vwrite_region_annotation_buffers if
7401 buffer changes.
7402
a39e2539
AR
74032009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7404
7405 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7406 Tiger.
51d861de
SM
7407 * nsfns.m (ns_do_applescript):
7408 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7409
35ed44db
AR
74102009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7411
7412 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7413
cbe0b5bf
AR
74142009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7415
7416 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7417
6049d3a0
AR
7418 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7419
7420 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7421 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7422 handle Ctrl-tab. (Bug#1841)
7423 (ns_get_color): Use unsigned long long for scanned hex string value.
7424 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7425 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7426 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7427 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7428 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7429 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7430 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7431
d3810c21 7432 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7433 DPI. (Bug#1316)
d3810c21
AR
7434 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7435 values in onTiger section.
4c7077c3 7436
e301e634
CY
74372009-01-19 Chong Yidong <cyd@stupidchicken.com>
7438
7f82490b
CY
7439 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7440 Check return value of font_spec_from_name.
64cc3cf6 7441 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7442
7443 * font.c (font_spec_from_name): Return Qnil if font name could not
7444 be parsed.
7445 (font_parse_name): Treat a `?' character as part of an XLFD.
7446
e301e634
CY
7447 * fns.c (Fsubstring): Doc fix.
7448
1c0db158
KH
74492009-01-19 Kenichi Handa <handa@m17n.org>
7450
51d861de 7451 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7452 (ftfont_list): Likewise.
7453
acf20901
JB
74542009-01-18 Juanma Barranquero <lekktu@gmail.com>
7455
fff4e459
JB
7456 * dbusbind.c (Fdbus_register_signal):
7457 * process.c (conv_sockaddr_to_lisp):
7458 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7459
acf20901
JB
7460 * callproc.c (Fgetenv_internal): Doc fix.
7461
e7abcdfb
CY
74622009-01-16 Chong Yidong <cyd@stupidchicken.com>
7463
7464 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7465 it is not even used.
7466
b60861e6
GM
74672009-01-16 Glenn Morris <rgm@gnu.org>
7468
7469 * font.c (Ffont_variation_glyphs): Silence compiler.
7470
8db52afe
JB
74712009-01-15 Juanma Barranquero <lekktu@gmail.com>
7472
7473 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7474 Reported by David Robinow <drobinow@gmail.com>.
7475
4cddb209
KH
74762009-01-15 Kenichi Handa <handa@m17n.org>
7477
51d861de 7478 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7479
f247f67b
JR
74802009-01-14 Jason Rumney <jasonr@gnu.org>
7481
7482 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7483 never a fontset. (Bug#1562)
f247f67b 7484
f56a4450
KH
74852009-01-14 Kenichi Handa <handa@m17n.org>
7486
7487 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7488 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7489
4e99855e
CY
74902009-01-13 Chong Yidong <cyd@stupidchicken.com>
7491
7492 * font.c (font_clear_prop): If clearing the family, clear the font
7493 width index too.
7494
fff4e459 7495 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7496
24f01470
JB
74972009-01-12 Juanma Barranquero <lekktu@gmail.com>
7498
7499 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7500 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7501 functions, use sizeof.
7502
a41240a3
MR
75032009-01-12 Martin Rudalics <rudalics@gmx.at>
7504
7505 * keyboard.c (read_char): Fix case where last_nonmenu_event
7506 returned a bad value with submenus. (Bug#447)
7507
944636b8
CY
75082009-01-12 Chong Yidong <cyd@stupidchicken.com>
7509
7510 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7511 family, clear the font width index too.
7512
0dad7c6f
JR
75132009-01-11 Jason Rumney <jasonr@gnu.org>
7514
7515 * keyboard.c (cmd_error_internal): Exit when errors occur before
7516 frame creation and not in daemon mode. (Bug#1836)
7517
7c2363af
CY
75182009-01-10 Chong Yidong <cyd@stupidchicken.com>
7519
7520 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7521 of a display vector, backtrack.
7522 (try_window_reusing_current_matrix): Check glyph type before
7523 referencing charpos member.
7524
97b1b294
EZ
75252009-01-10 Eli Zaretskii <eliz@gnu.org>
7526
7527 Fix Bug #876:
7528
7529 * coding.c (inhibit_null_byte_detection): New variable.
7530 (detect_coding, detect_coding_system): Don't pay attention to null
7531 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7532 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7533 <inhibit-iso-escape-detection>: Doc fix.
7534
4624b6e3
JR
75352009-01-09 Jason Rumney <jasonr@gnu.org>
7536
7537 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7538 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7539 Only report Unicode Plane 2 fonts as unicode-sip.
7540
323b840c
CY
75412009-01-09 Chong Yidong <cyd@stupidchicken.com>
7542
51d861de
SM
7543 * xfaces.c (Fx_font_family_list): Delete function.
7544 Move compatibility version to faces.el.
323b840c 7545
51d861de 7546 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7547
eba7400d
MR
75482009-01-09 Martin Rudalics <rudalics@gmx.at>
7549
7550 * frame.c (x_set_frame_parameters): Remember requested value for
7551 fullscreen before it's reset by the parameter handler.
7552
4b09796d
GM
75532009-01-09 Glenn Morris <rgm@gnu.org>
7554
7555 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7556 (last_command_event): ... and update all users.
4b09796d
GM
7557 (last_input_char): For clarity, rename to...
7558 (last_input_event): ... and update all users.
7559 (last-command-char, last-input-char): Move to subr.el as aliases.
7560 * cmds.c, commands.h: Update for last_command_char rename.
7561
14ccea62
CY
75622009-01-08 Chong Yidong <cyd@stupidchicken.com>
7563
51d861de 7564 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7565
5f004711
JR
75662009-01-08 Jason Rumney <jasonr@gnu.org>
7567
7568 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7569 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7570 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7571 Don't declare.
fff4e459 7572 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7573 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7574
b71f6f73
KH
75752009-01-07 Kenichi Handa <handa@m17n.org>
7576
50b06221 7577 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7578 remember the coding system used for decoding in
50b06221
KH
7579 coding_system (Bug#1039).
7580
b71f6f73 7581 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7582 breaking the loop. (Bug#870)
b71f6f73
KH
7583 (decode_coding_utf_16, decode_coding_emacs_mule)
7584 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7585 (decode_coding_charset): Likewise.
7586
56f668f7
MR
75872009-01-05 Martin Rudalics <rudalics@gmx.at>
7588
7589 * frame.c (x_set_frame_parameters): Make sure height (width) get
7590 applied when fullwidth (fullheight) is set. (Bug#1522)
7591
5da9424d
JB
75922009-01-04 Juanma Barranquero <lekktu@gmail.com>
7593
7594 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7595 (utc_base): Declare as ULONGLONG, not long double.
7596 (convert_time_raw): Delete.
7597 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7598 (initialize_utc_base): New function.
7599 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7600 (convert_from_time_t): Use initialize_utc_base; compute result with
7601 64-bit arithmetic.
7602 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7603
c4605e09
EZ
76042009-01-03 Eli Zaretskii <eliz@gnu.org>
7605
9acef61c 7606 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7607 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7608 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7609 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7610 [!subprocesses]: Define.
7611 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7612 (Flist_system_processes, Fsystem_process_attributes)
7613 [!subprocesses]: Call list_system_processes and
7614 system_process_attributes instead of returning Qnil.
7615
9acef61c
JB
7616 * dosfns.c (system_process_attributes, list_system_processes):
7617 New functions.
c4605e09
EZ
7618
7619 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7620
7621 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7622 Don't use the default (no-op) implementation.
7623
8b7d0a16
JR
76242009-01-03 Jason Rumney <jasonr@gnu.org>
7625
a6d46bc1
JR
7626 * keyboard.c (parse_modifiers_uncached): Wheel events are
7627 clicks (bug#687).
7628
8b7d0a16
JR
7629 * w32term.c (x_query_colors, x_query_color): New functions.
7630
7631 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7632 (svg_load_image): Cast returned pointers from dynamically loaded
7633 functions. Eliminate W32 specific code.
7634
bfe11752
DN
76352009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7636
89e2438a
DN
7637 * nsfns.m (x_set_foreground_color, x_set_background_color)
7638 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7639 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7640 x_ prefix instead of ns_. Update references.
7641 (syms_of_nsfns): Add a FIXME comment.
7642
7643 * nsterm.m (x_set_cursor_type): New prototype.
7644 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7645
bfe11752
DN
7646 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7647 for Solaris instead of incorrectly providing Qutime and Qcutime.
7648
031da700
EZ
76492009-01-02 Eli Zaretskii <eliz@gnu.org>
7650
7651 * w32.c (process_times): Compute sum of utime and stime.
7652 (system_process_attributes): Add Qtime to the alist.
7653
7654 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7655 and add them to the alist.
7656
7657 * process.c (top level) <Qtime, Qctime>: New variables.
7658 (syms_of_process): staticpro them.
7659 (Fsystem_process_attributes): Add their documentation to the doc
7660 string.
7661
7662 * process.h: Declare Qtime and Qctime.
7663
df23bf08
JR
76642009-01-02 Jason Rumney <jasonr@gnu.org>
7665
9acef61c 7666 * image.c (Qgobject): New symbol.
df23bf08
JR
7667 (syms_of_image): Initialize it.
7668 (init_svg_functions): Load some functions from gobject library.
7669
5bbdf7aa
DN
76702009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7671
7672 * frame.c (make_terminal_frame): Remove redundant code and useless
7673 block.
7674
63136da6
AS
76752009-01-01 Andreas Schwab <schwab@suse.de>
7676
7677 * process.c (conv_sockaddr_to_lisp): Add workaround for
7678 getsockname bug on BSD.
7679
9ef69046
CY
76802009-01-01 Chong Yidong <cyd@stupidchicken.com>
7681
d6fafbe0
CY
7682 * xfns.c (x_create_tip_frame): Set border width of the X window.
7683
51d861de 7684 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7685
f9c34147
JR
76862009-01-01 Jason Rumney <jasonr@gnu.org>
7687
9acef61c 7688 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7689 Don't block input, as per earlier xterm.c changes.
7690
f5497e45
AR
76912008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7692
7693 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7694 (ns_appkit_version_int): New function.
7695 (x-server-version): Use ns_appkit_version_int and follow 21+
7696 convention of returning 3 integers.
7697
c19cab20
KH
76982008-12-30 Kenichi Handa <handa@m17n.org>
7699
7700 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7701 (CHAR_SURROGATE_PAIR_P): New macro.
7702
7703 * font.h (struct font_driver): New member get_variation_glyphs.
7704
9acef61c 7705 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7706 (Ffont_variation_glyphs): New function.
7707 (syms_of_font): Defsubr it.
7708
7709 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7710 ftfont_variation_glyphs.
7711 (setup_otf_gstring): New function.
7712 (ftfont_drive_otf): Use it.
7713 (ftfont_shape_by_flt): Handle variation selector.
7714 (ftfont_variation_glyphs): New function.
7715
28cd591f
MR
77162008-12-30 Martin Rudalics <rudalics@gmx.at>
7717
7718 * frame.c (Vemacs_iconified): Remove.
7719
7f714baf
JR
77202008-12-30 Jason Rumney <jasonr@gnu.org>
7721
7722 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7723 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7724
9d2d22ab
CY
77252008-12-30 Chong Yidong <cyd@stupidchicken.com>
7726
7727 * indent.c (Fvertical_motion): Don't advance iterator if we have
7728 reseated to the desired position.
7729
7730 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7731 checking for pos match.
7732
545312c2
KH
77332008-12-30 Kenichi Handa <handa@m17n.org>
7734
1ede3eb6
KH
7735 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7736 just get the low 8-bit of the code.
7737
545312c2
KH
7738 * font.c (font_intern_prop): Validate str as multibyte.
7739
bd7bbf29
DN
77402008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7741
31e0750e
DN
7742 * dispextern.h (struct face): Move lface and hash from the middle
7743 of bitfields.
7744
bd7bbf29
DN
7745 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7746
b5672e7c
DN
77472008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7748
7749 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7750 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7751 instead of intervals.h.
7752
d704470f
AS
77532008-12-26 Andreas Schwab <schwab@suse.de>
7754
7755 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7756 cons.
7757
54b33868
MR
77582008-12-26 Martin Rudalics <rudalics@gmx.at>
7759
7760 * textprop.c (Qminibuffer_prompt): New variable.
7761 (syms_of_textprop): Initialize it.
7762 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7763 in minibuffer-prompt face. (Bug#1662)
7764
40b615d6
JR
77652008-12-25 Jason Rumney <jasonr@gnu.org>
7766
7767 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7768
baae5c2d
JR
77692008-12-24 Jason Rumney <jasonr@gnu.org>
7770
7771 * ralloc.c (r_alloc_reset_variable): New function.
7772
7773 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7774 record of what points where. (Bug#716)
baae5c2d 7775
a9051c88
DN
77762008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7777
7778 * minibuf.c (read_minibuf): Follow the non-interactive case when
7779 running as a daemon, before detaching.
7780
8b146312
AS
77812008-12-22 Andreas Schwab <schwab@suse.de>
7782
7783 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7784 * gtkutil.c (free_widget_value): Use xfree instead of free.
7785
56f2de10
MR
77862008-12-22 Martin Rudalics <rudalics@gmx.at>
7787
7788 * frame.c (delete_frame): New function derived from
7789 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7790 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7791 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7792 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7793 * frame.h: Extern delete_frame.
7794 * window.c (window_loop):
7795 * terminal.c (delete_terminal):
7796 * xterm.c (x_connection_closed):
7797 * xfns.c (Fx_hide_tip):
9acef61c 7798 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7799
1fc200d6
JR
78002008-12-21 Jason Rumney <jasonr@gnu.org>
7801
7802 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7803 when character maps to .notdef character.
7804
5e252df2
SM
78052008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7806
7807 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7808
99b72cc4
JR
78092008-12-20 Jason Rumney <jasonr@gnu.org>
7810
7811 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7812 a graphical frame on Windows. (Bug#1325)
99b72cc4 7813
acc49a52
JD
78142008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7815
7816 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7817
6ea15123
CY
78182008-12-20 Chong Yidong <cyd@stupidchicken.com>
7819
7820 * minibuf.c (Fread_buffer): Doc fix.
7821
b2dab6c8
JR
78222008-12-20 Jason Rumney <jasonr@gnu.org>
7823
54ea0c87 7824 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7825 server name in UNC paths. (Bug#719)
54ea0c87 7826
b2dab6c8 7827 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7828 charbuf. (Bug#1035)
b2dab6c8 7829
6d1921be
DN
78302008-12-19 Daniel Engeler <engeler@gmail.com>
7831
7832 * sysdep.c (serial_configure): Fix typo.
7833
53934c98
DN
78342008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7835
7836 * sysdep.c: Include alloca.h.
f4f634e8
DN
7837 (system_process_attributes): Add implementation for Solaris.
7838
7839 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7840
06e111a6
DN
78412008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7842
7843 Reorganize implementation of Flist_system_processes and
7844 Fsystem_process_attributes. No functional changes.
7845 * process.c: Don't #include pwd.h, grp.h and limits.h.
7846 (Flist_system_processes): Just call list_system_processes.
7847 (Fsystem_process_attributes): Just call system_process_attributes.
7848 (procfs_list_system_processes, time_from_jiffies)
7849 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7850 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7851
7852 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7853 (list_system_processes): Rename from
7854 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7855 Provide a do nothing implementation.
7856 (system_process_attributes): Rename from
7857 procfs_list_system_processes.
7858 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7859 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7860
7861 * w32.c (list_system_processes): Rename from
7862 w32_list_system_processes.
7863 (system_process_attributes): Rename from
7864 w32_system_process_attributes.
7865
7866 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7867
7868 * process.h (w32_list_system_processes)
7869 (w32_system_process_attributes): Remove.
362654a6
JB
7870 (list_system_processes, system_process_attributes):
7871 New prototypes.
06e111a6 7872
6a705b23
KH
78732008-12-19 Kenichi Handa <handa@m17n.org>
7874
7875 * xfont.c (xfont_decode_coding_xlfd): New function.
7876 (xfont_encode_coding_xlfd): New function.
7877 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7878 (xfont_list): Decode and encode XLFD by iso-8859-1.
7879 (xfont_match): Likewise.
7880 (xfont_list_family): Likewise.
7881 (xfont_open): Likewise.
7882
d66c0241 7883 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7884 names are utf-8.
7885
d66c0241 7886 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7887 names are utf-8.
7888
5a130941
JD
78892008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7890
7891 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7892 changed.
bfd20325
JD
7893 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7894 clicked on a detached tool bar button.
5a130941 7895
fd95644b
DN
78962008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7897
7898 * emacs.c (main): Print and error and exit when no data is read
7899 from the pipe.
7900
e6eee6ae
JR
79012008-12-17 Jason Rumney <jasonr@gnu.org>
7902
7903 * w32font.c (w32font_has_char): Always return -1.
7904
a35dd56b
KH
79052008-12-16 Kenichi Handa <handa@m17n.org>
7906
7907 * font.c (font_open_entity): Fix previous change.
7908
0e3635c2
DN
79092008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7910
7911 * process.c: Include <limits.h>.
7912
d4835507 79132008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7914
7915 * font.c (font_update_drivers): Fix mistake in reconstructing the
7916 driver list.
7917
79182008-12-16 Chong Yidong <cyd@stupidchicken.com>
7919
7920 * font.c (font_clear_cache): Fix format of font cache data.
7921
e2cbc401
CY
79222008-12-15 Chong Yidong <cyd@stupidchicken.com>
7923
7924 * xftfont.c (xftfont_open): Free Xft font pattern if
7925 XftFontOpenPattern fails.
7926
7927 * xterm.c (x_free_frame_resources): Remove extraneous call to
7928 free_frame_faces.
7929
b131d535
CY
79302008-12-13 Chong Yidong <cyd@stupidchicken.com>
7931
7932 * xterm.c (x_delete_display): Move xim_close_dpy call to
7933 x_delete_terminal.
7934 (x_delete_terminal): Call xim_close_dpy.
7935
e6df5336
JR
79362008-12-13 Jason Rumney <jasonr@gnu.org>
7937
7938 * w32font.c (intern_font_name): New function.
7939 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7940 (w32font_open_internal, Fx_select_font): Decode font name.
7941 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7942
7943 * w32font.h (intern_font_name): Declare new function.
7944
7945 * w32uniscribe.c (add_opentype_font_name_to_list):
7946 Use intern_font_name.
7947
20d68145
CY
79482008-12-13 Chong Yidong <cyd@stupidchicken.com>
7949
9f2554de
CY
7950 * frame.c (Fdelete_frame): Call free_font_driver_list.
7951
3d9bec9a
CY
7952 * font.c (free_font_driver_list): Implement missing function.
7953
20d68145
CY
7954 * w32term.c (w32_term_init): Don't initialize the image cache
7955 here; it will be done in init_frame_faces.
7956
7957 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7958 (struct x_display_info): Remove unused member null_pixel. New
7959 member xim_callback_data.
7960
7961 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7962 (xim_initialize): Save pointer to callback function data.
7963 (xim_close_dpy): Free callback function data. Call XCloseIM,
7964 reverting 2008-11-04 change by David Smith.
7965 (x_term_init): Don't initialize the image cache here; it will be
7966 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7967 (x_delete_display): Free x_dnd_atoms member.
7968
96f9306b
KH
79692008-12-13 Kenichi Handa <handa@m17n.org>
7970
6dec9044
JB
7971 * font.c (font_rescale_ratio): Moved from xfaces.c.
7972 Argument type changed. Handle a font-spec too.
96f9306b 7973 (font_score): Check Vface_font_rescale_alist.
6dec9044 7974 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7975
7976 * xfaces.c (font_rescale_ratio): Moved to font.c.
7977
8d5b4964
CY
79782008-12-13 Chong Yidong <cyd@stupidchicken.com>
7979
7980 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7981
e6df5336
JR
79822008-12-12 Jason Rumney <jasonr@gnu.org>
7983
7984 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7985 Vwindow_system_version to the real w32 major version.
7986
97c6058a
DN
79872008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7988
7989 * term.c (init_tty): Move setting the terminal name before the
7990 potential user: maybe_fatal.
7991
ec4e88d7
CY
79922008-12-11 Chong Yidong <cyd@stupidchicken.com>
7993
d4835507
JB
7994 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7995 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7996
b4233ec9
JR
79972008-12-11 Jason Rumney <jasonr@gnu.org>
7998
8ec71e23 7999 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 8000 SYMBOL_CHARSET. (Bug#547)
8ec71e23 8001
b4233ec9 8002 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 8003 size for surrogates. (Bug#1096, bug#872)
b4233ec9 8004
011a0143
JB
80052008-12-11 Juanma Barranquero <lekktu@gmail.com>
8006
8007 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
8008
3c309f34
JB
80092008-12-11 Juanma Barranquero <lekktu@gmail.com>
8010
8011 * process.c (Fsystem_process_attributes, syms_of_process):
8012 Fix typo in name of Ssystem_process_attributes.
8013 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
8014
fedc6ab5
JB
80152008-12-11 Juanma Barranquero <lekktu@gmail.com>
8016
8017 * syntax.c (Fmodify_syntax_entry): Doc fix.
8018
ba3de0e8
JB
80192008-12-10 Juanma Barranquero <lekktu@gmail.com>
8020
8021 * font.c (Ffont_spec): Move usage to end of docstring.
8022
174f1c74
JR
80232008-12-10 Jason Rumney <jasonr@gnu.org>
8024
8025 * w32font.c (Qcham): New symbol.
8026 (font_supported_scripts): Add cham, and comments for other new
8027 scripts in bitfield from OpenType spec.
9d32f818
JR
8028 (add_font_entity_to_list): Limit unicode-sip fonts to those that
8029 contain characters beyond the bmp.
174f1c74 8030
7b649478
KH
80312008-12-10 Kenichi Handa <handa@m17n.org>
8032
8033 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 8034 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
8035 Qunicode_sip.
8036
2133e2d1
JB
80372008-12-10 Juanma Barranquero <lekktu@gmail.com>
8038
8039 * coding.c (QCdefault_char): Rename from QCdefalut_char.
8040 (Fcoding_system_put): Use QCdefault_char.
8041 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
8042
9af886ee
CY
80432008-12-09 Chong Yidong <cyd@stupidchicken.com>
8044
74d819eb
CY
8045 * xftfont.c (syms_of_xftfont): Fix typo.
8046
4ccfa1c0 8047 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 8048
7c19d3ae
DN
80492008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
8050
8051 * emacs.c (main): Close daemon_pipe on exec.
8052
567826bb
CY
80532008-12-08 Chong Yidong <cyd@stupidchicken.com>
8054
8055 * termchar.h (struct tty): New members termcap_term_buffer and
8056 termcap_strings_buffer.
8057
8058 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 8059 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
8060 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
8061 All callers changed.
8062 (init_tty): Store termcap data and string buffers in new struct
8063 tty members termcap_term_buffer and termcap_strings_buffer.
8064 (delete_tty): Free them.
4ccfa1c0 8065 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 8066
aa96c42b
SZ
80672008-12-07 Seiji Zenitani <zenitani@mac.com>
8068
8069 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 8070 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 8071
b7e1d896
CY
80722008-12-06 Chong Yidong <cyd@stupidchicken.com>
8073
8074 * coding.c (make_conversion_work_buffer): Disable buffer
8075 modification hooks in the work buffer.
8076
b5ec91a5
EZ
80772008-12-05 Eli Zaretskii <eliz@gnu.org>
8078
8079 * process.c (procfs_system_process_attributes): If `nread' has a
8080 negative value, assign zero to it.
8081
a5d2a52b
CY
80822008-12-05 Chong Yidong <cyd@stupidchicken.com>
8083
68c5540b 8084 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 8085
7bf1bb21
KH
80862008-12-05 Kenichi Handa <handa@m17n.org>
8087
8088 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
8089 second character is a combining character.
8090
2fdc7d00
EZ
80912008-12-05 Eli Zaretskii <eliz@gnu.org>
8092
8093 * process.c (procfs_system_process_attributes): Don't use cmd,
8094 cmdsize, and q without initializing them first.
8095
bf6bfba8
JR
80962008-12-04 Jason Rumney <jasonr@gnu.org>
8097
8098 * w32font.c (w32font_draw): Initialize orig_clip before getting
8099 it, and delete it when finished.
8100
a3b1a468
DN
81012008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
8102
8103 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
8104 case when running as a daemon before detaching.
8105
8b8be8eb
JB
81062008-12-03 Juanma Barranquero <lekktu@gmail.com>
8107
805f2638 8108 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 8109
b1bde622
KH
81102008-12-03 Kenichi Handa <handa@m17n.org>
8111
e500c47d
KH
8112 * font.c (font_at): Set `multibyte' at first.
8113
ca516334
KH
8114 * coding.c (decode_coding_charset): Check type of an element of
8115 vector VALIDS.
7bf1bb21 8116 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 8117
4ccfa1c0 8118 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
8119 (font_for_char): Likewise.
8120
1e5ecd37
CY
81212008-12-03 Chong Yidong <cyd@stupidchicken.com>
8122
d5b01609 8123 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
8124 (font_update_lface): Handle fonts with corrupted size specs,
8125 i.e. non-int and non-float.
d5b01609 8126
11e3a6e4 8127 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 8128 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 8129 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 8130
ab06788b
CY
8131 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
8132
1e5ecd37 8133 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 8134 underline_minimum_offset for underline position.
1e5ecd37 8135
63c125ab
DN
81362008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
8137
8138 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
8139
8140 * character.c (c_string_width): Specify the type for LEN.
8141
3a8406e1
KH
81422008-12-03 Kenichi Handa <handa@m17n.org>
8143
4ccfa1c0 8144 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 8145 (decode_coding_utf_8): Likewise.
4ccfa1c0 8146 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 8147 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 8148
651df7d9
CY
81492008-12-02 Chong Yidong <cyd@stupidchicken.com>
8150
8151 * keyboard.c (make_lispy_position): Only use PT if the selected
8152 window is current.
8153
1f625c6c
AS
81542008-12-02 Andreas Schwab <schwab@suse.de>
8155
f7741ce9
AS
8156 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
8157
1f625c6c
AS
8158 * doprnt.c (doprnt1): Fix size of charbuf.
8159
92bc2678
CY
81602008-12-02 Chong Yidong <cyd@stupidchicken.com>
8161
8162 * keyboard.c (timer_check): Revert last change.
8163
93b9e8cc
JB
81642008-12-02 Juanma Barranquero <lekktu@gmail.com>
8165
8166 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
8167
fd7a37d5
JB
81682008-12-01 Juanma Barranquero <lekktu@gmail.com>
8169
8170 * makefile.w32-in: Update dependencies.
8171 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
8172
c115043b
AS
81732008-12-01 Andreas Schwab <schwab@suse.de>
8174
8175 * font.c (register_font_driver): Use xmalloc.
8176 (font_put_frame_data): Likewise.
8177
f5668d2a
CY
81782008-12-01 Chong Yidong <cyd@stupidchicken.com>
8179
860d96be
CY
8180 * xfaces.c (realize_x_face): Make abort condition clearer.
8181
f5668d2a
CY
8182 * gtkutil.c (update_frame_tool_bar): Initialize variable.
8183
379c17e7
CY
81842008-11-30 Chong Yidong <cyd@stupidchicken.com>
8185
8186 * keyboard.c (timer_check): After a timer runs, ensure that the
8187 selected window's buffer is current.
8188
35f36d65
JB
81892008-11-30 Juanma Barranquero <lekktu@gmail.com>
8190
f952c61c
JB
8191 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
8192 It was accidentally restored by the Unicode merge.
8193
35f36d65
JB
8194 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
8195
b23077df
JB
81962008-11-29 Juanma Barranquero <lekktu@gmail.com>
8197
8198 * w32proc.c: Include "coding.h".
8199 (Fw32_short_file_name): Encode filename passed to Windows API.
8200 (Fw32_long_file_name): Encode filename passed to Windows API and
8201 decode back the result. (Bug#1433)
8202
b8ebe9dd
KH
82032008-11-29 Kenichi Handa <handa@m17n.org>
8204
8cc53f96
KH
8205 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
8206 not before accessing it.
8207
b8ebe9dd
KH
8208 * charset.c (Fdefine_charset_internal): After calculating
8209 min_char, max_char, and fastmap, copy the charset structure again.
8210 (encode_char): Fix the previous change.
8211
59bc82c0
SZ
82122008-11-28 Seiji Zenitani <zenitani@mac.com>
8213
8214 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
8215
8216 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
8217
8218 * nsterm.m (x_set_frame_alpha): New function.
8219
32247e3d
EZ
82202008-11-27 Eli Zaretskii <eliz@gnu.org>
8221
8222 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
8223
b003e5ff
JB
82242008-11-27 Juanma Barranquero <lekktu@gmail.com>
8225
8226 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
8227 pointer to check_face_name.
8228
708550f5
KH
82292008-11-27 Kenichi Handa <handa@m17n.org>
8230
8231 * category.h (SET_CATEGORY_SET): Call set_category_set.
8232 (set_category_set): Extern it.
8233
8234 * category.c (hash_get_category_set): New function.
8235 (Fmodify_category_entry): Adjusted for the change of
8236 char_table_ref_and_range. Call hash_get_category_set to get a
8237 category set to store in the table.
8238
8239 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
8240 Funify_charset.
8241
2ae37cf0 8242 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
8243 (DECODE_CHAR): Check if the decoder vector is ready.
8244 (ENCODE_CHAR): Check if the encoder char-table is ready.
8245 (maybe_unify_char): Extern it.
8246
8247 * charset.c (Vchar_unified_charset_table): Delete it.
8248 (inhibit_load_charset_map): New variable.
8249 (temp_charset_work): New variable.
8250 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
8251 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
8252 New macros.
8253 (load_charset_map): Meaning of control_flag changed. If
8254 inhibit_load_charset_map is nonzero, setup a table in
8255 temp_charset_work.
8256 (load_charset): New argument control_flag.
8257 (map_charset_for_dump): New function.
8258 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
8259 map_charset_for_dump.
8260 (Fdefine_charset_internal): If the charset method is MAP, load
8261 mapping tables by calling load_charset.
8262 (Funify_charset): Don't load a mapping table but directly set
8263 Vchar_unify_table.
8264 (maybe_unify_char): New function.
8265 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8266 Handle the case of inhibit_load_charset_map being nonzero.
8267 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8268 Handle the case of inhibit_load_charset_map being nonzero.
8269 (Fclear_charset_maps): Just free temp_charset_work.
8270 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8271 variable.
8272
8273 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8274 change of char_table_ref_and_range.
8275 (char_table_ref_and_range): Change the meaning of argument FROM
8276 and TO. Now the caller must provide initial values for *FROM
8277 and *TO.
8278
8279 * fontset.c (fontset_add): Adjusted for the change of
8280 char_table_ref_and_range.
8281 (fontset_get_font_group): Likewise.
8282 (Ffontset_info): Likewise.
8283
8284 * keymap.c (describe_vector): Adjusted for the change of
8285 char_table_ref_and_range. For char-table, put boundary between
8286 non-ASCII and 8-bit characters.
8287
8288 * print.c (print_object): For bool-vector, delete unnecessary
8289 check of ASCII_BYTE_P.
8290
9196133b
JR
82912008-11-26 Jason Rumney <jasonr@gnu.org>
8292
8293 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8294 leading in font height. (Bug#879)
9196133b 8295
9f688acf
GM
82962008-11-26 Glenn Morris <rgm@gnu.org>
8297
8298 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8299 redefinition with ifdef. (Bug#1383)
8300
90d19aff
AR
83012008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8302
8303 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8304
4ccfa1c0 83052008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8306
8307 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8308 New EmacsView methods.
8309 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8310 Fixes bug #1048,1357,1414.
8311
83122008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8313
8314 Fix bug #1362.
8315 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8316 is not an indexed color.
8317 * nsterm.m (free_indexed_color): Add argument checking.
8318 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8319
e7d5ecb3
CY
83202008-11-24 Chong Yidong <cyd@stupidchicken.com>
8321
8322 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8323 Document confirm-after-completion value for
8324 minibuffer-completion-confirm.
8325
c285743c
JR
83262008-11-24 Jason Rumney <jasonr@gnu.org>
8327
8328 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8329 warning.
8330
b0857706
JR
83312008-11-23 Jason Rumney <jasonr@gnu.org>
8332
8333 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8334 restored before returning.
8335
8336 * w32font.c (check_face_name): New function.
8337 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8338 fonts. (Bug#642)
b0857706 8339
ee50ff07
MR
83402008-11-22 Martin Rudalics <rudalics@gmx.at>
8341
8342 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8343 confirm-nonexistent-file-or-buffer in doc-string.
8344
b8ff72fa
SM
83452008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8346
8347 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8348 Fix copy/paste typo. Add checks.
8349
cee53ed4
KH
83502008-11-21 Kenichi Handa <handa@m17n.org>
8351
8352 * coding.c (detect_coding_iso_2022): Reject invalid composition
8353 sequence.
8354 (DECODE_COMPOSITION_START): If the current source is the last
8355 block, and the current composition doesn't end, regard this
8356 sequence as invalid.
8357 (decode_coding_iso_2022): Handle invalid composition sequence.
8358
f6ef1e65
MR
83592008-11-20 Martin Rudalics <rudalics@gmx.at>
8360
8361 * window.c (coordinates_in_window): Don't return
8362 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8363 line when the window is not the rightmost one. (Bug#1372)
8364
e08b1705
MR
83652008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8366
8367 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8368
ad98e89f
EZ
83692008-11-15 Eli Zaretskii <eliz@gnu.org>
8370
8371 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8372 and bright_bg if noninteractive is non-zero.
8373
fb098a4b
CY
83742008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8375
8376 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8377 x_draw_glyph_string_background.
8378
8379 * w32term.c (x_draw_glyph_string): Likewise.
8380
ce952b6e
CY
83812008-11-15 Chong Yidong <cyd@stupidchicken.com>
8382
8383 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8384 the next glyph string once past the overhang width.
8385
8386 * nsterm.m (ns_draw_glyph_string): Likewise.
8387
8388 * w32term.c (x_draw_glyph_string): Likewise.
8389
26ea7079
CY
83902008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8391
8392 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8393 double file close.
8394
1c33c906
MR
83952008-11-14 Martin Rudalics <rudalics@gmx.at>
8396
8397 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8398 dedicated status of window before attempting to display another
8399 buffer in it.
8400
8fc29035
JB
84012008-11-14 Juanma Barranquero <lekktu@gmail.com>
8402
8403 * msdos.c (Fmsdos_long_file_names):
8404 (syms_of_msdos) <dos-unsupported-char-glyph>:
8405 * dosfns.c (Fint86): Fix typos in docstrings.
8406
55fb4286
EZ
84072008-11-14 Eli Zaretskii <eliz@gnu.org>
8408
8409 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8410
3fda0315
KY
84112008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8412
8413 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8414
7e849c17
CY
84152008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8416
8417 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8418
8419 * frame.h: Negative alpha means "don't touch".
8420
8421 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8422
8423 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8424
b9fd67bd
DN
84252008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8426
8427 * hftctl.c:
8428 * chpdef.h:
8429 * acldef.h: Remove files used only for systems no longer supported.
8430
8431 * Makefile.in: Fix .o alphabetical ordering.
8432 (hftctl.o): Remove dependency, file removed.
8433 (keymap.o, print.o): Depend on charset.h.
8434
d5998e03
KH
84352008-11-10 Kenichi Handa <handa@m17n.org>
8436
2ae37cf0 8437 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8438
be70e183
CY
84392008-11-08 Chong Yidong <cyd@stupidchicken.com>
8440
8441 * dired.c (file_name_completion): If completion_ignore_case is
8442 enabled, ignore case when checking completion-regexp-list.
8443
7cf94eac
EZ
84442008-11-08 Eli Zaretskii <eliz@gnu.org>
8445
8446 * vm-limit.c (get_lim_data): Fix last change.
8447
ee107a89
KH
84482008-11-08 Kenichi Handa <handa@m17n.org>
8449
8450 * character.c (Fget_byte): New function.
8451 (syms_of_character): Defsubr Fget_byte.
8452
5fd15622
CY
84532008-11-07 Chong Yidong <cyd@stupidchicken.com>
8454
8455 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8456 cursor position is valid after scrolling.
8457
13d62fad
JB
84582008-11-06 Juanma Barranquero <lekktu@gmail.com>
8459
8460 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8461
a1dd2936
GM
84622008-11-06 Glenn Morris <rgm@gnu.org>
8463
8464 * xterm.c (handle_one_xevent): Don't let popup menus cause
8465 mouse-autoselect-window related window switching. (Bug#1261)
8466
860cd236
CY
84672008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8468
8469 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8470
653a3150
AS
84712008-11-04 Andreas Schwab <schwab@suse.de>
8472
8473 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8474
870f5cac
CY
84752008-11-03 Chong Yidong <cyd@stupidchicken.com>
8476
8477 * xfns.c (Fx_wm_set_size_hint): New function.
8478
1e02f3cb
MR
84792008-11-03 Martin Rudalics <rudalics@gmx.at>
8480
8481 * textprop.c (Fprevious_single_char_property_change): Return 0
8482 when there's no change in a string. (Bug#1301)
8483
e630dfc6
MR
84842008-11-02 Martin Rudalics <rudalics@gmx.at>
8485
8486 * frame.c (do_switch_frame): New argument NORECORD passed to
8487 Fselect_window.
8488 (Fselect_frame): New argument NORECORD passed to
8489 do_switch_frame.
8490 (Fset_frame_selected_window): New argument NORECORD passed to
8491 Fselect_frame.
8492 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8493 in call of do_switch_frame.
8494 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8495 Handle NORECORD argument in call of Fselect_frame.
8496 * lisp.h (do_switch_frame, Fselect_frame)
8497 (Fset_frame_selected_window): Adjust declarations.
8498 * window.c (select_frame_norecord): New function.
8499 (run_window_configuration_change_hook): Use it and call
8500 Fselect_frame with NORECORD set.
8501 (Fselect_window): Pass NORECORD to Fselect_frame.
8502 (Fset_window_configuration): Handle NORECORD argument in call of
8503 do_switch_frame.
8504 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8505 Fset_frame_selected_window.
8506 * keyboard.c (command_loop_1): Handle NORECORD in call of
8507 Fselect_frame (currently ifdefd).
8508
9020b223
GM
85092008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8510
8511 * emacs.c (USAGE2): Untabify.
8512
793ffee8
SM
85132008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8514
8515 * composite.c (fill_gstring_header): Fix copy/paste typo.
8516
ab6d1131
MR
85172008-10-31 Martin Rudalics <rudalics@gmx.at>
8518
8519 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8520 (Fother_window): Rename argument and rewrite doc-string.
8521 (select_window_norecord): Fix return value. (Bug#1276)
8522
601a9cf1
JB
85232008-10-30 Juanma Barranquero <lekktu@gmail.com>
8524
8525 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8526 new frames overriding foreground for tooltips. Based on similar patch
8527 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8528
813b0652
CY
85292008-10-29 Chong Yidong <cyd@stupidchicken.com>
8530
8531 * emacs.c (Fdaemon_initialized): Initialize nfd.
8532
4414f58f
MR
85332008-10-29 Martin Rudalics <rudalics@gmx.at>
8534
8535 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8536 (Fwindow_text_height): Clarify doc-strings.
8537 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8538 doc-string of window-scroll-functions.
8539
ecdcaa09
RS
85402008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8541
8542 * category.c (syms_of_category): Fix typo in docstring.
8543
23fe745a
JB
85442008-10-28 Juanma Barranquero <lekktu@gmail.com>
8545
8546 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8547 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8548 Fix typos in docstrings.
8549
ff808935
DN
85502008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8551
8552 * emacs.c (daemon_pipe): Make non-static.
8553 (IS_DAEMON): Move definition ...
8554 * lisp.h (IS_DAEMON): ... here.
8555 (daemon_pipe): Declare.
8556 (is_daemon): Remove.
8557 * dispnew.c (init_display): Use IS_DAEMON.
8558
fc012771
SM
85592008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8560
8561 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8562 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8563
8564 * emacs.c (is_daemon): Remove.
8565 (main): Don't set is_daemon.
8566 (IS_DAEMON): New macro.
8567 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8568 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8569 parent exits.
8570 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8571
d8bdbe6f
CY
85722008-10-27 Chong Yidong <cyd@stupidchicken.com>
8573
d1a072bf
CY
8574 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8575 over-sized glyph, draw it with the default glyph width.
8576
e2e325aa
CY
8577 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8578 glyph, draw it with the default glyph width.
8579
8580 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8581 glyph, draw it with the default glyph width.
8582
d8bdbe6f
CY
8583 * xdisp.c (try_scrolling): When computing the distance from the
8584 scroll margin to PT, try moving some distance past the window
8585 bottom before giving up.
8586
7bfac547
MR
85872008-10-27 Martin Rudalics <rudalics@gmx.at>
8588
8589 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8590 (Fset_window_buffer): Explain in doc-string that a window can be
8591 "strongly" dedicated to its buffer.
8592
4ff029f6
DN
85932008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8594
8595 * emacs.c (daemon_name): New variable.
8596 (main): Deal with --daemon=SERVER_NAME.
8597 (Fdaemonp): Return a name if one was passed to --daemon.
8598
5790ef40
DN
85992008-10-26 Romain Francoise <romain@orebokech.com>
8600
f9bd0df9 8601 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8602 (main): Create a pipe before forking, make the parent exit only after
8603 the child has closed its end of the pipe. Move closing the
8604 descriptors ...
8605 (Fdaemon_initialized): ... here. New function.
8606
f5385255
SM
86072008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8608
4d632321
SM
8609 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8610 the previous unoptimized table.
8611
f5385255
SM
8612 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8613 the distinction between non-nil and non-t value of `dedicated'.
8614
6c56a0f3
CY
86152008-10-25 Chong Yidong <cyd@stupidchicken.com>
8616
8617 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8618 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8619
fec89261
MR
86202008-10-25 Martin Rudalics <rudalics@gmx.at>
8621
8622 * window.c (Fget_buffer_window, Fdelete_windows_on)
8623 (Freplace_buffer_in_windows): Make buffer argument optional and
8624 rename to buffer_or_name.
8625
34fcddd0
CY
86262008-10-24 Chong Yidong <cyd@stupidchicken.com>
8627
f5385255
SM
8628 * xdisp.c (handle_single_display_spec, handle_display_prop):
8629 Undo 2005-05-16 change.
34fcddd0
CY
8630 (handle_stop): Pop iterator if it's loaded with an empty string.
8631 (get_overlay_strings_1): Don't save iterator if it's loaded with
8632 an empty string (bug#1201).
8633
064766f2
KH
86342008-10-24 Kenichi Handa <handa@m17n.org>
8635
8636 * ftfont.c (ftfont_otf_features): Fix previous change.
8637 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8638 calling ftfont_otf_features.
8639
f9bd0df9 86402008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8641
8642 * font.c (font_match_p): Fix for the case that a vector of
8643 characters is in script-representative-chars.
8644
1dae9197
MA
86452008-10-24 Michael Albinus <michael.albinus@gmx.de>
8646
8647 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8648 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8649 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8650 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8651 macro. (Bug#1186)
1dae9197 8652
f9bd0df9 86532008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8654
8655 * s/sol2-10.h: New file.
8656
878a4584
JB
86572008-10-23 Juanma Barranquero <lekktu@gmail.com>
8658
8659 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8660 poor beast has survived 9+ years and the jump from xterm.c!).
8661
cd265ca6
MR
86622008-10-23 Martin Rudalics <rudalics@gmx.at>
8663
8664 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8665 Reword doc-string.
f5385255 8666 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8667
472a4dc9
JB
86682008-10-23 Juanma Barranquero <lekktu@gmail.com>
8669
8670 * character.c (syms_of_character) <script-representative-chars>:
8671 <unicode-category-table>: Doc fixes.
8672
159bd5a2
NF
86732008-10-23 Noah Friedman <friedman@splode.com>
8674
8675 * coding.c (make_conversion_work_buffer): Check that
8676 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8677 Fget_buffer_create.
8678
49f9c344
KH
86792008-10-23 Kenichi Handa <handa@m17n.org>
8680
8681 * font.c (font_add_log): Check the values of extra properties.
8682
12bb3111
MR
86832008-10-22 Martin Rudalics <rudalics@gmx.at>
8684
8685 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8686 Reword doc-string.
8687 (Fset_window_parameter): Use NILP.
8688 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8689 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8690
bbeb4e99
JB
86912008-10-22 Juanma Barranquero <lekktu@gmail.com>
8692
8693 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8694
86952008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8696
8697 * nsfns.m (ns_appkit_version): New function.
8698 (x-server-version): Use it.
8699 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8700 (x-server-vendor): Don't check_ns().
8701
8702 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8703
a9b555d3
JB
87042008-10-22 Juanma Barranquero <lekktu@gmail.com>
8705
8706 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8707 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8708
4626499f
KH
87092008-10-22 Kenichi Handa <handa@m17n.org>
8710
e3681952
KH
8711 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8712 scripts.
8713
4626499f
KH
8714 * category.c (word_boundary_p): Check scripts instead of charset.
8715 Handle nil value in word-separating-categories and
8716 word-combining-categories.
8717 (syms_of_category): Fix docstrings of word-separating-categories
8718 and word-combining-categories.
8719
1560f91a
EZ
87202008-10-21 Eli Zaretskii <eliz@gnu.org>
8721
8722 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8723 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8724
f4668441
MR
87252008-10-21 Martin Rudalics <rudalics@gmx.at>
8726
8727 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8728 Rename arg "buffer" to "buffer_or_name".
8729 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8730 it optional.
8731 (no_switch_window): Remove since the return value is not used.
a9b555d3 8732 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8733 Consider window as dedicated when Fwindow_dedicated_p returns a
8734 non-nil value.
8735 * lisp.h: Remove prototype for no_switch_window.
8736
fd75ddb2
JD
87372008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8738
8739 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8740 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8741
07295713
KH
87422008-10-21 Kenichi Handa <handa@m17n.org>
8743
8744 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8745 check Vlatin_extra_code_table.
8746
712adc82
EZ
87472008-10-20 Eli Zaretskii <eliz@gnu.org>
8748
8749 * fileio.c (Fset_file_modes): Doc fix.
8750
f549eb0b
MA
87512008-10-19 Michael Albinus <michael.albinus@gmx.de>
8752
8753 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8754 in arrays.
8755
aac0c6e3
MR
87562008-10-19 Martin Rudalics <rudalics@gmx.at>
8757
8758 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8759 Mention kill-buffer in doc-string.
8760 (Fset_window_buffer): Reinsert tem check removed in last commit.
8761 (Fenlarge_window, Fshrink_window): Have argument names and
8762 doc-string follow Elisp manual more closely.
8763
87642008-10-18 Eli Zaretskii <eliz@gnu.org>
8765
8766 * fileio.c (Fset_file_modes): Doc fix.
8767
87682008-10-18 Martin Rudalics <rudalics@gmx.at>
8769
8770 * window.c (Fwindow_width, Fset_window_start)
8771 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8772 (Fdelete_windows_on, Freplace_buffer_in_windows):
8773 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8774 (Fwindow_dedicated_p): Make window argument optional.
8775 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8776 (Fset_window_buffer): Respect any non-nil dedicated value for
8777 window. Rename "buffer" argument to "buffer_or_name".
8778
87792008-10-18 Ulrich Mueller <ulm@gentoo.org>
8780
8781 * m/sh3.h: New file, machine description for SuperH.
8782
87832008-10-17 Martin Rudalics <rudalics@gmx.at>
8784
8785 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8786
87872008-10-17 Kenichi Handa <handa@m17n.org>
8788
8789 * ftfont.c (ftfont_otf_features): Fix indexing
8790 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8791
87922008-10-16 Magnus Henoch <mange@freemail.hu>
8793
8794 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8795 (Fdbus_call_method_asynchronously): Ditto.
8796 This change makes C-h f display the argument list.
8797
87982008-10-16 Chong Yidong <cyd@stupidchicken.com>
8799
8800 * fileio.c (Fexpand_file_name): Doc fix.
8801
8802 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8803 of :foreground and :background equivalent to unspecified (20.x
8804 compatibility).
8805
88062008-10-15 Eli Zaretskii <eliz@gnu.org>
8807
8808 * buffer.c (syms_of_buffer): Doc fix.
8809
88102008-10-14 Kenichi Handa <handa@m17n.org>
8811
8812 * font.c (font_clear_prop): When clearing font width, clear the
8813 average width field too.
8814
88152008-10-12 Andreas Schwab <schwab@suse.de>
8816
8817 * ftfont.c (ftfont_shape_by_flt): Make static.
8818 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8819
8820 * font.c: Don't include <m17n-flt.h>.
8821
88222008-10-10 Eli Zaretskii <eliz@gnu.org>
8823
8824 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8825
88262008-10-09 Eli Zaretskii <eliz@gnu.org>
8827
8828 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8829 away code.
8830
88312008-10-09 Chong Yidong <cyd@stupidchicken.com>
8832
8833 * dispnew.c (update_text_area): Avoid looping due to large glyph
8834 overhangs (bug#1070).
8835
88362008-10-09 Kenichi Handa <handa@m17n.org>
8837
8838 * fontset.c (face_for_char): If face->fontset is negative, just
8839 return ascii_face.
8840
f5385255
SM
8841 * font.c (font_delete_unmatched): Fix previous change.
8842 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8843
88442008-10-09 Martin Rudalics <rudalics@gmx.at>
8845
8846 * frame.c (Fraise_frame): On text-only terminals select frame in
8847 order to make it visible. (Bug#1061)
8848
88492008-10-08 Chong Yidong <cyd@stupidchicken.com>
8850
8851 * fontset.c (fontset_find_font): Check frame validity.
8852
88532008-10-07 Chong Yidong <cyd@stupidchicken.com>
8854
a9b555d3 8855 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8856 (xg_display_close): Allow Emacs to close all displays (bug#985).
8857
88582008-10-06 Andreas Schwab <schwab@suse.de>
8859
f5385255 8860 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8861
88622008-10-06 Chong Yidong <cyd@stupidchicken.com>
8863
f5385255 8864 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8865
a9b555d3 8866 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8867
8868 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8869 during initialization.
8870
88712008-10-04 Eli Zaretskii <eliz@gnu.org>
8872
8873 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8874 whole thing on MSDOS frames as well as on a TTY.
8875
8876 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8877 well as for TTY.
8878 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8879 well as on a TTY.
8880
8881 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8882 as well as for TTY.
8883
8884 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8885
8886 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8887 MSDOS frames as well.
8888
88892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8890
8891 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8892 correct arguments.
b71ac3dd 8893 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8894
88952008-10-03 Glenn Morris <rgm@gnu.org>
8896
8897 * emacs.c (USAGE1): Add --daemon.
8898
88992008-10-02 Eli Zaretskii <eliz@gnu.org>
8900
8901 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8902 100, so it's in percents as advertised.
8903
89042008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8905
8906 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8907 (ns_output.current_cursor, ns_output.desired_cursor)
8908 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8909 (FRAME_NEW_CURSOR_COLOR): Remove.
8910
8911 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8912 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8913 enumeration (HOLLOW_BOX_CURSOR, etc.).
8914
8915 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8916 (draw_window_cursor): Simplify code.
f5385255
SM
8917 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8918 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8919 updates manually.
a9b555d3
JB
8920 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8921 Use core Emacs cursor types.
aac0c6e3 8922
b8ff72fa 8923 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8924
89252008-10-02 Martin Rudalics <rudalics@gmx.at>
8926
8927 * process.c (Faccept_process_output): Fix doc-string.
8928
89292008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8930
8931 * gmalloc.c (__sbrk): Also define for uClibc.
8932
8933 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8934 for uClibc.
8935
89362008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8937
8938 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8939 styles.
8940 (nsfont_open): Reenable the cache.
8941
89422008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8943
8944 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8945 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8946
89472008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8948
8949 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8950 a suspended terminal.
8951
89522008-09-30 Michael Albinus <michael.albinus@gmx.de>
8953
8954 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8955
89562008-09-30 Eli Zaretskii <eliz@gnu.org>
8957
8958 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8959
89602008-09-30 Chong Yidong <cyd@stupidchicken.com>
8961
8962 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8963 in a continued line coincides with a line beginning.
8964
89652008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8966
8967 * nsfont.m (nsfont_trait_distance): Fix bug.
8968 (nsfont_list): Return a list rather than a vector (syncs with Handa
8969 changes of 2008-05-14).
8970 (nsfont_open): Improve logging.
8971
89722008-09-29 Andreas Schwab <schwab@suse.de>
8973
8974 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8975
89762008-09-28 Martin Rudalics <rudalics@gmx.at>
8977
8978 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8979 name as char-resolve-modifiers.
8980 Reported by: Markus Triska <markus.triska@gmx.at>
8981
89822008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8983
8984 * dispnew.c (init_display): Return earlier when running as a daemon.
8985
89862008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8987
8988 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8989
89902008-09-27 Eli Zaretskii <eliz@gnu.org>
8991
8992 * composite.c (Fcomposition_get_gstring)
8993 (Fcompose_region_internal, Fcompose_string_internal)
8994 (Ffind_composition_internal): Doc fix.
8995 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8996 (syms_of_composite) <auto-composition-function>: Doc fix.
8997 (syms_of_composite) <composition-function-table>: Doc fix.
8998
89992008-09-25 Chong Yidong <cyd@stupidchicken.com>
9000
9001 * search.c (wordify): New argument for lax word-ends.
9002 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
9003
90042008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
9005
9006 * lisp.h (is_daemon): Declare.
9007 * dispnew.c (init_display): Do not try to initialize the terminal
9008 when running as a daemon.
9009
90102008-09-22 Chong Yidong <cyd@stupidchicken.com>
9011
9012 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
9013 x_display_pixel_height.
9014
90152008-09-22 Martin Rudalics <rudalics@gmx.at>
9016
9017 * undo.c (record_point): Don't call Fundo_boundary for first
9018 change. (Bug#731)
9019
90202008-09-22 Juanma Barranquero <lekktu@gmail.com>
9021
9022 * emacs.c (Fdaemonp): Doc fix.
9023
90242008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
9025
9026 * emacs.c (main): Place #ifdef in the proper place.
9027
90282008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
9029
9030 * emacs.c (standard_args): Add --daemon.
9031 (main): Disconnect from the terminal when --daemon is passed.
9032 (is_daemon): New variable.
9033 (Fdaemonp): New function.
9034 (syms_of_emacs): Defsubr it.
9035
90362008-09-20 Chong Yidong <cyd@stupidchicken.com>
9037
9038 * xdisp.c (get_next_display_element): Handle string display
9039 correctly when checking for the end of a box run.
9040
90412008-09-20 Glenn Morris <rgm@gnu.org>
9042
9043 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
9044 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
9045 (Frename_file): Avoid copying to trash if a rename involves
9046 a delete. (Bug#964).
9047
90482008-09-20 Eli Zaretskii <eliz@gnu.org>
9049
9050 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
9051 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
9052 frames as well as termcap frames.
9053 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
9054 get_named_tty.
9055
90562008-09-19 Eli Zaretskii <eliz@gnu.org>
9057
9058 * process.c (procfs_system_process_attributes): Fix cmdline in
9059 case /proc/PID/cmdline is empty.
9060
9061 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
9062 x_display_pixel_height.
9063
90642008-09-19 Juanma Barranquero <lekktu@gmail.com>
9065
9066 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
9067
9068 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
9069 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
9070
90712008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
9072
9073 * dispextern.h (struct it): Move line_wrap away from the middle of
9074 bitfields. Move voffset in struct iterator_stack_entry after the
9075 bitfields. Move tab_width near after another short.
9076
90772008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
9078
9079 * frame.h (struct frame): Move alpha from the middle of bitfields.
9080
9081 * window.h (struct window): Move frozen_window_start_p after the
9082 rest of the bitfields to reduce padding.
9083
90842008-09-18 Chong Yidong <cyd@stupidchicken.com>
9085
9086 * xterm.h (x_display_info): Remove `height' and `width' members.
9087
9088 * nsterm.h (ns_display_info): Remove `height' and `width' members.
9089
9090 * w32term.h (w32_display_info): Remove `height', `width',
9091 `height_in', and `width_in' members.
9092
b8ff72fa
SM
9093 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9094 New functions.
aac0c6e3
MR
9095 (x_calc_absolute_position): Use them.
9096 (x_term_init): Omit removed `height' and `width' members.
9097
b8ff72fa
SM
9098 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9099 New functions.
aac0c6e3
MR
9100 (w32_read_socket, x_calc_absolute_position): Use them.
9101 (w32_initialize_display_info, w32_term_init): Omit removed members
9102 of w32_display_info.
9103
b8ff72fa
SM
9104 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
9105 New functions.
9106 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 9107
b8ff72fa
SM
9108 * xterm.c (x_display_pixel_height, x_display_pixel_width):
9109 New functions.
aac0c6e3
MR
9110 (x_calc_absolute_position): Use them.
9111 (x_term_init): Omit removed `height' and `width' members.
9112
9113 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
9114 (compute_tip_xy):
9115 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
9116 * xmenu.c (menu_position_func): Use x_display_pixel_height and
9117 x_display_pixel_width.
9118
91192008-09-18 Kenichi Handa <handa@m17n.org>
9120
9121 * composite.c (fill_gstring_header): Don't check FROM and TO here.
9122 (composition_compute_stop_pos): Fix handling of static composition.
9123 (Fcomposition_get_gstring): Check FROM and TO at first.
9124
91252008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
9126
46e722a9 9127 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
9128 mixup (YAILOM).
9129
91302008-09-17 Chong Yidong <cyd@stupidchicken.com>
9131
9132 * indent.c (Fvertical_motion): Use position reported by iterator
9133 instead of PT for determining screen motion (bug#943).
9134
91352008-09-17 Romain Francoise <romain@orebokech.com>
9136
9137 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
9138
91392008-09-17 Kenichi Handa <handa@m17n.org>
9140
9141 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
9142
9143 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
9144 if necessary.
9145
91462008-09-16 Kenichi Handa <handa@m17n.org>
9147
9148 * coding.c (make_conversion_work_buffer): Avoid calling
9149 Fget_buffer_create if it is not necessary.
9150
91512008-09-15 Martin Rudalics <rudalics@gmx.at>
9152
9153 * window.c (Fselect_window): Don't update window_select_count and
9154 use_time when norecord is not nil.
9155
91562008-09-14 Kenichi Handa <handa@m17n.org>
9157
9158 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
9159 specpdl_ptr.
9160
91612008-09-12 Kenichi Handa <handa@m17n.org>
9162
9163 * indent.c (scan_for_column): Don't handle automatic composition
9164 if the current buffer is not associated with a window.
9165
9166 * composite.c (composition_reseat_it): If the current buffer is
9167 not associated with a window, ignore the automatic composition.
9168 (find_automatic_composition): Likewise.
9169
91702008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9171
9172 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
9173 (Fgpm_mouse_stop): Use it.
9174 * termhooks.h (close_gpm): Declare.
9175 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
9176 connection if Gpm_GetEvent fails.
9177
9178 * window.c (set_window_buffer): Always preserve current-buffer.
9179
91802008-09-12 Glenn Morris <rgm@gnu.org>
9181
9182 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
9183
91842008-09-11 Glenn Morris <rgm@gnu.org>
9185
9186 * charset.c (charset-map-path): Doc fix.
9187
91882008-09-10 Kenichi Handa <handa@m17n.org>
9189
9190 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
9191
9192 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
9193 compose a grapheme cluster with the preceding base glyph.
9194
9195 * composite.c (composition_compute_stop_pos): Fix previous change.
9196 Reset cmp_it->id to -1 at first.
9197
91982008-09-10 Glenn Morris <rgm@gnu.org>
9199
9200 * Makefile.in (character.o, chartab.o): Fix config.h typo.
9201
92022008-09-09 Chong Yidong <cyd@stupidchicken.com>
9203
9204 * keyboard.c (read_key_sequence): Reapply translation maps when
9205 switching keyboards.
9206
92072008-09-09 Kenichi Handa <handa@m17n.org>
9208
9209 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
9210 characters.
9211
9212 * composite.c (FORWARD_CHAR): Fix calculation
9213 of (POSITION).pos_byte.
9214 (composition_compute_stop_pos): Limit the search of composition to
9215 at most 500 characters ahead. If we reach the limit or find a
9216 newline, set cmp_it->ch to -2 and return 0.
9217 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
9218
92192008-09-08 Kenichi Handa <handa@m17n.org>
9220
9221 * indent.c (Fvertical_motion): Be sure to set
9222 it_overshoot_expected if it.cmp_it.id is non-negative.
9223
92242008-09-07 Andreas Schwab <schwab@suse.de>
9225
9226 * callproc.c (Fcall_process): Don't hold references to string data
9227 across garbage collection. Move initialisation of new_argv down
9228 to avoid compiler bug.
9229
92302008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9231
9232 * process.c (Fsystem_process_attributes): Doc fix.
9233
92342008-09-07 Chong Yidong <cyd@stupidchicken.com>
9235
9236 * callproc.c (Fcall_process): Canonicalize current directory name.
9237
9238 * xdisp.c (move_it_to): When moving by vpos, ensure that the
9239 iterator advances to the next line if the current line ends in a
9240 continued tab.
9241
92422008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
9243
9244 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
9245 member to point to cmp_from.
9246
9247 * xdisp.c: Doc fix for references to gidx data member.
9248
92492008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
9250
9251 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
9252
92532008-09-07 Kenichi Handa <handa@m17n.org>
9254
9255 * composite.c (FORWARD_CHAR): Check STOP after
9256 incrementing (POSITION).pos.
9257
92582008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
9259
9260 * process.c (Fsystem_process_attributes): Doc fix.
9261
92622008-09-06 Chong Yidong <cyd@stupidchicken.com>
9263
9264 * keyboard.c (Ftop_level): Doc fix.
9265
92662008-09-06 Eli Zaretskii <eliz@gnu.org>
9267
9268 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9269 minibuffer, don't let lower part of menu invade the echo area.
9270
9271 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9272 "char *q" to access menu text and advance through it. Revert the
9273 change that displayed ">" instead of ASCII character 0x10.
9274
92752008-09-05 Eli Zaretskii <eliz@gnu.org>
9276
9277 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9278 toggle boxes and radio buttons on MS-DOS as well.
9279
92802008-09-05 Kenichi Handa <handa@m17n.org>
9281
9282 * composite.c (autocmp_chars): Check lookback count.
9283 (composition_compute_stop_pos): Set cmp_it->lookback.
9284 (composition_reseat_it): Check lookback count.
9285 (struct position_record): New struct.
9286 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9287 (find_automatic_composition): New function.
9288 (composition_adjust_point): Use find_automatic_composition.
9289
9290 * dispextern.h (struct composition_it): New member lookback.
9291
92922008-09-02 Chong Yidong <cyd@stupidchicken.com>
9293
9294 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9295 if moving by a single line.
9296
92972008-09-02 Andreas Schwab <schwab@suse.de>
9298
9299 * xterm.c (x_delete_display): Fix merge error.
9300
9301 * fileio.c (Fexpand_file_name): Remove unused variables.
9302
93032008-09-02 Eli Zaretskii <eliz@gnu.org>
9304
9305 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9306 storage on all platforms, not just on DOS_NT.
9307
93082008-09-02 Jason Rumney <jasonr@gnu.org>
9309
b8ff72fa
SM
9310 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9311 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9312
93132008-09-01 Chong Yidong <cyd@stupidchicken.com>
9314
9315 * xfaces.c (Finternal_set_alternative_font_family_alist)
9316 (Finternal_set_alternative_font_registry_alist): Properly copy
9317 entire alist structure.
9318
93192008-09-01 Kenichi Handa <handa@m17n.org>
9320
d66c0241 9321 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9322 representative chars of the script is a vector.
d66c0241
JB
9323 (ftfont_list): Handle the case where the representative chars of
9324 the script is a vector.
aac0c6e3
MR
9325
9326 * character.c (syms_of_character): Docstring of
9327 script-representative-chars fixed.
9328
93292008-08-31 Eli Zaretskii <eliz@gnu.org>
9330
9331 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9332 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9333 the menu. Allocate larger buffer for `text', to account for
9334 possible ^C characters.
9335
93362008-08-31 Martin Rudalics <rudalics@gmx.at>
9337
9338 * xdisp.c (prepare_menu_bars): Don't call
9339 Vwindow_size_change_functions with arg Qt.
9340
93412008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9342
9343 * font.h (font_range):
9344 * fileio.c (report_file_error):
46e722a9
SM
9345 * composite.c (composition_update_it): Yet another int/Lisp_Object
9346 mixup (YAILOM).
aac0c6e3
MR
9347
93482008-08-30 Glenn Morris <rgm@gnu.org>
9349
9350 * data.c (Fmake_variable_frame_local): Doc fix.
9351
9352 * frame.c (Fmodify_frame_parameters): Doc fix.
9353
93542008-08-30 Eli Zaretskii <eliz@gnu.org>
9355
9356 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9357 needed by GetTokenInformation.
9358 (w32_system_process_attributes): Check return values of all system
9359 APIs.
9360
9361 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9362 only when the state changes.
9363 (IT_update_begin, IT_update_end): Add termscript trace.
9364
9365 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9366 clipboard is unavailable. Set dst to NULL if it doesn't point to
9367 malloc'ed data.
9368 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9369 passing random values to xfree.
9370
9371 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9372 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9373
93742008-08-29 Jason Rumney <jasonr@gnu.org>
9375
9376 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9377
93782008-08-29 Eli Zaretskii <eliz@gnu.org>
9379
9380 * composite.c (fill_gstring_body): Avoid compiler warnings.
9381
9382 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9383 LGLYPH_SET_CODE to avoid compiler warnings.
9384
2ae37cf0 9385 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9386
9387 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9388
9389 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9390 LGLYPH_SET_CODE.
9391
93922008-08-29 Kenichi Handa <handa@m17n.org>
9393
9394 * fileio.c (report_file_error): Don't downcase the first character
9395 of errstring if it is still unibyte.
9396
93972008-08-29 Kenichi Handa <handa@m17n.org>
9398
9399 These changes are to re-implement the automatic composition so
9400 that it doesn't use text properties.
9401
9402 * Makefile.in (ftfont.o): Depend on composite.h.
9403 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9404
9405 * character.h (Vunicode_category_table): Extern it.
9406
9407 * character.c (Vunicode_category_table): New variable.
9408 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9409
9410 * chartab.c (optimize_sub_char_table): Perform more greedy
9411 optimization.
9412
b8ff72fa
SM
9413 * composite.h (enum composition_method):
9414 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9415 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9416 (Vcomposition_function_table): Extern it.
9417 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9418 (composition_gstring_put_cache, composition_gstring_from_id)
9419 (composition_gstring_p, composition_gstring_width)
9420 (composition_compute_stop_pos, composition_reseat_it)
9421 (composition_update_it, composition_adjust_point): Extern them.
9422 (Fcomposition_get_gstring): EXFUN it.
9423
d66c0241 9424 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9425 (Vcomposition_function_table)
9426 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9427 (gstring_hash_table, gstring_work, gstring_work_headers):
9428 New variables.
aac0c6e3
MR
9429 (gstring_lookup_cache, composition_gstring_put_cache)
9430 (composition_gstring_from_id, composition_gstring_p)
9431 (composition_gstring_width, fill_gstring_header)
9432 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9433 (composition_reseat_it, composition_update_it)
b8ff72fa 9434 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9435 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9436 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9437 Defsubr composition_get_gstring.
aac0c6e3
MR
9438
9439 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9440 cmp_id.
9441 (struct glyph_string): Delete the member gidx. New members
9442 cmp_id, cmp_from, and cmp_to.
9443 (enum it_method): Delete GET_FROM_COMPOSITION.
9444 (struct composition_it): New struct.
9445 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9446 Delete c, len, cmp_id, cmp_len in u.comp.
9447
9448 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9449 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9450 (enum lglyph_indices): Likewise.
b8ff72fa 9451 (font_range): Adjust extern.
aac0c6e3
MR
9452 (font_fill_lglyph_metrics): Extern it.
9453
9454 * font.c (QCf): New variable.
9455 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9456 (font_prepare_composition): Delete this function.
9457 (font_range): Type and arguments changed.
9458 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9459 (font_fill_lglyph_metrics): New function.
b8ff72fa 9460 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9461 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9462 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9463 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9464
9465 * fontset.h (font_for_char): Extern it.
9466
9467 * fontset.c (font_for_char): New function.
9468
9469 * ftfont.c: Include composite.h.
9470 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9471 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9472
9473 * indent.c: Include composite.h and dispextern.h.
9474 (check_composition): Delete this function.
9475 (scan_for_column): Handle composition by
9476 composition_compute_stop_pos, composition_reseat_it, and
9477 composition_update_it.
9478 (compute_motion): Likewise.
9479 (Fvertical_motion): Fix checking of composition.
9480
9481 * keyboard.c (adjust_point_for_property): Check composition by
9482 composition_adjust_point.
9483
b8ff72fa 9484 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9485 struct glyph_string.
9486
b8ff72fa
SM
9487 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9488 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9489 struct glyph.
9490 (produce_composite_glyph): Likewise.
9491
b8ff72fa
SM
9492 * w32term.c (x_draw_composite_glyph_string_foreground):
9493 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9494 (x_draw_glyph_string): Likewise.
9495
9496 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9497 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9498
9499 * xdisp.c: Include font.h.
9500 (it_props): Delete the entry for Qauto_composed.
9501 (init_iterator): Initialize it->cmp_it.id to -1.
9502 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9503 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9504 (handle_auto_composed_prop): Delete it.
9505 (handle_composition_prop): Handle only static composition.
9506 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9507 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9508 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9509 (pop_it): Likewise.
9510 (get_next_element): Delete next_element_from_composition.
9511 (CHAR_COMPOSED_P): New macro.
9512 (get_next_display_element): For automatic composition, get a face
9513 from the font in the glyph-string.
9514 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9515 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9516 (next_element_from_string): Check if the character at the current
9517 position is composed by CHAR_COMPOSED_P.
9518 (next_element_from_buffer): Likewise.
d66c0241
JB
9519 (next_element_from_composition): Adjust for the change of struct it.
9520 Update it->cmp_it.
b8ff72fa
SM
9521 (dump_glyph): Adjust for the change of struct glyph.
9522 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9523 it and struct glyph. Don't handle automatic composition here.
9524 (fill_gstring_glyph_string): New function.
9525 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9526 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9527 (BUILD_GSTRING_GLYPH_STRING): New macro.
9528 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9529 automatic composition.
b8ff72fa 9530 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9531 struct glyph.
b8ff72fa 9532 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9533
b8ff72fa 9534 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9535 the change of struct glyph_string.
9536 (x_draw_glyph_string): Likewise.
9537
95382008-08-29 Glenn Morris <rgm@gnu.org>
9539
9540 * buffer.c (word-wrap): Doc fix.
9541 * xdisp.c (truncate-partial-width-windows): Doc fix.
9542 Increase default to 50.
9543
95442008-08-29 Chong Yidong <cyd@stupidchicken.com>
9545
9546 * xdisp.c (update_tool_bar_unwind): New function.
9547 (update_tool_bar): Temporarily set selected frame before building
9548 tool-bar items.
9549
95502008-08-28 Michael Albinus <michael.albinus@gmx.de>
9551
9552 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9553 snprintf, respectively.
9554 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9555
95562008-08-28 Chong Yidong <cyd@stupidchicken.com>
9557
9558 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9559 LDFLAGS to GNUstep CC invocation.
9560
95612008-08-27 Chong Yidong <cyd@stupidchicken.com>
9562
9563 * indent.c (Fvertical_motion): Revert last change. Handle the
9564 general case where we are moving forward, and PT spans multiple
9565 screen lines.
9566
9567 * eval.c (find_handler_clause): Temporarily increase
9568 max-lisp-eval-depth while printing the backtrace buffer, to
9569 guarantee that help-mode code can run.
9570
95712008-08-27 Eli Zaretskii <eliz@gnu.org>
9572
9573 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9574 colors under -rv.
9575 (IT_set_frame_parameters): Don't swap foreground and background
9576 colors if `(reverse . t)' is present in the frame properties.
9577 (internal_terminal_init): Call init_frame_faces only for the
9578 initial frame.
9579
95802008-08-27 Andreas Schwab <schwab@suse.de>
9581
9582 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9583
95842008-08-27 Andreas Schwab <schwab@suse.de>
9585
9586 * search.c (search_buffer): Set char_base to zero only at the end.
9587
95882008-08-27 Kenichi Handa <handa@m17n.org>
9589
b8ff72fa 9590 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9591
95922008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9593
9594 * xterm.c (x_term_init): Temporarily hide the partially
9595 initialized terminal while calling vendor-specific-keysyms.
9596
95972008-08-26 Eli Zaretskii <eliz@gnu.org>
9598
9599 * msdos.c (internal_terminal_init): Most initializations done only
9600 once, especially initial_screen_colors[] and termscript open.
9601
96022008-08-26 Chong Yidong <cyd@stupidchicken.com>
9603
9604 * eval.c (Fcondition_case): Doc fix.
9605
9606 * widgetprv.h (EmacsFramePart): Change font member to the new font
9607 struct.
9608
9609 * widget.c: Include character.h and font.h for XSETFONT.
9610 (setup_frame_gcs): Compute X font id from font struct, just once.
9611
96122008-08-26 Eli Zaretskii <eliz@gnu.org>
9613
9614 * term.c (get_named_tty): Fix last change.
9615
96162008-08-26 Chong Yidong <cyd@stupidchicken.com>
9617
9618 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9619 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9620
96212008-08-25 Eli Zaretskii <eliz@gnu.org>
9622
9623 * frame.c (do_switch_frame): Mark previously displayed frame as
9624 obscured for FRAME_MSDOS_P frames as well.
9625
96262008-08-24 Eli Zaretskii <eliz@gnu.org>
9627
9628 * frame.c (make_terminal_frame): Initialize f->terminal,
9629 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9630 Set the top frame to newly created frame.
9631 (Fmake_terminal_frame): Reuse the_only_display_info.
9632
9633 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9634 estimating available memory.
9635
b97439ce 96362008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9637
9638 * nsterm.m (ns_draw_window_cursor): Don't call
9639 NSDisableScreenUpdates and NSEnableScreenUpdates on
9640 non-NS_IMPL_COCOA systems.
9641
96422008-08-23 Andreas Schwab <schwab@suse.de>
9643
9644 * process.c (procfs_system_process_attributes): Fix use of
9645 uninitialized variables.
9646
96472008-08-23 Eli Zaretskii <eliz@gnu.org>
9648
9649 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9650
9651 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9652 calling tty-set-up-initial-frame-faces.
9653
b8ff72fa
SM
9654 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9655 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9656
9657 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9658 addition to output_termcap.
9659
9660 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9661
9662 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9663 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9664 highlight.
9665
9666 * process.c [!subprocesses]: Define QCname.
9667 (syms_of_process): Intern and staticpro it.
9668
9669 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9670 Adjust for changes in encoding/decoding routines.
9671 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9672 encode_coding and decode_coding.
9673
b8ff72fa 9674 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9675
9676 * dosfns.c: Include frame.h before termhooks.h.
9677 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9678 variable termscript.
9679
9680 * s/msdos.h (USER_FULL_NAME): Define.
9681 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9682
9683 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9684 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9685 pw->pw_gecos.
9686
9687 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9688 SELECTED_FRAME as additional (1st) argument.
9689 (tty_read_avail_input): Handle output_msdos_raw in
9690 addition to output_termcap.
9691
9692 * msdos.c: Include frame.h before termhooks.h.
9693 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9694 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9695 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9696 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9697 (IT_set_terminal_modes, IT_reset_terminal_modes)
9698 (IT_set_frame_parameters): Use tty->termscript instead of a global
9699 variable termscript.
9700 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9701 global variable terminal_coding. Don't refer to
9702 Vnonascii_translation_table.
9703 (internal_terminal_init): Set Vwindow_system in current_kboard.
9704 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9705 Announce date and time of session start, if termscript is open.
9706 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9707 term.c:init_tty). Open termscript only of not already open.
9708 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9709 here instead of dos_ttraw. Don't initialize display if this is an
9710 initial tty. Don't set FRAME_FONT.
9711 (Vwindow_system_version): Bump to 23.
9712 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9713 is available, set up mouse_position_hook.
9714 (dos_ttraw, IT_set_terminal_modes): If called with initial
9715 terminal, do nothing.
9716 (IT_set_frame_parameters): Handle the Qtty_type frame
9717 parameter by calling internal_terminal_init.
9718 (dos_set_window_size, show_mouse_face)
9719 (clear_mouse_face, IT_note_mode_line_highlight)
9720 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9721 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9722 (initialize_msdos_display): New function.
9723 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9724 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9725 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9726 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9727 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9728 (request_sigio, unrequest_sigio): Don't define, now defined on
9729 sysdep.c.
9730 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9731
9732 * term.c [MSDOS]: Include msdos.h.
9733 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9734 conditional to DOS_NT. Allow only one call to this function in a
9735 session. Don't allocate a new struct tty_display_info; instead,
9736 reuse the_only_display_info. Call get_tty_size to get screen
9737 dimensions. Call init_baud_rate to set bad_rate.
9738 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9739 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9740 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9741 (get_tty_terminal, get_named_tty, Ftty_type)
9742 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9743 output_termcap.
b8ff72fa
SM
9744 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9745 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9746 only when subprocesses are supported.
aac0c6e3
MR
9747
9748 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9749 f->output_data.x.
9750 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9751 terminal devices.
9752
5582fbc7 9753 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9754 x_output.
9755 (FRAME_FONT): Use output_data.tty.
9756 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9757 (struct x_display_info): Rename from display_info. Update all users in
9758 msdos.c.
aac0c6e3 9759 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9760 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9761 (dos_ttraw): Update prototype.
9762
9763 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9764 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9765
97662008-08-23 Jason Rumney <jasonr@gnu.org>
9767
9768 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9769 (fn_TIFFSetDirectory): New library function used.
9770 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9771 (tiff_load): Use :index to select among multiple images. Set count
9772 property when multiple images exist.
9773 (gif_format): Use :index, not :image.
9774
97752008-08-23 Chong Yidong <cyd@stupidchicken.com>
9776
9777 * xdisp.c (try_scrolling): Check INT_MAX instead of
9778 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9779 to obtain INT_MAX.
9780
97812008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9782
9783 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9784
97852008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9786
9787 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9788 GNUstep library location.
9789
97902008-08-21 Chong Yidong <cyd@stupidchicken.com>
9791
9792 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9793 before using it.
9794
9795 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9796
97972008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9798
9799 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9800 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9801 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9802 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9803 (EmacsApp-cursor_blink_handler): Remove declaration.
9804 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9805 match 01 Feb 2008 changes in xterm.c.
9806 (ns_read_socket): Add cast to avoid warning.
9807 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9808 GNUstep.
9809
98102008-08-20 Chong Yidong <cyd@stupidchicken.com>
9811
9812 * xselect.c (x_get_foreign_selection): Return nil if desired
9813 selection could not be obtained, instead of signalling an error.
9814
98152008-08-20 David Reitter <david.reitter@gmail.com>
9816
9817 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9818 * nsterm.m: Remove ns-specific code for cursor blinking.
9819 (ns_draw_window_cursor): Clear cursor properly rather than
9820 redrawing the area. Respect width of bar cursors.
9821 These changes enable the use of generic blink-cursor-mode and
9822 generic cursor types in NS and support smooth cursor movements (do
9823 not blink off after command).
9824 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9825 Nextstep, too.
9826
98272008-08-19 Kenichi Handa <handa@m17n.org>
9828
9829 * font.c (Vfont_log_deferred): New variable.
9830 (font_add_log): Check Vfont_log_deferred.
9831 (font_deferred_log): New function.
9832
9833 * font.h (font_deferred_log): Extern it.
9834
9835 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9836 for sorting.
9837 (face_for_char): Use deferred log.
9838
98392008-08-18 Kenichi Handa <handa@m17n.org>
9840
9841 * fontset.c (face_for_char): Add font log.
9842
9843 * font.c (font_add_log): Add the font properties :script, :lang,
9844 and :otf in the log.
9845
98462008-08-17 Chong Yidong <cyd@stupidchicken.com>
9847
9848 * xdisp.c: Remove dead code.
9849 (handle_invisible_prop, next_overlay_string): Defer call to
9850 setup_for_ellipsis.
9851 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9852
98532008-08-15 Chong Yidong <cyd@stupidchicken.com>
9854
9855 * xfaces.c (lookup_derived_face): Properly handle possible zero
9856 return value of get_lface_attributes.
9857 (merge_faces): Don't tell lookup_derived_face to signal an error
9858 if face is not found.
9859
9860 * dired.c (Fdirectory_files): Doc fix.
9861
9862 * process.c (make_process): Initialize kill_without_query struct
9863 member.
9864
98652008-08-15 Eli Zaretskii <eliz@gnu.org>
9866
9867 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9868 Alternative calculation of totphys for Visual Studio 6.
9869
9870 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9871
9872 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9873 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9874 All users changed.
9875 (stat): Only root directory passed to GetDriveType. Allow RAM
9876 disk as well as local fixed disk when w32-get-true-file-attributes
9877 is set to `local'.
9878 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9879 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9880 (w32_cached_id, w32_add_to_cache): New functions.
9881 (get_name_and_id): Look account names in the cache before calling
9882 lookup_account_sid.
9883 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9884 New initialization flags.
9885 (globals_of_w32): Initialize them to zero.
9886 (w32_system_process_attributes): Use w32_cached_id and
9887 w32_add_to_cache.
9888
98892008-08-14 Lawrence Mitchell <wence@gmx.li>
9890
9891 * lread.c (Fread_char, Fread_char_exclusive): If no character
9892 event is read before timeout is reached, return nil, rather than
9893 converting to a number.
9894
98952008-08-14 Chong Yidong <cyd@stupidchicken.com>
9896
9897 * fns.c (use_dialog_box): Doc fix.
9898
9899 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9900 on OS X.
9901
99022008-08-13 Chong Yidong <cyd@stupidchicken.com>
9903
9904 * frame.c (Qns_parse_geometry): New var.
9905 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9906
99072008-08-11 Chong Yidong <cyd@stupidchicken.com>
9908
9909 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9910 space character in calculating tabs.
9911
99122008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9913
9914 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9915
99162008-08-10 Glenn Morris <rgm@gnu.org>
9917
9918 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9919 silence gcc "limited range of data type" warnings in some
9920 make_fixnum_or_float calls.
9921
99222008-08-09 Eli Zaretskii <eliz@gnu.org>
9923
9924 * w32.c (w32_system_process_attributes): If the process does not
9925 exist, return nil.
9926
9927 * w32.c: Include thelp32.h, psapi.h and coding.h.
9928 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9929 declarations.
9930 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9931 (Process32Next_Proc): New typedefs.
9932 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9933 (g_b_init_process32_next, g_b_init_open_thread_token)
9934 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9935 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9936 (g_b_init_get_process_working_set_size)
9937 (g_b_init_global_memory_status_ex): New static variables.
9938 (globals_of_w32): Initialize them.
9939 (create_toolhelp32_snapshot, process32_first, process32_next)
9940 (open_thread_token, impersonate_self, revert_to_self)
9941 (get_process_memory_info, get_process_working_set_size)
9942 (global_memory_status, global_memory_status_ex): New wrapper
9943 functions.
9944 (w32_list_system_processes, w32_system_process_attributes)
9945 (enable_privilege, restore_privilege, ltime, process_times):
9946 New functions.
9947 (convert_time_raw): New function.
9948 (convert_time): Remove conversion of FILETIME into time in 100
9949 nsec units, call convert_time_raw instead.
9950
9951 * process.h (w32_list_system_processes, w32_system_process_attributes):
9952 Add prototypes.
9953 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9954 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9955 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9956 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9957
9958 * process.c (Fsystem_process_attributes): Doc fix.
9959
99602008-08-08 Chong Yidong <cyd@stupidchicken.com>
9961
9962 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9963 a continued multi-char glyph; if so, advance to the actual glyph.
9964
99652008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9966
9967 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9968
9969 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9970 (.m.o): Use it.
9971 * config.in: Regenerate.
9972
99732008-08-07 Chong Yidong <cyd@stupidchicken.com>
9974
9975 * xdisp.c (redisplay_window): Revert last change.
9976 (try_window): Check bottom scroll margin too.
9977
99782008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9979
9980 * config.in: Regenerate.
9981
9982 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9983 -list-load-path-shadows'.
9984 (nsgui.h): Reduce number of things depending on it.
9985
99862008-08-06 Chong Yidong <cyd@stupidchicken.com>
9987
9988 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9989 instead of window-end which does the wrong thing at eob.
9990 (try_cursor_movement): Minor optimization.
9991 (redisplay_window): If scroll margin is defined, don't assume
9992 window doesn't need scrolling.
9993
99942008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9995
9996 * config.in: Regenerate.
9997
9998 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9999 (mostlyclean): Don't delete *.d under NS.
10000
10001 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
10002
100032008-08-06 Kenichi Handa <handa@m17n.org>
10004
10005 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
10006
100072008-08-06 Andreas Schwab <schwab@suse.de>
10008
10009 * config.in: Regenerate.
10010
100112008-08-05 Chong Yidong <cyd@stupidchicken.com>
10012
10013 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
10014 forcing a window start.
10015
10016 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
10017 (auto_save_1): Update modtime when auto-save-list-file-name is on.
10018
100192008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10020
10021 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
10022 argument.
10023
100242008-08-05 Juanma Barranquero <lekktu@gmail.com>
10025
10026 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
10027 <scroll-down-aggressively, before-change-functions>:
10028 <after-change-functions>: Reflow docstrings.
10029
100302008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 10031 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
10032
10033 Dock menu customization, based on a patch by Ken Raeburn, plus some
10034 other fixes.
10035 * nsmenu.m (dockMenu): New variable.
10036 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
10037
10038 * nsterm.h (dockMenu): Declare.
10039
10040 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
10041 (ns_term_init): Initialize dockMenu.
10042 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
10043 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
10044 left.
10045
10046 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
10047
100482008-08-04 Chong Yidong <cyd@stupidchicken.com>
10049
10050 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
10051
10052 * config.in: Regenerate.
10053
100542008-08-04 Seiji Zenitani <zenitani@mac.com>
10055
10056 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
10057
100582008-08-04 Chong Yidong <cyd@stupidchicken.com>
10059
10060 * nsterm.h (find_and_call_menu_selection): Fix prototype.
10061
100622008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10063
10064 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
10065
10066 * keyboard.h: Comment an #endif.
10067
10068 * lisp.h (have_menus_p): Adjust comment.
10069
10070 * menu.c (find_and_return_menu_selection): Fix comparison with
10071 client_data.
10072
10073 * nsmenu.m (popup_activated_flag): New variable.
10074 (popup_activated): New function.
10075 (menu-or-popup-active-p): New exported lisp definition.
10076 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
10077 when popup done.
10078 (ns_popup_dialog): Set popup_activated_flag.
10079
10080 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
10081 version for GNUstep (handled by conditional typedef in nsterm.m).
10082 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
10083 in rgb.txt).
10084
10085 * process.c (init_process): Use DARWIN_OS, not DARWIN.
10086
10087 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
10088
10089 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
10090
10091 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
10092 shortcircuit if popup_activated like GTK and X toolkit.
10093
10094 * m/inter386.h: Change DARWIN to DARWIN_OS.
10095
10096 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
10097 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
10098 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
10099 comment on NO_SOCK_SIGIO.
10100
101012008-08-03 Chong Yidong <cyd@stupidchicken.com>
10102
10103 * nsterm.m (windowDidResize): Remove stopModal call.
10104
101052008-08-03 Andreas Schwab <schwab@suse.de>
10106
10107 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
10108 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
10109
101102008-08-02 Chong Yidong <cyd@stupidchicken.com>
10111
10112 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
10113 Don't use uninitialized pointer variable when using getrlimit.
10114
101152008-08-02 Jason Rumney <jasonr@gnu.org>
10116
10117 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
10118
101192008-08-02 Eli Zaretskii <eliz@gnu.org>
10120
10121 * alloc.c (NSTATICS): Bump to 0x640.
10122
10123 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
10124
10125 * lisp.h: Add prototype for directory_files_internal.
10126
10127 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
10128 New functions.
10129 (syms_of_process): Defsubr them. Add initializations for various
10130 Q* symbols used in procfs_system_process_attributes.
10131 (procfs_list_system_processes, procfs_system_process_attributes)
10132 [HAVE_PROCFS]: New functions.
10133 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
10134 (procfs_get_total_memory): New functions.
10135
101362008-08-01 Juanma Barranquero <lekktu@gmail.com>
10137
10138 * xfaces.c (Fx_load_color_file): Fix previous change;
10139 it is #ifdef WINDOWSNT, not WINDOWS_NT.
10140
101412008-08-01 Michael Albinus <michael.albinus@gmx.de>
10142
10143 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
10144
101452008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10146
10147 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
10148
101492008-08-01 Chong Yidong <cyd@stupidchicken.com>
10150
10151 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
10152
10153 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
10154 define NSApplicationDelegateReplySuccess.
10155 (EmacsView -converstationIdentifier): Use long instead of
10156 NSInteger for GNUstep, since it doesn't have NSInteger.
10157
10158 * xmenu.c: Revert last change.
10159
10160 * keyboard.h: Fix last change.
10161
101622008-08-01 Juanma Barranquero <lekktu@gmail.com>
10163
10164 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
10165 on Windows.
10166
101672008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10168
10169 Warning clearing and clean-up in NS port.
10170 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
10171 Add prototypes.
10172 * nsgui.h (FACE_DEFAULT): Remove, unused.
10173 (XGCValues): Change colors to unsigned long.
10174 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
10175 nsterm.m.
10176 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
10177 (ns_list_fonts): Remove, unused.
10178 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
10179 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
10180 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
10181 (nsfont_draw): Compare face colors to 0, not nil.
10182 * nsmenu.m (struct widget_value): Drop unneeded declaration.
10183 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
10184 (-addSubmenuWithTitle:): Use NSMenuItem class.
10185 (ns_popup_menu): Use NO, not NULL, for enabled setting.
10186 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
10187 (ns_clip_to_row): Make gc arg a BOOL.
10188 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
10189 ns_clip_to_row() call.
10190 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
10191 used). Cast FRAME_FONT assignments.
10192 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
10193 (ns_string_to_lispmod): Change arg to const char.
10194 (ns_term_init): Use NSMenuItem class.
10195 (EmacsApp -openFile:): Move to different section of file.
10196 (EmacsApp -application:openFiles:): Don't return a value, call
10197 -replyToOpenOrPrint:.
10198 (EmacsView -keyDown:): Fix up cast.
10199 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
10200 (EmacsView -menuDown:): Cast tag in call to
10201 find_and_call_menu_selection().
10202 (ns_list_fonts): Remove, unused.
10203 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
10204 (ns_fontname_to_xlfd): Make static.
10205 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
10206 Remove prototypes (now in keyboard.h).
10207 (next_menubar_widget_id): Remove, unused.
10208 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
10209 Remove prototypes (now in keyboard.h).
10210 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
10211
102122008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
10213
10214 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
10215 (floatfns.o): Depend on syssignal.h.
10216 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
10217
10218 * systty.h: Fix previous change that removed BSD_TERMIOS.
10219 Add comments to #ifdefs.
10220
102212008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10222
10223 * w32fns.c (w32-load-color-file): Remove.
10224 (x-open-connection): Use renamed Fx_load_color_file.
10225 * xfaces.c (x-load-color-file): Add.
10226 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
10227 Emacs.clr.
10228 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
10229
102302008-07-31 Michael Albinus <michael.albinus@gmx.de>
10231
10232 * dbusbind.c (Fdbus_call_method_asynchronously)
10233 (Fdbus_method_error_internal): New defuns.
10234 (xd_read_message): Handle also reply messages.
10235 (Vdbus_registered_functions_table): Extend docstring.
10236
102372008-07-31 Juanma Barranquero <lekktu@gmail.com>
10238
10239 * keyboard.c (gobble_input): Fix previous change.
10240
102412008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10242
10243 * bitmaps/README:
10244 * xfns.c:
10245 * termcap.c:
10246 * term.c:
10247 * syswait.h:
10248 * systty.h:
10249 * systime.h:
10250 * syssignal.h:
10251 * sysdep.c:
10252 * process.h:
10253 * process.c:
10254 * print.c:
10255 * ndir.h:
10256 * lread.c:
10257 * keyboard.c:
10258 * getpagesize.h:
10259 * floatfns.c:
10260 * fileio.c:
10261 * emacs.c:
10262 * doc.c:
10263 * dispnew.c:
10264 * dired.c:
10265 * data.c:
10266 * callproc.c:
10267 * buffer.c:
10268 * README:
10269 * Makefile.in:
10270 * s/template.h:
10271 * s/msdos.h:
10272 * m/vax.h: Remove VMS support.
10273 * s/vms.h:
10274 * vlimit.h:
10275 * uaf.h:
10276 * temacs.opt:
10277 * param.h:
10278 * ioctl.h: Remove file.
10279
102802008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10281
10282 * s/ms-w32.h (MULTI_KBOARD): Remove.
10283 * xterm.c:
10284 * xselect.c:
10285 * xfns.c:
10286 * window.c:
10287 * w32term.c:
10288 * w32fns.c:
10289 * terminal.c:
10290 * termhooks.h:
10291 * term.c:
10292 * sysdep.c:
10293 * keyboard.h:
10294 * keyboard.c:
10295 * frame.h:
10296 * frame.c:
10297 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10298 * config.in: Regenerate.
10299
103002008-07-30 Jason Rumney <jasonr@gnu.org>
10301
10302 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10303
10304 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10305 (w32font_open_internal): Get unicode version of textmetrics.
10306 Don't enable or disable glyph indices here.
10307 (w32font_open): Disable use of glyph indices.
10308
10309 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10310
103112008-07-30 Chong Yidong <cyd@stupidchicken.com>
10312
10313 * minibuf.c (Vread_buffer_function): Doc fix.
10314
103152008-07-30 John Paul Wallington <jpw@pobox.com>
10316
10317 * minibuf.c (read_buffer_completion_ignore_case): New var.
10318 (Fread_buffer): Use it.
10319
103202008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10321
10322 * systty.h (sensemode): Remove empty #if. Remove reference to
10323 BSD_TERMIOS, unused.
10324
10325 * sysdep.c: Remove reference to DGUX.
10326 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10327
10328 * config.in: Regenerate.
10329
103302008-07-30 Jason Rumney <jasonr@gnu.org>
10331
10332 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10333
103342008-07-29 Jason Rumney <jasonr@gnu.org>
10335
10336 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10337 is populated.
10338 (uniscribe_encode_char): Always use uniscribe.
10339 Avoid using context if cache is populated.
10340
103412008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10342
10343 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10344 open menu.
10345
10346 * gtkutil.c (menu_nav_ended): Remove.
10347 (create_menus): Remove signal connect for menu_nav_ended.
10348
103492008-07-28 Chong Yidong <cyd@stupidchicken.com>
10350
10351 * xdisp.c (redisplay_window): Check return value of
10352 compute_window_start_on_continuation_line before forcing a window
10353 start.
10354
103552008-07-28 Jason Rumney <jasonr@gnu.org>
10356
10357 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10358
10359 * w32term.c (w32_enable_unicode_output, cleartype_active):
10360 Remove obsolete display options.
10361 (x_draw_glyph_string_background): Don't use old cleartype_active
10362 workaround.
10363 (w32_initialize): Remove cleartype_active initialization.
10364 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10365
103662008-07-28 Andreas Schwab <schwab@suse.de>
10367
10368 * lisp.h (init_weak_hash_tables, syms_of_font)
10369 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10370 (remove_hash_entry): Don't declare.
10371 * eval.c (maybe_call_debugger): Make static and move before use.
10372 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10373 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10374 * xterm.h (x_set_frame_alpha): Declare.
10375
103762008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10377
10378 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10379 (create_menus): Connect selection-done to menu_nav_ended.
10380
103812008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10382
10383 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10384 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10385 parameter with read of 'alpha' one.
10386 (Qns_frame_parameter): Remove.
5582fbc7 10387 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10388 (next-selection-coding-system, Vselection_coding_system)
10389 (Vnext_selection_coding_system): Drop.
10390
103912008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10392
10393 * nsfns.m (do-applescript, do_applescript): Rename to
10394 ns-do-applescript, ns_do_applescript, and move within file.
10395
103962008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10397
10398 Remove support for Mac Carbon.
10399 * mactoolbox.c:
10400 * macterm.h:
10401 * macterm.c:
10402 * macselect.c:
10403 * macmenu.c:
10404 * macgui.h:
10405 * macfns.c:
10406 * mac.c: Remove file.
10407 * s/darwin.h:
10408 * m/intel386.h:
10409 * xfaces.c:
10410 * xdisp.c:
10411 * window.c:
10412 * tparam.c:
10413 * termhooks.h:
10414 * termcap.c:
10415 * term.c:
10416 * syssignal.h:
10417 * sysselect.h:
10418 * sysdep.c:
10419 * process.c:
10420 * lread.c:
10421 * lisp.h:
10422 * keyboard.c:
10423 * image.c:
10424 * fringe.c:
10425 * frame.h:
10426 * frame.c:
10427 * fontset.c:
10428 * font.h:
10429 * font.c:
10430 * fns.c:
10431 * fileio.c:
10432 * emacs.c:
10433 * dispnew.c:
10434 * dispextern.h:
10435 * config.in:
10436 * atimer.c:
2ae37cf0 10437 * Makefile.in: Remove code for Carbon.
aac0c6e3 10438
f0131492 104392008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10440
10441 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10442
104432008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10444
10445 * macterm.h (kCGBitmapByteOrder32Host): New define for
10446 non-universal SDKs.
10447
10448 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10449 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10450
10451 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10452 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10453
104542008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10455
10456 * w32inevt.c: Include dispextern.h.
10457
104582008-07-26 Andreas Schwab <schwab@suse.de>
10459
10460 * print.c (print_object): Fix off-by-one in last change.
10461
104622008-07-25 Juanma Barranquero <lekktu@gmail.com>
10463
10464 * term.c (syms_of_term): Don't initialize default_orig_pair,
10465 default_set_foreground and default_set_background on Windows.
10466
104672008-07-25 Jason Rumney <jasonr@gnu.org>
10468
10469 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10470 ScriptItemize. Clean up return value checking. Remove unused
10471 variables.
10472 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10473 shaping engine.
10474
10475 * w32font.c (w32font_has_char): Handle the case where we can't
10476 determine the script for a character.
10477
104782008-07-25 Chong Yidong <cyd@stupidchicken.com>
10479
10480 * term.c (syms_of_term): Initialize default_orig_pair,
10481 default_set_foreground, and default_set_background.
10482
10483 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10484 clash (bug#86).
10485 (getloadavg): Callers changed.
10486
10487 * image.c (svg_load_image): Fix last change.
10488 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10489 image size is valid. Use g_object_unref instead of deprecated
10490 rsvg_handle_free to free rsvg handle.
10491 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10492
104932008-07-25 Jason Rumney <jasonr@gnu.org>
10494
10495 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10496 surrogates before looking up glyph index.
10497 (w32font_text_extents): Encode as surrogates if falling back to
10498 functions that need UTF-16 wide chars.
10499
10500 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10501 BMP as surrogates before looking up glyph index.
10502
105032008-07-25 Chong Yidong <cyd@stupidchicken.com>
10504
10505 * image.c (svg_load_image): Check for failure in return value of
10506 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10507
105082008-07-25 Jason Rumney <jasonr@gnu.org>
10509
10510 * w32font.c (Fx_select_font): Reverse sense of second arg.
10511
105122008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10513
10514 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10515 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10516
10517 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10518 (PURESIZE): Use it.
10519
105202008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10521
10522 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10523 * m/alpha.h (TEXT_END):
10524 * m/ibmrs6000.h (TEXT_END):
10525 * m/macppc.h (TEXT_END):
10526 * s/darwin.h (TEXT_END):
10527 * s/msdos.h (TEXT_END): Remove, unused.
10528 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10529 * s/cygwin.h: Remove comment.
10530
10531 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10532 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10533 * m/intel386.h (DOT_GLOBAL_START):
10534 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10535 (USG): Remove, file not used on USG platforms.
10536
10537 * Makefile.in (HAVE_X11): Remove empty #else.
10538
105392008-07-24 Andreas Schwab <schwab@suse.de>
10540
10541 * fileio.c (Finsert_file_contents): Properly adjust undo list
10542 after format conversion.
10543
105442008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10545
10546 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10547 (menu_nav_ended): Remove.
10548 (create_menus): Remove signal connect for menu_nav_ended.
10549 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10550 create_menus.
10551 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10552
105532008-07-23 Jason Rumney <jasonr@gnu.org>
10554
10555 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10556 with opened font.
10557 (w32font_open): Set font type to gdi.
10558
10559 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10560
105612008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10562
10563 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10564 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10565 defines it.
10566 * unexec.c (ADDR_CORRECT): Define unconditionally.
10567
10568 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10569
10570 * unexec.c: Remove code depending on !COFF and USG, the file is
10571 not used for such systems.
10572
10573 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10574 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10575 (LD_SWITCH_SYSTEM_1): Remove, update users.
10576
10577 * s/darwin.h (DATA_END):
10578 * m/intel386.h (DATA_END):
10579 * m/ibmrs6000.h (DATA_END):
10580 * m/alpha.h (DATA_END): Remove, unused.
10581
10582 * config.in: Regenerate.
10583 * s/ms-w32.h (subprocesses): Define unconditionally.
10584 * s/template.h (subprocesses): Update comment.
10585 * s/vms.h (subprocesses):
10586 * s/usg5-4.h (subprocesses):
10587 * s/hpux10-20.h (subprocesses):
10588 * s/gnu-linux.h (subprocesses):
10589 * s/cygwin.h (subprocesses):
10590 * s/bsd-common.h (subprocesses):
10591 * s/aix4-2.h (subprocesses):
10592 * s/darwin.h (subprocesses): Do not define, defined by default now.
10593
10594 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10595 Remove all references.
10596 (temacs): Add GNUstep specific ld flags.
10597
10598 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10599 similarly to what X does.
10600
106012008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10602
10603 * nsfns.m (x-list-fonts): Remove.
10604 (syms_of_nsfns): Drop the x-list-fonts declaration.
10605 * nsterm.m: Get rid of remaining "//" comments.
10606
106072008-07-22 Chong Yidong <cyd@stupidchicken.com>
10608
10609 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10610
10611 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10612 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10613 (Fns_own_selection_internal, Fx_disown_selection_internal)
10614 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10615
10616 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10617 ... */' style of docstrings. Doc fixes.
10618
106192008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10620
10621 * terminfo.c (UP, BC, PC): Undo previous change.
10622
10623 * nsfns.m: Rename ns prefixed functions/variables to the
10624 corresponding x versions. Update references.
10625
106262008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10627
10628 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10629
106302008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10631
10632 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10633 Remove forwarding functions.
10634 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10635 non-static.
10636 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10637 non-static.
10638 (ns_frame_parm_handlers): Use the new names.
10639 (syms_of_nsfns): Move to the end of file.
10640
10641 * nsterm.m (syms_of_nsterm): Move to the end of file.
10642
10643 * dispnew.c (init_display): Remove code for X10.
10644
106452008-07-22 Jason Rumney <jasonr@gnu.org>
10646
10647 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10648 bare drive.
10649
106502008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10651
10652 * nsterm.m (syms_of_nsterm): Remove debugging println.
10653
106542008-07-22 David Reitter <david.reitter@gmail.com>
10655
10656 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10657 Carbon implementation of the same functionality: execute arbitrary
10658 AppleScript code.
10659
106602008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10661
10662 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10663 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10664 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10665 (Fx_display_mm_height, Fx_display_mm_width)
10666 (Fx_display_backing_store, Fx_display_visual_class)
10667 (Fx_display_save_under, Fx_open_connection)
10668 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10669 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10670 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10671 (Fx_display_pixel_width, Fx_display_pixel_height)
10672 (Fx_display_usable_bounds, Fx_display_planes)
10673 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10674 ... */' style of docstrings.
10675
106762008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10677
10678 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10679 on this platform.
10680 (mips):
10681 * m/iris4d.h (mips): Do not define.
10682 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10683
10684 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10685
10686 * image.c:
10687 * nsfns.m:
10688 * nsselect.m:
10689 * nsterm.h:
10690 * nsterm.m: Rename ns prefixed functions/variables to the
10691 corresponding x versions. Update references.
10692
10693 * m/ibms390x.h (NO_REMAP): Do not undefine.
10694
10695 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10696
106972008-07-21 Chong Yidong <cyd@stupidchicken.com>
10698
10699 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10700 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10701 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10702 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10703 (Fns_display_mm_height, Fns_display_mm_width)
10704 (Fns_display_backing_store, Fns_display_visual_class)
10705 (Fns_display_save_under, Fns_open_connection)
10706 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10707 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10708 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10709 (Fns_display_pixel_width, Fns_display_pixel_height)
10710 (Fns_display_usable_bounds, Fx_display_planes)
10711 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10712
107132008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10714
10715 * print.c (print_object): Check print_depth before searching for
10716 circularities.
10717
107182008-07-21 Michael Albinus <michael.albinus@gmx.de>
10719
10720 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10721 only sprintf.
10722
107232008-07-21 Kenichi Handa <handa@m17n.org>
10724
10725 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10726
107272008-07-20 Andreas Schwab <schwab@suse.de>
10728
10729 * syntax.c (find_start_pos, find_start_value)
10730 (find_start_value_byte, find_start_begv, find_defun_start)
10731 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10732
107332008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10734
10735 * s/sol2-3.h: Insert contents of s/sol2.h.
10736 (LD_SWITCH_SYSTEM): Remove redundant definition.
10737 * s/sol2.h: Remove, unused.
10738
107392008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10740
10741 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10742
107432008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10744
10745 * Makefile.in (ns_appdir): Fix typo in find command.
10746
107472008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10748
10749 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10750
10751 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10752 added not supported anymore.
10753
10754 * s/usg5-4-2.h (LIBS_SYSTEM):
10755 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10756
10757 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10758 * s/lynxos.h (GETPGRP_NO_ARG):
10759 * s/hpux10-20.h (NO_SIOCTL_H):
10760 * s/gnu.h (GETPGRP_NO_ARG):
10761 * s/gnu-linux.h (NO_SIOCTL_H):
10762 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10763 * s/cygwin.h (GETPGRP_NO_ARG):
10764 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10765 (C_DEBUG_SWITCH): Remove duplicate definition.
10766
10767 * m/ibms390.h: Remove boilerplate comments.
10768
10769 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10770
10771 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10772 (wait_reading_process_output): Remove code for SunOS, platform not
10773 supported anymore. Use SOLARIS2 instead of sun.
10774
107752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10776
10777 * font.c (font_open_by_name): Under NS, default lface height to zero.
10778 (font_open_for_lface): Under NS, set size based on frame fontsize.
10779 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10780 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10781
107822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10783
10784 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10785 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10786 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10787 YES/NO.
10788 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10789 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10790 * Makefile.in (clean): Clear out build destination dir.
10791
107922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10793
10794 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10795 xterm, xselect.
10796 * lisp.h: Remove declaration of hash_remove.
10797 * nsgui.h: Remove redefinitions of hash_remove.
10798 * fns.c (hash_remove): Rename to hash_remove_from_table.
10799
108002008-07-19 Seiji Zenitani <zenitani@mac.com>
10801
10802 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10803 strdup() the family UTF8String before modifying it.
10804
108052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10806
10807 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10808 NS_FACE_BACKGROUND with 0 instead of nil.
10809 * nsfont.m (nsfont_draw): Same.
10810
108112008-07-19 Chong Yidong <cyd@stupidchicken.com>
10812
10813 * nsfns.m (ns_set_background_color): Fix crash.
10814
108152008-07-18 Chong Yidong <cyd@stupidchicken.com>
10816
10817 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10818
108192008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10820
10821 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10822
108232008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10824
10825 * gtkutil.c: Include <config.h> instead of "config.h".
10826
10827 * lisp.h (Foverlay_buffer): Add EXFUN.
10828
10829 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10830 child process to complete child_setup. Undo 2005-09-21 change.
10831
10832 * s/darwin.h: Mention setsid after vfork.
10833
108342008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10835
10836 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10837 Depend on macgui.h.
10838
10839 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10840 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10841
10842 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10843 and f19.
10844 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10845
10846 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10847 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10848 Remove enumerators.
10849
10850 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10851 Check if FACE_FROM_ID returns NULL.
10852
108532008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10854
10855 * w32inevt.c (change_frame_size): Remove extern declaration.
10856 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10857 change_frame_size.
10858
108592008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10860
10861 * getloadavg.c: Revert last change (2008-07-15).
10862
108632008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10864
10865 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10866 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10867 from configure.
10868
108692008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10870
10871 * s/sol2.h:
10872 * s/sol2-4.h: Reorganize conditionals.
10873
10874 * ecrt0.c: Remove code depending on m68000, not used anymore.
10875
10876 * fns.c (hash_remove): Make static.
10877 * lisp.h (hash_remove): Don't prototype.
10878
10879 * m/ibmrs6000.h:
10880 * m/ibms390x.h:
10881 * m/macppc.h: Remove boilerplate comments.
10882
10883 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10884 Solaris, which does not need them.
10885
10886 * m/vax.h: Remove comments about unsupported systems.
10887
10888 * s/darwin.h: Reorganize ifdefs.
10889
108902008-07-17 Andreas Schwab <schwab@suse.de>
10891
10892 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10893
108942008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10895
10896 Use SDATA. Follow coding convention of placing operators at
10897 beginning of next line rather than end of previous line, and placing
10898 spaces around infix operators.
10899
10900 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10901 in case it was defined already.
10902 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10903 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10904 ns_default.
10905 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10906 Lisp_Objects.
10907 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10908 (ns_defined_color, ns_color_to_lisp): Declare.
10909 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10910 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10911 it's accepted even with USE_LISP_UNION_TYPE.
10912 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10913 (update_frame_tool_bar): Remove apparently obsolete tests for
10914 non-integerness of f->tool_bar_lines.
10915 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10916 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10917 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10918 (nsfont_open): Don't confuse NULL for Qnil.
10919 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10920 * menu.h (find_and_call_menu_selection):
10921 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10922 (find_and_return_menu_selection): Always return something.
10923 * frame.h: Include dispextern.h for Display_Info.
10924 (display_x_get_resource): Declare.
10925
109262008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10927
10928 * syntax.c: Remove stdio.h include accidentally introduced in
10929 Emacs.app commit.
10930 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10931 NS_IMPL_COCOA.
10932 * keyboard.c (handle_async_input, input_available_signal): Remove
10933 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10934
109352008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10936
10937 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10938 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10939 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10940 Use SDATA.
10941
10942 * keymap.c: Remove all NS-specific code.
10943 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10944 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10945 where_is_preferred_modifier, return a different value depending on how
10946 preferred is the binding.
10947 (where_is_internal): Adjust accordingly.
10948 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10949 Adjust to new preferred_sequence_p.
10950 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10951 * keyboard.c (parse_solitary_modifier): Not static any more.
10952 * keyboard.h (parse_solitary_modifier): Declare.
10953
109542008-07-16 Andreas Schwab <schwab@suse.de>
10955
10956 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10957 of easymenu.
10958
109592008-07-16 Chong Yidong <cyd@stupidchicken.com>
10960
10961 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10962 that we don't move off the line.
10963
109642008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10965
10966 * keyboard.c (Qsuper): Remove.
10967 (parse_menu_item): Don't call where_is_internal specially for NS.
10968
109692008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10970
10971 * s/gnu-linux.h: Remove boilerplate comments.
10972
10973 * m/alpha.h (__ELF__): Consolidate conditions.
10974
10975 * m/m68k.h (linux): Use GNU_LINUX instead.
10976 Remove boilerplate comments.
10977
10978 * m/intel386.h: Undo refactoring from previous change.
10979 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10980 too, remove dead code.
10981 (linux): Use GNU_LINUX instead.
10982
109832008-07-16 Jason Rumney <jasonr@gnu.org>
10984
10985 * w32gui.h: Repeat 26 June changes lost by last change.
10986
109872008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10988
10989 * systty.h: Remove code for Aix on 386, unsupported platform.
10990
10991 * s/ms-w32.h: Remove boilerplate comments.
10992 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10993
10994 * s/gnu-linux.h (TERM): Remove support.
10995 (HAVE_SYSVIPC): Remove, unused.
10996 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10997 for this system.
10998
10999 * process.c: Remove support for IRIS, unused.
11000 Remove support for TERM, not relevant anymore.
11001
11002 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
11003 used with the definition.
11004
11005 * s/aix4-2.h (static): Do not undef.
11006
11007 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
11008 only used on Aix.
11009 (HAVE_SYSVIPC): Remove, unused.
11010
11011 * m/hp800.h (CANNOT_DUMP): Do not undef.
11012
11013 * m/alpha.h: Fix comment.
11014
11015 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
11016 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
11017 used by this configuration.
11018 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
11019 * unexec.c: Remove code depending on HPUX and
11020 USG_SHARED_LIBRARIES, not used with this file. Remove code
11021 depending on IRIS, unused. Remove if 0-ed code.
11022
11023 * s/template.h: Remove comments about static.
11024
11025 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
11026 Remove if 0-ed code.
11027 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
11028 were the same as the default.
11029 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
11030 Remove boilerplate comments.
11031 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
11032 (HAVE_SYSVIPC): Remove, unused.
11033 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
11034
11035 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11036 Remove boilerplate comments.
11037 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11038 Remove boilerplate comments.
11039 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
11040 Remove boilerplate comments.
11041 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
11042
11043 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
11044 USG systems which do not use DATA_SEG_BITS.
11045 Refactor code. Remove boilerplate comments.
11046
11047 * m/ibms390.h:
11048 * m/m68k.h:
11049 * s/bsd-common.h:
11050 * s/cygwin.h:
11051 * s/darwin.h:
11052 * s/freebsd.h:
11053 * s/gnu.h:
11054 * s/msdos.h: Remove boilerplate comments.
11055
11056 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 11057 do not use this file.
aac0c6e3
MR
11058 (IRIS_4D): Remove, unused.
11059
11060 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 11061 do not use this file.
aac0c6e3
MR
11062 (SIGN_EXTEND_CHAR):
11063 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
11064 * unexmips.c: Remove file, unused.
11065
11066 * editfns.c (Fuser_full_name): Replace the only use of
11067 USER_FULL_NAME with its value.
11068 * config.in: Regenerate.
11069
110702008-07-16 David Reitter <david.reitter@gmail.com>
11071
11072 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
11073 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
11074
110752008-07-16 Glenn Morris <rgm@gnu.org>
11076
11077 * emacs.c (system-type): Doc fix.
11078
110792008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
11080
11081 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
11082 If the cache doesn't work, let's fix it, rather than work around it.
11083
110842008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11085
11086 * Makefile.in: Correct additions for nsfont.o in last commit.
11087 * nsfont.m: New file (forgot last commit).
11088
110892008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
11090
11091 * callproc.c (set_initial_environment): Initialize
11092 Vprocess_environment under CANNOT_DUMP (fixes crash when
11093 batch-compiling for bootstrap).
11094
110952008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 11096 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11097
11098 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
11099 fix crash due to different init order.
11100
111012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11102
11103 Changes and additions for NeXTstep windowing system (Cocoa and
11104 GNUstep) support.
11105
11106 * Makefile.in:
11107 * config.in: Support defines and build commands for NS port.
11108 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
11109 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
11110 * dispextern.h: Include nsgui.h and add needed typedefs under NS
11111 windowing.
11112 (struct face): Add synth_ital field.
11113 * dispnew.c: Include nsterm.h when compiling under NS windowing.
11114 (init_display): Initialize Vinitial_window_system to "ns" when so
11115 compiled.
11116 * emacs.c: Include GSConfig.h when compiling under GNUstep.
11117 (display_arg): Use under NS.
11118 (main): Under NS, allocate autorelease pool and handle command line
11119 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
11120 (standard_args): Add NS-specific args.
11121 (shut_down_emacs): Shut down NS terminal if compiled under NS.
11122 * font.c (DEFAULT_ENCODING): New variable.
11123 (font_find_for_lface): Use it.
11124 (syms_of_font): Load syms_of_nsfont under NS.
11125 * font.h: Declare nsfont_driver when compiled under NS.
11126 * fontset.c: When compiling under NS, include nsterm.h.
11127 (fontset_from_font): Autoconstruct fontset under NS.
11128 * frame.c (various): Under NS, include nsterm.h, add Qns window system
11129 symbol, document and use it.
11130 (do_switch_frame): When for_deletion under Cocoa, add
11131 Fraise_frame(Qnil).
11132 (x_set_frame_parameters): Ensure font attribute changes are picked up.
11133 (x_get_arg): Allow "yes" and "no" as boolean values.
11134 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
11135 Qright under Cocoa.
11136 (focus-follows-mouse): Default to 0 under NS.
11137 * frame.h (enum output_method): Add output_ns.
11138 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
11139 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
11140 (FRAME_WINDOW_P): NS-specific definition.
11141 * fringe.c (max_used_fringe_bitmap): Make public.
11142 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
11143 (getloadavg): Use NeXT code under descendant OS's.
11144 * image.c (includes and header section, x_create_bitmap_from_data)
11145 (x_create_bitmap_from_file, free_bitmap_record, image_background)
11146 (image_background_transparent, x_clear_image_1)
11147 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11148 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
11149 (x_to_xcolors, x_from_xcolors, x_disable_image)
11150 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
11151 other GUIs, including XPM support using code originally written for
11152 Carbon GUI.
11153 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
11154 using NS API.
11155 (image_ascent): Use font metrics macros instead of direct struct field
11156 access.
11157 * keyboard.c (includes): Add nsterm.h when compiling under NS.
11158 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
11159 Also, handle NS as GTK for menu bar purposes.
11160 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
11161 toolkit where they differ.
11162 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
11163 use cachelist, still needed under NS.
11164 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
11165 (struct widget_value): Define it here for menu.c.
11166 * keymap.c (includes): Include modifier internals.
11167 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
11168 NS.
11169 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
11170 support for preferring sequences using certain modifiers, specified by
11171 the FIRSTONLY argument.
11172 * lisp.h (hash_remove): Rename to avoid name clash when compiling
11173 under NS GNUstep implementation.
11174 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
11175 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
11176 * menu.c: Include nsterm.h under NS.
11177 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
11178 (free_menubar_widget_tree_value, update_submenu_strings)
11179 (find_and_call_menu_selection): Treat NS as X and NT.
11180 (find_and_return_menu_selection): New function, used for popup menus.
11181 * nsgui.h:
11182 * nsterm.h:
11183 * nsfns.m:
11184 * nsimage.m:
11185 * nsmenu.m:
11186 * nsselect.m:
11187 * nsterm.m: New files.
11188 * process.c (wait_reading_process_output): Under NS, call ns_select()
11189 instead of plain select().
11190 * syntax.c (char_quoted): Under NS, avoid a crash when called near
11191 beginning of buffer.
11192 * sysselect.h (init_process): Rename when compiling under Cocoa to
11193 avoid name conflict.
11194 * termhooks.h (display_info): Add ns_display_info to union.
11195 * terminal.c (Fterminal_live_p): Add ns to terminal types.
11196 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
11197 COCOA environment.
11198 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
11199 unexec() signature. (Note, this will dump, but the resulting file
11200 crashes; unexosx is used instead; keeping around for reference and
11201 possible aid in getting dump working under GNUstep.)
11202 * w32gui.h (button_type, widget_value): Remove definitions (now in
11203 keyboard.h).
11204 * window.c: Include nsterm.h when compiling under NS.
11205 * xdisp.c (includes): Include nsterm.h when compiling under NS.
11206 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
11207 other GUI windowing systems.
11208 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
11209 GTK.
11210 (x_consider_frame_title): Under NS, set icon type and frame
11211 modified-state indicator; use ns_set_name_as_filename() when using
11212 formatted title.
11213 (update_window_cursor): Make public when compiling under NS.
11214 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
11215 (hourglass_atimer, Vhourglass_delay
11216 * xfaces.c (header section, init_frame_faces, clear_font_table)
11217 (defined_color, unload_color, x_face_list_fonts)
11218 (prepare_face_for_display): Add NS support parallel to other GUIs.
11219 Emulate GCs like other non-X GUIs.
11220 (split_font_name): Don't lowercase font name under NS.
11221 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
11222 under NS.
11223 * s/darwin.h: Add support for compilation under NS.
11224
112252008-07-15 Jason Rumney <jasonr@gnu.org>
11226
11227 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
11228 (w32_show_hourglass): Rename from show_hourglass.
11229 (w32_hide_hourglass): Rename from hide_hourglass.
11230 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
11231 (Vhourglass_delay): Declare extern.
11232 (hourglass_started): Remove.
11233
11234 * xdisp.c (Vhourglass_delay): Remove static.
11235 (hourglass_started, start_hourglass, cancel_hourglass):
11236 Don't include these versions on WINDOWSNT.
11237
112382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
11239
11240 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
11241 variables (formerly in xfns.c).
11242 (show_hourglass, hide_hourglass): New prototypes (same).
11243 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
11244 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
11245 in xfns.c).
11246 (syms_of_xdisp): Declare/initialize display-hourglass,
11247 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
11248 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
11249 formerly in xfns.c.
11250 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11251 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11252 (start_hourglass, cancel_hourglass): Remove.
11253 (show_hourglass, hide_hourglass): Remove prototypes and static
11254 modifiers.
11255 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
11256 hourglass_atimer, hourglass_shown_p declaration/initialization.
11257 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
11258 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
11259 (start_hourglass, cancel_hourglass): Remove.
11260 (show_hourglass, hide_hourglass): Remove prototypes and static
11261 modifiers.
11262 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
11263 hourglass_atimer, hourglass_shown_p declaration/initialization.
11264 * w32fns.c (display_hourglass_p, Vhourglass_delay)
11265 (DEFAULT_HOURGLASS_DELAY): Remove.
11266 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11267 hourglass_shown_p declaration/initialization.
11268
112692008-07-14 Jason Rumney <jasonr@gnu.org>
11270
11271 * w32fns.c (w32_get_arg): Remove wrapper function.
11272 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11273 directly.
11274 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11275
112762008-07-14 Kenichi Handa <handa@m17n.org>
11277
11278 * xfont.c (xfont_open): Add workaround for X's bug.
11279
112802008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11281
11282 * fontset.c: Include <stdio.h> unconditionally.
11283
112842008-07-13 Michael Albinus <michael.albinus@gmx.de>
11285
11286 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11287 for filtering.
11288
112892008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11290
11291 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11292
11293 * m/macppc.h:
11294 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11295
11296 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11297 (SPECIAL_EMACS_INT):
11298 * m/ia64.h (SPECIAL_EMACS_INT):
11299 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11300 * s/gnu.h (NLIST_STRUCT):
11301 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11302 * s/gnu-linux.h (LINUX):
11303 * s/msdos.h (HAVE_FACES):
11304 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11305
11306 * systty.h:
11307 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11308 anymore.
11309
113102008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11311
11312 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11313 always defined as int.
11314
11315 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11316 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11317 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11318 * s/freebsd.h (HAVE_WAIT_HEADER):
11319 * s/bsd-common.h (HAVE_UNION_WAIT):
11320 * s/aix4-2.h (HAVE_WAIT_HEADER):
11321 * m/mips.h (HAVE_UNION_WAIT):
11322 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11323 (COFF, static): Do not define, they are undefined later in the file.
11324
11325 * process.c (update_status): Don't use a union.
11326 (status_convert):
11327 (sigchld_handler): Use int instead of WAITTYPE.
11328
113292008-07-12 Chong Yidong <cyd@stupidchicken.com>
11330
11331 * indent.c (Fvertical_motion): Restore hscroll before moving to
11332 goal column.
11333
113342008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11335
11336 * lisp.h: Remove left over code.
11337
113382008-07-11 Andreas Schwab <schwab@suse.de>
11339
11340 * lisp.h: Fix logic in last change.
11341
11342 * menu.h: New file.
11343 * menu.c: Include it.
11344 * xmenu.c: Likewise.
11345 * Makefile.in: Update dependencies.
11346
113472008-07-11 Kenichi Handa <handa@m17n.org>
11348
11349 * fontset.c (fontset_from_font): Cancel the previous change.
11350
113512008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11352
11353 * lisp.h:
11354 * w32heap.c:
11355 * emacs.c:
11356 * alloc.c: Replace all references of NO_UNION_TYPE with
11357 USE_LISP_UNION_TYPE.
11358
11359 * m/xtensa.h (NO_UNION_TYPE):
11360 * m/vax.h (NO_UNION_TYPE):
11361 * m/template.h (NO_UNION_TYPE):
11362 * m/sparc.h (NO_UNION_TYPE):
11363 * m/mips.h (NO_UNION_TYPE):
11364 * m/macppc.h (NO_UNION_TYPE):
11365 * m/m68k.h (NO_UNION_TYPE):
11366 * m/iris4d.h (NO_UNION_TYPE):
11367 * m/intel386.h (NO_UNION_TYPE):
11368 * m/ibms390x.h (NO_UNION_TYPE):
11369 * m/ibms390.h (NO_UNION_TYPE):
11370 * m/ibmrs6000.h (NO_UNION_TYPE):
11371 * m/ia64.h (NO_UNION_TYPE):
11372 * m/hp800.h (NO_UNION_TYPE):
11373 * m/arm.h (NO_UNION_TYPE):
11374 * m/amdx86-64.h (NO_UNION_TYPE):
11375 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11376 defining it the same.
11377
113782008-07-10 Chong Yidong <cyd@stupidchicken.com>
11379
11380 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11381
113822008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11383
11384 * fileio.c:
50426a04 11385 * sysdep.c:
aac0c6e3
MR
11386 * systty.h:
11387 * m/ibmrs6000.h:
11388 * m/iris4d.h:
11389 * s/aix4-2.h:
11390 * s/freebsd.h:
11391 * s/gnu-linux.h:
11392 * s/hpux10-20.h:
11393 * s/hpux11.h:
11394 * s/netbsd.h:
11395 * s/sol2-3.h:
11396 * s/sol2-4.h:
11397 * s/sol2.h:
11398 * s/usg5-4.h:
11399 * s/vms.h: Remove references to unused variables.
11400
114012008-07-10 Andreas Schwab <schwab@suse.de>
11402
11403 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11404 pattern before matching the generic family.
11405
114062008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11407
11408 * unexec.c:
11409 * s/vms.h:
11410 * s/usg5-4-2.h:
11411 * s/sol2-5.h:
11412 * s/freebsd.h:
11413 * s/darwin.h: Remove dead code.
11414
11415 * m/template.h:
11416 * m/sparc.h:
11417 * m/mips.h:
11418 * m/m68k.h:
11419 * m/iris4d.h:
11420 * m/intel386.h:
11421 * m/ibms390x.h:
11422 * m/ibms390.h:
11423 * m/ia64.h:
11424 * m/hp800.h:
11425 * m/arm.h:
11426 * m/amdx86-64.h: Remove dead code and references to unused
11427 and compiler defined symbols.
11428
11429 * unexmips.c:
11430 * unexelf.c: Remove references to desupported systems.
11431
11432 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11433
11434 * m/powermac.h: Remove boilerplate comments.
11435 (NO_REMAP): Remove unused definition.
11436
11437 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11438 define them.
11439
114402008-07-10 Kenichi Handa <handa@m17n.org>
11441
11442 * xfont.c (xfont_open): Log the reason of failure.
11443
114442008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11445
11446 * fontset.c (fontset_get_font_group):
11447 * font.c (font_check_otf): Specify argument types.
11448
114492008-07-09 Kenichi Handa <handa@m17n.org>
11450
11451 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11452 non-ASCII char is found.
11453
11454 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11455 (reorder_font_vector): Change the arg preferred_family to font.
11456 Prefer the spec matching with font.
11457 (fontset_get_font_group): New function.
11458 (fontset_find_font): Change the format of an element of a realized
11459 fontset. Use fontset_get_font_group.
11460 (fontset_font): Try the current fontset, the default fontset, the
11461 fallbacks of the current fontset, and the fallbacks of the default
11462 fontset in this order.
11463 (face_for_char): Delete the shortcut to use the current font.
11464 (fontset_from_font): Don't set fonts for Latin in the fontset.
11465
11466 * font.h (font_make_object, font_match_p): Adjust prototypes.
11467
11468 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11469
11470 * font.c (font_make_object): New arg entity and pixelsize.
11471 (font_check_otf_features, font_check_otf): New functions.
11472 (font_match_p): Check :lang, :script, and :otf properties.
11473
11474 * xfont.c (xfont_open): Adjust it for the change of
11475 font_make_object.
11476 (xfont_text_extents): Fix initial setting of metrics.
11477
11478 * ftfont.c (struct ftfont_info): New member index, delete member
11479 fc_charset_idx. Make the member order compatible with struct
11480 xftfont_info.
11481 (fc_charset_table): Change charset names to registry names.
11482 (ftfont_pattern_entity): Delete the args registry and
11483 fc_charset_idx. Change the value of :font-entity property
11484 to (FONTNAME . INDEX). Always set :registry property to
11485 `iso10646-1'.
11486 (struct ftfont_cache_data): New struct.
11487 (ftfont_lookup_cache): New arg for_face.
11488 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11489 (ftfont_driver): Set the member otf_capability.
11490 (ftfont_get_charset): Adjust it for the change of
11491 fc_charset_table.
11492 (OTF_TAG_SYM): New macro.
11493 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11494 for the change of fc_charset_table.
11495 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11496 ftfont_pattern_entity. Add FC_INDEX to objset.
11497 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11498 and ftfont_pattern_entity.
11499 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11500 font_make_object, struct ftfont_info.
11501 (ftfont_has_char): Use ftfont_get_fc_charset.
11502 (ftfont_otf_features, ftfont_otf_capability): New functions.
11503 (ftfont_shape): Use ftfont_get_otf.
11504 (ftfont_text_extents): Fix initial setting of metrics.
11505
11506 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11507 member order compatible with struct ftfont_info.
11508 (xftfont_open): Add FC_CHARSET to the pattern. Set
11509 xftfont_info->ft_size. Don't unlock the face. Check BDF
11510 properties if appropriate.
11511 (xftfont_close): Unlock the face.
11512 (xftfont_anchor_point, xftfont_shape): Deleted.
11513 (syms_of_xftfont): Don't set members anchor_point and shape of
11514 xftfont_driver.
11515
11516 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11517 font_make_object.
11518
11519 * w32font.c (w32font_open): Adjust it for the change of
11520 font_make_object.
11521 (w32font_open_internal): Don't set properties of font_object here.
11522
115232008-07-08 Chong Yidong <cyd@stupidchicken.com>
11524
11525 * macfns.c (x_create_tip_frame):
11526 * w32fns.c (x_create_tip_frame):
11527 * xfns.c (x_create_tip_frame): Pass parameter argument to
11528 face-set-after-frame-default.
11529
11530 * xfaces.c (Finternal_merge_in_global_face): Save merged
11531 attributes for the default face back into the face vector.
11532
115332008-07-08 Andreas Schwab <schwab@suse.de>
11534
11535 * fontset.h: Declare fontset_from_font. Don't declare
11536 new_fontset_from_font and fontset_from_font_name.
11537 * xterm.c: Include "fontset.h".
11538 * Makefile.in (xterm.o): Update dependencies.
11539
115402008-07-08 Glenn Morris <rgm@gnu.org>
11541
11542 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11543 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11544
115452008-07-07 Chong Yidong <cyd@stupidchicken.com>
11546
11547 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11548 (x_set_frame_parameters): Don't bind it.
11549
115502008-07-07 Juanma Barranquero <lekktu@gmail.com>
11551
11552 * w32fns.c (map_w32_filename): Declare extern.
11553
115542008-07-07 Jason Rumney <jasonr@gnu.org>
11555
11556 * w32term.c (WS_EX_LAYERED): Define if not already.
11557
115582008-07-06 Chong Yidong <cyd@stupidchicken.com>
11559
11560 * xfaces.c (set_font_frame_param): Don't try to set the font
11561 parameter if it is still unspecified in the lface.
11562
115632008-07-05 Chong Yidong <cyd@stupidchicken.com>
11564
11565 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11566 face if it didn't already exist.
11567
11568 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11569
115702008-07-05 Andreas Schwab <schwab@suse.de>
11571
11572 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11573
115742008-07-05 Chong Yidong <cyd@stupidchicken.com>
11575
11576 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11577 word-wrapping.
11578 (IT_DISPLAYING_WHITESPACE): New macro.
11579 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11580 when word-wrapping. Simplify word-wrapping logic. Use correct
11581 pixel positions when saving copies of the iterator.
11582 (display_line): Use proper wrap point if the last character on a
11583 line was preceded by whitespace.
11584
115852008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11586
11587 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11588
115892008-07-04 Kenichi Handa <handa@m17n.org>
11590
11591 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11592
11593 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11594
115952008-07-02 Jason Rumney <jasonr@gnu.org>
11596
11597 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11598 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11599
11600 * xdisp.c (next_element_from_display_vector): Move assignment out
11601 of if statement.
11602
116032008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11604
11605 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11606
11607 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11608 (syms_of_fileio): Initialize and export them.
11609 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11610
11611 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11612 (Fsystem_move_file_to_trash): New function.
11613 (syms_of_w32fns): Export it to lisp.
11614
116152008-07-01 Jason Rumney <jasonr@gnu.org>
11616
11617 * w32font.c (w32font_text_extents): Don't count overhang as part
11618 of width.
11619
116202008-06-30 Miles Bader <miles@gnu.org>
11621
11622 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11623 Add `avoid_cursor_p' field.
11624
11625 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11626 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11627 (append_glyph, append_composite_glyph, produce_image_glyph)
11628 (append_stretch_glyph): Initialize avoid_cursor_p.
11629 (get_it_property): Rename from `get_line_height_property'.
11630 (x_produce_glyphs): Use get_it_property.
11631 (handle_line_prefix, push_display_prop): New functions.
11632 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11633 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11634 New variables.
11635 (syms_of_xdisp): Initialize them.
11636
116372008-06-30 Kenichi Handa <handa@m17n.org>
11638
11639 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11640 XftDefaultSubstitute (they are called in XftFontMatch).
11641 (xftfont_open): Fix args to ftfont_font_format.
11642
11643 * ftfont.c (fc_charset_table): New member lang.
11644 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11645 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11646 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11647 (ftfont_open): Fix args to ftfont_font_format.
11648 (ftfont_font_format): New arg filename.
11649
116502008-06-30 Chong Yidong <cyd@stupidchicken.com>
11651
11652 * xfaces.c (Finternal_merge_in_global_face): If default face was
11653 modified, realize it again. Update the font face attribute.
11654
116552008-06-29 Jason Rumney <jasonr@gnu.org>
11656
11657 * w32term.c (x_set_frame_alpha): Fix logic.
11658
116592008-06-29 Kenichi Handa <handa@m17n.org>
11660
11661 * fontset.c (Finternal_char_font): Return font-object instead of
11662 font-name.
11663
11664 * composite.c (get_composition_id): Fix the width calculation for TAB.
11665
116662008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11667
11668 * indent.c (Fvertical_motion): Properly handle float column arg.
11669
116702008-06-28 Jason Rumney <jasonr@gnu.org>
11671
11672 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11673 (pfnSetLayeredWindowAttributes): New function pointer.
11674 (w32_initialize): Initialize it when supported.
11675 (x_set_frame_alpha): New function.
11676
11677 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11678 (w32_frame_parm_handlers): Set alpha handler.
11679
11680 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11681
116822008-06-27 Jason Rumney <jasonr@gnu.org>
11683
11684 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11685 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11686 (w32_to_x_charset, x_to_w32_charset)
11687 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11688 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11689 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11690 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11691 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11692 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11693 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11694 (Qw32_charset_unicode): Remove.
11695 (syms_of_w32fns): Update for above changes.
11696
11697 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11698 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11699 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11700 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11701 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11702 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11703 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11704 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11705 (syms_of_w32font): Update for above changes.
11706
117072008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11708
11709 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11710 removed #if.
11711 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11712
117132008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 11714 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11715
11716 * makefile.w32-in (LOCAL_FLAGS):
11717 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11718
11719 * sysdep.c (_spawnlp, _getpid):
11720 Declare with explicit _cdecl instead of _CRTAPI1.
11721
11722 * editfns.c (Fget_internal_run_time):
11723 Check for WINDOWSNT with #ifdef, not #if.
11724
117252008-06-26 Jason Rumney <jasonr@gnu.org>
11726
11727 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11728
11729 * w32term.c (x_draw_glyph_string_foreground)
11730 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11731 Use FONT_HANDLE macro.
11732 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11733
11734 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11735 (uniscribe_encode_char): Use FONT_HANDLE macro.
11736
11737 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11738 (w32font_text_extents): Use precast w32_font.
11739 (w32font_close): Free cached metrics.
11740 (w32font_open_internal): Allocate space for name on stack.
11741
117422008-06-26 Chong Yidong <cyd@stupidchicken.com>
11743
11744 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11745
117462008-06-26 Jason Rumney <jasonr@gnu.org>
11747
11748 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11749 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11750
117512008-06-26 Juanma Barranquero <lekktu@gmail.com>
11752
11753 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11754
117552008-06-26 Jason Rumney <jasonr@gnu.org>
11756
11757 * w32bdf.c, w32bdf.h: Remove obsolete files.
11758
11759 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11760
11761 * w32gui.h: Don't include w32bdf.h.
11762 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11763 Remove obsolete font support.
11764
11765 * w32font.h (struct w32font_info): Remove compat_w32_font.
11766 Add hfont member.
11767 (FONT_COMPAT): Remove obsolete macro.
11768
11769 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11770 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11771 (w32font_open_internal): Remove compat code. Set new hfont member.
11772 (Fx_select_font): Use new hfont member.
11773
11774 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11775 (uniscribe_encode_char): Use new hfont member.
11776
11777 * w32term.c (x_draw_glyph_string_foreground)
11778 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11779 (x_draw_glyph_string): Use metrics in w32font_info.
11780
117812008-06-26 Kenichi Handa <handa@m17n.org>
11782
11783 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11784
117852008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11786
11787 * unexnext.c:
11788 * m/ews4800.h:
11789 * m/hp9000s300.h:
11790 * m/ibm370aix.h:
11791 * m/mips-siemens.h:
11792 * m/ncr386.h:
11793 * m/next.h:
11794 * m/pmax.h:
11795 * m/powerpcle.h:
11796 * m/tandem-s2.h:
11797 * s/386bsd.h:
11798 * s/bsd386.h:
11799 * s/bsd4-1.h:
11800 * s/bsd4-2.h:
11801 * s/bsdos2-1.h:
11802 * s/bsdos2.h:
11803 * s/bsdos3.h:
11804 * s/bsdos4.h:
11805 * s/nextstep.h:
11806 * s/ultrix4-3.h:
11807 * s/usg5-0.h:
11808 * s/usg5-2-2.h:
11809 * s/usg5-2.h:
11810 * s/usg5-4-3.h:
11811 * s/ux4800.h:
11812 * s/uxpds.h:
11813 * s/uxpv.h: Remove support for obsolete systems.
11814 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11815 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11816 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11817 Remove, insert contents in s/aix4-2.h.
11818 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11819 * s/bsd4-3.h: Rename to ...
11820 * s/bsd-common.h: ... this.
11821 * data.c:
11822 * doc.c:
11823 * ecrt0.c:
11824 * emacs.c:
11825 * fileio.c:
11826 * floatfns.c:
11827 * keyboard.c:
11828 * mem-limits.h:
11829 * print.c:
11830 * process.c:
11831 * sysdep.c:
11832 * syssignal.h:
11833 * systty.h:
11834 * syswait.h:
11835 * term.c:
11836 * unexec.c:
11837 * unexelf.c:
11838 * unexhp9k800.c:
11839 * m/hp800.h:
11840 * m/ibmrs6000.h:
11841 * m/mips.h:
11842 * m/vax.h:
11843 * s/darwin.h:
11844 * s/freebsd.h:
11845 * s/gnu.h:
11846 * s/ms-w32.h:
11847 * s/msdos.h:
11848 * s/netbsd.h:
11849 * s/template.h: Remove references to obsolete variables.
11850
11851 * Makefile.in: Add dependencies for all unexec files.
11852 (admindir): Remove unused variable.
11853 (UNEXEC_SRC): Remove references.
11854
118552008-06-25 Chong Yidong <cyd@stupidchicken.com>
11856
11857 * xfns.c (x_default_font_parameter): If Xft is available, first
11858 try Monospace-12 for the default font.
11859
118602008-06-25 Jason Rumney <jasonr@gnu.org>
11861
11862 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11863
118642008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11865
11866 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11867
11868 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11869
118702008-06-25 Juanma Barranquero <lekktu@gmail.com>
11871
11872 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11873 <scroll-conservatively>: Fix typo in docstring.
11874
11875 * xselect.c (Fx_send_client_event): Doc fix.
11876
118772008-06-25 Kenichi Handa <handa@m17n.org>
11878
11879 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11880
11881 * font.c (font_parse_fcname): Remove unused variables.
11882 (font_sort_entites): Delete the arg SPEC. Caller changed.
11883 Fix for the case of ! best_only.
11884 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11885
11886 * lisp.h (Fstring_to_unibyte): EXFUN it.
11887
11888 * character.h (str_to_unibyte): Extern it.
11889
11890 * character.c (str_to_unibyte): New function.
11891
11892 * fns.c (Fstring_to_unibyte): New function.
11893 (syms_of_fns): Defsubr it.
11894
118952008-06-24 Kenichi Handa <handa@m17n.org>
11896
11897 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11898 DPI too.
11899 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11900
119012008-06-24 Andreas Schwab <schwab@suse.de>
11902
11903 * Makefile.in (${lispsource}loaddefs.el): Rename from
11904 ../lisp/loaddefs.el.
11905 (bootstrap-clean): Do what distclean does but don't remove
11906 Makefile.
11907 (distclean): Depend on bootstrap-clean and remove Makefile.
11908
119092008-06-24 Chong Yidong <cyd@stupidchicken.com>
11910
11911 * buffer.h (struct buffer): New member word_wrap.
11912
11913 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11914 word-wrap.
11915 (init_buffer_once): Initialize them.
11916
11917 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11918 line_wrap enum possessing three possible values.
11919
11920 * termopts.h: Replace truncate_partial_width_windows with
11921 Vtruncate_partial_width_windows.
11922
11923 * dispnew.c (direct_output_for_insert): Avoid direct output when
11924 inserting a space with word wrap on.
11925
11926 * indent.c (compute_motion): Obey integer values of
11927 truncate-partial-width-windows.
11928
11929 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11930 replacing truncate_partial_width_windows.
11931 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11932 truncate only if the window width is below that integer.
11933 (start_display, resize_mini_window, produce_stretch_glyph)
11934 (display_string, move_it_in_display_line_to): Use line_wrap.
11935 (back_to_previous_visible_line_start, reseat_1): Reset
11936 string_from_display_prop_p.
11937 (display_line): Extend default face to end of line when wrapping.
11938
119392008-06-24 Kim F. Storm <storm@cua.dk>
11940
11941 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11942 to wrap continued lines at word boundaries.
11943
119442008-06-24 Jason Rumney <jasonr@gnu.org>
11945
11946 * font.c (Ffont_face_attributes): Multiply pixel size before point
11947 conversion to avoid multiplying rounding error.
11948
119492008-06-23 Jason Rumney <jasonr@gnu.org>
11950
11951 * w32term.c (x_draw_glyph_string_background)
11952 (x_draw_glyph_string): Remove old bdf font code.
11953
11954 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11955
119562008-06-22 Kenichi Handa <handa@m17n.org>
11957
11958 * font.c (font_find_for_lface): Try the adstyle specified in
11959 the property of LFACE_FONT of LFACE (if any).
11960
119612008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 11962 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11963
11964 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11965
119662008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11967
11968 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11969 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11970 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11971 (witness-emacs): Remove.
11972 (lisp, shortlisp): Move loaddefs.el earlier.
11973 (mostlyclean): Forget about witness-emacs.
11974
119752008-06-22 Glenn Morris <rgm@gnu.org>
11976
11977 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11978 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11979
119802008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11981
11982 * Makefile.in (PRECOMP): Remove.
11983 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11984 (witness-emacs): Run `compile-first'.
11985 (.el.elc): Use the new compile-onefile target.
11986
119872008-06-21 Kenichi Handa <handa@m17n.org>
11988
11989 * xftfont.c (xftfont_open): Handle QCembolden only when
11990 FC_EMBOLDEN is defined.
11991
119922008-06-21 Andreas Schwab <schwab@suse.de>
11993
11994 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11995 (.el.elc): Likewise.
11996
119972008-06-21 Miles Bader <miles@gnu.org>
11998
11999 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
12000 build dir, not the lisp source dir.
12001
120022008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
12003
12004 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
12005 (bootstrapclean): Remove.
12006 (.el.elc): New rule.
12007 (PRECOMP): New var.
12008 (../lisp/subdirs.el): Remove.
12009 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
12010 (witness-emacs): New target.
12011 (mostlyclean): Remove witness-emacs as well.
12012 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
12013 Add witness-emacs dependency.
12014
120152008-06-20 Chong Yidong <cyd@stupidchicken.com>
12016
12017 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
12018 defined by the font.
12019
120202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12021
12022 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
12023 (bootstrap-clean): New target that keeps TAGS around.
12024 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
12025 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
12026
120272008-06-20 Jason Rumney <jasonr@gnu.org>
12028
12029 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
12030 Remove obsolete font code.
12031
12032 * w32font.c (font_matches_spec): Use csb bitfield from font signature
12033 to determine language support.
12034
120352008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12036
12037 * sysdep.c (cfsetspeed): New fun extracted from the code.
12038 (cfmakeraw): Move before first use.
12039
120402008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
12041
12042 * sysdep.c (cfmakeraw): Provide fallback implementation.
12043 (serial_configure): Provide fallback implementation of cfsetspeed.
12044
120452008-06-20 Kenichi Handa <handa@m17n.org>
12046
12047 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
12048 the pattern.
12049
12050 * fontset.c (fontset_from_font): Copy font_spec before changing
12051 the elements.
12052
12053 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
12054
120552008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
12056
12057 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
12058 for explicit `font' parameters.
12059
12060 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
12061
120622008-06-19 Kenichi Handa <handa@m17n.org>
12063
12064 * frame.c: Include <ctype.h>.
12065 (x_set_font_backend): Allow spacing characters in the X resource
12066 for FontBackend.
12067
120682008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
12069
12070 * w32fns.c, xfns.c (Qfont_param): New var.
12071 (syms_of_w32fns): Initialize it.
12072 (x_default_font_parameter): Record explicit `font' into
12073 `font-parameter'.
12074
120752008-06-18 Kenichi Handa <handa@m17n.org>
12076
12077 * font.c (font_parse_xlfd): Fix previous change.
12078 (font_parse_fcname): Don't use :fc-unknown-spec.
12079 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
12080 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
12081 (font_add_log): Prepend the driver name to the resulting fonts.
12082
12083 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
12084 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
12085 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
12086
12087 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
12088 (QCembolden): New variables.
12089 (syms_of_xftfont): DEFSYM them.
12090 (xftfont_open): Call XftFontMatch. Don't trust the result of
12091 XftTextExtents8 if the pixel_size is less than 5.
12092
120932008-06-18 Andreas Schwab <schwab@suse.de>
12094
12095 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
12096 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
12097
120982008-06-18 Jason Rumney <jasonr@gnu.org>
12099
12100 * w32font.c (w32font_list, w32font_match): Add logging.
12101
12102 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
12103
121042008-06-17 Chong Yidong <cyd@stupidchicken.com>
12105
12106 * font.c (font_parse_fcname): Store divider characters for
12107 unknown-spec list. For known key symbols, intern using correct
12108 symbol name.
12109
121102008-06-17 Kenichi Handa <handa@m17n.org>
12111
12112 * xfaces.c (realize_default_face): If the frame is not on window
12113 system, set the fontset of face to nil.
12114
121152008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12116
12117 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
12118
121192008-06-16 Juanma Barranquero <lekktu@gmail.com>
12120
12121 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
12122 (build_font_name_from_vector): Delete externs.
12123
12124 * xfaces.c (struct font_name): Don't declare.
12125
121262008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
12127
12128 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
12129
121302008-06-16 Chong Yidong <cyd@stupidchicken.com>
12131
12132 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
12133
121342008-06-16 Juanma Barranquero <lekktu@gmail.com>
12135
12136 * font.c (Ffont_spec): Fix usage in docstring.
12137 (Ffont_face_attributes): Doc fix.
12138
121392008-06-16 Andreas Schwab <schwab@suse.de>
12140
12141 * font.c (Ffont_face_attributes): Fix definition.
12142
121432008-06-16 Jason Rumney <jasonr@gnu.org>
12144
12145 * font.h (font_style_symbolic_from_value): Remove.
12146
12147 * font.c (font_style_symbolic_from_value): Remove.
12148 (font_style_symbolic): Revert to pre 2008-06-13 version.
12149
12150 * w32font.c (w32_to_fc_weight): New function.
12151 (w32font_full_name, logfont_to_fcname): Use it.
12152
121532008-06-16 Kenichi Handa <handa@m17n.org>
12154
12155 * font.c (font_check_object): Delete it.
12156 (font_clear_cache): Check if a font-object is alive.
12157 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
12158 font-object to nil.
12159 (font_close_object): Don't check FONT_CLOSE_OBJECT.
12160 (font_at): Don't call font_check_object.
12161 (Ffont_get): Return a symbol for :weight, :slant, and :width.
12162
121632008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
12164
12165 * puresize.h (BASE_PURESIZE): Increase to 1230000.
12166
121672008-06-16 Chong Yidong <cyd@stupidchicken.com>
12168
12169 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
12170
121712008-06-15 Chong Yidong <cyd@stupidchicken.com>
12172
12173 * font.c (font_parse_fcname): Only one decimal point.
12174 (font_unparse_fcname): Handle data in family and foundry indices
12175 as symbols, not strings.
12176 (font_unparse_gtkname, Ffont_face_attributes): New functions.
12177
12178 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
12179
12180 * font.h (font_unparse_gtkname): Add prototype.
12181
121822008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
12183
12184 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
12185
121862008-06-15 Andreas Schwab <schwab@suse.de>
12187
12188 * font.c (font_update_drivers): Fix crash when no drivers match.
12189
121902008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
12191
12192 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
12193 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
12194
121952008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
12196
12197 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
12198
121992008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
12200
12201 * process.c (Fserial_process_configure, Fprocess_send_eof):
12202 Use EQ to compare Lisp_Objects.
12203
122042008-06-13 Jason Rumney <jasonr@gnu.org>
12205
12206 * w32fns.c (Fw32_select_font): Remove old font API function.
12207
12208 * w32font.c (logfont_to_fcname): New function.
12209 (Fx_select_font): New font dialog function compatible with
12210 GTK/fontconfig version.
12211
12212 * font.c (font_style_symbolic_from_value): New function.
12213 (font_style_symbolic): Use it.
12214
12215 * font.h (font_style_symbolic_from_value): Declare new function.
12216
122172008-06-13 Juanma Barranquero <lekktu@gmail.com>
12218
12219 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
12220 <font-width-table>: Fix typos in docstrings.
12221
122222008-06-13 Daniel Engeler <engeler@gmail.com>
12223
12224 These changes add serial port access.
12225 * process.c: Add HAVE_SERIAL.
12226 (Fdelete_process, Fprocess_status, Fset_process_buffer)
12227 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
12228 (list_processes_1, select_wrapper, Fstop_process)
12229 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
12230 (status_notify): Modify to handle serial processes.
12231 [HAVE_SERIAL] (Fserial_process_configure)
12232 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
12233 New functions.
12234 * process.h (struct Lisp_Process): Add `type'.
12235 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
12236 New functions.
12237 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
12238 serial ports.
b71ac3dd 12239 (serial_open, serial_configure): New functions.
aac0c6e3
MR
12240 * w32.h: Add FILE_SERIAL.
12241 (struct _child_process): Add ovl_read, ovl_write.
12242
122432008-06-13 Kenichi Handa <handa@m17n.org>
12244
12245 * dispextern.h (enum lface_attribute_index): New member
12246 LFACE_FOUNDRY_INDEX.
12247
12248 * font.c (font_score): Delete arg alternate_families. Check only
12249 weight, slant, width, and size. Ignore the difference of alias
12250 style symbols.
12251 (font_sort_entites): Adjust for the above change. Reflect the
12252 order of font-driver to scores.
12253 (font_list_entities): Don't check alternate_familes here.
12254 (font_clear_prop): Handle foundry.
12255 (font_update_lface): Don't parse "foundry-family" form here.
12256 Handle FONT_FOUNDRY_INDEX.
12257 (font_find_for_lface): Likewise. Handle alternate families here.
12258 If registry is nil, try iso8859-1 and ascii-0.
12259 (font_open_for_lface): Pay attention to size in ENTITY.
12260 (font_open_by_name): Simplify by calling font_load_for_lface.
12261 (free_font_driver_list): Delete it.
12262 (font_update_drivers): Preserve the order of backends.
12263 (syms_of_font): Setting of sort_shift_bits adjusted for the change
12264 of font_score and font_sort_entites.
12265 (font_update_sort_order): Likewise.
12266
12267 * xfaces.c (LFACE_FOUNDRY): New macro.
12268 (check_lface_attrs): Check foundry.
12269 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12270 (merge_face_vectors): Check foundry.
12271 (merge_face_ref): Likewise.
12272 (Finternal_set_lisp_face_attribute): Likewise.
12273 (x_update_menu_appearance): Likewise.
12274 (Finternal_get_lisp_face_attribute): Likewise.
12275 (lface_hash): Likewise.
12276 (lface_same_font_attributes_p): Likewise.
12277 (x_supports_face_attributes_p): Likewise.
12278 (tty_supports_face_attributes_p): Likewise.
12279 (Finternal_set_alternative_font_family_alist): Intern strings.
12280 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12281 (realize_default_face): Set LFACE_FOUNDRY (lface).
12282
12283 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12284 font-driver at first.
12285
12286 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12287
122882008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12289
12290 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12291
122922008-06-12 Jim Meyering <meyering@redhat.com>
12293
12294 Make unexec_free handle NULL the same way free does.
12295 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12296
122972008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12298
12299 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12300 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12301 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12302 (WEAK_ALIAS): Simplify.
12303 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12304 when searching a unibyte buffer.
12305
123062008-06-12 Chong Yidong <cyd@stupidchicken.com>
12307
12308 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12309
123102008-06-12 Juanma Barranquero <lekktu@gmail.com>
12311
12312 * w32font.c: Include ctype.h.
12313
123142008-06-11 Jason Rumney <jasonr@gnu.org>
12315
12316 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12317 misreported as space.
12318 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12319 as aliases for registry iso10646-1.
12320
123212008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12322
12323 * buffer.c (clone_per_buffer_values): Skip `name'.
12324
123252008-06-11 Chong Yidong <cyd@stupidchicken.com>
12326
12327 * font.c (font_parse_fcname): Fix last change; accept decimal
12328 points in font size.
12329
123302008-06-10 Jason Rumney <jasonr@gnu.org>
12331
12332 * w32uniscribe.c (add_opentype_font_name_to_list):
12333 Skip non unicode fonts.
12334
123352008-06-10 Chong Yidong <cyd@stupidchicken.com>
12336
12337 * xfns.c (Fx_font_dialog): New function.
12338
12339 * gtkutil.c (xg_dialog_response_cb): Rename from
12340 xg_file_response_callback.
12341 (pop_down_dialog): Rename from pop_down_file_dialog.
12342 (xg_get_file_name): Callers changed.
12343 (xg_get_font_name): New function.
12344
12345 * gtkutil.h (xg_get_font_name): Insert prototype.
12346
123472008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12348
12349 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12350 x_underline_minimum_display_offset.
12351 (syms_of_xdisp): Declare it here rather than in xterm.c.
12352 * dispextern.h (underline_minimum_offset): Declare it.
12353 * w32term.c (x_draw_glyph_string): Use it.
12354 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12355 (syms_of_xterm): Don't declare it any more.
12356 (x_draw_glyph_string): Adjust to the new name.
12357
8719abec 123582008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12359
12360 * xterm.c (x_underline_minimum_display_offset): New var.
12361 (x_draw_glyph_string): Use it.
12362 (syms_of_xterm): Declare it.
12363
123642008-06-10 Chong Yidong <cyd@stupidchicken.com>
12365
12366 * font.c (font_parse_fcname): Accept GTK-style font names too.
12367
123682008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12369
12370 * dired.c (file_name_completion): Don't return t if the match is exact
12371 but with different capitalization.
12372 * minibuf.c (Ftry_completion): Simplify.
12373
12374 * window.c (Vwindow_point_insertion_type): New var.
12375 (set_window_buffer): Use it.
12376 (syms_of_window): Init and export it to Lisp.
12377
123782008-06-10 Kenichi Handa <handa@m17n.org>
12379
12380 * font.h (font_intern_prop): Prototype adjusted.
12381
12382 * font.c (font_intern_prop): New arg force_symbol.
12383 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12384 Adjust for the change of font_intern_prop.
12385
12386 * ftfont.c (ftfont_pattern_entity):
12387 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12388 (w32_registry):
12389 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12390 the change of font_intern_prop.
12391
123922008-06-09 Juanma Barranquero <lekktu@gmail.com>
12393
12394 * w32menu.c (digest_single_submenu): Declare extern.
12395
123962008-06-09 Jason Rumney <jasonr@gnu.org>
12397
12398 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12399
12400 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12401 (parse_single_submenu): Remove.
12402 (digest_single_submenu): Remove.
12403 (syms_of_w32menu): Don't initialise variables that have moved
12404 to menu.c.
12405 (set_frame_menubar): Sync with version in xmenu.c.
12406 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12407
12408 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12409 Make static again.
12410
124112008-06-09 Jason Rumney <jasonr@gnu.org>
12412
12413 Changes to w32 files related to the move of common menu code
12414 to menu.c on 2008-06-08 by Chong Yidong.
12415
12416 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12417 defs to w32gui.h.
12418 (single_keymap_panes, push_menu_item, push_menu_pane):
12419 Make globally visible.
12420
12421 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12422 (local_free, malloc_widget_value, free_widget_value)
12423 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12424 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12425 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12426 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12427 (menu_items, menu_items_allocated, menu_items_used)
12428 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12429 (init_menu_items, finish_menu_items, discard_menu_items)
12430 (grow_menu_items, push_submenu_start, push_submenu_end)
12431 (push_left_right_boundary, push_menu_pane, push_menu_item)
12432 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12433 (free_menubar_widget_tree_value, parse_single_submenu)
12434 (update_submenu_strings): Remove functions.
12435 (xmalloc_widget_value): Remove and declare extern.
12436
12437 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12438 (OBJ1): Build it.
12439
12440 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12441 (local_heap, local_alloc, local_free, malloc_widget_value)
12442 (free_widget_value): Define here.
12443
124442008-06-09 Kenichi Handa <handa@m17n.org>
12445
12446 * font.h (Qascii_0): Extern it.
12447
12448 * font.c (Qascii_0): New variable.
12449 (syms_of_font): DEFSYM it.
12450 (font_open_by_name): If the registry "iso8859-1" fails, try also
12451 "ascii-0".
12452
12453 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12454
124552008-06-08 Kenichi Handa <handa@m17n.org>
12456
12457 * .gdbinit (xfont): New command.
12458
124592008-06-08 Andreas Schwab <schwab@suse.de>
12460
12461 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12462 * Makefile.in (menu.o): Update dependencies.
12463
12464 * Makefile.in (obj): Always add menu.o.
12465 * emacs.c (main): Always call syms_of_menu.
12466 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12467
124682008-06-08 Chong Yidong <cyd@stupidchicken.com>
12469
12470 * Makefile.in: Compile menu.c.
12471
12472 * lisp.h: Declare syms_of_menu.
12473
12474 * emacs.c (main): Call syms_of_menu.
12475
12476 * keyboard.h: Relocate platform-independent menu definitions from
12477 xmenu.c.
12478
12479 * menu.c: New file. Relocate platform-independent menu
12480 definitions from xmenu.c. Suggested by Adrian Robert.
12481
12482 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12483 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12484 (menu_items_used, menu_items_n_panes)
12485 (menu_items_submenu_depth): Move to keyboard.h.
12486 (init_menu_items, finish_menu_items, unuse_menu_items)
12487 (discard_menu_items, restore_menu_items, save_menu_items)
12488 (grow_menu_items, push_submenu_start, push_submenu_end)
12489 (push_left_right_boundary, push_menu_pane, push_menu_item)
12490 (keymap_panes, single_keymap_panes, single_menu_item)
12491 (list_of_panes, list_of_items, find_and_call_menu_selection)
12492 (xmalloc_widget_value, free_menubar_widget_value_tree)
12493 (parse_single_submenu, digest_single_submenu)
12494 (update_submenu_strings): Move to menu.c.
12495
124962008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12497
12498 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12499
125002008-06-06 Miles Bader <miles@gnu.org>
12501
12502 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12503 face, not frame default.
12504
125052008-06-05 Martin Rudalics <rudalics@gmx.at>
12506
12507 * window.c (pop_up_windows, pop_up_frames)
12508 (display_buffer_reuse_frames, Vpop_up_frame_function)
12509 (Vdisplay_buffer_function, Veven_window_heights)
12510 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12511 (Vspecial_display_function, Vsame_window_buffer_names)
12512 (Vsame_window_regexps, split_height_threshold)
12513 (Vsplit_window_preferred_function): Move those vars to window.el.
12514 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12515 (Fdisplay_buffer): Move those functions to window.el.
12516 (syms_of_window): Remove corresponding declarations.
12517 (display_buffer): New function.
12518 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12519 * dispnew.c (Flast_nonminibuf_frame): New function.
12520 * buffer.c (Fpop_to_buffer): Move to window.el.
12521
125222008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12523
12524 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12525
125262008-06-05 Kenichi Handa <handa@m17n.org>
12527
12528 * coding.c (detect_coding): Fix previous change.
12529 (detect_coding_system): Likewise.
12530
125312008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12532
12533 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12534
12535 * keymap.c (Vminibuffer_local_filename_must_match_map):
12536 Rename from Vminibuffer_local_must_match_filename_map.
12537 (syms_of_keymap):
12538 * minibuf.c (Fcompleting_read): Adjust accordingly.
12539 * commands.h: Rename declaration as well.
12540
125412008-06-05 Kenichi Handa <handa@m17n.org>
12542
12543 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12544 family name.
12545 (Ffont_put): Likewise.
12546
12547 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12548 current font-spec.
12549
12550 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12551 is unspecified.
12552
12553 * xfaces.c (realize_x_face): If the font-related face attributes
12554 are the same as those of default face, realize a new fontset from
12555 default->fontset.
12556 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12557
125582008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12559
12560 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12561 (move_it_in_display_line): New wrapper.
12562
12563 * window.c (window_scroll_pixel_based_preserve_x)
12564 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12565 (window_scroll_pixel_based, window_scroll_line_based):
12566 Use them to preserve column positions.
12567 (syms_of_window): Initialize them.
12568
12569 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12570 (HPOS . VPOS) pair.
12571
12572 * dispextern.h (move_it_in_display_line): Declare.
12573
125742008-06-05 Juanma Barranquero <lekktu@gmail.com>
12575
12576 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12577 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12578 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12579
125802008-06-04 Juanma Barranquero <lekktu@gmail.com>
12581
12582 * window.c (Fset_window_parameter): Doc fix.
12583 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12584
125852008-06-04 Joakim Verona <joakim@verona.se>
12586
12587 * window.h (struct window): Add new member window_parameters.
12588
12589 * window.c (Fwindow_parameters, Fwindow_parameter)
12590 (Fset_window_parameter): New defuns.
12591 (syms_of_window): Defsubr the new defuns.
12592 (make_window): Initialize window_parameters to nil.
12593
125942008-06-04 John Paul Wallington <jpw@pobox.com>
12595
12596 * eval.c (Fdefmacro): Doc fix.
12597
125982008-06-04 Kenichi Handa <handa@m17n.org>
12599
12600 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12601 Be sure to call setup_coding_system when we find a proper coding system.
12602 (detect_coding_system): Fix handling of coding->head_ascii.
12603
126042008-06-03 Andreas Schwab <schwab@suse.de>
12605
12606 * font.c (font_prop_validate_spacing): Fix last change.
12607
126082008-06-03 Kenichi Handa <handa@m17n.org>
12609
12610 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12611 (font_parse_fcname): Fix handling of unknown key.
12612
12613 * xfont.c (xfont_list): Try an alias.
12614
12615 * charset.c (char_charset): Return NULL if the arg charset_list is
12616 specified and C doesn't belong to any of them.
12617
126182008-06-02 Chip Coldwell <coldwell@redhat.com>
12619
12620 * font.c (font_pixel_size): Don't take cdr of an integer.
12621
126222008-06-02 Jim Meyering <meyering@redhat.com>
12623
12624 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12625 * alloc.c (xfree): Return right away for a NULL arg.
12626 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12627 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12628 * mac.c (create_apple_event_from_event_ref): Likewise.
12629 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12630 Likewise.
12631 * doprnt.c (doprnt1): Likewise.
12632 * frame.c (frame): Likewise.
12633 * keyboard.c (wipe_kboard): Likewise.
12634 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12635 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12636 * term.c (tty_default_color_capabilities, maybe_fatal)
12637 (delete_tty): Likewise.
12638 * w16select.c (string): Likewise.
12639 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12640 * w32bdf.c (w32_free_bdf_font): Likewise.
12641 * w32fns.c (w32_unload_font): Likewise.
12642 * w32font.c (w32font_close): Likewise.
12643 * window.c (size_window): Likewise.
12644 * xselect.c (receive_incremental_selection): Likewise.
12645 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12646 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12647 * w32.c (stat): Likewise.
12648
12649 Remove useless if-before-free tests.
12650 * editfns.c (Fset_time_zone_rule): Likewise.
12651 * lread.c (nosuffix): Likewise.
12652 * ralloc.c (get_bloc): Likewise.
12653 * regex.c (reg_free): Likewise.
12654 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12655 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12656 * xsmfns.c (smc_save_yourself_CB): Likewise.
12657
126582008-06-02 Kenichi Handa <handa@m17n.org>
12659
12660 * font.c (font_find_for_lface): Handle float font size.
12661 (font_open_for_lface): Likewise.
12662
12663 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12664 comparing the properties.
12665
126662008-06-01 Jason Rumney <jasonr@gnu.org>
12667
12668 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12669 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12670 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12671 Don't add empty script list.
12672 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12673
126742008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12675
12676 * Makefile.in (dot, dotdot): Remove, update users.
12677 ".." has been used elsewhere in the file for a long time.
12678 (LIBXT_STATIC): Remove conditional based on unused variable.
12679
126802008-06-01 Miles Bader <miles@gnu.org>
12681
12682 * xfaces.c (Vface_remapping_alist): New variable.
12683 (syms_of_xfaces): Initialize it.
12684 (enum named_merge_point_kind): New type.
12685 (struct named_merge_point): Add `named_merge_point_kind' field.
12686 (push_named_merge_point): Make cycle detection respect different
12687 named-merge-point kinds.
12688 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12689 Remove face-name alias resolution.
12690 (lface_from_face_name): New definition using
12691 `lface_from_face_name_no_resolve'.
12692 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12693 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12694 (get_lface_attributes): New definition that layers face-remapping on
12695 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12696 (lookup_basic_face): New function.
12697 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12698 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12699 `get_lface_attributes'.
12700 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12701 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12702 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12703
12704 * xdisp.c (init_iterator): Pass base_face_id through
12705 `lookup_basic_face' when we actually use it as a face-id.
12706 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12707 DEFAULT_FACE_ID.
12708
12709 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12710 lookup the initial face-id.
12711
12712 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12713
127142008-06-01 Juanma Barranquero <lekktu@gmail.com>
12715
12716 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12717 (Fremove_text_properties): Fix typos in docstrings.
12718
127192008-05-31 Kenichi Handa <handa@m17n.org>
12720
12721 * font.c (font_list_entities): Fix the car part of data to be
12722 stored in the cache.
12723
12724 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12725
127262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12727
12728 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12729 Add a `test' argument so another predicate than `equal' can be used.
12730 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12731 (map_char_table): Remove unused vars `c' and `i'.
12732 * lisp.h (Foptimize_char_table): Adjust declaration.
12733 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12734
127352008-05-30 Kenichi Handa <handa@m17n.org>
12736
12737 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12738 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12739 defined.
12740
127412008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12742
12743 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12744 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12745 frame-local settings for the same variable.
12746
127472008-05-30 Kenichi Handa <handa@m17n.org>
12748
12749 * fontset.c (Ffont_info): Move to font.c.
12750 (syms_of_fontset): Delete defsubr of Sfont_info.
12751
12752 * font.c (font_style_to_value, font_score): Delete casting of the
12753 args to xstcasecmp.
12754 (register_font_driver): Increment num_font_drivers only when
12755 registering the driver globally.
12756 (Ffont_info): Move from fontset.c. Handle a font object too.
12757 (syms_of_font): Defsubr Sfont_info.
12758
127592008-05-29 Kenichi Handa <handa@m17n.org>
12760
12761 * coding.h (enum define_coding_utf8_arg_index): New enum.
12762 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12763 coding_attr_utf_bom.
12764 (enum utf_bom_type): Rename from utf_16_bom_type.
12765 (struct utf_16_spec): Adjust for the above change.
12766 (struct coding_system): Add utf_8_bom in `spec' union.
12767
12768 * coding.c (CODING_UTF_8_BOM): New macro.
12769 (enum coding_category): Delete coding_category_utf_8, add
12770 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12771 coding_category_utf_8_sig.
12772 (CATEGORY_MASK_UTF_8): Delete it.
12773 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12774 (CATEGORY_MASK_UTF_8_SIG): New macros.
12775 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12776 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12777 CATEGORY_MASK_UTF_8_SIG.
12778 (CATEGORY_MASK_UTF_8): New macro.
12779 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12780 (detect_coding_utf_8): Check BOM.
12781 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12782 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12783 (encode_coding_utf_16): Likewise.
12784 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12785 (detect_coding, detect_coding_system): Handle utf-8-auto.
12786 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12787 (syms_of_coding): Fix setting up of Vcoding_category_table.
12788
127892008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12790
12791 * process.c (Faccept_process_output): If `millisec' is non-nil,
12792 `seconds' default to 0.
12793 (wait_reading_process_output): Also return non-nil if we read output
12794 from a non-running process.
12795
127962008-05-29 Jason Rumney <jasonr@gnu.org>
12797
12798 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12799 `raster' specified.
12800 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12801 in the uniscribe backend, but disallow any font that has no
12802 unicode subrange support.
12803
128042008-05-29 Juanma Barranquero <lekktu@gmail.com>
12805
12806 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12807 Fix typos in docstrings.
12808
128092008-05-29 Kenichi Handa <handa@m17n.org>
12810
12811 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12812 (Fx_family_fonts): Set frame correctly.
12813
128142008-05-28 Jason Rumney <jasonr@gnu.org>
12815
12816 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12817
128182008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12819
12820 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12821 calling build_annotations.
12822
128232008-05-28 Juanma Barranquero <lekktu@gmail.com>
12824
12825 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12826 (Fencode_coding_string):
12827 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12828 <latin-extra-code-table>: Fix typos in docstrings.
12829 (syms_of_coding) <coding-system-alist>: Doc fix.
12830 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12831
128322008-05-28 Kenichi Handa <handa@m17n.org>
12833
12834 * fontset.c (Ffont_info): Don't call font_close_object.
12835
12836 * font.c (font_parse_family_registry): Use Ffont_put to validate
12837 foundry and family.
12838 (font_delete_unmatched): Don't check spacing.
12839 (font_list_entities): Add spacing to the spec to list fonts.
12840
12841 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12842 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12843
12844 * coding.c (encode_coding_raw_text): Fix previous change.
12845 (encode_coding_object): When the dst_object is a buffer and is
12846 different from src_object, move gap to PT.
12847
128482008-05-27 Chong Yidong <cyd@stupidchicken.com>
12849
12850 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12851
128522008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12853
12854 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12855 all branches. Compute it differently.
12856
12857 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12858
128592008-05-27 Juanma Barranquero <lekktu@gmail.com>
12860
12861 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12862 into "else if () ... else ...".
12863
128642008-05-27 Jason Rumney <jasonr@gnu.org>
12865
12866 * w32font.c (w32font_open_internal): Determine if glyph indices
12867 are likely to work here.
12868
128692008-05-27 Chong Yidong <cyd@stupidchicken.com>
12870
12871 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12872 draw overlap glyphs with appropriate highlighting.
12873
128742008-05-27 Kenichi Handa <handa@m17n.org>
12875
12876 * xfont.c (xfont_open): Fix calculation of font->average_width.
12877
128782008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12879
12880 * casefiddle.c (casify_object): Try to guess better whether the
12881 argument is a byte or a char.
12882
128832008-05-26 Andreas Schwab <schwab@suse.de>
12884
12885 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12886 Always send multiples of format size.
12887
12888 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12889
128902008-05-26 Jason Rumney <jasonr@gnu.org>
12891
12892 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12893 (compute_metrics): Don't set failure if we just cleared the cache.
12894 (w32_weight_table): Remove unused variable.
12895 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12896 backwards compatibility.
12897
128982008-05-25 Kenichi Handa <handa@m17n.org>
12899
12900 * w32term.c (x_draw_glyph_string):
12901 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12902
12903 * xfaces.c: Delete unused function prototypes.
12904 (xstrlwr, font_frame): Delete them.
12905 (clear_face_cache): Delete unused variable.
12906
12907 * xftfont.c (xftfont_open): Delete unused variable.
12908 If underline_thickness is not 1, adjust underline_position.
12909
12910 * ftxfont.c (ftxfont_open): Delete unused variable.
12911
12912 * fontset.c (face_for_char): Optimize for the case of no charset
12913 property.
12914
12915 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12916 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12917 (otf_open, font_otf_capability, generate_otf_features)
12918 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12919 Comment out by surrounding "#if 0" and "#endif" for the moment.
12920 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12921 (syms_of_font): Codes for accessing above commented out.
12922
129232008-05-24 Eli Zaretskii <eliz@gnu.org>
12924
12925 * w32proc.c: Include dispextern.h.
12926
12927 * w32.c: Include dispextern.h.
12928
129292008-05-23 Juanma Barranquero <lekktu@gmail.com>
12930
12931 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12932 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12933 Fix typos in docstrings.
12934
129352008-05-23 Jason Rumney <jasonr@gnu.org>
12936
12937 * xsmfns.c: Remove includes that are already included by config.h.
12938
129392008-05-23 Kenichi Handa <handa@m17n.org>
12940
12941 * charset.c (Qemacs, charset_emacs): New variables.
12942 (char_charset): Fix for non-Unicode characters.
12943 (syms_of_charset): Define charset_emacs.
12944
12945 * w32term.c (x_draw_glyph_string): Be sure to update
12946 s->underline_thickness and s->underline_position. Be sure to draw
12947 underline within the current line area.
12948
12949 * xterm.c (x_draw_glyph_string): Be sure to update
12950 s->underline_thickness and s->underline_position. Be sure to draw
12951 underline within the current line area.
12952
12953 * fontset.c: Delete unused variables and add casting for char *
12954 throughout the file.
12955 (fontset_font): Try the fallback fonts of the current fontset
12956 before consulting the default fontset.
12957
12958 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12959
12960 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12961
129622008-05-22 Jason Rumney <jasonr@gnu.org>
12963
12964 * font.c: Don't include strings.h.
12965
12966 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12967
12968 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12969 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12970 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12971 to call xstrcasecmp.
12972
12973 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12974
12975 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12976
12977 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12978
12979 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12980
129812008-05-22 Kenichi Handa <handa@m17n.org>
12982
12983 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12984
12985 * font.c (font_prop_validate_style): Adjust for the format
12986 change of font_style_table.
12987
12988 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12989 two args.
12990
12991 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12992 two args.
12993
129942008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12995
12996 * minibuf.c (keys_of_minibuf): Delete.
12997 * lisp.h (keys_of_minibuf): Delete.
12998 * emacs.c (main): Don't call keys_of_minibuf.
12999
130002008-05-22 Kenichi Handa <handa@m17n.org>
13001
13002 * ftfont.c (ftfont_resolve_generic_family): Rename from
13003 ftfont_list_generic_family. Return a single family for each
13004 generic family.
13005 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
13006 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
13007 Call font_add_log.
13008 (ftfont_match): Call font_add_log.
13009
13010 * font.h (Ffont_xlfd_name): EXFUN adjusted.
13011 (FONT_DEBUG): Define it.
13012 (font_add_log): Extern it.
13013 (font_assert): Rename from xassert.
13014
13015 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
13016 (xfont_list_family): Call font_add_log.
13017 (xfont_match): Likewise.
13018 (memq_no_quit): Delete.
13019
13020 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
13021 call of Ffont_xlfd_name.
13022
13023 * xfaces.c (struct table_entry, slant_table, weight_table)
13024 (swidth_table): Move to font.c.
13025
13026 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
13027 xassert are changed to font_assert. Delete many unused variables.
13028 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
13029 New variables.
13030 (struct table_entry): Move from xfaces.c and modified.
13031 (weight_table, slant_table, width_table): Move from xfaces.c and
13032 contents adjusted for the change of struct table_entry.
13033 (font_style_to_value, font_style_symbolic): Adjust for the
13034 format change of font_style_table.
13035 (font_parse_family_registry): Don't overwrite existing foundry and
13036 family of font_spec.
13037 (font_score): Fix calculation of diff for sizes.
13038 (font_sort_entites): Call font_add_log.
13039 (font_delete_unmatched): Return a newly created list.
13040 (font_list_entities): Fix previous change. Call font_add_log.
13041 (font_matching_entity, font_open_entity, font_close_entity):
13042 Call font_add_log.
13043 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
13044 (Finternal_set_font_style_table): Delete.
13045 (BUILD_STYLE_TABLE): New macro.
13046 (build_style_table): New function.
13047 (Vfont_log, font_log_env_checked): New variables.
13048 (font_add_log): New function.
13049 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
13050 Declare Lisp variables "font-weight-table", "font-slant-table",
13051 "font-width-table", and "font-log". Initialize font_style_table.
13052
130532008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
13054
13055 * xterm.c (x_set_frame_alpha): Move declarations before statements.
13056
130572008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13058 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13059
13060 * frame.c (Qalpha): Add a new frame parameter `alpha'.
13061 (Vframe_alpha_lower_limit): New variable.
13062 (x_set_alpha): New function.
13063
13064 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
13065
13066 * xfns.c (x-create-frame, Qalpha):
13067 Initialize the frame parameter `alpha'.
13068 * xterm.c (OPAQUE, OPACITY): New.
13069 (x_set_frame_alpha): New function.
13070 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
13071
13072 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
13073 * w32fns.c (w32_frame_parm_handlers): Likewise.
13074
130752008-05-20 Jason Rumney <jasonr@gnu.org>
13076
13077 * w32font.c (add_font_entity_to_list): Don't add non-opentype
13078 truetype fonts to opentype list.
13079
130802008-05-20 Juanma Barranquero <lekktu@gmail.com>
13081
13082 * fontset.c (Ffontset_info): Doc fix.
13083 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
13084 <ignore-relative-composition>: Fix typos in docstrings.
13085
13086 * font.c (syms-of-font) <font-encoding-alist>:
13087 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
13088 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
13089 (Ffont_otf_alternates): Doc fixes.
13090
130912008-05-20 Kenichi Handa <handa@m17n.org>
13092
13093 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
13094 font.h through out the file.
13095 (FONT_DRIVERS): Rename from FONTOBJ.
13096 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
13097 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
13098
13099 * emacs.c (main): Call syms_of_font unconditionally.
13100
13101 * font.h (find_font_encoding): Extern it.
13102
13103 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
13104 fontset.c.
194d44e7 13105 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
13106 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
13107 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
13108 only when HAVE_WINDOW_SYSTEM is defined.
13109 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
13110 when HAVE_WINDOW_SYSTEM is defined.
13111
13112 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
13113 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
13114
13115 * xfaces.c: Include font.h unconditionally.
13116 (merge_face_ref, merge_face_vectors)
13117 (Finternal_set_lisp_face_attribute): Cancel the previous change.
13118
131192008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
13120
13121 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
13122 indirect_variable.
13123 * eval.c (lisp_indirect_variable): New fun.
13124 (Fuser_variable_p): Use it.
13125
131262008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13127
13128 * lisp.h (indirect_variable):
13129 * data.c (indirect_variable, let_shadows_buffer_binding_p):
13130 Use Lisp_Symbol pointers rather than Lisp_Object.
13131 Adjust callers.
13132 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
13133 To this end, change calling-convention.
13134
13135 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
13136 if some non-hidden buffers are selected by string&pred.
13137
131382008-05-19 Chong Yidong <cyd@stupidchicken.com>
13139
13140 * process.c (wait_reading_process_output): Always check status
13141 when in batch mode.
13142
131432008-05-19 Kenichi Handa <handa@m17n.org>
13144
13145 * font.c (font_list_entities): Fix handling of cache.
13146 (font_matching_entity): Likewise.
13147
13148 * ftfont.c (cs_iso8859_1): Delete.
13149 (ft_face_cache): New variable.
13150 (struct ftfont_info): New member fc_charset_idx.
13151 (ftfont_build_basic_charsets): Delete.
13152 (fc_charset_table): New variable.
13153 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
13154 . FC_CHARSET_IDX) as :font-entity property in the font entity.
13155 Callers changed.
13156 (ftfont_lookup_cache, ftfont_get_charset): New functions.
13157 (ftfont_spec_pattern): New argument fc_charset_idx.
13158 Check registry more rigidly. Change callers.
13159 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
13160 change of :font-entity property of the font.
13161
13162 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
13163 property of the font.
13164
131652008-05-18 Juanma Barranquero <lekktu@gmail.com>
13166
13167 * coding.c (Fcoding_system_p): Rename argument to match docstring.
13168 (Funencodable_char_position, Fcheck_coding_systems_region)
13169 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
13170 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
13171 (Ffind_operation_coding_system, Fset_coding_system_priority)
13172 (Fcoding_system_eol_type): Doc fixes.
13173
131742008-05-17 Glenn Morris <rgm@gnu.org>
13175
13176 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
13177
131782008-05-16 Eli Zaretskii <eliz@gnu.org>
13179
13180 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
13181 and st_gid.
13182
13183 * frame.c (Fdelete_frame): Don't call font_update_drivers if
13184 HAVE_WINDOW_SYSTEM is not defined.
13185
13186 * xfaces.c (merge_face_ref, merge_face_vectors)
13187 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
13188 HAVE_WINDOW_SYSTEM is defined.
13189 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
13190
131912008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
13192
13193 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
13194
131952008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13196
13197 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
13198
131992008-05-15 Kenichi Handa <handa@m17n.org>
13200
13201 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
13202 preference.
13203
132042008-05-15 Glenn Morris <rgm@gnu.org>
13205
13206 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
13207
132082008-05-15 Chong Yidong <cyd@stupidchicken.com>
13209
13210 * fns.c (init_fns): Don't initialize weak_hash_tables here.
13211 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
13212
13213 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
13214
132152008-05-15 Kenichi Handa <handa@m17n.org>
13216
13217 * ftfont.c (ftfont_list): Downcase family name to check generic
13218 families.
13219
13220 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
13221 font-spec for QCfont value.
13222
13223 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
13224 buffer. Check the return value of it.
13225
132262008-05-14 Jason Rumney <jasonr@gnu.org>
13227
13228 * w32term.c (w32_get_glyph_overhangs): Remove.
13229 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
13230
132312008-05-14 Kenichi Handa <handa@m17n.org>
13232
13233 * font.c (font_prop_validate): Make nil a valid value.
13234 (font_clear_cache): Check if the cached vector of entities is nil
13235 or not.
13236
132372008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13238
13239 * emacs.c (main_thread): Conditionalize on
13240 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13241 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
13242
13243 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
13244 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
13245 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
13246
132472008-05-14 Kenichi Handa <handa@m17n.org>
13248
13249 * coding.c (detect_coding_iso_2022): Ignore a coding category that
13250 has no corresponding coding system.
13251
132522008-05-14 Jason Rumney <jasonr@gnu.org>
13253
13254 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
13255
13256 * w32font.h (w32font_open_internal): Update declaration.
13257
13258 * w32font.c (w32font_open_internal): Change last argument from
13259 w32font_info struct to font object. Fill in font object from
13260 font_entity. Get Outline metrics if possible. Use them to
13261 calculate underline position and thickness. Use xlfd name as name
13262 property. Don't set codepage.
13263 (w32font_open): Pass font_object to w32font_open_internal. Don't
13264 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
13265 (w32font_draw): Use s->font.
13266 (clear_cached_metrics): Don't clear non-existent blocks.
13267
13268 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13269 font was not found.
13270 (x_draw_glyph_string): Use underline position and thickness from font.
13271
13272 * w32uniscribe.c (uniscribe_open): Pass font_object to
13273 w32font_open_internal.
13274
132752008-05-14 Kenichi Handa <handa@m17n.org>
13276
13277 These changes are to delete all legacy font-handling codes, and
13278 make Emacs use only font-backends.
13279
13280 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13281 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13282
13283 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13284
13285 * charset.h (Vcharset_non_preferred_head)
13286 (Vcurrent_iso639_language): Extern them.
13287
13288 * charset.c (Vcharset_non_preferred_head): New variable.
13289 (Vcurrent_iso639_language): New variable.
13290 (syms_of_charset): Declare it as a Lisp variable.
13291 (char_charset): Don't check non preferred charsets. As a last
13292 resort, return charset_unicode.
13293 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13294
13295 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13296 conditionals. Don't check enable_font_backend. Delete all codes
13297 used only when USE_FONT_BACKEND is not defined.
13298
13299 * dispextern.h (struct glyph_string): Change type of `font' to
13300 `struct font *'.
13301 (struct glyph_string): New member underline_position and
13302 underline_thickness.
13303 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13304 (struct face): Change type of `font' to `struct font *'. Remove
13305 members `font_name', `font_info_id'.
13306 (per_char_metric, encode_char): Delete externs.
13307 (calc_pixel_width_or_height): Adjust the prototype.
13308
13309 * emacs.c (enable_font_backend): Delete extern.
13310 (main): Don't set enable_font_backend. Don't check the command
13311 line argument "-disable-font-backend".
13312
13313 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13314 (enum font_property_index): New members FONT_DPI_INDEX,
13315 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13316 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13317 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13318 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13319 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13320 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13321 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13322 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13323 (struct font_spec, struct font_entity): New structs.
13324 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13325 (struct font): Many members from old "struct font_info" moved to
13326 here. Members font and entity deleted.
13327 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13328 the new font-related objects.
13329 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13330 (CHECK_FONT_GET_OBJECT): Likewise.
13331 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13332 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13333 (struct font_driver): New members case_sensitive anc check. Type
13334 of the member list and open changed.
13335 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13336 (font_symbolic_width, font_find_object, font_get_spec)
13337 (font_set_lface_from_name): Delete extern.
13338 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13339
13340 * font.c: Include <strings.h>.
13341 (enable_font_backend): Delete it.
13342 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13343 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13344 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13345 (null_string): Delete it.
13346 (null_vector): Make it static.
13347 (font_family_alist): Delete it.
13348 (Qnormal): Extern it.
13349 (QCextra, QClanguage): Delete it.
13350 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13351 (font_make_spec, font_make_entity, font_make_object)
13352 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13353 the string. Callers changed.
13354 (font_pixel_size): Adjusted for the format change of font-related
13355 objects.
13356 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13357 (font_style_to_value, font_style_symbolic): New function.
13358 (build_font_family_alist): Delete it.
13359 (font_registry_charsets): Use Fassoc_string instead of
13360 assq_no_quit.
13361 (font_prop_validate_symbol): Don't return null_string.
13362 (font_prop_validate_style): Adjusted for the change of
13363 style-related values in a font vector.
13364 (font_property_table): Delete entries for QClanguage and
13365 QCantialias, add entries for QCavgwidth.
13366 (get_font_prop_index): Delete the 2nd argument FROM.
13367 (font_prop_validate): Arguments changed.
13368 (font_put_extra): Adjusted for the change of font-related objects.
13369 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13370 (font_parse_fcname, font_unparse_fcname)
13371 (font_prepare_composition): Likewise.
13372 (font_parse_family_registry): Renamed from font_merge_old_spec.
13373 (otf_open): Delete the 1st arg entity.
13374 (font_otf_capability): Adjusted for the above change.
13375 (font_score): New arg alternate_families. Adjusted for the change
13376 of font-related objects.
13377 (font_sort_entites): New arg best_only.
13378 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13379 Delete them.
13380 (font_match_p): Check alternate families.
13381 (font_find_object): Delete it.
13382 (font_check_object): New function.
13383 (font_clear_cache): Adjusted for the change of font-related objects.
13384 (font_delete_unmatched): New arg.
13385 (font_list_entities): Call font_driver->list with a spec that
13386 doesn't specify style-related properties.
13387 (font_matching_entity): Arguments changed. Caller changed.
13388 (font_open_entity): Adjusted for the change of font-related objects.
13389 (font_close_object, font_has_char, font_encode_char)
13390 (font_get_name, font_get_spec): Likewise.
13391 (font_spec_from_name, font_clear_prop, font_update_lface):
13392 New functions.
13393 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13394 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13395 (font_at): Adjusted for the change of font-related objects.
13396 (font_range): New function.
13397 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13398 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13399 (Fcopy_font_spec, Fmerge_font_spec): New function.
13400 (Ffont_family_list): Renamed from list-families.
13401 (Finternal_set_font_style_table): Arguments changed.
13402 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13403 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13404 change of font-related objects.
13405 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13406
13407 * fontset.h (struct font_info): Delete it. Most members go to
13408 struct font.
13409 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13410 (enum FONT_SPEC_INDEX): Delete it.
13411 (font_info, list_fonts_func, load_font_func, query_font_func)
13412 (set_frame_fontset_func, find_ccl_program_func)
13413 (get_font_repertory_func, new_fontset_from_font_name): Delete
13414 externs.
13415 (fontset_from_font_name): Extern it.
13416 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13417 (FONT_INFO_FROM_FACE): Deleted.
13418 (face_for_font): Adjust prototype.
13419
13420 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13421 conditionals. Don't check enable_font_backend. Delete all codes
13422 used only when USE_FONT_BACKEND is not defined.
13423 (get_font_info_func, list_font_func, load_font_func)
13424 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13425 (get_font_repertory_func): Delete them.
13426 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13427 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13428 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13429 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13430 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13431 (fontset_compare_rfontdef): New function.
13432 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13433 rfont-defs by qsort. Adjusted for the change of font-group vector.
13434 (load_font_get_repertory): Deleted.
13435 (fontset_find_font): Use new macros to ref/set elements of
13436 font-def and rfont-def.
13437 (fontset_font): Fix the timing of remembering that no font for C.
13438 (free_face_fontset): Do nothing if the face has no fontset.
13439 (face_suitable_for_char_p): Use new macros to ref/set elements of
13440 rfont-def.
13441 (face_for_char): Likewise. Call face_for_char with font_object.
13442 (fs_load_font): Delete. Delete #pragma surrounding it.
13443 (fs_query_fontset): Use strcasecmp instead of strcmp.
13444 (generate_ascii_font_name): Adjusted for the format change of
13445 font-spec.
13446 (Fset_fontset_font): Likewise. Use new macros to set elements of
13447 font-def.
13448 (Fnew_fontset): Use font_unparse_xlfd to generate
13449 FONTSET_ASCII (fontset).
13450 (new_fontset_from_font_name): Deleted.
13451 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13452 a fontset is already created for the font. FIx updating of
13453 Vfontset_alias_alist.
13454 (fontset_ascii_font): Deleted.
13455 (Ffont_info): Adjusted for the format change of font-spec.
13456 (Finternal_char_font): Likewise.
13457 (Ffontset_info): Likewise.
13458 (syms_of_fontset): Don't check load_font_func.
13459
13460 * fns.c (internal_equal): Handle PREV_FONT.
13461
13462 * frame.h: Delete USE_FONT_BACKEND conditional.
13463
13464 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13465 conditionals. Don't check enable_font_backend. Delete all codes
13466 used only when USE_FONT_BACKEND is not defined.
13467 (x_set_font): Call x_new_font, not x_new_fontset2.
13468 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13469 already set for the frame.
13470
13471 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13472 a font-entity by font_make_entity. Use font_intern_prop instead
13473 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13474 font property. If a font is scalable, set avgwidth property to 0.
13475 Set font-entity property by font_put_extra.
13476 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13477 (ffont_driver): Adjusted for the change of struct font_driver.
13478 (ftfont_spec_pattern): New function.
13479 (ftfont_list): Return a list, not vector.
13480 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13481 (ftfont_list_family): Don't downcase names.
13482 (ftfont_free_entity): Deleted.
13483 (ftfont_open): Return a font-object. Adjusted for the change of
13484 struct font. Get underline_thickness and underline_position from
13485 font property. Don't update dpyinfo->smallest_font_height and
13486 dpyinfo->smallest_char_width.
13487 (ftfont_close): Don't free `struct font'.
13488 (ftfont_has_char): Adjusted for the format change of font-entity.
13489 (ftfont_encode_char, ftfont_text_extents): Likewise.
13490
13491 * ftxfont.c (ftxfont_list): Return a list, not vector.
13492 (ftxfont_open): Return a font-object. Adjusted for the change of
13493 struct font. Get underline_thickness and underline_position from
13494 font property. Don't update dpyinfo->smallest_font_height and
13495 dpyinfo->smallest_char_width.
13496 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13497 (ftxfont_draw): Adjusted for the change of struct font.
13498
13499 * image.c (image_ascent): Don't include "charset.h". Include
13500 "character.h" and "font.h".
13501
13502 * lisp.h (enum pvec_type): New member PREV_FONT.
13503 (Fassoc_string): EXFUN it.
13504
13505 * print.c: Include font.h.
13506 (print_object): Handle font-related objects.
13507
13508 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13509 conditionals. Don't check enable_font_backend. Delete all codes
13510 used only when USE_FONT_BACKEND is not defined.
13511 (handle_auto_composed_prop): Do nothing if it->f is not on a
13512 window system. Check how many following characters can be
13513 displayed by the same font.
13514 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13515 'struct font *'.
13516 (get_char_face_and_encoding): Assign the whole encoding task to
13517 the `encode-char' method of a font driver.
13518 (fill_composite_glyph_string): Adjusted for the change of `struct
13519 face' and `struct glyph_string'.
13520 (fill_glyph_string): Likewise.
13521 (get_per_char_metric): Arguments changed.
13522 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13523 and `struct glyph_string'.
13524 (produce_stretch_glyph, calc_line_height_property)
13525 (x_produce_glyphs): Likewise.
13526
13527 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13528 conditionals. Don't check enable_font_backend. Delete all codes
13529 used only when USE_FONT_BACKEND is not defined. Use
13530 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13531 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13532 (Qp): Extern them.
13533 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13534 Deleted.
13535 (struct font_name): Deleted.
13536 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13537 (compare_fonts_by_sort_order): New function.
13538 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13539 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13540 Deleted.
13541 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13542 compare_fonts_by_sort_order.
13543 (Fx_font_family_list): Call Ffont_family_list.
13544 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13545 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13546 (face_symbolic_slant, face_symbolic_swidth)
13547 (split_font_name_into_vector, build_font_name_from_vector)
13548 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13549 (font_rescale_ratio, split_font_name, build_font_name)
13550 (free_font_names, sort_fonts, x_face_list_fonts)
13551 (face_font_available_p, sorted_font_list, cmp_font_names)
13552 (font_list_1, concat_font_list, font_list, remove_duplicates):
13553 Deleted.
13554 (Fx_list_fonts): Use Ffont_list.
13555 (LFACE_AVGWIDTH): Deleted.
13556 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13557 by FONTP.
13558 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13559 (set_lface_from_font_name): Delete it.
13560 (set_lface_from_font): Renamed from
13561 set_lface_from_font_and_fontset. Caller changed. Don't set
13562 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13563 for face.
13564 (merge_face_vectors): Copy font-spec if necessary.
13565 Clear properties of the font-spec if necessary.
13566 (merge_face_ref): Clear properties of the font-spec if necessary.
13567 (Finternal_set_lisp_face_attribute): Likewise.
13568 (set_font_frame_param): Use font_load_for_lface to load a
13569 font-object, and call Fmodify_frame_parameters with it.
13570 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13571 font name by Ffont_xlfd_name.
13572 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13573 QCslant, and QCwidth.
13574 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13575 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13576 Compare fonts by EQ.
13577 (lookup_non_ascii_face): Deleted.
13578 (face_for_font): The 2nd argument changed.
13579 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13580 Check atomic font properties by case insensitive.
13581 (realize_non_ascii_face): Set face->overstrike correctly.
13582 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13583 (dump_realized_face): Get font name from
13584 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13585
13586 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13587 conditionals. Don't check enable_font_backend. Delete all codes
13588 used only when USE_FONT_BACKEND is not defined.
13589 (xic_create_xfontset): Original code deleted and renamed from
13590 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13591 (x_make_gc): Don't set GCFont in GCs.
13592 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13593 opened by "fixed".
13594 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13595 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13596 get_font_repertory_func.
13597
13598 * xfont.c: Include <stdlib.h> and "ccl.h".
13599 (struct xfont_info): New structure.
13600 (xfont_query_font): Deleted.
13601 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13602 moved from xterm.c.
13603 (xfont_driver): Adjusted for the change of struct font_driver.
13604 (compare_font_names): New function.
13605 (xfont_list_pattern): Sort font names case insensitively. Make
13606 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13607 (xfont_list): Return a list, not vector.
13608 (xfont_match): If the font doesn't have QCname property, generate
13609 a name from the other font properties.
13610 (xfont_open): Return a font-object. Adjusted for the change of
13611 struct font. Get underline_thickness and underline_position from
13612 font property. Don't update dpyinfo->smallest_font_height and
13613 dpyinfo->smallest_char_width.
13614 (xfont_close): Don't free struct font.
13615 (xfont_prepare_face): Adjusted for the change of struct font.
13616 (xfont_done_face): Deleted.
13617 (xfont_has_char): Adjusted for the change of struct font.
13618 (xfont_encode_char, xfont_draw): Likewise.
13619 (xfont_check): New function.
13620
13621 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13622 callback function.
13623 (xftfont_match): Adjusted for the format change of font-entity.
13624 (xftfont_open): Adjusted for the format change of font-entity and
13625 font-object. Adjusted for the change of struct font. Return a
13626 font-object. Don't update dpyinfo->smallest_font_height and
13627 dpyinfo->smallest_char_width.
13628 (xftfont_close): Block input while calling XftFontClose.
13629 (xftfont_prepare_face): Don't block input while calling
13630 xftfont_get_colors. Adjusted for the change of struct font.
13631 (xftfont_shape): Return value of error case fixed.
13632
13633 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13634
13635 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13636 conditionals.
13637 (FONT_WIDTH): Return (f)->max_width.
13638 (struct x_display_info): Delete member `font'.
13639 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13640 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13641 (struct x_output): Change type of `font' to `struct font *'.
13642
13643 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13644 conditionals. Don't check enable_font_backend. Delete all codes
13645 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13646 (x_per_char_metric, x_encode_char): Deleted.
13647 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13648 (x_compute_glyph_string_overhangs): Adjusted for the change of
13649 `struct face'.
13650 (x_draw_glyph_string_foreground)
13651 (x_draw_composite_glyph_string_foreground): Likewise.
13652 (x_draw_glyph_string): Likewise. Use font->underline_position and
13653 font->underline_thickness.
13654 (x_new_font): Renamed from x_new_fontset2.
13655 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13656 (x_check_font): Call `check' method of a font driver.
13657 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13658 (x_query_font, x_get_font_repertory): Deleted.
13659 (x_find_ccl_program): Renamed and moved to xfont.c.
13660 (x_redisplay_interface): Adjusted for the change of `struct
13661 redisplay_interface'.
13662
13663 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13664 conditionals. Don't check enable_font_backend. Delete all codes
13665 used only when USE_FONT_BACKEND is not defined. Surround non-used
13666 code by "#ifdef OLD_FONT" and "endif".
13667 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13668
13669 * w32font.h (struct w32font_info): New member.
13670 (FONT_COMPAT): New macro.
13671 (w32font_open_internal): Prototype adjusted.
13672
13673 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13674 OLD_FONT" and "endif".
13675
13676 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13677 conditionals. Don't check enable_font_backend. Delete all codes
13678 used only when USE_FONT_BACKEND is not defined.
13679 (w32font_open): Return a font-object. Make a font-object by
13680 font_make_object. Adjusted for the change of struct w32font_info.
13681 (w32font_close): Don't free struct font. Adjusted for the change
13682 of struct w32font_info.
13683 (w32font_encode_char, w32font_text_extents, w32font_draw):
13684 Adjusted for the change of struct w32font_info.
13685 (w32font_draw): Likewise.
13686 (w32font_list_internal): Return a list, not vector.
13687 (w32font_open_internal): Change the 4th arg to font-object.
13688 Adjusted for the change of struct w32font_info and font-object format.
13689 (add_font_name_to_list): Don't downcase names.
13690 (w32_enumfont_pattern_entity): Make a font-entity by
13691 font_make_entity. Adjusted for the format change of font-entity.
13692 Use FONT_SET_STYLE to set a style-related font property. If a
13693 font is scalable, set avgwidth property to 0. Set font-entity
13694 property by font_put_extra.
13695 (font_matches_spec): Adjusted for the format change of font-entity.
13696 (w32_weight_table, w32_decode_weight): New variables.
13697 (w32_encode_weight): New function.
13698 (fill_in_logfont): Adjusted for the format change of font-spec.
13699 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13700 weight value.
13701 (w32font_driver): Adjusted for the change of struct font_driver.
13702
13703 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13704 conditionals. Don't check enable_font_backend. Surround non-used
13705 code by "#ifdef OLD_FONT" and "endif".
13706 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13707 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13708
13709 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13710 conditionals. Don't check enable_font_backend. Delete all codes
13711 used only when USE_FONT_BACKEND is not defined. Surround non-used
13712 code by "#ifdef OLD_FONT" and "endif".
13713
13714 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13715 (uniscribe_open): Return value changed to font-object.
13716 Adjusted for the format change of font-object.
13717 (uniscribe_otf_capability): Adjusted for the change of struct font.
13718 (add_opentype_font_name_to_list): Don't downcase names.
13719 (uniscribe_font_driver): Adjusted for the change of struct
13720 font_driver.
13721
137222008-05-13 Chong Yidong <cyd@stupidchicken.com>
13723
13724 * dispnew.c (update_frame_1): Check if tty output is still valid
13725 before flushing it.
13726
137272008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13728
13729 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13730 to Gtk+ menus.
13731
137322008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13733
13734 * dired.c (file_name_completion): Tweak the code so as to always do it
13735 in a single pass. Tighten the scope of some variables.
13736
13737 * dired.c (Qdefault_directory): New var.
13738 (file_name_completion): Use it instead of Fexpand_file_name.
13739 (syms_of_dired): Initialize it.
13740
137412008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13742
13743 * fileio.c (double_dollars): Remove dead code.
13744
137452008-05-10 Eli Zaretskii <eliz@gnu.org>
13746
13747 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13748 Mention w32-get-true-file-attributes in doc string.
13749
13750 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13751
137522008-05-09 Glenn Morris <rgm@gnu.org>
13753
13754 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13755 2008-04-23.
13756
137572008-05-09 Eli Zaretskii <eliz@gnu.org>
13758
13759 Support for reporting owner and group of each file on MS-Windows:
13760 * dired.c (stat_uname, stat_gname): New functions, with special
13761 implementation for w32.
13762 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13763
13764 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13765 (dflt_group_name): New static variable.
13766 (dflt_group): Rename from the_group.
13767 (init_user_info): Init dflt_group fields. Get user's group name
13768 from LookupAccountSid.
13769 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13770 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13771 New initialization states.
13772 (globals_of_w32): Initialize them to zero. Initialize the default
13773 group name to "None".
13774 (GetFileSecurity_Name): New global var, the name of the function
13775 to call for GetFileSecurity.
13776 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13777 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13778 (get_file_security, get_security_descriptor_owner)
13779 (get_security_descriptor_group, is_valid_sid)
13780 (get_file_security_desc, get_rid, get_name_and_id)
13781 (get_file_owner_and_group): New functions.
13782 (stat): Use get_file_security_desc and get_file_owner_and_group to
13783 report the owner and primary group of each file. Don't ignore the
13784 high 32 bits of file's size, now that st_size is 64-bit wide.
13785 Fix test when to get true file attributes.
13786 (init_user_info): Use get_rid instead of equivalent inline code.
13787 (fstat): Don't ignore the high 32 bits of file's size.
13788
137892008-05-09 Chong Yidong <cyd@stupidchicken.com>
13790
13791 * image.c (png_load): Use correct bit-depth for setting background
13792 color.
13793
137942008-05-08 Eli Zaretskii <eliz@gnu.org>
13795
13796 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13797 epa-hook.elc.
13798
137992008-05-08 Juanma Barranquero <lekktu@gmail.com>
13800
13801 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13802
138032008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13804
13805 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13806 because the original parameters are in pure storage now.
13807 (mac_window): Remove unused params. Update callers.
13808
138092008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13810
13811 * lread.c (substitute_object_recurse): Use lower-level primitives.
13812 Don't signal errors when traversing sub-char-tables.
13813 Don't loop over all the possible characters when traversing char-tables.
13814
13815 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13816 just like we do in print.c.
13817
138182008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13819
13820 * minibuf.c (Ftry_completion): Remove code left over from when we used
13821 scmp instead of Fcompare_strings.
13822
138232008-05-04 Juanma Barranquero <lekktu@gmail.com>
13824
13825 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13826
138272008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13828
13829 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13830 Create bitmap context in native byte order.
13831
13832 * macterm.c (XDrawLine)
13833 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13834 context in native byte order.
13835
138362008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13837
13838 * config.in: Regenerate.
13839
13840 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13841 New definitions for Image I/O support.
13842 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13843 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13844 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13845 (mac_data_provider_release_data, image_load_image_io)
13846 [USE_MAC_IMAGE_IO]: New functions.
13847 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13848 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13849 (init_image_func_pointer) [MAC_OSX]: Remove function.
13850 (image_load_quartz2d) [MAC_OSX]: Check availability of
13851 CGImageCreateWithPNGDataProvider at compile time.
13852 Use lowercase `false' for boolean constant.
13853 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13854 Use image_load_image_io.
13855 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13856 Don't check MyCGImageCreateWithPNGDataProvider.
13857 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13858 Don't call init_image_func_pointer.
13859
13860 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13861
13862 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13863 Make variable non-static.
13864 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13865 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13866
13867 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13868 (RED_FROM_ULONG): Mask off higher bits.
13869 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13870
13871 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13872 Include AvailabilityMacros.h.
13873 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13874 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13875
138762008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13877
13878 * chartab.c (Fset_char_table_range): If range is t, really set all
13879 chars to that value.
13880
138812008-05-03 Eli Zaretskii <eliz@gnu.org>
13882
13883 * dired.c (Ffile_attributes): Don't allow the device number become
13884 negative.
13885
138862008-05-02 Daiki Ueno <ueno@unixuser.org>
13887
13888 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13889
138902008-05-02 Juri Linkov <juri@jurta.org>
13891
13892 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13893 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13894 DEFAULT argument as a list of default values in docstrings.
13895
138962008-05-01 Chong Yidong <cyd@stupidchicken.com>
13897
13898 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13899
139002008-05-01 Martin Rudalics <rudalics@gmx.at>
13901
13902 * dispnew.c (change_frame_size_1): Preserve small windows when
13903 shrinking frames by calling set_window_height|width with third
13904 arg 2.
13905
13906 * window.h (struct window): Replace field too_small_ok by field
13907 resize_proportionally.
13908
13909 * window.c (make_window): Initialize resize_proportionally.
13910 (enlarge_window): Temporarily set resize_proportionally to make
13911 sure that shrink_windows does scale the window proportionally.
13912 (shrink_windows): When window has resize_proportionally set try
13913 to shrink it proportionally by stealing from other windows.
13914 (struct saved_window, Fset_window_configuration)
13915 (compare_window_configurations): Handle resize_proportionally.
13916 (WINDOW_TOTAL_SIZE): New macro.
13917 (window_min_size, shrink_windows, size_window): Use it.
13918 (check_min_window_sizes): Remove. Invalid values of
13919 window-min-height|width are handled by window_min_size_2 now.
13920 (size_window, Fsplit_window, enlarge_window)
13921 (adjust_window_trailing_edge, grow_mini_window): Don't call
13922 check_min_window_sizes.
13923 (window_min_size_2, window_min_size_1, window_min_size):
13924 New argument safe_p for retrieving "safe" minimum sizes.
13925 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13926 (adjust_window_trailing_edge, grow_mini_window):
13927 Adjust arguments of window_min_size... functions.
13928 (shrink_windows): Argument min_size removed. New argument
13929 safe_p allows shrinking windows to their safe minimum sizes.
13930 Calculate minimum size and decide whether a window shall be
13931 deleted for each window individually.
13932 (size_window): When nodelete_p equals 2, tell shrink_windows to
13933 delete windows only if their new minimum size is no more safe.
13934 (shrink_window_lowest_first): Call window_min_size_1 to make
13935 sure to preserve modeline of bottom-most window when resizing
13936 the minibuffer.
13937 (Fset_window_configuration, Fcurrent_window_configuration)
13938 (compare_window_configurations): Do not handle
13939 window-min-height|width any more.
13940 (syms_of_window): Clarify window-min-height|width doc-strings.
13941
139422008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13943
13944 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13945 some more. Copy some of the code from Ftry_completions.
13946 Remove special case code that dates back to initial revision when the
13947 slash was only added when necessary and that can't trigger nowadays.
13948
139492008-04-27 Kenichi Handa <handa@m17n.org>
13950
13951 * font.c (font_prop_validate): Signal `error' instead of `font'.
13952
139532008-04-29 Jason Rumney <jasonr@gnu.org>
13954
13955 * w32fns.c (Fw32_battery_status): New defun.
13956 (syms_of_w32fns): Defsubr it.
13957
139582008-04-28 Andreas Schwab <schwab@suse.de>
13959
13960 * dired.c (file_name_completion): Fix another mixing of encoded
13961 and decoded names.
13962
139632008-04-28 Juanma Barranquero <lekktu@gmail.com>
13964
13965 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13966
139672008-04-27 Juanma Barranquero <lekktu@gmail.com>
13968
13969 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13970
139712008-04-27 Andreas Schwab <schwab@suse.de>
13972
13973 * dired.c (file_name_completion): Fix inappropriate mixing of
13974 encoded and decoded names.
13975
13976 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13977
13978 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13979
139802008-04-26 Eli Zaretskii <eliz@gnu.org>
13981
13982 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13983 2008-03-31, it's not needed anymore with `struct stat' definition
13984 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13985 for the same reasons.
13986
139872008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13988
13989 * m/sparc.h: Additional redefinitions for GNU/Linux.
13990
139912008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13992
13993 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13994 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13995 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13996 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13997 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13998 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13999 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14000 Likewise.
14001
14002 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
14003 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
14004 (mac_ax_number_of_characters): Add externs.
14005 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
14006 [USE_MAC_TSM]: Likewise.
14007 (mac_handle_text_input_event) [MAC_OSX]:
14008 Handle kEventTextInputOffsetToPos for no active input area case.
14009 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14010 (mac_handle_document_access_event)
14011 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
14012 (install_application_handler) [MAC_OSX]: Register handlers for
14013 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
14014 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14015 Register mac_handle_document_access_event.
14016
14017 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
14018 Make functions non-static.
14019
140202008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
14021
14022 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
14023 (read_file_name_completion_ignore_case, insert_default_directory)
14024 (Qdefault_directory): Move to minibuffer.el.
14025 (Fread_file_name): Call the new `read-file-name' instead.
14026
140272008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14028
14029 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
14030 Make function non-static.
14031 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
14032 Remove function.
14033 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14034 Move to mactoolbox.c.
14035 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
14036
14037 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
14038 (mac_rect_make): New macro.
14039
14040 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
14041 instead of float.
14042 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14043 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
14044 (XSetBackground) [USE_CG_DRAWING]: Likewise.
14045 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
14046 CGRectMake.
14047 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
14048 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
14049 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
14050 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14051 instead of WindowRef in argument type.
14052 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
14053 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
14054 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
14055 instead of DISPLAY. All uses changed.
14056 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
14057 (x_calc_absolute_position): Simplify so as not to use
14058 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
14059
14060 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
14061 instead of WindowRef in argument type.
14062 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
14063 [TARGET_API_MAC_CARBON]: Remove externs.
14064 (create_apple_event, mac_event_parameters_to_lisp)
14065 [TARGET_API_MAC_CARBON]: Add externs.
14066
14067 * mactoolbox.c (Vmac_ts_script_language_on_focus)
14068 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
14069 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
14070 is clicked.
14071 (x_activate_menubar): Remove extern for saved_menu_event_location.
14072 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
14073 Move from mac.c.
14074
140752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14076
14077 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
14078 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
14079
140802008-04-23 Jason Rumney <jasonr@gnu.org>
14081
14082 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
14083 attributes only for local files.
14084
14085 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
14086 default to Qlocal.
14087
140882008-04-22 Juri Linkov <juri@jurta.org>
14089
14090 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
14091 read-buffer-to-switch instead of using the letter "B".
14092
140932008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
14094
14095 * fileio.c (Qdefault_directory): New variable.
14096 (Fread_file_name): Use it to pass `dir' to the completion functions.
14097
140982008-04-20 Chong Yidong <cyd@stupidchicken.com>
14099
14100 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
14101
141022008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
14103
14104 * keyboard.c (Vpre_help_message): Remove.
14105 (show_help_echo): Remove default C code.
14106
14107 * dired.c (directory_files_internal, file_name_completion):
14108 Only call ENCODE_FILE if the string is indeed decoded.
14109
141102008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14111
14112 * Makefile.in (TOOLKIT_DEFINES): Remove.
14113 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
14114
141152008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14116
14117 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
14118 (mactoolbox.o): New target.
14119
14120 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
14121 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
14122
14123 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
14124 Use mac_set_frame_window_background instead of XSetWindowBackground.
14125 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
14126 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
14127 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
14128 instead of SetWindowTitleWithCFString.
14129 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
14130 Move function to mactoolbox.c.
14131 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
14132 Use mac_set_window_modified instead of SetWindowModified.
14133 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
14134 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
14135 (Fx_focus_frame): Use mac_front_non_floating_window instead of
14136 FrontNonFloatingWindow. Use mac_activate_window instead of
14137 ActivateWindow. Use mac_active_non_floating_window instead of
14138 ActiveNonFloatingWindow.
14139 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
14140 Use mac_show_hourglass and mac_hide_hourglass.
14141 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
14142 instead of GetGlobalMouse.
14143 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
14144 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
14145 Use mac_bring_window_to_front instead of BringToFront.
14146 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
14147 mactoolbox.c.
14148 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
14149 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
14150 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
14151 mactoolbox.c.
14152
14153 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
14154 (XtPointer): Move typedef from macmenu.c.
14155 (enum button_type): Move enum from macmenu.c.
14156 (widget_value): Move typedef from macmenu.c.
14157 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
14158 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14159 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14160 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14161 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14162 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14163 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14164 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
14165 (Selection): Move typedef from macselect.c.
14166 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
14167 macterm.c.
14168 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
14169 (mac_is_window_collapsed, mac_bring_window_to_front)
14170 (mac_send_window_behind, mac_hide_window, mac_show_window)
14171 (mac_collapse_window, mac_front_non_floating_window)
14172 (mac_active_non_floating_window, mac_activate_window)
14173 (mac_move_window_structure, mac_move_window, mac_size_window)
14174 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
14175
14176 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
14177 (enum mac_menu_kind): Move enum to mactoolbox.c.
14178 (min_menu_id): Move variable to mactoolbox.c.
14179 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
14180 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
14181 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14182 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14183 [TARGET_API_MAC_CARBON]: Likewise.
14184 (XtPointer): Move typedef to macgui.h.
14185 (enum button_type): Move enum to macgui.h.
14186 (widget_value): Move typedef to macgui.h.
14187 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
14188 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
14189 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
14190 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
14191 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
14192 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
14193 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
14194 (popup_activated_flag): Make variable non-static.
14195 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
14196 (add_menu_item, fill_menu, dispose_menus):
14197 Move functions to mactoolbox.c.
14198 (restore_show_help_function, menu_target_item_handler)
14199 (install_menu_target_item_handler, mac_handle_dialog_event)
14200 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
14201 [TARGET_API_MAC_CARBON]: Likewise.
14202 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
14203 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14204 (find_and_call_menu_selection, name_is_separator): Make function
14205 non-static.
14206 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
14207 to mactoolbox.c.
14208 (set_frame_menubar): Don't call install_menu_quit_handler.
14209 (menu_item_selection): New variable.
14210 (mac_menu_show): Use create_and_show_popup_menu.
14211 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
14212 selection but set variable menu_item_selection. All uses changed.
14213 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
14214 Call install_menu_quit_handler. Move to mactoolbox.c.
14215
14216 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
14217 (Selection): Move typedef to macgui.h.
14218 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
14219 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
14220 Make variables non-static.
14221 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14222 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
14223 Make functions non-static.
14224 (Vmac_service_selection) [MAC_OSX]: Likewise.
14225 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
14226 (mac_valid_selection_target_p, mac_clear_selection)
14227 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14228 (mac_put_selection_value, mac_selection_has_target_p)
14229 (mac_get_selection_value, mac_get_selection_target_list)
14230 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
14231 Move functions to mactoolbox.c.
14232 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
14233 Likewise.
14234 (copy_scrap_flavor_data, mac_handle_service_event)
14235 (install_service_handler) [MAC_OSX]: Likewise.
14236 (syms_of_macselect) <Vmac_dnd_known_types>:
14237 Use mac_dnd_default_known_types.
14238
14239 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
14240 Move to mactoolbox.c.
14241 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
14242 (Fx_selection_owner_p): Add EXFUN.
14243 (install_window_handler, remove_window_handler, XSetWindowBackground):
14244 Remove externs.
14245 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
14246 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
14247 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
14248 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
14249 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
14250 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
14251 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
14252 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
14253 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
14254 (create_and_show_popup_menu, mac_get_selection_from_symbol)
14255 (mac_valid_selection_target_p, mac_clear_selection)
14256 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
14257 (mac_put_selection_value, mac_selection_has_target_p)
14258 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
14259 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
14260 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
14261 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
14262 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
14263 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
14264 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
14265 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14266 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14267
14268 * mactoolbox.c: New file.
14269
142702008-04-18 Jason Rumney <jasonr@gnu.org>
14271
14272 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14273
142742008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14275
14276 * character.c (Fmultibyte_char_to_unibyte):
14277 Return latin1 chars unchanged.
14278
14279 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14280 relocated if it points to `name'.
14281
142822008-04-17 Kenichi Handa <handa@m17n.org>
14283
14284 * data.c (Faset): Allow setting a multibyte character in an
14285 ASCII-only unibyte string.
14286
14287 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14288
142892008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14290
14291 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14292 done in config.h.
14293
142942008-04-16 Juanma Barranquero <lekktu@gmail.com>
14295
14296 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14297 (Fchar_direction): Add usage in the docstring.
14298
142992008-04-15 Chong Yidong <cyd@stupidchicken.com>
14300
14301 * keyboard.c (read_key_sequence): Remove always-true checks.
14302
143032008-04-14 Jason Rumney <jasonr@gnu.org>
14304
14305 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14306 compatibility struct, for better underline positioning.
14307
143082008-04-13 David Hansen <david.hansen@gmx.net>
14309
14310 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14311 string.
14312
143132008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14314
14315 * m/hp800.h (XUINT, XSET): Remove.
14316
143172008-04-12 Juanma Barranquero <lekktu@gmail.com>
14318
14319 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14320 previous change.
14321
143222008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14323
14324 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14325 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14326
143272008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14328
14329 * keymap.h (map_keymap_canonical): Declare.
14330 * xmenu.c (single_keymap_panes): Use it.
14331
143322008-04-11 Glenn Morris <rgm@gnu.org>
14333
14334 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14335 set the target's value to that of the alias.
14336
143372008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14338
14339 * term.c (set_tty_color_mode): Left over typo.
14340
143412008-04-10 Michael Albinus <michael.albinus@gmx.de>
14342
14343 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14344 only after check for file name handler functions. Signal, when
14345 native functionality is not supported.
14346 (syms_of_fileio): Declare it unconditionally.
14347
143482008-04-10 Jason Rumney <jasonr@gnu.org>
14349
14350 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14351 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14352
14353 * w32.c (logon_network_drive): Also logon to remote drives that
14354 are mapped to drive letters.
14355
143562008-04-10 Glenn Morris <rgm@gnu.org>
14357
14358 * xdisp.c (truncate-partial-width-windows): Doc fix.
14359
143602008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14361
14362 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14363 Move functions to minibuffer.el.
14364 (syms_of_fileio): Don't declare them.
14365
143662008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14367
14368 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14369 (syms_of_minibuf): Remove its initialization.
14370
14371 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14372
143732008-04-09 Juanma Barranquero <lekktu@gmail.com>
14374
14375 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14376
143772008-04-09 Jason Rumney <jasonr@gnu.org>
14378
14379 * makefile.w32-in (distclean): Delete makefile too.
14380 (maintainer-clean): New target.
14381
14382 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14383
14384 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14385 for new font backend and composite cases.
14386
143872008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14388
14389 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14390 Most of the code moved to run_timers.
14391 (do_pending_atimers): Call run_timers.
14392 (run_timers): New function.
14393
14394 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14395 run atimers.
14396
14397 * process.c (wait_reading_process_output): The same as above.
14398
143992008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14400
14401 * minibuf.c (last_exact_completion): Remove variable.
14402 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14403 (complete_and_exit_1, complete_and_exit_2)
14404 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14405 (Fdisplay_completion_list, display_completion_list_1)
14406 (Fminibuffer_completion_help, Fself_insert_and_exit)
14407 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14408 minibuffer.el.
14409 (syms_of_minibuf): Remove corresponding initializations.
14410
14411 * keyboard.c (Qdeactivate_mark): New var.
14412 (command_loop_1): Use it to call `deactivate-mark'.
14413 (syms_of_keyboard): Initialize it.
14414
14415 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14416 to another frame.
14417 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14418 Don't call set_tty_color_mode.
14419 (store_frame_param): Reset previous_frame rather than call
14420 set_tty_color_mode.
14421 * term.c (set_tty_color_mode): Rewrite.
14422 * dispextern.h (set_tty_color_mode): New type.
14423 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14424
144252008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14426
14427 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14428 for generic chars, which do not exist any more in emacs-unicode.
14429
144302008-04-08 Michael Albinus <michael.albinus@gmx.de>
14431
14432 * coding.c (detect_coding_emacs_mule)
14433 (Ffind_operation_coding_system): Fix typo.
14434
144352008-04-08 Jason Rumney <jasonr@gnu.org>
14436
14437 * w32uniscribe.c (SNAME): Extract only symbol name.
14438
14439 * w32font.h (struct w32_metric_cache): New struct.
14440 (w32font_info): Use it.
14441 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14442 (CACHE_BLOCKSIZE): New constants.
14443
14444 * w32font.c (Qja, Qko, Qzh): New symbols.
14445 (syms_of_w32font): Initialise them.
14446 (font_matches_spec): Use them to filter by language.
14447 (recompute_cached_metrics): Remove function.
14448 (compute_metrics, clear_cached_metrics): New functions.
14449 (w32font_encode_char): Use them to manage metric cache.
14450 (w32font_text_extents): Cache metrics for all glyphs on demand.
14451 Delay converting glyph indices to WORD until needed.
14452 (w32font_open_internal): Initialize metric cache to empty.
14453 (registry_to_w32_charset): Charset should always be a symbol.
14454 (fill_in_logfont, list_all_matching_fonts): Family should
14455 always be a symbol.
14456
144572008-04-06 Jason Rumney <jasonr@gnu.org>
14458
14459 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14460 Give up if glyph indices not supported. Use uniscribe obtained
14461 ABC widths for individual metrics. Map glyph clusters back to
14462 characters using fClusterStart flag. Return number of glyphs
14463 produced, not chars processed.
14464 (uniscribe_shape): Map char at FROM to current glyph.
14465
144662008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14467
14468 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14469 Use SetMenuItemHierarchicalMenu.
14470
144712008-04-05 Jason Rumney <jasonr@gnu.org>
14472
14473 * image.c (pbm_load): Allow color values up to 65535.
14474 Throw an error if max_color_idx is outside the supported range.
14475 Report an error when image size is invalid.
14476 Read two bytes at a time when raw images have max_color_idx above 255.
14477
aac0c6e3
MR
144782008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14479
14480 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14481 append "CCL: Quitted" when the CCL program is quitted.
14482 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14483
14484 * ccl.h (struct ccl_program): New member quit_silently.
14485
144862008-04-05 Chong Yidong <cyd@stupidchicken.com>
14487
14488 * search.c (compile_pattern_1): Treat non-nil and non-string of
14489 search-spaces-regexp as nil.
14490
14491 * minibuf.c (Fassoc_string): Tweak docstring.
14492
144932008-04-05 Eli Zaretskii <eliz@gnu.org>
14494
14495 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14496 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14497 2008-03-14 to force inode be positive.
14498
14499 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14500 _S_* ones, since we now use our own sys/stat.h.
14501 (stat, fstat): Don't mangle the inode number.
14502 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14503
145042008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14505
14506 * frame.h (struct frame): Give one more bit to `visible' since we use
14507 values larger than 1 to indicate obscured frames on ttys.
14508
14509 * keymap.c (Qkeymap_canonicalize): New var.
14510 (Fmap_keymap_internal): New fun.
14511 (describe_map): Use keymap-canonicalize.
14512
14513 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14514 (Fundo_boundary): Set them.
14515 (syms_of_undo): Initialize them.
14516 (record_point): Use them instead of last_point_position*.
14517 (last_undo_buffer): Change type.
14518
145192008-04-04 Jason Rumney <jasonr@gnu.org>
14520
14521 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14522 (recompute_cached_metrics): Don't set ascent and descent per char.
14523
14524 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14525 (uniscribe_check_otf): Add GC protection before consing.
14526 Rearrange loop for counting features.
14527
145282008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14529
14530 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14531 buffer with byte-size of source buffer.
14532
145332008-04-03 Chong Yidong <cyd@stupidchicken.com>
14534
14535 * callint.c (Fcall_interactively): Handle temporary region even
14536 when shift-select-mode is off.
14537
145382008-04-03 Jason Rumney <jasonr@gnu.org>
14539
14540 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14541
145422008-04-03 Kenichi Handa <handa@m17n.org>
14543
14544 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14545 (CATEGORY_MASK_UTF_16): Likewise.
14546 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14547 binary file.
14548 (detect_coding): Add null-byte detection for a binary file.
14549 (detect_coding_system): Likewise.
14550
145512008-04-03 Jason Rumney <jasonr@gnu.org>
14552
14553 * w32uniscribe.c: New file.
14554
14555 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14556
14557 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14558
14559 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14560 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14561 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14562 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14563 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14564 (Qphonetic): New symbols.
14565 (syms_of_w32font): Initialize them.
14566 (font_supported_scripts): Use them.
14567 (w32font_list_family): List all charsets.
14568 (w32font_text_extents, recompute_cached_metrics): Fix metric
14569 calculations.
14570 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14571 Give opentype fonts their own format.
14572 (font_matches_spec): New arguments backend and logfont.
14573 Handle :otf spec for uniscribe backend.
14574 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14575 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14576
14577 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14578 font backend.
14579 (globals_of_w32fns): Initialize uniscribe font backend.
14580
14581 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14582 dependencies.
14583 (w32uniscribe.$(O)): New file to build.
14584 (FONT_OBJ): Include w32uniscribe.$(O).
14585 (LIBS): Add uniscribe libraries.
14586
14587 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14588
145892008-04-02 Chong Yidong <cyd@stupidchicken.com>
14590
14591 * callint.c (Vshift_select_mode): New var.
14592 (Finteractive): Document new ^ spec.
14593 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14594 is present.
14595
14596 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14597 (command_loop_1): Avoid running the direct display versions of
14598 forward-char and backward-char if shift-selection may occur.
14599 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14600 shift-translation takes place.
14601
14602 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14603 avoid clobbering by define-minor-mode.
14604
14605 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14606 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14607
14608 * syntax.c (Fforward_word): Add ^ interactive spec.
14609
14610 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14611 (Fscroll_right): Add ^ interactive spec.
14612
146132008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14614
14615 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14616
14617 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14618
14619 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14620
146212008-03-31 Juri Linkov <juri@jurta.org>
14622
14623 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14624
146252008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14626
14627 * gtkutil.c (xg_set_geometry): Fix indentation.
14628 (xg_resize_outer_widget): Remove.
14629 (x_wm_size_hint_off): Fix indentation.
14630 (xg_frame_set_char_size): Call flush_and_sync after
14631 gtk_window_resize.
14632 (x_wm_set_size_hint): Pass NULL as geometry window to
14633 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14634 Add menu bar and tool bar height to base height.
14635 (xg_update_frame_menubar, free_frame_menubar)
14636 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14637 (update_frame_tool_bar, free_frame_tool_bar):
14638 Change xg_resize_outer_widget to xg_frame_set_char_size.
14639
146402008-03-30 Michael Albinus <michael.albinus@gmx.de>
14641
14642 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14643 (Fdbus_call_method): New parameter TIMEOUT.
14644 (dbus-send-signal): Optimize UNGCPRO call.
14645
146462008-03-29 Juri Linkov <juri@jurta.org>
14647
14648 * window.c (Fdisplay_buffer): Move call to
14649 Vsplit_window_preferred_function out of conditions that check
14650 if window is eligible for vertical splitting.
14651 When Vsplit_window_preferred_function is non-nil, call it and use
14652 its non-nil return value as window. Otherwise, continue doing
14653 vertical splitting using Fsplit_window with arg horflag=nil.
14654 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14655 default value from `split-window' to nil.
14656
146572008-03-29 Juri Linkov <juri@jurta.org>
14658
14659 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14660 for interactive code letters 'b' and 'B'.
14661
146622008-03-29 Eli Zaretskii <eliz@gnu.org>
14663
14664 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14665 multibyte string.
14666
146672008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14668
14669 * keyboard.c (pending_funcalls): New var.
14670 (timer_check): Run it.
14671 (syms_of_keyboard): Initialize it.
14672 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14673 (Vdelete_terminal_functions): New vars.
14674 (syms_of_terminal): Initialize them.
14675 (Fdelete_terminal): Run delete-terminal-functions.
14676 * xdisp.c (safe_eval): Rewrite.
14677 (safe_call2): New fun.
14678 * frame.c (Qdelete_frame_functions): New var.
14679 (syms_of_frame): Initialize it.
14680 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14681 * lisp.h (safe_call2, pending_funcalls): Declare.
14682
146832008-03-28 Andreas Schwab <schwab@suse.de>
14684
14685 * indent.c (Fmove_to_column): Move declaration before statements.
14686
146872008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14688
14689 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14690 (struct frame): Use bit fields for boolean vars.
14691
14692 * process.c (server_accept_connection): Simplify naming.
14693 (emacs_get_tty_pgrp): Use SDATA.
14694
14695 * coding.c (decode_coding_object): Fix last change.
14696
146972008-03-27 Jason Rumney <jasonr@gnu.org>
14698
14699 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14700
147012008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14702
14703 * charset.c (Fdefine_charset_internal): Change the way of
14704 registering charsets in Vcharset_order_list.
14705 (syms_of_charset): Make the charset `eight-bit' supplementary.
14706
147072008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14708
14709 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14710 operations, to avoid having the difference between pointers
14711 overflow.
14712
147132008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14714
14715 * indent.c (check_display_width): New fun.
14716 (scan_for_column): Use it.
14717
14718 * data.c (syms_of_data): Mark most-positive-fixnum and
14719 most-negative-fixnum as constants.
14720
14721 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14722
14723 * indent.c (scan_for_column): Extract from current_column_1.
14724 Merge with the same code from Fmove_to_column.
14725 (current_column_1, Fmove_to_column): Use it.
14726
147272008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14728
14729 * keymap.c (map_keymap_internal): New fun.
14730 (map_keymap): Use it.
14731 (Fmap_keymap_internal): New fun.
14732 (Fmap_keymap): Remove left-out test from before make_save_value.
14733
14734 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14735
14736 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14737 Use XCAR/XCDR.
14738
14739 * process.h (struct Lisp_Process): Remove filter_multibyte.
14740 * process.c (QCfilter_multibyte): Remove.
14741 (setup_process_coding_systems): Don't use filter_multibyte.
14742 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14743 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14744 (Fset_process_filter_multibyte): Change the coding-system to
14745 approximate the previous behavior.
14746 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14747 coding-system.
14748
14749 * coding.c (decode_coding_object): When not decoding into a buffer,
14750 obey the coding system's preference of (uni|multi)byte.
14751
147522008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14753
14754 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14755 every char is changed and has a different byte-length.
14756 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14757 Fix int -> EMACS_INT.
14758
147592008-03-23 David Hansen <david.hansen@gmx.net>
14760
14761 * dbusbind.c (xd_read_message): Remove extra copying of message
14762 strings. Check for NULL `interface' or `member'.
14763
147642008-03-22 Eli Zaretskii <eliz@gnu.org>
14765
14766 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14767 cFileName a file name that includes `?' characters, use the 8+3
14768 alias in cAlternateFileName instead.
14769
147702008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14771
14772 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14773
147742008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14775
14776 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14777 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14778 work on current_buffer only instead (that was already the case
14779 for some of the code anyway).
14780 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14781 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14782 (SET_PT, SET_PT_BOTH): Adjust.
14783 * intervals.h (set_point, temp_set_point, set_point_both)
14784 (temp_set_point_both): Remove redundant declarations.
14785
147862008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14787
14788 * fileio.c (Finsert_file_contents):
14789 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14790 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14791 when buffer != current_buffer anyway.
14792
147932008-03-20 Andreas Schwab <schwab@suse.de>
14794
14795 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14796 as default.
14797
147982008-03-19 Jason Rumney <jasonr@gnu.org>
14799
14800 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14801 (syms_of_w32fns): Initialize them.
14802 (HOURGLASS_ID): New constant.
14803 (x_window_to_frame): Don't check hourglass_window.
14804 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14805 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14806 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14807 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14808 Only change the cursor if hourglass is not active.
14809 (Fx_create_frame): Initialize frame's current_cursor.
14810 (hourglass_atimer): Remove.
14811 (hourglass_started): New function.
14812 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14813 (show_hourglass): Adapt to w32, changing argument to frame.
14814
14815 * w32term.h (struct w32_output): Remove hourglass_window.
14816 Add current_cursor.
14817
14818 * eval.c (call_debugger, Fsignal):
14819 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14820 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14821 (Fexecute_extended_command, cancel_hourglass_unwind):
14822 * minibuf.c (read_minibuf):
14823 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14824
148252008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14826
14827 * window.c (run_funs): New fun.
14828 (run_window_configuration_change_hook): Use it to run the buffer-local
14829 and the global part of the hook.
14830
14831 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14832 (unwind_format_mode_line): Restore selected window.
14833 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14834
148352008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14836
14837 * editfns.c (Fchar_equal): Check they are valid characters.
14838
14839 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14840
148412008-03-17 Andreas Schwab <schwab@suse.de>
14842
14843 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14844 against a charset.
14845
14846 * lisp.h (Fbuffer_list): Declare.
14847
148482008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14849
aac0c6e3
MR
14850 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14851 handlebox_widget is != 0.
14852
148532008-03-16 Juri Linkov <juri@jurta.org>
14854
14855 * callint.c (Fcall_interactively): For interactive code letters
14856 'b' and 'B' put the buffer list into the list of default "future"
14857 values of the minibuffer.
14858
148592008-03-16 Andreas Schwab <schwab@suse.de>
14860
14861 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14862 modifiers.
14863
14864 * regex.c (re_match_2_internal): Correct matching of a charset
14865 against latin-1 characters.
14866
148672008-03-16 Kenichi Handa <handa@m17n.org>
14868
14869 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14870 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14871 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14872 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14873 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14874 CHAR_STRING_ADVANCE.
14875 (produce_chars): Fix for the case that the source and the
14876 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14877 instead of CHAR_STRING_ADVANCE.
14878 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14879 STRING_CHAR_ADVANCE.
14880
148812008-03-15 Andreas Schwab <schwab@suse.de>
14882
14883 * regex.c (re_match_2_internal): Correct matching of eight bit
14884 characters in unibyte strings.
14885
148862008-03-15 Martin Rudalics <rudalics@gmx.at>
14887
14888 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14889 at end of range when it coincides with the end of the buffer.
14890
148912008-03-14 Eli Zaretskii <eliz@gnu.org>
14892
14893 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14894
14895 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14896
148972008-03-14 Jason Rumney <jasonr@gnu.org>
14898
14899 * editfns.c (initial_tz): New variable.
14900 (syms_of_editfns): Initialize it.
14901 (Fset_time_zone_rule): Set it when first called.
14902 Use it when TZSTRING is nil.
14903
14904 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14905 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14906 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14907 (globals_of_w32fns): Initialize them.
14908 (compute_tip_xy): Use them to position tooltips.
14909
149102008-03-14 Glenn Morris <rgm@gnu.org>
14911
14912 * emacs.c (main): Revert previous change.
14913 (standard_args): Revert -internal-script back to -scriptload,
14914 and remove the long-option form.
14915
149162008-03-13 Glenn Morris <rgm@gnu.org>
14917
14918 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14919 Remove option -enable-font-backend.
14920
149212008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14922
14923 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14924
149252008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14926
14927 * xterm.c (x_connection_closed): For GTK: If this is the last
14928 terminal just exit without closing the display.
14929
149302008-03-11 Jason Rumney <jasonr@gnu.org>
14931
14932 * w32font.c (w32font_full_name): Use floor to round.
14933
f0131492 149342008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14935
14936 * sound.c (alsa_configure): Declare vol at beginning of block.
14937
14938 * fontset.c (Ffontset_info): Remove extra semicolon.
14939
149402008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14941
14942 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14943 size of resulting string.
14944
149452008-03-10 Jason Rumney <jasonr@gnu.org>
14946
14947 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14948
149492008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14950
14951 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14952 Don't pretend as if characters with display property haven't been
14953 consumed for string-replacing-string case.
14954
149552008-03-08 Kim F. Storm <storm@cua.dk>
14956
14957 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14958 (get_next_display_element, next_element_from_string)
14959 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14960
149612008-03-08 Andreas Schwab <schwab@suse.de>
14962
14963 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14964
149652008-03-06 Jason Rumney <jasonr@gnu.org>
14966
14967 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14968 when charset not specified. Only translate ANSI to unicode when
14969 font_type is truetype.
14970 (w32font_coverage_ok): New function.
14971 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14972
149732008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14974
14975 * lread.c (Fread_char): Resolve modifiers.
14976 (Fread_char_exclusive): Likewise.
14977
14978 * character.c (char_resolve_modifier_mask): New function.
14979 (char_string): Use char_resolve_modifier_mask.
14980 (Fchar_resolve_modifiers): New function.
14981 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14982 function.
14983
149842008-03-04 Jason Rumney <jasonr@gnu.org>
14985
14986 * makefile.w32-in: Always include w32font.c in the build.
14987 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14988
149892008-03-04 Andreas Schwab <schwab@suse.de>
14990
14991 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14992 (versionclean): Likewise.
14993
149942008-03-04 Juanma Barranquero <lekktu@gmail.com>
14995
14996 * .cvsignore: Add oo.
14997
149982008-03-03 Andreas Schwab <schwab@suse.de>
14999
15000 * coding.c (decode_coding_object): Inhibit gap shrinking while
15001 decoding in place.
15002
150032008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
15004
15005 * w32term.c: Remove unused include "gnu.h".
15006 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
15007
15008 * gnu.h: Rename to ...
15009 * emacs-icon.h: ... this.
15010 * xterm.c: Use emacs-icon.h instead of gnu.h.
15011 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
15012
150132008-03-03 Juanma Barranquero <lekktu@gmail.com>
15014
15015 * w32font.c: Include math.h.
15016
150172008-03-03 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
15020 Compute options separately.
15021 (w32font_open_internal): Set glyph_idx before caching metrics.
15022
15023 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
15024 Define if system headers don't.
15025 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
15026 (w32font_encode_char): Don't declare here.
15027
15028 * w32font.c (Quniscribe, QCformat): New symbols.
15029 (syms_of_w32font): Define them.
15030 (w32font_has_char): Indicate uncertainty.
15031 (w32font_encode_char): Encode as glyph point. Make static.
15032 (recompute_cached_metrics): New function.
15033 (w32font_open_internal): Use it. Set font to use glyph points
15034 initially. Set format based on type of font.
15035 (w32font_text_extents, w32font_draw): Optionally use glyph points.
15036 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
15037 on it. Set format based on information available here.
15038 (add_font_entity_to_list): Identify backend based on opentype_only.
15039
150402008-03-02 Andreas Schwab <schwab@suse.de>
15041
15042 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
15043
15044 * coding.c (decode_coding_big5, produce_chars):
15045 Fix typos in last change.
15046
150472008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
15048
15049 * gnu.h: New icon.
15050
150512008-03-02 Kenichi Handa <handa@m17n.org>
15052
15053 * coding.c (decode_coding_utf_8): When eol-type of CODING is
15054 `dos', don't decode '\r' if that is the last in the source.
15055 (decode_coding_utf_16, decode_coding_emacs_mule)
15056 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15057 (decode_coding_raw_text, decode_coding_charset): Likewise.
15058 (produce_chars): Don't decode EOL here. Use EMACS_INT.
15059
150602008-03-01 Jason Rumney <jasonr@gnu.org>
15061
15062 * w32font.c (w32font_full_name): Report point size for scalable fonts.
15063
150642008-03-01 Kim F. Storm <storm@cua.dk>
15065
15066 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
15067
150682008-03-01 Jason Rumney <jasonr@gnu.org>
15069
15070 * w32font.c (w32font_full_name): New function.
15071 (w32font_open_internal): Use it.
15072
150732008-03-01 Kim F. Storm <storm@cua.dk>
15074
15075 * dispnew.c (line_draw_cost): Fix invalid glyph check.
15076
150772008-03-01 Jason Rumney <jasonr@gnu.org>
15078
15079 * font.c (font_unparse_fcname): Increase len when style is a symbol.
15080
150812008-03-01 Jan Djärv <jan.h.d@swipnet.se>
15082
15083 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
15084 xg_frame_resized when the event is for the edit widget.
15085
15086 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
15087
15088 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
15089 set_char_size.
15090 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
15091 operations on widgets here. Just set frame size if needed.
15092 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
15093 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
15094 (x_wm_set_size_hint): Set size hints on the edit widget only, not
15095 the whole frame.
15096 (xg_create_tool_bar): Move attachment of the tool bar to
15097 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
15098 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
15099
151002008-03-01 Jason Rumney <jasonr@gnu.org>
15101
15102 * w32fns.c (w32_msg_pump): Disable debug code.
15103
151042008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15105
15106 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
15107
151082008-02-29 Chong Yidong <cyd@stupidchicken.com>
15109
15110 * xdisp.c (next_overlay_string): Don't set
15111 overlay_strings_at_end_processed_p if we're currently reading from
15112 a display string.
15113
151142008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
15115
15116 * xdisp.c (get_overlay_strings_1): Fix typo.
15117
151182008-02-29 Chong Yidong <cyd@stupidchicken.com>
15119
15120 * xdisp.c (get_overlay_strings_1): Add missing argument type.
15121
151222008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
15123
15124 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
15125
15126 * xdisp.c (display_mode_element): Cancel the previous change.
15127 (decode_mode_spec): Likewise.
15128 (handle_auto_composed_prop): Don't make composition if it->string
15129 is a string.
15130
151312008-02-27 Kim F. Storm <storm@cua.dk>
15132
15133 * lisp.h (GLYPH): Change type from int to struct with separate char
15134 and face_id members.
15135 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
15136 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
15137 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
15138 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
15139 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
15140 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
15141 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
15142 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
15143 handle new Lisp glyph code encoding, either an integer or a cons.
15144
15145 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
15146 (GLYPH_ALIAS): Delete.
15147 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
15148 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
15149 (GLYPH_FROM_CHAR): Replace macro by ...
15150 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
15151
15152 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
15153 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
15154 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
15155 (GLYPH_INVALID_P): New macro.
15156 (spec_glyph_lookup_face): Update prototype.
15157
15158 * dispnew.c (line_draw_cost): Adapt to new glyph type.
15159 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
15160 new glyph code encoding.
15161 (spec_glyph_lookup_face): No return value; update passed glyph instead.
15162 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
15163
15164 * xdisp.c (get_next_display_element, next_element_from_display_vector):
15165 Adapt to new glyph type and new glyph code encoding.
15166
15167 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
15168
15169 * indent.c (current_column, current_column_1, Fmove_to_column)
15170 (compute_motion): Adapt to new glyph code encoding.
15171
15172 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
15173
151742008-02-27 Chong Yidong <cyd@stupidchicken.com>
15175
15176 * process.c (wait_reading_process_output): Check for window
15177 changes caused by timers.
15178 Suggested by Johan Bockgård.
15179
151802008-02-27 Glenn Morris <rgm@gnu.org>
15181
15182 * emacs.c (USAGE1): Add `--disable-font-backend'.
15183
151842008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
15185
15186 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
15187 is made to the buffer.
15188
151892008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
15190
15191 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
15192 (face_at_string_position):
15193 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
15194 (face_at_string_position):
15195 * xdisp.c (display_string, next_overlay_change):
15196 * buffer.h (overlays_at):
15197 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
15198 Update callers.
15199
152002008-02-26 Chong Yidong <cyd@stupidchicken.com>
15201
15202 * editfns.c (Fformat): Doc fix.
15203
152042008-02-26 Juanma Barranquero <lekktu@gmail.com>
15205
15206 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
15207 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
15208 (Ffont_otf_alternates, Fquery_font): Doc fixes.
15209
152102008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15211
15212 * buffer.c (Fbuffer_swap_text): New function.
15213 (syms_of_buffer): Defsubr it.
15214
152152008-02-25 Chong Yidong <cyd@stupidchicken.com>
15216
15217 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
15218
152192008-02-25 Jason Rumney <jasonr@gnu.org>
15220
15221 * w32font.c (w32font_draw): Draw one character at a time when padding.
15222
152232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
15224
15225 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
15226 Handle a nil arg. Use run_window_configuration_change_hook.
15227 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
15228 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
15229 Use run_window_configuration_change_hook.
15230
152312008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15232
15233 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
15234 1-pixel width.
15235
152362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
15237
15238 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
15239 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
15240 if the glyph in the font is zero pixel with.
15241
15242 * dispextern.h (struct glyph_string): New member padding_p.
15243
15244 * w32font.c (w32font_draw): Pay attention to s->padding_p.
15245
15246 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
15247
15248 * xfont.c (xfont_draw): Pay attention to s->padding_p.
15249
15250 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
15251
15252 * font.c: If the font driver doesn't have `shape' function, return Qnil.
15253
152542008-02-25 Jason Rumney <jasonr@gnu.org>
15255
15256 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
15257
152582008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
15259
15260 Allow fine-grained image-cache flushing.
15261 * dispextern.h (struct image): Add `dependencies' field.
15262 (clear_image_caches): Change arg to Lisp_Object.
15263 * image.c (make_image): Initialize `dependencies' field.
15264 (clear_image_cache): Change arg to allow fine-grained flushing.
15265 Perform the flush even if image-cache-eviction-delay is nil.
15266 (clear_image_caches): Change arg to Lisp_Object.
15267 (Fclear_image_cache): Expand meaning of the argument.
15268 (mark_image): Mark `dependencies' field.
15269 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15270 (lface_hash): Use XHASH rather than XFASTINT.
15271 (face_at_buffer_position): Fix int -> EMACS_INT position.
15272 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15273 (select_frame_for_redisplay): Remove code duplication.
15274 (redisplay_internal): Adapt arg to call to clear_image_caches.
15275
152762008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15277
15278 * s/vms4-0.h:
15279 * s/vms4-2.h:
15280 * s/vms4-4.h:
15281 * s/vms5-5.h: Remove, unused.
15282
15283 * s/irix5-2.h:
15284 * s/irix6-0.h:
15285 * s/riscos5.h:
15286 * s/mach-bsd4-3.h:
15287 * m/mips4.h: Remove files for obsolete systems.
15288
15289 * Makefile.in:
15290 * filelock.c:
15291 * unexmips.c:
15292 * m/hp9000s300.h:
15293 * m/iris4d.h:
15294 * s/aix3-1.h:
15295 * s/hpux.h:
15296 * s/msdos.h:
15297 * s/usg5-0.h:
15298 * s/usg5-2-2.h:
15299 * s/usg5-2.h:
15300 * s/usg5-3.h: Remove references to obsolete variables.
15301
15302 * s/irix5-0.h: Remove, move all the contents ...
15303 * s/irix6-5.h: ... here. Simplify.
15304 * config.in: Regenerate.
15305
153062008-02-24 Jason Rumney <jasonr@gnu.org>
15307
15308 * w32term.c (x_draw_glyph_string_background): Clear the background
15309 manually when cleartype is in use.
15310 (x_draw_glyph_string_foreground): Draw text transparently when
15311 cleartype is in use.
15312
15313 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15314 a font into it unless we have to.
15315
153162008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15317
15318 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15319 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15320
aac0c6e3
MR
153212008-02-18 Jason Rumney <jasonr@gnu.org>
15322
15323 * w32fns.c (Fw32_shell_execute): Encode parameters.
15324
153252008-02-09 Eli Zaretskii <eliz@gnu.org>
15326
15327 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15328
153292008-02-05 Juanma Barranquero <lekktu@gmail.com>
15330
15331 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15332
153332008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15334
15335 * xterm.c (x_set_offset): Don't change the gravity if
15336 CHANGE_GRAVITY is -1.
15337
153382008-02-23 Chong Yidong <cyd@stupidchicken.com>
15339
15340 * fileio.c (auto_save_error_occurred): New var.
15341 (auto_save_error): Set it.
15342 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15343 error occurred.
15344
153452008-02-23 Eli Zaretskii <eliz@gnu.org>
15346
15347 * w32.c (globals_of_w32): Add initializations for
15348 g_b_init_get_sid_sub_authority and
15349 g_b_init_get_sid_sub_authority_count.
15350
153512008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15352
15353 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15354 (font_parse_xlfd): Use them for sanity check.
15355 (Finternal_set_font_style_table): Make sure the table is bijective.
15356
15357 Consolidate the image_cache to the terminal struct.
15358 * termhooks.h (P_): Remove redundant def.
15359 (struct terminal): New field `image_cache'.
15360 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15361 of FRAME_X_IMAGE_CACHE.
15362 * xterm.h (struct x_display_info): Remove image_cache field.
15363 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15364 * w32term.h (struct w32_display_info): Remove image_cache field.
15365 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15366 * macterm.h (struct mac_display_info): Remove image_cache field.
15367 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15368 * xterm.c (x_term_init):
15369 * w32term.c (w32_term_init):
15370 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15371 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15372 Remove declarations.
15373 (clear_image_caches, mark_image_cache): New declarations.
15374 * xfaces.c (clear_face_cache):
15375 * xdisp.c (redisplay_internal): Use clear_image_caches.
15376 * image.c (clear_image_cache): Don't check that a frame is on
15377 a window-system before checking if it shares the same cache.
15378 (clear_image_caches): New function.
15379 (Fclear_image_cache): Use it.
15380 (mark_image): Move from allo.c.
15381 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15382 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15383 (mark_object): Don't call mark_image_cache for frames.
15384 (mark_terminals): Call mark_image_cache.
15385
15386 * lisp.h (Fdelete_terminal): Declare.
15387
15388 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15389 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15390 wrong_type_argument.
15391
153922008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15393
15394 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15395 malayalam.el, and tamil.el. Add sinhala.el.
15396
153972008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15398
15399 * xterm.c (x_connection_closed): Consolidate identical tests.
15400 (x_delete_terminal): Don't crash if called via x_connection_closed.
15401
154022008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15403
15404 * xdisp.c (decode_mode_spec): New arg string.
15405 (display_mode_element): Adjust for the above change.
15406
154072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15408
15409 * callint.c (Fcall_interactively): Use AREF.
15410
154112008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15412
15413 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15414
154152008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15416
15417 * xfns.c (Fx_show_tip): Set string to " " if empty.
15418
154192008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15420
15421 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15422 with Qt.
15423
154242008-02-17 Kenichi Handa <handa@m17n.org>
15425
15426 * ftfont.c (ftfont_shape): Return Lispy number.
15427
15428 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15429 for GCs.
15430 (Finternal_set_font_selection_order): Call font_update_sort_order
15431 only when enable_font_backend is set.
15432 (realize_x_face): Set face->font_info to that of default face only
15433 when enable_font_backend is set.
15434
15435 * xdisp.c (handle_composition_prop): Set it->c to the fist
15436 character of the composed region.
15437 (fill_composite_glyph_string): Set base_face->font_info to
15438 s->font_info. Get a face for ascii from base_face->ascii_face.
15439 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15440 with a face already decided.
15441 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15442 non-negative.
15443 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15444 call font_prepare_composition unconditionally.
15445
15446 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15447
15448 * xterm.h (struct x_display_info): New member font.
15449
15450 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15451 (x_set_mouse_face_gc, x_new_font): Likewise.
15452 (x_term_init): Setup display_info->font.
15453 (x_delete_terminal): Free display_info->font.
15454
15455 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15456
15457 * ftxfont.c (ftxfont_default_fid): Delete it.
15458 (ftxfont_open): Set xfont->fid to 0.
15459 (ftxfont_end_for_frame): Clear data specific to the frame and the
15460 font-driver.
15461
15462 * xftfont.c (xftfont_default_fid): Delete it.
15463 (xftfont_open): Set xfont->fid to 0.
15464
15465 * fontset.c (FONTSET_OBJLIST): New macro.
15466 (fontset_find_font): Update font-object list of the fontset.
15467 (free_realized_fontset): New function.
15468 (free_face_fontset): Call free_realized_fontset.
15469 (Ffont_info): Call font_close_object only when enable_font_backend
15470 is set.
15471
15472 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15473 [HAVE_NTGUI]: Include w32term.h.
15474 [MAC_OS]: Include macterm.ch.
15475 (font_otf_ValueRecord): Use make_number.
15476 (font_finish_cache): Fix handling of reference count.
15477 (font_clear_cache): Update num_fonts.
15478 (font_open_entity): Update smallest_char_width and
15479 smallest_font_height of the frame.
15480 (font_close_object): Update num_fonts.
15481 (Fclear_font_cache): Fix finding the target cache data.
15482
154832008-02-16 Glenn Morris <rgm@gnu.org>
15484
15485 * fontset.c (Finternal_char_font): Fix compilation warning.
15486
154872008-02-16 Eli Zaretskii <eliz@gnu.org>
15488
15489 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15490 instead of char arrays. Enlarge the size of array passed to
15491 get_token_information.
15492
15493 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15494 warnings.
15495
154962008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15497
15498 * .gdbinit: Don't set `args', it breaks gdb --args.
15499
155002008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15501
15502 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15503 within a narrowed buffer.
15504
155052008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15506
15507 * coding.c (decode_coding_object, encode_coding_object):
15508 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15509
155102008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15511
15512 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15513 hardcoding 1.
15514 (detect_coding_system):
15515 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15516 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15517 * insdel.c (insert_from_gap):
15518 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15519 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15520 (string_to_multibyte):
15521 * character.c (chars_in_text, multibyte_chars_in_text):
15522 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15523
15524 * character.h (FETCH_STRING_CHAR_ADVANCE)
15525 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15526 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15527 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15528
15529 * casefiddle.c (casify_region): Only call after-change and composition
15530 functions on the part of the region that was changed.
15531
15532 * keyboard.c (read_avail_input):
15533 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15534
155352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15536
15537 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15538 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15539
155402008-02-11 Juanma Barranquero <lekktu@gmail.com>
15541
15542 * w32menu.c (push_submenu_start, push_submenu_end)
15543 (push_left_right_boundary, push_menu_pane, push_menu_item):
15544 * keyboard.c (read_key_sequence): Don't pass args with side effects
15545 to AREF, it fails when compiling with -DENABLE_CHECKING.
15546
155472008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15548
15549 * Makefile.in (${lispsource}international/charprop.el):
15550 Delete this target.
15551
15552 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15553 emacs-unicode-2.
15554
155552008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15556
15557 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15558
155592008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15560
15561 * frame.c (Qnoelisp): New symbol.
15562 (syms_of_frame): Initialize it.
15563 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15564 harmless Elisp code, from a strong `force' from x_connection_closed.
15565 * frame.h (Qnoelisp): Declare.
15566 * xterm.c (x_connection_closed): Pass `noelisp'.
15567
15568 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15569 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15570 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15571 rather than `int' for the type of `type'.
15572
155732008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15574
15575 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15576
15577 * Makefile.in (GNUC): Remove support for gcc-1.x.
15578
155792008-02-10 Richard Stallman <rms@gnu.org>
15580
15581 * lisp.h (ASET): Use AREF, not ASLOT.
15582
155832008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15584
15585 * lisp.h (ASET): Check bounds.
15586
155872008-02-10 Glenn Morris <rgm@gnu.org>
15588
15589 * buffer.c (mode-name): Doc fix.
15590
155912008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15592
15593 * Makefile.in:
15594 * emacs.c:
15595 * gmalloc.c:
15596 * keyboard.c:
15597 * lisp.h:
15598 * m/ibm370aix.h:
15599 * process.c:
15600 * regex.c:
15601 * s/hpux.h:
15602 * sysdep.c:
15603 * sysselect.h:
15604 * systty.h:
15605 * unexec.c:
15606 * w32term.c:
15607 * xsmfns.c:
15608 * xterm.c: Remove code that deals with obsolete variables.
15609
15610 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15611
15612 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15613 nothing else needs it anymore.
15614
156152008-02-09 Eli Zaretskii <eliz@gnu.org>
15616
15617 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15618 instead of unibyte_char_to_multibyte.
15619
156202008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15621
15622 * s/gnu-linux.h: Remove commented out code.
15623
15624 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15625
15626 * Makefile.in: Update what RMS says about using autoconf.
15627 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15628 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15629 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15630 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15631
156322008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15633
15634 * keymap.c (Fkey_description): Move side effect outside of macro call.
15635
15636 * xfaces.c (Finternal_make_lisp_face):
15637 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15638
15639 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15640 (syms_of_fontset): Use ASET.
15641
15642 * fns.c (concat): Move side effect outside of macro call.
15643 (hash_clear): Use ASET.
15644
156452008-02-08 Richard Stallman <rms@gnu.org>
15646
15647 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15648 If FORCE, and frame has a surrogate minibuffer for another frame,
15649 delete the other frame first.
15650
156512008-02-07 Timo Savola <timo.savola@iki.fi>
15652
15653 * xterm.c (x_detect_focus_change): Handle embed client message.
15654 (handle_one_xevent): Ditto.
15655 (handle_one_xevent): If embedded and we get a button press/release,
15656 request focus.
15657 (xembed_set_info, xembed_send_message): New functions.
15658 (x_make_frame_visible): Call xembed_set_info if embedded.
15659 (x_make_frame_invisible): Call xembed_set_info if embedded.
15660 (x_term_init): Initialize Xatom_XEMBED.
15661 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15662 (x_iconify_frame): Ditto.
15663
15664 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15665 (enum xembed_info, enum xembed_message, enum xembed_focus)
15666 (enum xembed_modifier, enum xembed_accelerator): New.
15667 (xembed_set_info, xembed_send_message): Declare.
15668 (FRAME_X_EMBEDDED_P): New.
15669
15670 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15671 gtk_plug_new.
15672
15673 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15674 window ID of a frame.
15675 (x_window): Reparent frame if embedded.
15676 (Fx_create_frame): Don't set border width if embedded.
15677
15678 * emacs.c (USAGE3): Add --parent-id.
15679 (standard_args): Ditto.
15680
156812008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15682
15683 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15684
156852008-02-07 Jim Meyering <meyering@redhat.com>
15686
15687 Use "do...while (0)", not "if (1)...else" in macro definitions.
15688 The latter provokes a warning from gcc about the empty else, when
15689 followed by ";". Also, without that trailing semicolon, it would
15690 silently swallow up any following statement.
15691 * syntax.h (SETUP_SYNTAX_TABLE)
15692 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15693 * buffer.h (DECODE_POSITION): Likewise.
15694 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15695 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15696 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15697 (FETCH_CHAR_ADVANCE): Likewise.
15698 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15699
157002008-02-07 Jim Meyering <meyering@redhat.com>
15701
15702 * lread.c [lint]: Don't include <sys/inode.h>.
15703
157042008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15705
15706 * xselect.c (x_handle_dnd_message):
15707 * xmenu.c (digest_single_submenu, xmenu_show):
15708 * xdisp.c (with_echo_area_buffer_unwind_data)
15709 (format_mode_line_unwind_data, unwind_format_mode_line)
15710 (display_menu_bar):
15711 * eval.c (Ffetch_bytecode):
15712 * doc.c (store_function_docstring):
15713 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15714 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15715 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15716
157172008-02-07 Kenichi Handa <handa@m17n.org>
15718
15719 * ftxfont.c (ftxfont_open): Don't set
15720 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15721
15722 * ftfont.c (ftfont_open): Fix previous change.
15723
157242008-02-06 Jason Rumney <jasonr@gnu.org>
15725
15726 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15727 Use cached metrics for ASCII characters.
15728 (w32font_open_internal): Don't set font's owning_frame.
15729 Cache metrics for ASCII characters.
15730
15731 * w32font.h (struct w32font_info): Add ascii_metrics.
15732 Remove owning_frame.
15733
157342008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15735
15736 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15737 to negative value.
15738
15739 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15740
15741 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15742
15743 * charset.c (syms_of_charset): Set QCtest and Qeq.
15744
157452008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15746
15747 * process.c (Fstart_process):
15748 * callproc.c (Fcall_process): Handle the case where
15749 Funhandled_file_name_directory returns nil.
15750
15751 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15752 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15753 * font.c (check_gstring): Use them and AREF to access the vector before
15754 we know it's really a gstring.
15755 (Ffont_shape_text): Fix typo.
46e722a9 15756 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15757
15758 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15759 Declare.
15760
15761 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15762
157632008-02-05 Jason Rumney <jasonr@gnu.org>
15764
15765 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15766 Set smallest_font_height and smallest_char_width in display info.
15767
157682008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15769
15770 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15771
157722008-02-05 Miles Bader <miles@gnu.org>
15773
15774 * xfaces.c (get_lface_attributes, merge_named_face)
15775 (lookup_named_face, lookup_derived_face, realize_named_face):
15776 Revert 2008-02-01 change by cyd@stupidchicken.com.
15777
157782008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15779
15780 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15781 fallback fonts.
15782 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15783
157842008-02-04 Jason Rumney <jasonr@gnu.org>
15785
15786 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15787 set full_name.
15788 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15789
157902008-02-03 Jason Rumney <jasonr@gnu.org>
15791
15792 * makefile.w32-in (OBJ1): Include font.o here.
15793 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15794
157952008-02-02 Jason Rumney <jasonr@gnu.org>
15796
15797 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15798
157992008-02-01 Jason Rumney <jasonr@gnu.org>
15800
15801 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15802
15803 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15804
158052008-02-01 Andreas Schwab <schwab@suse.de>
15806
15807 * Makefile.in (shortlisp, lisp): Update for rename of
15808 ../lisp/language/myanmar.el.
15809
158102008-02-01 Chong Yidong <cyd@stupidchicken.com>
15811
15812 * xfaces.c (get_lface_attributes): Delete function.
15813 (merge_named_face, lookup_named_face, lookup_derived_face)
15814 (realize_named_face): Call lface_from_face_name directly, and use
15815 the fact that merge_face_vectors does not alter its FROM argument.
15816
158172008-02-01 Jason Rumney <jasonr@gnu.org>
15818
15819 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15820 input in the default locale. Handle non-Unicode multibyte input.
15821
158222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15823
15824 * fontset.c (reorder_font_vector): Exclude nil elements from the
15825 font group. Don't try multiple fonts.
15826 (fontset_font): Adjust for the above change.
15827 (Finternal_char_font): Return nil if the found font doesn't
15828 contain the character ch.
15829
15830 * Makefile.in (lisp, shortlisp): Add cham.el.
15831
158322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15833
15834 * font.h (FONTP): Make it return 1 also for a font-object.
15835
15836 * .gdbinit (xfontset): New function.
15837
15838 * font.c (font_find_for_lface): Check if the character C is
15839 supported or not only for the first font.
15840
15841 * fontset.c (reorder_font_vector): Fix typo.
15842 (fontset_find_font): Don't add a font-spec specifying a script.
15843 Use 0 (not Qt) for the indication of empty font-group. Change the
15844 format of RFONT-DEF. Return Qt if no font in the font-group
15845 support the character.
15846 (fontset_font): Adjust for the above change. If no font was
15847 found the character, remember that.
15848 (face_for_char): Adjust for the change of RFONT-DEF.
15849 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15850 no font for the target.
15851 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15852
158532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15854
15855 * font.c (font_load_for_face): Handle the case that the font in
15856 face->lface is a string.
15857
158582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15859
15860 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15861
158622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15863
15864 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15865 Fix previous change. If the frame is not on a window system,
15866 signal an error.
15867
158682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15869
15870 * coding.c (decode_coding_object, encode_coding_object): Adjust
15871 marker positions after conversion.
15872
15873 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15874
158752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15876
15877 * font.c (font_find_for_lface): Fix the handling of the return
15878 value of font_has_char.
15879 (Ffont_shape_text): Fix previous change.
15880
15881 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15882 (fontset_ref_and_range): Delete it.
15883 (fontset_find_font): Call char_table_ref_and_range instead of
15884 FONTSET_REF_AND_RANGE.
15885 (make_fontset): Don't setup font groups of Latin here.
15886 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15887 (new_fontset_from_font): Make the specified font the default for
15888 all Latin characters.
15889
158902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15891
15892 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15893 is on a window system before accessing the fontset of the frame.
15894
158952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15896
15897 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15898
15899 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15900 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15901
15902 * font.c (Ffont_shape_text): If the font driver doesn't have a
15903 shaper function, make zero-width glyphs to have at least one-pixel
15904 width. Fix setting of `to' field of glyphs.
15905
159062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15907
15908 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15909 glyphs.
15910
15911 * font.h (struct font_driver): Improve docstring of member `shape'.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * composite.c (syms_of_composite): Fix docstring of
15916 auto-composition-function.
15917
15918 * font.h (LGLYPH_SIZE): New macro.
15919
15920 * font.c (Ffont_fill_gstring): Stop filling when a character not
15921 supported by the font is found.
15922 (Ffont_shape_text): When a shape callback function returns nil,
15923 try at most two more times with larger gstring.
15924 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15925
15926 * xdisp.c (handle_auto_composed_prop): Change the argument to
15927 auto-composition-function.
15928
15929 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15930 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15931 Lispy glyph and store it in the lgstring.
15932
15933 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15934
15935 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15936
159372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15938
15939 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15940
15941 * fontset.c (Vfont_encoding_charset_alist): New variable.
15942 (syms_of_fontset): DEFVAR it.
15943 (reorder_font_vector, fontset_find_font): Optimize for the case of
15944 no need of reordering.
15945 (face_for_char): Map the charset property by
15946 Vfont_encoding_charset_alist.
15947
159482008-02-01 Jason Rumney <jasonr@gnu.org>
15949
15950 * w32font.c (logfonts_match): Don't check adstyle here.
15951 (font_matches_spec): Check here against physical font instead.
15952 (add_font_entity_to_list): Avoid some substitutions.
15953
15954 * font.c (font_parse_fcname): Default weight and slant to normal.
15955 (font_score): Prefer normal fonts if weight or slant unspecified.
15956 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15957 match freetype scores.
15958
159592008-02-01 Jason Rumney <jasonr@gnu.org>
15960
15961 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15962 font, as it may have been deleted.
15963 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15964 most common hyphenless variation.
15965 (logfonts_match): Check generic family.
15966 (font_matches_spec): Don't check generic family here.
15967 (fill_in_logfont): Set generic family based on adstyle.
15968
15969 * w32font.h (w32font_get_cache): Update declaration.
15970
159712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15972
15973 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15974
15975 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15976 If none of the new drivers are available, call font_update_drivers
15977 with the old drivers.
15978
15979 * w32font.c (w32font_get_cache): Adjust the argument type.
15980
15981 * xfont.c (xfont_get_cache): Adjust the argument type.
15982
15983 * font.h (struct font_driver): Change argument type of get_cache.
15984
15985 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15986
15987 * font.c (Ffont_get): Fix arguments to Fassoc.
15988 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15989 (font_clear_cache): New function.
15990 (font_list_entities, font_matching_entity): Use font_get_cache.
15991 (font_update_drivers): Call font_clear_cache when finishing a driver.
15992
15993 * fontset.c (fontset_find_font): Fix previous change.
15994
159952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15996
15997 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15998 dpyinfo->font_table.
15999 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
16000 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
16001
16002 * font.c (font_at): Handle the case that the arg C is negative.
16003 Handle the unibyte case.
16004 (Ffont_at): Call font_at with the arg C -1.
16005
16006 * xdisp.c (handle_auto_composed_prop): Don't get a character at
16007 the position here, and call font_at with the arg C -1.
16008 Don't check the range of the existing composition at the point.
16009
160102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16011
16012 * fontset.c (fontset_add): New args charset_id and family.
16013 Change caller.
16014 (load_font_get_repertory, fontset_find_font): Assume that
16015 font_spec is always a font-spec object.
16016 (Fset_fontset_font): Always store a font-spec object in a fontset.
16017
16018 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
16019 instead of get_property_and_range.
16020
160212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16022
16023 * xftfont.c (struct xftfont_info): Delete the member ft_face.
16024 (xftfont_open): Don't keep locking face.
16025 (xftfont_close): Don't unlock face.
16026 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
16027
16028 * fontset.c (fontset_find_font): Don't prefer a font of
16029 supplementary charset.
16030
160312008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
16034 script, langsys_tag to langsys, new member script.
16035 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 16036 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
16037 listing to the script specified in that property. Fix arg to
16038 OTF_check_features.
16039
160402008-02-01 Jason Rumney <jasonr@gnu.org>
16041
16042 * w32font.h: New file.
16043
16044 * w32font.c: Include it.
16045 (struct w32font_info): Add owning_frame field. Move to w32font.h.
16046 (w32font_open): Set owning_frame.
16047 (w32font_text_extents): Use owning_frame.
16048 (struct font_callback_data): Add opentype_only field.
16049 (add_font_entity_to_list): Use it to filter fonts.
16050 Don't check against full name.
16051 (w32font_list_internal): New function.
16052 (w32font_list): Use it.
16053 (w32font_match_internal): New function.
16054 (w32font_match): Use it.
16055 (w32font_open_internal): New function.
16056 (w32font_open): Use it.
16057 (w32font_get_cache, w32font_close, w32font_has_char)
16058 (w32font_encode_char, w32font_text_extents, w32font_draw):
16059 Make non-static.
16060
16061 * makefile.w32-in (w32font.o): Depend on w32font.h.
16062
160632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16064
16065 * charset.c (Fdefine_charset_internal): Record a supplementary
16066 charset at the tail of Vcharset_order_list.
16067
16068 * font.c (Ffont_shape_text): Fix the return value.
16069
16070 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
16071
16072 * xdisp.c (handle_auto_composed_prop): Fix previous change.
16073
160742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16075
16076 * ftfont.c (struct OpenTypeSpec): New struct.
16077 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
16078 (ftfont_get_open_type_spec): New function.
16079 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
16080
16081 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
16082
160832008-02-01 Jason Rumney <jasonr@gnu.org>
16084
16085 * w32font.c (add_font_entity_to_list): Compare only the beginning
16086 of full name.
16087
160882008-02-01 Kenichi Handa <handa@m17n.org>
16089
16090 * xdisp.c (handle_auto_composed_prop): Simplify the code.
16091 Never return HANDLED_RECOMPUTE_PROPS.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * font.c (font_gstring_produce): Delete it.
16096
16097 * composite.h (COMPOSITION_METHOD):
16098 Handle COMPOSITION_WITH_GLYPH_STRING.
16099
161002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16101
16102 * xfont.c (Qx): Delete.
16103 (syms_of_xfont): Don't initialize Qx.
16104
16105 * composite.h (enum composition_method):
16106 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
16107
161082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16109
16110 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
16111 (choose_face_font): Accept new form of font-spec.
16112
16113 * frame.h (font_driver_list): Declare it unconditionally.
16114 (struct frame): Define members font_driver_list and font_data_list
16115 unconditionally.
16116
16117 * fontset.c: Include "font.h" unconditionally.
16118 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
16119 (Fset_fontset_font): Accept a font-spec object.
16120
16121 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
16122 PIXEL_SIZE part a wild card.
16123
16124 * dispextern.h (struct glyph_string): Define members clip and
16125 num_clips unconditionally.
16126 (struct face): Define members font_info and extra unconditionally.
16127
16128 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
16129 ftfont_info only when HAVE_LIBOTF is defined.
16130
161312008-02-01 Andreas Schwab <schwab@suse.de>
16132
16133 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
16134 and end.
16135
161362008-02-01 Jason Rumney <jasonr@gnu.org>
16137
16138 * w32font.c (w32font_driver): Add new fields.
16139
161402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16141
16142 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
16143 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
16144 (LIBES): Add @M17N_FLT_CFLAGS@.
16145
16146 * composite.c (compose_text): Don't treat the new style
16147 composition specially.
16148
16149 * emacs.c (main): Call syms_of_font unconditionally.
16150
16151 * font.h (FONT_ENTITY_NOT_LOADABLE)
16152 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
16153 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
16154 (struct font_driver): New member shape.
16155 (font_registry_charsets): Extern it.
16156 (font_find_for_lface, font_prepare_composition): Adjust prototype.
16157 (font_otf_capability, font_drive_otf): Delete their externs.
16158
16159 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
16160 (font_charset_alist, font_registry_charsets): Move from xfont.c
16161 and rename.
16162 (font_prop_validate_otf): New function.
16163 (font_property_table): Register it for QCotf.
16164 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
16165 (font_drive_otf): Delete.
16166 (font_prepare_composition): New arg F. Adjust for the change of
16167 lispy gstring.
16168 (font_find_for_lface): New arg C.
16169 (font_load_for_face): Adjust for the change of font_find_for_lface.
16170 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
16171 lispy gstring.
16172 (Ffont_shape_text): New function.
16173 (Fopen_font): If the font size is not given, use 12-pixel.
16174 (Ffont_at): New arg STRING.
16175 (syms_of_font): Initalize font_charset_alist.
16176 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
16177 conditionally.
16178
16179 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
16180 fonts of the same font-spec. Change the format of RFONT-DEF.
16181 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
16182 Adjust for the change of RFONT-DEF.
16183 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
16184
16185 * ftfont.h: New file.
16186
16187 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
16188 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16189 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16190 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
16191 font_otf_capability and font_drive_otf, set ftfont_shape.
16192 (ftfont_list): Adjust for the change of :otf property value.
16193 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
16194 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
16195 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
16196 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16197 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
16198 (otf_gstring, gstring, m17n_flt_initialized): New variables.
16199
16200 * w32term.c (x_draw_composite_glyph_string_foreground):
16201 Adjust for the change of lispy gstring.
16202
16203 * xdisp.c (handle_composition_prop): Adjust for the change of
16204 lispy gstring. Call a function for auto-composition with the
16205 third arg it->window.
16206 (fill_composite_glyph_string): Adjust for the change of lispy string.
16207 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
16208
16209 * xfaces.c (set_font_frame_param): Adjust for the change of
16210 font_find_for_lface.
16211
16212 * xfont.c (x_font_charset_alist): Move to font.c and rename.
16213 (xfont_registry_charsets): Likewise. Change caller.
16214 (syms_of_xfont): Don't handle x_font_charset_alist.
16215
16216 * xftfont.c: Include "ftfont.h".
16217 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
16218 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
16219 (xftfont_close) [HAVE_LIBOTF]: Close otf.
16220 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
16221 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
16222 Set xftfont_driver.shape to xftfont_shape.
16223
16224 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16225 the change of lispy gstring.
16226
162272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16228
16229 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
16230
162312008-02-01 Jason Rumney <jasonr@gnu.org>
16232
16233 * w32font.c (w32font_draw): Fill background manually.
16234
162352008-02-01 Jason Rumney <jasonr@gnu.org>
16236
16237 * font.c (Qfontp): Remove unused symbol.
16238 (QCantialias): New symbol.
16239 (syms_of_font): Define it.
16240 (font_property_table): Set a validator for QCantialias.
16241
16242 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
16243 Define if not already.
16244 (QCfamily): Share with xfaces.c.
16245 (Qstandard, Qsubpixel, Qnatural): New symbols.
16246 (syms_of_w32font): Define them. Don't define QCfamily here.
16247 (w32_antialias_type, lispy_antialias_type): New functions.
16248 (w32_enumfont_pattern_entity): New arg requested_font.
16249 Set antialias parameter if non-default was requested.
16250 (fill_in_logfont): Fill in lfQuality if :antialias specified.
16251
162522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16253
16254 * lread.c (read1): Undo the previous change.
16255
162562008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
16257
16258 * frame.c (Fdelete_frame): Call font_update_drivers only when
16259 USE_FONT_BACKEND is defined.
16260
162612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16262
16263 * font.h (struct font_bitmap): New member bits_per_pixel.
16264 (struct font_driver): New members start_for_frame and end_for_frame.
16265 (struct font_data_list): New struct.
16266 (font_put_frame_data, font_get_frame_data): Extern them.
16267
16268 * frame.h (struct frame): New member font_data_list.
16269
16270 * font.c (font_update_drivers): Call driver->start_for_frame and
16271 driver->end_for_frame at proper timings.
16272 (font_put_frame_data, font_get_frame_data): New functions.
16273 (Ffont_spec): Add usage in the docstring.
16274
16275 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16276 (Fdelete_frame): Call font_update_drivers.
16277
16278 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16279 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16280 (xftfont_get_xft_draw): New function.
16281 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16282 (xftfont_end_for_frame): New function.
16283 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16284
16285 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16286 Change argument. Cache GCs in the per-frame data.
16287 (struct ftxfont_frame_data): New struct.
16288 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16289 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16290 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16291 (ftxfont_end_for_frame): New function.
16292 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16293
16294 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16295
162962008-02-01 Kenichi Handa <handa@m17n.org>
16297
16298 * xselect.c (Vselection_coding_system)
16299 (Vnext_selection_coding_system): Delete them.
16300 (syms_of_xselect): Don't declare selection-coding-system and
16301 next-selection-coding-system. They are declared in select.el.
16302
163032008-02-01 Jason Rumney <jasonr@gnu.org>
16304
16305 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16306
16307 * w32fns.c: Include imm.h.
16308 (get_composition_string_fn, get_ime_context_fn): New optional
16309 system functions.
16310 (globals_of_w32fns): Load them from imm32.dll.
16311 (ignore_ime_char): New flag.
16312 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16313 WM_IME_ENDCOMPOSITION messages.
16314
16315 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16316 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16317
163182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16319
16320 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16321 (READCHAR_REPORT_MULTIBYTE): New macro.
16322 (readchar): New 2nd arg MULTIBYTE.
16323 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16324 Make symbol's name multibyte according to the multibyteness of the
16325 source.
16326
163272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16328
16329 * xfaces.c (face_for_overlay_string): Call lookup_face with
16330 correct arguments (fix of synching with the trunk).
16331
163322008-02-01 Kenichi Handa <handa@m17n.org>
16333
16334 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16335 (font_prop_validate_non_neg, font_prop_validate_spacing):
16336 Delete argument prop_index.
16337 (font_property_table): Change arguments to validater. Change Callers.
16338 (font_lispy_object): Delete.
16339 (font_at): Use font_find_object instead fo font_lispy_object.
16340
163412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16342
16343 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16344 and file names.
16345
163462008-02-01 Jason Rumney <jasonr@gnu.org>
16347
16348 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16349 (font_matches_spec): Remove debug output.
16350 (add_font_entity_to_list): Avoid using substituted fonts.
16351
163522008-02-01 Jason Rumney <jasonr@gnu.org>
16353
16354 * doc.c (Fsnarf_documentation):
16355 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16356
163572008-02-01 Miles Bader <miles@gnu.org>
16358
16359 * dispextern.h (struct glyph_row): Only define "clip" field if
16360 HAVE_WINDOW_SYSTEM is defined.
16361
163622008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16363
16364 Fix up multi-tty merge.
16365
16366 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16367 and indentation.
16368
16369 * xfaces.c (free_realized_face, clear_face_gcs):
16370 Include font_done_for_face in the input_blocked section, just in case.
16371
16372 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16373 (get_char_face_and_encoding): Undo last change and remove the *other*
16374 duplicate definition (i.e. keep the one that's better scoped and that
16375 includes code for the font-backend).
16376
16377 * terminal.c (create_terminal): Default keyboard_coding to
16378 `no-conversion' and terminal_coding to `undecided'.
16379
16380 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16381
16382 * fontset.c (free_realized_fontsets): Check that the table entry does
16383 contain a fontset before trying to compare it to `base'.
16384
16385 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16386 syms_of_charset, and syms_of_coding earlier because init_window_once
16387 now needs Vcoding_system_hash_table to be setup.
16388
16389 * coding.h (default_buffer_file_coding): Remove.
16390
16391 * coding.c (default_buffer_file_coding): Remove.
16392 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16393 than ->symbol, and use the terminal-local coding system.
16394 (syms_of_coding): Don't setup the coding-systems that are not
16395 terminal-local.
16396 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16397
16398 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16399 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16400
16401 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16402 in chartab.c and were re-added here by mistake.
16403 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16404
16405 * doc.c (Fsnarf_documentation):
16406 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16407 src to etc.
16408
16409 * ChangeLog.10: Add mistakenly removed entry.
16410
164112008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16412
16413 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16414
164152008-02-01 Miles Bader <miles@gnu.org>
16416
16417 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16418 Add extra args to FACE_FOR_CHAR.
16419
164202008-02-01 Kenichi Handa <handa@m17n.org>
16421
16422 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16423 in sequence.
16424
16425 * chartab.c (map_sub_char_table, map_char_table): If the range
16426 contains just one character, call the function with that character
16427 even if the depth is not 3.
16428
164292008-02-01 Jason Rumney <jasonr@gnu.org>
16430
16431 * w32font.c (w32font_text_extents): Calculate metrics for the
16432 whole string.
16433
164342008-02-01 Jason Rumney <jasonr@gnu.org>
16435
16436 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16437
164382008-02-01 Jason Rumney <jasonr@gnu.org>
16439
16440 * w32term.c (x_set_glyph_string_clipping): Use
16441 get_glyph_string_clip_rects.
16442 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16443 Adjust for the change of struct glyph_string.
16444
16445 * w32font.c (w32font_draw): Do clipping here.
16446
164472008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * xftfont.c (xftfont_draw): Adjust for the change of struct
16450 glyph_string.
16451
16452 * xterm.c (x_set_glyph_string_clipping): Use
16453 get_glyph_string_clip_rects.
16454 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16455 Adjust for the change of struct glyph_string.
16456
16457 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16458 the resulting clip(s}.
16459 (expose_overlaps): Add arg r. Change callers. Set it to
16460 row->clip temporarily.
16461 (expose_window): Redraw rows overlapping the exposed area.
16462
16463 * dispextern.h (struct glyph_row): New member clip.
16464 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16465 clip_height, new member clip, and num_clips.
16466
164672008-02-01 Kenichi Handa <handa@m17n.org>
16468
16469 * data.c (Fchar_or_string_p): Fix docstring.
16470
164712008-02-01 Kenichi Handa <handa@m17n.org>
16472
16473 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16474 create a temporary XftDraw object.
16475
164762008-02-01 Kenichi Handa <handa@m17n.org>
16477
16478 * font.c (Ffontp): Fix docstring.
16479
16480 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16481 strong evidence of ISO-2022.
16482
164832008-02-01 Kenichi Handa <handa@m17n.org>
16484
16485 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16486 SYNTAX_ENTRY_FOLLOW_PARENT.
16487
164882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16489
16490 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16491 its type.
16492 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16493 Update to the new type of weak_hash_tables and next_weak.
16494
16495 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16496 a plain C pointer to Lisp_Hash_Table.
16497
16498 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16499 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16500 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16501 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16502 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16503 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16504 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16505 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16506 (GC_EQ): Remove since they've been identical to their non-GC_
16507 alter-egos ever since the markbit was eradicated.
16508
16509 * alloc.c:
16510 * buffer.c:
16511 * buffer.h:
16512 * data.c:
16513 * fileio.c:
16514 * filelock.c:
16515 * fns.c:
16516 * frame.h:
16517 * lisp.h:
16518 * macterm.c:
16519 * print.c:
16520 * process.c:
16521 * w32fns.c:
16522 * w32menu.c:
16523 * w32term.c:
16524 * xfns.c:
16525 * xmenu.c:
16526 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16527
165282008-02-01 Kenichi Handa <handa@m17n.org>
16529
16530 * chartab.c (map_sub_char_table): Make it work for the top-level
16531 char-table. Fix handling of parent char-table.
16532 (map_char_table): Adjust for the above change.
16533
165342008-02-01 Jason Rumney <jasonr@gnu.org>
16535
16536 * w32font.c (Qgdi): Rename from Qw32.
16537
165382008-02-01 Jason Rumney <jasonr@gnu.org>
16539
16540 * w32bdf.c (get_quoted_string): Make function static.
16541
165422008-02-01 Kenichi Handa <handa@m17n.org>
16543
16544 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16545 bigger ascent and descent than those of the font, use them as
16546 font's ascent and descent.
16547
165482008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * Makefile.in (${lispsource}international/charprop.el): Move this
16551 target within "#ifdef HAVE_UNIDATA" and "#endif".
16552
165532008-02-01 Kenichi Handa <handa@m17n.org>
16554
16555 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16556 (shortlisp): Add ../lisp/language/tai-viet.el.
16557
165582008-02-01 Ulrich Mueller <ulm@gentoo.org>
16559
16560 * Makefile.in (${lispsource}international/charprop.el): Depend on
16561 temacs${EXEEXT}.
16562
165632008-02-01 Jason Rumney <jasonr@gnu.org>
16564
16565 * w32font.c (w32font_close): Delete the GDI font object.
16566
16567 * w32menu.c: Include character.h.
16568
16569 * w32proc.c: Likewise.
16570
16571 * w32select.c: Likewise.
16572
16573 * makefile.w32-in (w32proc.o): Depend on character.h.
16574
165752008-02-01 Jason Rumney <jasonr@gnu.org>
16576
16577 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16578
16579 * w32menu.c (syms_of_w32menu): Likewise.
16580
16581 * w32proc.c (syms_of_ntproc): Likewise.
16582
16583 * w32select.c (syms_of_w32select): Likewise.
16584
16585 * w32term.c (syms_of_w32term): Likewise.
16586
165872008-02-01 Jason Rumney <jasonr@gnu.org>
16588
16589 * w32font.c (w32font_draw): Delete brush after using it.
16590
165912008-02-01 Jason Rumney <jasonr@gnu.org>
16592
16593 * w32font.c (w32font_open): Don't set font_idx.
16594 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16595 to font settings.
16596 (w32font_draw): Fill background explicitly.
16597
165982008-02-01 Jason Rumney <jasonr@gnu.org>
16599
16600 * w32term.c (w32_initialize): Don't call w32font_initialize.
16601
16602 * w32font.c (w32font_info): Remove subranges.
16603 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16604 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16605 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16606 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16607 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16608 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16609 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16610 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16611 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16612 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16613 New symbols.
16614 (font_callback_data): New struct.
16615 (w32font_list, w32font_match): Use it.
16616 (w32font_open): Don't populate subranges.
16617 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16618 (w32font_encode_char): Always return unicode code-point as-is.
16619 (w32font_text_extents): Supply a transformation matrix to
16620 GetGlyphOutline. Never look up by glyph index. Avoid looping
16621 twice. Use unicode version of GetTexExtentPoint32 instead of
16622 glyph index version.
16623 (set_fonts_frame): Remove.
16624 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16625 set frame parameter. Use backward compatible fake foundries.
16626 Save generic family in extra slot under QCfamily. Make width slot
16627 constant. Save QCspacing value. Save list of scripts instead of
16628 binary subranges.
16629 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16630 (add_font_entity_to_list): Use font_callback_data struct. Filter
16631 unwanted fonts.
16632 (add_one_font_entity_to_list): Use font_callback_data struct.
16633 (w32_registry): Default to iso10646_1.
16634 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16635 string font registries. Don't fill in font name if it is a generic
16636 family name, fill family instead. Use spacing, family and script
16637 extra info to fill pitch, family and charset fields.
16638 (list_all_matching_fonts): Use font_callback_data struct.
16639 (unicode_range_for_char): Remove.
16640 (font_supported_scripts): New function.
16641 (w32font_initialize): Remove.
16642 (syms_of_w32font): Update which symbols are defined.
16643
166442008-02-01 Jason Rumney <jasonr@gnu.org>
16645
16646 * font.c (font_pixel_size): Reverse assq_no_quit args.
16647
16648 * w32term.h (FONT_WIDTH): Report max width, not average.
16649 (FONT_MAX_WIDTH): Remove.
16650 (FONT_AVG_WIDTH): New macro.
16651
16652 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16653 redefinition of FONT_WIDTH.
16654
16655 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16656 (w32_cache_char_metrics): Use FONT_WIDTH.
16657
16658 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16659
166602008-02-01 Jason Rumney <jasonr@gnu.org>
16661
16662 * w32font.c (w32font_open): Make lfHeight negative.
16663
16664 * w32fns.c (x_default_font_parameter): Use new style font name.
16665 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16666
166672008-02-01 Jason Rumney <jasonr@gnu.org>
16668
16669 * w32font.c (QCsubranges): New symbol.
16670 (w32font_open, w32font_has_char): Get subranges from subproperty
16671 of extra.
16672 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16673 (syms_of_w32font): Define :subranges symbol.
16674
16675 * font.c (font_put_extra): Expose externally.
16676
16677 * font.h (font_put_extra): Move declaration from font.c.
16678
16679 * font.c (Ffont_get): Use font driver to determine otf capability.
16680 (adjust_anchor): Check if driver defines anchor_point before using.
16681
16682 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16683 (w32font_draw): Use options.
16684 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16685 Fix detection of truetype fonts.
16686 (registry_to_w32_charset): Handle charsets other than iso8859-1
16687 expressed as lisp symbols.
16688 (w32_registry): Express charset as lisp symbol.
16689 (fill_in_logfont): Reverse pixel and point height logic.
16690 Don't set width here. Set quality to default.
16691
16692 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16693 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16694
16695 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16696 Remove redundant loop and allocation.
16697
16698 * makefile.w32-in (font.o, w32font.o): New objects.
16699 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16700 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16701
16702 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16703 STORE_XCHARB a valid l-value.
16704
16705 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16706 calculations for non-Truetype fonts.
16707 (x_draw_glyph_string): Sync with xterm.c.
16708 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16709 Remove redundant code.
16710 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16711
16712 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16713 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16714
16715 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16716 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16717
16718 * w32font.c: New file for w32 font backend.
16719
167202008-02-01 Kenichi Handa <handa@m17n.org>
16721
16722 * term.c: Don't include "buffer.h" twice.
16723
167242008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * character.c (Funibyte_string): New function.
16727 (syms_of_character): Defsubr it.
16728
167292008-02-01 Jason Rumney <jasonr@gnu.org>
16730
16731 * w32term.c [USE_FONT_BACKEND]:
16732 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16733 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16734 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16735 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16736 (x_free_frame_resources): Sync with xterm.c.
16737
167382008-02-01 Andreas Schwab <schwab@suse.de>
16739
16740 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16741 char-table size.
16742
167432008-02-01 Kenichi Handa <handa@m17n.org>
16744
16745 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16746
167472008-02-01 Kenichi Handa <handa@m17n.org>
16748
16749 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16750 font_otf_gpos, add font_drive_otf.
16751
16752 * fontset.c (fontset_find_font): Pay attention to font size
16753 specified for a font.
16754 (reorder_font_vector): Check contents of font_def.
16755
16756 * font.c (struct otf_list): Delete it.
16757 (otf_list): Make it a lisp variable.
16758 (otf_open): Use lispy otf_list.
16759 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16760 (check_otf_features): New function.
16761 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16762 New functions.
16763 (font_drive_otf): New function merging font_otf_gsub and
16764 font_otf_gpos.
16765 (font_open_for_lface): New arg spec. Change argument order.
16766 (font_load_for_face): Adjust for the change of font_open_for_lface.
16767 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16768 Ffont_otf_gpos.
16769 (syms_of_font): Staticpro otf_list. Delete defsubr of
16770 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16771
16772 * xfaces.c (set_font_frame_param): Adjust for the change of
16773 font_open_for_lface.
16774
16775 * font.h (font_open_for_lface): Adjust prototype.
16776 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16777 member otf_drive.
16778 (font_otf_gsub, font_otf_gpos): Delete externs.
16779 (font_drive_otf): Extern it.
16780
167812008-02-01 Kenichi Handa <handa@m17n.org>
16782
16783 * font.c (font_at): If the window W is not on a window system,
16784 return Qnil.
16785
16786 * coding.c (produce_chars, encode_coding): Don't call
16787 insert_from_gap if no characters to produce.
16788
167892008-02-01 Kenichi Handa <handa@m17n.org>
16790
16791 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16792 Fclear_face_cache.
16793
16794 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16795
167962008-02-01 Miles Bader <miles@gnu.org>
16797
16798 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16799 Parse "--disable-font-backend" option.
16800 (standard_args): Add "--disable-font-backend" option.
16801
168022008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * fontset.c (fontset_find_font): New function.
16805 (fontset_font): Use fontset_find_font.
16806 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16807 Register the specified font for all Latin characters.
16808 (new_fontset_from_font): Register the specified font for all Latin
16809 characters.
16810 (dump_fontset): For a realized fontset, include the base fontset
16811 name in the returned vector.
16812
168132008-02-01 Kenichi Handa <handa@m17n.org>
16814
16815 * character.h (CHAR_STRING): Cast C to unsigned on calling
16816 char_string.
16817
16818 * character.c (char_string): Type of arg C changed to unsigned.
16819 Signal an error if C is an invalid character code.
16820
16821 * editfns.c (general_insert_function, Fchar_to_string):
16822 Use CHARACTERP, not INTEGERP.
16823
168242008-02-01 Kenichi Handa <handa@m17n.org>
16825
16826 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16827 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16828
16829 * regex.c (analyse_first): Fix for multibyte characters in "case
16830 charset:" and "case categoryspec:".
16831
168322008-02-01 Andreas Schwab <schwab@suse.de>
16833
16834 * Makefile.in (LIBES): Move standard libraries to the end.
16835
168362008-02-01 Kenichi Handa <handa@m17n.org>
16837
16838 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16839 nonzero, don't shrink the buffer nextb.
16840
16841 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16842
16843 * coding.c (coding_alloc_by_making_gap): New arg offset.
16844 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16845 offset.
16846 (decode_coding_iso_2022): Update coding->safe_charsets.
16847 (decode_coding_gap): Temporarily set
16848 current_buffer->text->inhibit_shrinking to 1.
16849
168502008-02-01 Kenichi Handa <handa@m17n.org>
16851
16852 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16853 indexing into elements of s->cmp and s->char2b.
16854
168552008-02-01 Juanma Barranquero <lekktu@gmail.com>
16856
16857 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16858
168592008-02-01 Kenichi Handa <handa@m17n.org>
16860
16861 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16862 target_multibyte instead of multibyte.
16863 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16864 (bcmp_translate): Change the argument name from multibyte to
16865 target_multibyte.
16866
168672008-02-01 Kenichi Handa <handa@m17n.org>
16868
16869 These changes are to compile a regexp into a pattern that can be
16870 used both for multibyte and unibyte targets.
16871
16872 * Makefile.in (search.o): Depend on charset.h.
16873
16874 * character.c (multibyte_char_to_unibyte_safe): New function.
16875
16876 * search.c: Include "charset.h".
16877 (compile_pattern_1): Delete argument multibyte. Don't set
16878 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16879 (compile_pattern): Don't compare cp->buf.target_multibyte.
16880 Compare cp->buf.charset_unibyte.
16881 (compile_pattern): Set cp->buf.target_multibyte.
16882
16883 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16884
16885 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16886
16887 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16888 multibyte. Change callers.
16889 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16890 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16891 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16892 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16893 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16894 (regex_compile): Make the compiled pattern usable both for
16895 multibyte and unibyte targets.
16896 (analyse_first): Make the fastmap usable both for multibyte and
16897 unibyte targets.
16898 (TRANSLATE_VIA_MULTIBYTE): Delete.
16899 (re_match_2_internal): Pay attention to the case that the
16900 multibyteness of bufp and target may be different.
16901
169022008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16905 empty box occupy at least one column width.
16906
169072008-02-01 Miles Bader <miles@gnu.org>
16908
16909 * Makefile.in: Remove redundant HAVE_XFT clause.
16910
169112008-02-01 Kenichi Handa <handa@m17n.org>
16912
16913 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16914
169152008-02-01 Kenichi Handa <handa@m17n.org>
16916
16917 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16918 being nil.
16919
169202008-02-01 Kenichi Handa <handa@m17n.org>
16921
16922 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16923
169242008-02-01 Kenichi Handa <handa@m17n.org>
16925
16926 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16927
169282008-02-01 Kenichi Handa <handa@m17n.org>
16929
16930 * search.c (simple_search): Fix previous change.
16931
169322008-02-01 Kenichi Handa <handa@m17n.org>
16933
16934 * xftfont.c (ftfont_font_format): Extern declaration.
16935
16936 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16937
16938 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16939 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16940
16941 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16942 (ftfont_font_format): Fix previous change.
16943
16944 * font.h (Ffont_xlfd_name): EXFUN it.
16945
16946 * font.c (font_parse_xlfd): Fix the array size of `f'.
16947 (register_font_driver): Use EQ to compare driver->type.
16948
16949 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16950 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16951 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16952
169532008-02-01 Kenichi Handa <handa@m17n.org>
16954
16955 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16956 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16957
169582008-02-01 Kenichi Handa <handa@m17n.org>
16959
16960 * xfont.c (xfont_open): Set font->format.
16961
16962 * xftfont.c (xftfont_open): Set font->format.
16963
16964 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16965 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16966 (ftfont_open): Set font->format.
16967 (ftfont_font_format): New function.
16968
16969 * font.h (struct font): New member format.
16970
16971 * font.c (Qopentype): New variable.
16972 (syms_of_font): Defsym it.
16973 (Fquery_font): Change the format of the last element of the return
16974 value.
16975
169762008-02-01 Kenichi Handa <handa@m17n.org>
16977
16978 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16979 last resort.
16980
169812008-02-01 Kenichi Handa <handa@m17n.org>
16982
16983 * coding.c (detect_coding_charset): Fix detection of multi-byte
16984 charset.
16985
169862008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16987
16988 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16989
169902008-02-01 Kenichi Handa <handa@m17n.org>
16991
16992 * xdisp.c (get_next_display_element): Set it->face_id for the
16993 first component of a composition.
16994 (x_produce_glyphs): Check if the font is changed or not for composition.
16995
169962008-02-01 Kenichi Handa <handa@m17n.org>
16997
16998 * fontset.c (Qlatin): New variable.
16999 (syms_of_fontset): Define it as a lisp symbol.
17000 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
17001
170022008-02-01 Kenichi Handa <handa@m17n.org>
17003
17004 * font.c (font_unparse_fcname): Pay attention to the case that
17005 some of font property is a null string.
17006
170072008-02-01 Kenichi Handa <handa@m17n.org>
17008
17009 * term.c: Include "composite.h".
17010 (encode_terminal_code): Output all components of composition.
17011 Check the size of encode_terminal_src.
17012 (produce_glyphs): For composition, call produce_composite_glyph.
17013 (append_composite_glyph, produce_composite_glyph): New functions.
17014
17015 * xdisp.c (x_produce_glyphs): In handling composition, if a font
17016 is not found, get font_info from the current ascii face.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
17021 buffer-file-name to Qnil before calling insert_from_buffer.
17022
17023 * font.c (font_unparse_fcname): Pay attention to the case that
17024 foundry is a null string.
17025
170262008-02-01 Kenichi Handa <handa@m17n.org>
17027
17028 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
17029
17030 * font.c (Qunicode_sip): New variable.
17031 (syms_of_font): Declare it as a Lisp symbol.
17032
17033 * font.h (Qunicode_sip): Extern it.
17034
170352008-02-01 Kenichi Handa <handa@m17n.org>
17036
17037 * composite.c (get_composition_id): Pay attention to TAB component.
17038
17039 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
17040 TAB. Adjust for the change of s->char2b which always points to
17041 the first element of allocated memory.
17042
17043 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
17044
17045 * xdisp.c (handle_composition_prop): Set it->c to the first
17046 non-TAB component.
17047 (fill_composite_glyph_string): Change argument.
17048 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
17049 (x_produce_glyphs): Fix handling of left/right padding.
17050
170512008-02-01 Kenichi Handa <handa@m17n.org>
17052
17053 * coding.c (detect_coding_system): Fix for handling off
17054 inhibit_iso_escape_detection. Fix for the case that no coding
17055 system is defined for a specific coding category.
17056
170572008-02-01 Kenichi Handa <handa@m17n.org>
17058
17059 * font.c (font_matching_entity): Delete unused local var.
17060
17061 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
17062 opening a font.
17063
17064 * fileio.c (Finsert_file_contents): On recovering a file, assume
17065 Unix-like eol.
17066 (choose_write_coding_system): On auto-saving a file, force
17067 Unix-like eol.
17068
17069 * coding.c (setup_coding_system): Fix setting of
17070 coding->common_flags based on eol_type.
17071 (coding_inherit_eol_type): If PARENT is not nil, be sure to
17072 inherit from it.
17073
170742008-02-01 Kenichi Handa <handa@m17n.org>
17075
17076 * alloc.c (NSTATICS): Increas to 0x600.
17077
170782008-02-01 Kenichi Handa <handa@m17n.org>
17079
17080 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
17081 (ftfont_list): Don't check :name property.
17082 (ftfont_match): New function.
17083 (ftfont_pattern_entity): If the pattern doesn't contain
17084 FC_SPACING, don't assume FC_MONO.
17085
17086 * font.h (struct font_driver): New member `match'.
17087 (font_update_drivers): Adjust prototype.
17088
17089 * font.c (font_parse_fcname, font_parse_name): Don't change :name
17090 property of FONT.
17091 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
17092 them unconditionally.
17093 (font_matching_entity): New function.
17094 (font_open_by_name): Try font_matching_entity if exact match is
17095 not found.
17096 (font_update_drivers): Delete the arg FONT. Return a list of
17097 actually used backends. Don't free faces, font caches here.
17098 Don't store data in frame parameters. Don't call x_set_font.
17099 (Ffont_spec): Store :name property as is.
17100 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
17101 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
17102 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
17103 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
17104 Call font->driver->otf_gsub instead of font_otf_gsub.
17105
17106 * frame.c (x_set_font_backend): Do more works that were done in
17107 font_update_drivers before.
17108
17109 * xfont.c (xfont_match): New function.
17110 (xfont_driver): Set xfont_driver.match to xfont_match.
17111 (xfont_draw): Set font in GC if necessary.
17112
17113 * ftxfont.c (ftxfont_match): New function.
17114 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
17115
17116 * xftfont.c (xftfont_match): New function.
17117 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
17118
171192008-02-01 Kenichi Handa <handa@m17n.org>
17120
17121 * font.h (struct font): New member scalable.
17122 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
17123 (font_otf_gsub): Adjust prototype.
17124
17125 * font.c (font_otf_capability): Fix handling of the default langsys.
17126 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
17127 Check the contents of SPEC.
17128 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
17129 (check_gstring): New function.
17130 (REPLACEMENT_CHARACTER): New macro.
17131 (font_otf_gsub): New arg alternate_subst. Be sure to set all
17132 glyph codes of GSTRING.
17133 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
17134 (font_prepare_composition): Set cmp->glyph_len.
17135 (font_open_entity): Set font->scalable.
17136 (Ffont_get): Handle :otf property.
17137 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
17138 functions.
17139 (Fquery_font): Use font->font.full_name.
17140 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
17141 Sfont_otf_alternates.
17142
17143 * ftfont.c (ftfont_open): Set font->font.full_name and
17144 font->font.name properly. Fix calculation of font->font.height
17145 and font->min_width.
17146
17147 * ftxfont.c (ftxfont_create_gcs): New function.
17148 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
17149 (ftxfont_draw_backgrond): Fix filling region.
17150 (ftxfont_default_fid): New function.
17151 (ftxfont_open): Set xfont->fid to the return value of
17152 ftxfont_default_fid.
17153 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
17154 (ftxfont_done_face): Free only GCs that are created by
17155 ftxfont_create_gcs.
17156 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
17157
17158 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
17159 Clip to src->width, etc (not src->clip_XXX).
17160
17161 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
17162 FontBackend frame parameter.
17163
171642008-02-01 Kenichi Handa <handa@m17n.org>
17165
17166 * font.h (struct font_driver_list): New member `on'.
17167 (Fclear_font_cache): EXFUN it.
17168 (font_update_drivers): Extern it.
17169
17170 * font.c (font_unparse_fcname): Fix typo (swidth->width).
17171 (font_list_entities): Check driver_list->on.
17172 (register_font_driver): Initalize `on' member to 0.
17173 (font_update_drivers): New function.
17174 (Fclear_font_cache): Check driver_list->on.
17175
17176 * frame.h (Qfont_backend): Extern it.
17177 (x_set_font_backend): Extern it.
17178
17179 * frame.c (Qfont_backend): New variable.
17180 (frame_parms): New element for font-backend.
17181 (x_set_font_backend): New function.
17182
17183 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
17184 FontBackend frame parameter.
17185 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
17186 x_set_font_backend.
17187
17188 * xfont.c (xfont_list): Don't try listing by :name property if the
17189 name is not for XLFD.
17190
171912008-02-01 Kenichi Handa <handa@m17n.org>
17192
17193 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
17194 (LGLYPH_SET_TO): New macros.
17195 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
17196 element of G is vector or not.
17197 (font_at): Extern it.
17198
17199 * font.c: Include window.h.
17200 (font_lispy_object): New function.
17201 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
17202 end of valid glyph.
17203 (font_close_object): Fix getting (struct font *).
17204 (font_at): New function.
17205 (Ffont_get): If FONT is a font-object, get entity from it.
17206 (Ffont_make_gstring): Initialize elements of glyphs with nil.
17207 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
17208 range check.
17209 (Ffont_at): New function.
17210 (syms_of_font): Defsubr Sfont_at.
17211
17212 * xdisp.c (it_props): Move the entry for Qauto_composed to just
17213 before the entry for Qcomposition.
17214 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
17215 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
17216 the font in gstring.
17217 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
17218 LGLYPH_FORM (g) to detect the end of valid glyph.
17219 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
17220 we are composing with gstring.
17221
17222 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
17223 Check if adjustment is vector or not.
17224
17225 * Makefile.in (font.o): Make it depends on window.h.
17226
172272008-02-01 Kenichi Handa <handa@m17n.org>
17228
17229 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
17230 adjustment is vector or not.
17231
172322008-02-01 Miles Bader <miles@gnu.org>
17233
17234 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
17235
172362008-02-01 Kenichi Handa <handa@m17n.org>
17237
17238 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
17239 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
17240 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
17241
17242 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
17243 (DEVICE_DELTA): Fix typo.
17244 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
17245 LGLYPH format.
17246
17247 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17248 the change of LGLYPH format.
17249
172502008-02-01 Kenichi Handa <handa@m17n.org>
17251
17252 * ftfont.c (ftfont_list): Fix typo.
17253 (ftfont_build_basic_charsets): Don't include letters with diacritics.
17254
172552008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17256
17257 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
17258
17259 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
17260 xftface_info is non-NULL.
17261
172622008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17263
17264 * ftfont.c (ftfont_list): Move misplaced #endif.
17265
172662008-02-01 Kenichi Handa <handa@m17n.org>
17267
17268 * ftfont.c (ftfont_list): Pay attention to the case that
17269 FC_CAPABILITY is not defined.
17270
172712008-02-01 Kenichi Handa <handa@m17n.org>
17272
17273 * xftfont.c (xftfont_open): Set charset related members to -1.
17274
17275 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17276 QCname.
17277 (ftfont_open): Set charset related members to -1.
17278
17279 * fontset.c (Votf_script_alist): New variable.
17280 (syms_of_fontset): Initialize it.
17281 (fontset_font): Delete unused variable.
17282
17283 * fontset.h (Votf_script_alist): Extern it.
17284
17285 * font.c (font_find_for_lface): Optimize code.
17286
17287 * font.h (font_close_object, font_merge_old_spec): Extern them.
17288
172892008-02-01 Kenichi Handa <handa@m17n.org>
17290
17291 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17292 (syms_of_font): Initialize them.
17293 (font_pixel_size): Allow float value in dpi.
17294 (font_prop_validate_type): Delete.
17295 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17296 Change caller.
17297 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17298 (font_prop_validate_extra): Delete.
17299 (font_prop_validate_spacing): New function.
17300 (font_property_table): Add elements for all known properties.
17301 (get_font_prop_index): Rename from check_font_prop_name. New
17302 argument FROM. Change caller.
17303 (font_prop_validate): Validate all known properties.
17304 (font_put_extra): Delete argument force. Change caller.
17305 (font_expand_wildcards): Make it static. Fix the way of shrinking
17306 the possible range.
17307 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17308 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17309 Change caller.
17310 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17311 (font_parse_fcname): Delete argument merge. Fix parsing of point
17312 size. Don't validate properties values here. Change caller.
17313 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17314 (font_open_by_name): Delete unused variable.
17315 (Ffont_spec): Likewise. Validate property values.
17316 (Ffont_match_p): New function.
17317
17318 * font.h (QCscalable): Extern it.
17319 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17320
17321 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17322
17323 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17324 (xfont_list_pattern): New function.
17325 (xfont_list): Use xfont_list_pattern.
17326
173272008-02-01 Kenichi Handa <handa@m17n.org>
17328
17329 * font.h (Flist_fonts): EXFUN it.
17330
173312008-02-01 Jason Rumney <jasonr@gnu.org>
17332
17333 * w32term.c (w32_initialize): Add back smoothing_type and
17334 smoothing_enabled definitions.
17335
173362008-02-01 Kenichi Handa <handa@m17n.org>
17337
17338 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17339 s->face->font on determining underline position.
17340
173412008-02-01 Kenichi Handa <handa@m17n.org>
17342
17343 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17344 (font_has_char): Accept font-object too.
17345 (font_find_for_lface): Try at first with a size specified in face.
17346
173472008-02-01 Kenichi Handa <handa@m17n.org>
17348
17349 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17350 font_open_by_name.
17351
173522008-02-01 Kenichi Handa <handa@m17n.org>
17353
17354 * font.h (QCspacing, QCdpi): Extern them.
17355 (enum font_spacing): New enum.
17356 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17357
17358 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17359 (QCspacing, QCdpi): New variables.
17360 (syms_of_font): Initialize them.
17361 (font_pixel_size): New function.
17362 (font_put_extra): New function.
17363 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17364 in FONT_EXTRA.
17365 (font_parse_fcname): Handle enumerated values (e.g. bold).
17366 Fix handling font size. Add QCname property that contains only
17367 unknown properties.
17368 (font_score): Change argument. Change caller. Pay attention to
17369 FONT_PIXEL_SIZE_QUANTUM.
17370 (font_sort_entites, font_list_entities, font_find_for_lface)
17371 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17372 (Ffont_spec): Add QCname property that contains only unknown properties.
17373
17374 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17375 include weight in listing pattern, instead check weight of each
17376 listed font. Don't include scalable in pattern. Pay attention to
17377 FONT_PIXEL_SIZE_QUANTUM.
17378
173792008-02-01 Kenichi Handa <handa@m17n.org>
17380
17381 * font.c (font_parse_fcname): Fix parsing of point-size.
17382 (font_unparse_fcname): Produce symbolic names for style properties.
17383 (font_list_entities): Handle float size correctly.
17384 (font_open_by_name): Prefer `normal' property values if the name
17385 doesn't specify them.
17386
17387 * fontset.c (Finternal_char_font): Use font_get_name, not
17388 Ffont_xlfd_name.
17389
17390 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17391 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17392 pattern. Don't force scalable.
17393
17394 * xftfont.c (xftfont_open): For generating a name, start from
17395 96-byte buffer.
17396
173972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17398
17399 * frame.h (x_new_fontset2): Fix prototype.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * font.h (struct font_driver): Delete member parse_name.
17404 (font_match_p, font_get_spec, font_parse_fcname)
17405 (font_unparse_fcname): Extern them.
17406 (font_get_name): Adjust prototype.
17407
17408 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17409 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17410 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17411 unnecessary checks for weight, slant, and swidth.
17412 (font_parse_fcname): New function.
17413 (font_unparse_fcname): New function.
17414 (font_parse_name): New function.
17415 (font_match_p): New function.
17416 (font_get_name): Change return value to Lisp string.
17417 (font_get_spec): New function.
17418 (Qunspecified, Qignore_defface): Don't extern them.
17419 (font_find_for_lface): Assume that LFACE is fully specified.
17420 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17421 object, use it for FACE.
17422 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17423 driver->parse_name.
17424 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17425
17426 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17427 prototype.
17428
17429 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17430 argument F. Don't call Fnew_fontset. Instead, directly call
17431 make_fontset.
17432
17433 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17434
17435 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17436 of x_new_fontset2.
17437
17438 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17439 (Qsans__serif): New variables.
17440 (ftfont_generic_family_list): New variable.
17441 (syms_of_ftfont): Initialize the above variables.
17442 (ftfont_pattern_entity): Delete argument NAME.
17443 (ftfont_list_generic_family): New function.
17444 (ftfont_parse_name): Delete this function.
17445 (ftfont_list): Try generic family only when FcFontList found no font.
17446 (ftfont_list_family): Fix args to FcObjectSetBuild.
17447
17448 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17449 object in attrs[LFACE_FONT_INDEX].
17450 (set_lface_from_font_name): Cancel all changes for font-backend.
17451 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17452 function.
17453 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17454 font object in QCfont attribute.
17455 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17456 (realize_default_face) [USE_FONT_BACKEND]: Call
17457 set_lface_from_font_and_fontset.
17458
17459 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17460 "fixed", and signal error here if no suitable font was found.
17461
17462 * xfont.c (xfont_parse_name): Delete this function.
17463
17464 * xftfont.c (xftfont_open): Change coding style of error
17465 handling. Generate fontconfig's fontname pattern.
17466
17467 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17468 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17469
17470 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17471 Both args FONTSET and FONT_OBJECT must be existing ones.
17472
174732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17474
17475 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17476
174772008-02-01 Kenichi Handa <handa@m17n.org>
17478
17479 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17480
17481 * font.h (struct font): Fix typo.
17482
17483 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17484 XLFD_XXX_INDEX.
17485 (enum xlfd_field_mask): New enum.
17486 (intern_font_field): Changed argument. Change caller. If digits
17487 are followed by non-digits, return a symbol.
17488 (font_expand_wildcards): New function.
17489 (font_parse_xlfd): Fix wildcard handling.
17490 (Ffont_spec): If :name is specified, reflect the info in the other
17491 properties.
17492
17493 * ftfont.c (ftfont_pattern_entity): Fix typo.
17494 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17495 locale.
17496
174972008-02-01 Kenichi Handa <handa@m17n.org>
17498
17499 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17500
17501 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17502 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17503 registry doesn't specify encoding part.
17504 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17505 (font_open_by_name): At first try parsing the name.
17506 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17507 as Lisp symbols.
17508
17509 * fontset.c (reorder_font_vector): Pay attention to the case that
17510 the 3rd element of font_def is nil.
17511 (fontset_font): For the default fontset, append one more fontset
17512 elements for a script-based font specification. Don't add script
17513 attribute on finding a font.
17514 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17515 font name.
17516 (fontset_ascii_font): If a font can't be opened, return nil.
17517
17518 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17519 (ftfont_pattern_entity): New function.
17520 (ftfont_get_cache): Assume that freetype_font_cache is already
17521 initialized.
17522 (ftfont_list): Handle the case that a file is specified in font
17523 name. Use ftfont_pattern_entity to generate entities.
17524 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17525 (syms_of_ftfont): Initialize freetype_font_cache.
17526
17527 * xftfont.c (xftfont_open): Make the font name fontconfig's
17528 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17529 (xftfont_close): Free font->font.name if not NULL.
17530
17531 * xfont.c (xfont_list): If script is specified for a font, return
17532 null_vector.
17533 (xfont_list_family): Declare argument type.
17534
17535 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17536 name, set LFACE_FONT (lface) to nil.
17537
17538 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17539 return Qnil.
17540
175412008-02-01 Kenichi Handa <handa@m17n.org>
17542
17543 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17544 (standard_args): Add "-enable-font-backend".
17545
175462008-02-01 Kenichi Handa <handa@m17n.org>
17547
17548 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17549 (struct xftdraw_list, xftdraw_list): Delete them.
17550 (register_xftdraw, check_xftdraw): Delete them.
17551 (xftfont_prepare_face): Don't call register_xftdraw.
17552 (xftfont_done_face): Don't call check_xftdraw.
17553 (xftfont_draw): Get background color only when with_background is
17554 nonzero.
17555
17556 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17557
175582008-02-01 Kenichi Handa <handa@m17n.org>
17559
17560 These changes are for the new font handling codes.
17561
17562 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17563 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17564 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17565 (FONTSRC, FONTOBJ): New variables.
17566 (obj): Add $(FONTOBJ).
17567 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17568 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17569 @LIBOTF_LIBS@.
17570 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17571 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17572
17573 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17574
17575 * character.h (Vscript_representative_chars): Extern it.
17576
17577 * character.c (Vscript_representative_chars): New variable.
17578 (syms_of_character): Declare it as a Lisp variable.
17579
17580 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17581 enable_font_backend is nonzero, accept the composition method
17582 COMPOSITION_WITH_GLYPH_STRING.
17583
17584 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17585 enumeration COMPOSITION_WITH_GLYPH_STRING.
17586
17587 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17588 members clip_x, clip_y, clip_width, and clip_height.
17589 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17590
17591 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17592 --enable-font-backend. Call syms_of_font.
17593
17594 * fns.c (assoc_no_quit): New function.
17595
17596 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17597 (face_for_font, new_fontset_from_font)
17598 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17599
17600 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17601 (fontset_font, fontset_ascii, face_for_char)
17602 (make_fontset_for_ascii_face, Ffont_info)
17603 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17604 is nonzero, use font-backend mechanism.
17605 (find_font_encoding): Make it non-static.
17606 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17607 New functions.
17608
17609 * frame.h (struct frame): New members resx and resy.
17610 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17611 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17612
17613 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17614 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17615
17616 * lisp.h (assoc_no_quit): Extern it.
17617
17618 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17619 Through out the file, use FONT_INFO_FROM_FACE instead of
17620 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17621 rif->per_char_metric.
17622 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17623 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17624 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17625 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17626 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17627 nonzero, use font-backend mechanism.
17628 (get_per_char_metric): New function.
17629
17630 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17631 (set_lface_from_font_name)
17632 (set_font_frame_param, free_realized_face)
17633 (prepare_face_for_display, clear_face_gcs)
17634 (Finternal_set_font_selection_order, realize_x_face)
17635 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17636 font-backend mechanism.
17637 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17638 (load_face_font) [USE_FONT_BACKEND]: Abort.
17639 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17640 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17641
17642 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17643 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17644 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17645 nonzero, register all available font drivers. Call
17646 x_default_font_parameter for deciding a font.
17647 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17648
17649 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17650 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17651 (x_set_glyph_string_clipping_exactly)
17652 (x_compute_glyph_string_overhangs)
17653 (x_draw_glyph_string_foreground)
17654 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17655 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17656 enable_font_backend is nonzero, use font-backend mechanism.
17657 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17658
176592008-02-01 Kenichi Handa <handa@m17n.org>
17660
17661 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17662 system_eol_type.
17663 (syms_of_coding): Initialize system_eol_type.
17664
17665 * process.c (Fset_process_coding_system): Inherit system's eol
17666 format if necessary.
17667
176682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17669
17670 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17671
176722008-02-01 Kenichi Handa <handa@m17n.org>
17673
17674 * coding.c (decode_eol): Pay attention to buffer relocation in
17675 del_range_2.
17676 (decode_coding): Call decode_eol before restoring undo_list.
17677
176782008-02-01 Kenichi Handa <handa@m17n.org>
17679
17680 * charset.c (Fdefine_charset_internal): Fix setting of
17681 emacs_mule_bytes.
17682
176832008-02-01 Kenichi Handa <handa@m17n.org>
17684
17685 * keyboard.c (read_char): Check if C is a character or not before
17686 looking up Vkeyboard_translate_table.
17687
176882008-02-01 Kenichi Handa <handa@m17n.org>
17689
17690 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17691 condition to terminate the loop.
17692
176932008-02-01 Kenichi Handa <handa@m17n.org>
17694
17695 * coding.c (produce_composition): Compare charbuf[i] instead of
17696 args[i] against 0.
17697 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17698
176992008-02-01 Kenichi Handa <handa@m17n.org>
17700
17701 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17702 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17703 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17704 detect_coding.
17705 (emacs_mule_char): Handle old style (Emacs 20) component character
17706 of a composition.
17707 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17708 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17709 composition rule.
17710 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17711
177122008-02-01 Kenichi Handa <handa@m17n.org>
17713
17714 * coding.c (encode_coding_ccl): Allocate destination dynamically
17715 when necessary.
17716
177172008-02-01 Kenichi Handa <handa@m17n.org>
17718
17719 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17720 the loop. When quitted, show a proper error message.
17721
177222008-02-01 Kenichi Handa <handa@m17n.org>
17723
17724 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17725 src->clip_head and src->clip_tail temporarily instead of src->hl.
17726
17727 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17728 character sequence.
17729 (Fccl_execute_on_string): Use ASET, not XSET.
17730
177312008-02-01 Kenichi Handa <handa@m17n.org>
17732
17733 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17734
177352008-02-01 Kenichi Handa <handa@m17n.org>
17736
17737 * coding.c (decode_coding): Fix the condition of terminating the
17738 decoding loop.
17739
177402008-02-01 Kenichi Handa <handa@m17n.org>
17741
17742 * data.c (Faset): On setting a character bigger than 255 in a
17743 unibyte string, signal an error instead of make the string multibyte.
17744
177452008-02-01 Kenichi Handa <handa@m17n.org>
17746
17747 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17748 made by a mapping table.
17749
177502008-02-01 Kenichi Handa <handa@m17n.org>
17751
17752 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17753 not.
17754 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17755 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17756
17757 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17758 s->face is NULL or not.
17759
177602008-02-01 Kenichi Handa <handa@m17n.org>
17761
17762 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17763 (x_draw_glyph_string): Fix drawing of right_overhang and
17764 left_overhang around/on cursor.
17765
17766 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17767
177682008-02-01 Kenichi Handa <handa@m17n.org>
17769
17770 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17771
177722008-02-01 Kenichi Handa <handa@m17n.org>
17773
17774 * coding.c (Fdefine_coding_system_internal)
17775 (Fdefine_coding_system_alias): Avoid a duplicated element in
17776 Vcoding_system_alist.
17777
177782008-02-01 Kenichi Handa <handa@m17n.org>
17779
17780 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17781
17782 * coding.c (Qcoding_system_define_form): New variable.
17783 (syms_of_coding): Intern and staticpro it.
17784 (Fcoding_system_p): Check Qcoding_system_define_form.
17785 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17786
17787 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17788 Fcoding_system_p.
17789 (CHECK_CODING_SYSTEM): If ID is not available, call
17790 Fcheck_coding_system.
17791 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17792 Try also Fcheck_coding_system.
17793
177942008-02-01 Kenichi Handa <handa@m17n.org>
17795
17796 * coding.c (code_conversion_restore): GCPRO arg.
17797
177982008-02-01 Kenichi Handa <handa@m17n.org>
17799
17800 * character.c (lisp_string_width): Check multibyteness of STRING.
17801
178022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17803
17804 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17805 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17806 (decode_mac_font_name): Use decode_coding_c_string instead of
17807 decode_coding.
17808 (x_load_font): Initialize fontp->fontset to -1. Set
17809 fontp->encoding_type.
17810
178112008-02-01 Kenichi Handa <handa@m17n.org>
17812
17813 * search.c (search_buffer): Give up BM search on case-fold-search
17814 if one of a target character has a case-equivalence of different
17815 byte length even if that target charcter is an ASCII.
17816 (simple_search): Fix calculation of byte length of matched text.
17817 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17818
178192008-02-01 Kenichi Handa <handa@m17n.org>
17820
17821 * coding.c (decode_coding): Fix handling of invalid bytes.
17822
178232008-02-01 Kenichi Handa <handa@m17n.org>
17824
17825 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17826 Unicode characters.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * coding.c (encode_coding_object): If a pre-write-conversion
17831 function makes a new buffer, kill it.
17832
178332008-02-01 Kenichi Handa <handa@m17n.org>
17834
17835 * coding.c (QCascii_compatible_p): New variable.
17836 (syms_of_coding): Initialize it.
17837 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17838 calling string_char.
17839 (record_conversion_result): Add `default:' case.
17840 (coding_charset_list): Delete unused variable `coding_type'.
17841 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17842 property in the plist of the coding system.
17843 (Fcoding_system_put): Check QCascii_compatible_p.
17844
178452008-02-01 Miles Bader <miles@gnu.org>
17846
17847 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17848 removed calculation of frame `f', as it's now used.
17849
178502008-02-01 Kenichi Handa <handa@m17n.org>
17851
17852 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17853 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17854 (UNIDATA): New variable.
17855 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17856 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17857 $(RUN_TEMACS) unconditionally.
17858
178592008-02-01 Kenichi Handa <handa@m17n.org>
17860
17861 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17862 (admindir): New variable.
17863 ($(lispsource)international/charprop.el): New target.
17864
178652008-02-01 Miles Bader <miles@gnu.org>
17866
17867 * character.c (chars-in-region): Remove obsolete function.
17868 (syms_of_character): Remove its initialization.
17869
178702008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17871
17872 * w32select.c (validate_coding_system)
17873 (setup_windows_coding_system): New functions.
17874 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17875 setup_windows_coding_system.
17876 (setup_config, Fw32_get_clipboard_data): Use
17877 validate_coding_system.
17878 (Fx_selection_exists): Move call to setup_config to a place
17879 where signals are allowed.
17880
17881 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17882 (Fcheck_coding_system): Add declarations.
17883
178842008-02-01 Kenichi Handa <handa@m17n.org>
17885
17886 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17887
178882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17889
17890 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17891 string as the second argument for x_new_fontset.
17892
178932008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17896 (encode_coding_object): Use safe_call instead of call2.
17897
178982008-02-01 Kenichi Handa <handa@m17n.org>
17899
17900 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17901
17902 * Makefile.in (lisp): Include charprop.el.
17903
179042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17905
17906 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17907 Not sure if it's unnecessary.
17908
179092008-02-01 Steven Tamm <steventamm@mac.com>
17910
17911 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17912 some possibly unnecessary fontset checking code that crashed
17913 when creating a new frame.
17914
179152008-02-01 Kenichi Handa <handa@m17n.org>
17916
17917 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17918 lookup_face.
17919
17920 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17921
17922 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17923
179242008-02-01 Kenichi Handa <handa@m17n.org>
17925
17926 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17927 (coding_charset_list): New function.
17928
17929 * coding.h (coding_charset_list): Extern it.
17930
179312008-02-01 Kenichi Handa <handa@m17n.org>
17932
17933 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17934 concatenation of family and registry.
17935
179362008-02-01 Kenichi Handa <handa@m17n.org>
17937
17938 * character.h (BYTE8_STRING): Fix typo.
17939
17940 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17941 string to multibyte (sync to HEAD).
17942
17943 * casefiddle.c (casify_region): Handle changes in byte-length
17944 using replace_range_2 (sync to HEAD).
17945
179462008-02-01 Andreas Schwab <schwab@suse.de>
17947
17948 * chartab.c (map_char_table): GCPRO table and arg.
17949
179502008-02-01 Kenichi Handa <handa@m17n.org>
17951
17952 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17953 already at limit.
17954
179552008-02-01 Kenichi Handa <handa@m17n.org>
17956
17957 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17958 instead of fast_c_string_match_ignore_case.
17959 (find_font_encoding): Change argument to Lisp_Object. Use
17960 fast_string_match_ignore_case instead of
17961 fast_c_string_match_ignore_case. Change caller.
17962
179632008-02-01 Kenichi Handa <handa@m17n.org>
17964
17965 * xdisp.c (get_next_display_element): In unibyte case, decide to
17966 display in octal form by checking a character by
17967 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17968
17969 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17970
17971 * character.c (unibyte_has_multibyte_table): New variable.
17972
17973 * character.h (unibyte_has_multibyte_table): Extern it.
17974 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * coding.c (encode_coding_iso_2022): Fix handling of charset
17979 annotation.
17980
179812008-02-01 Kenichi Handa <handa@m17n.org>
17982
17983 * coding.c (setup_coding_system): If coding_system is nil, use
17984 Qundecided.
17985 (Fterminal_coding_system): Return nil if terminal coding system is
17986 `undecided'.
17987 (syms_of_coding): Define coding-system `undecided' here. Setup
17988 terminal_coding as `undecided'.
17989
179902008-02-01 Kenichi Handa <handa@m17n.org>
17991
17992 * xdisp.c (message_dolog, set_message_1): Call
17993 unibyte_char_to_multibyte with arg type int.
17994
17995 * lread.c (read1): Fix reading of a char-table.
17996
17997 * print.c (print_object): Include sub char-table in circularities
17998 detection.
17999
180002008-02-01 Kenichi Handa <handa@m17n.org>
18001
18002 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
18003 Append the found sequences in car of ARGS instead of prepending.
18004
180052008-02-01 Kenichi Handa <handa@m17n.org>
18006
18007 * fileio.c (report_file_error): Make a unibyte string from
18008 strerror (errorno).
18009 (Fsubstitute_in_file_name): Fix the arg to
18010 unibyte_char_to_multibyte. It is evaluated twice.
18011
180122008-02-01 Kenichi Handa <handa@m17n.org>
18013
18014 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
18015
180162008-02-01 Kenichi Handa <handa@m17n.org>
18017
18018 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
18019 BOM is not found.
18020 (detect_coding, detect_coding_system): Optimization for ISO-2022
18021 when no 8-bit data is found.
18022
180232008-02-01 Jason Rumney <jasonr@gnu.org>
18024
18025 * w32fns.c (x_to_w32_font): Update to use new coding struct.
18026
180272008-02-01 Kenichi Handa <handa@m17n.org>
18028
18029 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
18030 CHARS.
18031
180322008-02-01 Steven Tamm <steventamm@mac.com>
18033
18034 * macterm.c (mac_encode_char): Add charset argument and update
18035 to use encoding_type.
18036 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
18037 switch to pure fontset.
18038 (decode_mac_font_name): Temporarily remove decoding.
18039 (x_font_name_to_mac_font_name): Temporarily remove encoding.
18040 (x_load_font): Temporarily remove encoding.
18041
180422008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * xfaces.c (Fface_font): If frame is not on a window system,
18045 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
18046 refer to face->font.
18047 (split_font_name_into_vector, build_font_name_from_vector)
18048 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
18049 when HAVE_WINDOW_SYSTEM is defined.
18050
180512008-02-01 Kenichi Handa <handa@m17n.org>
18052
18053 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
18054 (x_produce_glyphs): Fix setting of members of cmp in case
18055 cmp->glyph_len is zero.
18056
18057 * fontset.c (Fset_fontset_font): Fix docstring.
18058 (Ffontset_info): Make it backward compatible. New arg ALL.
18059
180602008-02-01 Kim F. Storm <storm@cua.dk>
18061
18062 * process.c (read_process_output): Grow decoding_buf when needed;
18063 this could cause a crash in allocate_string and compact_small_strings.
18064
180652008-02-01 Kenichi Handa <handa@m17n.org>
18066
18067 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
18068
180692008-02-01 Kenichi Handa <handa@m17n.org>
18070
18071 * coding.c (setup_coding_system): Set coding->common_flags
18072 correctly for raw-text.
18073 (consume_chars): On encoding unibyte text by raw-text, don't check
18074 multibyte form.
18075 (encode_coding): On encoding by raw-text, never use translation tables.
18076
18077 * fileio.c (e_write): Short cut for the case of no encoding.
18078
180792008-02-01 Kenichi Handa <handa@m17n.org>
18080
18081 * coding.c (detect_coding, detect_coding_system): Delete unused
18082 variables.
18083
180842008-02-01 Kenichi Handa <handa@m17n.org>
18085
18086 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
18087 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
18088
180892008-02-01 Kenichi Handa <handa@m17n.org>
18090
18091 * coding.c (Ffind_coding_systems_region_internal): Include
18092 raw-text and no-conversion in the result.
18093
180942008-02-01 Kenichi Handa <handa@m17n.org>
18095
18096 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
18097 (load_font_get_repertory): Delete unnecessary check of ENCODING of
18098 FONT_DEF.
18099 (font_def_arg, add_arg, from_arg, to_arg): New args.
18100 (set_fontset_font): Change argument.
18101 (Fset_fontset_font): Fix for the case that TARGET is a script
18102 name and charset name.
18103 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
18104
181052008-02-01 Kenichi Handa <handa@m17n.org>
18106
18107 * fontset.c (fontset_font): Rename from fontset_face. Change return
18108 value.
18109 (face_suitable_for_char_p, face_for_char): Adjust for the change
18110 of fontset_font.
18111 (make_fontset_for_ascii_face): Fix setting of the fontset element
18112 for ASCII.
18113 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
18114 to get a font name.
18115 (Ffontset_info): Adjust for the change of fontset_font.
18116
18117 * coding.c (emacs_mule_char): Check invalid code more rigidly.
18118
18119 * character.h (LEADING_CODE_LATIN_1_MIN)
18120 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
18121
181222008-02-01 Kenichi Handa <handa@m17n.org>
18123
18124 * editfns.c (check_translation): New function.
18125 (Ftranslate_region_internal): Handle M:N mapping.
18126
181272008-02-01 Kenichi Handa <handa@m17n.org>
18128
18129 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
18130
181312008-02-01 Kenichi Handa <handa@m17n.org>
18132
18133 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
18134 goto invalid_code.
18135 (decode_coding_iso_2022): Fix handling of invalid designation.
18136
18137 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
18138 after calling code_conversion_save.
18139
181402008-02-01 Kenichi Handa <handa@m17n.org>
18141
18142 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
18143
18144 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
18145
18146 * fontset.c: Include "intervals.h".
18147 (fontset_face): Fix comparing of Lisp_Objects.
18148 (free_face_fontset, new_fontset_from_font_name): Fix
18149 Lisp_Object/int mixup.
18150
18151 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
18152
18153 * coding.c: Add many prototypes for static functions.
18154 (get_translation_table): Allow max_lookup to be NULL.
18155 (decode_coding, Ffind_coding_systems_region_internal)
18156 (Funencodable_char_position, Fcheck_coding_systems_region): Call
18157 get_translation_table with max_lookup NULL.
18158
181592008-02-01 Kenichi Handa <handa@m17n.org>
18160
18161 * coding.c (get_translation_table): Declare it as Lisp_Object.
18162 (LOOKUP_TRANSLATION_TABLE): New macro.
18163 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
18164 instead of CHAR_TABLE_REF.
18165
181662008-02-01 Kenichi Handa <handa@m17n.org>
18167
18168 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
18169 annotation data format.
18170 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
18171 Change arguments FROM and TO to single argument NCHARS. Change caller.
18172 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
18173 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18174 (decode_coding_ccl, decode_coding_charset): Pay attention to
18175 coding->charbuf_used.
18176 (get_translation): New function.
18177 (produce_chars): New arguments translation_table and last_block.
18178 Translate characters here. Return number of carryover chars.
18179 Change caller.
18180 (produce_composition): New argument pos. Change caller.
18181 Adjust for the change of annotation data format.
18182 (produce_charset, produce_annotation): Likewise.
18183 (decode_coding, encode_coding): Don't call translate_chars.
18184 (consume_chars): New arg translation_table. Change caller.
18185 (translate_chars): Delete.
18186 (syms_of_coding): Make translation-table's number of extra slots 2.
18187
181882008-02-01 Kenichi Handa <handa@m17n.org>
18189
18190 * search.c (simple_search): Fix setting this_pos_byte in backward
18191 search.
18192
18193 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
18194 byte sequence.
18195 (detect_coding_ccl): Fix setting of the variable valids.
18196
181972008-02-01 Kenichi Handa <handa@m17n.org>
18198
18199 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
18200
18201 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
18202
18203 * editfns.c (Ftranslate_region_internal): Rename from
18204 Ftranslate_region. Accept a char-table in TABLE.
18205 (syms_of_editfns): Defsubr Stranslate_region_internal.
18206
18207 * xfaces.c (set_lface_from_font_name): If a font is specified for
18208 a frame, generate a fontset from the font.
18209 (build_scalable_font_name): If the scalable font is requested for
18210 a specific size, don't change that size.
18211 (try_font_list): Try a scalable font also in the case that a
18212 pattern string is specified.
18213
182142008-02-01 Kenichi Handa <handa@m17n.org>
18215
18216 * xfaces.c (Fface_font): New optional arg CHARACTER.
18217
182182008-02-01 Kenichi Handa <handa@m17n.org>
18219
18220 * charset.h (CHARSET_OFFSET): New macro.
18221
182222008-02-01 Kenichi Handa <handa@m17n.org>
18223
18224 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
18225
18226 * fontset.c (fontset_face): Handle the case that repertory is a
18227 char-table.
18228 (find_font_encoding): Return nil for unknown encoding.
18229 (Fset_fontset_font): Ignore a font of unknown encoding.
18230
182312008-02-01 Kenichi Handa <handa@m17n.org>
18232
18233 * keymap.c (describe_vector): Handle default value of a char table.
18234
18235 * fontset.c (fontset_face): Handle fallback fonts correctly.
18236 (Ffontset_info): Return infomation about fallback fonts.
18237
182382008-02-01 Kenichi Handa <handa@m17n.org>
18239
18240 * fontset.c (FONTSET_DEFAULT): New macro.
18241 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
18242 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
18243 the case that it is nil.
18244 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
18245 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
18246
18247 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
18248 subset or superset.
18249
182502008-02-01 Kenichi Handa <handa@m17n.org>
18251
18252 * emacs.c (main): Call init_charset after syms_of_XXX.
18253
18254 * charset.c (Vcharset_map_directory): Delete.
18255 (Vcharset_map_path): New variable.
18256 (load_charset_map_from_file): Use Vcharset_map_path instead.
18257 (init_charset): Initialize Vcharset_map_path.
18258 (syms_of_charset): Delete declaration of "charset-map-directory",
18259 add declaration of "charset-map-path".
18260
182612008-02-01 Kenichi Handa <handa@m17n.org>
18262
18263 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
18264 ASCII only string.
18265
18266 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18267
18268 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18269 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18270
182712008-02-01 Kenichi Handa <handa@m17n.org>
18272
18273 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18274
18275 * coding.c (QCmnemonic, QCdefalut_char)
18276 (QCdecode_translation_table, QCencode_translation_table)
18277 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18278 (get_translation_table): Return a list of translation tables if
18279 necessary.
18280 (decode_coding): Call get_translation_table with ENCODEP 0.
18281 (char_encodable_p): If translation_table is non-nil, always call
18282 translate_char.
18283 (Fdefine_coding_system_internal): Accept list of translation
18284 tables as :encode-translation-table and :decode-translation-table.
18285 (Fcoding_system_put): New function.
18286 (syms_of_coding): Declare new symbols. Defsubr
18287 Scoding_system_put.
18288 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18289 typically JISX0212.
18290
18291 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18292 when the charset is superset type.
18293
18294 * character.c (translate_char): Accept list of translation tables.
18295
182962008-02-01 Kenichi Handa <handa@m17n.org>
18297
18298 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18299 (CODING_ATTR_TRANS_TBL): New macro.
18300
18301 * coding.c (get_translation_table): New function.
18302 (translate_chars): Fix the bug of skipping annotation data.
18303 (decode_coding, encode_coding): Utilize get_translation_table.
18304 (char_encodable_p, Funencodable_char_position): Translate char if
18305 necessary.
18306 (Ffind_coding_systems_region_internal)
18307 (Fcheck_coding_systems_region): Setup translation table for encode
18308 in a coding system attribute vector in advance.
18309 (Fdefine_coding_system_internal): Allow a symbol as translation
18310 table. For shift-jis type coding system, allow 4th charset.
18311
183122008-02-01 Kenichi Handa <handa@m17n.org>
18313
18314 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18315
18316 * xdisp.c (get_next_display_element): Pass -1 as POS to
18317 FACE_FOR_CHAR if displaying a C-string.
18318
183192008-02-01 Kenichi Handa <handa@m17n.org>
18320
18321 * composite.c (get_composition_id): Handle xoff and yoff in a
18322 composition rule.
18323
18324 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18325 (struct composition): New member lbearing and rbearing.
18326
18327 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18328 (x_get_glyph_overhangs): Handle a composition glyph.
18329 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18330
18331 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18332 composition glyph.
18333
183342008-02-01 Kenichi Handa <handa@m17n.org>
18335
18336 * print.c: Include charset.h.
18337 (Vprint_charset_text_property): New variable.
18338 (Qdefault): Extern it.
18339 (PRINT_STRING_NON_CHARSET_FOUND)
18340 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18341 (print_check_string_result): New variable.
18342 (print_check_string_charset_prop): New function.
18343 (print_prune_charset_plist): New variable.
18344 (print_prune_string_charset): New function.
18345 (print_object): Call print_prune_string_charset if
18346 Vprint_charset_text_property is not t.
18347 (print_interval): Print nothing if interval->plist is nil.
18348 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18349 variable. Init and staticpro print_prune_charset_plist.
18350
183512008-02-01 Kenichi Handa <handa@m17n.org>
18352
18353 * fontset.c (new_fontset_from_font_name): Use the specified font
18354 for all characters in the new fontset.
18355
18356 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18357 OBJECT args.
18358
18359 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18360 OBJECT args for composition too.
18361
18362 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18363 OBJECT args.
18364
183652008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18368
18369 * fontset.c (reorder_font_vector): Adjust for the change of
18370 FONT_DEF format.
18371 (fontset_face): New arg id. Change caller.
18372 (face_for_char): New args pos and object.
18373 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18374 (fs_query_fontset): Check NAME by Fassoc too.
18375 (Fset_fontset_font): Allow non-XLFD font name.
18376 (Ffontset_info): Adjust for the change of FONT_DEF format.
18377
18378 * fontset.h (face_for_char): Adjust prototype.
18379
18380 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18381 (append_space, extend_face_to_end_of_line)
18382 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18383 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18384
18385 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18386 POS and OBJECT args.
18387
18388 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18389 POS and OBJECT args.
18390
183912008-02-01 Jason Rumney <jasonr@gnu.org>
18392
18393 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18394 of GlobalAlloc'ed memory.
18395
183962008-02-01 Kenichi Handa <handa@m17n.org>
18397
18398 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18399
18400 * charset.h (charset_table_used): Delete extern.
18401
18402 * charset.c (charset_table_used): Make it static.
18403 (map_charset_chars): Fix args to c_function with.
18404
18405 * chartab.c (map_sub_char_table_for_charset): Fix args to
18406 c_function with.
18407
18408 * coding.h (enum coding_result_code): Delete
18409 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18410
18411 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18412 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18413 (Vlast_code_conversion_error): New variables.
18414 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18415 (ONE_MORE_BYTE): Record error if any instead of signaling an
18416 error. If non-ASCII multibyte char is found, return the negative
18417 value of the code. All callers changed to check it.
18418 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18419 (record_conversion_result): New function. Change all codes setting
18420 coding->result to call this function.
18421 (detect_coding_utf_8, decode_coding_utf_8)
18422 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18423 Don't use the local variable incomplete.
18424 (emacs_mule_char): Change the second arg to `const'.
18425 (decode_coding): Fix of flushing out unprocessed data.
18426 (make_conversion_work_buffer): Fix making of a work buffer.
18427 (decode_coding_object): Return coding->dst_object.
18428
18429 * fontset.c (set_fontset_font): Fix args.
18430
18431 * lisp.h (CHARACTERBITS): Define as 22.
18432
18433 * process.c (send_process): Be sure to set coding->src_multibyte.
18434
18435 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18436
184372008-02-01 Kenichi Handa <handa@m17n.org>
18438
18439 * xdisp.c (handle_auto_composed_prop): Give limit to
18440 Fnext_single_char_property_change.
18441
184422008-02-01 Kenichi Handa <handa@m17n.org>
18443
18444 * composite.c (syms_of_composite): Don't make the composition hash
18445 table weak.
18446
18447 * fontset.c (Fset_fontset_font): Fix docstring.
18448
18449 * lisp.h (detect_coding_system): Adjust prototype.
18450
18451 * fileio.c (kill_workbuf_unwind): Delete this function.
18452 (Finsert_file_contents): Adjust the call of detect_coding_system.
18453 Get conversion_buffer by code_conversion_save. Use the macro
18454 CODING_MAY_REQUIRE_DECODING. After decoding, update
18455 coding_system.
18456
18457 * coding.h (make_conversion_work_buffer): Delete extern.
18458 (code_conversion_save): Extern it.
18459
18460 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18461 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18462 (decode_coding_utf_8): Don't do eol converion.
18463 (detect_coding_utf_16): Check coding->src_chars, not
18464 coding->src_bytes. Add heuristics for those that have no signature.
18465 (decode_coding_emacs_mule, decode_coding_iso_2022)
18466 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18467 Don't do eol converion.
18468 (adjust_coding_eol_type): Return a new coding system.
18469 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18470 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18471 each change.
18472 (decode_coding): Pay attention to undo_list. Do eol conversion for
18473 all types of coding-systems (if necessary).
18474 (Vcode_conversion_work_buf_list): Delete it.
18475 (Vcode_conversion_reused_workbuf): Rename from
18476 Vcode_conversion_reused_work_buf.
18477 (Vcode_conversion_workbuf_name): New variable.
18478 (reused_workbuf_in_use): New variable.
18479 (make_conversion_work_buffer): Delete the arg DEPTH.
18480 (code_conversion_restore): Change argument to cons.
18481 (code_conversion_save): Delete the argument BUFFER. Change callers.
18482 (detect_coding_system): New argument src_chars. Change callers.
18483 Fix for utf-16 detection.
18484 (init_coding_once): Don't use ISO_carriage_return.
18485 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18486 reused_workbuf_in_use.
18487
184882008-02-01 Kenichi Handa <handa@m17n.org>
18489
18490 * keymap.c (store_in_keymap): Pay attention to the case that idx
18491 is a cons specifying a character range.
18492
184932008-02-01 Kenichi Handa <handa@m17n.org>
18494
18495 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18496 HANDLED_RECOMPUTE_PROPS.
18497
18498 * coding.c (Fdefine_coding_system_internal): Fix checking of
18499 ascii compatibility.
18500
185012008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 * charset.c (find_charsets_in_text): Delete unused locale variable.
18504 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18505
18506 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18507 Resync charset_list to Vemacs_mule_charset_list.
18508
18509 * keymap.c (store_in_keymap): Pay attention to the case that idx
18510 is a cons specifying a character range.
18511
185122008-02-01 Kenichi Handa <handa@m17n.org>
18513
18514 * composite.c (update_compositions): Bind inhibit-read-only, etc
18515 to t before calling remove-list-of-text-properties.
18516
18517 * print.c (print_object): Always print ASCII chars as is.
18518
185192008-02-01 Kenichi Handa <handa@m17n.org>
18520
18521 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18522
18523 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18524 is a char table.
18525
185262008-02-01 Kenichi Handa <handa@m17n.org>
18527
18528 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18529
185302008-02-01 Kenichi Handa <handa@m17n.org>
18531
18532 * xfaces.c (set_lface_from_font_name): Fix for the case that
18533 FONTNAME is not fontset name.
18534
185352008-02-01 Kenichi Handa <handa@m17n.org>
18536
18537 * fns.c (base64_encode_1): Fix previous change.
18538
185392008-02-01 Kenichi Handa <handa@m17n.org>
18540
18541 * fontset.c (set_fontset_font): New function.
18542 (Fset_fontset_font): If a font is specified for a charset, use
18543 map_charset_chars to store the font spec in a fontset.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * fontset.c (fontset_face): Create a fallback fontset on demand.
18548 (make_fontset): Don't create a fallback fontset here.
18549 (free_face_fontset): Free a fallback fontset (if any) too.
18550 (n_auto_fontsets): Delete this variable.
18551 (auto_fontset_alist): New variable.
18552 (new_fontset_from_font_name): Check auto_fontset_alist.
18553 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18554 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18555 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18556 Defsubr Sfontset_list_all.
18557
185582008-02-01 Kenichi Handa <handa@m17n.org>
18559
18560 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18561
185622008-02-01 Kenichi Handa <handa@m17n.org>
18563
18564 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18565
185662008-02-01 Kenichi Handa <handa@m17n.org>
18567
18568 * editfns.c (Fgoto_char): Fix docstring.
18569
185702008-02-01 Kenichi Handa <handa@m17n.org>
18571
18572 * insdel.c (insert_from_gap): Adjust intervals correctly.
18573
185742008-02-01 Jason Rumney <jasonr@gnu.org>
18575
18576 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18577 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18578 (w32_initialize): Try to load it.
18579 (x_get_font_repertory): Use it if available.
18580 (w32_encode_char): Add shortcut for unicode output.
18581
18582 * w32fns.c (w32_load_system_font): Default charset to -1.
18583 (x_to_w32_charset): Match all fonts for unicode.
18584 (w32_to_x_charset): New parameter matching. Don't return partial
18585 or wildcard charsets.
18586 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18587 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18588 (w32_to_x_font): Match charset to real charset.
18589 (enum_font_cb2): Always list unicode versions.
18590
18591 * makefile.w32-in (temacs): Increase EMHEAP.
18592
185932008-02-01 Jason Rumney <jasonr@gnu.org>
18594
18595 * w32term.c (w32_encode_char): New charset parameter.
18596 font_info.encoding becomes encoding_type.
18597 (x_get_font_repertory): New function. Warning: stub only!
18598 (x_new_font): Return quickly if font already set.
18599 (x_new_fontset): fontsetname parameter is Lisp_Object.
18600 Use new fs_query_fontset. Try new_fontset_from_font_name.
18601 Use fontset_name for return value.
18602
18603 * w32term.h: Declare x_get_font_repertory.
18604
18605 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18606 place of find_charset_in_text. Use encode_coding_object in place
18607 of encode_coding.
18608 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18609 decode_coding.
18610
18611 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18612 of x_new_fontset.
18613 (w32_load_system_font): Initialize charset as unicode.
18614 font_info.encoding becomes encoding_type.
18615 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18616 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18617 (syms_of_w32fns): Set get_font_repertory_func.
18618
18619 * w32console.c: Include character.h. Use terminal_encode_buffer
18620 from term.c.
18621 (write_glyphs): Use new version of encode_terminal_code. Use
18622 encode_coding_object in place of encode_coding.
18623
18624 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18625 encoding becomes encoding_type.
18626
18627 * term.c (terminal_encode_buffer): Make externally visible.
18628
18629 * makefile.w32-in: Add character.h dependancies.
18630 (character.o, chartab.o): New targets.
18631
186322008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18635 CODING_ID_EOL_TYPE.
18636
186372008-02-01 Andreas Schwab <schwab@suse.de>
18638
18639 * coding.c (produce_chars): Revert last change.
18640
186412008-02-01 Kenichi Handa <handa@m17n.org>
18642
18643 * charset.h (charset_unicode): Extern it.
18644
18645 * charset.c (string_xstring_p): Check by (C >= 0x100).
18646 (find_charsets_in_text): Change format of the arc CHARSETS. New
18647 arg MULTIBYTE.
18648 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18649 change of find_charsets_in_text.
18650 (Fsplit_char): Fix doc. Never return unknown.
18651
18652 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18653
18654 * coding.c (Fdefine_coding_system_alias): Update
18655 Vcoding_system_list.
18656
18657 * fontset.c (load_font_get_repertory): Pay attention to the case
18658 that ENCODING of a font is specified by a char-table.
18659
18660 * xterm.c (x_get_font_repertory): Handle the case that the
18661 encoding of font is other than Unicode.
18662
186632008-02-01 Kenichi Handa <handa@m17n.org>
18664
18665 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18666 if a character is encodable by the terminal coding system. If
18667 not, produces proper number of `?'s. Update
18668 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18669 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18670
186712008-02-01 Kenichi Handa <handa@m17n.org>
18672
18673 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18674 variables.
18675 (encode_terminal_code): Change argument. Encode multiple
18676 characters at once. Store the result of encoding in
18677 terminal_encode_buffer.
18678 (write_glyphs, insert_glyphs): Adjust for the change of
18679 encode_terminal_code.
18680 (term_init): Initialize terminal_encode_buffer and
18681 terminal_encode_buf_size.
18682
18683 * coding.c (consume_chars): If coding->src_object is nil, don't
18684 check annotation.
18685
186862008-02-01 Kenichi Handa <handa@m17n.org>
18687
18688 * character.c (char_string): Use ASCII_CHAR_P instead of
18689 SINGLE_BYTE_CHAR_P.
18690
186912008-02-01 Kenichi Handa <handa@m17n.org>
18692
18693 * xdisp.c (handle_auto_composed_prop): Check if the last
18694 characters of auto-composed region is newly composed with the
18695 following characters.
18696 (handle_composition_prop): Fix checking of point being inside
18697 composition.
18698
186992008-02-01 Kenichi Handa <handa@m17n.org>
18700
18701 * fns.c (concat): Don't change multibyteness of the result by
18702 concatenating an 8-bit character.
18703
18704 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18705 multibyteness of the result when newelt is an 8-bit character.
18706
187072008-02-01 Dave Love <fx@gnu.org>
18708
18709 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18710 EMACS_INT.
18711
18712 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18713
18714 * xfaces.c (face_numeric_value): Declare dim size_t.
18715 (Finternal_lisp_face_equal_p): Remove unused f.
18716
18717 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18718 (MATRIX_ROW): Remove unused vars.
18719 (draw_glyphs, x_insert_glyphs, fast_find_position)
18720 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18721 byte/char counts.
18722
18723 * regex.c (regex_compile): Remove unused var.
18724
18725 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18726
18727 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18728 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18729
18730 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18731
18732 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18733
18734 * fileio.c (Fwrite_region): Remove unused var.
18735
18736 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18737 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18738
18739 * composite.c (Fremove_list_of_text_properties): Declare.
18740
18741 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18742 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18743 (coding_inherit_eol_type): Remove unused attrs.
18744 (detect_coding): Cast arg of detect_eol.
18745
18746 * charset.c (syms_of_charset): Remove unused var p.
18747 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18748 byte/char counts.
18749
18750 * casetab.c (set_case_table): Remove unused var.
18751
18752 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18753 unused vars.
18754
187552008-02-01 Dave Love <fx@gnu.org>
18756
18757 * xterm.c (x_bitmap_mask): Declare.
18758
187592008-02-01 Dave Love <fx@gnu.org>
18760
18761 * xterm.c (x_term_init): Fix type error.
18762
18763 * lisp.h: Add Funibyte_char_to_multibyte.
18764
18765 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18766 (Fset_coding_system_priority): Doc fix.
18767
18768 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18769
18770 * indent.c (check_composition): Make start and end EMACS_INT.
18771
18772 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18773
18774 * xdisp.c (handle_composition_prop, check_point_in_composition):
18775 Make buffer positions EMACS_INT.
18776
18777 * composite.c (find_composition, run_composition_function)
18778 (update_compositions, Ffind_composition_internal): Make buffer
18779 positions EMACS_INT.
18780
18781 * composite.h (find_composition, update_compositions): Make
18782 position args EMACS_INT.
18783
18784 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18785
18786 * intervals.c (get_property_and_range):
18787 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18788
18789 * unexalpha.c: Don't include varargs.h.
18790
187912008-02-01 Dave Love <fx@gnu.org>
18792
18793 * coding.h (ENCODE_UTF_8): New.
18794
18795 * Makefile.in (gtkutil.o): Depend on coding.h.
18796
18797 * coding.c (Fset_coding_system_priority): Doc fix.
18798
187992008-02-01 Kenichi Handa <handa@m17n.org>
18800
18801 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18802 the case of auto saving.
18803
188042008-02-01 Andreas Schwab <schwab@suse.de>
18805
18806 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18807 `range' from GC.
18808
188092008-02-01 Kenichi Handa <handa@m17n.org>
18810
18811 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18812
188132008-02-01 Kenichi Handa <handa@m17n.org>
18814
18815 * fileio.c (choose_write_coding_system): Return a decided coding system.
18816 (Fwrite_region): Set Vlast_coding_system_used to the return value
18817 of choose_write_coding_system.
18818
188192008-02-01 Kenichi Handa <handa@m17n.org>
18820
18821 * charset.c (Fset_charset_priority): Pay attention to duplicated
18822 arguments.
18823
18824 * coding.c (QCcategory): New variable.
18825 (syms_of_coding): Defsym it. Set all elements of
18826 Vcoding_category_table and their symbol values.
18827 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18828 coding-category-XXX, and coding-category-list.
18829 (Fdefine_coding_system_internal): Add category in the plist.
18830
188312008-02-01 Kenichi Handa <handa@m17n.org>
18832
18833 * callproc.c (Fcall_process): Handle carryover correctly.
18834
18835 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18836 (raw_text_coding_system): Check NILP (coding_system).
18837 (coding_inherit_eol_type): Check NILP (coding_system) and
18838 NILP (parent).
18839 (consume_chars): Fix for the case of raw-text.
18840
18841 * process.c (read_process_output): Handle carryover correctly.
18842
188432008-02-01 Dave Love <fx@gnu.org>
18844
18845 * regex.c (re_search_2): Fix last change.
18846
188472008-02-01 Kenichi Handa <handa@m17n.org>
18848
18849 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18850 target_multibyte. Even in a unibyte case, return a converted
18851 multibyte char.
18852 (GET_CHAR_AFTER): New macro.
18853 (PATFETCH): Translate via multibyte char.
18854 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18855 (SETUP_MULTIBYTE_RANGE): New macro.
18856 (regex_compile): Setup compiled code so that its multibyteness
18857 matches that of a target. Fix the handling of "[X-YZ]" using
18858 SETUP_MULTIBYTE_RANGE.
18859 (analyse_first) <charset>: For filling fastmap for all multibyte
18860 characters, don't check by BASE_LEADING_CODE_P.
18861 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18862 the same as RE_MULTIBYTE_P (bufp) now.
18863 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18864 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18865 (TRANSLATE_VIA_MULTIBYTE): New macro.
18866 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18867 It is the same as RE_MULTIBYTE_P (bufp) now.
18868 <exactn>: Translate via multibyte.
18869 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18870 translate it.
18871 <charset, charset_not>: Fetch a character by
18872 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18873 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18874 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18875 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18876 by GET_CHAR_AFTER.
18877 (bcmp_translate): Likewise.
18878
18879 * search.c (compile_pattern): Check the member target_multibyte,
18880 not the member multibyte of buf.
18881
18882 * lread.c (read1): While reading a string, set force_singlebyte
18883 and force_multibyte correctly.
18884
18885 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18886 up of unibyte_to_multibyte_table.
18887
188882008-02-01 Kenichi Handa <handa@m17n.org>
18889
18890 * coding.c (setup_coding_system): If coding has
18891 post-read-conversion or pre-write-conversion, set
18892 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18893 respectively.
18894 (decode_coding_gap): Run post-read-conversion if any.
18895
18896 * fileio.c (Finsert_file_contents): Even if we read into a
18897 unibyte buffer, check if we must decode the result or not.
18898
188992008-02-01 Kenichi Handa <handa@m17n.org>
18900
18901 * coding.c (make_conversion_work_buffer): Change the work buffer
18902 name to the same one as that of Emacs 21.
18903
189042008-02-01 Kenichi Handa <handa@m17n.org>
18905
18906 * coding.h (make_conversion_work_buffer): Adjust prototype.
18907 (code_conversion_restore): Don't extern it.
18908
18909 * coding.c (detected_mask): Delete unused variable.
18910 (decode_coding_iso_2022): Pay attention to the byte sequence of
18911 CTEXT extended segment, and retain those bytes as is.
18912 (decode_coding_ccl): Delete unused variable `valids'.
18913 (setup_coding_system): Delete unused variable `category'.
18914 (consume_chars): Delete unused variable `category'. Make it work
18915 for non-multibyte case.
18916 (make_conversion_work_buffer): Change argument.
18917 (saved_coding): Delete unused variable.
18918 (code_conversion_restore): Don't check saved_coding->destination.
18919 (code_conversion_save): New function.
18920 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18921 instead of record_unwind_protect.
18922 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18923 (detect_coding_system): Delete unused variable `mask'.
18924 (Fdefine_coding_system_internal): Delete unused variable id.
18925
18926 * fileio.c (kill_workbuf_unwind): New function.
18927 (Finsert_file_contents): On replacing, call
18928 make_conversion_work_buffer with correct args, and call
18929 record_unwind_protect with the first arg kill_workbuf_unwind.
18930
18931 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18932
189332008-02-01 Kenichi Handa <handa@m17n.org>
18934
18935 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18936 (fontset_add): Fix for the case that TO is less than TO1.
18937 (Ffontset_info): Don't use fallback fontset on checking the
18938 default fontset.
18939 (dump_fontset): New function for debugging.
18940
18941 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18942 coding_type is Qcharset.
18943
189442008-02-01 Kenichi Handa <handa@m17n.org>
18945
18946 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18947 (map_char_table): Don't inherit the value from the parent on
18948 initializing VAL. Adjust for the above change.
18949
189502008-02-01 Kenichi Handa <handa@m17n.org>
18951
18952 * coding.c (Qsignature, Qendian): Delete these variables.
18953 (syms_of_coding): Don't initialize them.
18954 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18955 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18956 detect_info->found.
18957 (decode_coding_utf_16): Don't detect BOM here.
18958 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18959 is NOT utf_16_without_bom.
18960 (setup_coding_system): For a coding system of type utf-16, check
18961 if the attribute :endian is Qbig or not (not nil or not), and set
18962 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18963 (detect_coding): If coding type is utf-16 and BOM detection is
18964 required, detect it.
18965 (Fdefine_coding_system_internal): For a coding system of type
18966 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18967
189682008-02-01 Kenichi Handa <handa@m17n.org>
18969
18970 * coding.c (coding_set_source): Fix for the case that the current
18971 buffer is different from coding->src_object.
18972 (decode_coding_object): Don't use the conversion work buffer if
18973 DST_OBJECT is a buffer.
18974
189752008-02-01 Dave Love <fx@gnu.org>
18976
18977 * lread.c (read_emacs_mule_char) [len==2]: Index
18978 emacs_mule_charset correctly.
18979
189802008-02-01 Dave Love <fx@gnu.org>
18981
18982 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18983 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18984 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18985 treated specially.)
18986 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18987 (detected_mask): Remove Big5 bits.
18988
189892008-02-01 Kenichi Handa <handa@m17n.org>
18990
18991 The following changes are to make the font rescaling facility
18992 compatible with Emacs 21.
18993
18994 * xfaces.c (Vface_font_rescale_alist): Rename from
18995 Vface_resizing_fonts.
18996 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18997 (font_rescale_ratio): Rename from font_resizing_ratio.
18998 (split_font_name): Set font->rescale_ratio.
18999 (better_font_p): Pay attention to font->rescale_ratio.
19000 (build_scalable_font_name): Likewise. Change RESX, and RESY
19001 fields.
19002 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
19003
190042008-02-01 Kenichi Handa <handa@m17n.org>
19005
19006 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
19007 (Qutf_16_le): Remove these variables.
19008 (syms_of_coding): Don't DEFSYM them.
19009 (decode_coding_utf_16): Fix handling of BOM.
19010 (encode_coding_utf_16): Fix handling of BOM.
19011
190122008-02-01 Kenichi Handa <handa@m17n.org>
19013
19014 * fileio.c (Finsert_file_contents): On replacing, before decoding
19015 the file into the work buffer, set point of the work buffer to the end.
19016
190172008-02-01 Dave Love <fx@gnu.org>
19018
19019 * coding.c (Fcheck_coding_systems_region): Fix type errors.
19020
190212008-02-01 Dave Love <fx@gnu.org>
19022
19023 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19024 and fix C types.
19025
190262008-02-01 Kenichi Handa <handa@m17n.org>
19027
19028 * xdisp.c (SKIP_GLYPHS): New macro.
19029 (set_cursor_from_row): Pay attention to string display properties.
19030
19031 * category.c (copy_category_entry): Fix for the case that RANGE
19032 is an integer.
19033
19034 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
19035
19036 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
19037
190382008-02-01 Kenichi Handa <handa@m17n.org>
19039
19040 * charset.c (Fcharset_id_internal): New function.
19041 (syms_of_charset): Defsubr it.
19042
19043 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
19044 with the last arg charset_list acquired from coding.
19045 (Fdefine_coding_system_internal): For ccl-based coding system, fix
19046 the attribute coding_attr_ccl_valids.
19047
19048 * coding.h (enum define_coding_ccl_arg_index): Set the first
19049 member coding_arg_ccl_decoder to coding_arg_max.
19050
19051 * ccl.h (ccl_driver): Adjust prototype.
19052
19053 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
19054 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 19055 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
19056 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
19057 last arg Qnil.
19058
190592008-02-01 Kenichi Handa <handa@m17n.org>
19060
19061 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
19062 call encode_char.
19063
19064 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
19065
190662008-02-01 Dave Love <fx@gnu.org>
19067
19068 * composite.c (syms_of_composite): Make composition_hash_table weak.
19069
190702008-02-01 Kenichi Handa <handa@m17n.org>
19071
19072 * dispextern.h (check_face_attributes, generate_ascii_font_name)
19073 (font_name_registry): Don't extern them.
19074 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
19075
19076 * fontset.h (Qfontset): Don't extern it.
19077 (new_fontset_from_font_name): Extern it.
19078
19079 * fontset.c: Give 8 extra slots to fontset objects.
19080 (Qfontset_info): New variable.
19081 (syms_of_fontset): Defsym it.
19082 (FONTSET_FALLBACK): New macro.
19083 (fontset_face): Try also the default fontset.
19084 (make_fontset): Realize a fallback fontset from the default fontset.
19085 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
19086 using split_font_name_into_vector and build_font_name_from_vector.
19087 (Fset_fontset_font): Access the elements of font_spec by enum
19088 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
19089 name by using split_font_name_into_vector.
19090 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
19091 generate a proper font name from the fontset name. Update
19092 Vfontset_alias_alist.
19093 (n_auto_fontsets): New variable.
19094 (new_fontset_from_font_name): New function.
19095 (Ffont_info): Store the information about fonts generated from the
19096 default fontset in the first extra slot of the returned char-table.
19097
19098 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
19099 (font_name_registry): Delete function.
19100 (split_font_name_into_vector): New function.
19101 (build_font_name_from_vector): New function.
19102 (font_list): The argument REGISTRY is now a list of registry names.
19103 (choose_face_font): If we are choosing an ASCII font, and ATTRS
19104 specifies an explicit font name, return the name as is. Make a
19105 list of registy names.
19106
19107 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
19108 of x_new_fontset.
19109 (Fx_create_frame): Don't call x_new_fontset here. Just use
19110 x_list_fonts to check the existence of fonts.
19111
19112 * xterm.h (x_new_fontset): Adjust prototype.
19113
19114 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
19115 string. Use new_fontset_from_font_name to create a fontset from a
19116 font name.
19117
191182008-02-01 Kenichi Handa <handa@m17n.org>
19119
19120 * syntax.c (Vfind_word_boundary_function_table): New name for
19121 Vnext_word_boundary_function_table.
19122 (find-word-boundary-function-table): New name for
19123 next-word-boundary-function-table.
19124
191252008-02-01 Dave Love <fx@gnu.org>
19126
19127 * Makefile.in: Fix some dependencies.
19128
19129 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
19130 set it to nil before returning.
19131
19132 * composite.c (update_compositions): Fix type error.
19133
19134 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
19135
191362008-02-01 Kenichi Handa <handa@m17n.org>
19137
19138 * xterm.c (x_new_font): Optimize for the case that the font is
19139 already set for the frame.
19140
191412008-02-01 Kenichi Handa <handa@m17n.org>
19142
19143 * chartab.c (char_table_ascii): Check if the char table contents
19144 is sub-char-table or not.
19145 (char_table_set, char_table_set_range): Fix argument to
19146 char_table_ascii.
19147
19148 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
19149 (detect_coding_utf_8, detect_coding_utf_16)
19150 (detect_coding_emacs_mule, detect_coding_iso_2022)
19151 (detect_coding_sjis, detect_coding_big5)
19152 (detect_coding_ccl, detect_coding_charset): Change argument MASK
19153 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
19154 sequence is valid in this coding system. Change callers.
19155 (MAX_ANNOTATION_LENGTH): New macro.
19156 (ADD_ANNOTATION_DATA): New macro.
19157 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
19158 ADD_ANNOTATION_DATA. Change the format of annotation data.
19159 (ADD_CHARSET_DATA): New macro.
19160 (emacs_mule_char): New argument ID. Change callers.
19161 (decode_coding_emacs_mule, decode_coding_iso_2022)
19162 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19163 Produce charset annotation data in coding->charbuf.
19164 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
19165 to charset annotation data in coding->charbuf.
19166 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
19167 coding->common_flags if the coding system is iso-2022 based and
19168 uses designation.
19169 (produce_composition): Adjust for the new annotation data format.
19170 (produce_charset): New function.
19171 (produce_annotation): Handle charset annotation.
19172 (handle_composition_annotation, handle_charset_annotation): New
19173 functions.
19174 (consume_chars): Handle charset annotation. Utilize the above two
19175 functions.
19176 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
19177 buffer, get the deleted text as a string and set
19178 coding->src_object to that string.
19179 (detect_coding, detect_coding_system): Use the new struct
19180 coding_detection_info.
19181
19182 * coding.h (struct coding_detection_info): New structure.
19183 (struct coding_system): Adjust prototype of the member `detector'.
19184 (CODING_ANNOTATE_CHARSET_MASK): New macro.
19185
191862008-02-01 Kenichi Handa <handa@m17n.org>
19187
19188 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
19189
191902008-02-01 Dave Love <fx@gnu.org>
19191
19192 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
19193 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
19194 to new local and nullify apropos_accumulate before returning.
19195 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
19196
191972008-02-01 Kenichi Handa <handa@m17n.org>
19198
19199 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
19200 correctly.
e3eea1fc 19201
aac0c6e3
MR
192022008-02-01 Dave Love <fx@gnu.org>
19203
19204 * fns.c (Flanginfo): Call synchronize_system_time_locale.
19205
192062008-02-01 Kenichi Handa <handa@m17n.org>
19207
19208 The following changes are to make character composition happen
19209 automatically on displaying.
19210
19211 * Makefile.in (lisp, shortlisp): Add composite.elc.
19212
19213 * composite.h (Qauto_composed, Vauto_composition_function)
19214 (Qauto_composition_function): Extern them.
19215
19216 * composite.c (Vcomposition_function_table)
19217 (Qcomposition_function_table): Delete variables.
19218 (Qauto_composed, Vauto_composition_function)
19219 (Qauto_composition_function): New variables.
19220 (run_composition_function): Don't call
19221 compose-chars-after-function.
19222 (update_compositions): Clear `auto-composed' text property.
19223 (compose_chars_in_text): Delete this function.
19224 (syms_of_composite): Staticpro Qauto_composed and
19225 Qauto_composition_function. Declare Vauto_composition_function as
19226 a Lisp variable.
19227
19228 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
19229
19230 * xdisp.c (it_props): Add an entry for Qauto_composed.
19231 (handle_auto_composed_prop): New function.
19232
19233 * xselect.c (selection_data_to_lisp_data): Don't call
19234 compose_chars_in_text.
19235
192362008-02-01 Dave Love <fx@gnu.org>
19237
19238 * keyboard.c (read_char): Modify checking around use of
19239 Vkeyboard_translate_table.
19240
19241 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19242 and fix C types.
19243
192442008-02-01 Kenichi Handa <handa@m17n.org>
19245
19246 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
19247 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19248 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
19249 the case that the last byte is '\r' correctly.
19250 (decode_coding): Flush out the unprocessed data correctly.
19251 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
19252
192532008-02-01 Dave Love <fx@gnu.org>
19254
19255 * xterm.c (XTread_socket): Fix changes for defined keysyms.
19256 Add XK_ISO... case.
19257 (xaw_scroll_callback): Revert last change.
19258
192592008-02-01 Kenichi Handa <handa@m17n.org>
19260
19261 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
19262
192632008-02-01 Kenichi Handa <handa@m17n.org>
19264
19265 * xfaces.c (Vface_resizing_fonts): New variable.
19266 (struct font_name): New member `resizing_ratio'.
19267 (font_resizing_ratio): New function.
19268 (split_font_name): Set font->resizing_ratio.
19269 (better_font_p): Pay attention to font->resizing_ratio.
19270 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19271 RESX, and RESY fields.
19272 (try_alternative_families): Try scalable fonts if
19273 Vscalable_fonts_allowed is not Qt.
19274 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19275
192762008-02-01 Dave Love <fx@gnu.org>
19277
19278 * xterm.c (xaw_scroll_callback): Cast correctly.
19279
192802008-02-01 Dave Love <fx@gnu.org>
19281
19282 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19283 (lispy_kana_keys): Comment out.
19284 (make_lispy_event) [XK_kana_A]: Comment out.
19285
19286 * xterm.c (xaw_scroll_callback): Cast call_data.
19287 (XTread_socket): Deal with ASCII keysyms.
19288 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19289
192902008-02-01 Dave Love <fx@gnu.org>
19291
19292 * xterm.c (Vx_keysym_table): New.
19293 (syms_of_xterm): Initialize it.
19294 (XTread_socket): Use it.
19295 From head: Eliminate incorrect optimization that tried to avoid
19296 decoding the output of X*LookupString.
19297 (x_get_font_repertory): Delete charset declaration.
19298
192992008-02-01 Kenichi Handa <handa@m17n.org>
19300
19301 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19302 return 0.
19303 (Fdefine_coding_system_internal): Setup
19304 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19305
193062008-02-01 Dave Love <fx@gnu.org>
19307
19308 * coding.c (Fcheck_coding_system): Doc fix.
19309
19310 * editfns.c (Finsert_byte): Return a proper value.
19311
193122008-02-01 Kenichi Handa <handa@m17n.org>
19313
19314 * coding.c (decode_coding): Fix args to translate_chars. Pay
19315 attention to Vstandard_translation_table_for_decode.
19316 (encode_coding): Fix args to translate_chars. Pay attention to
19317 Vstandard_translation_table_for_encode.
19318
19319 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19320 SINGLE_BYTE_CHAR_P.
19321
19322 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19323 not by SINGLE_BYTE_CHAR_P.
19324
19325 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19326 SINGLE_BYTE_CHAR_P.
19327
19328 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19329 SINGLE_BYTE_CHAR_P.
19330
19331 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19332 by SINGLE_BYTE_CHAR_P.
19333
19334 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19335 SINGLE_BYTE_CHAR_P.
19336
193372008-02-01 Dave Love <fx@gnu.org>
19338
19339 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19340
193412008-02-01 Dave Love <fx@gnu.org>
19342
19343 * fns.c (Flanginfo): Fix typo.
19344
19345 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19346
193472008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19350 (detect_coding_emacs_mule, detect_coding_iso_2022)
19351 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19352 incomplete byte sequence. Don't update *mask when correctly detected.
19353 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19354 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19355 (detect_coding, detect_coding_system): Adjust for the changes above.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * character.c (char_string): Rename from
19360 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19361 (string_char): Rename from string_char.
19362
19363 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19364 if C is greater than MAX_3_BYTE_CHAR.
19365 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19366 string_char instead of string_char_with_unification.
19367
193682008-02-01 Dave Love <fx@gnu.org>
19369
19370 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19371
193722008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * keymap.c (push_key_description): Pay attention to force_multibyte.
19375
19376 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19377
193782008-02-01 Dave Love <fx@gnu.org>
19379
19380 * charset.c (define_charset_internal): Rename `supprementary'.
19381
19382 * Makefile.in (lisp, shortlisp): Remove latin-N.
19383
193842008-02-01 Dave Love <fx@gnu.org>
19385
19386 * xfns.c (x_window, x_window): Use use_xim.
19387
19388 * xterm.c (use_xim): Initialize.
19389 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19390 (x_term_init): Maybe set use_xim.
19391
19392 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19393
193942008-02-01 Kenichi Handa <handa@m17n.org>
19395
19396 * search.c (search_buffer): Fix case-fold-search of multibyte
19397 characters.
19398 (boyer_moore): Rename the last argument to char_high_bits.
19399
194002008-02-01 Kenichi Handa <handa@m17n.org>
19401
19402 * xdisp.c (display_string): Fix for the case of zero width glyph.
19403
19404 * xfns.c (x_set_font): Change the error message of the case that
19405 x_new_fontset returns Qt.
19406
19407 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19408 (Finternal_set_lisp_face_attribute): Use signal_error for the
19409 error of invalid fontset.
19410
19411 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19412 fontset, return Qt.
19413
194142008-02-01 Dave Love <fx@gnu.org>
19415
19416 * unexelf.c (unexec): Make .got handling not SGI-specific.
19417
19418 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19419
19420 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19421
19422 * keyboard.c (read_key_sequence): Fix type error.
19423
19424 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19425 type error.
19426
19427 * fontset.c (fontset_add): Return Lisp_Object.
19428
194292008-02-01 Dave Love <fx@gnu.org>
19430
19431 * charset.h (charset_ordered_list_tick): Declare extern.
19432
194332008-02-01 Kenichi Handa <handa@m17n.org>
19434
19435 The following changes (and some of 2008-02-01 changes of mine) are
19436 for handling syntax, category, and case conversion for unibyte
19437 characters by converting them to multibyte on the fly. With these
19438 changes, we don't have to setup syntax and case tables for unibyte
19439 characters in each language environment.
19440
19441 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19442 multibyte if necessary.
19443
19444 * bytecode.c (Fbyte_code): Likewise.
19445
19446 * character.h (LEADING_CODE_LATIN_1_MIN)
19447 (LEADING_CODE_LATIN_1_MAX): New macros.
19448 (unibyte_to_multibyte_table): Extern it.
19449 (unibyte_char_to_multibyte): New macro.
19450 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19451 (CHAR_LEADING_CODE): New macro.
19452 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19453
19454 * character.c (unibyte_to_multibyte_table): New variable.
19455 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19456 (multibyte_char_to_unibyte): If C is an eight-bit character,
19457 convert it to the corresponding byte value.
19458
19459 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19460 not 1, signals an error. Update the elements of
19461 unibyte_to_multibyte_table.
19462 (init_charset_once): Initialize unibyte_to_multibyte_table.
19463 (syms_of_charset): Define the charset `iso-8859-1'.
19464
19465 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19466 as is without converting it to unibyte. In a unibyte buffer,
19467 convert C to multibyte before checking the syntax.
19468
19469 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19470
19471 * minibuf.c (Fminibuffer_complete_word): Use the macro
19472 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19473
19474 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19475
19476 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19477 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19478 that is zero, convert an eight-bit char to multibyte.
19479 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19480 non-emacs case.
19481 (PATFETCH): Convert an eight-bit char to multibyte.
19482 (HANDLE_UNIBYTE_RANGE): New macro.
19483 (regex_compile): Setup the compiled pattern for multibyte chars
19484 even if the given regex string is unibyte. Use PATFETCH_RAW
19485 instead of PATFETCH in many places. To handle `charset'
19486 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19487 only for ASCII chars.
19488 (analyse_first) <exactn>: Simplify because the compiled pattern
19489 is multibyte.
19490 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19491 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19492 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19493 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19494 multibyte always 1.
19495 (re_search_2): In emacs, set the locale variable multibyte to 1,
19496 otherwise to 0. New local variable target_multibyte. Check it
19497 to decide the multibyteness of STR1 and STR2. If
19498 target_multibyte is zero, convert unibyte chars to multibyte
19499 before translating and checking fastmap.
19500 (TARGET_CHAR_AND_LENGTH): New macro.
19501 (re_match_2_internal): In emacs, set the locale variable multibyte
19502 to 1, otherwise to 0. New local variable target_multibyte. Check
19503 it to decide the multibyteness of STR1 and STR2. Use
19504 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19505 <charset, charset_not>: If multibyte is nonzero, check fastmap
19506 only for ASCII chars. Call bcmp_translate with
19507 target_multibyte, not with multibyte.
19508 <begline>: Declare the local variable C as `unsigned'.
19509 (bcmp_translate): Change the last arg name to target_multibyte.
19510
19511 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19512 the regexp pattern and the matching target. Set cp->buf.multibyte
19513 to the multibyteness of the regexp pattern. Set
19514 cp->but.target_multibyte to the multibyteness of the matching target.
19515 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19516 FETCH_STRING_CHAR_ADVANCE.
19517 (Freplace_match): Convert unibyte chars to multibyte.
19518
19519 * syntax.c (char_quoted, back_comment, scan_words)
19520 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19521 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19522 unibyte chars to multibyte.
19523 (skip_chars): Delete the arg syntaxp, and move the code for
19524 handling syntaxes to skip_syntaxes. Change callers.
19525 Fix the case that the multibyteness of STRING and the current
19526 buffer doesn't match.
19527 (skip_syntaxes): New function.
19528 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19529 SINGLE_BYTE_CHAR_P.
19530
195312008-02-01 Kenichi Handa <handa@m17n.org>
19532
19533 * xfaces.c (QCfontset): New variable.
19534 (LFACE_FONTSET): New macro.
19535 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19536 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19537 (Finternal_set_lisp_face_attribute)
19538 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19539 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19540 check also LFACE_FONTSET_INDEX.
19541 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19542 attrs[LFACE_FONT_INDEX].
19543 (syms_of_xfaces): Intern and staticpro QCfontset.
19544
19545 * dispextern.h (enum lface_attribute_index): New member
19546 LFACE_FONTSET_INDEX.
19547
19548 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19549
195502008-02-01 Kenichi Handa <handa@m17n.org>
19551
19552 * coding.c (coding_set_destination): Fix coding->destination for
19553 the case converting a region.
19554 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19555 (encode_coding_object): Fix coding->dst_pos and
19556 coding->dst_pos_byte for the case converting a region.
19557
19558 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19559
19560 * character.h (BYTE8_STRING): New macro.
19561
19562 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19563
195642008-02-01 Kenichi Handa <handa@m17n.org>
19565
19566 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19567 characters by octal form.
19568
19569 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19570
19571 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19572 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19573 _fetch_multibyte_char_len.
19574 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19575
19576 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19577
19578 * casefiddle.c (casify_object): Simplify. Handle the case that
19579 the case conversion change the byte length.
19580 (casify_region): Likewise.
19581
19582 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19583
19584 * character.c (_fetch_multibyte_char_len): Delete this variable.
19585 (syms_of_character): Setup Vprintable_chars.
19586
19587 * editfns.c (Fchar_equal): Fix for the unibyte case.
19588 (Finsert_byte): New function.
19589 (syms_of_editfns): Defsubr it.
19590
19591 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19592 of direct code 0x3ffff.
19593
19594 * search.c (Freplace_match): Fix for the unibyte case.
19595
195962008-02-01 Kenichi Handa <handa@m17n.org>
19597
19598 * lread.c (safe_to_load_p): Fix the logic.
19599
19600 * syntax.c (scan_words): Don't treat characters belonging to
19601 different scripts as constituting a word.
19602
19603 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19604
19605 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19606
19607 * emacs.c (main): In the case of --unibyte, instead of aborting on
19608 finding non-empty buffer, make it unibyte.
19609
196102008-02-01 Kenichi Handa <handa@m17n.org>
19611
19612 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19613 to create a fontset.
19614
196152008-02-01 Dave Love <fx@gnu.org>
19616
19617 * character.c (Funibyte_char_to_multibyte): Doc fix.
19618
19619 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19620
196212008-02-01 Kenichi Handa <handa@m17n.org>
19622
19623 * fontset.c (fontset_add): Make the type `int'.
19624 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19625
19626 * character.c (unibyte_char_to_multibyte)
19627 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19628 charset_unibyte, not charset_primary.
19629
19630 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19631
19632 * charset.c (charset_unibyte): Rename from charset_primary.
19633 (Funibyte_charset): Rename from Fprimary_charset.
19634 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19635 (syms_of_charset): Adjust for the above changes.
19636
19637 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19638 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19639 it->multibyte_p is zero.
19640
19641 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19642 Delete extern.
19643
196442008-02-01 Kenichi Handa <handa@m17n.org>
19645
19646 * coding.c (Fdefine_coding_system_internal): Fix category setting
19647 for a coding system of type iso-2022.
19648
196492008-02-01 Kenichi Handa <handa@m17n.org>
19650
19651 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19652
196532008-02-01 Kenichi Handa <handa@m17n.org>
19654
19655 * syntax.c (Vnext_word_boundary_function_table): New variable.
19656 (next-word-boundary-function-table): Declare it as a Lisp variable
19657 in syms_of_syntax.
19658 (scan_words): Call functions in Vnext_word_boundary_function_table
19659 if any.
19660
19661 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19662
19663 * fontset.c (fs_load_font): If fontp->charset is not negative,
19664 return fontp without setting its members.
19665
196662008-02-01 Dave Love <fx@gnu.org>
19667
19668 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19669
19670 * m/sparc.h (HAVE_ALLOCA): Delete.
19671
19672 * s/irix6-5.h: Don't include strings.h.
19673 (bcopy, bzero, bcmp): Don't undef.
19674
19675 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19676
19677 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19678 (TIOCSIGSEND): Don't test IRIX6.
19679 (bcopy, bzero, bcmp): Define conditionally.
19680
196812008-02-01 Kenichi Handa <handa@m17n.org>
19682
19683 * buffer.c (Qas, Qmake, Qto): New variables.
19684 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19685 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19686
19687 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19688 we are inserting a process output into a multibyte buffer.
19689
19690 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19691 multibyte_char_to_unibyte.
19692
19693 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19694 by the primary charset, make it eight-bit char.
19695 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19696
19697 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19698 (charset_8_bit__control, charset_8_bit_graphic)
19699 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19700 (define_charset_internal): New function.
19701 (syms_of_charset): Call define_charset_internal for pre-defined
19702 charsets.
19703
19704 * charset.h (charset_8_bit): Extern it.
19705
19706 * coding.c (make_conversion_work_buffer): Adjust for the change
19707 of Fset_buffer_multibyte.
19708 (encode_coding_raw_text): Increment p0 in the loop.
19709
19710 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19711
19712 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19713 for the change of Fset_buffer_multibyte.
19714
19715 * fns.c (Fstring_to_multibyte): New function.
19716 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19717
197182008-02-01 Dave Love <fx@gnu.org>
19719
19720 * xfns.c (x_put_x_image): Declare args.
19721
19722 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19723 (try_font_list): Declare an arg.
19724
19725 * xdisp.c (message2_nolog, set_message): Declare an arg.
19726
19727 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19728
19729 * syntax.c (scan_sexps_forward): Declare an arg.
19730
19731 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19732 Declare an arg.
19733
19734 * lisp.h (Fnew_fontset): Declare.
19735
19736 * keymap.c (push_key_description): Call CHARACTERP correctly.
19737
19738 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19739 (face_for_char): Delete unused vars.
19740 (Fset_fontset_font): Doc fix. Delete unused vars.
19741
19742 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19743
19744 * composite.c (update_compositions): Declare arg.
19745
19746 * cm.c (calccost, cmgoto): Declare args.
19747
19748 * charset.c: Remove `emacs' conditional. Doc fixes.
19749 (map_char_table_for_charset): Declare.
19750
19751 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19752
19753 * ccl.c: Remove `emacs' conditional.
19754
197552008-02-01 Kenichi Handa <handa@m17n.org>
19756
19757 The following changes are to allow specifying multiple font
19758 patterns for a character range (specified by script or charset).
19759
19760 * Makefile.in (abbrev.o): Depend on syntax.h.
19761 (xfaces.o): Depend on charset.h.
19762
19763 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19764 SINGLE_BYTE_CHAR_P.
19765
19766 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19767
19768 * character.h (Vchar_script_table): Extern it.
19769
19770 * character.c (Vscript_alist): Delete.
19771 (Vchar_script_table, Qchar_script_table): New variable.
19772 (syms_of_character): Declare Vchar_script_table as a lisp variable
19773 and initialize it.
19774
19775 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19776 have property char-table-extra-slots, make no extra slot.
19777
19778 * dispextern.h (struct face): Delete member `charset'.
19779 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19780 SINGLE_BYTE_CHAR_P.
19781 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19782 Add prototypes.
19783 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19784 (generate_ascii_font_name): Rename from generate_ascii_font.
19785
19786 * fontset.h (get_font_repertory_func): New prototype.
19787 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19788 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19789
19790 * fontset.c (Qprepend, Qappend): New variables.
19791 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19792 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19793 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19794 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19795 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19796 (load_font_get_repertory): New functions.
19797 (fontset_set): Delete.
19798 (fontset_face): New arg FACE. Return face ID, not face.
19799 Complete re-write to handle new fontset structure. Change caller.
19800 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19801 (face_for_char): Don't call lookup_face.
19802 (make_fontset_for_ascii_face): New arg FACE.
19803 (fs_load_font): New arg CHARSET_ID. Don't check
19804 Vfont_encoding_alist here.
19805 (find_font_encoding): New function.
19806 (list_fontsets): Use STRINGP, not ! NILP.
19807 (accumulate_script_ranges): New function.
19808 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19809 re-written to handle new fontset structure.
19810 (Ffontset_font): Return a copy of element.
19811 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19812 docstring of font-encoding-alist.
19813
19814 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19815 (Fset_fotset_font): Fix arguments to 5.
19816
19817 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19818
19819 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19820 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19821 (highlight_trailing_whitespace): Adjust for the change of
19822 lookup_named_face.
19823
19824 * xfaces.c: Include charset.h.
19825 (load_face_font): Delete argument C. Change caller.
19826 (generate_ascii_font_name): Rename from generate_ascii_font.
19827 (font_name_registry): New function.
19828 (cache_face): Store ascii faces before non-ascii faces in buckets.
19829 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19830 Lookup only ascii faces.
19831 (lookup_non_ascii_face): New function.
19832 (lookup_named_face): Delete argument C. Change caller.
19833 (lookup_derived_face): Delete argument C. Change caller.
19834 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19835 a string, just call font_list with it.
19836 (choose_face_font): Delete arguments FACE and C. New arg
19837 FONT_SPEC. Change caller.
19838 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19839 Change caller.
19840 (realize_non_ascii_face): New function.
19841 (realize_x_face): Call load_face_font here.
19842 (realize_tty_face): Delete argument C. Change caller.
19843 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19844 get a face ID.
19845 (dump_realized_face): Don't print charset of FACE.
19846
19847 * xfns.c (x_set_font): Always call x_new_fontset and
19848 store_frame_parameter.
19849 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19850 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19851
19852 * xterm.h (x_get_font_repertory): Extern it.
19853
19854 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19855 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19856 it->multibyte_p is zero.
19857 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19858 (x_new_fontset): If FONTSETNAME doesn't match any existing
19859 fontsets, create a new one.
19860 (x_get_font_repertory): New function.
19861
198622008-02-01 Kenichi Handa <handa@m17n.org>
19863
19864 * coding.c (Ffind_coding_systems_region_internal): Detect an
19865 ASCII only string correctly.
19866
19867 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19868 version is 0.
19869
198702008-02-01 Kenichi Handa <handa@m17n.org>
19871
19872 * lread.c: Include "coding.h".
19873 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19874 (load_each_byte, unread_char): New variables.
19875 (readchar_backlog): Delete.
19876 (readchar): Return a character unless load_each_byte is nonzero.
19877 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19878 cons. If unread_char is not -1, simply return it.
19879 (unreadchar): Handle the case that readcharfun is
19880 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19881 (read_multibyte): Delete.
19882 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19883 (read_emacs_mule_char): New functions.
19884 (Fload): Even if the file doesn't have the extension ".elc", if
19885 safe_to_load_p returns a positive version number, assume that the
19886 file contains bytecompiled code. If the version is less than 22,
19887 load the file while decoding multibyte sequences by emacs-mule.
19888 (readevalloop): Don't use readchar_backlog.
19889 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19890 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19891 (read_escape): Delete the arg BYTEREP.
19892 (read1): Set load_each_byte to 1 temporarily while handling
19893 #@NUMBER. Don't call read_multibyte.
19894 (read_vector): Call Fread with a cons. If readcharfun is
19895 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19896 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19897 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19898 and Qload_force_doc_strings.
19899
199002008-02-01 Kenichi Handa <handa@m17n.org>
19901
19902 * xdisp.c (face_before_or_after_it_pos): Call
19903 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19904
199052008-02-01 Kenichi Handa <handa@m17n.org>
19906
19907 * character.h (TRAILING_CODE_P): New macro.
19908 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19909 (string_char_with_unification): Fix prototype.
19910 (Vscript_alist): Extern it.
19911
19912 * character.c (Vscript_alist): New variable.
19913 (string_char_with_unification, str_as_unibyte)
19914 (string_escape_byte8): Add `const' to local variables.
19915 (syms_of_character): Declare script-alist as a Lisp variable.
19916
19917 * charset.h (Vcharset_ordered_list): Extern it.
19918 (charset_ordered_list_tick): Extern it.
19919 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19920 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19921 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19922 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19923 (Funify_charset): Adjust for the change of Funify_charset.
19924
19925 * charset.c (charset_ordered_list_tick): New variable.
19926 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19927 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19928 deunify intead of unify a charset.
19929 (string_xstring_p): Add `const' to local variables.
19930 (find_charsets_in_text): Add `const' to arguments and local variables.
19931 (encode_char): Adjust for the change of Funify_charset. Fix
19932 detecting of invalid code.
19933 (Fset_charset_priority): Increment charset_ordered_list_tick.
19934 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19935 and TO_CODE.
19936
19937 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19938 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19939 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19940 (decode_coding_ccl, consume_chars)
19941 (Ffind_coding_systems_region_internal)
19942 (Fcheck_coding_systems_region): Add `const' to local variables.
19943
19944 * print.c (print_object): Use octal form for printing the
19945 contents of a bool vector.
19946
199472008-02-01 Dave Love <fx@gnu.org>
19948
19949 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19950 <version == 20>: Refuse to load.
19951
199522008-02-01 Dave Love <fx@gnu.org>
19953
19954 * fns.c: Move coding.h.
19955 (Qcodeset, Qdays, Qmonths): New.
19956 (concat): Use CHARACTERP instead of INTEGERP.
19957 (Flocale_codeset): Delete.
19958 (Flanginfo): New function.
19959 (syms_of_fns): Change accordingly.
19960
19961 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19962
199632008-02-01 Dave Love <fx@gnu.org>
19964
19965 * casetab.c (init_casetab_once, init_casetab_once): Fix
19966 CHAR_TABLE_SET call.
19967
19968 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19969
19970 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19971
19972 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19973 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19974 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19975
19976 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19977
19978 * coding.c (ENCODE_DESIGNATION, decode_eol)
19979 (make_conversion_work_buffer, code_conversion_restore)
19980 (Fdefine_coding_system_internal): Convert Lisp types.
19981 (code_conversion_restore): Use EQ, not ==.
19982 (Fencode_coding_string): Fix code_convert_string call.
19983
19984 * coding.h (code_convert_region): Fix prototype.
19985
19986 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19987
19988 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19989 (Ffontset_info): Convert Lisp types.
19990
19991 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19992
19993 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19994
19995 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19996
19997 * chartab.c: Include "...h", not <...h> in some cases.
19998
19999 * callproc.c (Fcall_process): Remove unused variables.
20000
200012008-02-01 Dave Love <fx@gnu.org>
20002
20003 * coding.c (Fset_coding_system_priority): Allow null arg list.
20004
200052008-02-01 Dave Love <fx@gnu.org>
20006
20007 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20008 (Fself_insert_and_exit): Use CHARACTERP.
20009
20010 * callproc.c (Fcall_process): Remove unused vars.
20011
20012 * xterm.c (XTread_socket): Add extra dead keysyms.
20013
20014 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
20015
20016 * dispextern.h: Remove prototypes for redraw_frame,
20017 redraw_garbaged_frames.
20018
20019 * cmds.c (Fself_insert_command): Use CHARACTERP.
20020
20021 * chartab.c (make_sub_char_table): Remove unused var.
20022 (Fset_char_table_default, Fmap_char_table): Doc fix.
20023
20024 * keymap.c (access_keymap): Remove generic char code.
20025 (push_key_description): Use CHARACTERP.
20026
200272008-02-01 Dave Love <fx@gnu.org>
20028
20029 * charset.c: Doc fixes.
20030 (Funify_charset): Extra checking.
20031
200322008-02-01 Dave Love <fx@gnu.org>
20033
20034 * lread.c: Remove some unused variables.
20035 (safe_to_load_p): If safe, return the magic number version byte.
20036 (Fload): Maybe use load-with-code-conversion.
20037
200382008-02-01 Kenichi Handa <handa@m17n.org>
20039
20040 * category.c (Fmodify_category_entry): Don't modify the contents
20041 of category_set for characters out of the range. Avoid
20042 unnecessary modification.
20043
20044 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
20045 Vchar_unify_table. The default value of the table is now nil.
20046
20047 * character.c (syms_of_character): Setup Vchar_width_table for
20048 eight-bit-control and raw-byte chars.
20049
20050 * charset.h (enum define_charset_arg_index): Delete
20051 charset_arg_parents and add charset_arg_subset and
20052 charset_arg_superset.
20053 (enum charset_attr_index): Delete charset_parents and add
20054 charset_subset and charset_superset.
20055 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
20056 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
20057 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
20058 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
20059 (CHARSET_SUPERSET): New macros.
20060 (charset_work): Extern it.
20061 (ENCODE_CHAR): Use charset_work.
20062 (CHAR_CHARSET_P): Adjust for the change of encoder format.
20063 (map_charset_chars): Extern it.
20064
20065 * charset.c (load_charset_map): Set the default value of encoder
20066 and deunifier char-tables to nil.
20067 (map_charset_chars): Change argument. Change callers. Use
20068 map_char_table_for_charset instead of map_char_table.
20069 (Fmap_charset_chars): New optional args from_code and to_code.
20070 (Fdefine_charset_internal): Adjust for the change of
20071 `define-charset' (:parents -> :subset or :superset).
20072 (charset_work): New variable.
20073 (encode_char, syms_of_charset): Adjust for the change of
20074 Fdefine_charset_internal.
20075 (Ffind_charset_string): Setup the vector `charsets' correctly.
20076
20077 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
20078 the previous change.
20079 (char_table_ref_and_range): Adjust for the above change.
20080 (map_sub_char_table_for_charset): New function.
20081 (map_char_table_for_charset): New function.
20082
20083 * keymap.c (describe_vector): Handle a char-table directly here.
20084 (describe_char_table): Delete.
20085
20086 * lisp.h (map_charset_chars): Delete.
20087
200882008-02-01 Dave Love <fx@gnu.org>
20089
20090 * fns.c (count_combining): Comment out (unused).
20091 (Flocale_codeset): New.
20092 (syms_of_fns): Defsubr it.
20093
20094 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
20095 (size_t): Remove.
20096
200972008-02-01 Dave Love <fx@gnu.org>
20098
20099 * Makefile.in (chartab.o): Depend on charset.h.
20100
201012008-02-01 Kenichi Handa <handa@m17n.org>
20102
20103 * character.c (syms_of_character): Set the default value of
20104 Vprintable_chars to Qnil.
20105
201062008-02-01 Dave Love <fx@gnu.org>
20107
20108 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
20109
201102008-02-01 Kenichi Handa <handa@m17n.org>
20111
20112 * charset.c (load_charset_map): Handle the case that from < to
20113 correctly.
20114
20115 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
20116 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
20117 Pay attention to raw-8-bit chars.
20118
201192008-02-01 Kenichi Handa <handa@m17n.org>
20120
20121 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
20122 It is not bytecompiled now.
20123
20124 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
20125 (charset_jisx0208): New variables.
20126 (Fdefine_charset_internal): Setup them if appropriate.
20127 (init_charset_once): Initialize them to -1.
20128
20129 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
20130 (charset_jisx0208): Extern them.
20131
20132 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
20133 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
20134 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
20135 (setup_iso_safe_charsets): Fix arguments to Fassq.
20136 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
20137 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
20138 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
20139 (encode_coding_iso_2022): Change the 1st arg to
20140 ENCODE_ISO_CHARACTER to a variable.
20141
201422008-02-01 Kenichi Handa <handa@m17n.org>
20143
20144 * charset.h (enum define_charset_arg_index): New enums
20145 charset_arg_min_code and charset_arg_max_code.
20146 (struct charset): New member char_index_offset.
20147
20148 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
20149 Take charset->char_index_offset into account.
20150 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
20151 args[charset_arg_max_code]. Setup charset.char_index_offset.
20152 (syms_of_charset): Fix args to Fdefine_charset_internal.
20153
201542008-02-01 Dave Love <fx@gnu.org>
20155
20156 * coding.c (decode_coding_utf_8): Reject overlong sequences.
20157
201582008-02-01 Dave Love <fx@gnu.org>
20159
20160 * coding.c: Doc fixes.
20161 (Fcoding_system_aliases): Fix return value.
20162 (Qmac): Remove (duplicated) definition.
20163
201642008-02-01 Dave Love <fx@gnu.org>
20165
362654a6
JB
20166 * charset.c (Fcharset_priority_list, Fset_charset_priority):
20167 New functions.
aac0c6e3
MR
20168
20169 * character.c (Fstring): Doc fix.
20170
20171 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
20172
362654a6 20173 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
20174 (font-encoding-alist): Doc fix.
20175
201762008-02-01 Dave Love <fx@gnu.org>
20177
20178 * term.c (costs_set): Declare static, non-initialized for pcc.
20179 (encode_terminal_code): Remove unused var.
20180
20181 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
20182 for K&R.
20183
20184 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
20185
20186 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
20187 (suffixes): Move out of make_subsidiaries for K&R.
20188
20189 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
20190
20191 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
20192
201932008-02-01 Dave Love <fx@gnu.org>
20194
20195 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
20196
20197 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
20198
201992008-02-01 Yong Lu <lyongu@asia-infonet.com>
20200
20201 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
20202
20203 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
20204
202052008-02-01 Kenichi Handa <handa@m17n.org>
20206
20207 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
20208 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
20209
202102008-02-01 Kenichi Handa <handa@m17n.org>
20211
20212 * coding.c (decode_coding_charset): Adjust for the change of
20213 Fdefine_coding_system_internal.
20214 (Fdefine_coding_system_internal): For a coding system of
20215 `charset' type, store a list of charset IDs in
20216 `charset_attr_charset_valids' element of coding attributes.
20217
202182008-02-01 Kenichi Handa <handa@m17n.org>
20219
20220 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
20221 (emacs_mule_char): New arg src. Delete arg `composition'. Change
20222 caller. Handle 2-byte and 3-byte charsets correctly.
20223 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
20224 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
20225 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
20226 (DECODE_EMACS_MULE_21_COMPOSITION): Call
20227 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
20228 sequence.
20229 (decode_coding_emacs_mule): Handle composition correctly. Rewind
20230 `src' and `consumed_chars' correctly before calling emacs_mule_char.
20231 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
20232 and alt&rule composition.
20233 (decode_coding_iso_2022): Handle composition correctly.
20234 (init_coding_once): Setup emacs_mule_bytes for private charsets.
20235
20236 * charset.c (Fdefine_charset_internal): Fix bug for the case of
20237 re-defining a charset. If the charset has :emacs-mule-id, setup
20238 emacs_mule_bytes.
20239 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
20240
202412008-02-01 Kenichi Handa <handa@m17n.org>
20242
20243 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
20244 (encode_coding_big5, encode_coding_charset): If coding requires safe
20245 encoding, produce a character specified by
20246 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
20247
202482008-02-01 Dave Love <fx@gnu.org>
20249
20250 * xterm.c (XSetIMValues): Declare.
20251
20252 * process.c: Conditionally include sys/wait.h, pty.h.
20253
20254 * print.c (print_object): Fix print format for 64-bit systems.
20255
20256 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
20257
20258 * buffer.c (emacs_strerror): Declare.
20259
20260 * fontset.c (Fclear_face_cache): Declare.
20261 (accumulate_font_info): Comment-out (unused).
20262 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
20263 variables.
20264
20265 * character.h (string_escape_byte8): Declare.
20266
20267 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20268 unused vars.
20269 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20270 (Fmap_charset_chars): Doc fix.
20271
20272 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20273 (Fset_coding_system_priority, Fset_coding_system_priority)
20274 (Fdefine_coding_system_internal): Doc fix.
20275
202762008-02-01 Dave Love <fx@gnu.org>
20277
20278 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20279
202802008-02-01 Kenichi Handa <handa@m17n.org>
20281
20282 * character.c (string_escape_byte8): Make multibyte string with
20283 correct size.
20284
20285 * charset.c (Fmake_char): Delete unnecessary code.
20286
202872008-02-01 Kenichi Handa <handa@m17n.org>
20288
20289 * xfns.c (x_encode_text): Allocate coding.destination here, and
20290 call encode_coding_object with dst_object Qnil.
20291
20292 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20293 multibyte form correctly.
20294
20295 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20296 against Vfont_encoding_alist.
20297
20298 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20299 handling of charset list.
20300 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20301 (decode_coding_object): Move point to coding->dst_pos before
20302 calling post-read-conversion function.
20303 (encode_coding_object): Give correct arguments to
20304 pre-write-conversion. Ignore the return value of
20305 pre-write-conversion function. Pay attention to the case that
20306 pre-write-conversion changes the current buffer. If dst_object is
20307 Qt, even if coding->src_bytes is zero, allocate at least one byte
20308 to coding->destination.
20309
20310 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20311
20312 * charset.c (Fmake_char): Make it more backward compatible.
20313 (Fmap_charset_chars): Fix docstring.
20314
203152008-02-01 Dave Love <fx@gnu.org>
20316
20317 * coding.c: Doc fixes.
20318 (Fdefine_coding_system_alias): Use names, not symbols, in
20319 coding-system-alist.
20320
203212008-02-01 Kenichi Handa <handa@m17n.org>
20322
20323 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20324 of calling free_realized_face.
20325
203262008-02-01 Yong Lu <lyongu@asia-infonet.com>
20327
20328 * charset.c (read_hex): Don't treat SPC as a comment starter.
20329 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20330 (Fdecode_char): Fix typo.
20331
203322008-02-01 Kenichi Handa <handa@m17n.org>
20333
20334 * charset.h (struct charset): New member `code_space_mask'.
20335
20336 * coding.c (coding_set_source): Delete the local variable beg_byte.
20337 (encode_coding_charset, Fdefine_coding_system_internal):
20338 Delete the local variable charset.
20339 (Fdefine_coding_system_internal): Setup
20340 attrs[coding_attr_charset_valids] correctly.
20341
20342 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20343 member to check if CODE is valid or not.
20344 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20345 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20346 is within the range of charset->min_code and carset->max_code.
20347
203482008-02-01 Dave Love <fx@gnu.org>
20349
20350 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20351
20352 * dispextern.h (generate_ascii_font): Fix return type.
20353
20354 * xfaces.c (generate_ascii_font): Fix arg declaration.
20355
20356 * coding.c (coding_inherit_eol_type)
20357 (Fset_terminal_coding_system_internal)
20358 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20359
203602008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20363 multiple charsets correctly.
20364
203652008-02-01 Kenichi Handa <handa@m17n.org>
20366
20367 * search.c (boyer_moore): Fix handling of multibyte character
20368 translation.
20369
20370 * xdisp.c (display_mode_element): When the variable `elt' is
20371 changed, update `this' and `lisp_string'.
20372
203732008-02-01 Kenichi Handa <handa@m17n.org>
20374
20375 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20376
20377 * callproc.c (Fcall_process): Be sure to give the current buffer
20378 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20379
20380 * charset.c (struct charset_map_entries): New struct.
20381 (load_charset_map): Rename from parse_charset_map. New args
20382 entries and n_entries. Change caller.
20383 (load_charset_map_from_file): Rename from load_charset_map.
20384 Change caller. New arg control_flag. Call load_charset_map at
20385 the tail.
20386 (load_charset_map_from_vector): New function.
20387 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20388 (encode_char): If the charset is compact, change a character index
20389 to a code point.
20390
20391 * coding.c (coding_alloc_by_making_gap): Check the case that the
20392 source and destination are the same correctly.
20393 (decode_coding_raw_text): Set coding->consumed_char and
20394 coding->consumed to 0.
20395 (produce_chars): If coding->chars_at_source is nonzero, update
20396 coding->consumed_char and coding->consumed before calling
20397 alloc_destination.
20398 (Fdefine_coding_system_alias): Register ALIAS in
20399 Vcoding_system_alist.
20400 (syms_of_coding): Define `no-conversion' coding system at the tail.
20401
20402 * fileio.c (Finsert_file_contents): Set coding_system instead of
20403 val. If the current buffer is multibyte, always call
20404 decode_coding_gap.
20405
20406 * xfaces.c (try_font_list): Give higher priority to fontset's
20407 family than face's family.
20408
204092008-02-01 Kenichi Handa <handa@m17n.org>
20410
20411 * callproc.c (Fcall_process): Be sure to give the current buffer
20412 to decode_coding_c_string.
20413
20414 * xfaces.c (try_font_list): Give a family specified in a fontset
20415 higher priority than a family specified in a face.
20416
204172008-02-01 Kenichi Handa <handa@m17n.org>
20418
20419 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20420 Fix arguments to insert_from_buffer.
20421
20422 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20423
204242008-02-01 Kenichi Handa <handa@m17n.org>
20425
20426 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20427 (decode_coding_gap): Set coding->dst_multibyte correctly.
20428
204292008-02-01 Kenichi Handa <handa@m17n.org>
20430
20431 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20432 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20433 (encode_coding_utf_16): Substitute coding->default_char for
20434 non-Unicode characters.
20435 (decode_coding): Don't call record_insert here.
20436 (setup_coding_system): Initialize `surrogate' of
20437 coding->spec.utf_16 to 0.
20438 (EMIT_ONE_BYTE): Fix for multibyte case.
20439
20440 * insdel.c (insert_from_gap): Call record_insert.
20441
204422008-02-01 Kenichi Handa <handa@m17n.org>
20443
20444 * casefiddle.c (casify_region): Fix multibyte case.
20445
20446 * character.c (c_string_width): Add return type `int'.
20447 (char_string_with_unification): Delete arg ADVANCED.
20448
20449 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20450 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20451 (CHAR_STRING_ADVANCE): Make it do-while statement.
20452
20453 * chartab.c (sub_char_table_set_range): Optimize for the case
20454 DEPTH == 3. Add workaround code for a GCC optimization bug.
20455
20456 * charset.c (parse_charset_map): Remove an unused variable.
20457
20458 * coding.c: Delete unused variables.
20459
20460 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20461 earlier. If inserted is zero and the coding system doesn't
20462 require flushing, don't call decode_coding_gap.
20463
20464 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20465
204662008-02-01 Kenichi Handa <handa@m17n.org>
20467
20468 The following changes are for using Unicode as an internal
20469 character model, and use UTF-8 format for buffer/string
20470 representation.
20471
20472 * .gdbinit (xchartable): Adjust for the change of char table structure.
20473 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20474
20475 * Makefile.in (obj): Add character.o and chartab.o.
20476 (lisp, shortlisp): Remove utf-8.elc.
20477 (*.o): For many files, change dependency on charset.h to
20478 character.h, and add dependency on character.h.
20479 (character.o, chartab.o): New targets.
20480
20481 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20482 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20483 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20484 of "charset.h".
20485
20486 * dired.c, filelock.c: Include "character.h".
20487
20488 * alloc.c: Include "character.h" instead of "charset.h".
20489 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20490 (syms_of_alloc): Remove defsubr for Smake_char_table.
20491
20492 * buffer.c: Include "character.h" instead of "charset.h", don't
20493 include "coding.h".
20494 (Fset_buffer_multibyte): Adjust for UTF-8.
20495
20496 * buffer.h: EXFUN Fbuffer_live_p.
20497
20498 * callproc.c: Include "character.h" instead of "charset.h".
20499 (Fcall_process): Big change for the new code-conversion APIs.
20500
20501 * casetab.c: Include "character.h" instead of "charset.h".
20502 (set_canon, set_identity, shuffle): Adjust for the new
20503 map_char_table spec.
20504 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20505 accessing the char table structure.
20506
20507 * chartab.c: New file that implements char table.
20508
20509 * category.c: Include "character.h".
20510 (copy_category_entry): New function.
20511 (copy_category_table): Call map_char_table and copy_category_entry.
20512 (Fmake_category_table): Initialize all top-level slots.
20513 (char_category_set): New function.
20514 (modify_lower_category_set): Delete.
20515 (Fmodify_category_entry): Call char_table_ref_and_range.
20516
20517 * category.h (CATEGORY_SET): Just call char_category_set.
20518
20519 * ccl.c: Include "character.h".
20520 (Qccl, Qcclp): New variables.
20521 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20522 it's less than 256.
20523 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20524 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20525 and DST type.
20526 (ccl_driver): Change types of argument, adjust code accordingly.
20527 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20528 ccl_driver.
20529 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20530
20531 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20532 New members src_multibyte, dst_multibyte, consumed, and produced.
20533 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20534 (CODING_SPEC_CCL_PROGRAM): New macro.
20535 (ccl_driver): Update prototype.
20536 (Qccl, Qcclp, Fccl_program_p): Extern them.
20537 (CHECK_CCL_PROGRAM): New macro.
20538
20539 * character.c, character.h, chartab.c: New files.
20540
20541 * charset.c: Mostly re-written. Move character and multibyte sequence
20542 handling codes to character.c.
20543
20544 * charset.h: Mostly re-written. Move character and multibyte sequence
20545 handling codes to character.h.
20546
20547 * coding.c, coding.h: Mostly re-written.
20548
20549 * composite.c: Include "character.h" instead of "charset.h".
20550 (CHAR_WIDTH): Move to character.h.
20551 (HASH_KEY, HASH_VALUE): Delete.
20552
20553 * composite.h (enum composition_method): Change order of enumeration
20554 symbols.
20555
20556 * data.c: Include "character.h" instead of "charset.h".
20557 (Faref): Call CHAR_TABLE_REF for a char table.
20558 (Faset): Call CHAR_TABLE_SET for a char table.
20559
20560 * dispextern.h (free_realized_face, check_face_attribytes)
20561 (generate_ascii_font): Extern them.
20562 (free_realized_multibyte_face): Delete extern.
20563
20564 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20565 table structure.
20566
20567 * editfns.c: Include "character.h" instead of "charset.h".
20568 (Fchar_to_string): Always call CHAR_STRING.
20569
20570 * emacs.c (main): Call init_charset_once, init_charset,
20571 syms_of_chartab, and syms_of_character.
20572
20573 * fileio.c: Include "character.h" instead of "charset.h".
20574 (Finsert_file_contents): Big change for the new code-conversion API.
20575 (choose_write_coding_system, Fwrite_region): Likewise.
20576 (build_annotations_2): Delete.
20577 (e_write): Big change for the new code-conversion API.
20578
20579 * fns.c: Include "character.h" instead of "charset.h".
20580 (copy_sub_char_table): Move to chartab.c.
20581 (Fcopy_sequence): Call copy_char_table for a char table.
20582 (concat): Delete codes calling count_multibyte.
20583 (string_char_to_byte, string_byte_to_char): Adjust for the new
20584 multibyte form.
20585 (internal_equal): Adjust for the change of char table structure.
20586 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20587 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20588 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20589 (char_table_translate, optimize_sub_char_table)
20590 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20591 chartab.c.
20592 (char_table_ref_and_index): Delete.
20593 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20594 (Fmd5): Call preferred_coding_system instead of accessing
20595 Vcoding_category_list. Adjust for the new code-conversion API.
20596 (syms_of_fns): Move defsubr for char table related functions to
20597 chartab.c.
20598
20599 * fontset.c: Mostly re-written.
20600
20601 * fontset.h (struct font_info): Change type of the member encoding_type.
20602 (enum FONT_SPEC_INDEX): New enum.
20603 (fontset_font_pattern, fs_load_font): Update prototype.
20604 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20605
20606 * indent.c: Include "character.h" instead of "charset.h".
20607 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20608
20609 * insdel.c: Include "character.h" instead of "charset.h".
20610 (copy_text): Don't refer to Vnonascii_translation_table.
20611 (insert_from_gap): New function.
20612
20613 * keyboard.c: Include "character.h" instead of "charset.h".
20614 (command_loop_1): Never call direct_output_forward_char before
20615 a non-ASCII character.
20616 (read_char): If Vkeyboard_translate_table is a char table, always
20617 translate a character.
20618
20619 * keymap.c: Include "character.h".
20620 (store_in_keymap): Handle the case that IDX is a cons.
20621 (Fdefine_key): Handle the case that KEY is a cons and the car part
20622 is also a cons (range).
20623 (push_key_description): Adjust for the new character code.
20624 (describe_vector): Call describe_char_table for a char table.
20625 (describe_char_table): New function.
20626
20627 * keymap.h (describe_char_table): Extern it.
20628
20629 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20630 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20631 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20632 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20633 Delete.
20634 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20635 structure.
20636 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20637 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20638 (CHARTAB_SIZE_BITS_3): New macros.
20639 (chartab_size): Extern it.
20640 (struct Lisp_Char_Table): Re-design.
20641 (struct Lisp_Sub_Char_Table): New structure.
20642 (HASH_KEY, HASH_VALUE): Move from fns.c.
20643 (CHARACTERBITS): Define as 22.
20644 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20645 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20646 (GC_SUB_CHAR_TABLE_P): New macro.
20647 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20648 (code_convert_string_norecord): Deleted extern.
20649 (init_character_once, syms_of_character, init_charset)
20650 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20651
20652 * lread.c: Include "character.h".
20653 (read_multibyte): New arg NBYTES.
20654 (read_escape): Change the meaning of returned *BYTEREP.
20655 (to_multibyte): Delete.
20656 (read1): Adjust the handling of char table and string.
20657
20658 * print.c: Include "character.h" instead of "charset.h".
20659 (print_string): Convert 8-bit raw bytes to octal form by
20660 string_escape_byte8.
20661 (print_object): Adjust for the new multibyte form. Print 8-bit
20662 raw bytes always in octal form. Handle sub char table correctly.
20663
20664 * process.c: Include "character.h" instead of "charset.h".
20665 (read_process_output, send_process): Adjust for the new
20666 code-conversion API.
20667
20668 * puresize.h (BASE_PURESIZE): Increase.
20669
20670 * regex.c: Include "character.h" instead of "charset.h".
20671 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20672 (regex_compile): Accept a range whose starting and ending
20673 character have different leading bytes.
20674 (analyse_first): Adjust for the above change.
20675
20676 * search.c: Include "character.h" instead of "charset.h".
20677 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20678 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20679
20680 * syntax.c: Include "character.h" instead of "charset.h".
20681 (syntax_parent_lookup): Delete.
20682 (Fmodify_syntax_entry): Accept a cons as CHAR.
20683 (skip_chars): Adjust for the new multibyte form.
20684 (init_syntax_once): Call char_table_set_range instead of directly
20685 accessing the structure of a char table.
20686
20687 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20688 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20689 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20690 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20691
20692 * term.c: Include "buffer.h" and "character.h".
20693 (encode_terminal_code, write_glyphs): Adjust for the new
20694 code-conversion API.
20695 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20696
20697 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20698
20699 * xdisp.c: Include "character.h".
20700 (get_next_display_element): Adjust for the new multibyte form.
20701 (disp_char_vector): Adjust for the new char table structure.
20702 (decode_mode_spec_coding): Adjust for the new structure of
20703 coding system.
20704 (decode_mode_spec): Adjust for the new code-conversion API.
20705
20706 * xfaces.c: Include "character.h" instead of "charset.h".
20707 (load_face_font): Adjust for the change of choose_face_font and
20708 FS_LOAD_FONT.
20709 (generate_ascii_font): New function.
20710 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20711 (set_font_frame_param): Adjust for the change of choose_face_font.
20712 (free_realized_face): Make it public.
20713 (free_realized_faces_for_fontset): Rename from
20714 free_realized_multibyte_face. Free also faces realized for ASCII.
20715 (choose_face_font): Change arguments. Adjust for the change of
20716 fontset_font_pattern and FS_LOAD_FONT.
20717
20718 * xfns.c: Include "character.h".
20719 (x_encode_text): Adjust for the new code-conversion API.
20720
20721 * xselect.c: Don't include "charset.h".
20722 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20723
20724 * xterm.c: Include "character.h".
20725 (x_encode_char): New argument CHARSET. Change caller.
20726 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20727 Call ENCODE_CHAR instead of SPLIT_CHAR.
20728 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20729 CHAR_WIDTH instead of CHARSET_WIDTH.
20730 (XTread_socket): Adjust for the new code-conversion API.
20731 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20732 (x_load_font): Adjust for the change of struct font.
20733
207342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20735
20736 * xfaces.c (face_at_buffer_position): Remove unused vars.
20737
207382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20739
20740 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20741 Fix overflow checking.
20742
207432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20744
20745 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20746 Cancel previous change.
20747
207482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20749
20750 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20751 ccl->eight_bit_control. Fix check for buffer overflow.
20752 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20753 (ccl_driver): Initialize extra_bytes to 0.
20754
207552008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20756
20757 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20758 return it ORed with ctrl_modifier.
20759
207602008-01-29 Miles Bader <miles@gnu.org>
20761
20762 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20763
207642008-01-28 Jason Rumney <jasonr@gnu.org>
20765
20766 * w32.c (stat): Don't double check for networked drive.
20767
207682008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20769
20770 * window.c (run_window_configuration_change_hook): New function.
20771 Code extracted from set_window_buffer. Set the selected frame.
20772 (set_window_buffer): Use it.
20773 * window.h (run_window_configuration_change_hook): Declare.
20774 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20775
20776 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20777
207782008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20779
20780 * Makefile.in: Remove references to unused macros.
20781
207822008-01-26 Eli Zaretskii <eliz@gnu.org>
20783
20784 * w32.c (g_b_init_get_sid_sub_authority)
20785 (g_b_init_get_sid_sub_authority_count): New static variables.
20786 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20787 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20788 (init_user_info): Use them to retrieve uid and gid.
20789 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20790 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20791 st_uid and st_gid of the file.
20792
207932008-01-26 Jason Rumney <jasonr@gnu.org>
20794
20795 * w32.c (logon_network_drive): New function.
20796 (stat): Use it.
20797
207982008-01-26 Chong Yidong <cyd@stupidchicken.com>
20799
20800 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20801 invisible text covered with an ellipsis.
20802
208032008-01-25 Richard Stallman <rms@gnu.org>
20804
20805 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20806 jump back to beginning. Move some other initializations after that.
20807 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20808 New variables.
20809 (syms_of_xdisp): Init them.
20810
20811 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20812
20813 * buffer.c (reset_buffer_local_variables):
20814 Implement `permanent-local-hook'.
20815 (Qpermanent_local_hook): New variable.
20816 (syms_of_buffer): Init and staticpro it.
20817
208182008-01-25 Michael Albinus <michael.albinus@gmx.de>
20819
20820 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20821
208222008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20823
20824 * fns.c (Fclrhash): Return TABLE.
20825
208262008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20827
20828 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20829 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20830 is set even without positional changes.
20831 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20832
20833 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20834
208352008-01-23 Jason Rumney <jasonr@gnu.org>
20836
20837 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20838
20839 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20840 the unicode range available in MULE by locale-coding-system.
20841 Improve dbcs lead byte detection. Set event timestamp and modifiers
20842 earlier.
20843
208442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20845
20846 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20847 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20848 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20849 when used on child processes.
20850
208512008-01-21 Michael Albinus <michael.albinus@gmx.de>
20852
20853 * dbusbind.c (Fdbus_method_return_internal): Rename from
20854 Fdbus_method_return.
20855 (Fdbus_unregister_object): Move to dbus.el.
20856 (Fdbus_call_method, Fdbus_method_return_internal)
20857 (Fdbus_send_signal): Improve debug messages.
20858
208592008-01-20 Martin Rudalics <rudalics@gmx.at>
20860
20861 * undo.c (undo_inhibit_record_point): New variable.
20862 (syms_of_undo): Initialize it.
20863 (record_point): Don't record point when undo_inhibit_record_point
20864 is set.
20865
208662008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20867
20868 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20869
20870 * xdisp.c (Qauto_hscroll_mode): New var.
20871 (syms_of_xdisp): Initialize it.
20872 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20873 window's buffer.
20874 (hscroll_windows): Don't check automatic_hscrolling_p here.
20875
20876 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20877 vscroll if we're setting window-buffer to the value it already has.
20878
208792008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20880
20881 * m/intel386.h: Remove references to XENIX.
20882
208832008-01-17 Andreas Schwab <schwab@suse.de>
20884
20885 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20886 instead of HAVE_X86_64_LIB64_DIR.
20887 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20888
208892008-01-17 Glenn Morris <rgm@gnu.org>
20890
20891 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20892 to HAVE_X86_64_LIB64_DIR.
20893
208942008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20895
20896 * s/irix3-3.h:
20897 * s/irix4-0.h:
20898 * s/386-ix.h:
20899 * s/domain.h:
20900 * s/hpux9-x11r4.h:
20901 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20902
20903 * sysdep.c: Remove code containing references to symbols defined
20904 by unsupported systems.
20905
209062008-01-16 Glenn Morris <rgm@gnu.org>
20907
20908 * coding.c (select-safe-coding-system-function): Doc fix.
20909
209102008-01-15 Glenn Morris <rgm@gnu.org>
20911
20912 * config.in: Revert 2008-01-13 change: this is a generated file.
20913
209142008-01-13 Tom Tromey <tromey@redhat.com>
20915
20916 * lisp.h: Fix typo.
20917
209182008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20919
20920 * m/sequent-ptx.h:
20921 * m/sequent.h:
20922 * s/ptx.h:
20923 * s/ptx4-2.h:
20924 * s/ptx4.h: Remove files for systems no longer supported.
20925
20926 * callproc.c (Fcall_process): Fix previous change.
20927
209282008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20929
20930 * unexsunos4.c: Remove file, system not supported anymore.
20931
20932 * m/mips.h:
20933 * m/intel386.h:
20934 * callproc.c:
20935 * config.in:
20936 * ecrt0.c:
20937 * emacs.c:
20938 * fileio.c:
20939 * frame.c:
20940 * getpagesize.h:
20941 * keyboard.c:
20942 * lread.c:
20943 * process.c:
20944 * puresize.h:
20945 * sysdep.c:
20946 * systty.h:
20947 * syswait.h:
20948 * unexec.c:
20949 * xdisp.c:
20950 * alloc.c: Remove code containing references to symbols defined by
20951 unsupported systems.
20952
209532008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20954
20955 * coding.c (detect_coding_mask): Fix previous change.
20956
209572008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20958
20959 * coding.c (detect_coding_iso2022): New arg
20960 latin_extra_code_state. Allow Latin extra codes only
20961 when *latin_extra_code_state is nonzero.
20962 (detect_coding_mask): If there is a NULL byte, detect the encoding
20963 as UTF-16 or binary. If Latin extra codes exist, detect the
20964 encoding as ISO-2022 only when there's no other proper encoding is
20965 found.
20966
209672008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20968
20969 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20970 #ifdef MAC_OS.
20971
209722008-01-08 Richard Stallman <rms@gnu.org>
20973
20974 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20975
209762008-01-06 Nick Roberts <nickrob@snap.net.nz>
20977
20978 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20979 menu bar in parentheses.
20980
209812008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20982
20983 * m/7300.h:
20984 * m/acorn.h:
20985 * m/alliant-2800.h:
20986 * m/alliant.h:
20987 * m/alliant1.h:
20988 * m/alliant4.h:
20989 * m/altos.h:
20990 * m/amdahl.h:
20991 * m/apollo.h:
20992 * m/att3b.h:
20993 * m/aviion-intel.h:
20994 * m/aviion.h:
20995 * m/celerity.h:
20996 * m/clipper.h:
20997 * m/cnvrgnt.h:
20998 * m/convex.h:
20999 * m/cydra5.h:
21000 * m/delta88k.h:
21001 * m/dpx2.h:
21002 * m/dual.h:
21003 * m/elxsi.h:
21004 * m/f301.h:
21005 * m/gould-np1.h:
21006 * m/gould.h:
21007 * m/i860.h:
21008 * m/ibmps2-aix.h:
21009 * m/ibmrt-aix.h:
21010 * m/ibmrt.h:
21011 * m/irist.h:
21012 * m/is386.h:
21013 * m/isi-ov.h:
21014 * m/mega68.h:
21015 * m/mg1.h:
21016 * m/news-r6.h:
21017 * m/news-risc.h:
21018 * m/news.h:
21019 * m/nh3000.h:
21020 * m/nh4000.h:
21021 * m/ns16000.h:
21022 * m/ns32000.h:
21023 * m/nu.h:
21024 * m/orion.h:
21025 * m/orion105.h:
21026 * m/paragon.h:
21027 * m/pfa50.h:
21028 * m/plexus.h:
21029 * m/pyramid.h:
21030 * m/pyrmips.h:
21031 * m/sh3el.h:
21032 * m/sps7.h:
21033 * m/sr2k.h:
21034 * m/stride.h:
21035 * m/sun1.h:
21036 * m/sun2.h:
21037 * m/sun3-68881.h:
21038 * m/sun3-fpa.h:
21039 * m/sun3-soft.h:
21040 * m/sun3.h:
21041 * m/sun386.h:
21042 * m/symmetry.h:
21043 * m/tad68k.h:
21044 * m/tahoe.h:
21045 * m/targon31.h:
21046 * m/tek4300.h:
21047 * m/tekxd88.h:
21048 * m/tower32.h:
21049 * m/tower32v3.h:
21050 * m/ustation.h:
21051 * m/wicat.h:
21052 * m/xps100.h:
21053 * s/cxux.h:
21054 * s/cxux7.h:
21055 * s/dgux.h:
21056 * s/dgux4.h:
21057 * s/dgux5-4-3.h:
21058 * s/dgux5-4r2.h:
21059 * s/esix.h:
21060 * s/esix5r4.h:
21061 * s/hiuxmpp.h:
21062 * s/hiuxwe2.h:
21063 * s/iris3-5.h:
21064 * s/iris3-6.h:
21065 * s/isc2-2.h:
21066 * s/isc3-0.h:
21067 * s/isc4-0.h:
21068 * s/isc4-1.h:
21069 * s/newsos5.h:
21070 * s/newsos6.h:
21071 * s/osf1.h:
21072 * s/osf5-0.h:
21073 * s/riscix1-1.h:
21074 * s/riscix12.h:
21075 * s/sco4.h:
21076 * s/sco5.h:
21077 * s/sunos4-0.h:
21078 * s/sunos4-1.h:
21079 * s/sunos413.h:
21080 * s/sunos4shr.h:
21081 * s/umax.h:
21082 * s/unipl5-2.h:
21083 * s/xenix.h:
21084 * cxux-crt0.s:
21085 * unexapollo.c:
21086 * unexconvex.c:
21087 * unexenix.c:
21088 * unexsni.c: Remove files for systems no longer supported.
21089
21090 * m/intel386.h: Remove references to unsupported systems.
21091
21092 * w32.c (get_emacs_configuration): Remove reference to i860.
21093
21094 * sysdep.c: Remove dead code.
21095
210962008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
21097
21098 * s/rtu.h:
21099 * m/masscomp.h: Remove files. Platform is obsolete.
21100
211012008-01-04 Michael Albinus <michael.albinus@gmx.de>
21102
21103 * dbusbind.c (Fdbus_method_return): New function.
21104 (xd_read_message): Add the serial number to the event.
21105 (Fdbus_register_method): Activate the function.
21106
211072008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
21108
21109 * keyboard.c (read_key_sequence): Fix typo.
21110
211112008-01-03 Michael Albinus <michael.albinus@gmx.de>
21112
21113 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
21114 (xd_signature, xd_append_arg): Handle element type detection for
21115 empty arrays.
21116 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
21117 SDATA () calls; this must be solved more general.
21118 (Fdbus_register_signal): Use SBYTES instead of strlen.
21119
211202008-01-03 Magnus Henoch <magnus@zemdatav>
21121
21122 * dbusbind.c (xd_append_arg): Use unsigned char instead of
21123 unsigned int for byte values (necessary for big-endian platform).
21124 (Fdbus_call_method): Handle the case of no returned arguments.
21125
211262007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
21127
21128 * dbusbind.c (xd_read_message): Use non-static input_event struct.
21129
211302007-12-31 Magnus Henoch <mange@freemail.hu>
21131
21132 * dbusbind.c (xd_signature): Signature of variant is just "v".
21133
211342007-12-30 Michael Albinus <michael.albinus@gmx.de>
21135
21136 * dbusbind.c: Fix several errors and compiler warnings.
21137 Reported by Tom Tromey <tromey@redhat.com>.
21138 (XD_ERROR, XD_DEBUG_MESSAGE)
21139 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
21140 (xd_append_arg): Part for basic D-Bus types rewritten.
21141 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
21142 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
21143 appropriate.
21144 (xd_read_message): Return Qnil. Don't signal an error; it is not
21145 useful during event reading.
21146 (Fdbus_register_signal): Signal an error if the check for
21147 FUNCTIONP fails.
21148 (Fdbus_register_method): New function. The implementation is not
21149 complete, the call of the function signals an error therefore.
21150 (Fdbus_unregister_object): New function, renamed from
21151 Fdbus_unregister_signal. The initial check signals an error, if
21152 the object is not well formed.
21153
211542007-12-30 Richard Stallman <rms@gnu.org>
21155
21156 * textprop.c (get_char_property_and_overlay):
21157 Signal error if POSITION is out of range in a buffer.
21158
211592007-12-29 Martin Rudalics <rudalics@gmx.at>
21160
21161 * w32fns.c (Fx_create_frame): Make copy of frame parameters
21162 because the original parameters are in pure storage now.
21163
211642007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21165
21166 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
21167
211682007-12-22 Eli Zaretskii <eliz@gnu.org>
21169
21170 * callint.c (syms_of_callint) <command-history>: Add reference to
21171 history-length in the doc string.
21172
211732007-12-17 Jason Rumney <jasonr@gnu.org>
21174
21175 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
21176 before passing as wParam.
21177
211782007-12-22 Michael Albinus <michael.albinus@gmx.de>
21179
21180 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
21181 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
21182 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
21183 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
21184 as number.
21185 (Fdbus_call_method): Fix docstring.
21186
211872007-12-21 Michael Albinus <michael.albinus@gmx.de>
21188
21189 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
21190 New macros.
21191 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
21192 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
21193 Simplify.
21194 (xd_signature): New function.
21195 (xd_append_arg): Compute also signatures. Major rewrite.
21196 (xd_retrieve_arg): Make debug messages friendly.
21197 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
21198 Check for signatures of arguments.
21199
212002007-12-19 Michael Albinus <michael.albinus@gmx.de>
21201
21202 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
21203 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
21204 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
21205 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
21206 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
21207 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
21208 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
21209 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
21210 (xd_retrieve_value): Remove. Functionality included in ...
21211 (xd_append_arg): New function.
21212 (Fdbus_call_method, Fdbus_send_signal): Apply it.
21213
212142007-12-16 Michael Albinus <michael.albinus@gmx.de>
21215
21216 * dbusbind.c (top): Include <stdio.h>.
21217 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
21218 dbus_message_new_method_call and dbus_message_new_signal.
21219 (Fdbus_register_signal): Rename unique_name to uname.
21220 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
21221 non-existing unique name. Fix typos in matching rule. Return an
21222 object which is useful in Fdbus_unregister_signal.
21223 (Fdbus_unregister_signal): Reimplementation, in order to remove
21224 only the corresponding entry.
21225 (Vdbus_registered_functions_table): Change the order of entries.
21226 Apply these changes in xd_read_message and Fdbus_register_signal.
21227
212282007-12-16 Andreas Schwab <schwab@suse.de>
21229
21230 * fileio.c (Finsert_file_contents): Fix overflow check to not
21231 depend on undefined integer overflow.
21232
212332007-12-14 Jason Rumney <jasonr@gnu.org>
21234
21235 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
21236 for characters above 127.
21237
212382007-12-13 Jason Rumney <jasonr@gnu.org>
21239
21240 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
21241 before dereferencing array.
21242 (lookup_vk_code): Remove zero comparison.
21243
212442007-12-14 Michael Albinus <michael.albinus@gmx.de>
21245
21246 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
21247 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
21248 Use `unsigned int' instead of `uint'.
21249 (xd_read_message, Fdbus_register_signal): Split expressions into
21250 multiple lines before operators "&&" and "||", according to the
21251 GNU Coding Standards.
21252
212532007-12-14 Eli Zaretskii <eliz@gnu.org>
21254
21255 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
21256
212572007-12-12 Juri Linkov <juri@jurta.org>
21258
21259 * buffer.c (Frename_buffer): In interactive spec replace
21260 `read-buffer' with `read-string' that uses `buffer-name-history'
21261 as history, and the current buffer's name as default.
21262
212632007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
21264
21265 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21266 manipulating the backtrace manually.
21267 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21268 (struct backtrace, backtrace_list): Remove.
21269 (command_loop_1): Remove dead var `no_direct'.
21270
21271 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21272 preserve non-built-in buffer-local variables.
21273 (Fkill_all_local_variables): Don't re-create&re-set permanent
21274 buffer-local variables.
21275
212762007-12-09 Juri Linkov <juri@jurta.org>
21277
21278 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21279 Lisp code that uses `read-buffer' with current buffer as default.
21280
212812007-12-08 Michael Albinus <michael.albinus@gmx.de>
21282
21283 * dbusbind.c (xd_read_message): Generate an event for every
21284 registered handler. There might be several handlers registered
21285 for the same signal.
21286 (Fdbus_register_signal): Don't overwrite a registration for the
21287 same signal. Add a new registration if handlers are different.
21288 (Vdbus_registered_functions_table): Rework doc string.
21289
212902007-12-07 Michael Albinus <michael.albinus@gmx.de>
21291
21292 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21293 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21294 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21295 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21296 Unify argument lists.
21297 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21298 arguments and hash table keys. Use unique name for service.
21299 (Fdbus_unregister_signal): Remove checks.
21300 (Vdbus_registered_functions_table): Fix doc string.
21301
213022007-12-05 Magnus Henoch <mange@freemail.hu>
21303
21304 * process.c (make_process): Initialize pty_flag to 0.
21305
213062007-12-05 Jason Rumney <jasonr@gnu.org>
21307
21308 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21309 specified XBMs.
21310
213112007-12-05 Richard Stallman <rms@gnu.org>
21312
21313 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21314
213152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21316
21317 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21318 New variable.
21319 (mac_try_close_socket) [MAC_OSX]: New function.
21320 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21321 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21322
21323 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21324 Use mac_try_close_socket.
21325
213262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21327
21328 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21329 reloc_base.
21330 (copy_dysymtab): Compute relocation base here.
21331 (rebase_reloc_address) [__ppc64__]: New function.
21332 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21333 changed.
21334
213352007-12-05 Jason Rumney <jasonr@gnu.org>
21336
21337 * w32proc.c (sys_spawnve): Quote args with wildcards.
21338
213392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21340
21341 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21342 __objc_* sections.
21343 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21344
213452007-12-05 Michael Albinus <michael.albinus@gmx.de>
21346
21347 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21348 Move check for Vdbus_registered_functions_table to
21349 xd_read_queued_messages.
21350 (xd_read_queued_messages): Protect xd_read_message calls by
21351 internal_condition_case_1.
21352
213532007-12-04 Michael Albinus <michael.albinus@gmx.de>
21354
21355 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21356 Qdbus_system_bus and Qdbus_session_bus, respectively.
21357 (Vdbus_intern_symbols): Remove.
21358 (Vdbus_registered_functions_table): New hash table.
21359 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21360 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21361 Rewrite in order to manage registered functions by hash table
21362 Vdbus_registered_functions_table.
21363
213642007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21365
21366 * xterm.c: Update URL to Window Manager Specification in comment.
21367
213682007-12-02 Michael Albinus <michael.albinus@gmx.de>
21369
21370 * config.in (HAVE_DBUS): Add.
21371
21372 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21373 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21374 (obj): Add $(DBUS_OBJ).
21375 (LIBES): Add $(DBUS_LIBS).
21376 (dbusbind.o): New target.
21377
21378 * dbusbind.c: New file.
21379
21380 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21381
21382 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21383 (Qdbus_event): New Lisp symbol.
21384 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21385 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21386 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21387
21388 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21389
213902007-12-01 Richard Stallman <rms@gnu.org>
21391
21392 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21393
213942007-11-30 Jason Rumney <jasonr@gnu.org>
21395
21396 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21397 (w32con_reset_terminal_modes): Clear screen buffer.
21398 (w32_face_attributes): Don't use color indexes that are out of range.
21399 Only reverse the default colors.
21400
21401 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21402 WINDOWSNT.
21403
21404 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21405
214062007-11-29 Jason Rumney <jasonr@gnu.org>
21407
21408 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21409 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21410 if the terminal colors are initialized.
21411 (unspecified_fg, unspecified_bg): Remove unused declarations.
21412
214132007-11-29 Andreas Schwab <schwab@suse.de>
21414
21415 * keyboard.c (apply_modifiers): Fix typo.
21416
214172007-11-29 Richard Stallman <rms@gnu.org>
21418
21419 * keymap.c (Fcurrent_local_map): Doc fix.
21420
214212007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21422
21423 * s/gnu-kfreebsd.h: New file.
21424
214252007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21426
21427 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21428 Don't cast redundantly.
21429
21430 * keyboard.c (KEY_TO_CHAR): New macro.
21431 (parse_modifiers, apply_modifiers): Accept integer arguments.
21432 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21433 for chars and symbol keys.
21434 After doing such remapping, apply function-key-map again.
21435
214362007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21437
21438 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21439 compiled anymore.
21440
214412007-11-26 Andreas Schwab <schwab@suse.de>
21442
21443 * process.c (list_processes_1): Fix indentation level of the
21444 command column.
21445
214462007-11-23 Andreas Schwab <schwab@suse.de>
21447
21448 * editfns.c (Fformat): Handle %c specially since it requires the
21449 argument to be of type int.
21450
214512007-11-23 Markus Triska <markus.triska@gmx.at>
21452
21453 * emacs.c (main): Call init_editfns before init_process, since
21454 init_process sets Vprocess_connection_type depending on OS release.
21455
214562007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21457
21458 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21459 (find_symbol_value): Use do_symval_forwarding.
21460
21461 * data.c (set_internal): Set the value in the `cons-cell' (for
21462 Buffer_Local_values) not only for frame-local variables.
21463
214642007-11-22 Andreas Schwab <schwab@suse.de>
21465
21466 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21467 values to sprintf.
21468 * keymap.c (Fsingle_key_description): Likewise.
21469 * print.c (print_object): Likewise.
21470
214712007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21472
21473 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21474 file for image is nil.
21475
214762007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21477
21478 * term.c: Include stdarg.h.
21479 (fatal): Implement using varargs.
21480 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21481
214822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21483
21484 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21485 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21486 Update call to buffer_slot_type_mismatch.
21487 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21488 (buffer_slot_type_mismatch): Update.
21489 * buffer.c (buffer_local_types): Remove.
21490 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21491 (defvar_per_buffer): Set the type in the buffer_objfwd.
21492
214932007-11-21 Jason Rumney <jasonr@gnu.org>
21494
21495 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21496 CreateFileMapping returns NULL on failure.
21497
214982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21499
21500 * search.c (Fset_match_data): Remove the `evaporate' feature.
21501 (unwind_set_match_data): Don't use the `evaporate' feature.
21502
215032007-11-21 Jason Rumney <jasonr@gnu.org>
21504
21505 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21506
21507 * w32console.c (w32con_write_glyphs): Remove unused variables.
21508
215092007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21510
21511 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21512
21513 * s/darwin.h (MULTI_KBOARD): Remove.
21514
21515 * macfns.c (x_create_tip_frame, Fx_create_frame)
21516 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21517
215182007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21519
21520 * buffer.c (Fbuffer_local_value): Remove redundant test.
21521 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21522 than in `current-buffer' to match the comment.
21523 Do the swap using swap_in_global_binding.
21524
21525 * data.c (store_symval_forwarding, set_internal):
21526 * eval.c (specbind): Remove dead code.
21527
21528 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21529 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21530 Since we do not want to see internal Lisp_*fwd objects here.
21531
215322007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21533
21534 * sysdep.c (init_system_name): Use getaddrinfo if available.
21535
21536 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21537 (x_scroll_bar_note_movement): start, end, with, height in struct
21538 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21539
215402007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21541
21542 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21543
215442007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21545
21546 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21547 This undoes Richard's change of 14-Oct-2002.
21548
21549 * alloc.c (allocate_other_vector):
21550 * lisp.h (allocate_other_vector): Remove.
21551
21552 * window.c (struct save_window_data): Move non-lisp data to the end
21553 and make it `int' rather than Lisp_Object.
21554 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21555 Done wrap/unwrap integer values.
21556 (Fset_window_configuration, compare_window_configurations):
21557 Update use of fields to their new types.
21558
21559 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21560 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21561 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21562 (SET_SCROLL_BAR_X_WINDOW): Remove.
21563 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21564 Access the new x_window field directly.
21565 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21566 Don't wrap/unwrap integers into Lisp_Objects.
21567 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21568 (x_scroll_bar_report_motion):
21569 Don't wrap/unwrap integers into Lisp_Objects.
21570 (x_term_init): Use SDATA.
21571 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21572 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21573 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21574 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21575 * xfns.c (x_set_background_color):
21576 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21577 Access the new x_window field directly.
21578
21579 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21580 (allocate_pseudovector): Make non-static.
21581
21582 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21583 (allocate_pseudovector): Declare.
21584 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21585
215862007-11-15 Andreas Schwab <schwab@suse.de>
21587
21588 * editfns.c (Fformat): Correctly format EMACS_INT values.
21589 Also take precision into account when formatting an integer.
21590
21591 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21592
215932007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21594
21595 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21596 (syms_of_keyboard): Defsubr it.
21597
21598 * data.c (swap_in_global_binding): Fix longstanding bug where
21599 store_symval_forwarding was not called with the right second argument,
21600 thus causing objfwd-ing from being dropped.
21601
216022007-11-14 Juanma Barranquero <lekktu@gmail.com>
21603
21604 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21605 (Fx_display_pixel_height, Fx_display_planes)
21606 (Fx_display_color_cells, Fx_server_max_request_size)
21607 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21608 (Fx_display_visual_class, Fx_display_save_under):
21609 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21610 (Fx_display_pixel_height, Fx_display_planes)
21611 (Fx_display_color_cells, Fx_server_max_request_size)
21612 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21613 (Fx_display_mm_height, Fx_display_mm_width)
21614 (Fx_display_backing_store, Fx_display_visual_class)
21615 (Fw32_select_font, Fx_display_save_under):
21616 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21617 (Fx_display_pixel_height, Fx_display_planes)
21618 (Fx_display_color_cells, Fx_server_max_request_size)
21619 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21620 (Fx_display_save_under): Fix typos in docstrings.
21621
216222007-11-14 Juanma Barranquero <lekktu@gmail.com>
21623
21624 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21625 corresponding to deleted entries; they are an implementation detail.
21626 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21627 Remove variables.
21628 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21629 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21630 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21631 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21632 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21633 (Fw32_define_rgb_color, Fw32_load_color_file)
21634 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21635 Fix typos in docstrings.
21636 (Fx_server_version): Reflow docstring.
21637 (Fw32_shell_execute): Doc fixes.
21638
216392007-11-13 Juanma Barranquero <lekktu@gmail.com>
21640
21641 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21642 if w32_parse_hot_key returned nil.
21643
216442007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21645
21646 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21647
216482007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21649
aac0c6e3
MR
21650 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21651
21652 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21653
21654 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21655 Remove W32_SCROLL_BAR_CLICK_EVENT.
21656
21657 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21658 Add MULTIMEDIA_KEY_EVENT.
21659
21660 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21661 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21662 (make_lispy_event) [WINDOWSNT]: Use it to translate
21663 MULTIMEDIA_KEY_EVENT.
21664
21665 * w32term.h (WM_APPCOMMAND): Define if not already.
21666 (GET_APPCOMMAND_LPARAM): Likewise.
21667
21668 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21669 WM_APPCOMMAND.
21670
21671 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21672 (syms_of_w32fns): Export and initialize it.
21673 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21674
216752007-11-09 Chong Yidong <cyd@stupidchicken.com>
21676
21677 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21678 twice.
21679
21680 * xdisp.c (handle_face_prop): Fix last change.
21681
216822007-11-09 Richard Stallman <rms@gnu.org>
21683
21684 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21685 not just for after-strings and before-strings.
21686 Call face_for_overlay_string and pass the overlay to it.
21687 (handle_display_prop): Determine whether property came from an overlay.
21688 Pass OVERLAY arg to handle_single_display_spec.
21689 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21690 (load_overlay_strings): Fill in it->string_overlays.
21691 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21692
21693 * xfaces.c (face_for_overlay_string): Function renamed from
21694 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21695
21696 * dispextern.h (struct it): New elt string_overlays.
21697 New elt from_overlay, also in stack.
21698 Rearrange a few elements.
21699 (face_for_overlay_string): Decl renamed from
21700 face_at_buffer_position_no_overlays, and add argument.
21701
217022007-11-09 Richard Stallman <rms@gnu.org>
21703
21704 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21705 to get the base face for an overlay string.
21706
21707 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21708
21709 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21710
21711 * xdisp.c (handle_stop): Move some code out of loop.
21712
217132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21714
21715 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21716 Fix conversion from Lisp object to ATSUFontID.
21717
217182007-11-09 Jason Rumney <jasonr@gnu.org>
21719
21720 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21721
217222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21723
21724 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21725 Don't assume regions are aligned to page boundary.
21726 (print_load_command_name): Add LC_UUID if defined.
21727
217282007-11-09 Richard Stallman <rms@gnu.org>
21729
21730 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21731
217322007-11-07 Jason Rumney <jasonr@gnu.org>
21733
21734 * s/windows95.h: Remove.
21735
217362007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21737
21738 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21739 abort with a message on unhandled store_type values.
21740
217412007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21742
21743 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21744 Remove HAVE_X11R5 and HAVE_X11R4.
21745
217462007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21747
21748 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21749
217502007-11-01 Johan Bockgård <bojohan@gnu.org>
21751
21752 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21753 Don't set s->stippled_p here, since it has already been set by
21754 x_set_glyph_string_gc from x_draw_glyph_string.
21755
217562007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21757
21758 * sunfns.c: Remove file.
21759
21760 * m/sun386.h:
21761 * m/sun2.h:
21762 * m/sparc.h: Remove Sun windows code.
21763
217642007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21765
21766 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21767 (init_keyboard): Set current_kboard's window-system to nil.
21768 (tty_read_avail_input): Typo.
21769 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21770
217712007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21772
21773 * s/usg5-4.h:
21774 * s/usg5-3.h:
21775 * s/ptx.h:
21776 * m/is386.h:
21777 * m/ibmps2-aix.h:
21778 * Makefile.in: Remove all mentions of X10.
21779
21780 * dispnew.c (syms_of_display): Don't mention version 10.
21781
217822007-10-28 Juanma Barranquero <lekktu@gmail.com>
21783
21784 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21785 ($(BLD)/abbrev.$(O)): Remove.
21786
217872007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21788
21789 Rewrite abbrev.c in Elisp.
21790 * image.c (Qcount): Don't declare as extern.
21791 (syms_of_image): Initialize and staticpro `Qcount'.
21792 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21793 * emacs.c (main): Don't call syms_of_abbrev.
21794 * Makefile.in (obj): Remove abbrev.o.
21795 (abbrev.o): Remove.
21796 * abbrev.c: Remove.
21797
217982007-10-26 Martin Rudalics <rudalics@gmx.at>
21799
21800 * window.c (window_min_size_2): Don't count header-line.
21801
218022007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21803
21804 * frame.h (struct frame): Move all bit fields after the first bit
21805 field to take advantage of the available space. Group all the
21806 chars together to reduce wasted space due to padding.
21807
218082007-10-26 Juanma Barranquero <lekktu@gmail.com>
21809
21810 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21811
21812 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21813 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21814 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21815 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21816 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21817 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21818 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21819 (last_marked, mark_object_loop_halt): Make static.
21820
21821 * frame.c (syms_of_frame) <delete-frame-functions>:
21822 Fix typo in docstring.
21823
218242007-10-25 Juanma Barranquero <lekktu@gmail.com>
21825
21826 * w32.c (init_environment): Fix tiny memory leak.
21827 (w32_get_resource): Remove unused variable `ok'.
21828
218292007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21830
21831 Make `window-system' into a keyboard-local variable (rather than
21832 frame-local as done originally by multi-tty).
21833
21834 * keyboard.h (struct kboard): Add Vwindow_system.
21835 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21836 (mark_kboards): Mark Vwindow_system.
21837
21838 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21839 (init_display): Don't set the obsolete `window-system' frame-param.
21840
21841 * xterm.c (x_term_init):
21842 * w32term.c (w32_create_terminal):
21843 * term.c (init_tty): Set Vwindow_system.
21844 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21845 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21846
21847 * xfns.c (Fx_create_frame, x_create_tip_frame):
21848 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21849 * macfns.c (Fx_create_frame):
21850 Don't set the obsolete `window-system' frame-param.
21851
21852 * frame.h (Qwindow_system): Remove.
21853 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21854 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21855
218562007-10-24 Richard Stallman <rms@gnu.org>
21857
21858 * frame.c (x_figure_window_size): For fullscreen case,
21859 set USPosition | PPosition without clobbering rest of window_prompting.
21860
21861 * keyboard.c (Fcurrent_idle_time): Doc fix.
21862
21863 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21864
218652007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21866
21867 * process.c (unwind_request_sigio): Only define if __ultrix__.
21868
21869 * callproc.c (child_setup): Remove spurious *.
21870
21871 * lisp.h (Fget_text_property): Declare.
21872 (have_menus_p): Declare it here rather than in sys-dep header files.
21873 * macterm.h (have_menus_p):
21874 * msdos.h (have_menus_p):
21875 * xterm.h (have_menus_p): Remove.
21876
21877 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21878 (Fmake_variable_frame_local): Just check the variable's const-ness
21879 rather than checking nil or t.
21880
218812007-10-22 Jason Rumney <jasonr@gnu.org>
21882
21883 * w32fns.c: Include math.h.
21884 (w32_abort): Declaration moved to nt/config.nt.
21885
21886 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21887 (abort): Redefinition moved to nt/config.nt.
21888
21889 * m/windowsnt.h: Remove.
21890
218912007-10-22 Juanma Barranquero <lekktu@gmail.com>
21892
21893 * emacs.c (Fdump_emacs): Fix typo in message.
21894 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21895 <installation-directory>: Reflow docstring.
21896
218972007-10-22 Juri Linkov <juri@jurta.org>
21898
21899 * minibuf.c: Allow minibuffer default to be a list of default values.
21900 With empty input use the first element of this list as returned default.
21901 (string_to_object)
21902 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21903 (read_minibuf): If defalt is cons, set histstring to its car.
21904 (Fread_string): If default_value is cons, set val to its car.
21905 (Fread_buffer): If def is cons, use its car.
21906 (Fcompleting_read): If defalt is cons, set val to its car.
21907
219082007-10-21 Michael Albinus <michael.albinus@gmx.de>
21909
21910 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21911
219122007-10-20 Juanma Barranquero <lekktu@gmail.com>
21913
21914 * doc.c (Fdocumentation): Check for advice in all cases.
21915
219162007-10-19 Chong Yidong <cyd@stupidchicken.com>
21917
21918 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21919
219202007-10-19 Richard Stallman <rms@gnu.org>
21921
21922 * doc.c (Fdocumentation): Check for and handle an advised function.
21923
219242007-10-19 Juanma Barranquero <lekktu@gmail.com>
21925
21926 * process.c (Fset_process_filter): Doc fix.
21927
219282007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21929
21930 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21931 which caused key-translation-map to applied repeatedly (thus breaking
21932 double-mode).
21933
219342007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21935
21936 * xselect.c (x_own_selection, x_handle_selection_clear)
21937 (x_clear_frame_selections):
21938 * w32menu.c (list_of_panes, list_of_items):
21939 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21940 * textprop.c (validate_plist, interval_has_all_properties)
21941 (interval_has_some_properties, interval_has_some_properties_list)
21942 (add_properties, text_property_list):
21943 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21944 * minibuf.c (Fassoc_string):
21945 * macselect.c (x_own_selection, x_clear_frame_selections)
21946 (Fx_disown_selection_internal):
21947 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21948 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21949
219502007-10-17 Chong Yidong <cyd@stupidchicken.com>
21951
21952 * process.c: Link to libs for calling res_init() if available.
21953 (Fmake_network_process): Call res_init() before getaddrinfo or
21954 gethostbyname, if possible.
21955
219562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21957
21958 * lread.c (read1): Set pvectype for char_tables.
21959
21960 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21961 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21962 Add type checks.
21963 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21964
21965 * alloc.c (free_misc): Use XMISCTYPE.
21966 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21967
219682007-10-17 Glenn Morris <rgm@gnu.org>
21969
21970 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21971 (syms_of_minibuf): Add Qcompletion_ignore_case.
21972 * dired.c (Qcompletion_ignore_case): Change to external.
21973 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21974 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21975 (Fread_file_name): Use it rather than intern'ing.
21976
21977 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21978 (Fread_coding_system): Ignore case of user input.
21979
219802007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21981
21982 * xdisp.c (handle_display_prop): Ignore display specs after
21983 replacing one when string text is being replaced.
21984 (handle_single_display_spec): Pretend as if characters with display
21985 property haven't been consumed only when buffer text is being replaced.
21986
219872007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21988
21989 * xfns.c (Fx_create_frame, Fx_display_list):
21990 * window.c (window_fixed_size_p, enlarge_window)
21991 (shrink_window_lowest_first):
21992 * macterm.c (init_font_name_table):
21993 * macfns.c (Fx_create_frame, Fx_display_list):
21994 * lread.c (close_load_descs):
21995 * keyboard.c (read_char_x_menu_prompt):
21996 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21997 * coding.c (code_convert_region_unwind): Test the type of an object
21998 rather than just !NILP before extracting data from it.
21999
22000 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
22001
22002 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
22003 (XMISCANY): New macro.
22004 (XMISCTYPE): Use it.
22005 (struct Lisp_Misc_Any): New type.
22006 (union Lisp_Misc): Use it.
22007 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
22008 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
22009 (find_symbol_value, set_internal, default_value, Fset_default)
22010 (Fmake_variable_buffer_local, Fmake_local_variable)
22011 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
22012 (Flocal_variable_if_set_p, Fvariable_binding_locus):
22013 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
22014 * alloc.c (allocate_buffer): Set the size and tag.
22015 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
22016 Use XMISCANY.
22017 (die): Follow the GNU convention for error messages.
22018 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
22019 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
22020 tag any more.
22021 (set_buffer_internal_1):
22022 * frame.c (store_frame_param):
22023 * eval.c (specbind):
22024 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
22025
22026 * doc.c (Fsnarf_documentation): Simplify.
22027
220282007-10-14 Juanma Barranquero <lekktu@gmail.com>
22029
22030 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
22031 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
22032
220332007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
22034
22035 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
22036
220372007-10-14 Juanma Barranquero <lekktu@gmail.com>
22038
22039 * eval.c (do_autoload): Don't save autoloads.
22040
22041 * data.c (Ffset): Save autoload of the function being set.
22042
220432007-10-07 John Paul Wallington <jpw@pobox.com>
22044
22045 * xfns.c (x_create_tip_frame): Set the `display-type' frame
22046 parameter before setting up faces.
22047
220482007-10-13 Eli Zaretskii <eliz@gnu.org>
22049
22050 * ccl.c (Fregister_code_conversion_map):
22051 * keyboard.c (append_tool_bar_item): Reformat last change.
22052
22053 * lisp.h (eabs): Rename from `abs'. All callers changed.
22054
220552007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
22056
22057 * buffer.c (add_overlay_mod_hooklist):
22058 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
22059 * fontset.c (make_fontset):
22060 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
22061 (append_tool_bar_item):
22062 * macmenu.c (grow_menu_items):
22063 * w32menu.c (grow_menu_items):
22064 * xmenu.c (grow_menu_items): Use larger_vector.
22065
220662007-10-13 Eli Zaretskii <eliz@gnu.org>
22067
22068 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
22069 selected frame'' on MSDOS).
22070
220712007-10-12 Martin Rudalics <rudalics@gmx.at>
22072
22073 * frame.c (Qexplicit_name): New variable.
22074 (x_report_frame_params): Report it in parameter alist.
22075 (syms_of_frame): Intern and staticpro it.
22076
220772007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
22078
22079 * macfns.c (x_create_tip_frame): Set terminal for frame.
22080
220812007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
22082
22083 * frame.c (Qenvironment): Remove.
22084 (syms_of_frame) <Qenvironment>: Don't initialize.
22085 (Fdelete_frame): Don't treat the `environment' param specially.
22086 * frame.h (Qenvironment): Don't declare.
22087 * callproc.c (set_initial_environment): Don't set unused frame param.
22088
22089 * frame.c (Fframe_with_environment): Remove.
22090 (syms_of_frame) <Sframe_with_environment>: Don't declare.
22091
22092 * lisp.h (Fframe_with_environment): Don't declare.
22093
220942007-10-10 Juanma Barranquero <lekktu@gmail.com>
22095
22096 * indent.c (indent_tabs_mode, last_known_column)
22097 (last_known_column_modified): Make static.
22098 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
22099
221002007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
22101
22102 * puresize.h (BASE_PURESIZE): Increase to 1170000.
22103
221042007-10-09 Jason Rumney <jasonr@gnu.org>
22105
22106 * w32term.c (x_set_window_size): Disable code that attempts to tell
22107 Lisp code about a size change before it actually happens.
22108
221092007-10-09 Richard Stallman <rms@gnu.org>
22110
22111 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
22112 return HANDLED_RETURN.
22113
221142007-10-08 Martin Rudalics <rudalics@gmx.at>
22115
22116 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
22117 when there's an unread command event.
22118
22119 * frame.c (focus_follows_mouse): Move here from frame.el to allow
22120 window autoselection act appropriately when leaving selected frame.
22121 (syms_of_frame): Initialize focus_follows_mouse.
22122 * frame.h (focus_follows_mouse): Extern it.
22123 * macterm.c (XTread_socket): When focus_follows_mouse is nil
22124 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
22125 * msdos.c (dos_rawgetc): Likewise.
22126 * w32term.c (w32_read_socket): Likewise.
22127 * xterm.c (handle_one_xevent): Likewise.
22128 * xdisp.c (syms_of_xdisp): In doc-string of
22129 mouse-autoselect-window mention focus-follows-mouse.
22130
221312007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22132
22133 * macterm.c (mac_load_query_font): Fix missing return value.
22134 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
22135 Add BLOCK_INPUT.
22136
221372007-10-08 Richard Stallman <rms@gnu.org>
22138
22139 * xdisp.c (get_window_cursor_type): Implement documented behavior
22140 for cursor-in-non-selected-windows = t.
22141
221422007-10-08 Jason Rumney <jasonr@gnu.org>
22143
22144 * w32.c (w32_get_resource): Always close registry keys.
22145
221462007-10-08 Jason Rumney <jasonr@gnu.org>
22147
22148 * makefile.w32-in (LIBS): Add COMCTL32.
22149
22150 * w32fns.c (globals_of_w32fns): Init common controls.
22151
221522007-10-08 Richard Stallman <rms@gnu.org>
22153
22154 * image.c (our_memory_buffer): Rename from omfib_buffer.
22155
221562007-10-08 Richard Stallman <rms@gnu.org>
22157
22158 * buffer.c (Foverlays_at): Doc fix.
22159
221602007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
22161
22162 * fns.c (Fplist_put): Preserve uneven tail data.
22163
221642007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
22165
22166 * termhooks.h (enum event_kind): Remove trailing comma.
22167
22168 * frame.h (enum): Remove trailing comma.
22169
221702007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
22171
22172 * w32proc.c (delete_child): Don't terminate threads of zombies.
22173
221742007-10-08 Martin Rudalics <rudalics@gmx.at>
22175
22176 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
22177
22178 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
22179 last-repeatable-command.
22180 (init_kboard): Initialize Vlast_repeatable_command.
22181 (command_loop_1): Set it to real_this_command unless that was
22182 bound to an input event.
22183 (mark_kboards): Mark it.
22184
221852007-10-08 Richard Stallman <rms@gnu.org>
22186
22187 * eval.c (condition-case): Doc fix.
22188
221892007-10-08 Masatake YAMATO <jet@gyve.org>
22190
22191 * xfaces.c (tty_supports_face_attributes_p): Fix code
22192 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
22193 was copied and not edited.
22194
221952007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
22196
22197 Add new `input-decode-map' keymap and use it for terminal
22198 escape sequences.
22199 * keyboard.h (struct kboard): Add Vinput_decode_map.
22200 Remove Vlocal_key_translation_map.
22201 * keyboard.c (read_key_sequence): Add support for input-decode-map.
22202 (init_kboard): Init input-decode-map.
22203 Replace local-key-translation-map back with key-translation-map.
22204 (syms_of_keyboard): Declare input-decode-map.
22205 Remove local-key-translation-map. Update docstrings.
22206 (mark_kboards): Mark Vinput_decode_map.
22207 Don't mark Vlocal_key_translation_map.
22208 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
22209 Replace local-key-translation-map back with key-translation-map.
22210 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
22211 Bind in input-decode-map rather than function-key-map.
22212
22213 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
22214 This was made redundant by the previous introduction of XSETPVECTYPE.
22215
222162007-10-09 Richard Stallman <rms@gnu.org>
22217
22218 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
22219
222202007-09-29 Richard Stallman <rms@gnu.org>
22221
22222 * eval.c (internal_condition_case_2, internal_condition_case_1)
22223 (internal_condition_case): Reenable abort if x_catching_errors ()
22224 to see if that really happens and why.
22225
222262007-10-06 Andreas Schwab <schwab@suse.de>
22227
22228 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
22229
222302007-10-04 Juanma Barranquero <lekktu@gmail.com>
22231
22232 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
22233
222342007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
22235
22236 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
22237
222382007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
22239
22240 * window.h (struct window):
22241 * window.c (struct save_window_data, struct saved_window):
22242 * termhooks.h (struct terminal):
22243 * process.h (struct Lisp_Process):
22244 * frame.h (struct frame):
22245 * buffer.h (struct buffer):
22246 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
22247 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
22248 The size field of (pseudo)vectors is now unsigned.
22249 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
22250
22251 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
22252 Turn `count' into an integer.
22253
22254 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
22255 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
22256 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
22257 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
22258 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
22259
22260 * alloc.c (allocate_pseudovector): New fun.
22261 (ALLOCATE_PSEUDOVECTOR): New macro.
22262 (allocate_window, allocate_terminal, allocate_frame)
22263 (allocate_process): Use it.
22264 (mark_vectorlike): New function.
22265 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22266 (mark_terminals): Use it.
22267 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22268 (Fmake_byte_code): Use XSETPVECTYPE.
22269
22270 * frame.c (Fframe_parameters): Minor simplification.
22271
22272 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22273
22274 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22275
22276 * buffer.c (Fget_buffer_create, init_buffer_once):
22277 * lread.c (defsubr):
22278 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22279
22280 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22281 defined differently in the m/*.h files.
22282 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22283 (XSETPVECTYPE): New macro.
22284 (XSETPSEUDOVECTOR): Use it.
22285
22286 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22287 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22288
22289 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22290 * lread.c (defvar_per_buffer):
22291 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22292
22293 * window.c (candidate_window_p): Only consider as visible frames that
22294 are on the same terminal.
22295
22296 * m/ibms390x.h (MARKBIT): Remove unused macro.
22297
222982007-10-01 Juanma Barranquero <lekktu@gmail.com>
22299
22300 * lread.c (Fload): Fix typo in docstring.
22301
223022007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22303
22304 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22305 of a non-zero value can't yield zero.
22306
223072007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22308
22309 * term.c (term_clear_mouse_face, term_mouse_highlight)
22310 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22311
22312 * print.c (safe_debug_print): Use XHASH.
22313
22314 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22315 Lisp elements such as tags.
22316 (XHASH): New macro.
22317 (EQ): Use it.
22318 (SREF, SSET, STRING_COPYIN): Use SDATA.
22319 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22320
22321 * alloc.c (mark_terminal): Remove left-over declaration.
22322 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22323 (allocate_vectorlike): Remove type argument. Adjust callers.
22324 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22325 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22326
22327 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22328 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22329 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22330 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22331 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22332 Use them.
22333
22334 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22335 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22336 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22337
223382007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22339
22340 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22341 loaded by default.
22342
223432007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22344
22345 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22346 on this tty.
22347 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22348
22349 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22350 Update all users.
22351 (handle_one_term_event): Use Gpm_DrawPointer.
22352 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22353 Signal errors instead of returning nil. Always return nil.
22354 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22355 Make it a noop if gpm-mouse was not activated.
22356 (syms_of_term): Update names.
22357
223582007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22359
22360 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22361 (init_sys_modes): Check that gpm_tty is the current tty.
22362
22363 * alloc.c (allocate_terminal): Set the vector size to only count the
22364 lisp fields. Initialize those to nil.
22365 (mark_object): Don't treat terminals specially.
22366 (mark_terminal): Remove.
22367 (mark_terminals): Use mark_object instead.
22368
22369 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22370 the GC to the beginning.
22371
22372 * indent.h:
22373 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22374
22375 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22376
223772007-09-25 Jason Rumney <jasonr@gnu.org>
22378
22379 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22380
22381 * w32console.c (create_w32cons_output): Remove.
22382
22383 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22384
22385 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22386 (reset_sys_modes): Use reset_terminal_modes_hook.
22387
223882007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22389
22390 * eval.c (do_autoload): Don't output any message.
22391
223922007-09-24 Juri Linkov <juri@jurta.org>
22393
22394 * emacs.c (standard_args): Change priority of "--no-splash"
22395 from 40 to 3. Add "--no-desktop" with the same priority.
22396
223972007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22398
22399 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22400 and optimize the case where they are all 1.
22401
224022007-09-23 Johannes Weiner <hannes@saeurebad.de>
22403
22404 * lisp.h (abs): Define if not defined.
22405 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22406 Don't define `abs', since it's defined in lisp.h.
22407
224082007-09-22 Eli Zaretskii <eliz@gnu.org>
22409
22410 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22411 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22412 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22413 (init_tty): Use DEV_TTY instead of "/dev/tty".
22414 [WINDOWSNT]: No need to protect from NAME arg being null.
22415
224162007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22417
22418 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22419 up the tty state.
22420
224212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22422
22423 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22424 (gpm_tty): Change its type.
22425 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22426 (gpm_tty): Change its type and initialize it.
22427 (Fterm_open_connection): Check the frame is indeed a tty.
22428 Use the new gpm_tty.
22429 (Fterm_close_connection): Use the new gpm_tty.
22430 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22431 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22432
224332007-09-21 Juanma Barranquero <lekktu@gmail.com>
22434
22435 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22436 underline_color, to draw strike-through.
22437
224382007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22439
22440 * lisp.h (allocate_terminal): Declare.
22441
22442 * window.c (candidate_window_p): Consider frames that are being placed
22443 by the user as somewhere between visible and iconified.
22444 (window_loop): Prefer windows on the current frame.
22445 (Fselect_window): Move the use of select-frame to the beginning so we
22446 can just delegate all the work (it'll call us back anyway).
22447
22448 * frame.c (Qdisplay_environment_variable):
22449 * frame.h (Qdisplay_environment_variable): Delete.
22450
22451 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22452 of the first arg, since that value may be a union.
22453
22454 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22455 parameter rather than Qdisplay_environment_variable. If all else
22456 fails, look for DISPLAY in initial-environment.
22457
224582007-09-21 Glenn Morris <rgm@gnu.org>
22459
22460 * Makefile.in (emacstool): Remove target.
22461 (lisp, shortlisp): Remove termdev.elc.
22462
224632007-09-21 Markus Triska <markus.triska@gmx.at>
22464
22465 * xterm.c (x_delete_display): Compile session management conditionally.
22466
224672007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22468
22469 * callproc.c (getenv_internal_1): New function.
22470 (getenv_internal): Use it.
22471 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22472
22473 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22474 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22475 (Fset_terminal_parameter): Work with dead terminals as well.
22476 (Fmodify_terminal_parameters): Remove.
22477
22478 * terminal.c (get_terminal): Handle terminals.
22479 Make sure the terminal returned is live.
22480 (create_terminal): Use allocate_terminal.
22481 (mark_terminals): Move to alloc.c.
22482 (delete_terminal): Use terminal->name as liveness status.
22483 NULL out fields after freeing their contents.
22484 Don't deallocate the object.
22485 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22486 rather than an int.
22487 (Fterminal_live_p): Accept non-integer arguments.
22488 (Fterminal_list): Return terminal objects rather than an ints.
22489
22490 * alloc.c (enum mem_type): New member for `terminal' objects.
22491 (allocate_terminal): New function.
22492 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22493 Handle terminals.
22494 (mark_terminal): New fun.
22495 (mark_terminals): Move from terminal.c.
22496
22497 * term.c (get_tty_terminal): Don't treat output_initial specially.
22498 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22499 (delete_tty): Use terminal->name as liveness status.
22500
22501 * termhooks.h (struct terminal): Make it into a pseudovector.
22502 Remove `deleted' replaced by checking `name's nullness.
22503
22504 * print.c (print_object): Handle terminals.
22505
22506 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22507 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22508
22509 * frame.c (make_terminal_frame):
22510 * keyboard.c (tty_read_avail_input):
22511 * w32term.c (x_delete_terminal):
22512 * xfns.c (Fx_create_frame, x_create_tip_frame):
22513 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22514
225152007-09-20 Glenn Morris <rgm@gnu.org>
22516
22517 * process.c (Fmake_network_process): Doc fix.
22518
225192007-09-19 Jason Rumney <jasonr@gnu.org>
22520
22521 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22522
225232007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22524
22525 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22526 Fix a C warning regarding variable constness.
22527
22528 * xterm.c (handle_one_xevent): Fix a C warning.
22529
225302007-09-18 Jason Rumney <jasonr@gnu.org>
22531
22532 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22533
225342007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22535
22536 * gtkutil.c (gdpy_def): New variable.
22537 (xg_initialize): Initialize gdpy_def.
22538 (xg_display_close): If no other display exists, set gdpy_def to a
22539 new connection.
22540
225412007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22542
22543 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22544 when we have no file name for the icon.
22545 (xg_tool_bar_expose_callback): Remove.
22546 (xg_create_tool_bar): Don't connect expose signal to
22547 xg_tool_bar_expose_callback.
22548 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22549
225502007-09-16 Andreas Schwab <schwab@suse.de>
22551
22552 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22553 values instead of zapping them.
22554
225552007-09-14 Glenn Morris <rgm@gnu.org>
22556
22557 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22558 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22559 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22560 scope and rename to omfib_buffer for clarity.
22561 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22562
225632007-09-14 Kenichi Handa <handa@m17n.org>
22564
22565 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22566
225672007-09-13 Jason Rumney <jasonr@gnu.org>
22568
22569 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22570
22571 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22572
22573 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22574 (mac_term_init): Call here instead, passing rif.
22575
225762007-09-13 Glenn Morris <rgm@gnu.org>
22577
22578 * s/hpux.h: No longer define `static' as nothing.
22579
225802007-09-13 Johan Bockgård <bojohan@gnu.org>
22581
22582 * callint.c (Fcall_interactively): Remove unused var `fun'.
22583
225842007-09-12 Romain Francoise <romain@orebokech.com>
22585
22586 * window.c (prefer_window_split_horizontally, display_buffer):
22587 Revert 2007-09-08 change.
22588
225892007-09-12 Glenn Morris <rgm@gnu.org>
22590
22591 * alloca.c: Remove file.
22592 * Makefile.in (alloca): Do not undef.
22593 (allocaobj, alloca.o): Remove.
22594 (otherobj): Remove allocaobj.
22595 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22596 * regex.c (C_ALLOCA): Remove all references and code that was only
22597 used when this was defined.
22598 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22599 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22600 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22601
22602 * Makefile.in (SOURCES, unlock, relock): Delete.
22603
22604 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22605 (menu_grab_callback): All uses changed.
22606
22607 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22608 (x_reply_selection_request): All uses changed.
22609
226102007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22611
22612 * lread.c (load_warn_old_style_backquotes): Change message to look
22613 better when it appears in the middle of byte-compiler messages.
22614
226152007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22616
22617 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22618
22619 * xterm.c (x_create_terminal): Add comment.
22620
22621 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22622
226232007-09-10 Richard Stallman <rms@gnu.org>
22624
22625 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22626
226272007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22628
22629 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22630 (DEFUN): Document `intspec', use it instead of `prompt'.
22631
22632 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22633
22634 * data.c (Finteractive_form): If the interactive specification starts
22635 with a `(', use it as a Lisp form.
22636
22637 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22638 name and file modes.
22639
22640 * callint.c (Fcall_interactively): Comment fixes.
22641
226422007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22643
22644 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22645 and compiled functions.
22646
226472007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22648
22649 * window.c (prefer_window_split_horizontally): New variable.
22650 (display_buffer): Consider splitting window horizontally depending
22651 on prefer_window_split_horizontally.
22652
226532007-09-08 Eli Zaretskii <eliz@gnu.org>
22654
22655 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22656
226572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22658
22659 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22660
22661 * frame.c (x_set_frame_parameters): Check number is positive before
22662 using XFASTINT.
22663
22664 * window.c (freeze_window_start): Don't presume selected_window holds
22665 a window object.
22666 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22667
226682007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22669
22670 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22671
226722007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22673
22674 * window.c (Vsplit_window_preferred_function): New var.
22675 (Fdisplay_buffer): Use it.
22676 (syms_of_window): Export, and initialize it.
22677
226782007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22679
22680 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22681
226822007-09-06 Glenn Morris <rgm@gnu.org>
22683
22684 * gtkutil.c (menu_grab_callback) <cnt>:
22685 * xselect.c (x_reply_selection_request) <cnt>: Move static
22686 variable to file scope.
22687
226882007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22689
22690 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22691 consistent values of selected_frame and selected_window.
22692
226932007-09-04 Jason Rumney <jasonr@gnu.org>
22694
22695 * w32console.c (initialize_w32_display): Zero unused hooks.
22696
226972007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22698
22699 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22700 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22701
227022007-09-04 Jason Rumney <jasonr@gnu.org>
22703
22704 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22705 in w32console.c. Set up input. Remove XXX comments that have been
22706 confirmed as correct.
22707
22708 * s/ms-w32.h (MULTI_KBOARD): Define.
22709
22710 * w32console.c (one_and_only_w32cons): Remove.
22711 (initialize_w32_display): Take terminal argument.
22712
22713 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22714 initialize_w32_display.
22715 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22716
22717 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22718
22719 * keyboard.c (discard_mouse_events): Discard it.
22720 (make_lispy_event): Translate it to a lisp event.
22721 (lispy_wheel_names): Add wheel-left and right events.
22722 (syms_of_keyboard): Enlarge wheel_syms.
22723
22724 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22725 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22726
22727 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22728
22729 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22730 from WM_MOUSEHWHEEL.
22731 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22732
22733 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22734 terminal.
22735
22736 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22737 keyboard for the terminal.
22738
227392007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22740
22741 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22742 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22743 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22744 and resume-tty-function to resume-tty-hook.
22745 (Fsuspend_tty, Fresume_tty): Use new names.
22746
227472007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22748
22749 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22750 if it starts with "n:".
22751
227522007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22753
22754 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22755
227562007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22757
22758 * frame.h:
22759 * frame.c (Qterm_environment_variable): Remove.
22760 (syms_of_frame): Don't init and staticpro it.
22761
22762 * callproc.c (getenv_internal): Remove special case for $TERM.
22763
22764 * callproc.c (Vinitial_environment): New variable.
22765 (set_initial_environment): Initialize it.
22766 (syms_of_callproc): Declare it.
22767 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22768 TERM under which a process runs is never related to the TERM in which
22769 Emacs is running.
22770
227712007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22772
22773 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22774 * s/darwin.h: ... do it here.
22775
227762007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22777
22778 * lisp.h (set_initial_environment): Rename from set_global_environment.
22779
22780 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22781 removed by mistake on the multi-tty branch.
22782
22783 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22784 (Fmodify_frame_parameters): Return a value.
22785
22786 * image.c (png_load): Comment-out var only used in commented-out code.
22787
22788 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22789 before passing it to mark_object.
22790
22791 * xfaces.c (internal_resolve_face_name): Return a value.
22792 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22793
22794 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22795 (x_icon): Comment-out var only used in commented-out code.
22796
227972007-08-29 Romain Francoise <romain@orebokech.com>
22798
22799 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22800 QUIT hasn't been provided.
22801
228022007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22803
22804 * callproc.c (child_setup, getenv_internal): Use the
22805 display-environment-variable and term-environment-variable frame params.
22806 (set_initial_environment): Initialise Vprocess_environment.
22807
22808 * config.in: Disable multi-keyboard support on a mac.
22809
22810 * frame.c (Qterm_environment_variable)
22811 (Qdisplay_environment_variable): New variables.
22812 (syms_of_frame): Intern and staticpro them.
22813 (Fmake_terminal_frame): Disable output method test.
22814
22815 * frame.h: Declare them here.
22816
22817 * macfns.c (x_set_mouse_color): Get rif from the frame.
22818 (x_set_tool_bar_lines): Don't use updating_frame.
22819 (mac_window): Add 2 new parameters for consistency with other systems.
22820 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22821 frame parameters following what is done in X11 and w32. Don't use
22822 FRAME_MAC_DISPLAY_INFO.
22823 (Fx_open_connection, start_hourglass): Remove window-system check.
22824 (x_create_tip_frame): Get the keyboard from the terminal.
22825
22826 * macmenu.c: Reorder includes.
22827 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22828
22829 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22830 terminal parameter.
22831 (x_clear_frame): Add a frame parameter.
22832 (note_mouse_movement): Get rif from the frame.
22833 (mac_term_init): Initialize the terminal.
22834 (mac_initialize): Make static and move terminal initialization ...
22835 (mac_create_terminal): ... to this new function.
22836
22837 * macterm.h (struct mac_display_info): Add terminal.
22838 (mac_initialize): Delete declaration.
22839
22840 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22841
22842 * sysdep.c: Comment out text after #endif.
22843
22844 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22845 is defined. Better initialize ttys in windows. Use terminal
22846 specific mouse_position_hook.
22847
22848 * termhooks.h (union display_info): Add mac_display_info.
22849
22850 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22851 Set the default minibuffer frame, window_system and the rest of the
22852 frame parameters following what is done in X11.
22853
22854 * w32term.c (w32_initialize): Make static.
22855
22856 * xselect.c (x_handle_selection_clear): Only access
22857 terminal->kboard when MULTI_KBOARD is defined.
22858
22859 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22860 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22861
228622007-08-29 Jason Rumney <jasonr@gnu.org>
22863
22864 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22865 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22866
22867 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22868 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22869
22870 * keyboard.c (restore_kboard_configuration): Only define when
22871 MULTI_KBOARD defined.
22872
22873 * makefile.w32-in: Update dependancies from Makefile.in.
22874 (OBJ1): Add terminal.$(O)
22875
22876 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22877 Don't define function body.
22878 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22879
22880 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22881
22882 * w32.c (request_sigio, unrequest_sigio): Remove.
22883
22884 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22885 (w32con_clear_frame, w32con_clear_end_of_line)
22886 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22887 (w32con_delete_glyphs, w32con_set_terminal_window)
22888 (scroll_line, w32_sys_ring_bell): Add frame arg.
22889 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22890 Add terminal arg.
22891 (PICK_FRAME): Remove.
22892 (w32con_write_glyphs): Use frame specific terminal coding.
22893 (one_and_only_w32cons): New global variable.
22894 (initialize_w32_display): Use it for storing hooks.
22895 (create_w32cons_output): New function.
22896
22897 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22898 arg a frame.
22899
22900 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22901 Set window_system.
22902 (x_set_tool_bar_lines): Don't use updating_frame.
22903 (Fx_create_frame): Set terminal and ref count.
22904 (Fx_open_connection): Remove window-system check.
22905
22906 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22907
22908 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22909 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22910 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22911 Add frame arg.
22912 (x_delete_terminal, w32_create_terminal): New functions.
22913 (w32_term_init): Create a terminal.
22914 (w32_initialize): Move terminal specific initialization to
22915 w32_create_terminal.
22916
22917 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22918 (w32_clear_rect, w32_clear_area): Use background from frame.
22919 (w32_display_info): Add terminal.
22920 (w32_sys_ring_bell, x_delete_display): Declare here.
22921
22922 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22923
22924 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22925
229262007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22927
22928 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22929 Fix get_named_tty calls for the controlling tty.
22930
229312007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22932
194d44e7 22933 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22934
229352007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22936
22937 * term.c (tty_insert_glyphs): Add missing first parameter.
22938
229392007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22940
22941 * buffer.c (Fbuffer_list, Fbury_buffer):
22942 Take frame->buried_buffer_list into account.
22943
22944 * cm.c (current_tty): New variable, for cmputc().
22945 (cmputc): Use it.
22946 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22947 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22948 (cmgoto): Add tty parameter. Pass it on to calccost().
22949 Use emacs_tputs() instead of tputs().
22950
22951 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22952 tputs().
22953 (current_tty): New variable, for cmputc().
22954 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22955
22956 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22957 (internal_condition_case, internal_condition_case_1)
22958 (internal_condition_case_2): Don't abort when x_catching_errors.
22959
22960 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22961 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22962 prevent crashes caused by bogus longjmps in read_char.
22963
22964 * keymap.h (Fset_keymap_parent): Add EXFUN.
22965
22966 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22967 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22968 Remove redundant definition.
22969
22970 * macfns.c (x_set_mouse_color, x_make_gc):
22971 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22972
22973 * w32term.c (x_free_frame_resources):
22974 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22975 (w32_initialize): Use the accessor macros for terminal characteristics.
22976
22977 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22978 Use the accessor macros for terminal characteristics.
22979 * msdos.c (internal_terminal_init): Use the accessor macros for
22980 terminal characteristics.
22981 (ScreenVisualBell, internal_terminal_init):
22982 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22983
22984 * termopts.h (no_redraw_on_reenter): Declare.
22985
22986 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22987 (mark_terminals, mark_ttys): Declare.
22988 (Fgarbage_collect): Call them.
22989 (mark_object): Mark buried_buffer_list.
22990
22991 * prefix-args.c: Include stdlib.h for exit.
22992
22993 * syssignal.h: Add comment.
22994
22995 * indent.c: Include stdio.h.
22996
22997 * window.h (Vinitial_window_system): Declare.
22998 (Vwindow_system): Delete declaration.
22999
23000 * fontset.c (Finternal_char_font): Use FRAME_RIF.
23001
23002 * image.c (lookup_image): Don't initialize `c' until the xasserts
23003 have been run.
23004
23005 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
23006 FRAME_FOREGROUND_PIXEL.
23007
23008 * print.c (print_preprocess): Don't lose print_depth levels while
23009 iterating.
23010
23011 * widget.c (update_from_various_frame_slots):
23012 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23013
23014 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
23015 frames.
23016 (window_internal_height): Remove bogus make_number call.
23017 (init_window_once): Call make_terminal_frame with two zero parameters.
23018
23019 * fileio.c (Fread_file_name): Update comment.
23020
23021 * callint.c (Fcall_interactively):
23022 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
23023 Make sure it is correctly unwound.
23024
23025 * xsmfns.c (x_session_close): New function.
23026
23027 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
23028 Delete declarations.
23029
23030 * xterm.h: Remove declaration for x_fully_uncatch_errors.
23031 (x_output): Remove background_pixel and foreground_pixel fields.
23032 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
23033 (x_delete_device, x_session_close): Declare.
23034
23035 * lread.c: Include setjmp.h. Update declaration of `read_char'.
23036 (read_filtered_event): Call `read_char' with a local
23037 `wrong_kboard_jmpbuf'.
23038
23039 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
23040 Don't call single_kboard_state. Use FRAME_RIF.
23041
23042 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
23043 systems.
23044
23045 * lisp.h (set_process_environment): Rename to `set_global_environment'.
23046 (Fframe_with_environment, Fset_input_meta_mode)
23047 (Fset_quit_char): EXFUN.
23048 (x_create_device, tty_output, terminal, tty_display_info): Declare.
23049 (init_sys_modes, reset_sys_modes): Update prototypes.
23050 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
23051
23052 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
23053 Vlocal_key_translation_map, and Vkeyboard_translate_table.
23054 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
23055 Delete declarations.
23056 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
23057 (temporarily_switch_to_single_kboard, tty_read_avail_input):
23058 New declarations.
23059
23060 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
23061 already does that during init_display(). Call syms_of_keymap
23062 before syms_of_keyboard. Call `syms_of_terminal'.
23063 Call set_initial_environment, not set_process_environment.
23064 (shut_down_emacs): Call reset_all_sys_modes() instead of
23065 reset_sys_modes().
23066
23067 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
23068 (internal_resolve_face_name, resolve_face_name_error): New functions.
23069 (resolve_face_name): Protect against loops and errors thrown by Fget.
23070 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
23071 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
23072
23073 * scroll.c: Replace CURTTY() with local variables throughout the
23074 file (where applicable).
23075 (calculate_scrolling, calculate_direct_scrolling)
23076 (scrolling_1, scroll_cost): Use the accessor macros for terminal
23077 characteristics.
23078
23079 * keymap.c (Vfunction_key_map): Remove.
23080 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
23081 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
23082 (Vkey_translation_map): Remove.
23083 (syms_of_keymap): Remove DEFVAR for key-translation-map.
23084 (Fdescribe_buffer_bindings)
23085 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
23086 Update for terminal-local key-translation-map.
23087
23088 * Makefile.in (callproc.o): Update dependencies.
23089 (lisp, shortlisp): Add termdev.elc.
23090 (obj): Add terminal.o.
23091 (terminal.o): Add dependencies.
23092 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
23093 (data.o, fns.o): Add termhooks.h dependency.
23094 (SOME_MACHINE_LISP): Add dnd.elc.
23095 (minibuf.o): Fix typo.
23096 Update dependencies.
23097
23098 * data.c (do_symval_forwarding, store_symval_forwarding)
23099 (find_symbol_value): Use the selected frame's keyboard, not
23100 current_kboard.
23101
23102 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
23103 Vwindow_system.
23104
23105 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
23106 Fmenu_bar_open.
23107 (syms_of_xmenu): Update defsubr.
23108 (mouse_position_for_popup, Fx_popup_menu)
23109 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
23110 (set_frame_menubar, free_frame_menubar)
b97439ce 23111 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
23112 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
23113 an X frame.
23114
23115 * xselect.c (x_own_selection): Abort if not an X frame.
23116 (some_frame_on_display): Check if it is an X frame.
23117 (x_handle_selection_clear): Deal with MULTI_KBOARD.
23118
23119 * coding.c: Include frame.h and termhooks.h.
23120 (terminal_coding, keyboard_coding): Delete.
23121 (Fset_terminal_coding_system_internal)
23122 (Fset_keyboard_coding_system_internal)
23123 (Fkeyboard_coding_system)
23124 (Fterminal_coding_system): Add a terminal parameter.
23125 Get terminal_coding from the terminal.
23126 (init_coding_once): Don't call setup_coding_system here.
23127
23128 * dispextern.h (set_scroll_region, turn_off_insert)
23129 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
23130 (tty_clear_end_of_line, tty_setup_colors)
23131 (delete_tty, updating_frame)
23132 (produce_special_glyphs, produce_glyphs, write_glyphs)
23133 (insert_glyphs): Remove.
23134 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
23135 (tty_turn_off_highlight, get_tty_size): Add declaration.
23136 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
23137
23138 * frame.h (enum output_method): Add output_initial.
23139 (struct x_output): Delete.
23140 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
23141 Access foreground_pixel and background_pixel directly from the frame.
23142 (tty_display): Delete.
23143 (struct frame): Add buried_buffer_list, foreground_pixel,
23144 background_pixel and terminal. Delete kboard.
23145 (union output_data): Add tty.
23146 (FRAME_KBOARD): Get the kboard from the terminal.
23147 (FRAME_INITIAL_P): New macro.
23148 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
23149 (Qterm_environment_variable, Qdisplay_environment_variable)
23150 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
23151 New declarations.
23152
23153 * termchar.h (tty_output, tty_display_info): New structures.
23154 (tty_list): Declare.
23155 (FRAME_TTY, CURTTY): New macros.
23156 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
23157 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
23158 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
23159 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
23160
23161 * callproc.c: Include frame.h and termhooks.h, for terminal
23162 parameters.
23163 (add_env): New function.
23164 (child_setup): Use it.
23165 (child_setup, getenv_internal): Handle the new Vprocess_environment.
23166 (getenv_internal): Fix get_terminal_param call.
23167 (Fgetenv_internal, egetenv): Update doc.
23168 (syms_of_callproc): Initialize Vprocess_environment to nil.
23169 Register and initialize them. Remove obsolete defvars. Update doc
23170 strings.
23171 (child_setup): Handle Vlocal_environment_variables.
23172 (getenv_internal): Add terminal parameter.
23173 Handle Vlocal_environment_variables.
23174 (Fgetenv_internal): Add terminal parameter.
23175 (child_setup, getenv_internal, Fgetenv_internal): Store the local
23176 environment in a frame (not terminal) parameter. Update doc strings.
23177 (set_initial_environment): Rename from set_global_environment.
23178 Store Emacs environment in initial frame parameter.
23179
23180 * xdisp.c (redisplay_internal): Update references to
23181 `previous_terminal_frame'.
23182 (display_mode_line, Fformat_mode_line): Replace calls to
23183 `push_frame_kboard' with `push_kboard'.
23184 (get_glyph_string_clip_rects): Add extra parentheses and
23185 braces to prevent compiler warnings.
23186 (calc_pixel_width_or_height): Add xassert to check that the
23187 frame is alive. Don't call `lookup_image' on a termcap frame.
23188 (message2_nolog, message3_nolog, redisplay_internal)
23189 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
23190 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
23191 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
23192 (Fx_display_pixel_width, Fx_display_pixel_height)
23193 (Fx_display_planes, Fx_display_color_cells)
23194 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
23195 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
23196 (Fx_display_backing_store, Fx_display_visual_class)
23197 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
23198 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
23199
23200 * xfns.c (x_set_foreground_color x_set_background_color)
23201 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
23202 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23203 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
23204 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
23205 terminal that is being deleted.
23206 (Fx_create_frame): Use `store_frame_param' to set `window-system'
23207 frame parameter, and make sure it overrides any user-supplied setting.
23208 (Fx_close_connection, Fx_synchronize): Unify argument names with
23209 the rest of the DEFUNs.
23210
23211 * dispnew.c (Fsend_string_to_terminal): Update call to
23212 `get_tty_terminal'.
23213 (Fredraw_frame, Fsend_string_to_terminal)
23214 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
23215 FRAME_TERMCAP_P and FRAME_TTY.
23216 (window_change_signal): Don't believe width/height values that are
23217 impossibly small.
23218 (Vinitial_window_system): Rename from Vwindow_system.
23219 (termscript, Wcm, rif): Delete.
23220
23221 * termhooks.h (struct terminal): New struct containing the
23222 previously global text display hooks and new members NAME,
23223 DELETED and PARAM_ALIST.
23224 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
23225 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
23226 (FRAME_RIF): New macros.
23227 (get_terminal_param, get_device): New declarations.
23228 (termscript): Delete declaration.
23229
23230 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
23231 (XTflash, x_free_frame_resources, x_scroll_bar_create)
23232 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
23233 FRAME_FOREGROUND_PIXEL.
23234 (x_fully_uncatch_errors): Disable definition.
23235 (x_scroll_bar_expose): Fix reference to foreground pixel.
23236 (XTread_socket): Disable loop on all X displays.
23237 (x_delete_terminal): Don't set terminal->deleted and let
23238 delete_terminal delete the frames on the terminal.
23239 (x_delete_display): Doc update to reflect changes in
23240 delete_terminal.
23241 (x_display_info) <terminal>: Move member earlier in the struct.
23242 (deleting_tty): Remove old variable.
23243 (Fsuspend_tty): Call clear_tty_hooks.
23244 (Fresume_tty, init_tty): Call set_tty_hooks.
23245 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
23246 errors on X frames.
23247 (x_catch_errors_unwind): Abort if x_error_message is NULL.
23248 (handle_one_xevent): Initialize `f' to NULL.
23249 (x_delete_terminal, x_create_terminal): New functions.
23250 (XTset_terminal_modes, XTreset_terminal_modes)
23251 (XTread_socket, x_connection_closed, x_term_init)
23252 (x_term_init, x_delete_display): Add terminal parameter.
23253 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
23254 X connections.
23255
23256 * frame.c: Include termchar.h.
23257 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
23258 (Qwindow_system, Qenvironment, Qterm_environment_variable)
23259 (Qdisplay_environment_variable): New vars.
23260 (Fframep): Deal with output_initial.
23261 (Fframe-live-p): Doc fix.
23262 (Fwindow-system): New function.
23263 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
23264 (make_terminal_frame): Don't create frames on a terminal that is
23265 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23266 (store_frame_param): Check for found_for_frame before calling XFRAME.
23267 (Fmake_terminal_frame): Handle NULL tty names correctly.
23268 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23269 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23270 frames to refer to a deleted frame in their 'environment parameter.
23271 (Fframe_with_environment): New function.
23272 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23273 (get_future_frame_param): New function.
23274 (Fmake_terminal_frame): Use it.
23275 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23276
23277 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23278 * sysdep.c (reset_sys_modes): Update for renames.
23279
23280 * keyboard.c (tty_read_avail_input): New function.
23281 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23282 (syms_of_keyboard): Defsubr them.
23283 (Fset_input_meta_mode, Fset_quit_char): New functions.
23284 (Fset_input_mode): Split to above functions.
23285 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23286 parameter. Use it in call to `read_char'.
23287 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23288 Set wrong_kboard_jmpbuf correctly in recursive calls.
23289 Use current_kboard to access Vkeyboard_translate_table.
23290 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23291 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23292 Update longjmp invocations. Remember the original current_kboard,
23293 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23294 changes it. Comment out unnecessary calls to
23295 `record_single_kboard_state' and `any_kboard_state'.
23296 Update recursive calls.
23297 (wrong_kboard_jmpbuf): Remove global variable.
23298 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23299 Handle deleted interrupted_kboards correctly; that is a legal
23300 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23301 and read_char calls. Abort if interrupted_kboard died in read_char.
23302 (any_kboard_state, single_kboard_state)
23303 (push_frame_kboard): Remove function.
23304 (pop_kboard): Switch out of single_kboard mode if the kboard has
23305 been deleted. Remove unused variable. Help debugging by not
23306 changing current_kboard unnecessarily. Set current_kboard to the
23307 kboard of the selected frame when the stored kboard object has
23308 been deleted before pop_kboard.
23309 (temporarily_switch_to_single_kboard): Change first parameter to a
23310 frame pointer. Throw an error when caller wants to change kboards
23311 while in single_kboard mode. Don't push_kboard if we weren't in
23312 single kboard state. Don't pop_kboard if we popped into any
23313 kboard state.
23314 (restore_kboard_configuration): Abort if pop_kboard changed the
23315 kboard in single_kboard mode. Call pop_kboard only after setting
23316 up single_kboard mode.
23317 (Frecursive_edit): Switch to single_kboard mode only in nested
23318 command loops.
23319 (cmd_error, command_loop, command_loop_1, timer_check):
23320 Comment out unnecessary call to `any_kboard_state' and
23321 `record_single_kboard_state'.
23322 (delete_kboard): Exit single_kboard mode if we have just deleted
23323 that kboard. Use FRAME_KBOARD.
23324 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23325 `fatal_error_signal'.
23326 (record_single_kboard_state): Don't push_kboard if we weren't in
23327 single kboard state. Don't pop_kboard if we popped into any
23328 kboard state.
23329 (push_frame_kboard): Rename to push_kboard.
23330 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23331 (read_avail_input): Read input from all terminals.
23332 (mark_kboards): Also mark Vkeyboard_translate_table.
23333 (kbd_buffer_store_event_hold): Simplify condition.
23334 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23335 (Vkeyboard_translate_table): Move to struct kboard.
23336 (init_kboard): Initialize Vkeyboard_translate_table.
23337 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23338 Vkeyboard_translate_table. Update doc strings. Update docs of
23339 local-function-key-map and function-key-map.
23340
23341 * terminal.c: New file.
23342
23343 * term.c: Include errno.h.
23344 (Vring_bell_function, device_list, initial_device)
23345 (next_device_id, ring_bell, update_begin, update_end)
23346 (set_terminal_window, cursor_to, raw_cursor_to)
23347 (clear_to_end, clear_frame, clear_end_of_line)
23348 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23349 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23350 (syms_of_term): Move their initialization to terminal.c.
23351 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23352 (Ftty_display_color_cells)
23353 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23354 (clear_tty_hooks, set_tty_hooks)
23355 (init_tty, maybe_fatal): New functions.
23356 (Ftty_type): Return nil if terminal is not on a tty instead of
23357 throwing an error. Doc update.
23358 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23359 Doc update. Initialize new subrs and variables.
23360 (delete_tty): Use terminal->deleted.
23361 (tty_set_terminal_modes): Rename from set_terminal_modes.
23362 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23363 (set_scroll_region): Rename to `tty_set_scroll_region'.
23364 (turn_on_insert): Rename to `tty_turn_on_insert'.
23365 (turn_off_insert): Rename to `tty_turn_off_insert'.
23366 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23367 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23368 (toggle_highligh): Rename to `tty_toggle_highlight'.
23369 (background_highlight): Rename to `tty_background_highlight'.
23370 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23371 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23372 (tty_set_scroll_region, tty_background_highlight)
23373 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23374 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23375 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23376 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23377 Add static modifier.
23378 (tty_reset_terminal_modes, tty_set_terminal_window)
23379 (tty_set_scroll_region, tty_background_highlight)
23380 (tty_highlight_if_desired, tty_cursor_to)
23381 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23382 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23383 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23384 renames.
23385
233862007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23387
23388 * keyboard.c: Qrtl is new.
23389 (parse_tool_bar_item): Handle :rtl keyword.
23390 (syms_of_keyboard): Intern :rtl keyword.
23391
23392 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23393
23394 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23395 so no Lisp code is executed.
23396 (file_for_image, find_rtl_image): New functions.
23397 (xg_get_image_for_pixmap): Use file_for_image.
23398 (update_frame_tool_bar): If direction is RTL, use RTL image if
23399 defined. Use Gtk stock images if defined.
23400
234012007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23402
23403 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23404 for nonexistent or zero-width glyph in composition glyph.
23405
234062007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23407
23408 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23409
23410 * xdisp.c (Finvisible_p): New function.
23411 (syms_of_xdisp): defsubr it.
23412
234132007-08-24 Juanma Barranquero <lekktu@gmail.com>
23414
23415 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23416 Doc fixes.
23417
234182007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23419
23420 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23421
234222007-08-24 Martin Rudalics <rudalics@gmx.at>
23423
23424 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23425 whether decoding has modified buffer contents.
23426
234272007-08-24 Jason Rumney <jasonr@gnu.org>
23428
23429 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23430 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23431 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23432 (init_svg_functions) [HAVE_NTGUI]: New function.
23433 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23434 (svg_load_image): Use them.
23435 (svg_load_image) [HAVE_NTGUI]: Implement background.
23436
234372007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23438
23439 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23440 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23441 (LIBX): Remove @RSVG_LIBS@.
23442 (LIBES): Add $(RSVG_LIBS).
23443
23444 * image.c (svg_load_image): Blend with specified background if exists.
23445 Use IMAGE_BACKGROUND. Add Mac OS Support.
23446
23447 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23448 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23449 Remove macros.
23450 [MAC_OSX] (socket_callback): Do nothing.
23451 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23452 ReceiveNextEvent.
23453 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23454 socket_callback.
23455 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23456
234572007-08-22 Glenn Morris <rgm@gnu.org>
23458
23459 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23460
234612007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23462
23463 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23464
23465 * image.c: Add support for SVG images. Some additional comments
23466 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23467 (svg_image_p): New function to test for SVG image.
23468 (svg_load): New function to load SVG image.
23469 (svg_load_image): New function, helper for svg_load.
23470 (Qsvg): New Lisp_object.
23471 (svg_keyword_index): New enum.
23472 (svg_format): New static `image_keyword' struct.
23473 (svg_type): New static `image_type' struct.
23474 (librsvg/rsvg.h): Include it.
23475
234762007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23477
23478 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23479
234802007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23481
23482 * lread.c (Qold_style_backquotes): New var.
23483 (syms_of_lread): Init and staticpro it.
23484 (load_warn_old_style_backquotes): New fun.
23485 (Fload): Use them to warn about old style backquotes.
23486 (end_of_file_error, Fload): Remove unused vars.
23487
23488 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23489
23490 * lread.c (Vold_style_backquotes): New var.
23491 (syms_of_lread): Init and export it to Elisp.
23492 (read1): Set it when we find an old-style (back)quote.
23493
234942007-08-22 Jason Rumney <jasonr@gnu.org>
23495
23496 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23497
234982007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23499
23500 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23501
235022007-08-19 Richard Stallman <rms@gnu.org>
23503
23504 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23505
235062007-08-19 Andreas Schwab <schwab@suse.de>
23507
23508 * alloc.c (pure): Round PURESIZE up.
23509
235102007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23511
23512 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23513 active frame.
23514
235152007-08-16 Richard Stallman <rms@gnu.org>
23516
23517 * eval.c (Fcommandp): Add parens to clarify.
23518
23519 * minibuf.c (Fall_completions): Use enum for type of table.
23520
23521 * emacs.c (USAGE2): Improve text.
23522
235232007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23524
23525 * term.c (tty_default_color_capabilities): Declare static
23526 variables in file scope, to avoid HPUX compiler problem.
23527
235282007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23529
23530 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23531 to gtk_toolbar_insert.
23532
235332007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23534
23535 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23536
23537 * insdel.c (reset_var_on_error): New fun.
23538 (signal_before_change, signal_after_change):
23539 Use it to reset (after|before)-change-functions to nil in case of error.
23540 Bind inhibit-modification-hooks to t.
23541 Don't bind (after|before)-change-functions to nil while they run.
23542
235432007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23544
23545 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23546 filling pixmap with stippled background.
23547
235482007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23549
23550 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23551 Don't use invisible frame as parent window for repositioning.
23552
235532007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23554
23555 * print.c (new_backquote_output): Rename from old_backquote_output.
23556 (print): Inverse its logic (according to its name) so as to match the
23557 behavior of new_backquote_flag in lread.c.
23558
235592007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23560
23561 * gmalloc.c (posix_memalign): New function.
23562
23563 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23564 ActivateControl/DeactivateControl here.
23565 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23566 frame-notice-user-settings is non-nil.
23567 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23568 for kEventParamFMFontStyle.
23569 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23570 mac_pass_command_to_system and mac_pass_control_to_system here.
23571 (XTread_socket): Call ActivateControl/DeactivateControl here.
23572 (XTread_socket) [TARGET_API_MAC_CARBON]:
23573 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23574 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23575 for window repositioning.
23576
235772007-08-08 Glenn Morris <rgm@gnu.org>
23578
23579 * Replace `iff' in doc-strings and comments.
23580
235812007-08-07 Chong Yidong <cyd@stupidchicken.com>
23582
23583 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23584
235852007-08-07 Martin Rudalics <rudalics@gmx.at>
23586
23587 * fileio.c (Finsert_file_contents): Run format-decode and
23588 after_insert_file_functions on entire buffer when REPLACE is
23589 non-nil and inhibit modification_hooks and point_motion_hooks.
23590 For consistency, run after_insert_file_functions iff something
23591 got inserted. Move signal_after_change and update_compositions
23592 after code running after_insert_file_functions. Make sure that
23593 undo_list doesn't record intermediate steps of the decoding process.
23594
235952007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23596
23597 * emacs.c (main)
23598 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23599 Call malloc_enable_thread on interactive startup.
23600
23601 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23602 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23603 [USE_PTHREAD]: Conditionalize with it.
23604 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23605 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23606 New functions.
23607
236082007-08-06 Chong Yidong <cyd@stupidchicken.com>
23609
23610 * xdisp.c (redisplay_window): When restoring original buffer
23611 position, make sure it is still valid.
23612
23613 * image.c (png_load): Ignore png-supplied background color.
23614
236152007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23616
23617 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23618 Use kCFAbsoluteTimeIntervalSince1970.
23619
23620 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23621 New variable.
23622 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23623 event loop should be quit.
23624 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23625 Quit dialog event loop if quit_dialog_event_loop is set.
23626
23627 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23628 (Selection): New typedef. Use instead of ScrapRef.
23629 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23630 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23631 (mac_clear_selection): Rename from clear_scrap.
23632 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23633 scrap_has_target_type. All uses changed.
23634 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23635 (mac_selection_has_target_p): New functions.
23636 (mac_put_selection_value): Rename from put_scrap_string.
23637 (mac_get_selection_value): Rename from get_scrap_string.
23638 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23639 (put_scrap_private_timestamp, scrap_has_target_type)
23640 (get_scrap_private_timestamp): Remove functions.
23641 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23642 (x_own_selection, x_get_local_selection):
23643 Use mac_valid_selection_value_p.
23644 (x_own_selection): Don't use put_scrap_private_timestamp.
23645 Record OWNERSHIP-INFO into Vselection_alist instead.
23646 (x_get_local_selection): Don't check type if request is local.
23647 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23648 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23649
236502007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23651
23652 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23653 add comment explaining why.
23654
236552007-08-03 Richard Stallman <rms@gnu.org>
23656
23657 * fileio.c (Fvisited_file_modtime): Use make_time.
23658
236592007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23660
23661 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23662 build.
23663
236642007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23665
23666 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23667
236682007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23669
23670 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23671
236722007-07-30 Richard Stallman <rms@gnu.org>
23673
23674 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23675
236762007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23677
23678 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23679
236802007-07-28 Nick Roberts <nickrob@snap.net.nz>
23681
23682 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23683 remote default-directory.
23684
23685 * buffer.c (mode-line-format): Update doc string.
23686
236872007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23688
23689 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23690 scroll bar gap.
23691 (x_scroll_bar_create): Set bar->fringe_extended_p.
23692 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23693 on frame edge. Check fringe background extension. Don't clear
23694 extended fringe background area.
23695
23696 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23697 (w32_fill_area): Enclose multiple statements with do ... while (0).
23698
23699 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23700 Extend fringe background to scroll bar gap.
23701 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23702 Set bar->fringe_extended_p.
23703 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23704 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23705 background extension. Don't clear extended fringe background area.
23706
23707 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23708 New member fringe_extended_p.
23709
237102007-07-25 Glenn Morris <rgm@gnu.org>
23711
23712 * Relicense all FSF files to GPLv3 or later.
23713
23714 * COPYING: Switch to GPLv3.
23715
237162007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23717
23718 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23719
23720 * data.c (Finteractive_form): Check for the presence of an
23721 `interactive-form' symbol property more thoroughly.
23722
23723 * data.c (Finteractive_form): Use an `interactive-form' property if
23724 present, analogous to the function-documentation property.
23725
237262007-07-24 Jason Rumney <jasonr@gnu.org>
23727
23728 * w32fns.c (x_real_positions): Get real position from OS instead of
23729 calculating it.
23730
237312007-07-23 Jason Rumney <jasonr@gnu.org>
23732
23733 * filelock.c (current_lock_owner): Allow for @ sign in username.
23734
237352007-07-22 Nick Roberts <nickrob@snap.net.nz>
23736
23737 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23738 remote default-directory.
23739
23740 * buffer.c (mode-line-format): Describe above case in doc string.
23741
237422007-07-20 Eli Zaretskii <eliz@gnu.org>
23743
23744 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23745 Define if not defined.
23746
237472007-07-18 Jason Rumney <jasonr@gnu.org>
23748
23749 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23750
237512007-07-18 Richard Stallman <rms@gnu.org>
23752
23753 * data.c (Fsetq_default): Doc fix.
23754
23755 * eval.c (Fsetq): Doc fix.
23756
237572007-07-18 Juanma Barranquero <lekktu@gmail.com>
23758
23759 * coding.c (Ffind_operation_coding_system):
23760 * eval.c (For, Fand): Doc fixes.
23761 Reported by Johan Bockgård.
23762
237632007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23764
23765 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23766
23767 * xterm.h: Declare x_ewmh_activate_frame.
23768
23769 * xterm.c (x_ewmh_activate_frame): New function.
23770 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23771
237722007-07-17 Martin Rudalics <rudalics@gmx.at>
23773
23774 * window.c (Fdisplay_buffer): If largest or LRU window is the
23775 only window, split it even if it is not eligible for splitting.
23776 This restores the original behavior broken by the 2007-07-15
23777 change.
23778
237792007-07-17 Glenn Morris <rgm@gnu.org>
23780
23781 * abbrev.c (abbrev_check_chars): New function.
23782 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23783 Call abbrev_check_chars to check abbrev characters are word
23784 constituents. Doc fix.
23785
237862007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23787
23788 * process.c (Fstart_process, Fmake_network_process)
23789 (read_process_output): Fix up last changes.
23790
237912007-07-16 Eli Zaretskii <eliz@gnu.org>
23792
23793 * makefile.w32-in (clean): Don't delete *~.
23794
237952007-07-16 Andreas Schwab <schwab@suse.de>
23796
23797 * window.c (Fdisplay_buffer): Use NILP.
23798 (Fset_window_scroll_bars): Likewise.
23799
238002007-07-15 Martin Rudalics <rudalics@gmx.at>
23801
23802 * window.c (window_min_size_2): New function.
23803 (window_min_size_1, size_window, Fdisplay_buffer)
23804 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23805 windows without mode- or header-lines when window-min-height is
23806 too small.
23807 (size_window): Reset nodelete_p after testing it, following an
23808 earlier note by Kim F. Storm.
23809 (display_buffer): Do not set split_height_threshold to twice the
23810 value of window_min_height to avoid changing the value of a
23811 customizable variable. Rather explicitly check whether the
23812 height of the window that shall be splitted is at least as large
23813 as split_height_threshold.
23814 (Fwindow_full_width_p): New defun.
23815 (syms_of_window): Defsubr it.
23816
23817 * window.h: Add EXFUN for Fwindow_full_width_p.
23818
238192007-07-14 Jason Rumney <jasonr@gnu.org>
23820
23821 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23822
238232007-07-14 Richard Stallman <rms@gnu.org>
23824
23825 * eval.c (maybe_call_debugger): New function.
23826 (find_handler_clause): Use maybe_call_debugger.
23827 Call it when the handler says `debug'.
23828 Eliminate DEBUGGER_VALUE_PTR.
23829 (Fsignal): Eliminate debugger_value.
23830 (Qdebug): New variable.
23831 (syms_of_eval): Initialize it.
23832
238332007-07-14 Juanma Barranquero <lekktu@gmail.com>
23834
23835 * eval.c (Fprogn):
23836 * keyboard.c (Ftrack_mouse):
23837 * print.c (Fwith_output_to_temp_buffer):
23838 * window.c (Fsave_window_excursion): Doc fix.
23839
238402007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23841
23842 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23843
238442007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23845
23846 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23847 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23848 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23849 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23850 Remove unused encoding_carryover.
23851 * process.c: Adjust all functions accordingly.
23852
238532007-07-12 Richard Stallman <rms@gnu.org>
23854
23855 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23856
238572007-07-11 Jason Rumney <jasonr@gnu.org>
23858
23859 * makefile.w32-in (LIBS): Include OLE32.
23860
23861 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23862 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23863
238642007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23865
23866 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23867 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23868 from a Lisp_Object into a bare pointer.
23869 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23870 Adjust the code correspondingly.
23871
23872 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23873
23874 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23875 (term_show_mouse_face): Remove unused var `j'.
23876 (handle_one_term_event): Remove unused vars `i' and `j'.
23877 Don't cast return value of ttyname since it's not necessary.
23878
238792007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23880
23881 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23882 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23883
23884 * fns.c (map_char_table): Use an array of int for `indices' rather than
23885 an array of Lisp_Objects (which are only ever integers anyway).
23886 (Fmap_char_table): Update caller.
23887 * lisp.h: Update prototype.
23888 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23889 * fontset.c (Ffontset_info):
23890 * casetab.c (set_case_table): Update callers.
23891
23892 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23893
23894 * keymap.c (struct accessible_keymaps_data)
23895 (struct where_is_internal_data): New structures.
23896 (accessible_keymaps_1, where_is_internal_1): Use them to change
23897 interface to adhere to the one used by map_keymap.
23898 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23899 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23900
23901 * keymap.h (map_keymap_function_t): More informative prototype.
23902
239032007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23904
23905 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23906 (looking_at_1): Don't change search_regs and last_thing_searched
23907 if `inhibit-changing-match-data' is non-nil.
23908 (string_match_1, search_buffer, set_search_regs): Likewise.
23909 (syms_of_search): Add Lisp level definition for
23910 `inhibit-changing-match-data' and set it to nil.
23911 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23912 start and end of the match, instead of using values in search_regs.
23913
239142007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23915
23916 * minibuf.c (Fcompleting_read): New value `confirm-only'
23917 for `require-match'.
23918
239192007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23920
23921 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23922 part of the 2007-06-27 change to syms_of_fileio.
23923
239242007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23925
23926 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23927 Check WINDOWP before using XWINDOW. Consolidate return statements.
23928
239292007-06-27 Richard Stallman <rms@gnu.org>
23930
23931 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23932
239332007-06-27 Juanma Barranquero <lekktu@gmail.com>
23934
23935 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23936
239372007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23938
23939 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23940 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23941 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23942 (_free_internal, memalign): Use them.
23943 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23944 Initialize to PTHREAD_MUTEX_INITIALIZER.
23945 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23946 (morecore_nolock): Rename from morecore. All uses changed.
23947 Use only nolock versions of internal allocation functions.
23948 (_malloc_internal_nolock, _realloc_internal_nolock)
23949 (_free_internal_nolock): New functions created from
23950 _malloc_internal, _realloc_internal, and _free_internal.
23951 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23952 Copy hook value to automatic variable before its use.
23953 (memalign): Copy hook value to automatic variable before its use.
23954
239552007-06-26 Kenichi Handa <handa@m17n.org>
23956
23957 * coding.c (Ffind_operation_coding_system): Docstring improved.
23958 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23959
239602007-06-25 David Kastrup <dak@gnu.org>
23961
23962 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23963 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23964 cater for additional parameter.
23965
23966 * keymap.h: Adjust number of parameters to `current-active-maps'.
23967
23968 * doc.c (Fsubstitute_command_keys): Adjust call of
23969 `current-active-maps'.
23970
239712007-06-25 David Kastrup <dak@gnu.org>
23972
23973 * callint.c (Fcall_interactively): Make the parsing of interactive
23974 specs somewhat more readable.
23975
239762007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23977
23978 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23979 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23980 if extended background has already been filled.
23981
239822007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23983
23984 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23985 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23986
23987 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23988 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23989 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23990 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23991 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23992 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23993 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23994 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23995 Run timers during dialog popup.
23996 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23997
239982007-06-21 Jason Rumney <jasonr@gnu.org>
23999
24000 * image.c (convert_mono_to_color_image): Swap fore and background.
24001
240022007-06-20 Jason Rumney <jasonr@gnu.org>
24003
24004 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
24005 (w32_free_bdf_font): Unmap memory not handle.
24006
240072007-06-20 Sam Steingold <sds@gnu.org>
24008
24009 * gmalloc.c (__morecore): Fix the declaration to comply with the
24010 definition.
24011
240122007-06-20 Juanma Barranquero <lekktu@gmail.com>
24013
24014 * w32term.c (w32_delete_display): Remove leftover declaration.
24015 (w32_define_cursor, w32_initialize): Make static.
24016
24017 * w32.c (_wsa_errlist): Fix typo in error message.
24018 (init_environment): Ignore any environment variable from the
24019 registry having a null value.
24020
240212007-06-20 Glenn Morris <rgm@gnu.org>
24022
24023 * Makefile.in (LIBGIF): Default to -lgif.
24024
240252007-06-17 Jason Rumney <jasonr@gnu.org>
24026
24027 * w32menu.c (add_menu_item): Don't use multibyte string functions on
24028 unicode strings.
24029
240302007-06-16 Juanma Barranquero <lekktu@gmail.com>
24031
24032 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
24033 Fix typo in docstring.
24034
240352007-06-16 Eli Zaretskii <eliz@gnu.org>
24036
24037 * w32menu.c (add_menu_item): Escape `&' characters in menu items
24038 and their keybindings.
24039
240402007-06-15 Chong Yidong <cyd@stupidchicken.com>
24041
24042 * composite.c (update_compositions): Fix last fix.
24043
240442007-06-14 Jason Rumney <jasonr@gnu.org>
24045
24046 * w32.c (get_process_times_fn): New function pointer.
24047 (globals_of_w32): Intialize it if present in kernel32.dll.
24048 (w32_get_internal_run_time): New function.
24049
24050 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
24051
240522007-06-14 Kenichi Handa <handa@etlken.m17n.org>
24053
24054 * composite.c (update_compositions): Check the validness of
24055 compositions.
24056
240572007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24058
24059 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
24060 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
24061
24062 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
24063 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
24064
24065 * macgui.h (USE_MAC_TOOLBAR): New define.
24066
24067 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24068 Return immediately unless popup is activated.
24069
24070 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
24071 background to scroll bar gap.
24072 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
24073 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
24074 scroll bars on frame edge. Check fringe background extension.
24075 Don't clear extended fringe background area.
24076 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
24077 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
24078 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
24079 [USE_MAC_TOOLBAR]: New macros.
24080 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
24081 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
24082 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
24083 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
24084 [USE_MAC_TOOLBAR]: New functions.
24085 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
24086 manually if previous repositioning has failed.
24087 (mac_handle_keyboard_event): Use precomputed event kind.
24088 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
24089 as tool bar item click. Handle mouse movement over tool bar items.
24090
24091 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
24092 toolbar_win_gravity.
24093 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
24094 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
24095 Add externs.
24096
24097 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
24098 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
24099
241002007-06-14 Chong Yidong <cyd@stupidchicken.com>
24101
24102 * image.c (search_image_cache): Remove unused variable.
24103
241042007-06-13 Chong Yidong <cyd@stupidchicken.com>
24105
24106 * xfns.c, xmenu.c: Link to xaw3d if available.
24107
241082007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24109
24110 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
24111 frame_foreground and frame_background.
24112
24113 * image.c (lookup_image): Save frame foreground and background colors.
24114 (search_image_cache): Check if saved and current frame colors match.
24115
241162007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
24117
24118 * regex.c (regex_compile): Remove the `regnum' counter.
24119 Use bufp->re_nsub instead. Add support for \(?N:RE\).
24120
241212007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
24122
24123 * term.c: Include intervals.h to declare Fget_text_property.
24124
241252007-06-10 Jason Rumney <jasonr@gnu.org>
24126
24127 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
24128
241292007-06-08 Juanma Barranquero <lekktu@gmail.com>
24130
24131 * callint.c (Fcall_interactively):
24132 * editfns.c (Fdelete_and_extract_region):
24133 * fileio.c (Fread_file_name):
24134 * fns.c (Fmapconcat):
24135 * keyboard.c (cmd_error_internal):
24136 * keymap.c (Fkey_description):
24137 * lread.c (openp):
24138 * minibuf.c (read_minibuf):
24139 * search.c (wordify):
24140 * sunfns.c (sel_read):
24141 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
24142 * xfns.c (x_default_scroll_bar_color_parameter):
24143 * xmenu.c (menu_help_callback):
24144 * xselect.c (Fx_get_atom_name):
24145 * xterm.c (x_term_init): Use empty_unibyte_string.
24146
241472007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
24148
24149 * alloc.c (init_strings): Initialize canonical empty strings.
24150 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
24151 canonical empty string when the requested size is 0.
24152
24153 * emacs.c (empty_unibyte_string): Rename from empty_string.
24154 (empty_multibyte_string): New canonical empty string.
24155 (syms_of_emacs): Don't initialize empty_string.
24156
24157 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
24158 string, if appropriate.
24159 (empty_unibyte_string, empty_multibyte_string): New externs.
24160 (empty_string): Remove extern.
24161
24162 * lread.c (syms_of_lread): Use empty_unibyte_string.
24163
241642007-06-07 Jason Rumney <jasonr@gnu.org>
24165
24166 * s/ms-w32.h: Don't define HAVE_TZNAME.
24167
24168 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
24169
241702007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24171
24172 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
24173
24174 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
24175 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
24176
24177 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
24178 Don't call next handler.
24179 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
24180 Remove argument. Install handler to application.
24181 (set_frame_menubar): Don't change deep_p.
24182 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
24183 FRAME_OUTER_TO_INNER_DIFF_Y.
24184 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
24185 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
24186 [HAVE_DIALOGS]: New macros.
24187 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
24188 Use them.
24189 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
24190
24191 * macselect.c [MAC_OSX] (install_service_handler): Rename from
24192 init_service_handler. All callers changed. Return OSStatus value.
24193
24194 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
24195 All callers changed so as not to call SetPortWindowPort.
24196 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
24197 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
24198 mac_draw_string_common.
24199 (mac_draw_image_string_qd): Likewise.
24200 (mac_draw_string_common): Use them. Add INLINE.
24201 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
24202 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
24203 GetGlobalMouse.
24204 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
24205 and FRAME_OUTER_TO_INNER_DIFF_Y.
24206 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
24207 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
24208 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
24209 repositioning window to mac_handle_window_event.
24210 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
24211 saving window location to mac_handle_window_event
24212 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
24213 (install_menu_target_item_handler): Remove argument in extern.
24214 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
24215 Also accept command events.
24216 (do_keystroke): New function created from XTread_socket.
24217 (init_command_handler): Remove functions.
24218 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
24219 and save window location by kEventWindowShowing and kEventWindowHiding
24220 handlers here. Don't call next handler for window state change and
24221 focus events.
24222 (mac_handle_application_event, mac_handle_keyboard_event)
24223 [TARGET_API_MAC_CARBON]: New functions.
24224 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
24225 kEventWindowShowing and kEventWindowHiding events. Move installation
24226 of mouse, font, text input and menu target item handlers to
24227 install_application_handler.
24228 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
24229 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24230 New function.
24231 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
24232 Register it.
24233 (XTread_socket) [TARGET_API_MAC_CARBON]:
24234 Consolidate SendEventToEventTarget calls.
24235 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
24236 Move application activation handler to mac_handle_application_event.
24237 Move keyboard handler to mac_handle_keyboard_event.
24238 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
24239 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
24240 init_command_handler. Call install_application_handler.
24241
24242 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
24243 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
24244
242452007-06-07 Glenn Morris <rgm@gnu.org>
24246
24247 * emacs.c (main): Use `emacs-copyright' in --version output.
24248
242492007-06-06 Chong Yidong <cyd@stupidchicken.com>
24250
24251 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
24252
242532007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24254
24255 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
24256
24257 * macgui.h: Replace WindowPtr with WindowRef.
24258
24259 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24260 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24261 Replace ControlHandle with ControlRef.
24262 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
24263
24264 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
24265 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24266 Replace ControlHandle with ControlRef.
24267 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24268 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24269
24270 * macterm.h (struct scroll_bar): Rename member control_handle_low
24271 and control_handle_high to control_ref_low and control_ref_high.
24272 All uses changed.
24273 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24274 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24275 respectively. All uses changed.
24276 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24277 (install_window_handler, remove_window_handler): Replace WindowPtr
24278 with WindowRef in externs.
24279
242802007-06-05 Juanma Barranquero <lekktu@gmail.com>
24281
24282 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24283
242842007-06-03 Nick Roberts <nickrob@snap.net.nz>
24285
24286 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24287
24288 * frame.c (Fmouse_position, Fmouse_pixel_position):
24289 Condition on HAVE_GPM too.
24290
24291 * term.c (term_mouse_highlight): Remove unused variables.
24292 (Fterm_open_connection): Set gpm_zerobased to 1.
24293 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24294 Use zero based co-ordinates.
24295 (handle_one_term_event): Report a drag as mouse movement too.
24296
24297 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24298
242992007-06-03 Chong Yidong <cyd@stupidchicken.com>
24300
24301 * image.c (search_image_cache): New function. Require background
24302 color match if background color is unspecified in the image spec.
24303 (uncache_image, lookup_image): Use it.
24304
243052007-06-01 Juanma Barranquero <lekktu@gmail.com>
24306
24307 * window.c (Fshrink_window): Reflow docstring.
24308
243092007-06-02 Chong Yidong <cyd@stupidchicken.com>
24310
24311 * Version 22.1 released.
24312
243132007-06-01 Richard Stallman <rms@gnu.org>
24314
24315 * xfns.c (x_encode_text): Add GCPRO.
24316
243172007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24318
24319 * xfns.c (x_set_name_internal): Save encoded name before
24320 x_encode_text in case string data is relocated.
24321
243222007-05-31 Richard Stallman <rms@gnu.org>
24323
24324 * buffer.c (syms_of_buffer): Doc fix.
24325
243262007-05-30 Nick Roberts <nickrob@snap.net.nz>
24327
24328 * sysdep.c (init_sys_modes): Add rather than replace with
24329 O_NONBLOCK.
24330
24331 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24332 term_mouse_moveto.
24333
24334 * termhooks.h (term_mouse_moveto): New extern.
24335
24336 * term.c (mouse_face_window): Rename...
24337 (Qmouse_face_window): ...to this.
24338 (term_show_mouse_face, term_clear_mouse_face)
24339 (term_mouse_highlight): Use Qmouse_face_window.
24340 (term_mouse_moveto): New function.
24341 (term_mouse_position): Make it work.
24342 (syms_of_term): Uncomment assignment to mouse_position_hook.
24343 Staticpro Qmouse_face_window.
24344
243452007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24346
24347 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24348 around current_column call.
24349
243502007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24351
24352 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24353 * xdisp.c (next_element_from_buffer):
24354 * window.c (delete_window):
24355 * term.c (term_mouse_highlight):
24356 * msdos.c (getdefdir):
24357 * macterm.c (mac_create_bitmap_from_bitmap_data)
24358 (init_font_name_table):
24359 * fns.c (Fsxhash):
24360 * data.c (Fmake_local_variable):
24361 * ccl.c (ccl_driver): Likewise.
24362
243632007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24364
24365 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24366 Call mac_wakeup_from_rne on window size change.
24367
243682007-05-25 Chong Yidong <cyd@stupidchicken.com>
24369
24370 * image.c (uncache_image): Fix typo.
24371
243722007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24373
24374 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24375
243762007-05-22 Richard Stallman <rms@gnu.org>
24377
24378 * xterm.c (x_connection_closed): Remove NO_RETURN.
24379
243802007-05-22 Martin Rudalics <rudalics@gmx.at>
24381
24382 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24383
243842007-05-21 Chong Yidong <cyd@stupidchicken.com>
24385
24386 * image.c (uncache_image): New function.
24387 (Fimage_refresh): New function.
24388
243892007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24390
24391 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24392
243932007-05-20 Nick Roberts <nickrob@snap.net.nz>
24394
24395 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24396 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24397
243982007-05-20 Nick Roberts <nickrob@snap.net.nz>
24399
24400 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24401 conditional on [HAVE_GPM_H].
24402
244032007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24404
24405 * syntax.c (skip_chars): Update syntax-table only after we checked that
24406 the new location is valid.
24407
244082007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24409
24410 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24411 mac_get_window_bounds.
24412
244132007-05-20 Nick Roberts <nickrob@snap.net.nz>
24414
24415 * Makefile.in (LIBGPM): Allow it to be set from configure.
24416 If set then link Emacs with it.
24417
24418 * config.in: Regenerate.
24419
24420 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24421 New externs.
24422
24423 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24424 Include gpm.h.
24425 (handle_one_term_event, term_gpm): New externs.
24426
24427 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24428 and allow it to be interrupted by SIGIO.
24429
24430 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24431 (wait_reading_process_output): Wait on gpm_fd too.
24432 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24433 (add_gpm_wait_descriptor_called_flag): New variable.
24434 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24435
24436 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24437 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24438 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24439 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24440 (make_lispy_event): Add case GPM_CLICK_EVENT.
24441 (read_avail_input): Handle mouse input.
24442
24443 * term.c (write_glyphs_with_face): New function.
24444 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24445 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24446 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24447 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24448 (last_mouse_x, last_mouse_y): New variables.
24449 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24450 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24451 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24452 (Fterm_close_connection): New functions.
24453 (term_init): Initialise mouse_face_window.
24454
244552007-05-19 Chong Yidong <cyd@stupidchicken.com>
24456
24457 * xdisp.c (redisplay_window): If first window line is a
24458 continuation line, recompute the new window start instead of
24459 recentering.
24460
244612007-05-18 Glenn Morris <rgm@gnu.org>
24462
24463 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24464 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24465
244662007-05-17 Glenn Morris <rgm@gnu.org>
24467
24468 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24469
244702007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24471
24472 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24473 dead key repeat and up events.
24474
244752007-05-14 Chong Yidong <cyd@stupidchicken.com>
24476
24477 * image.c (pbm_load): Check image size for monochrome pbm.
24478
244792007-05-13 Chong Yidong <cyd@stupidchicken.com>
24480
24481 * xterm.c (XTread_socket): Revert last change.
24482
244832007-05-12 Chong Yidong <cyd@stupidchicken.com>
24484
24485 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24486
24487 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24488
244892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24490
24491 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24492 mixup (YAILOM).
24493
244942007-05-07 Andreas Schwab <schwab@suse.de>
24495
24496 * keymap.c (Flookup_key): Fix typo in last change.
24497
244982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24499
24500 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24501 mapping for unibyte strings.
24502
245032007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24504
24505 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24506 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24507
245082007-04-29 Richard Stallman <rms@gnu.org>
24509
24510 * insdel.c (replace_range): For undo, record insertion first.
24511
245122007-04-29 Andreas Schwab <schwab@suse.de>
24513
24514 * lisp.h (VECSIZE): Use OFFSETOF.
24515
245162007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24517
24518 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24519 disabled lines.
24520
245212007-04-28 Richard Stallman <rms@gnu.org>
24522
24523 * lread.c (read_escape): In a string, \s is always space.
24524
245252007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24526
24527 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24528
24529 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24530 submenu for menu bar items.
24531
24532See ChangeLog.10 for earlier changes.
24533
24534;; Local Variables:
24535;; coding: utf-8
24536;; add-log-time-zone-rule: t
aac0c6e3
MR
24537;; End:
24538
e3eb1dae 24539 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24540
24541 This file is part of GNU Emacs.
24542
24543 GNU Emacs is free software: you can redistribute it and/or modify
24544 it under the terms of the GNU General Public License as published by
24545 the Free Software Foundation, either version 3 of the License, or
24546 (at your option) any later version.
24547
24548 GNU Emacs is distributed in the hope that it will be useful,
24549 but WITHOUT ANY WARRANTY; without even the implied warranty of
24550 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24551 GNU General Public License for more details.
24552
24553 You should have received a copy of the GNU General Public License
24554 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24555
24556;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40